Difference between revisions of "Developing Geospatial Solutions using Open Source"

From OSGeo
Jump to navigation Jump to search
(GPS related - merge traces)
(Projection-Conversion - more code)
Line 69: Line 69:
  
 
{| class="wikitable" style="text-align:center" border="1" cellpadding="2"
 
{| class="wikitable" style="text-align:center" border="1" cellpadding="2"
| Use case || Description || Perl || Ruby || Python  
+
| Use case || Description || Perl || Ruby || Python || Java || JavaScript
 
|-
 
|-
 
| Change between projections  
 
| Change between projections  
|  
+
| Perform a Helmert Transform
 
| [https://secure.mysociety.org/cvstrac/dir?d=mysociety/perllib/Geo MySociety Code]
 
| [https://secure.mysociety.org/cvstrac/dir?d=mysociety/perllib/Geo MySociety Code]
 
|  
 
|  
 
| [http://gagravarr.org/code/#geo_helper geo_helper.py]
 
| [http://gagravarr.org/code/#geo_helper geo_helper.py]
 +
| [http://www.jstott.me.uk/jcoord/ Jcoord]
 +
| [http://www.jstott.me.uk/jscoord/ JScoord]
 
|-
 
|-
 
| Convert from lat+long to easting+northing
 
| Convert from lat+long to easting+northing
 
|
 
|
|
+
| [http://search.cpan.org/~toby/Geo-Coordinates-OSGB-1.07/lib/Geo/Coordinates/OSGB.pm Geo::Coordinates::OSGB]
 
|
 
|
 
| [http://gagravarr.org/code/#geo_helper geo_helper.py]
 
| [http://gagravarr.org/code/#geo_helper geo_helper.py]
 +
| [http://www.jstott.me.uk/jcoord/ Jcoord]
 +
| [http://www.jstott.me.uk/jscoord/ JScoord]
 
|}
 
|}
  

Revision as of 02:15, 19 October 2006

This is one of the three books identified by the Education and Curriculum Committee that should be written. The other books are Using Open Source GIS and Developing Web Mapping Solutions Using Open Source.

Approach for writing this book

Using the application and programming language categories from http://freegis.org we'll gather problems or use cases, maybe divide them into subproblems, and describe how they can be solved using the free tools.

The tools are programming languages, libraries, command line tools, and customizable applications.

This book is about "I know which problem I need to solve and it can't be solved, at least easily or without trouble, by simply using some free GIS tool".

We exclude web mapping problems from this one since it is the topic of book 3.

Provide here an analysis of the meta problem description above.

Copy the categories and

programming languages: C, C++, Java, Python, Tcl/Tk, Perl, (Visual) Basic, PHP, C#, Fortran, Delphi, Ruby, SWF, Other (Other has zero entries in freegis.org).

GPS related

  • Problem: Share GPS data between applications
    • Subproblem: Parse GPX
    • Explanation: GPX is an XML application for GPS data. Parsing gives us the GPS data.
  • Problem:
    • Subproblem: GeoTag Media
    • Explanation:
  • Problem:
    • Subproblem: Track logs
    • Explanation:
  • Problem: Edit a GPS track
    • example data
    • Requirements: Show the track on a map as editable lines, show the coordinates on a spreadsheet allowing edits, link the two representations
    • Subproblem: Import the GPS track to the editor
    • Subproblem: Export the track from the system
  • Problem: Merge GPS tracks
    • Explanation: Allow you to view several GPS traces, delete certain points, and average others together.
    • Use: You survey a route several times, and want a single trace of the best average over the traces


Use case Description Perl Ruby Python
Parse GPX What is GPX? Perl based solution Ruby based solution PyGPX
GeoTag Media RDFWeb geoloc_media.pl (original geoloc_media) Ruby? Python?
Track logs Geo::Track::Log Ruby Python

Projection-Conversion

  • Problem: Convert between WGS84 and local projections
  • Problem: Convert from lat+long to easting and northing, as used on printed maps
Use case Description Perl Ruby Python Java JavaScript
Change between projections Perform a Helmert Transform MySociety Code geo_helper.py Jcoord JScoord
Convert from lat+long to easting+northing Geo::Coordinates::OSGB geo_helper.py Jcoord JScoord

GPS and EXIF

  • Problem: Extract GPS exif tags from photos
  • Problem: Add GPS exif tags at the time a photo is taken
  • Problem: Add GPS exit tags to photos, based on the time they were taken and a GPS track
Use case Description Perl Ruby Python
Get GPS EXIF data Extract lat and long from GPS Exif tags pexif
Set GPS EXIF date Add lat and long GPS Exif tags pexif