claeis / iox-ili

implementation of IOX API
3 stars 8 forks source link

Iox2wkb only generates binaries for 3D geometries in Extended Well-Known Binary format #87

Closed yesidpol closed 4 years ago

yesidpol commented 4 years ago

In the class Iox2wkb, on line 912 is added the flag WKBConstants.ewkbIncludesZ when the geometry is 3D. But that means it is always added the Extended Well-Known Binary format.

Would it be possible to choose the standard Well-Known Binary format?

claeis commented 4 years ago

Not yet. I think the proper approach to add it, is similar to the selecton of the byte ordering. That is: add a new, more general constructor:

  public Iox2wkb(int outputDimension, java.nio.ByteOrder byteOrder, boolean asEWKB)