Can't add property when trying to write GeoJson

Open
#231 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
data

Research direction

The issue names no source file, test, or entry point. Start by locating Spatial4j's GeoJSON-writing API and determine how feature properties are represented; done means establishing whether the requested custom properties can be written and documenting or implementing the supported behavior.

Written by the indexing model from the issue text.

Description

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

Dominant language
Java
Stars
961
Forks
172
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from locationtech/spatial4j

All issues in locationtech/spatial4j

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.