locationtech / spatial4j

LocationTech Spatial4j: A Geospatial Library for Java
https://projects.eclipse.org/projects/locationtech.spatial4j
932 stars 167 forks source link

Can't add property when trying to write GeoJson #231

Open nassimesi opened 7 months ago

nassimesi commented 7 months ago

Hello, I looked up for a class or methods which give me hand to add customized properties for geoJson entry but I couldn't find it

I want to have an entry in my output geoJsonFile as follow : { "type": "Feature", "properties": { "prop0": 224, "prop1": 9, "geometry": { "type": "Polygon", "coordinates": [ [ [ -0.256195027454467, 19.477078487854236 ], [ -0.083718492903519, 19.477078487854236 ], [ -0.083718492903519, 19.641083840411458 ], [ -0.256195027454467, 19.641083840411458 ], [ -0.256195027454467, 19.477078487854236 ] ] ] } },

How can I do this

dsmiley commented 7 months ago

I think you may find Spatial4J not well suited to that kind of customization. Good luck.