Hot answers tagged

2

The invalid GeoJSON object error appears to be a product of your edited code, where the temp variable is actually a string, not a GeoJSON object. From your sample output in the comments, it appears that you are getting an array of GeoJson Polygon objects, which L.geoJson can interpret correctly, so your original code (before the edit) should successfully add ...


2

The geometry column of a ShapeFile must be called "the_geom", your's is called "location" so the ShapefileWriter ignores it. change SimpleFeatureType featureType = DataUtilities.createType( tipoShape, "location:" + tipoShape + ":srid=4326," + "number:Integer"); to SimpleFeatureType featureType = DataUtilities.createType( tipoShape, "the_geom:" + ...


1

I've followed selection lab of geotools. Source here. It would be an answer for this question.


1

Try ICurve.QueryPoint with asRatio = true, and distanceAlongCurve = 0.5: Copies to outPoint the properties of a point on the curve at a specified distance from the beginning of the curve.



Only top voted, non community-wiki answers of a minimum length are eligible