[Geoserver-users] How can I add CRS Grid lines in GeoServer PNG ouptut file

Hi All,

I’m exporting PNG map from GeoServer. (&srs=EPSG:4326&format=image%2Fpng )
But this one doesn’t include the Reference Grid line.
request is as below for world file.

http://localhost:8080/geoserver/opengeo/wms?service=WMS&version=1.1.0&request=GetMap&layers=opengeo:countries&styles=&bbox=-180.0,-89.99892578124998,180.00000000000003,83.59960937500006&width=768&height=370&srs=EPSG:4326&format=image%2Fpng

I like to show Latitude/Longitude information on the output PNG map. How can I add reference CRS grid line in GeoServer?

Thank you very much in advance for any idea.

​Best regards​

···

Have a nice day!

Mr. Khun San Aung

You need to add a layer with those grid lines in to your GeoServer, possible sources are using QGIS and the vector grid tool (vector->research tools->vector grid) or from Natural Earth.

There has been some discussion in the past about adding a graticule layer option to GeoServer but it has never progressed due to lack of time and funding (see https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer if you would like to move this forward).

Ian

···

On 29 February 2016 at 04:13, KhunSanAung <khunsanaung.gis@anonymised.com> wrote:

Hi All,

I’m exporting PNG map from GeoServer. (&srs=EPSG:4326&format=image%2Fpng )
But this one doesn’t include the Reference Grid line.
request is as below for world file.

http://localhost:8080/geoserver/opengeo/wms?service=WMS&version=1.1.0&request=GetMap&layers=opengeo:countries&styles=&bbox=-180.0,-89.99892578124998,180.00000000000003,83.59960937500006&width=768&height=370&srs=EPSG:4326&format=image%2Fpng

I like to show Latitude/Longitude information on the output PNG map. How can I add reference CRS grid line in GeoServer?

Thank you very much in advance for any idea.

​Best regards​

Have a nice day!

Mr. Khun San Aung


Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ian Turton

Hi Ian,

Thank you very much for point out tools & possible ways to solve it.
That helps a lot. I’ll create the custom Grid from my layer & add into GeoServer as a layer.

Best regards

···

On Mon, Feb 29, 2016 at 3:20 PM, Ian Turton <ijturton@anonymised.com> wrote:

You need to add a layer with those grid lines in to your GeoServer, possible sources are using QGIS and the vector grid tool (vector->research tools->vector grid) or from Natural Earth.

There has been some discussion in the past about adding a graticule layer option to GeoServer but it has never progressed due to lack of time and funding (see https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer if you would like to move this forward).

Ian

On 29 February 2016 at 04:13, KhunSanAung <khunsanaung.gis@anonymised.com> wrote:

Hi All,

I’m exporting PNG map from GeoServer. (&srs=EPSG:4326&format=image%2Fpng )
But this one doesn’t include the Reference Grid line.
request is as below for world file.

http://localhost:8080/geoserver/opengeo/wms?service=WMS&version=1.1.0&request=GetMap&layers=opengeo:countries&styles=&bbox=-180.0,-89.99892578124998,180.00000000000003,83.59960937500006&width=768&height=370&srs=EPSG:4326&format=image%2Fpng

I like to show Latitude/Longitude information on the output PNG map. How can I add reference CRS grid line in GeoServer?

Thank you very much in advance for any idea.

​Best regards​

Have a nice day!

Mr. Khun San Aung


Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ian Turton

Have a nice day!

Mr. Khun San Aung