Tag Info

New answers tagged

0

Check that the url created by OpenLayers in your app matches the one from the 'Layer Preview' in GeoServer using the developer tools in your browser. Check the network tab.


0

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.


0

Please take a look at my answer here. In a nutshell, relative paths do not work. Use URL paths.


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

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


0

I put this code but I get error var vector = new ol.layer.Vector({ source: new ol.source.Vector({ parser: new ol.parser.GeoJSON(), url: '/geoserver/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=postgis:ind_fiber_ln&outputFormat=json' }), style: new ...


1

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


0

I took the "tiger_roads.sld" from the default data_dir and modified it to add a symbol "burg02.svg" with the labelObstacle vendor option and it does seem to work for me with GeoServer 2.6 Without labelObstacle: With labelObstacle: <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor version="1.0.0" ...


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


0

For remote WMS sources the procedure is the same, but you need to make sure you have ext override ajax from GeoExt included since the proxy needs to be used (http://geoext.org/lib/overrides/override-ext-ajax.html). If you know which WMS servers to use beforehand, you could also use a ProxyPass on your Apache webserver. There is no real support for WFS ...


0

What I finally found out that helped: f.feature.geometry = new OpenLayers.Geometry.MultiPolygon(f.feature.geometry);


0

You perhaps fail because you are trying to insert a polygon into WFS layer which is of type multipolygon. I would try the "multi" option from http://dev.openlayers.org/docs/files/OpenLayers/Control/DrawFeature-js.html multi {Boolean} Cast features to multi-part geometries before passing to the layer. Default is false.


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


0

It looks like Boundless only want to provide answers to questions if you pay them lots of money for support. They don't even run their own support forums anymore and rely on stack exchange instead. Download the version at http://geoserver.org instead, the Mac integration isn't quite as good but this version at least works.


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

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


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


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


0

Please check out: https://github.com/boundlessgeo/suite/issues/612 and see if putting in that extra jar file resolves it for you as well.


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.


2

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

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

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


0

So, georeferencing panel in ArcMap provides 2 options - update georeferencing and rectify. Update georeferencing creates jgwx, pnwx, tfwx extensions and this can't be opened in geoserver. Solution is to rectify all images, which creates pgw-like extensions. To define a world file's projection in geoserver you have to make exact copy of projection definition ...


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

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


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


0

I figured out that the solution could come from a software called QGIS. I used a plugin called 'Afine Transformation' and moved my whole layer to the left or right and then reloaded all of my data on the database and the geoserver.


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

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


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


0

There is no such feature, it's up to your client to look into the WMS capabilities document and get the valid scale ranges from there. You'll need a recent enough version of GeoServer to find the limits in there (I'm positive they are in 2.6.x, not sure about 2.5.x)


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


0

OK, so I figured out what is wrong! I needed to change the position of the transparent statement like this: Notice that transparent statement has gone in the above bracket. Thanks everybody for participating!


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


0

You should set the proxy base url to be the url of your external proxy server so that it is set correctly in all the outgoing GetCapabilities documents that clients will see. If a client is working thorough a proxy it is the clients responsibility to rewrite the base url it was given. I would consider any other behaviour a bug and report it to the ...


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


0

I do it by implementing a Proxy like this that could verify a users credentials as logged in using session variables and only allow them to access resources they are entitled to, ie: check the url for the layers that are being called and deny access if user is not authorized to view them. If you want to restrict the users to a particular area or feature ...


1

All you need to do is create a correct URL in your app and use Java to open the URL and fetch the contents as an image. The display the image as usual. To determine what URL you need you should read the WMS specification, or if you are in a hurry crib one from the GeoServer examples page or any other web map you can find.


0

Geoserver is a Server based application that generates maps by sending tiles to a Client Application. The two most Common Client Applications are Openlayers and Leaflet which rely on JavaScript to handle the presentation of the tiles to the end user on the Client. JavaSE has the ScriptEngineManager (javax.script package) which can execute JavaScript, and ...


0

One approach would be to implement a Proxy like this that could verify a users credentials as logged in using session variables and only allow them to access resources they are entitled to, ie: check the url for the layers that are being called and deny access if user is not authorized to view them. In terms of what data they may see, if it is a subset of a ...


0

One approach would be to implement a Proxy like this that could verify a users credentials as logged in using session variables and only allow them to access resources they are entitled to, ie: check the url for the layers that are being called and deny access if user is not authorized to view them. In terms of what data they may see, if it is a subset of a ...


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


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

The installer in GeoServer versions <2.6 has an issue with Windows 7 which makes installation into "Program files" or "Program files(x86)" to fail because Win 7 requires elevated privileges for those directories and the old installer does not take care of that. The installer in GeoServer 2.6 is fixed to raise the privileges and installation into Program ...


2

No - I don't think it is. There are two fixes that come to mind: 1 - copy the layer and add a new FeatureTemplate to the new layer. 2 - return all the data that any of your popups need and write some JavaScript to set up the pop up with the content you need.



Top 50 recent answers are included