If you want to render you OpenStreetMap data quickly into beautiful maps, Mapgen is the tool for you. A very easy to use, perl script, with less dependencies. Mapgen supports rendering to SVG, PNG and PDF. All you have to do is to get the package and then command! The rules file is easy to tweak for your custom needs.
I have packaged the required stuffs into a tar.gz. Download it from here. The Manual is available here.
For the impatient, use the following command to get the map rendered.
Fort Cochin is marked for one of the earliest establishments of foreign trade in Kerala. The heritage walk is an awesome 6 KM journey on foot, which takes us back to the 1700’s when the Dutch, the Portuguese and the English was busy trading the wealth. The island provided them a very wonderful place to trade and refresh. The heritage walk meets us at different monuments which reminds us of these historical landmarks.
I met Arky at the Ernakulam Boat Jetty, from where we collected few maps and other resources. We took a boat ride to Fort Cochin. The boat journey was refreshing for as I did not have anything for my breakfast. We planned how to get the things done.
We refined the list of POI’s. The boat took us to Fort Cochin in 25 minutes. It was around 10.20 AM. Pinged Sameer of i-lug cochin and Prinson of SPACE. Prinson promised to join us soon with the wireless internet device. But, we could not wait, and started mapping right from the point where we got down. It took us a moment to set up the GPS device, the notepad and our Camera. I was tweeting all the way.
We started our walk by watching the beautiful Chinese fishing nets.
We decided to take photographs in such a way that we could properly geotag them.
On the left, we found the Nehru Childrens’ Park. We sat down there for a moment and verified our route in the map we obtained.
We took the walk on to the paved retaining wall, and found the third POI, the Great Anchor
This was one of the four anchors used by Lord Wellingdon.
We continued our walk through the pavements and came across the Steam Boilers.
These were used by the cranes. Coke and Coal was the important fuels of the boilers.
On the right we found few rest shelters.
We held back at the shade of a tree to watch a beautiful yacht moving the back water. Arky was exclaiming his dream to spend a day in such a yacht.
We came across the remains of the Fort Immanuel, the Gunnary.
This was used to fire at any illegal boats or yachts found in the waters.
There were two look out points or view points leading to the waters. Somebody can walk upto it and enjoy the fishermen making their life.
I could not resist to jump into the sea side beach. The climate was very hot and dry.
Still we enjoyed the walk and with sheer enthusiasm, decided to continue.
We took a deviation from the paved way into the Dutch Cemetery Road.
It dragged us back to the times, the Dutch established their colony in Fort Cochin.
Next, we came across the Thakur House.
Thakur was one of the earliest North Indian who settled down in Fort Cochin for Trade purposes. This is the place where he lived.
We took a left to the Napier Street
And found the St. Andrews Parish Hall.
Looking on the watch, we realized that we walked for half an hour. And, yet, we enjoyed. I was getting the feel of hunger.
Since our plan is create a tourist friendly map, we were focussing on places like this too.
The Bishops house was near by.
It was a lucky find. The museum is located inside the campus of Bishops House. But unfortunately, we could not sneak in as it remains closed on Mondays.
Now, we checked the data so far we have collected and correlated them with the pamphlet we obtained. Almost done. Few more to go, and continued walking.
This was really interesting. The VOC gate. The Dutch establishment in Fort Cochin was like a colony. There were many gates for the fort or whatever they call it. This was the main entrance gate, built in 1740.
We came across the Vasco House and ..
We walked across the street to find the St. Francis Church.
We sneaked into the church, a lot of people were offering their humble prayers.
Inside the church we found these large sheet hanging from the roof top. Arky reminded that they are the fans and we talked a bit about the slaves who sat outside the church and pulled the rope to wave the sheets. This was serving as a fan.
The next find was the Santa Cruz Basilica.
There were a lot of believers flowing into the basilica.
We collected the required points and photographs and continued walking, and Arky pulled my attention to this one.
We watched the love birds chirping as we walked past the street.
We came across the Koder House. Guess we missed the Delta Study, Arky verified the resource maps and confirmed we had to trace back.
Not too far. We found it. Recorded the POI.
We took the street across the Koder house again and reached the Vasco da Gama Square near the Nehru Park. This is the place where we had begun the walk. And back to square one. We had some tender coconut juice, and verified the waypoint data we collected. It was amazing for us.
Prinson popped in. We together walked to Vimal’s bookshop in the Prince Street. Sat down there for a moment and downloaded the data.
To our surprise, we have collected a lot of data in very short time. Prinson reminded that there is a harthal tomorrow. Vimal tried to arrange us a stay, but this season, it was very difficult.
So we decided to wrap it up and move to the Regional Centre of SPACE at Kalamasery. We met Sameer of i-lug Cochin there.
The walk was tagged and uploaded to OpenStreetMap. This was one of the projects by Geohackers. The event was a get-away for me, Arky and Prinson. We learned to improve the quality of map making process.
The next step is to create a tourist friendly map. This is the important part. It is great that we have Hiran to help on creating the overlay.
After a bit of mapping at the Technopark, we planned to render the map offline. This being a step towards the Fort Cochin Heritage Walk Mapping. So, I banged into the #osm channel on irc.oftc.net with the question, the first answer was Mapnik. But Mapnik, essentially, requires you to generate the Postgresql database instance out of the .osm file using osm2pqgsql or osmosis.
But, the quick method is to use Osmarender. The following steps would let you render a good .osm file into a map.
Dowload the xml or .osm data subset of your area of interest.
If you do not have installed subversion system, type sudo apt-get install subversion
Now, you need to get the latest source files of Osmarender, for that type svn checkout http://svn.openstreetmap.org/applications/rendering/osmarender/
cd to the directory. Probably cd /home/<user_name>/osmarender/
Type apt-get install xmlstarlet
Now, call the magic!
Type xmlstarlet tr ~/osmarender/xslt/osmarender.xsl -s osmfile=<file_name>.osm ~/osmarender/stylesheets/osm-map-features-z17.xml > <destination_file_name.svg>
Now you should get an svg of the map. I got something like this by tweeking the stylesheets a bit
You can further make additions to the stylesheet files and adjust the parameters to suit your needs. More information is available at the Osmarender wiki.
Another party is here! The Trivandrum Mapping Party is going to be a lot of fun. SciPy.in is happening at Technopark during 12-17 Dec 2009. So, we thought to map Technopark and the adjoining regions. The Party is scheduled during 12-13 Dec. Its a day-night event. You can join us anytime. More information are at the wiki.
One of the lessons from the NIT-C Mapping Party was regarding the conversion of .log files to .gpx formats. The OpenMoko, records the GPS data in .log format. But the map editors, uses gpx format. There had been two important converters suggested, one, a python script, other, a perl script. We resorted to use the python script. Straight away converted the files and opened in JOSM. Whao! All of us were out of words. Better you watch the pic below!
The problem was that, OpenMoko records speed, altitude and other close information. These resulted in the circles within the gpx file. We had to open the python script and comment out those lines which converted the altitude and other unwanted details, as follows.
The first Mapping Party in Kerala was held at National Institute of Calicut, Calicut, during 23-24 October 2009. The event was organized by the Free Software User Group Calicut and GeoHackers. Indeed the quality was poor. As a result of few discussions on the OSM emailing lists, I have been reworking with the data we collected. Added few new roads, paths etc. Making the map more rich. The map is here.
We had a very good experience learning more about OpenStreetMap and Mapping, through the NIT-C Mapping Party. Since then, we have been collaborating a google doc, to document the event. The How-to document is thus a part of the entire event, the geohackers initiative.
Map-making or Cartography aided mankind from the time when lived in caves, the geographic knowledge and the compass guided the progess of our civilization. Today such wealth is only available to those who can pay huge royalties or license fees. OpenStreetMap project (OSM) takes its inspiration from Free Culture philosophy and aims to provide geographic information of the entire planet to one and all.
Mapping parties are organized to teach map making skills and contribute to OpenStreetMap project. With the advent of GPS technology anyone with such a device and computer can build high quality maps. This document explains how one can organize a mapping party in their school or workplace.
Lets look the tools that are needed for making maps, we need a GPS devices, a personal computer to edit the mapping data and a account on OpenStreetMap servers to upload your data.
GPS is Global Positioning System. The earth is surrounded by 31 satellites, which provide us sufficient information to identify where we are on the planet. This tracking is processed with the help of geographic coordinates called Latitudes and Longitudes. There are lot of stand alone GPS receivers available in the market. At the mean time, most of the smart phones are equipped with GPS receivers. GPS devices are the primary data collection tool for mapping.
The data collected in the GPS devices are used in the GPX format. This is the most easy and efficient method for fetching the data from the device. The GPX file is the collection of traces and waypoints. Map images in formats like .jpg, .png etc are also used. The OSM data subsets are available in the .osm format.
Map editors are the workplace were we use the data collected from GPS to create the map. Creating the map involves proper tagging of the data. Many editors are available, like Java OpenStreetMap editor (JOSM), Potlatch, Merkaartor. Among these, JOSM is the heavy duty offline editor.
Getting an OSM account
We need to have a proper OSM account to validate and upload the map we created. You can create a new here.
Lets start mapping !
The next important step is creating teams. The entire party is divided into small teams based on how many GPS devices you have at your disposal and size of mapping area. Each team should have at least one person with good sense of direction. Each team can be given a name or colored arm band (optional). Each team is equiped with a terrian map with landmarks that show the borders of their sector. Various services like google, yahoo. walking-papers.org provide terrian maps that can be printed before hand. A person can act as a control center co-ordinator. He is responsible to staying in touch with team in the field with mobile phone or portable 2 way radio (optional)
Data Collection and Downloading
Maps are created at this stage. The data we have mined are ordered, analyzed, and tagged. We need to make sure that all the team follows a naming convention or comment. The coordinator should watch for over marketing / mis-marketing of the same location. Once the data is properly tagged, it is time to upload it to the OSM server.
Each team would be provided with a feedback form, which they are intended to provide sincere information regarding their experience in the workshop. This step is a sort of improvement and corrective measure for the GeoHackers team.