[OpenLayers-Users] RE wmsGetFeatureInfo with Mapserver

2010-08-10 Thread Steve . Toutant
Anything useful in apache access and error logs. And mapserver log? I use this control but I started from this example http://dev.openlayers.org/releases/OpenLayers-2.9.1/examples/getfeatureinfo-control.html steve Benjamin Preisig @openlayers.org Envoyé par : users-boun...@openlayers.org 1

Re: [OpenLayers-Users] RE [Polluriel potentiel] WMS getFeatureInfo Popup

2010-08-02 Thread Steve . Toutant
Hard to tell, you said that the getFeatureInfo request in the browser was returning data. So I guess mapServer is ok. Explore your Apache Access and Error log steve Kiks @openlayers.org Envoyé par : users-boun...@openlayers.org 02/08/2010 11:27 AM A users@openlayers.org cc Objet Re: [Open

[OpenLayers-Users] RE [Polluriel potentiel] WMS getFeatureInfo Popup

2010-07-30 Thread Steve . Toutant
I guess these lines follow your code... map.addControl(info); info.activate(); If you don't specify any url: parameter does it work? I created this control following this example and it is working well Feature Info Example Steve Kiks @openlayers.org Envoyé par : users-boun...@openlayers.org

[OpenLayers-Users] RE WMSGetFeatureInfo hangs when getfeatureinfo returns no results

2010-06-18 Thread Steve . Toutant
I would do something like this. Hope this help. theControl.events.register("getfeatureinfo", this, showInfo); function showInfo(evt) { if( evt.text != "\n" && evt.text != "") map.addPopup(..); } "Manuel Aymerich" @openlayers.org Envoyé par : users-boun...@openlayers.org 15/

Re: [OpenLayers-Users] Appliaction loads the first google tile and then gives up

2010-02-18 Thread Steve . Toutant
Hi, These problems were fix after the release of OL 2.8. So you have the use a recent built of OL see the response of Andreas on another thread, please use a current trunk version of OpenLayers, not a patched 2.8 version. You can download a nightly build from http://trac.openlayers.org/wiki/HowToD

[OpenLayers-Users] problem with empty baselayer and google

2010-02-08 Thread Steve . Toutant
Hi, I have a problem using an empty base layer with a google layer. They are defined like this var googleH = new OpenLayers.Layer.Google( "Google Hybrid", { type: G_HYBRID_MAP, 'sphericalMercator': true} ); var aucunContexte = new OpenLayers.Layer("AucunContexte",{isBaseLayer: true}); I have an

Re: [OpenLayers-Users] Magnifier window solved

2010-02-05 Thread Steve . Toutant
solved using clone() Thanks Alexandre, Steve for(i in overlays) { var oOriginalLayer = overlays[i]; // add the original layer to the 1st map map.addLayer(oOriginalLayer); // create the clone layer, reference it to its origi

Re: [OpenLayers-Users] Magnifier window

2010-02-05 Thread Steve . Toutant
This code works if comment " layers.length == 1" var addLayersToMap = function() { var ov_overlays; for( i in overlays ) { map.addLayer( overlays[i] ); ov_overlays = overlays[i].clone(); ov_map.addLayer( ov_overlays ); overlays[i].events.register('visibilitychang

Re: [OpenLayers-Users] Magnifier window

2010-02-05 Thread Steve . Toutant
Almost doneAmasing how things are easy to do with OL. I have a wms layers array, "overlays[]" I use this code to create the layers array of the overview map and to define the visibilitychanged event. var addLayersToMap = function() { for( i in overlays )//overlays contains my wms layers {

Re: [OpenLayers-Users] Magnifier window

2010-02-04 Thread Steve . Toutant
Thanks Alexandre, More detailed... Per example, a user could watch the whole world and the ov-map will be zoomed on Chicoutimi. Whatever the user do on the main map (panning, zooming), I want the ov-map to stick on Chicoutimi, because it is so beautiful ;-) But if a layer is selected on the tre

[OpenLayers-Users] Magnifier window

2010-02-04 Thread Steve . Toutant
Hi, I'm using openlayers with geoext. I would like to create a magnifier window. So it is like an overview map with a fix map center and a fix zoom level, but the main map and this overview map share the same geoext tree, so the layers are shown/hidden on both maps. I think I can do it if I sta

[OpenLayers-Users] RE Spherical Mercator

2010-01-20 Thread Steve . Toutant
Diego you can use the MousePosition control. Just define the map displayProjection parameter to epsg:4326 http://dev.openlayers.org/docs/files/OpenLayers/Control/MousePosition-js.html Steve Diego Roberto @openlayers.org Envoyé par : users-boun...@openlayers.org 20/01/2010 05:34 AM A Open

Re: [OpenLayers-Users] RE WMSGetFeatureInfo error (Style (undefined) not defined on layer) ...

2010-01-19 Thread Steve . Toutant
In the mapfile, you must define a tolerance and a template for both layer (Argentina and Uruguay) TOLERANCE 0 TEMPLATE '../template/query.html' just add "[oid]" in your query.html for now. In OL You are querying every layer with a template. Keep it simple and try first with one layer var _wmsCo

[OpenLayers-Users] RE WMSGetFeatureInfo error (Style (undefined) not defined on layer) ...

2010-01-19 Thread Steve . Toutant
Wich mapServer version? Can you send one layer definition of the mapfile and how you create the Ol layer for this layer? Do you register an event for this control, please provide all the code related to this control. steve stela anders @openlayers.org Envoyé par : users-boun...@openlayers.o

Re: [OpenLayers-Users] [Fwd: WMSGetFeatureInfo with Mapserver]

2010-01-19 Thread Steve . Toutant
Stela Did you have a look at openlayers example http://openlayers.org/dev/examples/ See Feature Info in popup It will work with a Mapserver WMS. You got to define an OL control You also have to make your layer queryable, in your mapfile define a tolerance and a template. Steve stela ande

Re: [OpenLayers-Users] Layer.WMS.Post and loadstart-loadend event

2010-01-08 Thread Steve . Toutant
how to verify this. I'm using OpenLayers.Control.LoadingPanel example Please tell me if this is a mapfish issue. Thanks Steve Steve Toutant, M. Sc. Analyste en géomatique Secteur environnement Direction de la santé environnementale et de la toxicologie Institut national de santé publi

[OpenLayers-Users] Layer.WMS.Post and loadstart-loadend event

2010-01-07 Thread Steve . Toutant
this layer with Layer.WMS with a simple query the progress bar disapear. Is it because Layer.WMS.Post doesn't have a loadend event? I don't know how to verify this. I'm using OpenLayers.Control.LoadingPanel example Please tell me if this is a mapfish issue. Thanks Steve Steve To

Re: [OpenLayers-Users] geojson - Performance issue

2010-01-06 Thread Steve . Toutant
Thanks for this alternative Andreas. I don't know much about sld but I read some threads and it seems to be the right solution. I'll try to find some goog examples. It never ends...Always something new to learn Thanks Steve Steve Toutant, M. Sc. Analyste en géomatique Secteur env

[OpenLayers-Users] geojson - Performance issue

2010-01-06 Thread Steve . Toutant
Hi, I created a WMS (mapserver) layer containing 13400 polygons. It loads in less then 3 seconds. Good. I need to develop a tool for the user so he can create a custom query on this layer to retreive specific polygons. In a form, the user select the parameters and launch the request. Here is th

[OpenLayers-Users] Save Context

2009-12-18 Thread Steve . Toutant
Hi, I would like to add a control that save/open a context. So the user can quit the application, come back later and open the application in the same "status" or context. By context I mean the zoom level, map's center and the layer loaded on the map. Any tips or approaches to do that please? t

Re: [OpenLayers-Users] Distance problem

2009-11-26 Thread Steve . Toutant
Hi, Yes you can get the correct length setting the geodesic properties of the measure control to true. But this measure won't fit with the scaleline. I might be wrong but I think there is no such geodesic property for the scaleline. Steve "Arnd Wippermann" @openlayers.org Envoyé par : users

[OpenLayers-Users] RE getFeatureInfo and variable substitution SOLVED

2009-11-23 Thread Steve . Toutant
bs"::text,"nouv"::text,asbinary(force_collection(force_2d(geom900913)),'NDR'),id::text from ecoles WHERE (semcdc in (%SEMCDC%) and rss in (%RSS%) and ordre in (%ORDRE%)) and (geom900913 && setSRID( 'BOX3D(-8493071.07981319 5795761.22549582,-8480841.155289

[OpenLayers-Users] getFeatureInfo and variable substitution

2009-11-20 Thread Steve . Toutant
::text,asbinary(force_collection(force_2d(geom900913)),'NDR'),id::text from ecoles WHERE (semcdc in (%SEMCDC%) and rss in (%RSS%) and ordre in (%ORDRE%)) and (geom900913 && setSRID( 'BOX3D(-8493071.07981319 5795761.22549582,-8480841.15528974 5807991.15001926)'::BOX3D,900913

Re: [OpenLayers-Users] Control access to WMS

2009-10-14 Thread Steve . Toutant
Thanks Robert, Interesting. If someone is using a client such as gaia or qgis, can he access the layers only by entering "http://10.64.20.120/cgi-bin/gsswms.exe?"; as the URL Or if we do a getMap request, what happen? I tried, but maybe it is not a public site Steve Steve Tout

Re: [OpenLayers-Users] Control access to WMS

2009-10-14 Thread Steve . Toutant
Thanks all for your help, I'll have in a near future to implement a fully secured private site since I'm gonna have to publish VERY sensible data via WMS. I can tell that this issue scares the IT group. Story to follow... But for now, obscurity is sufficient. I'm a bit in obscurity myself regard

[OpenLayers-Users] Control access to WMS

2009-10-13 Thread Steve . Toutant
Hi, I don't know where I should post this thread since it implies mapServer and OpenLayers. I defined a WMS Raster layer that I use in my OpenLayers/GeoExt apps, I would like to control the access to this WMS, so people can use it via my application, but can not "call" the WMS to use it in their

Re: [OpenLayers-Users] RE measure with 2398

2009-09-24 Thread Steve . Toutant
Tim, You might need to provide the proj4js definitions for your map projection 2398 to use geodesic: true I already use it to transform coordinates, perhaps it is also required by geodesic option. If you want to try it, install the library and include theses scripts you'll probably need to

Re: [OpenLayers-Users] RE measure with 2398

2009-09-24 Thread Steve . Toutant
I would try this - Remove geodesic:true from the map option - set the measure option like this var measureOptions = { persist :true, geodesic: true, handlerOptions : { style :"default" } } hope this helps steve Tim Balschmiter 24/09/2009 09:06 AM A steve.tout...@inspq.qc.ca cc U

[OpenLayers-Users] RE measure with 2398

2009-09-24 Thread Steve . Toutant
Hi, Try to add geodesic: true as an option. Is EPSG:2398, the projection defined in the option of the map object? Steve Tim Balschmiter @openlayers.org Envoyé par : users-boun...@openlayers.org 24/09/2009 02:17 AM A Users@openlayers.org cc Objet [OpenLayers-Users] measure with 2398

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] WMSGetFeatureInfo and proxy

2009-09-18 Thread Steve . Toutant
That works! Not sure to understand why though? thanks Steve Steve Toutant, M. Sc. Analyste en géomatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Institut national de santé publique du Québec 945, avenue Wolfe Québec, Qc G1V 5B3 Tél.: (418

[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 http://faq.openlayers.org/pr

[OpenLayers-Users] Highlight on hover

2009-09-04 Thread Steve . Toutant
Yes geom900913 is correctly referenced as well as the 2 other geometries. geom900913 is not considered as an attribute though, but the others are. The behavior is fine I think. I was using this key in the first place "gml_include_items" "ad,quintmat,quintsoc" which returns this.The problem still

Re: [OpenLayers-Users] Highlight on hover

2009-09-04 Thread Steve . Toutant
27;gml_featureid' 'gid' END DUMP TRUE TOLERANCE 0 TEMPLATE '../template/query_indiceDef.html' HEADER '../template/query_header.html' FOOTER '../template/query_footer.html' INCLUDE "/ms4w/inspq/map/Class_IndiceDefavorisation.map"

Re: [OpenLayers-Users] Highlight on hover

2009-09-04 Thread Steve . Toutant
t/xml');},function(){var req=new XMLHttpRequest();req.open("GET","data:"+"text/xml"+";charset=utf-8,"+encodeURIComponent(text),false);if(req.overrideMimeType){req.overrideMimeType("text/xml");} I click on Continue button and then the

[OpenLayers-Users] Highlight on hover

2009-09-04 Thread Steve . Toutant
etfeatureinfo", this, showInfo); map.addControl(infoControls[i]); infoControls[i].activate(); } function showInfo(evt) { if (evt.features && evt.features.length) { highlightLayer.destroyFeatures(); highlightLayer.addFe

Re: [OpenLayers-Users] WMSGetFeatureInfo doesnt seem to work

2009-09-03 Thread Steve . Toutant
rs.Layer.WMS Also, you can try putting this line map.addLayers([wms, studiwohn]); after the var info statement. For some reason it worked for me but I have no explanation. I'd like to know why. Also, do you use mapserver? do you have a template key define in your layers? Steve Steve T

Re: [OpenLayers-Users] Control.WMSGetFeatureInfo problem

2009-09-03 Thread Steve . Toutant
rol before adding the layer to the map. Because that means I must reorganise my code. thanks Steve Steve Toutant, M. Sc. Analyste en géomatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Institut national de santé publique du Québec 945, avenue Wolfe

Re: [OpenLayers-Users] Control.WMSGetFeatureInfo problem

2009-09-03 Thread Steve . Toutant
lt, ... >From another thread I read that using this in the params of the layer might help: ,styles: ['','','',''] But I stil get the error message above. Still can't point out where the problem is. Regards Steve Steve Toutant, M. Sc. Analyste en géo

[OpenLayers-Users] Control.WMSGetFeatureInfo problem

2009-09-03 Thread Steve . Toutant
Hello, When I define the Control.WMSGetFeatureInfo if I don't specify the "layers:" properties, every visible layers with a Template in the mapfile are queried and I get the results. That is as expected. My problem is when I want to specify one layer to query. The request is not launched (I see

[OpenLayers-Users] RE [Polluriel potentiel] remote kml file onto google projection

2009-09-02 Thread Steve . Toutant
I think the only solution is to get this KML file on your local server then. You can do that with a server side script such PHP Steve Steve Toutant, M. Sc. Analyste en géomatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Institut national de

[OpenLayers-Users] Scale line accuracy

2009-08-06 Thread Steve . Toutant
results are good. But I don't understand why I should specify geodesic: true if my map is projected? For the scaleLine I can't figure out why the scale is not good. Ideas or extra info on these controls would be appreciated. thanks, Steve Steve Toutant, M. Sc. Analyste en géomatiq

Re: [OpenLayers-Users] Measure control problem (SOLVED)

2009-08-03 Thread Steve . Toutant
Setting geodesic: true fixed it. I misunderstood this property. Steve Steve Toutant, M. Sc. Analyste en géomatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Institut national de santé publique du Québec 945, avenue Wolfe Québec, Qc G1V 5B3 Tél

Re: [OpenLayers-Users] Measure control problem

2009-08-03 Thread Steve . Toutant
No, I need planar distance since my map is in Mercator projection. I provided The coordinates of point 1 and point 2 in lat/long just for test purpose. Sorry for the confusion. Steve Steve Toutant, M. Sc. Analyste en géomatique Secteur environnement Direction des risques biologiques

[OpenLayers-Users] Measure control problem

2009-08-03 Thread Steve . Toutant
r action = new GeoExt.Action({ control: mesureControl, map: map, toggleGroup: "map", iconCls: 'measure', tooltip: 'Mesure linéaire' }); toolbar.push(action); Thanks for your help, Steve Steve Toutant, M. Sc. Analyste en géomat

[OpenLayers-Users] RE Read csv file

2009-07-28 Thread Steve . Toutant
Hi, Take a look at http://www.gdal.org/ogr/drv_kml.html I'm not sure if you can translate directly from CSV to KML, but you could translate from csv- shapefile-kml You can call ogr2ogr from php if you need to translate at runtime. Steve Steve Toutant, M. Sc. Analyste en géomatique Se

[OpenLayers-Users] API doc

2009-07-27 Thread Steve . Toutant
ml Also there is another link for v2.8. The DIV properties is not there http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Control-js.html In these 3 links ../Control-js.html above, the properties list is not the same. I guess only one link should be used, is /apido

[OpenLayers-Users] control.activate()

2009-07-21 Thread Steve . Toutant
navControl.activate(); It seems to work even if I don,t use it. And that works without .activate map.addControl(MousePosition); Thanks for clarifying this Regards, Steve Steve Toutant, M. Sc. Analyste en géomatique Secteur environnement Direction des risques biologiques, environnementaux et occ

[OpenLayers-Users] problem with map.setCenter and zoom

2009-07-15 Thread Steve . Toutant
oom = 2; //Means zoom = 7 since minzoomlevel = 5 var lonCenter = -73.696289; var latCenter = 47.606163; point = new OpenLayers.Geometry.Point(lonCenter, latCenter); OpenLayers.Projection.transform(point, map.displayProjection, map.getProjectionObject()); map.setCenter(new OpenLayers.LonLat(po

[OpenLayers-Users] RE Priority for marker

2009-07-06 Thread Steve . Toutant
Hi, You can use raiseLayer to make sure the markers are on top http://dev.openlayers.org/docs/files/OpenLayers/Map-js.html#OpenLayers.Map.raiseLayer Steve Steve Toutant, M. Sc. Analyste en géomatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels

Re: [OpenLayers-Users] Copyright or credit info on an overlay layer

2009-06-23 Thread Steve . Toutant
the good place to modify these settings? Regards Steve Steve Toutant, M. Sc. Analyste en géomatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Institut national de santé publique du Québec 945, avenue Wolfe Québec, Qc G1V 5B3 Tél.: (418) 650

[OpenLayers-Users] Copyright or credit info on an overlay layer

2009-06-23 Thread Steve . Toutant
Hi, I would like to display at the bottom of the map the info on the copyright or the owner of a layer. The info will appear only when the layer is rendered. The layer is a WMS built with mapserver. Is it possible? How should I accomplish this? Thanks Steve Steve Toutant, M. Sc. Analyste en

[OpenLayers-Users] Visibility: false, WFS cluster strategy

2009-06-09 Thread Steve . Toutant
"select": { fillColor: "#8aeeef", strokeColor: "#32a8a9" } }) }, { extractAttributes:true, visibility: false });//fin du new vector }; Steve Toutant, M. Sc. Analyste

Re: [OpenLayers-Users] Problem to load a WFS

2009-06-08 Thread Steve . Toutant
The xml file is 4.5mo Thank you very much for your help, I'll follow your advices. Steve Steve Toutant, M. Sc. Analyste en géomatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Institut national de santé publique du Québec 945, avenue Wolfe Q

Re: [OpenLayers-Users] Problem to load a WFS

2009-06-08 Thread Steve . Toutant
format: new OpenLayers.Format.GML() }), styleMap:new OpenLayers.StyleMap({ "default": WFSstyle, "select": { fillColor: "#8aeeef", strokeColor: "#32a8a9" }

Re: [OpenLayers-Users] Problem to load a WFS

2009-06-08 Thread Steve . Toutant
In the console TAB there is a GET call to my WFS, http://geo.inspq.rtss.qc.ca/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante2.map&typename=HLM_shp_wfs2&srsName=EPSG%3A900913&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A900913&BBOX=-13586195.339050002,2515633.1906250007,-1219295.66

Re: [OpenLayers-Users] Problem to load a WFS

2009-06-05 Thread Steve . Toutant
Thanks Maxime, Of course it was a part of the problem in openlayers. I fixed that but it still doesn't load in OL, gvSig and gaia My guess is it is a permission issue. Any suggestions on some tests I could do or maybe there is a log I can create? Steve Steve Toutant, M. Sc. Analys

[OpenLayers-Users] Problem to load a WFS

2009-06-05 Thread Steve . Toutant
lass END LAYER NAME 'HLM_shp_wfs2' TYPE POINT DATA 'hlm/hlm_omh' DUMP true STATUS ON METADATA 'wfs_title' 'HLM en wfs' 'gml_featureid' 'IDBATIMENT' 'gml_include_items' 'all&#x

Re: [OpenLayers-Users] How to get list of all Layers from a wms servoce?

2009-04-16 Thread Steve . Toutant
and see this http://openlayers.org/pipermail/users/2009-April/011158.html Steve Toutant, M. Sc. Analyste en géomatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Institut national de santé publique du Québec 945, avenue Wolfe Québec, Qc G1V 5B3

[OpenLayers-Users] WMSCapabilities

2009-04-15 Thread Steve . Toutant
thing else? Thanks Steve Steve Toutant, M. Sc. Analyste en géomatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Institut national de santé publique du Québec 945, avenue Wolfe Québec, Qc G1V 5B3 Tél.: (418) 650-5115 #5281 Fax.: (418) 654-3144 steve.

[OpenLayers-Users] RE RE how to remove selected marker

2009-03-18 Thread Steve . Toutant
Perhaps I misunderstood what you are trying to do but Could you just create one markerLayer and add all your markers in it? wrap map @openlayers.org Envoyé par : users-boun...@openlayers.org 18/03/2009 10:48 AM A users@openlayers.org cc Objet [OpenLayers-Users] RE how to remove selected ma

[OpenLayers-Users] RE how to remove selected marker

2009-03-18 Thread Steve . Toutant
Try markers.removeMarker(markerName); steve wrap map @openlayers.org Envoyé par : users-boun...@openlayers.org 18/03/2009 10:05 AM A users@openlayers.org cc Objet [OpenLayers-Users] how to remove selected marker hey all, function CreateNewMarker() { markerName = document.getElem

Re: [OpenLayers-Users] OpenLayers.Layer.TileCache as overlay

2009-03-17 Thread Steve . Toutant
good point! Here is what doesn't work var wms = new OpenLayers.Layer.TileCache( label, "http://10.2.192.128/tilecache/dataWms";, theme, {REPROJECT: 'false',format:"image/gif", transparent: "true", maxExtent: new OpenLayers.Bounds(-338000.384, -21722.336, -168667.136, 371610.912)

[OpenLayers-Users] OpenLayers.Layer.TileCache as overlay

2009-03-17 Thread Steve . Toutant
Hi, I need to use tilecache as a non base layer. This work well var wms = new OpenLayers.Layer.WMS( label, 'http://10.2.192.128/tilecache/tilecache.cgi?', { LAYERS: theme, REPROJECT: 'false' , transparent: "true" }, { maxExtent: new OpenLayers.Bounds(-338000.384, -21722.336, -168667.136

[OpenLayers-Users] proj4s and openlayers, coordinates not projected

2009-03-16 Thread Steve . Toutant
I created a simple html page where the user enter lat/long coordinates and the program returns the projected coord in EPSG 32198. That works well, but if I insert the same code in a more complex program using openlayers, the coordinates are not projected. Here is the code I put just after map.s