New answers tagged

0

I got a solution working on GeoServer 2.7.2 that was very similar to @xcer however I didnt need to add an extra Group, as adding the users to the default User Group Service seemed to be enough for me. In short: I added an LDAP authentication provider (much the same as in the question above) with User Group Server pointing to `default'. Connection tested ...


0

GeoServerRESTReader reader; GeoServerRESTStoreManager storeManager; reader = new GeoServerRESTReader(RESTURL, RESTUSER, RESTPW); storeManager = new GeoServerRESTStoreManager( new URL(RESTURL), RESTUSER, RESTPW); RESTDataStore rds = reader.getDatastore(workSpaceName, storeName); GSDirectoryOfShapefilesDatastoreEncoder update = new ...


-2

We have written a mobile geospatial data collection and audit app, that works on any browser enabled device (any device as long as it can enable GPS). It is a mobile app/interface for field data collection and mobile editing of GIS data that relies/syncs back to some type of GIS server or database. We use our own server (MySQL) and your data is stored on ...


0

The actual version of geoserver (v2.8.2) released on January 26, 2016 ships v6.1.8 of Jetty. But it seems that the branch 2.9 will ship v9 of Jetty, as Justin Deoliveria has done some work on it and the related ticket is closed.


0

Well, I gleaned this information from many different posts. There are several "answers" out there, but I only found one that actually worked. First of all, if you are running Tomcat 8.0 as a service in the Windows OS, those BAT files (catalina.bat, setenv.bat if you created one) do not seem to be relevant at all. There are many who say "edit ...


1

GeoServer uses the top of the spatial index to quickly compute a rough bounding box by default, but you can go in the store configuration and disable the "Estimated extends" flag, this will make it compute the bbox going row by row. Mind, with a few million rows that will take minutes, and the GeoServer UI will be locked down during all that time, all you ...


1

Yes, you can try styling your data with QGIS. But if you want to create a rule based sld or an sld with more options (fill opacity, rules, outline etc) I recommend you to use uDig. With you uDig you can style your data with many options and then export slds that will work 99,9% when uploaded on geoserver. More about sld editor and uDig here.


1

The quick answer to the question is yes it is possible. You will need to construct an external SLD file, and store it on your server, then you will need to send a GetMap request that references that SLD in your request. So here for example is a GetMap request to a GeoServer WMS (generated through a web client using OpenLayers) GetMap to a GeoServer WMS ...


2

No, do not load the imagery into PostGIS. You want to load the image catalogue into PostGIS and use the JDBC image mosaicking support in GeoServer to read the mosaics using the database catalogue. That was you can easily update which images participate in your mosaics via the catalogue in the database, while not incurring the performance penalties of storing ...


1

You don't have that (yet) on GeoExt 3. Meanwhile, you might check another smaller project focused on managing layers, called extjs_ol3_layercontrol. It is also written in ExtJS. Check the blog and the github. If you add the Geoserver capabilities URL (something like ...


0

I encountered the same problem after GeoServer was updated from 2.5. to 2.7.5. Trying to view a layer in GML led to the following error message: <ServiceExceptionReport xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2.0" xsi:schemaLocation="http://www.opengis.net/ogc ...


1

By default point sizes are measured in pixels and so will change size as you zoom in and out of your map. The Symbology Encoding standard allows you to specify the size of your points (and other features) in map units which will remain the same real world size as you zoom in and out, that is they seem to get bigger as you zoom in like polygons do. You need ...


1

Could be possible to apply a zoom level into this url request? No. The concept of "zoom level" can only apply for grid-based reference systems (e.g. TMS). For WMS, you are providing both the bounding box of the area you want and the width-height of the image you want. The "zoom level" is implicit, defined by the ratio between those two parameters.


1

I found some workaround to this as I was needing to do exactly the same thing, classify using kmeans inside the database depending on the features which are within the extent. I'm using openlayers. Here is what I do. In javascript I've put a listener on precompose event in the map. Then I can calculate the extents (bbox) inside the javascript and change the ...


5

While I can't help you on the database io speed issue, you can display 3 millions points easily if you rasterize. Bin points into pixels (aggregate), then decide how contents of bins translate into a color. I'm currently involved in creating a python library to do exactly this: https://github.com/bokeh/datashader This example below uses that technique to ...


3

QGIS is a desktop program, you could create a project file with the WFS/WMS layers then modify the xml of the QGIS project file to load up in the extent that the Open Layers map is in. Export the user drawn layer to json and then they can load that in a print. But that relies on the user having QGIS. Alternatively see the answer to this question and modify ...


0

As per @iant's comment. The following URL on the geoserver docs says it all: WMS GetFeatureInfo requests will be passed to the remote WMS. If the remote WMS supports the application/vnd.ogc.gml format the request will be successful. You can check available formats in the XML output on your GetCapabilities URL:


1

We have almost exactly this same problem, same versions of everything except our SDE has been upgraded using the scripts from ArcGIS Pro 1.1, and I have tried using, alternately, the .jar file jpe_sdk.jar from 10.1 as well as 10.2.2, which is called jpe_10.2_sdk.jar. I can't seem to find that file in the 10.3.1 ArcGIS Server install, which indicates to me ...


0

Well figured it out, there still is probably some extraneous calculations that I'll refactor later, but here is what I figured out: $scope.map.on('dblclick', function(evt) { //Calculates center coordinates (lon,lat) in (-180,180) & (-90,90) form $scope.coordinate = evt.coordinate; $scope.center = ol.proj.transform($scope.coordinate, 'EPSG:3857', ...


1

You are actually making a GeoWebCache request not a simple WMS request so in general GWC ignores filters. The simple answer is to make your filtered request directly to GeoServer by changing http://localhost/geoserver/gwc/service/wms to http://localhost/geoserver/wms and all will work as you expect. This is the easiest answer as you are unlikely to want to ...


0

The correct date format (in this instance) is I think as advertised in your DescribeCoverage response like 2016-01-14T00:00:00.000‌​Z. To get at a date in your coverage you need to apply a 'Slice' along the Time Dimension. In WCS 2.0 this slicing is carried out by means of a domain subsetting operation. With GET/KVP requests the parameter name is SUBSET ...


1

A WMS request returns an image that is generated on the server so the CQL filter must be executed there. If you have a supported query then GeoServer will pass the CQL filter down to the PostGIS (or other) database for further speed savings (unless it's Oracle when it may slow down :-( ).


0

It looks like it might be a GeoServer bug on creating the KML. I can see that a GetMap request with image/png output works: ...


1

The problem is that your map is in EPSG:3857 and your getFeatureInfo request is in EPSG:4326. This will work in the sense that no error is thrown because the WMS is stateless and has no idea that the two requests are related but the location of your click is "off" because getFeatureInfo works by "drawing" the map as requested and looking for the feature ...


0

Well, here is what I've discovered... I would NOT recommend doing an "in place" installation with the Windows installer, at least if you use GDAL extensions. Not sure what other extensions might cause issues. Perhaps all of them? I successfully upgraded as follows: 1) I backed up my data_dir folder, which already was not in the same place as the ...


0

Your map and your WMS layer are projected in Web Mercator (EPSG:900913). Therefore, it is normal that your WMS url bbox are 15028131.255,-5009377.085,20037508.34,0 instead of 15.255,-50.085,20.34,0. So I cannot see the problem. Is your WMS working properly? What is the result of your mapserver queries like: ...


0

It looks as if you are overwhelming the translation engine with choices, please read this for full details but the short answer is to add @mode "Simple"; at the top of your styles to reduce the amount of simplification the translation engine tries to apply. You could also try the Exclusive mode but you will need to be patient (and probably increase the ...


1

If you are looking at the latest documentation then that is the correct syntax but you are using an old GeoServer so need to consult the older manual which makes no mention of the parameter. If you'd like to use this feature you will need to upgrade your GeoServer version to 2.9+.


1

As far as I know there isn't an existing function to do that, it might be possible to use the offset function to move an arrow but you'd need to know which direction to go in. GeoServer does have startPoint and startAngle (and matching end...) functions to allow you to put arrows at the beginning and end of lines. If You must label the centre of the line ...


1

As far as I know, there is no way to do that, someone would have to write a GWC TileLayer similar to ArcGisCache and then maybe also add a way to configure it from UI (e.g., going back to ArcGisCache, right now afaik you have to manually add the jar to the GeoServer, then manually change the GWC configuration file on disk, and force GeoServer to reload the ...


1

As I have found the answer, I decide not to delete this thread but to post the solution here. It comes from : https://wiki.eclipse.org/Jetty_Expanded_Webapp_Deploy Location Based Deployment In a default Jetty installation, the directory $JETTY_HOME/webapps is scanned at startup for web applications to be deployed. So to deploy your web ...


2

The problem is that SQL view in geoserver doesn't allow to use semicolon(';') in SQL statement. Geoserver only allows one query statement. You didn't provide the structure of Your database, but may be it's possible to build SELECT query with subquery and get the same result.


1

The CSV should be: ID,AssetID,SampleTime,Lat,Lon,Value 1,1,2015-01-01T10:00:00,10.00,62.00,15.2 2,1,2015-01-01T11:00:00,10.10,62.11,30.25 Written like you have it, there is an extra double quote that might make the parser think you have an attribute named ,Lon,Value (although it would be better if the code just threw an exception at the un-closed double ...


1

The CSS plugin does a CSS to SLD conversion, the opposite is not always possible as long as CSS cascading is enabled. On the current developer series (GeoServer 2.9.x) we have a directive to disable cascading, e.g., @mode "Simple"; at the top of the file, that would allow one to write a SLD -> CSS translator... but it's not there yet. Contributions ...


1

Based on the documentation it appears your query would be written as: [name LIKE '%police%'] It doesn't appear that you can change the wildcard characters based on this: Patterns use _ to indicate a single unspecified character and % to indicate an unknown number of unspecified characters.


0

This can be controlled with security setting by changing the active role service.


0

You can use OpenLayers.Control.WMSGetFeatureInfo. This would allow you to capture a click event and use it to poll the WMS endpoint for that specific feature's properties. For highlighting the feature, you might want to consider pulling WFS/vector tiles and rendering them on top of the WMS layer. Using the hover method to pull the currently selected (via ...


1

I had to change the catalog mode to mixed! The issue had nothing to do with the dispatcher servlet mapping. The "no handler mapping found" warning still exists but everything works like before.


1

Because GeoServer (and all WMS Servers) doesn't know which map client is making the request for the legend you need to let it know what scale your map is at. So you need to pass in the SCALE parameter with your getLegendGraphic call, so it becomes something like: ...


1

It looks like it could be a Cygwin/Windows 7 issue as the build is fine on my machine (Linux/Oracle JDK 1.8). I'm a little confused as to why you would use cygwin to control the build, as one of the joys of JAva is it works even on windows (as does Maven). [INFO] ------------------------------------------------------------------------ [INFO] Reactor ...


0

Check making a call with the browser and the developer tools of the browser that the GetFeatureInfo response is being declared as UTF-8. Or directly try to modify the html/xml GetFeatureInfo templates to enforce the client display the results in utf-8 adding a line like this in the header: <meta http-equiv="content-type" content="text/html; ...



Top 50 recent answers are included