[mapserver-users] WMS GetFeatureInfo beyond scale
Fawcett, David
David.Fawcett at state.mn.us
Tue Oct 6 07:17:52 PDT 2009
Nina,
I guess that your data was more complex than I originally assumed.
Would it be possible to create one layer with classes that incorporated both the scale and magnitude?
Something like:
LAYER
CLASS # low-res, low magnitude
MAXSCALEDENOM 10000000
MINSCALEDENOM 4000000
EXPRESSION ([mag] > 3 AND [mag] < 3.499)
END
CLASS # low-res, high magnitude
MAXSCALEDENOM 10000000
MINSCALEDENOM 4000000
EXPRESSION ([mag] > 3.5 AND [mag] < 3.999)
END
CLASS # medium-res, low magnitude
MAXSCALEDENOM 4000000
MINSCALEDENOM 1000000
EXPRESSION ([mag] > 3 AND [mag] < 3.499)
END
CLASS # medium-res, high magnitude
MAXSCALEDENOM 4000000
MINSCALEDENOM 1000000
EXPRESSION ([mag] > 3.5 AND [mag] < 3.999)
END
CLASS # high-res, low magnitude
MAXSCALEDENOM 1000000
EXPRESSION ([mag] > 3 AND [mag] < 3.499)
END
CLASS # high-res, high magnitude
MAXSCALEDENOM 1000000
EXPRESSION ([mag] > 3.5 AND [mag] < 3.999)
END
I haven't thought too much about it, so I can't promise that it will do what you need.
David.
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of seis4web at web.de
Sent: Tuesday, October 06, 2009 1:54 AM
To: mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] WMS GetFeatureInfo beyond scale
Hi David,
hi list,
thank you very much for the reply. I already use scale-dependent layers. That's why I believe I can't organize my "data as scale-dependent classes within one layer instead of as various separate layers in a group" . But I'm not sure - so please have a look at my data structure below (or in the attached file - part of my mapfile):
I have got a WMS displaying earthquake data for the last 12 month (GROUP A), last month (GROUP B), the last 7 days (GROUP C) and the actual (latest) earthquake (GROUP D).
Each group has got a couple of scale-dependent layers (A_a, A_b, A_c; B_a, B_b ...). I've grouped the layers because all layers displaying earthquake events from e.g. the last 12 month should appear as just one layer.
Each layer has got several magnitude-dependent classes, as the earthquake dots should increase when zooming into the application.
LAYER
NAME "A_a"
GROUP "A"
MAXSCALE 10000000
MINSCALE 4000000
...
CLASS
NAME "Magnitude > 3 - 3.499"
EXPRESSION ([mag] > 3 AND [mag] < 3.499)
STYLE
SYMBOL "circle"
SIZE 9
COLOR 255 165 0
OUTLINECOLOR 255 0 0
END
END
CLASS
NAME "Magnitude > 3.5 - 3.999"
EXPRESSION ([mag] > 3.5 AND [mag] < 3.999)
STYLE
SYMBOL "circle"
SIZE 10
COLOR 255 165 0
OUTLINECOLOR 255 0 0
END
END
...
LAYER
NAME "A_b"
GROUP "A"
MAXSCALE 4000000
MINSCALE 1000000
...
CLASS
...
END
...
LAYER
NAME "A_c"
GROUP "A"
MAXSCALE 1000000
MINSCALE ...
...
CLASS
...
END
...
Thanks in advance!
Regards,
Nina
> -----Ursprüngliche Nachricht-----
> Von: "Fawcett, David" <David.Fawcett at state.mn.us>
> Gesendet: 02.10.09 18:00:44
> An: <mapserver-users at lists.osgeo.org>
> Betreff: RE: [mapserver-users] WMS GetFeatureInfo beyond scale
> Is there a reason why you can't organize your data as scale-dependent classes within one layer instead of as three separate layers in a group?
>
> David.
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of seis4web at web.de
> Sent: Friday, October 02, 2009 10:45 AM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] WMS GetFeatureInfo beyond scale
>
> Hi list,
>
> I upgraded my UMN MapServer from version 5.0.2 to 5.4.0. Now I've got the following problem:
>
> For instance I am using a group of layers:
>
> LAYER
> NAME "A_a"
> GROUP "A"
> ...
> LAYER
> NAME "A_b"
> GROUP "A"
> ...
> LAYER
> NAME "A_c"
> GROUP "A"
> ...
> A_a, A_b and A_c are all the same data but represented at different scales. So e.g. at 1:100000 A_a becomes invisible and A_b becomes visible.
>
> But when I do a GetFeatureInfo request on UMN Mapserver in this case for query_layers=A
> I get back 3 responses (for A_a, A_b and A_c), but I would hope for only 1 response.
>
> It seem as if this is a well known problem (http://trac.osgeo.org/mapserver/ticket/842)
>
> What can I do beside upgrading on version 6.0 as soon as it's available?
>
> Any advice is welcome! Thanks in advance,
> Nina
>
> ________________________________________________________________
> Neu: WEB.DE Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
> für nur 19,99 Euro/mtl.!* http://produkte.web.de/go/02/
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
______________________________________________________
GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list