Closed pnorman closed 7 years ago
@pnorman I just checked the spec and you're use case is perfectly valid. From the Feature section
A feature MAY contain an id field. If a feature has an id field, the value of the id SHOULD be unique among the features of the parent layer.
I will look into a fix for this. Thanks for the report.
@pnorman do you have a simple test dataset you can share? I'm going to build a test case around this so we can get it addressed.
Where I ran into this is natural earth and ocean shapefiles loaded with https://github.com/kartotherian/meddo/blob/master/get-external-data.py, but you should be able to replicate it with any dataset if you don't include a column for ID.
I have a layer without feature IDs. When I give it the definition
I get the error
2017/05/31 12:12:49 SQL for layer(0) ocean does not contain the id field for the geometry: gid
There is no field for this table that could be used as an ID.