<div dir="ltr"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span style="font-size:small;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Why as a modal popup, and not as another tab in the set of views? <br></span>When someone says to me "postgis support in pgadmin" my thoughts leap to doing exploratory queries and seeing the results, for sure.</blockquote><div><br></div><div> The target of my work is implementing 'pgAdmin4 plugin for viewing data' as specified in the initial wiki [1]. I do like to have postGIS support in pgAdmin4 for some queries or even analysis and data viewer can be the first step. </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">What happens when I query some geometry that is in a non-global projection, like UTM?</span></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">In the screenshot, I'm seeing SRID=4326 geometries on top of a Web</span><br style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Mercator map, so there is a coordinate transformation taking place</span><br style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">somewhere.</span><br style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">I don't see why other SRIDs (e.g. UTM) couldn't be transformed too.</span><br style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">(Mind you, not all results look good on Web Mercator anyways.)</span></blockquote><div><br></div><div>For SRID 4326 leaflet can transform the coordinates to Web Mercator. For non-4326 SRIDs, the viewer will simply treat coordinate as X-Y and draw the shape in x-y plane, just as data without coordinate system info. For geometries with different SRIDs in the same one column, the viewer will just render geometries with the same SRID in the map. It may look bad for some data but it's not easy to perform coordinate transformations in front-end. I searched some other similar data viewers like postgis-preview[2] and github geoJSON viewer[3] and their strategies are expecting the SRID to be 4326.<br></div><div><br></div><div>I have built the viewer and created a test database on my server. Welcome to login and have a look at: <a href="http://pgadmin4.gooong.cn:5050">http://pgadmin4.gooong.cn:5050</a> . The user name is my email address and password is postgis_test . Please let me know if you have any suggestions:).</div><div><br></div><div><br></div><div>[1] <a href="https://trac.osgeo.org/postgis/wiki/GoogleSummerCode2018">https://trac.osgeo.org/postgis/wiki/GoogleSummerCode2018</a></div><div>[2] <a href="https://github.com/NYCPlanning/labs-postgis-preview">https://github.com/NYCPlanning/labs-postgis-preview</a></div><div>[3] <a href="https://help.github.com/articles/mapping-geojson-files-on-github/">https://help.github.com/articles/mapping-geojson-files-on-github/</a></div><div><br></div><br><div class="gmail_quote"><div dir="ltr">Mike Toews <<a href="mailto:mwtoews@gmail.com">mwtoews@gmail.com</a>> 于2018年8月1日周三 上午6:00写道:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 31 July 2018 at 17:33, Xuri Gong <<a href="mailto:xurigoong@gmail.com" target="_blank">xurigoong@gmail.com</a>> wrote:<br>
> As for the OSM tile layer, currently it would be added to the map only if<br>
> the geometry's SRID is 4326. There would be no tile layer for geometries<br>
> with other SRIDs because the viewer can't do coordinate transformations.<br>
<br>
In the screenshot, I'm seeing SRID=4326 geometries on top of a Web<br>
Mercator map, so there is a coordinate transformation taking place<br>
somewhere.<br>
<br>
I don't see why other SRIDs (e.g. UTM) couldn't be transformed too.<br>
(Mind you, not all results look good on Web Mercator anyways.)<br>
<br>
<a href="https://en.wikipedia.org/wiki/Web_Mercator" rel="noreferrer" target="_blank">https://en.wikipedia.org/wiki/Web_Mercator</a><br>
_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-devel</a></blockquote></div></div>