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
126
votes
21 answers

The infamous java.sql.SQLException: No suitable driver found

I'm trying to add a database-enabled JSP to an existing Tomcat 5.5 application (GeoServer 2.0.0, if that helps). The app itself talks to Postgres just fine, so I know that the database is up, user can access it, all that good stuff. What I'm trying…
Rick Wayne
  • 1,503
  • 2
  • 12
  • 11
30
votes
4 answers

CORS - Tomcat - Geoserver

All, I am trying to get CORS enabled on Tomcat 7.0.52 for Geoserver. I modified web.xml in conf in tomcat, as specified in http://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#CORS_Filter But, that did not help set cross-origins in the…
user1680784
  • 522
  • 1
  • 5
  • 8
30
votes
3 answers

PostGIS - convert multipolygon to single polygon

Is it possible to import a shape file containing multipolygons into single polygon in PostGIS? Whenever I try importing a shape file of a polygon, it is stored as a multipolygon (as opposed to a single polygon) in a geom column. Thus, I am unable to…
user3012604
14
votes
2 answers

node.js and geoserver CORS

I have node.js server 0.10.12 and express.js 4.8.5. Node.js is the web server, includes openlayers 3.9.0. Geoserver 2.1.3 serves the WMS layer. Later, I will implement vector layers. There is only one route (for the index page) var routes =…
slevin
  • 4,166
  • 20
  • 69
  • 129
13
votes
4 answers

Display Map like OpenStreetMap

I like the way OpenStreetMap display its map. It almost looks like Google Map. I have already installed GeoServer and PostGis on my notebook. I also got this cloudmade osm file for my country, Indonesia. I downloaded indonesia.osm.bz2. I…
deerawan
  • 8,002
  • 5
  • 42
  • 51
12
votes
2 answers

How to get list of layers from geoserver

Is it possible to get a list of all the layers served by geoserver? I.e. is there some specific url request to send that does this?
filinep
  • 529
  • 2
  • 11
  • 17
11
votes
4 answers

cURL with user authentication in C#

I want to do the following cURL request in c#: curl -u admin:geoserver -v -XPOST -H 'Content-type: text/xml' \ -d 'acme' \ http://localhost:8080/geoserver/rest/workspaces I have tried using a…
taudorf
  • 783
  • 3
  • 9
  • 27
9
votes
1 answer

Problem with a column name contains a colon in PostgreSQL

I downloaded the shape data from OSM. I have imported data from Shapefile into PostgreSQL without any problem but I got an error when I do the select statement. Select addr:city From location; Error: syntax error at or near ":" The problem is…
Vorleak Chy
  • 649
  • 9
  • 13
9
votes
1 answer

Geoserver ERROR: function postgis_lib_version()

in geoserver whene i need to creat a new data store after to creat new workspace, i have this error Error creating data store, check the parameters. Error message: Unable to obtain connection: ERROR: function postgis_lib_version() does not exist…
oustyle
  • 103
  • 1
  • 10
8
votes
3 answers

Geoserver - Replacing log4j 1.2.17 with 2.15.0?

I have a geoserver on my webserver that uses log4j v 1.2.17 (log4j-1.2.17.jar). I've downloaded the latest (safe?) version (2.15.0) from the log4j download site and checksummed the download. I'm now confused as to which .jar I should try and…
minisaurus
  • 1,099
  • 4
  • 17
  • 30
8
votes
1 answer

How do I interact with WMS tile layer served by GeoServer using Vuelayers?

I'm developing a web mapping application using the Vuelayers library which is Web map Vue components with the power of OpenLayers. I have the following code in my template:
Boussadjra Brahim
  • 82,684
  • 19
  • 144
  • 164
8
votes
3 answers

WMS/WFS server: am I crazy to write my own?

I'm a "do it yourself" kind of guy, but I want to make sure I'm not going to do myself in by trying to bite off more than I can chew. I am writing a browser-based mapping application that needs to have the option to run standalone (no internet…
M Katz
  • 5,098
  • 3
  • 44
  • 66
8
votes
3 answers

Is there any real alternative to GeoServer as dynamic map generator in Java?

I'm looking for the most suitable tool for generating dynamic geographical maps in Java (with styles based on custom business data: colors, labels etc. will be dynamically set). After some searching, only GeoServer (and the underlying GeoTools…
Costi Ciudatu
  • 37,042
  • 7
  • 56
  • 92
8
votes
3 answers

How to change Port 8080 on Apache Tomcat on Linux Centos 6.5 server to the Default?

I want to remove switch from port 8080 on my Apache Tomcat on Linux server CentOS 6.5 to the default. On My hosted Apache Tomcat server is running on port 8080 on url vmx15978.hosting24.com.au:8080. After I have installed the Geoserver software on…
8
votes
1 answer

Using getTileURL in Android Application with GeoServer

We are just starting to work with Google Maps on Android and have a GeoServer set up to provide tiles which we would like to add as overlay on the map. So far, I have followed a few tutorials and references to get started. For getting…
sugarwaffle
  • 551
  • 1
  • 5
  • 13
1
2 3
99 100