Hi there,

I am using geotools 2.2M0 and I have the following problem. In certain parts of an XML document I have GML elements that describe some geometries, like so: 
     <gml:extentOf>
        <gml:Polygon srsName="urn:epsg: v6.5:coordinateReferenceSystem
:4269">
          <gml:exterior>
            <gml:LinearRing>
              <gml:coordinates>-87.928074748063,41.9915776034426,669.636511511529</gml:coordinates>
            </gml:LinearRing>
          </gml:exterior>
        </gml:Polygon>
      </gml:extentOf>      

I tried using the classes in org.geotools.gml.(GMLFilterDocument and GMLFilterGeometry) but I coudn't get the geometry information out of my document. So I looked in the source code and I believe I have found where the problem is. As far as I see (and at least considering the example above) the problem is that in class org.geotools.gml.SubHandlerPolygon the <gml:exterior> element is not supposed to be there but instead <gml:outerBoundaryIs>. In the gml schema file, however, the exterior element can be instantiated since the abstract attribute is not set to true. And I have two questions:

1. Which version of GML does the package expect and support?
2. Does anyone know what is the difference between these elements <gml:exterior> and <gml:outerBoundaryIs> and between <gml:interior> and <gml:innerBoundaryIs>?
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to