GithubHelp home page GithubHelp logo

GeoJSON invalide about navitia HOT 4 CLOSED

hove-io avatar hove-io commented on June 5, 2024
GeoJSON invalide

from navitia.

Comments (4)

Tristramg avatar Tristramg commented on June 5, 2024

C’est toujours Longitude/Latitude l’ordre : X puis Y.
Ceux qui ne respectent pas cet ordre sont des incompétents :)

Et pour moins de troll, voici la spec http://geojson.org/geojson-spec.html#appendix-a-geometry-examples

Point coordinates are in x, y order (easting, northing for projected coordinates, longitude, latitude for geographic coordinates)

from navitia.

nlehuby avatar nlehuby commented on June 5, 2024

Mouais ... bon, ok, c'est pas faux.
Mais Leaflet n'est pas de cet avis : http://leafletjs.com/reference.html#latlng
Les specs, c'est moins important que l'utilisation réelle sur le terrain par des vrais gens, n'est-ce pas ?

from navitia.

Tristramg avatar Tristramg commented on June 5, 2024

Il y a eu un gros fail de certaines libs de carto (google y a malheureusement contribué) à considérer qu’elle ne représenteraient que des coordonnées sphériques, et jamais de coordonées projetées… Ce qui leur a permis de prendre des libertées avec les conventions des maths.

Même Hergé n’avait pas commis une boulette aussi énorme http://geantropie.free.fr/tintin/licorne61.jpg

Ne pas respecter la spec, ferait que tu casserait d’autres fonctions de leaflet, genre à tout hasard http://leafletjs.com/reference.html#geojson.

Le très vénérable ancêtre Openlayer a eu le bon gout de s’abstraire et demander explicitement x,y pour éviter la connerie qu’à faite leaflet http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Geometry/Point-js.html#OpenLayers.Geometry.Point.OpenLayers.Geometry.Point

from navitia.

nlehuby avatar nlehuby commented on June 5, 2024

gnagnagna ...

from navitia.

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.