public void setSRID(int SRID) { super.setSRID(SRID); }
public void setSRID(int SRID) { super.setSRID(SRID); }
/** * Create the LinearRing. * * @param geometryFactory The geometry factory used for the build. * @return LinearRing geometry created. */ public Geometry create(GeometryFactory geometryFactory) { try { Coordinate[] coords = (Coordinate[]) coordinateList.toArray(new Coordinate[coordinateList.size()]); LinearRing ring = geometryFactory.createLinearRing(coords); ring.setUserData(getSRS()); ring.setSRID(getSRID()); return ring; } catch (TopologyException e) { LOGGER.log(Level.FINE, "Caught Topology exception in GMLLinearRingHandler", e); return null; } } }
ring.setSRID(SRID);
private Polygon parsePolygon(ValueGetter data, boolean haveZ, boolean haveM, int srid) { int holecount = data.getInt() - 1; LinearRing[] rings = new LinearRing[holecount]; LinearRing shell = parseLinearRing(data, haveZ, haveM); shell.setSRID(srid); for (int i = 0; i < holecount; i++) { rings[i] = parseLinearRing(data, haveZ, haveM); rings[i].setSRID(srid); } return jtsFactory.getGeometryFactory().createPolygon(shell, rings); }
ls.setSRID(srid);
/** * Parse the given {@link org.postgis.binary.ValueGetter} into a JTS * {@link org.locationtech.jts.geom.Polygon}. * * @param data {@link org.postgis.binary.ValueGetter} to parse. * @param haveZ True if the {@link org.locationtech.jts.geom.Polygon} has a Z component. * @param haveM True if the {@link org.locationtech.jts.geom.Polygon} has a M component. * * @return The parsed {@link org.locationtech.jts.geom.Polygon}. */ private Polygon parsePolygon(ValueGetter data, boolean haveZ, boolean haveM, int srid) { int holecount = data.getInt() - 1; LinearRing[] rings = new LinearRing[holecount]; LinearRing shell = this.parseLinearRing(data, haveZ, haveM); shell.setSRID(srid); for(int i = 0; i < holecount; ++i) { rings[i] = this.parseLinearRing(data, haveZ, haveM); rings[i].setSRID(srid); } return JtsGeometry.geofac.createPolygon(shell, rings); }