[mapserver-users] howto draw amount of points features of one layer depending on scale

Yewondwossen Assefa yassefa at dmsolutions.ca
Thu Mar 12 10:27:34 EDT 2009


google links to the thread:

http://209.85.173.132/search?q=cache:I4K8vXBlJuoJ:www.mail-archive.com/mapserver-users%40lists.osgeo.org/msg00164.html+mapserver+msg00164.html&cd=2&hl=en&ct=clnk&gl=ca&client=firefox-a

Is that what tou are looking for?

Assefa

Subha Ramakrishnan wrote:
> Hi All,
> 
> Can someone tell me what the solution was?
> I tried using the link but it seems to be in-active now.
> 
> Please help.
> Thanks a lot.
> 
> Subha
> 
> Nils Zierath wrote:
>> Yewondwossen,
>> thanks for the link. I had to switch off the "FORCE true" option of 
>> the sample map file and it now works perfectly.
>>
>> Nils
>>
>>
>> Yewondwossen Assefa schrieb:
>>> 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
>>>>
>>>
>>>
>>
>> _______________________________________________
>> 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