Re: [mapserver-users] Symbol size in meters, width in pixels units

2016-04-14 Thread thomas bonfort
we use it already:
https://github.com/mapserver/mapserver/blob/branch-7-0/renderers/agg/src/clipper.cpp

--
thomas

On 14 April 2016 at 15:00, Stephen Woodbridge 
wrote:

> Thomas,
>
> Please take a moment to review this library:
>
> http://www.angusj.com/delphi/clipper.php
>
> I've used the JavaScript version to do offsets in the browser. It could be
> used to offset and linestring or polygon object like a circle and IIRC, it
> also does one sided offsets. It also does lots of other cool things like
> polygon clipping intersection, union, difference, etc.
>
> This might be a handy set of tools for geoprocessing and offsets in
> geometry space.
>
> -Steve W
>
> On 4/14/2016 4:37 AM, thomas bonfort wrote:
>
>> For lines, you have the OUTLINEWIDTH keyword which is always in pixels.
>>
>> --
>> thomas
>>
>> On 14 April 2016 at 10:17, Michal Seidl > > wrote:
>>
>> Hi,
>> I can see the same behaviour with Mapserver 6.4 driver AGG. I am
>> affraid it
>> is not possible. Unfortunaltely. I din not find any workaround.
>>
>> Michal
>>
>>
>>
>> --
>> View this message in context:
>>
>> http://osgeo-org.1560.x6.nabble.com/Symbol-size-in-meters-width-in-pixels-units-tp4228865p5261186.html
>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org > mapserver-users@lists.osgeo.org>
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>>
>>
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Symbol size in meters, width in pixels units

2016-04-14 Thread Stephen Woodbridge

Thomas,

Please take a moment to review this library:

http://www.angusj.com/delphi/clipper.php

I've used the JavaScript version to do offsets in the browser. It could 
be used to offset and linestring or polygon object like a circle and 
IIRC, it also does one sided offsets. It also does lots of other cool 
things like polygon clipping intersection, union, difference, etc.


This might be a handy set of tools for geoprocessing and offsets in 
geometry space.


-Steve W

On 4/14/2016 4:37 AM, thomas bonfort wrote:

For lines, you have the OUTLINEWIDTH keyword which is always in pixels.

--
thomas

On 14 April 2016 at 10:17, Michal Seidl > wrote:

Hi,
I can see the same behaviour with Mapserver 6.4 driver AGG. I am
affraid it
is not possible. Unfortunaltely. I din not find any workaround.

Michal



--
View this message in context:

http://osgeo-org.1560.x6.nabble.com/Symbol-size-in-meters-width-in-pixels-units-tp4228865p5261186.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org 
http://lists.osgeo.org/mailman/listinfo/mapserver-users




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Symbol size in meters, width in pixels units

2016-04-14 Thread Michal Seidl

Thanks for replay.

Actually I am triyng to size circle vector symbol in map/meters/units. 
It works perfectly till you use only COLOR and not OUTLINECOLOR. All is 
needed is SIZEUNITS meters at LAYER level and then STYLE SIZE is then 
computed not in pixeles but map meters.


Unfortunatelly the OUTLINECOLOR strip is also sized so the result symbol 
size is not correct.


Mapserver 6.4

Michal
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Symbol size in meters, width in pixels units

2016-04-14 Thread thomas bonfort
For lines, you have the OUTLINEWIDTH keyword which is always in pixels.

--
thomas

On 14 April 2016 at 10:17, Michal Seidl  wrote:

> Hi,
> I can see the same behaviour with Mapserver 6.4 driver AGG. I am affraid it
> is not possible. Unfortunaltely. I din not find any workaround.
>
> Michal
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Symbol-size-in-meters-width-in-pixels-units-tp4228865p5261186.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Symbol size in meters, width in pixels units

2016-04-14 Thread Michal Seidl
Hi,
I can see the same behaviour with Mapserver 6.4 driver AGG. I am affraid it
is not possible. Unfortunaltely. I din not find any workaround.

Michal



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Symbol-size-in-meters-width-in-pixels-units-tp4228865p5261186.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Symbol size in meters, width in pixels units

2011-06-24 Thread Jean-François Gigand
Hi,

I need to make maps showing proportional symbols (the size depends on
an attribute, and is expressed in meters).
But I need the outline width to be constant across resolutions, so I
need to specify it in pixels.

Since both properties have to be expressed in the same LAYER's
sizeunits (whether meters or pixels), it seems impossible.
Of course I need AGG'rendering (PNG  SVG). I have notice that GD
would draw 1px outline anyway.
Is there a solution?

Thanks,

JF Gigand
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users