/** * Test multi polygon geometries read from a GML 3.1 file * * @throws Exception if an error occurs */ @Test public void testMultiPolygonGml31() throws Exception { InstanceCollection instances = AbstractHandlerTest.loadXMLInstances( getClass().getResource("/data/gml/geom-gml31.xsd").toURI(), getClass().getResource("/data/polygon/sample-multipolygon-gml31.xml").toURI()); // one instance expected ResourceIterator<Instance> it = instances.iterator(); try { // MultiPolygonProperty with LinearRings defined through coordinates assertTrue("First sample feature missing", it.hasNext()); Instance instance = it.next(); checkPolygonPropertyInstance(instance); } finally { it.close(); } }