<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Kjell,<div><br></div><div><br><div><div>On Jul 7, 2008, at 2:03 PM, Kjell Are Refsvik wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 7. juli. 2008, at 19.19, Dane Springmeyer wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Kjell,<div>...</div><div><div>You are not alone. Projected coordinate systems can confuse beginners and experts alike.</div></div></div></blockquote><div><br></div><div>:-)</div><div><br></div><div>Well, given my completely newbie status as a GIS/Geodata user, I am very grateful for your patience, explaining these things to me.</div><br></div></div></blockquote><div><br></div>no problem. Please do consider consulting the mailing lists of the specific software that you are using as well.</div><div><br></div><div><br></div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div>...</div><div>Second, I can see now (from your image links) that your data was collected in Lebanon, which means that the link I directed you to will not provide a reference to the correct UTM zone.</div><div><br></div><div>There are two possible UTM zones for Lebanon: UTM 36N or UTM 37N.</div><div><br></div><div><div><span class="Apple-style-span" style="font-family: Verdana; font-size: 16px; ">WGS 84 / UTM zone 36N</span></div><div><a href="http://spatialreference.org/ref/epsg/32636/">http://spatialreference.org/ref/epsg/32636/</a></div><div><br></div><div><span class="Apple-style-span" style="font-family: Verdana; font-size: 16px; ">WGS 84 / UTM zone 37N</span></div><div><a href="http://spatialreference.org/ref/epsg/32637/">http://spatialreference.org/ref/epsg/32637/</a></div></div></div></div></div></blockquote><div><br></div><div>36N seemed to have done thr trick:</div><div><font class="Apple-style-span" face="arial" size="3"><span class="Apple-style-span" style="font-size: 13px;"><span class="Apple-style-span" style="font-family: Times; font-size: 16px; "><pre style="word-wrap: break-word; white-space: pre-wrap; "><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">PROJCS["WGS_1984_UTM_Zone_36N",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",33],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]</span></font></pre></span></span></font></div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><div><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; "></span></div></div></div></div></div></blockquote></div></div></blockquote><div><br></div>great.</div><div><br></div><div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">Or use the command line program ogr2ogr to reproject your shapefile to WGS84/EPSG 4326 from your assumed UTM projection. That command would look like:</span></div><div><br></div><div>$ ogr2ogr -s_srs EPSG:32636 -t_srs EPSG:4326 lebanon_points_wgs84.shp lebanon_points_utm36N.shp</div></div></div></div></blockquote><div><br></div><div>Splendid. I will have a go at that. </div><br></div></div></blockquote><div><br></div><div>Note that if you want to use ogr2ogr like this you can skip the step of assigning the projection by manually adding a .prj file. In one fell swoop you are telling ogr that the projection is UTM and a given zone without requiring ogr2ogr to read the projection information from the .prj file.</div><div><br></div><div><br></div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>Yes, they are GUI applications... but don't you just need to automate the processing of your GPS data? </div></div></div></blockquote><div><br></div><div>No. In addition to use a unix shell-script to harvest and prepare geodata from my images using exiftool and some basic text formatting commands in unix, I also need to prepare the necessary shapefiles and hopefully find some way of (using shell-scripts) atomatically export png files to make up the map. </div><div><br></div><div>A quick sketch (using a screengrabbed OpenStreetMap) here:</div><div><a href="http://www.ia-stud.hiof.no/~kjellare/misc/programming_goal.png">http://www.ia-stud.hiof.no/~kjellare/misc/programming_goal.png</a></div><br></div></div></blockquote><div><br></div><div>Okay. Well that graphic is nice and simple. However, getting there through automation will be not be as easy as using Qgis to layout you map graphics and then exporting them into another design program like Scribus, Inkscape, or the GIMP to do your photo layout.</div><div><br></div><div>I'm assuming that you want to do this with desktop based tools. If you are up for installing apache then you could utilize a variety of web based toolkits to automate the generation of the map graphic and the photo layout. I'd look into Openlayers and Geoserver (in addition to Mapserver and Mapnik), and any web framework with a powerful templating engine like django.</div><div><br></div><div><br></div><div>If you want to stick to the desktop Mapserver and Mapnik do have the ability to create map graphics on the command line, but it's not as simple as automating the conversion of a shapefile to png. You need to style and label your shapefile data of points along with basemap data. Therefore you will be looking to render multiple layers into a single raster png. Shp2img of the mapserver project or a the use of mapnik python bindings will be able to do this without resorting to installing and setting up a webserver, but you'll still need to create a MAPFILE that defines the styling and labeling.</div><div><br></div><div><br></div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>If you want to create one PNG raster then QGIS or uDIG are the ideal tools to layout your png map. Just open all your shapefiles (you can even merge them all into one shapefile with ogr2ogr), label them, then zoom to each group and export a PNG file....</div><div><br></div><div>If you truly want to automate the creation of *many* PNG graphics then you'll need to look into scripting a mapping toolkit like Mapserver or Mapnik.</div></div></div></blockquote><div><br></div><div>Ouch. I see now that what looked like a way out of this (shp2img) is not accepting a shapefile as a input.</div><br></div></div></blockquote><div><br></div><div>No, shp2img needs a MAPFILE as input (the mapfile points to your shapefile(s) - or other datasources - and tells mapserver how to render them):</div><div><br></div><div><a href="http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img">http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img</a></div><div><br></div><div>I'd recommend looking into the QGIS "Export to mapserver" plugin as well.</div><div><br></div><div>Mapnik can use an XML based MAPFILE, but has no command line utility to generate a png from the MAPFILE, but simple script examples can be found here:</div><div><br></div><div><a href="http://trac.mapnik.org/wiki/XMLGettingStarted#Step2">http://trac.mapnik.org/wiki/XMLGettingStarted#Step2</a></div><div><br></div><div><br></div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">Dane</span></div></div></div></blockquote><br></div><div>Any idea on the complexity in getting the above scripting to work?</div><div><br></div></div></blockquote><div><br></div>Not too complex, but you will need to read up on how to create a MAPFILE.</div><div><br></div><div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Sincerely,</div><div><br></div><div>Kjell Are Refsvik</div><div>Norway</div><div><br></div></div>_______________________________________________<br>Discuss mailing list<br><a href="mailto:Discuss@lists.osgeo.org">Discuss@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/discuss<br></blockquote></div><br></div></body></html>