<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space">
<DIV><SPAN class=686070513-08072008><FONT face=Arial size=2>Kjell,
</FONT></SPAN></DIV>
<DIV><SPAN class=686070513-08072008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=686070513-08072008><FONT face=Arial size=2>For ease of setup, I
definitely recommend using William Kyngesburye's binaries found at: <A
href="http://www.kyngchaos.com/"><FONT
color=#000000>http://www.kyngchaos.com/</FONT></A> with your system
Python. It gives you a lot of OS GIS tools, and they just work.
</FONT></SPAN></DIV>
<DIV><SPAN class=686070513-08072008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=686070513-08072008><FONT face=Arial size=2>If you are looking
for a python module to read the EXIF data, I recommend EXIF.py. You can
find it at <FONT face="Times New Roman" size=3> </FONT><A
href="http://sourceforge.net/projects/exif-py/" target=_blank><FONT
face="Times New Roman" color=#000000
size=3>http://sourceforge.net/project<WBR>s/exif-py/</FONT></A></FONT></SPAN></DIV>
<DIV><SPAN class=686070513-08072008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=686070513-08072008><FONT face=Arial size=2>I put together a
python module for roughly georeferencing air photos based on EXIF data.
You might be able to harvest something useful out of there. The module is
called imageplop, I also have an example script that I use to call it and glue
everything together. </FONT></SPAN></DIV>
<DIV><SPAN class=686070513-08072008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=686070513-08072008><FONT size=2><FONT size=3>You can find the
scripts at:<BR></FONT><A
href="http://code.google.com/p/flatlandmaps/source/browse/trunk/imageplop.py"
target=_blank><FONT color=#000000
size=3>http://code.google.com/p<WBR>/flatlandmaps/source/browse<WBR>/trunk/imageplop.py</FONT></A><BR><A
href="http://code.google.com/p/flatlandmaps/source/browse/trunk/osGetImagedata.py"
target=_blank><FONT color=#000000
size=3>http://code.google.com/p<WBR>/flatlandmaps/source/browse<WBR>/trunk/osGetImagedata.py</FONT></A></FONT></SPAN></DIV>
<DIV><SPAN class=686070513-08072008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=686070513-08072008><FONT face=Arial size=2><FONT
face="Times New Roman" size=3>If you want to play with it, I put a zip file
containing sample data<BR>at: </FONT><A
href="http://www.flatlandmaps.com/lab/data/sampleData.zip" target=_blank><FONT
face="Times New Roman" color=#000000
size=3>http://www.flatlandmaps.com<WBR>/lab/data/sampleData.zip</FONT></A><FONT
face="Times New Roman" size=3> The archive<BR>contains several air photos
that include GPS data in their EXIF<BR>headers, and a geotiff elevation grid
clipped to the area. The photos<BR>are from two different flight
lines.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=686070513-08072008><FONT face=Arial size=2><FONT
face="Times New Roman" size=3></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=686070513-08072008><FONT face=Arial size=2><FONT
face="Times New Roman" size=3>Let me know if you have any questions about
pulling EXIF data from images and using it to build shapefiles.
</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=686070513-08072008><FONT face=Arial size=2><FONT
face="Times New Roman" size=3></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=686070513-08072008><FONT face=Arial size=2><FONT
face="Times New Roman" size=3>David.</FONT></DIV>
<DIV><BR></DIV></FONT></SPAN>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
discuss-bounces@lists.osgeo.org [mailto:discuss-bounces@lists.osgeo.org] <B>On
Behalf Of </B>Kjell Are Refsvik<BR><B>Sent:</B> Monday, July 07, 2008 6:54
PM<BR><B>To:</B> OSGeo Discussions<BR><B>Subject:</B> Re: [OSGeo-Discuss] Call
for help: GDAL and txt2shp.py<BR><BR></FONT></DIV><BR>
<DIV>
<DIV>On 7. juli. 2008, at 23.54, Dane Springmeyer wrote:</DIV>
<BLOCKQUOTE type="cite">
<DIV
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space">
<DIV>
<DIV>
<BLOCKQUOTE type="cite">
<DIV
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space">
<DIV>
<DIV><FONT class=Apple-style-span>...</FONT>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></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>Sorry about the lack of background info. </DIV>
<DIV><BR></DIV>
<DIV>I am on a MacOS X 10.5.2 and have downloaded the latest version of Perl
and Python and all the dependencies needed to run the gdal package.</DIV>
<DIV><BR></DIV>
<DIV>As mentioned earlier, my goal is to set up a basic workflow to do a
mashup between shapefiles that I have, and geodata inside jpeg files collected
with a garmin gpx file and injected using gpsbabel. </DIV>
<DIV><BR></DIV>
<DIV>As a non-programmer, and short on time, I am really hoping to be able to
tie together existing software (like <SPAN class=Apple-style-span
style="FONT-SIZE: 12px; COLOR: rgb(51,51,51); LINE-HEIGHT: 21px; FONT-FAMILY: Verdana">txt2shp.py)
</SPAN>and do some easy basic shell-scripting to get this to work.</DIV>
<DIV><BR></DIV>
<DIV>Going into this, I was hoping that I would come across some sort of swiss
army knife style software (like exiftool or gpsbabel) that would let me add
mashup-data to an existing shapefile and convert files to web-compliant
formats. Seems like </DIV>
<DIV><BR></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>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></DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>Darn. I seem to be forced into setting up a complete map server to do
this? Automation is kinda the whole deal of this part of my
thesis. </DIV>
<DIV><BR></DIV>
<DIV>For those of you wondering what the purpose of all of this is, my thesis
is about exploring technical challenges and opportunities as they related to
digital photographs. As the implementation goes, the argument behind not
simply using a classic Google Maps mashup has to do with
longevity/preservation and the fact that I want to make web publishable albums
that tries to relate to as simple/few/standard elements as possible to be
accessible far into the future. </DIV><BR>
<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">I'm
assuming that you want to do this with desktop based tools.
</SPAN></DIV></DIV></DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>Yes.</DIV><BR>
<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">If
you are up for installing apache </SPAN></DIV></DIV></DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>already a part of my Mac OS X installation.</DIV><BR>
<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">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.</SPAN></DIV></DIV></DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>Hm... Sounds like an extensive solution that requires a lot of work. I
would love to know more about how accessible these technologies are. I am just
afraid that I am looking at 4-8 weeks of installing and figuring out how these
solutions work, only to find out that I need to learn Python and Ruby to get
it to work?</DIV>
<DIV><BR></DIV>
<DIV>Yes. I know what you're saying (and I am always telling myself - don't
shy away from something just because it looks complicated, but I am really
hoping to finish my thesis in september :-), and my coding this solution is
simply icing on the cake in terms of the weight it carries in my
thesis.</DIV><BR>
<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">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.</SPAN></DIV></DIV></DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>Great. So any estimate on the time needed to get to grips with these
things?</DIV><BR>
<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">...</SPAN></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></DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>I see. So basically - no way around installing a mapserver then
:-)</DIV><BR>
<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">I'd
recommend looking into the QGIS "Export to mapserver" plugin as
well.</SPAN></DIV></DIV></DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>OK. </DIV><BR>
<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">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:</SPAN></DIV>
<DIV><BR></DIV>
<DIV><A
href="http://trac.mapnik.org/wiki/XMLGettingStarted#Step2">http://trac.mapnik.org/wiki/XMLGettingStarted#Step2</A></DIV></DIV></DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>OK. On to install the mapserver then, and to read up on the supplied
url. </DIV><BR>
<BLOCKQUOTE type="cite">
<DIV
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space">
<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><SPAN class=Apple-style-span
style="-webkit-text-stroke-width: -1"><FONT class=Apple-style-span
color=#144fae><SPAN class=Apple-style-span
style="-webkit-text-stroke-width: 0"><BR></SPAN></FONT>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></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>Will dive in and see what happens. </DIV>
<DIV><BR></DIV>
<DIV>Kjell Are</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>
<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><A
href="http://lists.osgeo.org/mailman/listinfo/discuss">http://lists.osgeo.org/mailman/listinfo/discuss</A><BR></BLOCKQUOTE></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></BLOCKQUOTE></BODY></HTML>