Hi there, Using the Vector Tiles plugin, we can request a GeoJSON vector tile in WGS-84 using WMS, because the bbox is in lon/lat and the srs is specified as epsg326. When we use the gmaps endpoint of GeoWebCache, we request a GeoJSON vector tile according to the Google Maps gridset, however, the feature coordinates in the GeoJSON vector tile are also expressed in EPSG:900913 / EPSG:3857.
Is there another GeoWebCache endpoint we should be using to request a vector tile using the Google Maps gridset, but receive the feature coordinates in the GeoJSON vector tile expressed in EPSG:4326? Many thanks in advance. Cheers, Edward On 11-01-17 12:08, Edward Mac Gillavry wrote: > Hiya, > > As expected, upon requesting the GeoJSON with srs defined as epsg:4326, > I get the feature coordinates in WGS-84 indeed: > > Request: > > http://localhost:8080/geoserver/top10nl3d/wms?service=WMS&version=1.1.0&request=GetMap&layers=top10nl3d:buildings&styles=&bbox=3.36234426498413,50.7371864318848,7.22960090637207,53.494010925293&width=768&height=547&srs=EPSG:4326&format=application%2Fjson%3Btype%3Dgeojson > > Response: > > {"type":"FeatureCollection","totalFeatures":"unknown","features":[{"type":"Feature","id":"buildings.NL.TOP10NL.100075742","geometry":{"type":"Polygon","coordinates":[[[3.407618,51.258059],[3.407618,51.260075],[3.409632,51.260075],[3.409632,51.258059],[3.407618,51.258059]]]},... > > Also, the features are stored in PostGIS in 4326 too. > > Thanks, > > Edward > > On 10-01-17 23:36, Dave Blasby wrote: >> Hi, >> >> What happens when you directly request the data from WMS (in geojson format)? >> >> Thanks, >> Dave >> >> On Tue, Jan 10, 2017 at 1:10 PM, Edward Mac Gillavry >> <edw...@webmapper.net> wrote: >>> Dear all, >>> >>> We're currently creating a setup using the Vector tile plugin [1]. Using >>> the Gmaps enpoint of GWC, we're getting GeoJSON tiles that adhere to the >>> XYZ-grid. However, as the gridset explicitly states EPSG:900913 as the >>> SRID, we're also getting the feature geometries in that reference >>> system, instead of WGS-84: >>> >>> Request: >>> >>> http://localhost:8080/geoserver/gwc/service/gmaps?layers=top10nl3d%3Abuildings&zoom=16&x=33585&y=21673&format=application/json;type=geojson >>> >>> Response: >>> >>> {"type":"FeatureCollection","totalFeatures":"unknown","features":[{"type":"Feature","id":"buildings.NL.TOP10NL.102751244","geometry":{"type":"Polygon","coordinates":[[[499736.54,6783910.47],[499744.66,6783925.15],[499732.23,6783932.07],... >>> >>> Any other endpoint we should be using instead to obtain tiled GeoJSON in >>> lat/lon or had we better use the WMS? >>> >>> Cheers, >>> >>> Edward >>> >>> [1] >>> http://ares.boundlessgeo.com/geoserver/2.10.x/community-latest/geoserver-2.10-SNAPSHOT-vectortiles-plugin.zip >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Developer Access Program for Intel Xeon Phi Processors >>> Access to Intel Xeon Phi processor-based developer platforms. >>> With one year of Intel Parallel Studio XE. >>> Training and support from Colfax. >>> Order your platform today. http://sdm.link/xeonphi >>> _______________________________________________ >>> Geoserver-users mailing list >>> Geoserver-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/geoserver-users > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > Geoserver-users mailing list > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users > ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users