<div dir="ltr">Actually proj4js only includes a couple of definitions by default. To be able to reference arbitrary EPSG codes we would need to load something like this (<a href="https://github.com/yuletide/node-proj4js-defs">https://github.com/yuletide/node-proj4js-defs</a>) which is quite large (>500k), or do some sort of asynchronous lookup at <a href="http://spatialreference.org/">http://spatialreference.org/</a>.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 18, 2016 at 12:53 AM, Aashish Chaudhary <span dir="ltr"><<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">26986 is a local projection (state level). It is possible that proj4 js does not have this pre-defined. I believe this demo (<a href="http://opengeoscience.github.io/geojs/examples/reprojection/" target="_blank">http://opengeoscience.github.io/geojs/examples/reprojection/</a>) 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. <div><br></div><div>- Aashish <div><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sat, Apr 16, 2016 at 6:54 PM, Michael Grauer <span dir="ltr"><<a href="mailto:michael.grauer@kitware.com" target="_blank">michael.grauer@kitware.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi GeoJs-ers,<div><br></div><div><br></div><div>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.</div><div><br></div><div>I've tried transforming it like</div><div><br></div><div>geo.transform.transformCoordinates('EPSG:26986', 'EPSG:3857', [{x:250428.21609999985,y:921269.<a href="tel:2148999982" value="+12148999982" target="_blank">2148999982</a>}]);</div><div><br></div><div>and a few variations, but I'm never getting back what looks like long/lat values, and I get exceptions like </div><div><br></div><div><div>colorbrewer.js:312 Can't use transform source: EPSG:26986r @ </div><div><br></div><div><br></div><div>I could grab the LATITUDE/LONGITUDE properties, but these aren't provided for other datasets from the same server of different geometries.</div><div><br></div><div>Any advice?</div><div><br></div><div>Thanks,</div><div>Mike</div><div><br></div><div><br></div><div><a href="http://spatialreference.org/ref/epsg/26986/" target="_blank">http://spatialreference.org/ref/epsg/26986/</a><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>{"type":"FeatureCollection","totalFeatures":1,"features":[{"type":"Feature","id":"MORIS.CARCINUS_MAENAS_2010_PT.1","geometry":{"type":"Point","coordinates":[250428.21609999985,921269.<a href="tel:2148999982" value="+12148999982" target="_blank">2148999982</a>]},"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.<a href="tel:2148999982" value="+12148999982" target="_blank">2148999982</a>,250428.21609999985,921269.2148999982]}}],"crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::26986"}},"bbox":[250428.2161,921269.2148999979,250428.2161,921269.2148999979]}</div><div><br></div><div><br></div></div></div>
<br></div></div>_______________________________________________<br>
Geojs-users mailing list<br>
<a href="mailto:Geojs-users@public.kitware.com" target="_blank">Geojs-users@public.kitware.com</a><br>
<a href="http://public.kitware.com/mailman/listinfo/geojs-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/geojs-users</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader <br>| Kitware Inc. <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</font></span></div></div></div></div>
<br>_______________________________________________<br>
Geojs-users mailing list<br>
<a href="mailto:Geojs-users@public.kitware.com">Geojs-users@public.kitware.com</a><br>
<a href="http://public.kitware.com/mailman/listinfo/geojs-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/geojs-users</a><br>
<br></blockquote></div><br></div>