Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add custom data source to GeoServer WMS service?

I'm installing GeoServer as a WMS server to cooperate with OpenLayers.

The trouble is that I have to use 3rd-party tile source which is provided through web service. So I guess I have to tweak GeoServer to fetch tile image from 3rd-party server and response to OpenLayers request.

Is this idea correct? What should I do to accomplish that?

Any suggestion would be appreciated.

Thanks a lot.

like image 300
user617389 Avatar asked May 31 '11 10:05

user617389


People also ask

How do I access GeoServer WMS?

Start the GeoServer Web Admin Page by opening the URL localhost:8080/geoserver/web in your browser and log in with your administrator account (the username is probably "admin" with password "geoserver").

What is SRS in GeoServer?

Coordinate Reference Systems CRSes are part of a more general model called Spatial Reference Systems (SRS), which includes referencing by coordinates and geographic identifiers. GeoServer needs to know the Coordinate Reference System of your data.

What is WMS GeoServer?

GeoServer provides support for Open Geospatial Consortium (OGC) Web Map Service (WMS) versions 1.1. 1 and 1.3. 0. This is the most widely used standard for generating maps on the web, and it is the primary interface to request map products from GeoServer.


2 Answers

You need to write a GeoTools datastore and then add that to GeoServer by dropping the jar into the WEB-INF/lib directory.

like image 119
Ian Turton Avatar answered Oct 06 '22 01:10

Ian Turton


If the 3rd party tiles are provided as a WMS, then you need GeoServer cascading

GeoServer has the ability to proxy a remote Web Map Service (WMS). This process is sometimes known as Cascading WMS. Loading a remote WMS is useful for many reasons. If you don’t manage or have access to the remote WMS, you can now manage its output as if it were local. Even if the remote WMS is not GeoServer, you can use GeoServer features to treat its output (watermarking, decoration, printing, etc).

like image 39
MarkJ Avatar answered Oct 06 '22 03:10

MarkJ