@Test public void testGMLNoSchemaUnrelated() throws Exception { URL url = TestData.getResource(this, "states_noschema_unrelated_atts.xml"); InputStream in = url.openStream(); GML gml = new GML(Version.GML3); SimpleFeatureCollection fc = gml.decodeFeatureCollection(in, true); assertEquals(2, fc.size()); SimpleFeatureType schema = fc.getSchema(); assertNotNull(schema.getGeometryDescriptor()); assertEquals(9, schema.getAttributeDescriptors().size()); Map<String, Integer> attributePositions = getAttributePositionsMap(schema); assertTrue( attributePositions .keySet() .containsAll( Arrays.asList( "the_geom", "P_MALE", "STATE_NAME", "P_FEMALE", "STATE_FIPS", "SAMP_POP"))); assertTrue(attributePositions.get("STATE_NAME") < attributePositions.get("STATE_FIPS")); assertTrue(attributePositions.get("P_MALE") < attributePositions.get("P_FEMALE")); assertTrue(attributePositions.get("P_FEMALE") < attributePositions.get("SAMP_POP")); }
public SimpleFeatureCollection decodeFeatureCollection(InputStream in) throws IOException, SAXException, ParserConfigurationException { return decodeFeatureCollection(in, false); }
GML { public SimpleFeatureCollection decodeFeatureCollection(InputStream in) throws IOException, SAXException, ParserConfigurationException { return decodeFeatureCollection(in, false); } }
GML { public SimpleFeatureCollection decodeFeatureCollection(InputStream in) throws IOException, SAXException, ParserConfigurationException { return decodeFeatureCollection(in, false); } GML(Version version); }
GML { public SimpleFeatureCollection decodeFeatureCollection(InputStream in) throws IOException, SAXException, ParserConfigurationException { return decodeFeatureCollection(in, false); } 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); SimpleFeatureCollection decodeFeatureCollection(
            InputStream in, boolean computeFullFeatureType); SimpleFeatureIterator decodeFeatureIterator(InputStream in); SimpleFeatureIterator decodeFeatureIterator(InputStream in, QName elementName); }
GML { public SimpleFeatureCollection decodeFeatureCollection(InputStream in) throws IOException, SAXException, ParserConfigurationException { return decodeFeatureCollection(in, false); } 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); SimpleFeatureCollection decodeFeatureCollection(
            InputStream in, boolean computeFullFeatureType); SimpleFeatureIterator decodeFeatureIterator(InputStream in); SimpleFeatureIterator decodeFeatureIterator(InputStream in, QName elementName);  }