Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

i'm newbie using openlayers, there are no error in my firebug,
but, my GML can't show in my browser, what should i do?

this is my GML from result of converting my shapefile with ogr2gui :

    <?xml version="1.0" encoding="utf-8" ?>
<ogr:FeatureCollection
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://ogr.maptools.org/bataskabupaten_poly.xsd"
     xmlns:ogr="http://ogr.maptools.org/"
     xmlns:gml="http://www.opengis.net/gml">
  <gml:boundedBy>
    <gml:Box>
      <gml:coord><gml:X>478266.71875</gml:X><gml:Y>9225540</gml:Y></gml:coord>
      <gml:coord><gml:X>529920.5</gml:X><gml:Y>9291891</gml:Y></gml:coord>
    </gml:Box>
  </gml:boundedBy>

  <gml:featureMember>
    <ogr:batas_kabupaten_poly fid="batas_kabupaten_poly.0">
      <ogr:geometryProperty><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>512850.53125,9268024.0 512921.875,9267914.0 512966.40625,9267855.0 513016.0625,9267800.0 513045.09375,9267757.0 513064.40625,9267704.0 513089.5625,9267643.0 513184.46875,9267479.0 513202.0625,9267448.0 513261.875,9267363.0 513375.9375,9267200.0 513443.3125,9267104.0 513483.9375,9267049.0 513549.03125,9266957.0 513584.625,9266902.0 513665.09375,9266795.0 513732.75,9266705.0 513816.84375,9266578.0 513863.21875,9266514.0 513953.5625,9266381.0 513975.65625,9266348.0 514071.03125,9266243.0 514125.59375,9266176.0 514181.0625,9266088.0 514204.59375,9266056.0 514278.8125,9265970.0 514394.25,9265813.0 514424.59375,9265777.0 514456.125,9265746.0 514478.9375,9265712.0 514505.34375,9265662.0 514542.375,9265609.0 514570.5625,9265581.0 514603.5,9265547.0 514683.65625,9265463.0 514750.5625,9265393.0 514913.75,9265245.0 514971.4375,9265201.0 515054.34375,9265119.0 515124.21875,9265049.0 515177.5,9264984.0 515229.71875,9264924.0 515343.90625,9264818.0 515399.78125,9264763.0 515462.40625,9264718.0 515640.28125,9264551.0 515788.46875,9264438.0 515829.5,9264407.0 516030.40625,9264271.0 516166.1875,9264196.0 516248.625,9264151.0 516327.28125,9264103.0 51... </gml:coordinates>
</gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty>
          <ogr:FIRST_PROP>Jawa Tengah</ogr:FIRST_PROP>
          <ogr:AREA>1582363704.750</ogr:AREA>
          <ogr:PERIMETER>264009.826</ogr:PERIMETER>
          <ogr:ACRES>391009.023</ogr:ACRES>
          <ogr:HECTARES>158236.370</ogr:HECTARES>
        </ogr:batas_kabupaten_poly>
      </gml:featureMember>
    </ogr:FeatureCollection>
share|improve this question
    
seems to be a projection no defined official example openlayers.org/dev/examples/gml/polygon.xml openlayers.org/dev/examples/gml-layer.html –  Mapperz May 14 '13 at 14:40
    
thanks, Mapperz so it's must .xml filetype? is there an application to convert shp to xml?? –  user18128 May 14 '13 at 16:11
    
looking at your gml and the example srid missing. –  Mapperz May 14 '13 at 16:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.