New answers tagged

1

It works for me - if I ask for resulttype=hits: http://localhost:8080/geoserver/wfs?service=WFS&version=2.0.0&request=GetFeature&typenames=sf:bugsites&filter=%3Cfes:Filter%20xmlns:fes=%22http://www.opengis.net/fes/2.0%22%3E%3Cfes:ResourceId%20rid=%22bugsites.3%22/%3E%3C/fes:Filter%3E&RESULTTYPE=hits I get the following response: <?...


0

According to the manual the config file goes in GEOSERVER_DATA_DIR/printing/config.yaml


1

The following suggestion require you to setup a indexer.properties configuration files outside of the UI. See: https://docs.geoserver.org/stable/en/user/data/raster/imagemosaic/configuration.html If you can enumerate in advance which directories you want to grab files from, use IndexingDirectories. In case you know which file extensions are images, use ...


0

No, that is not possible. I'm not sure how easy it would be to add to the existing code either but I suspect it would be quite difficult. An easy solution if you really can't move the files is to use symbolic links to create a image mosaic dataset as GeoServer is expecting. use ln -s on Linux and mklnk on Windows. If you have a regexp then it should be ...


0

Managed to sort it thanks to Ian Turton. I opted to call the cache using WMTS. If the tiles are not in the cache then GeoWebCache generates them on the fly and saves them to the cache. I had initially thought only calls to WMS with Direct Integration enabled would generate tiles on the fly hence why I was originally using WMS and not WMTS). The following ...


0

The default value is set on the WMS settings section of the layer page, as described in the manual. This can be overridden using an explicit buffer parameter in your getMap request as discussed in the manual.


1

You should create an image mosaic layer rather than a layer group (which assumes the layers are roughly on top of each other and doesn't have any indexing). Checkout the tutorial for more details. If you intend to display the images when the user is zoomed out a long way then you will also benefit from using an image pyramid which will prevent GeoServer ...


2

You are looking for an image pyramid layer, there is a full tutorial in the manual as well.


0

Should just make XYZ web Mercator map tiles and serve those PNG with static hosting or tile server


1

GeoServer will only show you tables that have a geometry column in them.


1

If you are using the internal GeoWebcache then you simply need the WMTS capabilities document which is linked from the front page of GeoServer. Inside that document you will find the templates you need as ResourceURLs: <ResourceURL format="image/png" resourceType="tile" template="http://localhost:8080/geoserver/gwc/service/wmts/rest/nurc:Pk50095/{style}...


2

You have a couple of options: Request the GeoServer layer as a WMTS tile set via GeoWebCache (which is built into your GeoServer install) - MapProxy should be able to combine two WMTS layers. Use GeoServer to cascade the external WMTS so that it appears as "just" another WMS/WMTS layer. Your client can then request both the layers together, possibly using a ...


1

ESRI is great software, but, yes, be prepared to shell out a pretty penny. ESRI is a lot more user friendly and, in my opinion, when it comes to pretty maps, ESRI is on top. That being said, there are a few open source solutions out there that can compare to ESRI software. Some are easier to learn than others and some have a bit a steep learning curve. I ...


1

A "good" client like qgis will query the getcapabilities response to find out what layers are available, unadvertised layers will not show up in that list. A lazy client will rely on you adding the layer name you want (leaflet, arcgis) - an attacker can read you leaflet JS and will know the layer name and so you have no security. Therefore you should use ...


2

Metadata links Allows linking to external documents that describe the data layer. Currently only two standard format types are valid: TC211 and FGDC. TC211 refers to the metadata structure established by the ISO Technical Committee for Geographic Information/Geomatics (ISO/TC 211) while FGDC refers to those set out by the Federal Geographic Data Committee (...


1

Not good answer sarcastic unplug network, what are that?? You do firewall on machine you say port GeoServer disallow then you want just layer you use reverse proxy you write if from IP localhost and also user-agent what you say is you then allow layer others you return from proxy 401 or even more 403 if folder no have authentication.


1

I've tried the default polygon style from GeoServer and it worked fine. So I started to rewrite my SLD using the default one as template. The problem was that the SLD created by QGIS is SLD 1.1.0 and still GeoServer uses 1.0. Even though GeoServer validates the SLD from QGIS and displays it correct in the layer-preview it still seems to have problems with ...


0

The default workspace in geoserver was changed so it didnot work. Setting geonode as default workspace solved the issue.


2

Figured it out by further configuring the REST interface. Create the coverage store from the server-resident file (which automatically creates a coverage as well). system(paste('curl -f -k -u admin:geoserver -XPUT -H "Content-type: text/plain" -d "/usr/share/geoserver/data/data/myworkspace/myraster.tif" "http:// my_mv_ip/geoserver/rest/workspaces/...


0

Are you perhaps passing the url to a web mapping javascript library and you haven't sorted out CORS filtering?


1

Time series in GeoServer tend to be collections of rasters or single vector files. So you need a single shapefile with a date column in it, the animation will then allow you to show the various features in the layer that match the time settings.


0

I have tried the following steps and the raster gets rendered. I am posting this, so that people could explore as to why this happens Opened the raster in QGIS 3.6 Exported the raster in rendered mode, rather than raw data mode Used this raster in Geoserver and the map is successfully rendered. Interestingly, while using this rendered version of the ...


-1

Use tile server GL to get raster endpoint of vector tiles like openmaptiles.


1

GeoServer's MBTiles extension only supports raster MBTiles. The openmaptiles.com datasets are vector tiles.


6

You can set up GeoWebCache to request WMS layers from any WMS server. This may be easiest with a standalone install of GWC but should be possible in the integrated version too. You need to edit the configuration file, see the manual for more detail. Alternatively you can use the GeoServer WMS datastores to cascade requests to the MapServer instance and the ...


1

You can build a tilejson that's a spec by mapbox and you can build GL JSON style sheet with resources like sprites,glyps and fonts.Thats what QGIS requires. Open layers has a extension/plugin for GL JSON styling for vector tiles. You can use several open source tools for building style sheets.


0

You probably need to set the projection (that's what the error message is saying). Try creating a .prj file to go with the .tif and .tfw files if you already know the projection. http://epsg.io will be able to show you what goes in it. Alternatively, when saving out of QGis be sure to make sure that there is a CRS set for your layer.


0

Assuming you have defined your service to output vector tiles the url for the tiles should be something like this: http://pcpb620:8080/geoserver/gwc/service/wmts?REQUEST=GetTile&SERVICE=WMTS&VERSION=1.0.0&LAYER=belmap:buildings&TILEMATRIX=EPSG:4326:{z}&TILEMATRIXSET=EPSG:4326&FORMAT=application/vnd.mapbox-vector-tile&TILECOL={x}&...


0

The url seems to be invalid. I use: ${geoserver.url}/geoserver/rest/workspaces/${geoserver.namespace}/datastores/${geoserver.store}/featuretypes And it's fine. Ex. localhost:8080/geoserver/rest/workspaces/testworkspace/datastores/teststore/featuretypes And the function I use is: export const publish = (name) => { const geoserver = config....


2

What is definitely wrong is that there is no layer definition and source is used as layer. It should look something like this: var mapSource = new ol.source.TileWMS( "Layer Name 1", "http://localhost:8080/geoserver/oswgc-india/wms", {layers: 'oswgc-india:india_grouplayer'} ); var mapLayer = new ol.layer.Tile({ source: mapSource, extent: [ ... ] }); ...


1

It seems to be known that GeoServer does not validate SLD like you have but it should still work From: Ian Turton - 2017-08-01 10:57:00 https://sourceforge.net/p/geoserver/mailman/geoserver-users/thread/CAJaHrDzHyPrvv_OVRoGuesib5%3DPx5%3DCkyfm1p0gMhroi%2BpZ8Yw%40mail.gmail.com/ It is right but it is technically invalid SLD so the validator rejects ...


1

I found the solution. GeoServer uses basic HTTP authentication security, which is stored in a key until the user doesn't close the whole browser window. You can't sign out from it, just overwrite the authentication with fake username/password. This causes "logging off". Just call this function (ajax needed): function logout() { $.ajax({ url: 'http:...


4

There is a bad character before the last ("UNKNOWN") rule: </PointSymbolizer> ` <------------------------------------------------------- </Rule> <Rule> <Name>UNKNOWN</Name>


3

What you did does edit the bounds but by the same you have destroyed the georeferencing. The original image is georeferenced with 4 ground control points and if you look at the coordinates you will notice that the image was not north-up but rotated/skewed. The right thing to do is to warp the image into a north-up image with gdalwarp gdalwarp -of GTiff -...


0

Found the answer. I used the -a_srs argument in gdal_transform and supplied minimum/maximum lat/longs. This Assigns/override the georeferenced bounds of the output file.


0

You should set time zone before doing that. -Duser.timezone=GMT See this link.


Top 50 recent answers are included