Comments (4)
There are (passing) Tests that serialize and deserialize GeographicPosition instances (see i.e.
) so I suspect it might have something to do with how you configure / use Json.Net. A quick search using your favourite search engine for "Json.net and Private Property Setters" does provide all information needed to understand how Json.Net handles these and how to include them in (de)serialization, i.e. http://danielwertheim.se/json-net-private-setters/.from geojson.net.
@nadavpld Can this be closed now?
from geojson.net.
I couldn't make it work at the end and had to leave the setters non-private because it was too much overhead for such a simple task, Unfortunately I didnt have time to get back to it.
Its been few months since I had a look at this piece of code, I will give it another try and let you know (in private?).
from geojson.net.
Ok, I'll close this for now, if you do go back to it feel free to re-open this issue, or indeed open another one and post the json you are trying to deserialize and a code snippet and I can have a proper look. All of our deserialization tests work fine with private setters so it would be interesting to see whats going on if it's still the case.
from geojson.net.
Related Issues (20)
- how to "find a point" HOT 3
- Cannot use GeoJson.Net.Exceptions HOT 2
- .net core api does not deserialize correctly with default System.Text.Json library HOT 1
- How to get the area of a geometry? HOT 4
- Move serializers to a separate project and NuGet to support System.Text.Json in another project and NuGet HOT 5
- PolygonEnumerableConverter does not work HOT 2
- The library might not be aligned with the GeoJSON RFC 7946 standard HOT 3
- How to add altitude coordinates in Feature Collection then serialize to GeoJson
- Geometry is readonly HOT 4
- Incorrectly coupling to geographic coordinate systems HOT 4
- Target frameworks: why so many? HOT 3
- The supported version of the dependency Newtonsoft.Json has a High Severity Vulnerability. HOT 4
- Function to calculate the new coordinates from given base coordinates, along with a distance & a bearing? HOT 2
- Should `IGeometryObject` expose bounding box and CRS?
- Properties in root HOT 1
- Access all fields including Contexts
- NuGet stable release HOT 7
- Coordinates type doesn't parse properties HOT 3
- `CRS` member is no longer used (as per RFC)
- Get Feature Properties from inheritance object HOT 3
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 geojson.net.