Re: [OpenLayers-Users] Re: Get Features from a WMS Layer

2011-05-23 Thread Xurxo Mendez
Hi, if you just want to get the features in browser memory (that is, get them into a JavaScript variable) you can fetch them issuing an XHR to GeoServer rather than using a Vector layer that your map will not display at all (BTW, if you finally use that approach be sure that you use OpenLayers.Str

Re: [OpenLayers-Users] clicked on the map, but not a feature?

2011-05-23 Thread Eric Lemoine
On Friday, May 20, 2011, ulao wrote: > How can I tell once I clicked on a map ( layer ) but only if there is no > shape/arker under my mouse. I see the .click handler passed evt, but no info > about objects. You can call getFeatureFromEvent on the vector layer: var f = vectorLayer.getFeatureFrom

[OpenLayers-Users] Re: Get Features from a WMS Layer

2011-05-23 Thread IvanBell
One final thing before I sleep. The following query (typed directly into the browser) returns the layer's features: http://localhost:8081/geoserver/wfs?service=wfs&version=1.1.0&request=GetFeature&typeName=MyMap:MyLayer Executing the query above returns the following:

[OpenLayers-Users] Re: Get Features from a WMS Layer

2011-05-23 Thread IvanBell
I thought I would include a couple of other examples of what I tried, neither of which worked. var wfs = new OpenLayers.Layer.Vector( "MyFeatures", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ url: "http://loca

[OpenLayers-Users] Re: Get Features from a WMS Layer

2011-05-23 Thread IvanBell
I see. Can you elaborate just a little? I have seen this frequently (i.e., the vector being created from "featureType" and "featureNS"); but no good explanations for how to use it. As a newbie, the OpenLayers documentation is often ambiguous, at best. As with this example, a lot of things are

Re: [OpenLayers-Users] Re: Get Features from a WMS Layer

2011-05-23 Thread Ian Turton
On 23 May 2011 20:41, IvanBell wrote: > I am not sure how that example demonstrates how to query the features for a > specified layer.  I see that it iterates through the defined/named layers in > the SLD file; but I don't see a query for the features within a layer. > Please advise. > var wfs =

[OpenLayers-Users] Re: Get Features from a WMS Layer

2011-05-23 Thread IvanBell
I am not sure how that example demonstrates how to query the features for a specified layer. I see that it iterates through the defined/named layers in the SLD file; but I don't see a query for the features within a layer. Please advise. - Up the Irons!!! -- View this message in context: ht

Re: [OpenLayers-Users] Get Features from a WMS Layer

2011-05-23 Thread Ian Turton
On 23 May 2011 16:09, IvanBell wrote: > I have a shapefile map with several embedded layers served via WMS using > GeoServer.  I would like to know how to query the map server (using > OpenLayers) to get all of the features for a specified layer. > > I have only seen examples for getting a feature

[OpenLayers-Users] Get Features from a WMS Layer

2011-05-23 Thread IvanBell
I have a shapefile map with several embedded layers served via WMS using GeoServer. I would like to know how to query the map server (using OpenLayers) to get all of the features for a specified layer. I have only seen examples for getting a feature upon a hover or clickable event. However, ther

[OpenLayers-Users] Polygon with different colours

2011-05-23 Thread Vikash Talanki
Hi frnds, I want to draw a polygon with different colours, say if polygon is of 50 m then for first 25 m the colour should be green and next 10 m the colour should be yellow and rest filled with orange, just to show the coverage of a antenna signal. Is it possible using openlayers??? A

Re: [OpenLayers-Users] Google Layer v3 and Oblique imagery

2011-05-23 Thread christopher.schmidt
A ticket would be great. -- Chris On May 23, 2011, at 2:59 PM, ext Gundel, Aaron wrote: > Apologies; forgot to cc the list in my reply. > > Ah; okay. Should I open a ticket about this? I don't suspect it would be > terribly difficult for me to make a patch for this issue for a future > ver

RE: [OpenLayers-Users] Google Layer v3 and Oblique imagery

2011-05-23 Thread Gundel, Aaron
Apologies; forgot to cc the list in my reply. Ah; okay. Should I open a ticket about this? I don't suspect it would be terribly difficult for me to make a patch for this issue for a future version. Aaron -Original Message- From: christopher.schm...@nokia.com [mailto:christopher.schm

Re: [OpenLayers-Users] Google Layer v3 and Oblique imagery

2011-05-23 Thread christopher.schmidt
On May 23, 2011, at 2:12 PM, ext Gundel, Aaron wrote: > Hello all, > > I’m not sure if this question has been asked before, but I noticed this > morning that our Google hybrid/satellite view is starting to deliver oblique > imagery by default for our area (the San Francisco Metropolitan Area)

[OpenLayers-Users] Google Layer v3 and Oblique imagery

2011-05-23 Thread Gundel, Aaron
Hello all, I'm not sure if this question has been asked before, but I noticed this morning that our Google hybrid/satellite view is starting to deliver oblique imagery by default for our area (the San Francisco Metropolitan Area). (You can see an example of this here... http://openlayers.org

Re: [OpenLayers-Users] Re: Updating Data: Comet, Push, or What?

2011-05-23 Thread Michael
Well, it seems like we have a pretty strong sense that long polling/Comet might be overkill for what I have described. What I glean from this all is: a. Simple is better unless you REALLY need fancy. b. Normal polling with appropriate intervals should suit most applications, or at least min

Re: [OpenLayers-Users] Re: Updating Data: Comet, Push, or What?

2011-05-23 Thread Arnie Shore
I have to agree with Sanjay on this. I use conventional polling based on a client-side timer of 15 seconds in my CAD/Situation-Awareness application, with the server responding immediately. (This is after a long and hard look at alternatives.) Simplicity itself, and readily tested and tweaked

Re: [OpenLayers-Users] SOS service

2011-05-23 Thread truongxuan quang
Xurxo Méndez Pérez and Bart, Thank you very much for your advice, my questions were not clear to you as my knowledge about SOS. I spent more than two weeks for installing and implementing ist-SOS vs python for sos service and searching for tutorial web-site, but I done nothing, I compare w

[OpenLayers-Users] OpenLayers.IMAGE_RELOAD_ATTEMPTS, and other global settings

2011-05-23 Thread Jeff Dege
I've built a mechanism that allows me to store much of a map's configuration in a server-side database. The server code reads the settings and builds a javascript object that it passes to a function on the browser that extracts the pieces it needs and constructs a map. This allows us to config

Re: [OpenLayers-Users] SOS service

2011-05-23 Thread Xurxo Mendez
Ok, I was writing just while Bart's post came in :) . Best regards, Xurxo Méndez Pérez http://blog.sonxurxo.com http://www.sonxurxo.com 2011/5/23 Xurxo Mendez > Hi Quang, > > I'm currently developing some stuff with OpenLayers and SOS, but not for > transactional profile (so not for registe

Re: [OpenLayers-Users] SOS service

2011-05-23 Thread Xurxo Mendez
Hi Quang, I'm currently developing some stuff with OpenLayers and SOS, but not for transactional profile (so not for registering sensors). I'm just working for displaying sensed data. I have something in my sandbox ( http://trac.osgeo.org/openlayers/browser/sandbox/sonxurxo/sos). For sure Bart van

Re: [OpenLayers-Users] SOS service

2011-05-23 Thread Bart van den Eijnden
Not sure if I understand your questions. But for setting up an SOS you would need to look at something like 52North SOS: https://wiki.52north.org/bin/view/Sensornet/SensorObservationService There are a few patches in the OpenLayers Trac for improving SOS support which might help you if you are

[OpenLayers-Users] SOS service

2011-05-23 Thread truongxuan quang
Hi list I am implementing for showing and querying 10 year x daily rainfall data of more than 30 rainfall stations, I had looked at http://openlayers.org/dev/examples/sos.html but I could not understand how SOS could work and how to register sensor and other tool for manage SOS service and e

Re: [OpenLayers-Users] proxypass and Proxy.cgi

2011-05-23 Thread christopher.schmidt
The OpenLayers example script proxy.cgi is not designed to solve this problem. ProxyPass in Apache is a way to solve this problem, but won't really help you if your webserver is IIS; I presume IIS has similar proxying capabilities. Proxy.cgi is used to solve a different problem; if your OpenLaye

Re: [OpenLayers-Users] Labels in the middle of a line

2011-05-23 Thread Matthias Meißer
Is there realy nobody that can help me to align a label in the middle of a linesegment? This example just explains the positioning, but do I realy have to calc it by hand for such a common task? http://openlayers.org/dev/examples/vector-features-with-text.html Matthias _

Re: [OpenLayers-Users] Re: Mapserver untiled problem

2011-05-23 Thread Slawomir Messner
Hi, we don't use the Ol.Layer.MapServer class for our MapServer layers but OL.Layer.WMS and it works fine. I assume it would look like this with your parameters: new OpenLayers.Layer.WMS("World Map", "http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/ms101/htdocs/ms101.map";, {"layers": "

Re: [OpenLayers-Users] linking layerswitcher and overview map

2011-05-23 Thread Janis Elmeris
Well, I'm cloning them. It would be your second approach except instead of [LAY1, LAY2, LAY3] I would use [LAY1.clone(), LAY2.clone(), LAY3.clone()]. The LAY* variables being undefined must be some issue with your particular code, I think. Like, you define them in some scope that is not acces

[OpenLayers-Users] Re: Mapserver untiled problem

2011-05-23 Thread Saka Royban
Am i posting in wrong section? Should i post in mapserver mailing list From: Saka Royban To: openlayers-users@lists.osgeo.org Sent: Thu, May 19, 2011 11:42:48 PM Subject: Mapserver untiled problem Hi all. I'm gonna use a mapserver untiled layer but the resul