Comments (4)
You need to create your GeoJsonConverterFactory
somewhat like this:
GeometryFactory gf, // from somewhere, e.g. NtsGeometryServices.Instance.CreateGeometryFactory(4326)
bool writeBbox; // from somewhere
options.Converters.Add(new GeoJsonConverterFactory(gf, writeBbox, "some-id"));
from nettopologysuite.features.
I can't, it creates other issue when using data that is stored in a database as it moves the content of some-id from the properties to the object.
I tried that when I started and it created issues I couldn't solve so I moved to a regular factory.
In general, it would be great if optional id would check both unique id and if it's null try getting it from the properties.
from nettopologysuite.features.
In general, it would be great if optional id would check both unique id and if it's null try getting it from the properties.
This would have to be done in NetTopologySuite.Featues
.
from nettopologysuite.features.
Ah, sorry, feel free to transfer this issue then.
from nettopologysuite.features.
Related Issues (12)
- Setup build HOT 3
- 2.0 breaking change in AttributesTable ctor HOT 4
- FeatureCollection and XMLFormatter HOT 1
- How to test IAttributesTable for for thread safety issues? HOT 1
- IAttributesTable could support read-only instances better
- 1.15 Release? HOT 1
- Simplify fetching values for optional attributes in (I)AttributesTable HOT 1
- Update to latest NTS Core HOT 2
- Redesign IFeature / IAttributesTable to better model the different use cases it solves HOT 3
- Remove CRS stuff HOT 2
- Add FeatureCollection ctor with IList<Feature> parameter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nettopologysuite.features.