Tag Info

Hot answers tagged

3

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


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) ...


2

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


2

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 ...


2

You should say: myattr1=x and myattr2=y see the ECQL spec for the full syntax reference.


2

Esri has announced for the next ArcGIS-server version (10.3.1) support of SOI (server object interceptor). You find some informations about it in this pdf: http://proceedings.esri.com/library/userconf/proc14/tech-workshops/tw_689.pdf You can also check this video which includes complete explications and a demo of a watermark example: ...


1

ESRI has a help article on adding a watermark to a map service. If you have a web app that consumes the service you could easily add a watermark to the app. Here is an example of doing that with the JavaScript API.


1

Here is what I do: In your GeoServer content.ftl file (explained here FTL), add a hidden list item like this: <li style="display:none";>popup</li> You can change the key word 'popup' to anything you like. You will be searching for this word in you popup javascript. This word will only appear in the getFeatureInfo request if there is a feature ...


1

You can switch to infoformat=application/json so you will get a json response from Geoserver. Then just check how many features are returned and if features.length>0 is true show the popup otherwise not. For this solution you will have to create a table from the json-response. You could do something like that: set infoformat in your ...


1

You'll need to study the renderer in GeoTools which calls the labeling subsystem (https://github.com/geotools/geotools/tree/master/modules/library/render/src/main/java/org/geotools/renderer/label). Before you go too far down that route feel free to write a proposal and discuss it on the developers list.


1

Ciao, in the latest versions of GeoServer you can use the REST api to ingest additional granules. ImageMosaic would not pick up new images automatically, but you could use the REST api to automate this. You can check this link for additional information. Hope this helps.


1

The image mosaic plugin holds the information about the tiles/images in an index which is either a shapefile or a database. To make the new images show up you need to update the index. This is tricky if you are using the default shapefile but easy if you are using postgis. For postgis you just issue an SQL insert statement with the name, location and bounds ...


1

You can also use -XPOST to add new availableStyle to your layer: curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" -d "<styles><name>yourstylename</name></style></styles>" http://localhost:8080/geoserver/rest/layers/workspace_name:layer_name/styles For example: curl -v -u admin:geoserver -XPOST -H ...


1

I finally find the solution : First, to add an extra style additionnal to the defaut style you have to use <styles> (and not <style>): curl -u admin:pass -XPUT -H 'Content-type: text/xml' -d '<layer><styles><name>sld_name</name><workspace>workspace_name</workspace></styles></layer>' ...


1

The problem with your jsfiddle is that you try to do a Cross-Domain-Request that gets blocked due to the Same-Origin-Policy. I could imagine that this is the same Problem on your server. If you host your Leaflet-App on Port 80 and try to get the Feature-Info from port 8080 this will be blocked. You can solve this problem by making your geoserver ...


1

This could happen if an other service is running on the same port. Check if Apache or other services are running. Uninstall or stop those services and you should be fine.


1

The first thing to realise is that GML is a transport/Exchange format you are not really supposed to work directly with it, so the usual thing to do is import it into a spatial database (usually PostGIS) there are plenty of tools to do this both open source and proprietary - see this question for one answer. Secondly, no one should be writing WMS and WFS ...


1

It does work for me with GeoServer 2.7-beta with Jetty. I tested by two methods. Edit web.xml. On my computer web.xml had ENABLE_JSON pre-configured but commented out. When I removed the comments around context-parameters and restarted GeoServer I could find a new GetFeatureInfo format from the GetCapabilities: ...


1

Fixed it by adding the ogc: namespace to: PropertyIsEqualTo, PropertyName and Literal: <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" service="WFS" version="1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs ...


1

I think this guide will help you. It shows you how to turn a large geotiff into map tiles for use with leaflet.


1

Mike Groan on the geoserver user list described this procedure which was confirmed by @xtreye: Authentication: user = SecurityContextHolder.getContext().getAuthentication(); To get the user name: user.getName()


1

If you are trying to visualize terrain in Cesium, you should know that there is a publicly accessible Terrain Server that is built for performant visualization in Cesium. The STK World Terrain is built from multiple terrain sources that are layered together into a single unified tileset; the CGIAR SRTM is one of the datasets that feeds into the World ...


1

searching for a solution for colour gradient based SLD for polygons I found this: http://docs.geoserver.org/latest/en/user/styling/sld-tipstricks/transformation-func.html - here interesting: "Interpolate" transforms a continuous-valued attribute into another continuous range of values. Geoserver provides already a solution but it is not called something with ...


1

I've also had units tests fail for elusive reasons (it was Main Module in my case). While not an ideal solution; this worked for me (got successful install, haven't had any further strange behavior) and is suggested in the docs: Often it is useful to skip unit tests when performing a build. Adding the flag -DskipTests to the build command will only ...



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