[OpenLayers-Users] WFS: Problem retrieving Features from Geoserver/PostGIS

2010-08-12 Thread andreia farrér
Dear List, I am trying to modify the wfs-editor.html-example for digitizing Points, Lines and Polygons. First I created a polygon-shapefile (one polygon in it, extending a big part of eastern Switzerland) in QGIS and imported it into my PostGIS-DB as ogm_polygons; then I published the layer in

Re: [OpenLayers-Users] WFS: Problem retrieving Features from Geoserver/PostGIS

2010-08-12 Thread Bart van den Eijnden
Hi, use: featureType: ogm_polygons, featurePrefix: OpenGeoMap alternatively, specify featureNS instead of featurePrefix. That's the namespace which is bound by Geoserver to the OpenGeoMap prefix. Best regards, Bart -- Looking for flexible support on OpenLayers or GeoExt? Please check out

Re: [OpenLayers-Users] How to refresh a layer every N seconds?

2010-08-12 Thread geekjack
Hi zspitzer: I have try it many a time,but i just can not work it out. Maybe i do not understand the meaning of the trac tickets.can you give me some examples?Or some working Documentations (Html docs or JS docs)? Thank you for your answer! You are the first one who help me with my question

Re: [OpenLayers-Users] How to refresh a layer every N seconds?

2010-08-12 Thread Zac Spitzer
Can you simply post your code so we can see what you have tried? z On 12 August 2010 17:34, geekjack geekj...@163.com wrote: Hi zspitzer:    I have try it many a time,but i just can not work it out.  Maybe i do not understand the meaning of the trac tickets.can you give me some examples?Or

[OpenLayers-Users] WFS: Problem retrieving Features from Geoserver/PostGIS

2010-08-12 Thread andreia farrér
Thanks for the advice, Bart. I altered my code with the featurePrefix but the result is still the same, no feature showing up in my map. Is it possible, that the style of the feature could be somehow jinxed, e.g transparent? Or could there be any other reasons. It's my first openlayers-project and

Re: [OpenLayers-Users] How to refresh a layer every N seconds?

2010-08-12 Thread geekjack
Hi: Here is part of my codes: var cars = new OpenLayers.Layer.Vector(cars, { strategies : [ new OpenLayers.Strategy.BBOX(), new OpenLayers.Strategy.Refresh({force: true, interval: 6000 } )] , protocol : new OpenLayers.Protocol.HTTP(

[OpenLayers-Users] SLD over WMS

2010-08-12 Thread Fernando Ribeiro
Hi list, I am trying to change the default style of a WMS layer, with a new SLD style. So far I tried the SLD:, direcly on layer options, and layer.mergeNewParams, without much success. Here's the layer I want to change: var fires_24h = new OpenLayers.Layer.WMS( Fires 24h,

Re: [OpenLayers-Users] How to refresh a layer every N seconds?

2010-08-12 Thread Kris Geusebroek
Hi, What is happening not correctly in your opinion. the use of the RefreshStrategy is correct. Are you seeing your features on the map? If not i think since you get you're data from a local xml file it can be a same origin policy problem. If you can see your features i think the refresh is

Re: [OpenLayers-Users] clickTolerance on selectFeature?

2010-08-12 Thread Alex Brandsen
Hi Phil, that might be a good way to solve this as well. I'll give it a go! Thanks, Alex. Date: Wed, 11 Aug 2010 10:07:01 +1200 From: Phil Scadden p.scad...@gns.cri.nz Subject: Re: [OpenLayers-Users] clickTolerance on selectFeature? To: users@openlayers.org Message-ID:

Re: [OpenLayers-Users] SLD over WMS

2010-08-12 Thread Andreas Hocevar
Hi, what about fires_24h.mergeNewParams({sld: './SLD/my_new.sld'}); This requires that my_new.sld is stored at the same location as fires.sld. Do you have that, or are you generating a new SLD on the fly in OpenLayers and store it back to the server? If so, you have to wait for the server's

[OpenLayers-Users] Attempt to use Google Maps v2 API fails because GMap2 is undefined

2010-08-12 Thread Guyren G Howe
I'm doing what seems like an entirely straightforward extrapolation of the Google Maps v3 api example from the openlayers site. I load the same javascript files in the same order and make the same calls in my initialization code. But it fails with The Google Layer was unable to load correctly.

Re: [OpenLayers-Users] GeoTIFF display

2010-08-12 Thread Andreas Hocevar
Hi, the problem is that most browsers don't support the TIF format. See http://en.wikipedia.org/wiki/Comparison_of_web_browsers#Image_format_support So there are two prerequisites: 1) Your users have to use Safari 2) You have to know the bounding box and resolution of your GeoTIFF, because you

Re: [OpenLayers-Users] GeoTIFF display

2010-08-12 Thread Mickael BEAUFILS
Hi Jon, Hi Andreas, Thanks for your answer. Well I never used the GeoServer REST API, but according to you it seems to be the solution. I will have a close look to it and try this. Regards, Mickael Beaufils De : mankillseveryth...@googlemail.com

Re: [OpenLayers-Users] SLD over WMS

2010-08-12 Thread Arnd Wippermann
As far as I know from MapServer, you can't use a relative url. example from http://mapserver.org/ogc/sld.html http://www2.dmsolutions.ca/cgi-bin/mswms_world?SERVICE=WMS http://www2.dmsolutions.ca/cgi-bin/mswms_world?SERVICE=WMSVERSION=1.1.1Re

Re: [OpenLayers-Users] Attempt to use Google Maps v2 API fails because GMap2 is undefined

2010-08-12 Thread Andreas Hocevar
Hi, you should look at the google v2 example if you want to use the v2 api: http://openlayers.org/dev/examples/google.html Regards, Andreas. On Aug 12, 2010, at 11:12 , Guyren G Howe wrote: I'm doing what seems like an entirely straightforward extrapolation of the Google Maps v3 api example

Re: [OpenLayers-Users] GeoTIFF display

2010-08-12 Thread Jon Britton
If you want to use Java to submit your GeoTiff to GeoServer via REST then I might have some code for you to use. Just let me know! Jon On 12 August 2010 10:38, Mickael BEAUFILS mickael.beauf...@acatus.frwrote: Hi Jon, Hi Andreas, Thanks for your answer. Well I never used the GeoServer

Re: [OpenLayers-Users] Problem while adding a vector layer

2010-08-12 Thread usha madhuri
Hi, I have used SphericalMercator and my code is as below, function load() { map = new OpenLayers.Map(document.getElementById(map)); OpenLayers.ProxyHost=/proxy/?url=; var options = { projection: new OpenLayers.Projection(EPSG:900913), displayProjection: new

Re: [OpenLayers-Users] Displaying images even at the edgeof the screen

2010-08-12 Thread Tpi
Thanks to both of you, an image layer did what I wanted. However the performance compared to using the feature, stylemap and point went down by a huge amount. This worked with no lag prior to changing to an image layer. Using the same code as Wippermann showed here, just of course slightly

Re: [OpenLayers-Users] Problem while adding a vector layer

2010-08-12 Thread Arnd Wippermann
Hi, Your maxExtent defines a little area about 1x1 sqm at 0,0 because you use spericalMercator. Extent in EPSG:900913 maxExtent:new OpenLayers.Bounds(9258442.0492536,1996037.9243878,9282932.3372281,2012982.98 40631) Or transform your coordinates maxExtent : new

Re: [OpenLayers-Users] export map issues

2010-08-12 Thread Eric Lemoine
On Thursday, August 12, 2010, DevHour ja...@devhour.net wrote: Currently I am trying to export maps to a canvas element by using the example posted at http://trac.openlayers.org/browser/sandbox/camptocamp/canvas/openlayers/examples/exportMapCanvas.html  by tsauerwein. So far i've grabbed

[OpenLayers-Users] edit points in Geometry of a vector?

2010-08-12 Thread ulao
I was wondering if there was any way to edit a point in an Geometry object without redrawing it? I used OpenLayers.Geometry.LineString to create my object and see I can use getVertices but there is no set? -- View this message in context:

Re: [OpenLayers-Users] edit points in Geometry of a vector?

2010-08-12 Thread Adam Ratcliffe
Are you wanting to edit the geometry programatically or allow a user to modify the feature through direct manipulation? If the latter case then you can use the ModifyFeature control. There's an example on the OpenLayers website here: http://openlayers.org/dev/examples/modify-feature.html Cheers

Re: [OpenLayers-Users] export map issues

2010-08-12 Thread DevHour
Eric Lemoine eric.lemo...@camptocamp.com wrote .. On Thursday, August 12, 2010, DevHour ja...@devhour.net wrote: Currently I am trying to export maps to a canvas element by using the example posted at

Re: [OpenLayers-Users] How to refresh a layer every N seconds?

2010-08-12 Thread geekjack
Thank you all: I found another problem: when I visit http://dev.openlayers.org/releases/OpenLayers-2.9.1/examples/wfs-states.html (the examples) what I can see is http://osgeo-org.1803224.n2.nabble.com/file/n5418570/1.png ,and then I download it in my PC ,and it work like that:

Re: [OpenLayers-Users] How to refresh a layer every N seconds?

2010-08-12 Thread geekjack
Thank you all: I found another problem: when I visit http://dev.openlayers.org/releases/OpenLayers-2.9.1/examples/wfs-states.html (the examples) what I can see is http://osgeo-org.1803224.n2.nabble.com/file/n5418576/2.png ,and then I download it in my PC ,and it work like that:

[OpenLayers-Users] Openlayers and WFS calls using IP address

2010-08-12 Thread Wendy Cameron
Hi All Sorry for newby question but we are experiencing strange problems when we put a IP address in the URL of WFS request: Code is var blockFilter = new OpenLayers.Filter.Comparison({ type: OpenLayers.Filter.Comparison.EQUAL_TO, property: BLOCK_ID,

Re: [OpenLayers-Users] Openlayers and WFS calls using IP address

2010-08-12 Thread Imran Rajjad
Hi, this Ip address that you change to? does that belong to your local machine? or is your web-page comming from a different domain that of your mapping server? regards, Imran On Fri, Aug 13, 2010 at 10:23 AM, Wendy Cameron wendy.came...@justice.govt.nz wrote: Hi All Sorry for newby question

Re: [OpenLayers-Users] Openlayers and WFS calls using IP address

2010-08-12 Thread Wendy Cameron
Doesnt matter can be either even if the address is 127.0.0.1 Regards Wendy This e-mail message and attachments do not necessarily reflect the views of the New Zealand Ministry of Justice and may contain

Re: [OpenLayers-Users] Openlayers and WFS calls using IP address

2010-08-12 Thread Imran Rajjad
actually what I`m trying to see if your client and server are in different domain, wfs requests since respond with GML , which is actually XML and uses xmlhttp object, but this response cannot be received in a corss domain scenario, thats why they have JSON, since you said that it works with