bjornharrtell / jts2geojson

JTS from/to GeoJSON converter for Java
MIT License
138 stars 56 forks source link

Feature object does not include the "id" field #2

Closed wbendick closed 9 years ago

wbendick commented 9 years ago

If a feature has a commonly used identifier, that identifier should be included as a member of the feature object with the name "id".

http://geojson.org/geojson-spec.html#feature-objects

noahtaylor commented 9 years ago

I agree with with @wbendick, I had the same issue actually. I was going to commit a fix to the library but got too busy. As a short term workaround I just extended the Feature and added an Id field, really though the feature class should be updated.

bjornharrtell commented 9 years ago

Makes sense. Implemented in latest release. Please get back to me if it does not work as expected.