Code Monkey home page Code Monkey logo

Comments (8)

fchorney avatar fchorney commented on June 18, 2024

Came here to mention this as well. If the geojson spec allows you to define the projection, geojsonlint should try to project it. Would be very useful for people who don't use 4326 as those people would need to convert their data to 4326 before testing on geojsonlint.

from geojsonlint.com.

jreiberkyle avatar jreiberkyle commented on June 18, 2024

+1

from geojsonlint.com.

JasonSanford avatar JasonSanford commented on June 18, 2024

With the reproject module we could do some data massaging to convert all GeoJSON geometries to WGS84 before sending to Leaflet as it expects all geometries to be in this projection.

from geojsonlint.com.

gabssnake avatar gabssnake commented on June 18, 2024

Encountered this same issue as I received an EPSG:27562 crs file and tried to lint/preview it.

Ended up using reproject for a quick fix, which uses proj4js behind the scenes,

from geojsonlint.com.

jtojnar avatar jtojnar commented on June 18, 2024

I also tried to use reproject, it is quite ugly but it works:

https://github.com/jtojnar/geojsonlint.com/tree/reproject

from geojsonlint.com.

tyrasd avatar tyrasd commented on June 18, 2024

FYI: The new IETF GeoJSON standard doesn't allow custom CRS to be used anymore.

from geojsonlint.com.

Gnafu avatar Gnafu commented on June 18, 2024

Then change the title in "Add support for Foreign Member 'crs'"

However, where all
involved parties have a prior arrangement, alternative coordinate
reference systems can be used without risk of data being
misinterpreted.

from geojsonlint.com.

JasonSanford avatar JasonSanford commented on June 18, 2024

@tyrasd Good thinking!

from geojsonlint.com.

Related Issues (20)

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.