Skip to content

Commit

Permalink
change variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbae committed Sep 12, 2019
1 parent 0409489 commit 0707388
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,19 @@ abstract class SQLServerSpatialDatatype {
/**
* Serializes the Geogemetry/Geography instance to WKB.
*
* @param noZM
* flag to indicate if Z and M coordinates should be included
* @param excludeZMFromWKB
* flag to indicate if Z and M coordinates should be excluded from the WKB representation
* @param type
* Type of Spatial Datatype (Geometry/Geography)
*/
protected void serializeToWkb(boolean noZM, SQLServerSpatialDatatype type) {
ByteBuffer buf = ByteBuffer.allocate(determineWkbCapacity(noZM));
protected void serializeToWkb(boolean excludeZMFromWKB, SQLServerSpatialDatatype type) {
ByteBuffer buf = ByteBuffer.allocate(determineWkbCapacity(excludeZMFromWKB));
createSerializationProperties();

buf.order(ByteOrder.LITTLE_ENDIAN);
buf.putInt(srid);
buf.put(version);
if (noZM) {
if (excludeZMFromWKB) {
byte serializationPropertiesNoZM = serializationProperties;
if (hasZvalues) {
serializationPropertiesNoZM -= hasZvaluesMask;
Expand Down Expand Up @@ -136,7 +136,7 @@ protected void serializeToWkb(boolean noZM, SQLServerSpatialDatatype type) {
}
}

if (!noZM) {
if (!excludeZMFromWKB) {
if (hasZvalues) {
for (int i = 0; i < numberOfPoints; i++) {
buf.putDouble(zValues[i]);
Expand All @@ -151,7 +151,7 @@ protected void serializeToWkb(boolean noZM, SQLServerSpatialDatatype type) {
}

if (isSinglePoint || isSingleLineSegment) {
if (noZM) {
if (excludeZMFromWKB) {
wkbNoZM = buf.array();
} else {
wkb = buf.array();
Expand Down Expand Up @@ -179,7 +179,7 @@ protected void serializeToWkb(boolean noZM, SQLServerSpatialDatatype type) {
}
}

if (noZM) {
if (excludeZMFromWKB) {
wkbNoZM = buf.array();
} else {
wkb = buf.array();
Expand Down

0 comments on commit 0707388

Please sign in to comment.