We changed our privacy policy. Read more.

New answers tagged

1

I think you need to use a custom SLD to select which bands to use in your WMS response which will always be RGBA. A RasterSymbolizer can have a ChannelSelection section <ChannelSelection> <RedChannel> <SourceChannelName>1</SourceChannelName> </RedChannel> <GreenChannel> <SourceChannelName>2</...


0

I spent some time looking through the GeoServer, GeoTools, JAI-Ext, and JAI source code. The heart of the code for ImageMosaic is in the GeoTools project. The GeoTools code makes use of functions available within the JAI and JAI-Ext to perform much of the image manipulation. One such operation is the BandMerge operation (https://github.com/geosolutions-it/...


1

"Service access rules list" is the key for the solution of this issue. If you've created new roles, users and granted access rules on separate paths like wfs.GetCapabilities for them, then even if wfs.* path is granted for admin role, you need to re-grant admin access on these new paths. Otherwise it does not work.


0

I believe you are missing the indexer.properties file. It should contain something like: TimeAttribute=ingestion Schema=*the_geom:Polygon,location:String,ingestion:java.util.Date PropertyCollectors=TimestampFileNameExtractorSPI[timeregex](ingestion) The tutorial (https://docs.geoserver.org/latest/en/user/tutorials/imagemosaic_timeseries/...


0

You should set coverage: nativeCoverageName and nativeName xml nodes with value which is source file name (GeoTiff) or database postgis source name if you use postgis. Example: filegeoserverpath = 'file:data/file_name.tif' <nativeName>file_name</nativeName> <nativeCoverageName>file_name</nativeCoverageName> Try this: curl -X POST -d '...


0

What you are trying to do is usually solved using the label-obstacle vendorOption which is applied to a vector symbolizer to tell the label drawing code to avoid those features. There is a detailed example in the GeoServer manual. However, you could probably make your way work if you set displacement to be a simple negative Y (so you place the label below ...


0

Found that the setting in web.xml overrides the setting put in the Admin gui. So I just got it sorted by putting the new DNS proxy parms in the web.xml instead and everything worked again. :)


0

I had the same problem. In my case, the relative path was wrong. Check in Server Status (first option in the left menu). There you can see the data directory, and your relative path for the image must start from there. In your case, if the data directory is /var/lib/tomcat7/webapps/geoserver/data, the image relative path should be /styles/26%20SUSPENDED-...


0

I figured it out: turns out there is a vendor parameter called propertyName you can use to exclude geometry, by explicitly listing all the attributes you want. For example, this URL will return the geometry which are quite a few coordinates: https://data.stategrowth.tas.gov.au/geoserver/ssg/ows/?service=WMS&version=1.3.0&info_format=application/json&...


1

There is an example on the page you link to, all you need to do is remove the lines that print the geometry. (<#-- starts a comment, --> ends it) <#list features as feature> { "content" : "this is the content", "type": "Feature", "id" : "${feature.fid}", <#list feature.attributes ...


0

As with all REST questions the solution is to make a GET request of an existing resource to see how it is done, so http://localhost:8080/geoserver/rest/layergroups/tiger-ny.xml gives: <layerGroup> <name>tiger-ny</name> <mode>SINGLE</mode> <title>TIGER New York</title> <abstractTxt>Topologically ...


0

This is an example of thematic symbolization with thematic labels. If the label filters are separate from the symbol filters, you need separate rules. This demonstrates symbolizing lines based on one field, and labelling based on another field: <FeatureTypeStyle> <Rule> <Name>LineColor1</Name> <ogc:Filter> ...


0

UPDATE I was able to resolve the issue and the reason I was facing this issue was because of the fact that I had not set environment variable of data_dir correctly. I had set variable name as Data_Dir whereas it should have been GEOSERVER_DATA_DIR


0

I looked through the source code for the Jiffle RasterProcess and found this is not possible. I ended up creating a new RasterProcess plugin which allowed me to access the entire listing of bands and implement the desired functionality.


0

I don't know when the code was changed to support this, but the following tutorial explains how to make this work. I tried it today and it works on GeoServer 2.19.x. Its not part of the official documentation but from my testing today it does work: https://docs.geoserver.geo-solutions.it/edu/en/multidim/accessing_multidim/wxs_ranges.html


1

You are currently trying to compare the literal string: <ogc:Function name="max"> <ogc:PropertyName>qtd_deteccoes</ogc:PropertyName> </ogc:Function> with the value of the attribute qtd_deteccoes which will never be true, unless you have some very strange data. If you remove the <...


0

Either, Make a copy of the GeoServer GetCapabilities response, add the layer(s) you want. Save the static file to a location on a web server. Point QGIS to this static file. Or, Configure a GDAL WMS driver configuration file and add your required layers there. See https://gdal.org/drivers/raster/wms.html


1

As @Ian Turton mentioned in his comment, Geoserver expects a valid application/gml as an repsonse for the GetFeature-request, editing my PHP-Script to echo with content-type application/gml header("Content-type: application/gml"); made it work.


0

I just had this problem today and found the issue. Log into your admin console and click on GeoFence Data Rules. I'm going to guess that you don't have any rules set to allow anonymous access to your workspace. In my case I needed to set a rule to allow anonymous access to the specific workspace. You can also set it to allow access to all * workspaces, but ...


1

Try changing the language setting for the browser. I had the same problem. When I changed it to English instead of Turkish and restarted the browser, the problem was solved.


0

you can find solutions in openlayer examples itself. For better understanding, in openlayer every thing is in forms of layers for different purposes. so here you tried tiled layer to display your map and now you can use vector/webglpoints layers to display marker points webgl renders pretty quick and works well with even 200k points I tried personally also ...


0

This is what worked for me: Step 1: add headers: header("Content-type: text/xml; charset=utf-8"); Step 2: Make sure that you check how the urlparams are given, geoserver will change the GetCapabilities-Request to be: url?REQUEST=GetCapabilities&SERVICE=WFS&VERSION=2.0.0 , so Request is in all caps, thus if you filter for the ...


0

I faced the same issue and the solution is re-adding geometry 2D to PostGIS database. I didn't add Z values ​​to shapefile using QGIS.


0

I was able to find a workaround: Prerequirements are that the Workspace, Mosaic Storage and Layer on the main Geoserver Instance already exists and that an Azure Blob Store is configured as the Store for the GWC Layer. In the Docker Container I create the same Workspace, Mosaic Storage, Layer and Azure Blob Store (using curl and the Geoserver Rest API). As ...


Top 50 recent answers are included