New answers tagged wms
0
It could be a bit of a work to associate a style defined on client side with a wms layer. You can easily highlight the features returned by the filter on a vector layer with the defined style. All you have to do is add a vector layer, specify the style in it and then add the features contained in the response returned by the filter. This piece of code might ...
1
In general the approach you have outlined will only work with vector layers. WMS layers are pictures of the map sent to you by the WMS server so it is harder to change their style on the fly as you would like. You probably want to see if it is possible to make a WFS request for the highlighted polygon and overlay that over the WMS base layer.
There are ways ...
0
Okay so I've found the configuration error. It seems that the xampp apache doesn't allow to get any stuff from the server so changing this line in your httpd.conf will solve the problem.
#
# Controls who can get stuff from this server.
#
Require all granted
to
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
0
Firstly, I'm not sure why you are using the WMSGetFeatureInfo in this particular way. The getfeatureinfo event is fired, once the control gets the data from the getfeatureinfo request on the WMS service. You just need to show the data on this event.
Please have a look at this sample, which shows a simple WMSGetFeatureInfo control being used: Feature Info ...
2
There are a lot of options. OpenLayers or Leaflet are probably a good place to start for the client side and they can read local shapefiles. For more options have a look at the OsGeo website (especially note the webmapping links on the right hand side).
0
Read about WMSGetFeatureInfo Control and its getfeatureinfo events:
The event object has a text property with the body of the response (String), a features property with an array of the parsed features, an xy property with the position of the mouse click or hover event that triggered the request[..].
See also documentation of the OpenLayers.Feature ...
0
Did you check that the "black" pixels are really black? They might have a low value and appear black on the screen, thus your conversion will not consider them black.
0
Here you will find most of them.
http://www.skylab-mobilesystems.com/en/wms_serverlist.html
and to GEBCO
http://www.gebco.net/
0
I think you can set
format: new OpenLayers.Format.GML(), // Used to parse the feature info response
infoFormat: 'application/vnd.ogc.gml', // Used to require the WMS server to provide GML format
When you set up your getfeatureinfo control. This should provide the information in a JavaScript variable you can interact with (event.features).
0
This works:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
...
0
To overlay the custom WMS layer correctly, I would first set the projection of the map, by passing in the projection parameter, and then at the end I would set the bounds in this projection.
My code would be as follows:
function init() {
var webMercator=new OpenLayers.Projection("EPSG:3857");
var wgs84=new OpenLayers.Projection("EPSG:4326");
var ...
0
The WMS layers load here using Ubuntu Master. Add the layer, which gives you the country overview, then right-click on the layer and set the project CRS from the layer CRS. This will set the project CRS to EPSG:102067 and allows zooming-in to large scales.
You could make a custom CRS for the project using the Proj string you posted, which might improve ...
0
There were a couple of Issues that need to be tackled, before we use the ArcGIS Server's WMS service on top of OpenStreetMaps.
We need to call the WMS service in OSM's projection, i.e. EPSG:3857
We need to make sure that the WMS service is transparent. This was done by using layer options, where we requested images in png format, and with a ...
0
I can suggest to take a look at
http://docs.geoserver.org/stable/en/user/tutorials/cql/cql_tutorial.html#cql-tutorial
filtering. Hope it helps!
Top 50 recent answers are included


