Hot answers tagged

6

Geoserver is OWS server. That is a server side application that can serve maps using standards like WMS and WFS. Being a bit more precisely WMS serve images that represent maps or layers, WFS serve features, WPS process data using predefined operations, ... Geoserver includes a web admin interface where you can style the layers or preview it. The layer ...


6

This is because boundedBy / bbox is a property that OpenLayers creates when parsing the GML, it is not a real feature property. So when you update, you should clone the feature and get rid of it. Some example code: // do a WFS transaction to update the geometry var properties = feature.getProperties(); // get rid of bbox which is not a real property delete ...


5

You'll need to enable Transactional in the global WFS settings in the Services section of the side menu. Be careful with the workspace-specific service settings because they don't usually do what people think they do. Those settings only come into effect when you use the virtual endpoints such as http://localhost:8080/geoserver/myworkspace/wfs, but they have ...


5

If you want to use a postgis database with Openstreetmap data, you have to populate it with osm2pgsql, not osmosis. That is the only way to get polygons out of Openstreetmap multipolygon relations and closed ways in a format that GIS software can understand. Alternatively, you can use GDAL ogr2ogr to save OSM data into a spatialite database. Once you have ...


5

You need java 7 to run this version of Geoserver.if you install it and reinstall Geoserver (pointing to the jre7) you should be fine. I would also recommend to install the new version to a different directory.at the moment you seem to have it installed to "C:\Program Files (x86)\GeoServer 2.6.2\" (see log messages above). A clean reinstall would be better.


5

While I can't help you on the database io speed issue, you can display 3 millions points easily if you rasterize. Bin points into pixels (aggregate), then decide how contents of bins translate into a color. I'm currently involved in creating a python library to do exactly this: https://github.com/bokeh/datashader This example below uses that technique to ...


4

I know this is too late for the OP, but hopefully it will help someone like me who came accross this question. I worked through several issues trying to use a postgis raster in geoserver similar to the OP, the below is how I succesfully loaded by raster data. Preconfiguration. A BNG geotiff layer, generated from FME, has been imported into postgis using ...


4

You probably do both, but mostly on OpenLayers. The GeoServer part is mostly related to styling of layers. OpenLayers is the client, and GeoServer is the server. For basic cases, you load the data into GeoServer (and publish out whatever layers and styling you need), then use OpenLayers in your web page (javascript and HTML). OpenLayers calls GeoServer to ...


4

According to a recent comparison of different mapping engines in performing tile seeding (see Section 4.3), MapServer should be much faster than GeoServer. Is there any re-projection of geometries in your rendering stack? An old version of MapServer might have the same issue with proj4 lib as Mapnik had.


4

The creation options you are able to use with the -co option solely depend on the image format you want to use. GeoTiff for instance supports the following compression algorithms: JPEG/LZW/PACKBITS/DEFLATE/CCITTRLE/CCITTFAX3/CCITTFAX4/LZMA/NONE. Each GDAL driver has it's own page where all the creation options are listed. Here is the GeoTiff driver page


4

Your features do not properly intersect; using a series of JOIN statements in the definition of your view meant that not all features of your table_a table were retained in the final view. Using LEFT JOIN ensures that non-matching (i.e. non-intersecting) records are retained.


3

Changing Java Heap Memory for Geoserver sudo vi /usr/share/tomcat7/bin/catalina.sh line 3 export CATALINA_OPTS="-Xms2048m -Xmx8g" Change the "-Xmx2048m" to desired value, as Xmx is case sensitive, you can use "g" for GB or "m" for MB After the changes are saved, remember to restart tomcat: sudo services tomcat7 restart


3

I haven't tested the library, but the GSRCC library looks promising place to start: https://code.google.com/p/gsrcc/ The GSRCC library is a C#.net Client to the Geoserver 2.1.x+ RESTful configuration extension. Using this library, one can access a remote Geoserver via HTTP and configure it. The REST extension of Geoserver has to be installed on ...


3

Going by memory, I would actually go and disable all the individual layers in the respective layer configuration. This should not impact the layergroup you created with them. If you just want to hide them from the GetCapabilities response, uncheck the advertise box. Hope that helps, Simone.


3

Adding the WMS from the "Add Layer(s) from a WM(T)S Server" button in QGIS Desktop will let you set the CRS for the layer added.


3

Pointing "directly" to an S3 bucket (e.g. using s3fs) is "probably" a bad idea. e.g. http://stackoverflow.com/questions/10801158/how-stable-is-s3fs-to-mount-an-amazon-s3-bucket-as-a-local-directory EBS is almost certainly the right place to store the data for access by GeoServer. 100 GB is very manageably by EBS standards. (Maximum volume size is 16 ...


3

Just use ol.proj. transformExtent in between to transform your extent. You can also use layer.latlonBBOX from the GetCapabilities parser output so you always know the source bounding box is in EPSG:4326


3

I have a REST example that works on GWC, so I'll set it up so it's shared: https://gist.github.com/alexgleith/c39c3f520102c30e4dec Here's the meaty bits: url = baseURL + layer + '.json' request = urllib2.Request(url) base64string = base64.encodestring('%s:%s' % (un, pw)).replace('\n', '') request.add_header("Authorization", "Basic %s" % base64string) ...


3

you have to use code like I pasted below. Just change parameters. Look into API! ... Example is using geoserver's GWC module to show cached WMS in tiles (both dynamic/prerendered cache), for classic non cached WMS just delete "gwc/" from URL and change 'TILED' parameter to false. var myLayer1303 = new ol.layer.Tile({ extent: [2033814, 6414547, 2037302, ...


3

You try to edit the schema of already published shapefile layer and add new attributes into the schema. That is not supported from the admin utility and I cannot recommend any reasonable workaround either. As written in http://docs.geoserver.org/stable/en/user/services/wfs/schemamapping.html, The GeoServer WFS supports a limited amount of schema output ...


3

Stackexchange is not the best place to discuss issues (works better for questions), please report on the geoserver-users mailing list.


3

If you style your polygon with a point symbolizer it will be displayed by a point. So all you need is two symbolizers (one point, one polygon) in a pair of rules with scale constraints on them. EDIT: Here's a simple SLD example: <FeatureTypeStyle> <Rule> <MaxScaleDenominator>500000</MaxScaleDenominator> ...


3

I'm guessing, but I'm going to say it's finite. But really, you should ask how many users do I need as a realistic max, and can GeoServer handle that. I reckon that number is pretty high, but maintenance of users might be tricky. Asking if a software product can handle an infinite number of users is a pretty vague question, really.


3

Definately it can be done, if you have styled your layer with the correct symbology then geoserver will just render that sld. On the question of it appearing in getfeature info look at geoserver templates which allows you to customise the how your get feature info behaves


3

Polygon layers by default do not stay the same size when zooming further out because they represent an area. The only aspect that you will see for smaller polygons when zoomed out is just the outline. If you still want to represent the feature when zoomed far out one option would be to add a <PointSymbolizer> within the sld that will turn on at x ...


3

Figured it out! The following SLD uses a rendering transformation to call "gs:Clip", which clips vector features to a bounding geometry. The result is then rasterized by GeoServer's WMS. <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor version="1.0.0" xmlns:ogc="http://www.opengis.net/ows" ...


3

Here is a code sample to show how you could publish a WMS layer hosted on geoserver in Leaflet: var map = L.map('map').setView([51.505, -0.09], 8); var forest2000 = L.tileLayer.wms("http://138.26.24.xxx:8080/geoserver/tiger/wms",{ layers: 'forest2000', format: 'image/png', transparent: true, opacity: 0.7 }).addTo(map); Change ...


3

Definitely that's not an obvious way of loading a WMS. This is what have worked for me (QGIS v.2.8.1): urlWithParams = "url=http://maps.itu.edu.tr:8082/geoserver/sf/wms&format=image/png&layers=sfdem&styles=&crs=EPSG:26713" rlayer = QgsRasterLayer(urlWithParams, 'DEM', 'wms') rlayer.isValid() # Returns True this time ...


3

It's been added since 2.7.1. See release note here. Here the JIRA report. Simone.


3

No, there is no REST based API for data manipulation, only for configuration. To modify vectors you should use WFS-T



Only top voted, non community-wiki answers of a minimum length are eligible