Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged

-1

In css try "label-fit-goodness: -1;" and "label-conflict-resolution: false;"


1

I am encountering the same issue with a black image. My source DEM is ArcticDEM, which is Float32. Applying ContrastEnhancement in the style did not help, but I was able to convert to Int16 using GDAL and the resulting image works in GeoServer 2.15.1 (JDK 11.0.2). $ gdal_translate -a_srs EPSG:4326 -a_nodata -9999.0 -ot Int16 -of GTiff -co COMPRESS=DEFLATE -...


0

That was a Leaflet issue. The maxZoom was not limited by GeoServer (as Ian Turton commented the EPSG:900913 gridset goes until level 30) but was restrained by the default Leaflet L.tileLayer maxZoom...


0

Try using something like (from https://docs.geoserver.org/stable/en/user/styling/sld/reference/rastersymbolizer.html#contrastenhancement): <ContrastEnhancement> <Normalize> <VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption> <VendorOption name="minValue">-1</VendorOption> <VendorOption name=...


0

If you're sure that .xml is valid (you can check its validation via this online tool) you need to add the following line to your request's header as mentioned in geoserver official documentation (here) {content-type:'application/vnd.ogc.sld+xml'} Here I give an example. First of all I created a sld string on my Node server using javascript: <?xml ...


0

GeoServer on OSGEOLIVE uses Jetty - have a look in /usr/local/lib/geoserver-2.X/webapps/geoserver (where X is the version you are using).


0

If anyone is interested, in ArcMap (10.1), you can add a WMS then go to the params and add the same CQL_FILTER in the properties of the WMS.


0

Both typeName and typeNames work fine on a local machine for me. http://localhost:8080/geoserver/wfs?service=WFS&version=2.0.0&request=GetFeature&typenames=topp%3Atasmania_cities and http://localhost:8080/geoserver/wfs?service=WFS&version=2.0.0&request=GetFeature&typename=topp%3Atasmania_cities Things to check: Make sure that you ...


0

If you change the layer group "mode" to "container tree", this will remove it from the layer preview. I discovered this from reading through https://docs.geoserver.org/stable/en/user/security/layer.html.


0

For anyone is wondering which version of jetty you have for your particular geoserver application. For OSX I simply started geoserver and looked in the log it should show something like: 2019-05-10 07:25:13.444:INFO:oejs.Server:startup executor: jetty-9.2.13.v20150730 I'm sure it is similar in the tomcat logs when running from a linux server if needed. ...


0

OK after a lot of frustrated digging around this turned out to be an issue with the docker build not the geoserver configuration. Leaving this here just in case anyone uses the image https://github.com/kartoza/docker-geoserver The image uses a startup script to rebuild which requires internet access, fine in 99.99% of cases but not in ours where we are ...


2

XML prefixes don't mean anything, though by convention they are often chosen to relate to the schema they are importing. If you look at (usually) the first line of your XML you will see something like: <StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld" ...


0

This is the standard wms URL on geoserver 2: http://localhost:8080/geoserver/wms


1

Copy the shapefile vectors to PostGIS (shp2pg) and then add the tables to GeoServer, this allows you to style each layer. Create a layer group to make sure the layers are in the correct order in your basemap. Connect your client to the layer group via GeoWebCache and your base map tiles will be created on demand. If you need to precache the tiles then you ...


0

The problem is that the java function URLEncoder.encode() doesn't handle null arguments and the GeoTools function is not checking if the argument is null. You need to add a check before line 87 and return an empty string or "null" if the argument is null. As always pull requests with a test case are welcome.


0

use this CORS extension for chrome. Just add extension and on it. If not working then uncomment CORS filters in your tomcat's & geoserver's web.xml.


0

As the page you link to says: These limits can be overridden by setting alternate values for the following parameters (this can be done using JVM system variables, servlet context variables, or environment variables): QUERY_LAYER_MAX_FEATURES controls the maximum number of features collected by queryCollection GEOMETRY_COLLECT_MAX_COORDINATES ...


0

You can create pyramid with gdaladdo, you not create pyramid with geoserver. Here is documentation of it https://gdal.org/gdaladdo.html


0

You can only apply one style per layer in a WMS request so you will need to request the layer twice with the two styles. So something like: let sldBody1 = xmlRequest1.replace(/\s\s+/gm, ''); let sldBody2 = xmlRequest2.replace(/\s\s+/gm, ''); this.heatMapLayer = (L as any).nonTiledLayer.wms(`${this.selectedValue.source.url}/wms`, { tileSize: L.point(map....


0

If you turn GeoServer logging upto GeoServer Developer (under the global settings page) you will see the parameters and any errors in the log file (usually in $DATA_DIR/logs/geoserver.log).


1

You have three ways to install GeoServer on Windows, either using the installer or by adding the war file to your existing tomcat install, or using the binary independent distribution (which contains Jetty). What you can't do is mix and match these approaches.


0

I sent this json, and change neccessary with f-string. I think the problem is the same name of publicated layer and data source. May be it helps. def publicate_shp(input_shp, host = "http://localhost:8080/geoserver", workspace = "raster_test"): print ("Publicate shp") shp_name = os.path.basename(input_shp) json_shp_layer=({ "featureType": { "...


2

It appears that gsconfig-py3 is less relaxed about the format of the base URL than gsconfig was. If it doesn't end / it doesn't think to add one for you. so cat = Catalog("http://localhost:8080/geoserver/rest/", username='admin', password='geoserver') does work. I would raise an issue and a fix for this if I was you.


1

Thanks a lot dear Maximilien... actually I am looking for a way under the GIS Linear Referencing concept which measure and distance have a different mean than general geometric concept. Anyway finally I found the solution as below: problem 1: measure from geometry we have a coordinate from user click event as geometry like: POINT(5 5) solution: SELECT ...


Top 50 recent answers are included