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

non WGS84 LL geojson #144

Open
andrewharvey opened this issue Jul 1, 2016 · 0 comments
Open

non WGS84 LL geojson #144

andrewharvey opened this issue Jul 1, 2016 · 0 comments

Comments

@andrewharvey
Copy link

GeoJSON files are sometimes created in other coordinate systems apart from WGS84 LL.

Here is one such file created with FME.

{
   "type" : "FeatureCollection",
   "features" : [...],
   "name" : "",
   "crs" : {
      "type" : "name",
      "properties" : {
         "name" : "EPSG:3857"
      }
   }
}

mapnik-omnivore reports this as

  center: [ 14989880.5561838, -3332365.289841385 ],
  extent: 
   [ 12916705.4616073,
     -5263291.3207374,
     17063055.6507603,
     -1401439.25894537 ],
  minzoom: 0,
  maxzoom: 6,
  projection: '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs',

reading the CRS isn't straightforward, either crs.properties.name will be a legacy value like an EPSG code in which case anything except EPSG:4326 could be rejected, or it could be an OGC CRS URNs such as "urn:ogc:def:crs:OGC:1.3:CRS84".

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