Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jts-dev] proposing an api change

Thanks for the feedback everyone, at some point during the development I made a small blog post on the changes:

https://www.how2map.com/2018/08/jts-1151-and-xyzm-development.html

--
Jody Garnett


On Tue, 17 Jul 2018 at 14:13, Jody Garnett <jody.garnett@xxxxxxxxx> wrote:
LocationTech has a monthly meeting of project leads, and today we used the opportunity to discuss making an API change to JTS.

Currently we reply on client code to track the use of optional Z and M measurements (with javadoc noting that dimensions hight then 2 are up to client code to manage).

To support formats that include optional Z and M measurements I am proposing an API change. Adding CoordinateSequence.getNumberOfMeasures(), and adding Coordinate.getM().

I intended to take advantage of java interface "default" methods to update the interfaces without introducing an API break:

  default int  getNumberAttributes(){
       return 0;
  }


Back to the top