New answers tagged

0

As it is not a windows setup you can't place the package under C:\Program Files because it gives an error for lack of permissions... I had the same problem, I solved it moving the unzipped directory under C:\Geoserver 2.15.2\ I hope this solve your problem.


1

I would put all of my data in a single table and make sure that it had a spatial index on the geometry column and conventional indexes on any attribute that you use for searching or in the style. I would then make sure the style prevented anyone drawing the layer at a scale above village size. No one needs to see the map for the whole country (the fields ...


0

I figured out that is impossible to do it for now until geoserver give us a way to use secured proxy. The definitive solution is to use MapProxy to cascade WMS layers.


1

As user30184 said in comments, MapProxy works very nice! Now I have my offline layer cache! I'm using the easy Docker deploy: https://hub.docker.com/r/kartoza/mapproxy


0

You are trying to open an iframe, instead of it, you can have the data as JSON, parse, show. Try this: <head> <meta charset="UTF-8"> <link rel="stylesheet" href="https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/css/ol.css" type="text/css"> <script src="https://code.jquery.com/jquery-2.2.3....


1

Problem was found. No problem with CSS and GeoServer. Problem with datasource - PostgreSQL DB. Part of data was droped. So GeoServer can't render data which doesn't exist.


0

An XYZ tiles layer is a directory structure published using a webserver. If you create the tile cache with geowebcache (as described) using the default file blob store, there will be a folder on your system with all the tiles in it. Next you need to publish this with a webserver, e.g. apache, nginx etc. The error you are getting is because you don't ...


0

GeoServer uses the java locale system to automatically choose the display language. My system is installed in English and still it figured out that my native language is Dutch. You can overrule the default java locale, in my case for windows: java -Duser.country=NL -Duser.language=en -Duser.variant=Traditional_WIN Then restart GeoServer, and check if the ...


2

Yes, you can create 3 separate styles with a filter that selects only the features you want styled. Or you can create one style with 3 rules each with a filter to select the required filters. In the first case, you will see only on type of polygons at a time (unless you request the layer more than once); in the second case you will see all three types of ...


0

so eventually, I skipped using the python package gsconfig, and applied the an xml model as is shown in this link. However, I made some alterations: I used it for a NetCDF, not a shapefile. PUT request instead of POST. presentation value LIST instead of CONTINUOUS_INTERVAL, and Default value of NONE instead of MAXIMUM . url = """<coverage> ...


0

Looking at line 94 of PropertyExistsFunction suggests that your feature is not simple and may well be null. To be sure of what is happening we need to see the "blah, blah, blah" part of your log and an example feature.


0

No, but we are always happy to receive enhancements to the code base.


1

After browsing few more posts and blogs and couple of approaches , I figured that I was supposed to use proj4 library to transform the extent. PFB my code changes : Included proj4 library: <script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.5.0/proj4.js"></script> Within my ajax call : var parser = new ol.format.GeoJSON(); ...


0

Well Known Text (WKT) can be used in a CQL filter, and the format of various geometries (i.e. point, line , polygon, polygon with hole, multipolygons, etc.) is well-explained at https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry Background: I was trying to create a CQL filter that is an amalgamation of several polygon features, to ...


1

I have found an alternative way for the render complete event to fire the code once all the tiles are rendered on our map. It is working fine for my case. var loading = 0; var loaded = 0; osmLayer.getSource().on('tileloadstart', tileLoadStart); osmLayer.getSource().on('tileloadend', tileLoadEnd); osmLayer.getSource().on('tileloaderror', tileLoadEnd); //...


0

The answer is: curl -u admin:geoserver -XPUT -H "Content-Type: text/xml" -d "<coverage><parameters><entry><string>InputTransparentColor</string><string>#000000</string></entry></parameters></coverage>" http://$IP:PORT/geoserver/rest/workspaces/$WORKSPACENAME/coveragestores/$RESOURCENAME/coverages/...


0

Geoserver don't acept backgroup for raster that has more than 3 bands. Is you put raster with 3 bands and set Input Transparent Color as 00000 the behavior will be which you expect.


2

Example of multiple WMS layers in a single OpenLayers layer For this service http://ogc.bgs.ac.uk/cgi-bin/BGS_Bedrock_and_Superficial_Geology/wms?service=WMS&version=1.3.0&request=GetCapabilities this would display 2 of the 6 sublayers: source: new ol.source.TileWMS({ url: 'http://ogc.bgs.ac.uk/cgi-bin/...


0

I suspect this may be related to this open issue: geowebcache/issues/612 GitHub-user wonder-sk attributed the differences in the Y-value of TopLeftCorner to a piece of code at GridSet.java#L356 which is rounding the Y-value (but only if it is within 0.5% of an integer value). The issue discussion also contains a workaround suggested by user MiquelRS: ...


0

This source https://docs.datastax.com/en/dse/5.1/cql/cql/cql_using/cqlSyntax.html#Escapingcharacters is the best documentation I could find, when I was encountering this CQL problem. It states that: [...] To use a single quotation mark itself in a string literal, escape it using a single quotation mark. And then shows this example: INSERT INTO cycling....


1

The Elastisearch geo-shape datatype seems to support any kind of unit (at least judging from the precision field): https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-shape.html NGA provides an Elasticsearch datastore that connects to Elastisearch: https://github.com/ngageoint/elasticgeo However, I never tried either personally, and the ...


2

You have several problems with that URL. Two versions specified: You can't use version=1.3 and version=1.1.1 in the same request as the format of the request changed between those versions (X,Y vs I,J). Missing QUERY_LAYERS: If you look at the GeoServer documentation you will see that QUERY_LAYERS is a required parameter (it can be a subset or all of LAYERS ...


2

5.3.3 is a patch release so the assert link doesn't work, but you can get the message via version 5.3.0 https://openlayers.org/en/v5.3.0/doc/errors/#43 layers: vectorLayer, should be layers: [vectorLayer],


1

GeoServer REST API is your best option build a form for upload data and post to Geo server build WMS and WMTS


1

You can add it through L.tilelayer.WMS method of Leaflet var wmsLayer = L.tileLayer.wms('https://demo.boundlessgeo.com/geoserver/ows?', { layers: 'ne:ne' }).addTo(map); Here are more details that you can follow https://leafletjs.com/examples/wms/wms.html


Top 50 recent answers are included