Questions tagged [geoserver]

GeoServer is the reference implementation of the Open Geospatial Consortium (OGC) Web Feature Service (WFS) and Web Coverage Service (WCS) standards, as well as a high performance certified compliant Web Map Service (WMS).

GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. Designed for interoperability, it publishes data from any major spatial data source using open standards.

Being a community-driven project, GeoServer is developed, tested, and supported by a diverse group of individuals and organizations from around the world.

GeoServer is the reference implementation of the Open Geospatial Consortium (OGC) Web Feature Service (WFS) and Web Coverage Service (WCS) standards, as well as a high performance certified compliant Web Map Service (WMS). GeoServer forms a core component of the Geospatial Web.

(http://geoserver.org/display/GEOS/Welcome as it is on Jan 29th, 2014)

A common use for geoserver is with two other componnets: Geowebcache and Openlayers. The first is an actually embed feature in Geoserver default installation. It avoids processing storing images that were generated by Geoserver once. The access to this cache is transparent to the user, using the same endpoint. Openlayers is a javascript library that handles the complexity of assembling the images given by geoserver into a usable map.

More information can be found in the following links:

Openlayers:

Geowebcache:

Geoserver is able to abstract many complex operations with geodesic data and can serve the application with many representations of it. The most used are the map images, but other formats like KML (used by Google Earth), JSON and XML are also available, making possible to offer a rich app to the user.

It will also allow the administrator to style the map in many ways using defined styles for the layers, described in the format called SLD. Here you have how to:

The input formats will mostly be the Shapefiles or a data connection to the database that contains geospacial data, such as Postgres using the Postgis extension.

A brief about the supported formats: http://docs.geoserver.org/latest/en/user/community/importer/formats.html?highlight=shapefile

Importing a shapefile: http://docs.geoserver.org/latest/en/user/gettingstarted/shapefile-quickstart/index.html

Connecting to a Postgres/postgis database: http://docs.geoserver.org/latest/en/user/gettingstarted/postgis-quickstart/index.html

Shapefiles (a format described by ESRI) definition and other useful information:

Postgres and Postgis information:

Geoserver uses the concept of endpoint to serve the information. The parameters are received via GET, making simple request powerfull tools of abstraction. An example with openlayers can be found here:

http://openlayers.org/dev/examples/getfeatureinfo-control.html

The endpoint, in the example is the following:

var political = new OpenLayers.Layer.WMS("State Boundaries",
            "http://demo.opengeo.org/geoserver/wms", 
            {
              'layers': 'topp:tasmania_state_boundaries', 
              transparent: true, 
              format: 'image/gif'
            },
            {
              isBaseLayer: true
            }
        );

where - "http://demo.opengeo.org/geoserver/wms" is the endpoint for wms serving - 'layers': 'topp:tasmania_state_boundaries' - we want the tasmania_state_boundaries layer from top workspace - transparent: true informs the server to leave transparent the regions where there is no information. Otherwise they will be white. - format: 'image/gif' - The format of the images we want.

It's that simple to access a black hole of geo information that, otherwise, would require too much time to do. Too much time.

1562 questions
7
votes
2 answers

Issue with GeoServer login with SSL

I have a tomcat apache installed with ssl on Centos and I have deployed GeoServer as webapp into tomcat…when I access GeoServer through tomcat as https://XXXX.XXXXXXXXX.com/geoserver/web/ and enter the login details page will be redirected to…
yazouri
  • 169
  • 1
  • 10
7
votes
1 answer

Geoserver advice please - HTTP Status 400 – Bad Request

I am really hoping someone can help point me in the right direction. I have Geoserver deployed within Tomcat 9 on an Ubuntu 18.04 server. All was working absolutely fine until I added SSL to the Apache virtual host. I have no problem with logging in…
Jake
  • 121
  • 1
  • 4
7
votes
2 answers

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…
user617389
  • 153
  • 1
  • 2
  • 5
7
votes
1 answer

WFS GetFeature with multiple layers and different propertyNames

Suppose i have a Geoserver running with two layers exposed by WFS (with properties): StreetLayer (geom, StreetName, Lanes, Length) HouseLayer (geom, Address) Now if i want to query StreetLayer for all streets but only get the StreetName and Lanes…
6
votes
4 answers

exporting layer configurations from geoserver

is it possible to export layer configurations from geoserver and import them into geoserver on another computer? It takes a long time to keep setting up the layers everytime i switch computers.
MBU
  • 4,998
  • 12
  • 59
  • 98
6
votes
1 answer

Mercator projection world map with Geoserver and Openlayers

I'm trying to render a world map shapefile on my Geoserver with a Mercator projection. I've tried declaring the SRS on Geoserver and defining EPSG projections of 3785 or 900913 in Openlayers with no success. I've also tried to reproject the…
bjaxbjax
  • 1,351
  • 2
  • 15
  • 24
6
votes
2 answers

OpenLayers3 - Animated .fit to a specific extent

I have created a map using OpenLayers3. I can succesfully zoom to a layer on the map using the following code: map.getView().fit(extent, map.getSize()); However I woulld like something similiar in an animated way. I know about the following…
Titsjmen
  • 789
  • 6
  • 15
6
votes
1 answer

How to correctly request a geoserver WFS via POST?

I have a geoserver instance, that contains our data. Requesting this via GET works all-right and returns the expected results. But sadly it doesn't works with POST. To be precise, here is the request for the Capabilities with GET, that returns a…
Mnementh
  • 50,487
  • 48
  • 148
  • 202
6
votes
1 answer

How to Convert SVG to SHP (Shape File) format?

I am trying to convert the SVG File to SHP (Shape File format) and then get it imported into GeoServer. Is there any convertor available OR is there any mediating format in which I can get it converted and finally get it in SHP format? I already…
user1517745
  • 71
  • 1
  • 1
  • 4
6
votes
1 answer

Does QGIS have support for WMS-T (WMS with time)?

Does anyone know if there's support for WMS-T in QGIS? Through the app I can add WMS layers, but I can't work with WMS-T (there's no place to set the time parameter). I been going through the the Python plugins and although there are some that do…
5
votes
2 answers

Geoserver - How do I draw a geodesic line that represents the great circle between two points

I'm using Geoserver version 2.1.1, Postgres 9 and PostGIS 2.0 What I want to achieve should (i think!) be quite straight forward. I want to render on a map a line that represents the Great Circle between two cities on the earths surface. My database…
Chris
  • 85
  • 2
  • 5
5
votes
1 answer

mapbox-gl-js: Vector tiles - most efficient way to Change/Add feature property at client-side?

A mapbox-vector-tile layer is being served from GeoServer (around 500K features points and multiline strings). I am using mapbox-gl-js to plot the layer at client side and I use expressions to change certain styles(e.g. line color) I have an…
Anand A.S
  • 87
  • 7
5
votes
1 answer

How to authenticate secured layer on Geoserver from javascript (leaflet/openlayers) requests

I have a Geoserver instance on a docker container that sits on an Ubuntu host. At the moment, requests to the Geoserver container are forwarded on through the host's Apache web server. I am making these requests from a javascript web application. I…
rumski20
  • 361
  • 4
  • 13
5
votes
3 answers

Serve GeoServer Tiles in XYZ format

I am using GeoServer and seed tiles on my server. The tiles are created successfully but i dont know which pattern the directory structure is following... (i.e. .../EPSG_4326_05/0_0/00_06.png) I want to use the tiles in a OpenLayers application and…
Martin Bauer
  • 71
  • 1
  • 1
  • 4
5
votes
1 answer

How deploy geoserver web archive with apache tomcat 8?

I want to run geoserver web archive in my tomcat web server. I'm using tomcat 8. I download GeoServer 2.7.1.1 web archive from geoserver. When I want to deploy the war file, Error occurs as follow: But when I deploy another war application, it…
Morteza Malvandi
  • 1,656
  • 7
  • 30
  • 73