Tag Info

Hot answers tagged

3

Try this: curl -v -u admin:geoserver -XDELETE http://localhost:8080/geoserver/rest/my_ws/coveragestores/my_cover?recurse=true You have a space between -X and DELETE Example can be seen at the REST API Docs curl -v -u admin:geoserver -XDELETE ...


3

You need to use WFS-T, the T standing for transactional, which is what's required to be able to write-back. Both Openlayers and GeoServer support this. This question may help on the script side - WFS-T: changes not saved on an OpenLayers map There's also a sample tutorial here: ...


3

The GeoServer documentations states how to extract start and end points with geometry transformations (just use the end- point rule). The code example provided uses square as marks, but you could always replace this with e.g. the shape symbol shape://oarrow. EDIT: I forgot to mention how to rotate the triangle correctly (couldn't find it in the ...


3

You may use Filtering in GeoServer to accomplish this. The simplest way to do this from your perspective would be to use a cql filter on the end of your request. e.g. http://mygeoserver.de?service=WFS&version=1.0.0&request=GetFeature&typeName=mytype:mylayer&maxFeatures=50&cql_filter=INDEX=1


3

Google maps is not a WMS service, and the terms of use of Google Maps itself prevent legal usage of it in a server side application, unless of course you have some sort of commercial contract with Google that entitles you to use their tiles outside of a browser.


3

GeoServer does not do anything to control the permissions of the directories, so it gets the default permissions the OS would assign. I believe you have to change the umask for the user that's running the GeoServer process: http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html


2

You appear to be trying to turn off/on Layer Visibility in GeoWebCache which is integrated with GeoWebServer. Geowebcache is used for caching tiles to improve speed, not controlling layer visibility There are two ways to handle layer visibility Style the Layer using SLD in GEoserver, using<MinScaleDenominator></MinScaleDenominator> and ...


2

Lets assume you want to save a feature from a OpenLayers Vector Layer into PostGis and that you want to achieve this using GeoServer. The general steps would be as follows: You need to configure a WFS in geoserver using PostGis as a data store (GeoServer publish posgis table) You need to configure your vectyor layer to point to the wfs you just created ...


2

Not as WFS level as far as I know. If you use a database backend and create an unique constraint for the attribute it naturally guarantees that data that are read through WFS have unique values in this field. For inserts to be done with WFS-T the result of having unique constraint is that if you try to insert a feature with duplicate attribute value, the ...


2

You dont need geoserver or mapserver to serve the tiles. Put them on a webserver and access them with OpenLayers.Layer.GeoWebCache


2

Whenever you activate tile caching for a layer or layer group in Geoserver, GeoWebCache will start to cache all requested tiles. As you know you can speed things up for your early users by pre-seeding all important mapsets, zoom levels or areas. But if you change the tiled layer's basic structure (e.g. by modifying the gridset) or layout (e.g. by switching ...


2

I believe that layergroup behaves like a one layer and therefore you can't use two CQL_FILTERs which are separated with semicolon as if you were asking two layers. What you can do is to ask two layers with one request and give different CQL_FILTERS for those two as a list. This request is selecting New York from topp:states and point named "fire" from ...


2

The problem is not in the code, but on the image itself. The Geotiff has 3 bands, and the nodata value is set to 0 Band 1 Block=508x8 Type=Byte, ColorInterp=Red NoData Value=0Band 2 Block=508x8 Type=Byte, ColorInterp=Green NoData Value=0 Band 3 Block=508x8 Type=Byte, ColorInterp=Blue NoData Value=0 However inspecting the image in QGIS, it ...


2

I have figured it out by tracing the various shortcuts in Lubuntu. Basically, it involves creating a init script in /etc/init.d as listed in the bottom, which starts tomcat and call the content of the osgeo geoserver start script. Note: restarting tomcat is not good enough as I had thought. After that do: update-rc.d myscript defaults 99 01 Init script: ...


1

If you mean minimum bounding box of your data that the WMS is rendering you need to make a separate call to geoserver (WPS) to get that given that your datasource is in a vector format. Or you could call the REST-API to get the configured bounding box of the layer.


1

One possibility would be to make GeoServer to move the layer. You should make your OpenLayers application to use a tailored SLD or SLD_BODY for that layer and SLD should use the vendor parameter "offset". See the "Shadow" example in http://docs.geoserver.org/stable/en/user/styling/sld-extensions/geometry-transformations.html


1

Geoserver labels polygons,by default at the determined centroid of the polygon. You can try the Geoserver Extension PolygonAlign to allow Geoserver to try different orientations for the label to get it to fit .. GeoServer normally tries to place labels horizontally within a polygon, and gives up if the label position is busy or if the label does not fit ...


1

Sure you can. Its as easy as loading the map. See this example: http://dev.openlayers.org/examples/osm-google.html Code: (Place this after the OpenLayers map) var gmap = new OpenLayers.Layer.Google("Google Streets"); map.addLayer(gmap); and load the folowing javascript: <script ...


1

OpenLayers 3 is not just an updated version of OpenLayers 2. It is a total rewrite and uses a totally different set of values (e.g. the OpenLayers object is called ol). If you want to use it with GeoServer, you have to rewrite your JavaScript code to work with OpenLayers 3. You can find examples and API reference on the official page. The main discomfort in ...


1

If you have already created the layers in QGIS and you want to publish them using the same style, I think you should go with QGIS Web Client. Related to the new points, everytime the user load the WebGIS application, a new request will be made to the database and so the information will be always updated.


1

With the admin utility you can select allowed formats from the WMS settings page. GetFeatureFormats can be selected from "Allowed MIME types for a GetFeatureInfo request". Leave only text/html and text/plain left. You must also disable vector formats from "Allowed MIME types for a GetMap request" for preventing KML and perhaps SVG and some other ...


1

Ciao, the style you are using is stripping out the alpha band. Use the standard/default raster.sld style. Simone.


1

Let's assume that your 'deg' columns are +ve for North/East and -ve for South/West, and that all other metrics are +ve only, then making decimal degrees is straightforward. SELECT AddGeometryColumn('population', 'latlongeo', 4326, 'POINT', 2); UPDATE population SET latlongeo = ST_SetSRID(ST_MakePoint( sign(long_deg) * (abs(long_deg) + long_min/60 + ...


1

The fix is defining a filterType parameter in the OpenLayers.Control.GetFeature constructor: new OpenLayers.Control.GetFeature({ filterType: OpenLayers.Filter.Spatial.INTERSECTS, ... The default filterType is OpenLayers.Filter.Spatial.BBOX that results correctly in an uncertain Filter() query in SQL Server, when a spatial index is set. If ...


1

Geoserver is a good way to go. You could use the NETCDF Datastore to create the layer and style the Raster using SLD Raster Symbolizer it so that it overlays your OSM base layer transparantly. To handle the updating of the data without bringing the Layers down for long, you could use the Geoserver REST API via Curl. To make this work, you would have two ...


1

if you change the StyleLayerDescriptor to this...it does validate <StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...


1

The scale limits which are used in SLD should be converted automatically into MinScaleDenominator/MaxScaleDenominator with WMS 1.3.0 and into ScaleHint in WMS 1.1.1. You can read examples from this demo server: http://demo.opengeo.org/geoserver/wms?service=WMS&request=GetCapabilities&version=1.3.0 ...


1

Open your GeoServer Admin Instance at http://yourhost:8080/geoserver/web/ and log in .. To use SQLViews, you must have a database configured and available with data in it .. usually PostGreSql, and you must have already configured a Database DataStore to use SQL Views. Select layers -> Add new Resource (green + button at the top) In the drop down list of ...


1

Check your Geoserver Layer Setup. Open the WMS layer and go to the Publishing Tab .. There is a check box under WMS Settings labeled Opaque, make sure that this is unchecked.


1

Check your coordinates in these layers. Maybe they don't match on each other and you are switching from one system to another with layer switching... I am not sure what are your WMS made of. Is that blue line a vector? If it is raster it can cover all other layers (it has no transparency) with white border we see around line (maybe it has defined boundaries ...



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