Search code examples
geojson

What format is the coordinate of this geojson example


I have this geojson for bike paths and I can't seem to figure out what the coordinates represents. I was expecting longitude and latitude, but those doesn't seem to be it.

Here is an example:

"geometry":{  
      "type":"LineString",
      "coordinates":[  
         [  
            305049.6192401955,
            5061761.891977313
         ],
         [  
            305038.71863293805,
            5061778.694289856
         ]
      ]
   }

The source of data can be found here : bike path data Unfortunately, it is only in french, but the data is under geojson section then click on "Explorer/Aller a la ressource"

Any help is appreciated,

Cheers,


Solution

  • Your data uses this spatial reference system: EPSG:2950, also known as: "NAD83(CSRS) / MTM zone 8". The units in this system is meters.

    This information can be found at the top of your geojson file here:

    "name": "urn:ogc:def:crs:EPSG::2950"
    

    The crs stands for coordinate reference system (And for the trivia value, EPSG stands for "European Petroleum Survey Group").

    This is likely confirmed by the shapefile from the same data source (based on your link), the .prj file states:

    PROJCS["Ontario_MTM_Zone_8_east_of_75_degrees_W_NAD_83_datum"
    

    The MTM refers to Modified Transverse Mercator. If you want to easily convert this data (unproject it essentially) to WGS84 to get longitude latitude pairs, you could download the shapefile, unzip it, and add all files to mapshaper.org, open the console and enter proj wgs84 and then export as a geosjon (or topojson).