Measured Shapefiles


I have made some modifications to the shapefile code to support measured shapefiles. This implementation stores the measures as a new attribute named "the_meas" simular to the attribute "the_geom". I also created a new java class named Measures which is the type for the the_meas attribute. When reading a measured shapefiles I read the min, max, and measures for each point and store them in a Measures class. This is then attached to the data as the the_meas attribute. The files affected include: - to include the the_meas attribute. - new. - isMeasuredType function. - to read the measures. - getMeasures function - dito - dito - dito - dito




April 10, 2015, 3:31 PM

CodeHaus Comment From: klempner - Time: Fri, 23 Feb 2007 07:43:54 -0600
Hi ,

I would also greatly appreciate to see measured shapefiles being supported by GeoTools.

to David R Robison: the attached seems not to be fully compatible with the current release of GeoTools (2.3.0).

do you have a updated your classes for the changes and if so could you please post them.

thanks a lot


April 10, 2015, 3:31 PM

CodeHaus Comment From: jive - Time: Fri, 6 Jul 2007 15:27:06 -0500
David and Peter - if you want to update the code for 2.4.x we have had a policy change in GeoTools. You can set up your own "unsupported" module to work on this problem, and when you have the needed amount of test coverage (and some user docs) it will be made available as part of the library.

April 10, 2015, 3:31 PM

CodeHaus Comment From: - Time: Fri, 16 Nov 2007 03:01:35 -0600
Is there any activity on this topic? I would need measured shape files for a project I'm working on.

I would be glad to take this up and contribute it. Just let me know what the steps are on setting up an "unsupported" module.

April 10, 2015, 3:31 PM

CodeHaus Comment From: aaime - Time: Sun, 28 Mar 2010 04:53:23 -0500
For those wondering, this issue was not assigned to anyone, so nobody noticed it for years.

I probably don't have time to look into it in the short term, but at least now I know it's there.

I'm not so sure adding a measure attribute is the way to go though... why not keep the M in the geometry, there is a measure for each point in the geometry anyways no?

Jody Garnett
August 27, 2016, 9:15 AM

That is correct, we can work with custom CoordinateSequence class as needed.








Fix versions

Affects versions