<div dir="ltr">Thanks for all the help with this guys.<div><br></div><div>Aashish and I will talk later today to figure out this particular dataset and issue.</div><div><br></div><div>I wrote out some questions this led me to. Don't feel like you need to answer them, but they might be helpful for GeoJs development/documentation.</div><div><br></div><div>Is there general guidance for transformations within GeoJs, or is this something yet to be worked out? I.e., will there be a list of transforms supported by proj4j that are included in GeoJs, or maybe a path to add transforms such as those node-proj4js-defs within GeoJs? </div><div><br></div><div>If I include GeoJs, proj4j is not exposed externally, so should users of GeoJs try to do everything through the GeoJs transform? What is the recommended path to doing an arbitrary transform like what David describes?</div><div><br></div><div><br></div><div> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 18, 2016 at 8:21 AM, David Manthey <span dir="ltr"><<a href="mailto:david.manthey@kitware.com" target="_blank">david.manthey@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">There aren't many predefined tags in proj4, but <a href="http://spatialreference.org" target="_blank">http://spatialreference.org</a> lists the transform for many. For <span style="font-size:12.8px">EPSG:26986, you can use "+proj=lcc +datum=NAD83 +ellps=GRS80 +lat_0=41 +lat_1=42.68333333333333 +lat_2=41.71666666666667 +lon_0=-71.5 +no_defs +units=m +x_0=200000 +y_0=750000".</span></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">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></span><div><div class="h5"><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>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><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.<a href="tel:2148999982" value="+12148999982" target="_blank">2148999982</a>]}}],"crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::26986"}},"bbox":[250428.2161,921269.<a href="tel:2148999979" value="+12148999979" target="_blank">2148999979</a>,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><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" 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></div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr">David Manthey</div><div dir="ltr">R&D Engineer<br>Kitware Inc.<br><a href="tel:%28518%29%20881-4439" value="+15188814439" target="_blank">(518) 881-4439</a><br></div></div></div></div>
</font></span></div>
</blockquote></div><br></div>