[mapserver-users] howto draw amount of points features of one layer depending on scale
Yewondwossen Assefa
yassefa at dmsolutions.ca
Wed Aug 27 07:26:50 PDT 2008
Nils,
look at this thread: it gives details of what you want to accomplish
with an example of a working layer:
http://www.mail-archive.com/mapserver-users@lists.osgeo.org/msg00164.html
Best Regards,
Nils Zierath wrote:
> Hi David,
> your suggestion is similar to Jeff's?
> How would I treat a point as lable? I haven't had any luck in displaying
> the points with "TYPE ANNOTATION".
>
> What would the syntax in the mapfile would look like to either treat a
> point as lable or with "TYPE ANNOTATION"?
>
> My mapfile currently looks like:
>
> LAYER
> NAME 'Field research locations'
> DATA '../vector/gps/fieldresearch_complete'
> STATUS default
> TYPE point
> #TYPE annotation
> TRANSPARENCY 100
> TOLERANCE 7
> TOLERANCEUNITS pixels
> UNITS kilometers
>
> METADATA
> ...
> END #METADATA
>
> PROJECTION
> ...
> END #PROJECTION
>
> CLASSITEM 'StudyFocus'
> #LABELITEM 'LableAnnot'
>
> CLASS
> NAME 'Research locations (all)'
> #MINSCALEDENOM 1000000
>
> STYLE
> SYMBOL 'ttf_pin-sm'
> SIZE 10
> COLOR 255 180 0
> ANGLE 345
> END #STYLE
> END #CLASS
> END #LAYER
>
>
>
> David Percy schrieb:
>> If you treated them as labels when zoomed out (maxscale 50000 for
>> example), then you could take advantage of the label colission
>> features of mapserver to avoid overlaps.
>>
>> when zoomed in further you could have another layer (minscale 50000
>> for example) that shows all the detail...
>>
>> so you would have two layer definitions in this case...
>> Cheers,
>> Percy
>>
>>
>> Nils Zierath wrote:
>>> Dear list,
>>> I got a layer with gps points. On the largest scale of my map the
>>> symbols for points overlap and are not distinguishable from one
>>> another since they are too close together.
>>>
>>> Is it possible to tell mapserver to draw only that many of the
>>> points/symbols that do not overlap, so that more points will be shown
>>> the more I zoom into the map?
>>>
>>> Thank you,
>>> Nils
>>>
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
More information about the MapServer-users
mailing list