Hi guys!
Our customers send us their shapefiles drawned by them in different gis
programs.
And from time to time we get such a shapefiles: without_hectares_attr.zip
<http://osgeo-org.1560.n6.nabble.com/file/n5031624/without_hectares_attr.zip>  
(attached in without_hectares_attr.zip)
So, it seems ok, we get geojson, we can make our analytics on it.
/But:/ while trying to export it as pdf we get an error
http://trac.osgeo.org/postgis/ticket/1735 ( Invalid number of points in
LinearRing), seems strange as we works only with polygons and multipolygons.
A closer examination we saw that there is one more excess line feature!
Screenshot of this:
https://www.evernote.com/shard/s15/sh/7e4ab96c-5d8f-432e-a0de-46b618df8d3b/fd9b80a0e2a10b23f4e61ffb9a3e9998?noteKey=fd9b80a0e2a10b23f4e61ffb9a3e9998&noteGuid=7e4ab96c-5d8f-432e-a0de-46b618df8d3b
And in geojson(it is the first multipolygon feature):
http://pastie.org/private/sgtdludvdtgeiau5uxmxrq As you can see, it is
really a line. So, our customer make an error while drawing.

How can we programatically resolve similar issues? Right now we not validate
geojson(should we, will this help). My thoughts: validate, and try to remove
"strange" features.

What will you suggest?

Thank in advance,
Dmitry.




--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/what-to-do-with-not-good-enough-shape-files-tp5031624.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to