== GIS Import/Export == This page hosts the detailed specification for the [https://blueprints.launchpad.net/sahana3/+spec/gis-import-export Blueprint for the GIS Import/Export]. We need to be able to Import & Export these XML formats to/from the Database: * GeoRSS (URL fetch/publish) * GPX (File upload/download) * GML (? Low priority, not used much in real world) * KML (File upload/download & URL fetch/publish) * OSM (File upload/download) This is probably best-done using an XSD parser: * [http://georss.org GeoRSS] * http://georss.org/xml/1.1/georss.xsd * http://georss.org/xml/1.1/gmlgeorss.xsd * GPX * http://www.topografix.com/gpx/1/1/gpx.xsd * GML * http://schemas.opengis.net/gml/3.2.1/ * KML * http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd * OSM * http://dev.openstreetmap.org/~kleptog/osm-0.5.dtd Many options available for XML Import/Export, e.g.: * PyRXP: http://www.reportlab.org/pyrxp.html * Faster & optionally validating (DTD, XSD?), but requires compiling into Python so less portable (unless using pyexpat wrapper) * PyRXP_Documentation.pdf * XSD->DTD conversion (our schema are in XSD format) * http://crism.maden.org/consulting/pub/xsl/xsd2dtd.xsl * http://weblogs.asp.net/rchartier/archive/2006/03/21/440782.aspx * http://lists.xml.org/archives/xml-dev/200504/msg00757.html * http://bytes.com/groups/xml/85935-converting-xsd-into-dtd * pyexpat (non-validating & slower, but built-in to Python 2) * http://docs.python.org/library/pyexpat.html This is another option for Import (via Python structures): * http://www.rexx.com/~dkuhlman/generateDS.html ---- [[wiki:BluePrintGeographicInformationSystems GIS BluePrints]]