<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19019"></HEAD>
<BODY bgColor=#ffffff text=#000000>
<DIV dir=ltr align=left><SPAN class=127292719-01032011><FONT color=#0000ff
size=2 face=Arial>Alexandre - I am using Intergraph products and unfortunately
their server does not have anything related to tolerance (according to their
developers). </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=127292719-01032011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=127292719-01032011><FONT color=#0000ff
size=2 face=Arial>Ian - thanks for the advice. Maybe I am misunderstanding this
but say I increase the size of the symbol related to the feature I want to get
info about through my WMS. Well I write that to my web service except only the
exact center point of the symbol returns anything. So I can possibly use the WFS
GetFeature info to initiate the request from my WFS layer by using the
coordinates of the larger WMS symbol? I'm just confused how to accomplish this..
how would I know the mouse is over the WMS symbol since there is no feature info
returned properly unless I am at the center? </FONT></SPAN></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<P><SPAN class=127292719-01032011><FONT color=#0000ff size=2 face=Arial>Ian
Turton wrote - </FONT></SPAN></P>
<DIV><SPAN lang=EN>
<P>Just use a WFS GetFeature request with a small bounding box around the</P>
<P>click to query the WMS layer.</P>
<P>Ian</P>
<P>-- </P>
<P>Ian Turton</P></SPAN></DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> openlayers-users-bounces@lists.osgeo.org
[mailto:openlayers-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>Alexandre
Dube<BR><B>Sent:</B> March 01, 2011 12:23 PM<BR><B>To:</B>
openlayers-users@lists.osgeo.org<BR><B>Subject:</B> Re: [OpenLayers-Users]
WMSGetFeatureInfo + xy mouse coordinates, can this be done?<BR></FONT><BR></DIV>
<DIV></DIV>What map server are you using to serve your WMS layer ? You
could its community if there is an equivalent to "tolerance" like in
MapServer.<BR><BR>Regards,<BR><BR>Alexandre<BR><BR><BR>On 11-03-01 02:15 PM,
Andrew Stewart wrote:
<BLOCKQUOTE cite=mid:94816848A8EB3941B1E8592F425827A981E7FF07E4@chex2.crdnet.ca
type="cite">
<META name=GENERATOR content="MSHTML 8.00.6001.19019">
<DIV dir=ltr align=left><SPAN class=702321319-01032011><FONT color=#0000ff
size=2 face=Arial>Thanks again for the help... I think I will try the first
point you suggested by using a BBOX strategy. Now I have assigned a min/max
scale through my Web Services WFS but this does not seem to come across as the
WFS layer shows up immediately after loading the map. Do I have to specify the
min/maxextent of the actual WFS layer itself when declaring it?
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=702321319-01032011></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=702321319-01032011><FONT color=#0000ff
size=2 face=Arial>My whole issue with the WMS layer is.. it works super fast
and I can literally turn on/off these 2000+ points in 5 seconds flat.. except
when I am doing a WMSGetFeatureInfo the mouse must be situated in the exact
center of the point or no feature info is returned.. thus I was trying to use
the WFS way and symbol becuase no matter how much the mouse touches the WFS
symbol the feautre info was getting returned properly, wish the WMS worked
that way :/</FONT></SPAN></DIV>
<DIV> </DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> <A class=moz-txt-link-abbreviated
href="mailto:openlayers-users-bounces@lists.osgeo.org">openlayers-users-bounces@lists.osgeo.org</A>
[<A class=moz-txt-link-freetext
href="mailto:openlayers-users-bounces@lists.osgeo.org">mailto:openlayers-users-bounces@lists.osgeo.org</A>]
<B>On Behalf Of </B>Alexandre Dube<BR><B>Sent:</B> March 01, 2011 12:03
PM<BR><B>To:</B> <A class=moz-txt-link-abbreviated
href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</A><BR><B>Subject:</B>
Re: [OpenLayers-Users] WMSGetFeatureInfo + xy mouse coordinates, can this be
done?<BR></FONT><BR></DIV>Several thousands is too much indeed. You
could :<BR><BR> * use the BBOX strategy instead of Fixed to request for
features in the current extent only<BR> * have a WMS layer on zoomed out
scales and switch to WFS on zoomed in scales, but you wouldn't be able to
interact with your WMS as you do with your vector features...<BR> * take
a look at the GetFeature control and see if that could do the trick (currently
not working, but look at the code to get the idea)
:<BR> <A class=moz-txt-link-freetext
href="http://dev.openlayers.org/releases/OpenLayers-2.10/examples/getfeature-wfs.html"
moz-do-not-send="true">http://dev.openlayers.org/releases/OpenLayers-2.10/examples/getfeature-wfs.html</A><BR>
* setup an OGC filter to your vector layer to get only specific features (if
your data have some kind of attribute you could filter on), and make only
specific features display on specific zoom levels. I already did
something like that, see an example here : <A class=moz-txt-link-freetext
href="http://bs-dev2.mapgears.com/webmap/"
moz-do-not-send="true">http://bs-dev2.mapgears.com/webmap/</A><BR><BR>Best
regards,<BR><BR>Alexandre<BR><BR><BR>On 11-03-01 01:35 PM, Andrew Stewart
wrote:
<BLOCKQUOTE
cite=mid:94816848A8EB3941B1E8592F425827A981E7FF07E3@chex2.crdnet.ca
type="cite">
<META name=GENERATOR content="MSHTML 8.00.6001.19019">
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=370313418-01032011>Actually I modified the strategies to be -
</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=370313418-01032011></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=370313418-01032011>
<P><FONT color=#0000ff size=2 face=Arial>strategies: [</FONT></P>
<P><FONT size=2><FONT color=#0000ff face=Arial>new</FONT><FONT color=#0000ff
face=Arial> OpenLayers.Strategy.Fixed(),</FONT></FONT></P>
<P><FONT size=2><FONT color=#0000ff face=Arial>new</FONT><FONT color=#0000ff
face=Arial> OpenLayers.Strategy.Cluster()</FONT></FONT></P>
<P><FONT color=#0000ff size=2 face=Arial>],</FONT></P>
<P> </P>
<P><SPAN class=370313418-01032011><FONT color=#0000ff size=2 face=Arial>Now
I am getting the points showing up but there is still quite a delay in
loading / zooming etc. Is there anyway I can optimize this further by
limiting features etc? </FONT></SPAN></P></SPAN></DIV>
<DIV> </DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> <A class=moz-txt-link-abbreviated
href="mailto:openlayers-users-bounces@lists.osgeo.org"
moz-do-not-send="true">openlayers-users-bounces@lists.osgeo.org</A> [<A
class=moz-txt-link-freetext
href="mailto:openlayers-users-bounces@lists.osgeo.org"
moz-do-not-send="true">mailto:openlayers-users-bounces@lists.osgeo.org</A>]
<B>On Behalf Of </B>Andrew Stewart<BR><B>Sent:</B> March 01, 2011 11:31
AM<BR><B>To:</B> <A class=moz-txt-link-abbreviated
href="mailto:openlayers-users@lists.osgeo.org"
moz-do-not-send="true">openlayers-users@lists.osgeo.org</A><BR><B>Subject:</B>
RE: [OpenLayers-Users] WMSGetFeatureInfo + xy mouse coordinates, can this be
done?<BR></FONT><BR></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=925202918-01032011>So I am having success with point features below
100.. but is it also possible to use this with many point features (several
thousand?)</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=925202918-01032011></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=925202918-01032011>My code below is trying to use the cluster
strategy.. previously it was Fixed but that causes my map to freeze when
loading the several thousand points. But when I switch to cluster nothing
happens and no points appear, any advice on what I'm doing wrong?
</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=925202918-01032011></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=925202918-01032011></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=925202918-01032011><FONT color=#0000ff size=2><FONT color=#0000ff
size=2> //Hydrant<BR> var test_hydrants = new
OpenLayers.Layer.Vector("Hydrant",
{<BR> </FONT></FONT></SPAN></FONT></DIV>
<DIV dir=ltr align=left>
<P><FONT color=#0000ff size=2 face=Arial><FONT color=#0000ff size=2><FONT
color=#0000ff size=2> strategies:
[new OpenLayers.Strategy.Cluster()],</FONT></FONT></FONT></P>
<P><FONT color=#0000ff size=2 face=Arial><FONT color=#0000ff size=2><FONT
color=#0000ff size=2> protocol:
new
OpenLayers.Protocol.WFS({<BR>
url:
wfs,<BR>
featureType:
"Hydrants",<BR>
featureNS: "<A href="http://www.intergraph.com/geomedia/gml"
moz-do-not-send="true">http://www.intergraph.com/geomedia/gml</A>",<BR>
featurePrefix:
"gmgml",<BR>
srsName:
"EPSG:3776",<BR>
//filter:
filter,<BR>
geometryName:
"Geometry",<BR>
version: "1.1.0"<BR>
})<BR>
});<BR> <BR> </FONT></FONT><FONT
color=#0000ff size=2><FONT color=#0000ff
size=2> //Add Vector Layers to
Map<BR>
map.addLayer(test_hydrants);</FONT></FONT></FONT></P></DIV>
<DIV> </DIV>
<DIV> </DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> <A class=moz-txt-link-abbreviated
href="mailto:openlayers-users-bounces@lists.osgeo.org"
moz-do-not-send="true">openlayers-users-bounces@lists.osgeo.org</A> [<A
class=moz-txt-link-freetext
href="mailto:openlayers-users-bounces@lists.osgeo.org"
moz-do-not-send="true">mailto:openlayers-users-bounces@lists.osgeo.org</A>]
<B>On Behalf Of </B>Alexandre Dube<BR><B>Sent:</B> March 01, 2011 7:52
AM<BR><B>To:</B> <A class=moz-txt-link-abbreviated
href="mailto:openlayers-users@lists.osgeo.org"
moz-do-not-send="true">openlayers-users@lists.osgeo.org</A><BR><B>Subject:</B>
Re: [OpenLayers-Users] WMSGetFeatureInfo + xy mouse coordinates, can this be
done?<BR></FONT><BR></DIV>50~ shouldn't be a problem. IMHO, it would
be a good idea to make the switch to
WFS.<BR><BR>Cheers,<BR><BR>Alexandre<BR><BR>On 11-03-01 09:39 AM, Andrew
Stewart wrote:
<BLOCKQUOTE
cite=mid:94816848A8EB3941B1E8592F425827A981E7FF07E0@chex2.crdnet.ca
type="cite"><PRE wrap="">
Ok thanks.. So basically if my web service does not support tolerance (which I'm pretty sure is the case) then there is not much I can do with openlayers to fix this problem.. Besides possibly changing my features into markers from my WFS and giving those markers tooltips/hotspots but not sure what the performance would be on that since I need sometimes 50+ markers.
-----Original Message-----
From: <A class=moz-txt-link-abbreviated href="mailto:openlayers-users-bounces@lists.osgeo.org" moz-do-not-send="true">openlayers-users-bounces@lists.osgeo.org</A> [<A class=moz-txt-link-freetext href="mailto:openlayers-users-bounces@lists.osgeo.org" moz-do-not-send="true">mailto:openlayers-users-bounces@lists.osgeo.org</A>] On Behalf Of Alexandre Dube
Sent: March 01, 2011 6:49 AM
To: <A class=moz-txt-link-abbreviated href="mailto:openlayers-users@lists.osgeo.org" moz-do-not-send="true">openlayers-users@lists.osgeo.org</A>
Subject: Re: [OpenLayers-Users] WMSGetFeatureInfo + xy mouse coordinates, can this be done?
Hi,
That could be setup in your web mapping service. If you use MapServer,
you could set the Layer object definition "TOLERANCE" parameter for that.
Regards,
Alexandre
[1] <A class=moz-txt-link-freetext href="http://mapserver.org/mapfile/layer.html" moz-do-not-send="true">http://mapserver.org/mapfile/layer.html</A> (search for "TOLERANCE")
On 11-02-28 10:02 PM, Planet)x wrote:
</PRE>
<BLOCKQUOTE type="cite"><PRE wrap="">I have a slight problem which has to do with my WMS mainly but wondering if
there is a way to program around it. Well problem is I can increase the
symbol size for points on my Web service but the geometry of the point
(centroid) remains the same. Therefore when using a
OpenLayers.Control.WMSGetFeatureInfo the feature info is never returned
until I move the mouse directly in the middle of the point feature (and also
lines unfortunately). Question is can I somehow force the mouse to be moved
to the center of the point when it nears a symbol.. and is there anyway to
actually get the entire coordinates for the symbol so I can use them to do
the featureinfo somehow? Not sure if this makes sense or if there is another
approach I can utilize to do this.. appreciate any advice!
</PRE></BLOCKQUOTE><PRE wrap=""><FIELDSET class=mimeAttachmentHeader></FIELDSET>
_______________________________________________
Users mailing list
<A class=moz-txt-link-abbreviated href="mailto:Users@lists.osgeo.org" moz-do-not-send="true">Users@lists.osgeo.org</A>
<A class=moz-txt-link-freetext href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" moz-do-not-send="true">http://lists.osgeo.org/mailman/listinfo/openlayers-users</A>
</PRE></BLOCKQUOTE><BR><BR><PRE class=moz-signature cols="72">--
Alexandre Dubé
Mapgears
<A class=moz-txt-link-abbreviated href="http://www.mapgears.com" moz-do-not-send="true">www.mapgears.com</A>
</PRE>
<DIV>
<HR>
[This message has been scanned for security content threats and
viruses.]<BR><BR>[The City of Red Deer I.T. Services asks that you please
consider the environment before printing this e-mail.]<BR></DIV>
<DIV>
<HR>
This e-mail is intended for the original recipient(s) only. If you have
received it in error, please advise the sender and delete this message.
</DIV>
<DIV>
<HR>
[This message has been scanned for security content threats and
viruses.]<BR><BR>[The City of Red Deer I.T. Services asks that you please
consider the environment before printing this e-mail.]<BR></DIV>
<DIV>
<HR>
This e-mail is intended for the original recipient(s) only. If you have
received it in error, please advise the sender and delete this message.
</DIV><PRE wrap=""><FIELDSET class=mimeAttachmentHeader></FIELDSET>
_______________________________________________
Users mailing list
<A class=moz-txt-link-abbreviated href="mailto:Users@lists.osgeo.org" moz-do-not-send="true">Users@lists.osgeo.org</A>
<A class=moz-txt-link-freetext href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" moz-do-not-send="true">http://lists.osgeo.org/mailman/listinfo/openlayers-users</A>
</PRE></BLOCKQUOTE><BR><BR><PRE class=moz-signature cols="72">--
Alexandre Dubé
Mapgears
<A class=moz-txt-link-abbreviated href="http://www.mapgears.com" moz-do-not-send="true">www.mapgears.com</A>
</PRE>
<DIV>
<P></P>
<HR>
[This message has been scanned for security content threats and
viruses.]<BR><BR>[The City of Red Deer I.T. Services asks that you please
consider the environment before printing this e-mail.]<BR></DIV>
<DIV>
<HR>
This e-mail is intended for the original recipient(s) only. If you have
received it in error, please advise the sender and delete this message. </DIV><PRE wrap=""><FIELDSET class=mimeAttachmentHeader></FIELDSET>
_______________________________________________
Users mailing list
<A class=moz-txt-link-abbreviated href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</A>
<A class=moz-txt-link-freetext href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</A>
</PRE></BLOCKQUOTE><BR><BR><PRE class=moz-signature cols="72">--
Alexandre Dubé
Mapgears
<A class=moz-txt-link-abbreviated href="http://www.mapgears.com">www.mapgears.com</A>
</PRE>
<DIV>
<P>
<HR>
[This message has been scanned for security content threats and
viruses.]<BR><BR>[The City of Red Deer I.T. Services asks that you please
consider the environment before printing this e-mail.]<BR>
<P></P></DIV>
<DIV><P><HR>
This e-mail is intended for the original recipient(s) only. If you have received it in error, please advise the sender and delete this message.
</P></DIV>
</BODY></HTML>