提交 bfeedc4b authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Remove unused ValueGeometry.getSRID()

上级 182990a9
...@@ -178,35 +178,6 @@ public class ValueGeometry extends Value { ...@@ -178,35 +178,6 @@ public class ValueGeometry extends Value {
return ((Geometry) geometry).copy(); return ((Geometry) geometry).copy();
} }
/**
* Return the SRID (Spatial Reference Identifier).
*
* @return spatial reference identifier
*/
public int getSRID() {
if (bytes.length >= 9) {
boolean bigEndian;
switch (bytes[0]) {
case 0:
bigEndian = true;
break;
case 1:
bigEndian = false;
break;
default:
return 0;
}
if ((bytes[bigEndian ? 1 : 4] & 0x20) != 0) {
int srid = Bits.readInt(bytes, 5);
if (!bigEndian) {
srid = Integer.reverseBytes(srid);
}
return srid;
}
}
return 0;
}
private void calculateInfo() { private void calculateInfo() {
if (dimensionSystem < 0) { if (dimensionSystem < 0) {
EnvelopeAndDimensionSystemTarget target = new EnvelopeAndDimensionSystemTarget(); EnvelopeAndDimensionSystemTarget target = new EnvelopeAndDimensionSystemTarget();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论