GMLReader implements ParserReader { @Override public Geometry getGeometry() { return geometry; } protected  GMLReader(Element gmlElement); protected  GMLReader(Geometry geometry, int srsDimension, String srsURI); protected  GMLReader(Geometry geometry, int srsDimension); @Override Geometry getGeometry(); @Override String getSrsURI(); @Override CoordinateSequenceDimensions getDimensions(); @Override DimensionInfo getDimensionInfo(); static GMLReader extract(String gmlText); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testGetGeometryPoint() { GMLReader instance = new GMLReader(GEOMETRY_FACTORY.createPoint(new CoordinateXY(11.0, 12.0)), 2); Geometry expResult = GEOMETRY_FACTORY.createPoint(new CustomCoordinateSequence(CoordinateSequenceDimensions.XY, "11.0 12.0")); Geometry result = instance.getGeometry(); assertEquals(expResult, result); }
@Test public void testGetGeometryPointZ() { GMLReader instance = new GMLReader(GEOMETRY_FACTORY.createPoint(new Coordinate(11.0, 12.0, 13.0)), 2); Geometry expResult = GEOMETRY_FACTORY.createPoint(new CustomCoordinateSequence(CoordinateSequenceDimensions.XYZ, "11.0 12.0 8.0")); Geometry result = instance.getGeometry(); assertEquals(expResult, result); }