Comments (4)
Yes you are the first :) I wrote, tested and published yesterday. I check the problem out and correct asap.
from geojson4entityframework.
I solved the bug that causes the error,
It seems your sample is a multipolygon but only one polygon in it, I didn't test this case before.
from geojson4entityframework.
This no longer crashes in .NET, but the resulting GeoJSON crashes OpenLayers and does not validate in GeoJsonLint (http://geojsonlint.com/).
GeoJsonLint complains:
Failed to validate field 'coordinates' list schema: Failed to validate list item list schema:
Length of value [-120.001416397448, 39.067564837972] for list item
must be greater than or equal to 4
I've uploaded sample JSON (far too long to paste here) that demonstrates the issue. GitHub won't allow zip files, so remove the '.png' extension to change back to a zip.
We are still digging through the GeoJSON spec, but our initial impression is you aren't putting the correct number of [ ] brackets to match the examples we find on http://geojson.org/geojson-spec.html.
I would write you a test, but I don't do VB. I will try to get you something in C#.
from geojson4entityframework.
Now, I checked and corrected this issue and tested with geojsonlint.com. I misunderstand the single member arrays.
And I added a new test method that tests the output json via geojsonlint.com.
from geojson4entityframework.
Related Issues (8)
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 geojson4entityframework.