koopjs / koop-socrata

Socrata provider for Koop.
Other
8 stars 7 forks source link

Certain datasets from Socrata have incorrect spatial reference #65

Open sirws opened 7 years ago

sirws commented 7 years ago

Here is an example: http://koop.dc.esri.com/socrata/wastate/f9h8-rtz6/FeatureServer

Notice: spatialReference: { wkid: 4326, latestWkid: 4326 }, initialExtent: { xmin: -13610908.050271627, ymin: 6061419.6999203265, xmax: -13605556.778112192, ymax: 6066753.658368595, spatialReference: { wkid: 4326, latestWkid: 4326 } },

It appears these coordinates xmin, xmax etc. are web mercator coordinates (wkid:3857) but Koop is saying they are lat/long by setting the wkid to 4326. We need something that will test for the proper coordinate system.