public int SRID() { if (esriSR == null) return 0; return esriSR.getID(); }
public int SRID() { if (esriSR == null) return 0; return esriSR.getID(); }
@Override public void serialize(SpatialReference spatialReference, JsonGenerator jsonGenerator, SerializerProvider arg2) throws IOException, JsonProcessingException { int wkid = spatialReference.getID(); jsonGenerator.writeStartObject(); jsonGenerator.writeObjectField("wkid", wkid); jsonGenerator.writeEndObject(); }
public Geom transform(int srid) { if (srid == SPATIAL_REFERENCE.getID()) { return this; } return bind(g, srid); }
public Geom transform(int srid) { if (srid == SPATIAL_REFERENCE.getID()) { return this; } return bind(g, srid); }
/** * Returns string representation of the class for debugging purposes. The * format and content of the returned string is not part of the contract of * the method and is subject to change in any future release or patch * without further notice. */ public String toString() { return "[ tol: " + getTolerance() + "; wkid: " + getID() + "; wkt: " + getText() + "]"; } }
/** * Returns string representation of the class for debugging purposes. The * format and content of the returned string is not part of the contract of * the method and is subject to change in any future release or patch * without further notice. */ public String toString() { return "[ tol: " + getTolerance() + "; wkid: " + getID() + "; wkt: " + getText() + "]"; } }
public Geom transform(int srid) { if (srid == NO_SRID) { return new SimpleGeom(mg.getGeometry()); } if (srid == mg.getSpatialReference().getID()) { return this; } return bind(mg.getGeometry(), srid); }
public Geom transform(int srid) { if (srid == NO_SRID) { return new SimpleGeom(mg.getGeometry()); } if (srid == mg.getSpatialReference().getID()) { return this; } return bind(mg.getGeometry(), srid); }
private static BytesWritable serialize(MapGeometry mapGeometry){ int wkid = 0; SpatialReference spatialRef = mapGeometry.getSpatialReference(); if (spatialRef != null){ wkid = spatialRef.getID(); } Geometry.Type esriType = mapGeometry.getGeometry().getType(); OGCType ogcType; switch (esriType){ case Point: ogcType = OGCType.ST_POINT; break; case Polyline: ogcType = OGCType.ST_LINESTRING; break; case Polygon: ogcType = OGCType.ST_POLYGON; break; default: ogcType = OGCType.UNKNOWN; } return serialize(mapGeometry.getGeometry(), wkid, ogcType); }