Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow custom CRS / SRID? #33

Open
AntoineAugusti opened this issue Mar 22, 2022 · 0 comments
Open

Disallow custom CRS / SRID? #33

AntoineAugusti opened this issue Mar 22, 2022 · 0 comments

Comments

@AntoineAugusti
Copy link

AntoineAugusti commented Mar 22, 2022

Hi,

We've seen people producing GeoJSONs with a crs field and specifying something different than WGS84 which is not compliant with the specification.

I'm wondering if you considered:

  • making sure that people do not specify another projection system
  • specify integer constraints for coordinates

Example GeoJSON

This GeoJSON specifies a custom crs and doesn't use WGS84 for coordinates.

{
   "type":"FeatureCollection",
   "name":"amg_cyclable_MRN_08_03_2022",
   "crs":{
      "type":"name",
      "properties":{
         "name":"urn:ogc:def:crs:EPSG::3949"
      }
   },
   "features":[
      {
         "type":"Feature",
         "properties":{
            "id_local":"1",
            "id_osm":"285915734",
            "num_iti":"0",
            "date_maj":"2021-12-20",
            "source":"OSM",
            "project_c":"CC49",
            "long_m":36.525,
            "code_com_d":"76231",
            "code_com_g":"76231",
            "reseau_loc":"Autre",
            "local_d":"CHAUSSEE",
            "statut_d":"EN SERVICE",
            "regime_d":"ZONE DE RENCONTRE",
            "sens_d":"UNIDIRECTIONNEL",
            "ame_d":"AMENAGEMENT MIXTE PIETON VELO HORS VOIE VERTE",
            "ame_g":"AUCUN"
         },
         "geometry":{
            "type":"MultiLineString",
            "coordinates":[
               [
                  [
                     1552538.648,
                     8234688.966
                  ],
                  [
                     1552514.736,
                     8234694.519000000320375
                  ],
                  [
                     1552502.897000000113621,
                     8234692.723000000230968
                  ]
               ]
            ]
         }
      }
   ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant