Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.1.M0, 2.2-RC3
-
Fix Version/s: 2.7.6
-
Component/s: shapefile plugin
-
Labels:None
-
Environment:GeoTools 2
Description
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:
ShapeFileDatasource.java - to include the the_meas attribute.
Measures.java - new.
ShapeType.java - isMeasuredType function.
ShapeFileReader.java - to read the measures.
ShapeHandler.java - getMeasures function
MultiLinehandler.java - dito
MultiPointHandler.java - dito
PointHandler.java - dito
PolygonHandler.java - dito
-
Hide
- org.geotools.data.zip
- 13/Jun/06 2:11 PM
- 69 kB
- David R Robison
-
- shapefile/dbf/DbaseFileException.java 0.6 kB
- shapefile/dbf/DbaseFileHeader.java 20 kB
- shapefile/dbf/DbaseFileReader.java 15 kB
- shapefile/dbf/DbaseFileWriter.java 10 kB
- shapefile/Lock.java 7 kB
- shapefile/prj/PrjFileReader.java 4 kB
- shapefile/ShapefileDataStore.java 53 kB
- shapefile/ShapefileDataStoreFactory.java 8 kB
- shapefile/ShapefileUtilities.java 2 kB
- shapefile/shp/IndexFile.java 7 kB
- shapefile/shp/JTSUtilities.java 12 kB
- shapefile/shp/Measures.java 1 kB
- shapefile/shp/MultiLineHandler.java 14 kB
- shapefile/shp/MultiPointHandler.java 6 kB
- shapefile/shp/PointHandler.java 4 kB
- shapefile/shp/PolygonHandler.java 17 kB
- shapefile/shp/ShapefileException.java 1 kB
- shapefile/shp/ShapefileHeader.java 4 kB
- shapefile/shp/ShapefileReader.java 20 kB
- shapefile/shp/ShapefileWriter.java 9 kB
- shapefile/shp/ShapeHandler.java 3 kB
- shapefile/shp/ShapeType.java 6 kB
- shapefile/shp/xml/IdInfo.java 1.0 kB
- shapefile/shp/xml/Metadata.java 0.9 kB
- shapefile/shp/xml/ShpXmlFileReader.java 2 kB
- shapefile/StreamLogging.java 0.7 kB
-
Hide
- updated.zip
- 27/Oct/03 3:43 PM
- 27 kB
- David R Robison
-
- ShapefileDataSource.java 28 kB
- MultiLineHandler.java 9 kB
- MultiPointHandler.java 6 kB
- PointHandler.java 3 kB
- PolygonHandler.java 17 kB
- ShapefileReader.java 11 kB
- ShapeHandler.java 3 kB
- ShapeType.java 6 kB
- Measures.java 1 kB
Activity
I would also greatly appreciate to see measured shapefiles being supported by GeoTools.
to David R Robison: the updated.zip 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
Peter
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.
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?