Giter Site home page Giter Site logo

Comments (4)

alatas avatar alatas commented on June 4, 2024

Yes you are the first :) I wrote, tested and published yesterday. I check the problem out and correct asap.

from geojson4entityframework.

alatas avatar alatas commented on June 4, 2024

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.

StewLGSitka avatar StewLGSitka commented on June 4, 2024

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#.

jurisdictiontest testgeojsonserializationwithproperties approved txt zip

from geojson4entityframework.

alatas avatar alatas commented on June 4, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.