@Test public void testGML3FeatureIteratorGeometryMorph() throws Exception { URL url = TestData.getResource(this, "states.xml"); InputStream in = url.openStream(); QName name = new QName("http: GML gml = new GML(Version.GML3); SimpleFeatureIterator iter = gml.decodeFeatureIterator(in, name); assertTrue(iter.hasNext()); int count = 0; while (iter.hasNext()) { SimpleFeature feature = iter.next(); assertNotNull(feature); count++; } assertEquals(2, count); }
public SimpleFeatureIterator decodeFeatureIterator(InputStream in) throws IOException, ParserConfigurationException, SAXException { return decodeFeatureIterator(in, null); }
GML { public SimpleFeatureIterator decodeFeatureIterator(InputStream in) throws IOException, ParserConfigurationException, SAXException { return decodeFeatureIterator(in, null); } }
GML { public SimpleFeatureIterator decodeFeatureIterator(InputStream in) throws IOException, ParserConfigurationException, SAXException { return decodeFeatureIterator(in, null); } GML(Version version); }
GML { public SimpleFeatureIterator decodeFeatureIterator(InputStream in) throws IOException, ParserConfigurationException, SAXException { return decodeFeatureIterator(in, null); } GML(Version version); void setLegacy(boolean legacy); void setNamespace(String prefix, String namespace); void setEncoding(Charset encoding); void setBaseURL(URL baseURL); void setCoordinateReferenceSystem(CoordinateReferenceSystem crs); @SuppressWarnings("unchecked") void encode(OutputStream out, SimpleFeatureCollection collection); void encode(OutputStream out, SimpleFeatureType simpleFeatureType); SimpleFeatureType decodeSimpleFeatureType(URL schemaLocation, Name typeName); SimpleFeatureCollection decodeFeatureCollection(InputStream in); SimpleFeatureIterator decodeFeatureIterator(InputStream in); SimpleFeatureIterator decodeFeatureIterator(InputStream in, QName elementName); }
GML { public SimpleFeatureIterator decodeFeatureIterator(InputStream in) throws IOException, ParserConfigurationException, SAXException { return decodeFeatureIterator(in, null); } GML(Version version); void setLegacy(boolean legacy); void setNamespace(String prefix, String namespace); void setEncoding(Charset encoding); void setBaseURL(URL baseURL); void setCoordinateReferenceSystem(CoordinateReferenceSystem crs); @SuppressWarnings("unchecked") void encode(OutputStream out, SimpleFeatureCollection collection); void encode(OutputStream out, SimpleFeatureType simpleFeatureType); SimpleFeatureType decodeSimpleFeatureType(URL schemaLocation, Name typeName); SimpleFeatureCollection decodeFeatureCollection(InputStream in); SimpleFeatureIterator decodeFeatureIterator(InputStream in); SimpleFeatureIterator decodeFeatureIterator(InputStream in, QName elementName);  }