[Geojs-users] transforming geojson with crs EPSG:26986

Aashish Chaudhary aashish.chaudhary at kitware.com
Mon Apr 18 00:53:30 EDT 2016


26986 is a local projection (state level). It is possible that proj4 js
does not have this pre-defined. I believe this demo (
http://opengeoscience.github.io/geojs/examples/reprojection/) lists all the
pre-defined ones. The reason you are getting this dataset because its
fetching from a different server. Let me talk to you in the morning to sort
this out.

- Aashish


On Sat, Apr 16, 2016 at 6:54 PM, Michael Grauer <michael.grauer at kitware.com>
wrote:

> Hi GeoJs-ers,
>
>
> I'm getting some GeoJson back from a server like the below, but I can't
> get it to display in GeoJs, using 0.9.0.
>
> I've tried transforming it like
>
> geo.transform.transformCoordinates('EPSG:26986', 'EPSG:3857',
> [{x:250428.21609999985,y:921269.2148999982}]);
>
> and a few variations, but I'm never getting back what looks like long/lat
> values, and I get exceptions like
>
> colorbrewer.js:312 Can't use transform source: EPSG:26986r @
>
>
> I could grab the LATITUDE/LONGITUDE properties, but these aren't provided
> for other datasets from the same server of different geometries.
>
> Any advice?
>
> Thanks,
> Mike
>
>
> http://spatialreference.org/ref/epsg/26986/
>
>
>
>
>
>
>
> {"type":"FeatureCollection","totalFeatures":1,"features":[{"type":"Feature","id":"MORIS.CARCINUS_MAENAS_2010_PT.1","geometry":{"type":"Point","coordinates":[250428.21609999985,921269.
> 2148999982]},"geometry_name":"SHAPE","properties":{"SITE_NAME":"Beverly
> Public
> Pier","TYPE":"dock","CITY":"Beverly","STATE":"MA","LATITUDE":42.54035,"LONGITUDE":-70.8861,"bbox":[250428.21609999985,921269.2148999982,250428.21609999985,921269.2148999982]}}],"crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::26986"}},"bbox":[250428.2161,921269.2148999979,250428.2161,921269.2148999979]}
>
>
>
> _______________________________________________
> Geojs-users mailing list
> Geojs-users at public.kitware.com
> http://public.kitware.com/mailman/listinfo/geojs-users
>
>


-- 



*| Aashish Chaudhary | Technical Leader         | Kitware Inc.            *
*| http://www.kitware.com/company/team/chaudhary.html
<http://www.kitware.com/company/team/chaudhary.html>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/geojs-users/attachments/20160418/69a9ba2f/attachment.html>


More information about the Geojs-users mailing list