[OpenLayers-Users] adding feature to vectorlayer from wkt

2009-09-18 Thread karsten vennemann
I am trying to add line features to a vector feature layer in my map (projection is EPSG:102003, as are the coordinates of the wkt below) vectorlayer = new OpenLayers.Layer.Vector(Vector Layer); map.addLayer(vectorlayer); var thestreetgeom = new

Re: [OpenLayers-Users] adding feature to vectorlayer from wkt

2009-09-18 Thread Michael Shishcu
Hi, Karsten maybe your layer does not have the correct projection? try var options = {..., projection: EPSG:102003, ... }; vectorlayer = new OpenLayers.Layer.Vector(Vector Layer,{layers: 'basic'},options ); regards, michael 2009/9/18 karsten vennemann kars...@terragis.net I am

Re: [OpenLayers-Users] adding feature to vectorlayer from wkt

2009-09-18 Thread karsten vennemann
hmm I tried now var options1 = {projection: EPSG:102003}; vectorlayer = new OpenLayers.Layer.Vector(Vector Layer,{layers: 'basic'},options1); map.addLayer(vectorlayer); var thestreetgeom = new OpenLayers.Geometry.fromWKT(LINESTRING((-1930473.64430529 1513488.44352758, -1646969.91778704

Re: [OpenLayers-Users] adding feature to vectorlayer from wkt

2009-09-18 Thread Michael Shishcu
well, try to add the max extend of the layer and map units (the next is for meters) var options1 = {units: 'm', projection: EPSG:102003, maxExtent: new OpenLayers.Bounds(xmin, ymin, xmax, ymax)}; 2009/9/18 karsten vennemann kars...@terragis.net hmm I tried now var options1 = {projection:

Re: [OpenLayers-Users] measure / measurepartial

2009-09-18 Thread Andreas Hocevar
Hey- Richard Greenwood wrote: I'm trying to make sense of measure versus measurepartial event types in OL 2.8. Mouse moves and single clicks both report an event type of measurepartial. Only a double click report a measure event type. I would like to distinguish between an mouse move (rubber

Re: [OpenLayers-Users] OpenLayers Examaple does not work

2009-09-18 Thread Andreas Hocevar
Mario Nuñez Jimenez wrote: Mmmh the roxy.cgi is also running in the same machine as my application do. The thing is that I specify a complete URL because a relative path did not worked, but I used relative path to all necessary libraries... If proxy.cgi is running at the same origin than

Re: [OpenLayers-Users] adding feature to vectorlayer from wkt

2009-09-18 Thread karsten vennemann
ok added this in: var options1 = {units: 'm', projection: EPSG:102003, maxExtent: new OpenLayers.Bounds(-250,-150,250,150)}; vectorlayer = new OpenLayers.Layer.Vector(Vector Layer,{layers: 'basic'},options1); var thestreetgeom = new

Re: [OpenLayers-Users] adding feature to vectorlayer from wkt

2009-09-18 Thread Michael Shishcu
OpenLayers.Geometry.fromWKT( ) recieves string as parameter try var thestreetgeom = new OpenLayers.Geometry.fromWKT(LINESTRING((-1930473.64430529 1513488.44352758, -1646969.91778704 1155135.05969326))); 2009/9/18 karsten vennemann kars...@terragis.net ok added this in: var options1 =

[OpenLayers-Users] Erase feature

2009-09-18 Thread Vidal, Antoni
Hello list, I our OL viewer (http://www.icc.cat/vissir2 ) there is a delete-erase feature in editingtolbar menu. It was created for version 2.6 and with some additional changes, worked with 2.7. It doesn't work with 2.8 and before spent lot of time in the solution I thought if somebody

Re: [OpenLayers-Users] HELP!!! How implement Filter in WMS Layer

2009-09-18 Thread fsalas
Arn , Thanks, for your cooperation, I atached my map file , I need that you send my yours oppinion about. MAP NAME Sistema Informativo STATUS ON EXTENT 253600 328400 301800 355300 SIZE 450 300 SYMBOLSET ./etc/symbols.sym FONTSET ./etc/fonts.txt IMAGETYPE

Re: [OpenLayers-Users] HELP!!! How implement Filter in WMS Layer

2009-09-18 Thread Arnd Wippermann
Hi salas, Move the METADATA block into the WEB block and (perhaps not needed, but reasonable) add the projection to the map and the layers. Then you should get a result (when your map extent matches the projection extent). Arnd ___ Users mailing list

[OpenLayers-Users] WMSGetFeatureInfo and proxy

2009-09-18 Thread Steve . Toutant
Hi, I'm using WMSGetFeatureInfo to query a specific layer. The information is retrieved from the same server/domain where the application and mapserver are installed. The answer I get is The requested URL /cgi-bin/proxy.cgi was not found on this server. I read this

Re: [OpenLayers-Users] measure / measurepartial

2009-09-18 Thread Richard Greenwood
On Fri, Sep 18, 2009 at 1:47 AM, Andreas Hocevar ahoce...@opengeo.org wrote: Hey- Richard Greenwood wrote: I'm trying to make sense of measure versus measurepartial event types in OL 2.8. Mouse moves and single clicks both report an event type of measurepartial. Only a double click report a

Re: [OpenLayers-Users] measure / measurepartial

2009-09-18 Thread Paul Spencer
Rich, I've done this recently, I've attached the code. Its mixed with some application-specific stuff and is configured to show text distances on each segment but it does show how to do something differently on move vs click Cheers Paul OpenLayers.Control.Measure.prototype.EVENT_TYPES

Re: [OpenLayers-Users] WMSGetFeatureInfo and proxy

2009-09-18 Thread Christopher Schmidt
On Fri, Sep 18, 2009 at 09:27:15AM -0400, steve.tout...@inspq.qc.ca wrote: Hi, I'm using WMSGetFeatureInfo to query a specific layer. The information is retrieved from the same server/domain where the application and mapserver are installed. The answer I get is The requested URL

Re: [OpenLayers-Users] WMSGetFeatureInfo and proxy

2009-09-18 Thread Steve . Toutant
firebug found OpenLayers.ProxyHost into example.js That is a script from mapfish used for the print widget example. Just removed it and now it is working with or without specifying the url in the parameters list of WMSGetFeatureInfo. Thanks for your help, Steve Steve Toutant, M. Sc. Analyste

Re: [OpenLayers-Users] HELP!!! How implement Filter in WMS Layer

2009-09-18 Thread fsalas
Arnd, I don't Know why in WMS request ,the EPSG is different of 2085, Its EPSG:4326 - Original Message - From: Arnd Wippermann arnd.wipperm...@web.de To: 'fsalas' fsa...@geocuba.cu Sent: Friday, September 18, 2009 9:06 AM Subject: AW: [OpenLayers-Users] HELP!!! How implement Filter in

Re: [OpenLayers-Users] catch the safe.success event

2009-09-18 Thread Eric Lemoine
On Wed, Sep 16, 2009 at 10:47 AM, Marco Scheuble m...@marco-scheuble.de wrote: Hi list, I'm having troubles with catching the success event, when saving a wfs layer. Saving and everything works fine, but I don't know, how to register/catch this event! here is some code: saveStrategy =

Re: [OpenLayers-Users] adding feature to vectorlayer from wkt

2009-09-18 Thread Pavel Iacovlev
Try var streetFeature = new OpenLayers.Feature.Vector(streetGeom); On Fri, Sep 18, 2009 at 8:50 PM, karsten vennemann kars...@terragis.net wrote: Ok seem's that I'm almost there. Firebug shows geometry, features and bounds ok. But still nothing shows on the map. I have now: var options1 =

Re: [OpenLayers-Users] adding feature to vectorlayer from wkt

2009-09-18 Thread karsten vennemann
This works now: var options1 = {layers: 'basic', units: 'm', projection: EPSG:102003, maxExtent: new OpenLayers.Bounds(-250,-150,250,150)}; vectorlayer = new OpenLayers.Layer.Vector(Vector Layer,options1); map.addLayer(vectorlayer); var streetGeom = new

Re: [OpenLayers-Users] HELP!!! How implement Filter in WMS Layer

2009-09-18 Thread Arnd Wippermann
hi salas, you request the layer Cuba, but in the SLD_BODY you describe rules for the layer topp:cuba. Change it to Cuba. And if your SLD_BODY has escaped chars, change them too (%3D =, %23 #). you can try this http://urano/cgi-bin/mapserv.exe?map=d:/ms4w/apps/OpenLayers/data/educacion .map

[OpenLayers-Users] WMS server error. Requested layer(s) are not queryable.

2009-09-18 Thread P Kishor
Inspired by a recent post, I decided to implement WMSGetFeatureInfo using the code in the OL examples. However, I am getting the following error ServiceException code=LayerNotQueryable msWMSFeatureInfo(): WMS server error. Requested layer(s) are not queryable. /ServiceException My backend server

Re: [OpenLayers-Users] WMS server error. Requested layer(s) are not queryable.

2009-09-18 Thread Christopher Schmidt
On Fri, Sep 18, 2009 at 04:11:30PM -0500, P Kishor wrote: Inspired by a recent post, I decided to implement WMSGetFeatureInfo using the code in the OL examples. However, I am getting the following error ServiceException code=LayerNotQueryable msWMSFeatureInfo(): WMS server error. Requested

Re: [OpenLayers-Users] WMS server error. Requested layer(s) are not queryable.

2009-09-18 Thread P Kishor
On Fri, Sep 18, 2009 at 6:51 PM, Christopher Schmidt crschm...@metacarta.com wrote: On Fri, Sep 18, 2009 at 04:11:30PM -0500, P Kishor wrote: Inspired by a recent post, I decided to implement WMSGetFeatureInfo using the code in the OL examples. However, I am getting the following error

Re: [OpenLayers-Users] WMS server error. Requested layer(s) are not queryable.

2009-09-18 Thread P Kishor
On Fri, Sep 18, 2009 at 9:12 PM, P Kishor punk.k...@gmail.com wrote: On Fri, Sep 18, 2009 at 6:51 PM, Christopher Schmidt crschm...@metacarta.com wrote: On Fri, Sep 18, 2009 at 04:11:30PM -0500, P Kishor wrote: Inspired by a recent post, I decided to implement WMSGetFeatureInfo using the code

[OpenLayers-Users] meta query re. documentation

2009-09-18 Thread P Kishor
I have a high level query here, as to how to proceed with developing with OL. Let's say, I have my data in Pg, and am serving it as WMS via MapServer. I want to implement WMSGetFeatureInfo. I have the following two websites