[Users] Highlight layer using Mapserver/Geoext/OL

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Thu Apr 1 15:09:10 CEST 2010


I understood you are using mapserver and OL
I never tried to do what you want, but here is some other ideas. 
This add a feature to a vector layer and highlight it
http://openlayers.org/dev/examples/ perhaps there is a similar example on 
geoext

Since you are using a spatial database, when you click on the grid get the 
ID and query the database using ajax or the method Michael sent you url: 
getRoad.php per example. The php can return a json and the extent of the 
road. Create a feature with the json and add it to the vector layer.

Perhaps you can create a wms layer with a dynamic filter and style it to 
simulate a highlight. You can add or not this layer to your layer tree. 
When you click on the grid, get the ID of the road and launch a getmap 
request with ID as a parameter on mapserver to retrieve the image of the 
road.

Perhaps the solution is a mix of all this...
Hope this help,
steve
 




Paul james <pauljame at gmail.com> 
31/03/2010 05:03 PM

A
Steve.Toutant at inspq.qc.ca
cc
users at geoext.org, users-bounces at geoext.org
Objet
Re: [Users] Highlight layer using Mapserver/Geoext/OL








Hi...

On Wed, Mar 31, 2010 at 5:39 PM, <Steve.Toutant at inspq.qc.ca> wrote:

Did you create the WMS for the roads? What is the format of the roads 
data, .shp, spatial database? 


Yes, I created a WMS layer for the roads... The format is Spatial Database 
(Mssql2008) ,,,
  


I think you'll have to use a vector layer. 
Just an idea, If you have many roads you should query the data to retreive 
the road you need and add this road to the vector layer. 


Yes I have many roads.... Do you have any sample/ideia how can I do that? 
Query and add to vector?

Thanks
 




Paul james <pauljame at gmail.com>@geoext.org 
Envoyé par : users-bounces at geoext.org 
31/03/2010 04:24 PM 


A
Michael Prieß <michael.priess at gmx.de> 
cc
users at geoext.org 
Objet
Re: [Users] Highlight layer using Mapserver/Geoext/OL










Thanks Michael...

But I think it will not help me...
I need Highlight a WMS layer  and with FeatureStore, I need create a 
vector layer...

Or am I missing something?

Thanks

On Wed, Mar 31, 2010 at 4:31 PM, Michael Prieß <michael.priess at gmx.de> 
wrote: 
Hi Paul,

maybe this would be helpful :)

http://dev.geoext.org/trunk/geoext/examples/feature-grid.html 

> Any ideas how do that ?

_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users 
_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users






-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100401/e0f939c9/attachment.htm 


More information about the Users mailing list