GML Files

Top  Previous  Next

MPSuperShape can import and export GML files that use MPSuperShape's own GML schema. GML ('Geography Markup Language') is an open standard based on XML, that is intended for geographical information. The GML standard is controlled by the Open Geospatial Consortium. MPSuperShape's GML schema uses the namespace prefix of mpss. The XML schema is available for download here:

 

http://www.mpsupershape.com/mpss/mpss.xsd

 

Note that MPSuperShape currently only supports simple polygons, polylines (linestrings), and pushpins in GML. All coordinates must be geographic decimal longitude and latitude, using the WGS84 geoid. Western longitudes and southern latitudes are negative.

 

The following GML file was created by MPSuperShape and demonstrates the expected input structure:

 

<?xml version="1.0" encoding="utf-8"?>

<!--GML / MapPoint Shape File, created by MPSuperShape, http://www.mpsupershape.com-->

<mpss:Mappoint xmlns:gml="http://www.opengis.net/gml" xmlns:mpss="http://www.mpsupershape.com/mpss mpss.xsd">

<mpss:Shape gml:id="MPSS_1">

 <mpss:lineColor>65535</mpss:lineColor>

 <mpss:fillColor>16777164</mpss:fillColor>

 <gml:extentOf>

  <gml:Polygon>

   <gml:outerBoundaryIs>

    <gml:LinearRing>

     <gml:coordinates>42.8398103825748,-86.1625626403838 56.8856766633689,-90.1826373953372 41.0674982797354,-107.38607657142 39.026186093688,-87.8018286265433 35.1451506000012,-97.8615307342261 26.2126444000751,-85.8082141634077 33.4095101617277,-80.684738215059 39.9211347196251,-82.66426730901 </gml:coordinates>

    </gml:LinearRing>

   </gml:outerBoundaryIs>

  </gml:Polygon>

 </gml:extentOf>

</mpss:Shape>

<mpss:Shape gml:id="MPSS_2">

 <mpss:lineColor>65535</mpss:lineColor>

 <mpss:fillColor>16777164</mpss:fillColor>

 <gml:extentOf>

  <gml:Polygon>

   <gml:outerBoundaryIs>

    <gml:LinearRing>

     <gml:coordinates>53.1252429261804,-122.067562770098 43.0537335667759,-122.265811543912 41.8239579163492,-110.167436040938 37.2956670820713,-110.613080542535 37.3712216410786,-109.970013219863 38.5346278734505,-105.365270376205 45.4842651262879,-101.587661867961 37.6937579456717,-96.9448210950941 49.2376315779984,-90.8095932751894 46.1763152852654,-112.190568884835 46.4890441764146,-112.06296379678 54.6802559494972,-113.247962649912 </gml:coordinates>

    </gml:LinearRing>

   </gml:outerBoundaryIs>

  </gml:Polygon>

 </gml:extentOf>

</mpss:Shape>

<mpss:Pin gml:id="Depot 1">

 <mpss:Description>This is a customer pin.</mpss:Description>

 <gml:Point>

  <gml:pos>39.2980770953,-76.8252131156623</gml:pos>

 </gml:Point>

</mpss:Pin>

<mpss:Pin gml:id="Depot 2">

 <mpss:Description>This is a second customer pin.</mpss:Description>

 <gml:Point>

  <gml:pos>39.0709210652858,-76.642107591033</gml:pos>

 </gml:Point>

</mpss:Pin>

</mpss:Mappoint>