Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-15 Thread Havard Tveite
,
with GAP 3, I had ~18px between dots,
with GAP 4, I had ~26px between dots
 whats the logic ?

- Original Message -
*From:* thomas bonfort
mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen
mailto:oliver.chris...@camptocamp.com
*Cc:* mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
*Sent:* Tuesday, January 12, 2010 4:36 PM
*Subject:* Re: [mapserver-users] symbol circle
(ellipse)
rendered not round but oval

symbol
 name dots
 type ellipse
 points 1 1 end
 gap 20
end

...

style
 symbol dots
 size 8
 color r g b
 outlinecolor  r g b
end




On Tue, Jan 12, 2010 at 16:31, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

Hi Thomas :)
 thanks for the answer, but sadely it didnt solve
my problem:
 here are a few tests I did:
 using GAP 20 gave me really weird result:

http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png

http://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png
 using PATTERN 1 22 END gave me better result, but
the
dot are still slightly oval:

http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png

http://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png
 I wondered if the visual effect may have come from
the
fact im pilling up two circle one over the other,
but
even when trying to display only the outer or inner
circles, the circle are still slightly off:

http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png

http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png
(both at once

http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png)
 any other idea? ^_^

- Original Message -
*From:* thomas bonfort
mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen
mailto:oliver.chris...@camptocamp.com
*Cc:* mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
*Sent:* Tuesday, January 12, 2010 3:18 PM
*Subject:* Re: [mapserver-users] symbol circle
(ellipse) rendered not round but oval

hi Oliver :)

try with GAP 20 instead of STYLE 1 20 END
(which is
deprecated btw, use PATTERN now)

cheers,
thomas

On Tue, Jan 12, 2010 at 15:04, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

hello

I have a weird problem with symbology.
Im rendering a line with dots, but the dots
are
not round but slightly oval, see image

http://dev.camptocamp.com/~ochriste/tilecache.png

http://dev.camptocamp.com/%7Eochriste/tilecache.png

Any idea what could be the cause ?

Here is my symbol definition:

SYMBOL
 NAME linie-gepunkt10
 TYPE ELLIPSE
 POINTS
  1 1
 END
 STYLE
  1 20
 END
 FILLED TRUE
END

and my layer's class definition:

 CLASS
  EXPRESSION 3
  MAXSCALEDENOM 21
  STYLE
SYMBOL linie-gepunkt10
SIZE 10
COLOR 102 51 0
  END
  STYLE
SYMBOL linie-gepunkt10
SIZE 8
COLOR 204 102 0
  END
 END

and the map outputformat:

OUTPUTFORMAT
 NAME png
 DRIVER AGG/PNG
 MIMETYPE image/png
 IMAGEMODE RGBA
 EXTENSION png
 FORMATOPTION INTERLACE=OFF

Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-14 Thread Oliver Christen
mmm, I tested a bit and it seems the calculation is more complex than that, as 
the ellipse size definition of the symbol has also some effect.

style-size 8, points 6 6 end, gap 20 = spacing of ~20px between dots
style-size 8, points 8 8 end, gap 20 = spacing of ~14px between dots
style-size 10, points 6 6 end, gap 20 = spacing of ~26px between dots

I fear I dont understand at all how this is calculated :(
  - Original Message - 
  From: Oliver Christen 
  To: thomas bonfort 
  Cc: mapserver-users@lists.osgeo.org 
  Sent: Wednesday, January 13, 2010 10:08 AM
  Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but 
oval


  thank you Thomas

  so if I have a dot of, for example, 8px and I want a space pf 20px between 
the dots, I need a gap of 20/8 =  2.5

  but as far as I can see, Mapserver doesnt like none-integer value for gap.

  what should I do? :(


  2010/1/12 thomas bonfort thomas.bonf...@gmail.com

gap in pixels = symbol-gap * style-size



On Tue, Jan 12, 2010 at 16:52, Oliver Christen 
oliver.chris...@camptocamp.com wrote:

  GAP 20 is really giving unwanted result:

  http://dev.camptocamp.com/~ochriste/tilecache9.png

  though using only one style instead of two seems to solve the oval 
problem (but why ???)

  style
   symbol dots
   size 8

   color 204 102 0
   outlinecolor  102 51 0
  end

  I dont understand how GAP is supposed working:

  with GAP 2, I had ~10px between dots,
  with GAP 3, I had ~18px between dots,
  with GAP 4, I had ~26px between dots

  whats the logic ?
- Original Message - 
From: thomas bonfort 
To: Oliver Christen 
Cc: mapserver-users@lists.osgeo.org 
Sent: Tuesday, January 12, 2010 4:36 PM
Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not 
round but oval


symbol
 name dots
 type ellipse
 points 1 1 end
 gap 20
end

...

style
 symbol dots
 size 8
 color r g b
 outlinecolor  r g b
end





On Tue, Jan 12, 2010 at 16:31, Oliver Christen 
oliver.chris...@camptocamp.com wrote:

  Hi Thomas :)

  thanks for the answer, but sadely it didnt solve my problem:

  here are a few tests I did:

  using GAP 20 gave me really weird result:
  http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png

  using PATTERN 1 22 END gave me better result, but the dot are still 
slightly oval:
  http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png

  I wondered if the visual effect may have come from the fact im 
pilling up two circle one over the other, but even when trying to display only 
the outer or inner circles, the circle are still slightly off:
  http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png
  http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png
  (both at once 
http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png)

  any other idea? ^_^
- Original Message - 
From: thomas bonfort 
To: Oliver Christen 
Cc: mapserver-users@lists.osgeo.org 
Sent: Tuesday, January 12, 2010 3:18 PM
Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not 
round but oval


hi Oliver :)

try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, 
use PATTERN now)

cheers,
thomas


On Tue, Jan 12, 2010 at 15:04, Oliver Christen 
oliver.chris...@camptocamp.com wrote:

  hello

  I have a weird problem with symbology.
  Im rendering a line with dots, but the dots are not round but 
slightly oval, see image http://dev.camptocamp.com/~ochriste/tilecache.png

  Any idea what could be the cause ?

  Here is my symbol definition:

  SYMBOL
   NAME linie-gepunkt10
   TYPE ELLIPSE
   POINTS
1 1
   END
   STYLE
1 20
   END
   FILLED TRUE
  END

  and my layer's class definition:

   CLASS
EXPRESSION 3
MAXSCALEDENOM 21
STYLE
  SYMBOL linie-gepunkt10
  SIZE 10
  COLOR 102 51 0
END
STYLE
  SYMBOL linie-gepunkt10
  SIZE 8
  COLOR 204 102 0
END
   END

  and the map outputformat:

  OUTPUTFORMAT
   NAME png
   DRIVER AGG/PNG
   MIMETYPE image/png
   IMAGEMODE RGBA
   EXTENSION png
   FORMATOPTION

Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-14 Thread Havard Tveite

Oliver Christen wrote:

Thank you Håvard
I see you have changed points 1 1 end by points 8 8 end.
Tell me if im wrong, but these values are only used to render the 
proportions of the elipse but not it's size, is that correct?
so if I understand correctly, using larger values for the elipse 
width/height refine the rendering of the vectorised dot geometry ?


The size of the symbols are determined by the values given
in the style of the class in the layer.  So the magnitude
of the values used in the symbol definition only have
effect within the symbol definition (makes it possible to
use only integers, and makes it easier to do the
arithmetics :-) ).
The magnitude of the values used in the symbol definition
should have no bearing on the way the symbols are rendered
by Mapserver.

Håvard



regards
Oliver


Dear Oliver Christen,

Using Mapserver 5.6.0 and AGG rendering, you can achieve what
you want by using a combination of ellipse size and gap size
in the symbol definition.
There is something strange in the calculations (a gap of
about half the ellipse size seems to produce touching symbols),
so in your case, you could try to use 8 as the diameter of the
ellipses, and 20 + 4 (half the ellipse size) = 24 as the
gap:

symbol
 name dots
 type ellipse
 points 8 8 end
 gap 24
end


Håvard

Oliver Christen wrote:

thank you Thomas

so if I have a dot of, for example, 8px and I want a space pf 20px 
between the dots, I need a gap of 20/8 =  2.5


but as far as I can see, Mapserver doesnt like none-integer value for 
gap.


what should I do? :(

2010/1/12 thomas bonfort thomas.bonf...@gmail.com 
mailto:thomas.bonf...@gmail.com


gap in pixels = symbol-gap * style-size


On Tue, Jan 12, 2010 at 16:52, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

GAP 20 is really giving unwanted result:
 http://dev.camptocamp.com/~ochriste/tilecache9.png
http://dev.camptocamp.com/%7Eochriste/tilecache9.png
 though using only one style instead of two seems to solve the
oval problem (but why ???)
 style
 symbol dots
 size 8
 color 204 102 0
 outlinecolor  102 51 0
end
 I dont understand how GAP is supposed working:
 with GAP 2, I had ~10px between dots,
with GAP 3, I had ~18px between dots,
with GAP 4, I had ~26px between dots
 whats the logic ?

- Original Message -
*From:* thomas bonfort mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen mailto:oliver.chris...@camptocamp.com
*Cc:* mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
*Sent:* Tuesday, January 12, 2010 4:36 PM
*Subject:* Re: [mapserver-users] symbol circle (ellipse)
rendered not round but oval

symbol
 name dots
 type ellipse
 points 1 1 end
 gap 20
end

...

style
 symbol dots
 size 8
 color r g b
 outlinecolor  r g b
end




On Tue, Jan 12, 2010 at 16:31, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

Hi Thomas :)
 thanks for the answer, but sadely it didnt solve my 
problem:

 here are a few tests I did:
 using GAP 20 gave me really weird result:
http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png

http://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png
 using PATTERN 1 22 END gave me better result, but the
dot are still slightly oval:

http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png

http://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png
 I wondered if the visual effect may have come from the
fact im pilling up two circle one over the other, but
even when trying to display only the outer or inner
circles, the circle are still slightly off:

http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png

http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png
(both at once

http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png)
 any other idea? ^_^

- Original Message -
*From:* thomas bonfort
mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen
mailto:oliver.chris...@camptocamp.com
*Cc:* mapserver-users@lists.osgeo.org

Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-14 Thread Oliver Christen
mmm, then whats the difference between points 1 1 end and points 8 8 end 
?




Oliver Christen wrote:

Thank you Håvard
I see you have changed points 1 1 end by points 8 8 end.
Tell me if im wrong, but these values are only used to render the 
proportions of the elipse but not it's size, is that correct?
so if I understand correctly, using larger values for the elipse 
width/height refine the rendering of the vectorised dot geometry ?


The size of the symbols are determined by the values given
in the style of the class in the layer.  So the magnitude
of the values used in the symbol definition only have
effect within the symbol definition (makes it possible to
use only integers, and makes it easier to do the
arithmetics :-) ).
The magnitude of the values used in the symbol definition
should have no bearing on the way the symbols are rendered
by Mapserver.

Håvard



regards
Oliver


Dear Oliver Christen,

Using Mapserver 5.6.0 and AGG rendering, you can achieve what
you want by using a combination of ellipse size and gap size
in the symbol definition.
There is something strange in the calculations (a gap of
about half the ellipse size seems to produce touching symbols),
so in your case, you could try to use 8 as the diameter of the
ellipses, and 20 + 4 (half the ellipse size) = 24 as the
gap:

symbol
 name dots
 type ellipse
 points 8 8 end
 gap 24
end


Håvard

Oliver Christen wrote:

thank you Thomas

so if I have a dot of, for example, 8px and I want a space pf 20px 
between the dots, I need a gap of 20/8 =  2.5


but as far as I can see, Mapserver doesnt like none-integer value for 
gap.


what should I do? :(

2010/1/12 thomas bonfort thomas.bonf...@gmail.com 
mailto:thomas.bonf...@gmail.com


gap in pixels = symbol-gap * style-size


On Tue, Jan 12, 2010 at 16:52, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

GAP 20 is really giving unwanted result:
 http://dev.camptocamp.com/~ochriste/tilecache9.png
http://dev.camptocamp.com/%7Eochriste/tilecache9.png
 though using only one style instead of two seems to solve the
oval problem (but why ???)
 style
 symbol dots
 size 8
 color 204 102 0
 outlinecolor  102 51 0
end
 I dont understand how GAP is supposed working:
 with GAP 2, I had ~10px between dots,
with GAP 3, I had ~18px between dots,
with GAP 4, I had ~26px between dots
 whats the logic ?

- Original Message -
*From:* thomas bonfort mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen 
mailto:oliver.chris...@camptocamp.com

*Cc:* mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
*Sent:* Tuesday, January 12, 2010 4:36 PM
*Subject:* Re: [mapserver-users] symbol circle (ellipse)
rendered not round but oval

symbol
 name dots
 type ellipse
 points 1 1 end
 gap 20
end

...

style
 symbol dots
 size 8
 color r g b
 outlinecolor  r g b
end




On Tue, Jan 12, 2010 at 16:31, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

Hi Thomas :)
 thanks for the answer, but sadely it didnt solve my 
problem:

 here are a few tests I did:
 using GAP 20 gave me really weird result:

http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png

http://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png
 using PATTERN 1 22 END gave me better result, but the
dot are still slightly oval:

http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png

http://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png
 I wondered if the visual effect may have come from the
fact im pilling up two circle one over the other, but
even when trying to display only the outer or inner
circles, the circle are still slightly off:

http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png

http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png
(both at once

http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png)
 any other idea? ^_^

- Original Message -
*From:* thomas bonfort
mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen
mailto:oliver.chris...@camptocamp.com

Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-14 Thread Havard Tveite

Oliver Christen wrote:
mmm, then whats the difference between points 1 1 end and points 8 8 end 
?


For an ELLIPSE symbol definition without GAP, there is no
difference.
The bounding box of the symbol will be used when rendering
the symbol.  The height of the symbol bounding box on the
map will be the size given in the STYLE of the CLASS in
the LAYER.
I have found this practice very convenient when creating
complex vector symbols.

When you have an ELLIPSE symbol definition with a GAP
specified, the relationship between the values used in
POINTS and GAP is very important.

For the current version of Mapserver and AGG, if you set
SIZE in STYLE to 8, and combine that with the symbol
definition I suggested (points 8 8, gap 24), I think you
would get a reasonable result.

Håvard


Oliver Christen wrote:

Thank you Håvard
I see you have changed points 1 1 end by points 8 8 end.
Tell me if im wrong, but these values are only used to render the 
proportions of the elipse but not it's size, is that correct?
so if I understand correctly, using larger values for the elipse 
width/height refine the rendering of the vectorised dot geometry ?

The size of the symbols are determined by the values given
in the style of the class in the layer.  So the magnitude
of the values used in the symbol definition only have
effect within the symbol definition (makes it possible to
use only integers, and makes it easier to do the
arithmetics :-) ).
The magnitude of the values used in the symbol definition
should have no bearing on the way the symbols are rendered
by Mapserver.

Håvard


regards
Oliver


Dear Oliver Christen,

Using Mapserver 5.6.0 and AGG rendering, you can achieve what
you want by using a combination of ellipse size and gap size
in the symbol definition.
There is something strange in the calculations (a gap of
about half the ellipse size seems to produce touching symbols),
so in your case, you could try to use 8 as the diameter of the
ellipses, and 20 + 4 (half the ellipse size) = 24 as the
gap:

symbol
 name dots
 type ellipse
 points 8 8 end
 gap 24
end


Håvard

Oliver Christen wrote:

thank you Thomas

so if I have a dot of, for example, 8px and I want a space pf 20px 
between the dots, I need a gap of 20/8 =  2.5


but as far as I can see, Mapserver doesnt like none-integer value for 
gap.


what should I do? :(

2010/1/12 thomas bonfort thomas.bonf...@gmail.com 
mailto:thomas.bonf...@gmail.com


gap in pixels = symbol-gap * style-size


On Tue, Jan 12, 2010 at 16:52, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

GAP 20 is really giving unwanted result:
 http://dev.camptocamp.com/~ochriste/tilecache9.png
http://dev.camptocamp.com/%7Eochriste/tilecache9.png
 though using only one style instead of two seems to solve the
oval problem (but why ???)
 style
 symbol dots
 size 8
 color 204 102 0
 outlinecolor  102 51 0
end
 I dont understand how GAP is supposed working:
 with GAP 2, I had ~10px between dots,
with GAP 3, I had ~18px between dots,
with GAP 4, I had ~26px between dots
 whats the logic ?

- Original Message -
*From:* thomas bonfort mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen 
mailto:oliver.chris...@camptocamp.com

*Cc:* mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
*Sent:* Tuesday, January 12, 2010 4:36 PM
*Subject:* Re: [mapserver-users] symbol circle (ellipse)
rendered not round but oval

symbol
 name dots
 type ellipse
 points 1 1 end
 gap 20
end

...

style
 symbol dots
 size 8
 color r g b
 outlinecolor  r g b
end




On Tue, Jan 12, 2010 at 16:31, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

Hi Thomas :)
 thanks for the answer, but sadely it didnt solve my 
problem:

 here are a few tests I did:
 using GAP 20 gave me really weird result:

http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png

http://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png
 using PATTERN 1 22 END gave me better result, but the
dot are still slightly oval:

http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png

http://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png
 I wondered if the visual effect may have come from the
fact im pilling up two circle one over the other, but
even when trying to display only the outer or inner
circles, the circle are still slightly off

Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-14 Thread Stephen Woodbridge

Hi guys,

I haven't followed this whole thread but I think it should be better 
documented so people can understand how to use this. Please write a doc 
bug and put as much information in the bug about how this works as you 
have been able to discover.


Thanks,
  -Steve W

Oliver Christen wrote:


Thank you Håvard
I see you have changed points 1 1 end by points 8 8 end.
Tell me if im wrong, but these values are only used to render the 
proportions of the elipse but not it's size, is that correct?
so if I understand correctly, using larger values for the elipse 
width/height refine the rendering of the vectorised dot geometry ?


regards
Oliver


Dear Oliver Christen,

Using Mapserver 5.6.0 and AGG rendering, you can achieve what
you want by using a combination of ellipse size and gap size
in the symbol definition.
There is something strange in the calculations (a gap of
about half the ellipse size seems to produce touching symbols),
so in your case, you could try to use 8 as the diameter of the
ellipses, and 20 + 4 (half the ellipse size) = 24 as the
gap:

symbol
 name dots
 type ellipse
 points 8 8 end
 gap 24
end


Håvard

Oliver Christen wrote:

thank you Thomas

so if I have a dot of, for example, 8px and I want a space pf 20px 
between the dots, I need a gap of 20/8 =  2.5


but as far as I can see, Mapserver doesnt like none-integer value for 
gap.


what should I do? :(

2010/1/12 thomas bonfort thomas.bonf...@gmail.com 
mailto:thomas.bonf...@gmail.com


gap in pixels = symbol-gap * style-size


On Tue, Jan 12, 2010 at 16:52, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

GAP 20 is really giving unwanted result:
 http://dev.camptocamp.com/~ochriste/tilecache9.png
http://dev.camptocamp.com/%7Eochriste/tilecache9.png
 though using only one style instead of two seems to solve the
oval problem (but why ???)
 style
 symbol dots
 size 8
 color 204 102 0
 outlinecolor  102 51 0
end
 I dont understand how GAP is supposed working:
 with GAP 2, I had ~10px between dots,
with GAP 3, I had ~18px between dots,
with GAP 4, I had ~26px between dots
 whats the logic ?

- Original Message -
*From:* thomas bonfort mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen 
mailto:oliver.chris...@camptocamp.com

*Cc:* mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
*Sent:* Tuesday, January 12, 2010 4:36 PM
*Subject:* Re: [mapserver-users] symbol circle (ellipse)
rendered not round but oval

symbol
 name dots
 type ellipse
 points 1 1 end
 gap 20
end

...

style
 symbol dots
 size 8
 color r g b
 outlinecolor  r g b
end




On Tue, Jan 12, 2010 at 16:31, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

Hi Thomas :)
 thanks for the answer, but sadely it didnt solve my 
problem:

 here are a few tests I did:
 using GAP 20 gave me really weird result:

http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png


http://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png
 using PATTERN 1 22 END gave me better result, but the
dot are still slightly oval:

http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png

http://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png
 I wondered if the visual effect may have come from the
fact im pilling up two circle one over the other, but
even when trying to display only the outer or inner
circles, the circle are still slightly off:

http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png

http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png
(both at once

http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png)
 any other idea? ^_^

- Original Message -
*From:* thomas bonfort
mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen
mailto:oliver.chris...@camptocamp.com
*Cc:* mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
*Sent:* Tuesday, January 12, 2010 3:18 PM
*Subject:* Re: [mapserver-users

Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-14 Thread Oliver Christen

Thank you for the explanation.

Im still trying to figure out how to calculate exactly the GAP and ellipse 
POINT depending on the symbol's size and the distance between the points 
wanted.
empirically I have come with the formula: distance = (GAP * SIZE * 0.75) / 
POINTS
seems weird but at least I get some way to estimate the different values to 
use for GAP and POINTS



Oliver Christen wrote:
mmm, then whats the difference between points 1 1 end and points 8 8 
end ?


For an ELLIPSE symbol definition without GAP, there is no
difference.
The bounding box of the symbol will be used when rendering
the symbol.  The height of the symbol bounding box on the
map will be the size given in the STYLE of the CLASS in
the LAYER.
I have found this practice very convenient when creating
complex vector symbols.

When you have an ELLIPSE symbol definition with a GAP
specified, the relationship between the values used in
POINTS and GAP is very important.

For the current version of Mapserver and AGG, if you set
SIZE in STYLE to 8, and combine that with the symbol
definition I suggested (points 8 8, gap 24), I think you
would get a reasonable result.

Håvard


Oliver Christen wrote:

Thank you Håvard
I see you have changed points 1 1 end by points 8 8 end.
Tell me if im wrong, but these values are only used to render the 
proportions of the elipse but not it's size, is that correct?
so if I understand correctly, using larger values for the elipse 
width/height refine the rendering of the vectorised dot geometry ?

The size of the symbols are determined by the values given
in the style of the class in the layer.  So the magnitude
of the values used in the symbol definition only have
effect within the symbol definition (makes it possible to
use only integers, and makes it easier to do the
arithmetics :-) ).
The magnitude of the values used in the symbol definition
should have no bearing on the way the symbols are rendered
by Mapserver.

Håvard


regards
Oliver


Dear Oliver Christen,

Using Mapserver 5.6.0 and AGG rendering, you can achieve what
you want by using a combination of ellipse size and gap size
in the symbol definition.
There is something strange in the calculations (a gap of
about half the ellipse size seems to produce touching symbols),
so in your case, you could try to use 8 as the diameter of the
ellipses, and 20 + 4 (half the ellipse size) = 24 as the
gap:

symbol
 name dots
 type ellipse
 points 8 8 end
 gap 24
end


Håvard

Oliver Christen wrote:

thank you Thomas

so if I have a dot of, for example, 8px and I want a space pf 20px 
between the dots, I need a gap of 20/8 =  2.5


but as far as I can see, Mapserver doesnt like none-integer value for 
gap.


what should I do? :(

2010/1/12 thomas bonfort thomas.bonf...@gmail.com 
mailto:thomas.bonf...@gmail.com


gap in pixels = symbol-gap * style-size


On Tue, Jan 12, 2010 at 16:52, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

GAP 20 is really giving unwanted result:
 http://dev.camptocamp.com/~ochriste/tilecache9.png
http://dev.camptocamp.com/%7Eochriste/tilecache9.png
 though using only one style instead of two seems to solve 
the

oval problem (but why ???)
 style
 symbol dots
 size 8
 color 204 102 0
 outlinecolor  102 51 0
end
 I dont understand how GAP is supposed working:
 with GAP 2, I had ~10px between dots,
with GAP 3, I had ~18px between dots,
with GAP 4, I had ~26px between dots
 whats the logic ?

- Original Message -
*From:* thomas bonfort mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen 
mailto:oliver.chris...@camptocamp.com

*Cc:* mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
*Sent:* Tuesday, January 12, 2010 4:36 PM
*Subject:* Re: [mapserver-users] symbol circle (ellipse)
rendered not round but oval

symbol
 name dots
 type ellipse
 points 1 1 end
 gap 20
end

...

style
 symbol dots
 size 8
 color r g b
 outlinecolor  r g b
end




On Tue, Jan 12, 2010 at 16:31, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

Hi Thomas :)
 thanks for the answer, but sadely it didnt solve my 
problem:

 here are a few tests I did:
 using GAP 20 gave me really weird result:

http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png

http://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png
 using PATTERN 1 22 END gave me better result, but 
the

dot are still slightly oval:

http

Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-14 Thread Oliver Christen

Hi Steve

I followed your suggestion and opened a documentation bug

thanks
Oliver


Hi guys,

I haven't followed this whole thread but I think it should be better 
documented so people can understand how to use this. Please write a doc 
bug and put as much information in the bug about how this works as you 
have been able to discover.


Thanks,
  -Steve W

Oliver Christen wrote:


Thank you Håvard
I see you have changed points 1 1 end by points 8 8 end.
Tell me if im wrong, but these values are only used to render the 
proportions of the elipse but not it's size, is that correct?
so if I understand correctly, using larger values for the elipse 
width/height refine the rendering of the vectorised dot geometry ?


regards
Oliver


Dear Oliver Christen,

Using Mapserver 5.6.0 and AGG rendering, you can achieve what
you want by using a combination of ellipse size and gap size
in the symbol definition.
There is something strange in the calculations (a gap of
about half the ellipse size seems to produce touching symbols),
so in your case, you could try to use 8 as the diameter of the
ellipses, and 20 + 4 (half the ellipse size) = 24 as the
gap:

symbol
 name dots
 type ellipse
 points 8 8 end
 gap 24
end


Håvard

Oliver Christen wrote:

thank you Thomas

so if I have a dot of, for example, 8px and I want a space pf 20px 
between the dots, I need a gap of 20/8 =  2.5


but as far as I can see, Mapserver doesnt like none-integer value for 
gap.


what should I do? :(

2010/1/12 thomas bonfort thomas.bonf...@gmail.com 
mailto:thomas.bonf...@gmail.com


gap in pixels = symbol-gap * style-size


On Tue, Jan 12, 2010 at 16:52, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

GAP 20 is really giving unwanted result:
 http://dev.camptocamp.com/~ochriste/tilecache9.png
http://dev.camptocamp.com/%7Eochriste/tilecache9.png
 though using only one style instead of two seems to solve the
oval problem (but why ???)
 style
 symbol dots
 size 8
 color 204 102 0
 outlinecolor  102 51 0
end
 I dont understand how GAP is supposed working:
 with GAP 2, I had ~10px between dots,
with GAP 3, I had ~18px between dots,
with GAP 4, I had ~26px between dots
 whats the logic ?

- Original Message -
*From:* thomas bonfort mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen 
mailto:oliver.chris...@camptocamp.com

*Cc:* mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
*Sent:* Tuesday, January 12, 2010 4:36 PM
*Subject:* Re: [mapserver-users] symbol circle (ellipse)
rendered not round but oval

symbol
 name dots
 type ellipse
 points 1 1 end
 gap 20
end

...

style
 symbol dots
 size 8
 color r g b
 outlinecolor  r g b
end




On Tue, Jan 12, 2010 at 16:31, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

Hi Thomas :)
 thanks for the answer, but sadely it didnt solve my 
problem:

 here are a few tests I did:
 using GAP 20 gave me really weird result:

http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png

http://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png
 using PATTERN 1 22 END gave me better result, but the
dot are still slightly oval:

http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png

http://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png
 I wondered if the visual effect may have come from the
fact im pilling up two circle one over the other, but
even when trying to display only the outer or inner
circles, the circle are still slightly off:

http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png

http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png
(both at once

http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png)
 any other idea? ^_^

- Original Message -
*From:* thomas bonfort
mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen
mailto:oliver.chris...@camptocamp.com
*Cc:* mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
*Sent:* Tuesday, January 12

Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-14 Thread Havard Tveite

If Thomas B. agrees, I think it would be reasonable to also
open a bug on the gap calculation.
In my opinion, since the word gap is used, the correct
way to specify a symbol with ellipses that has the same
gap between them as the diameter of the ellipses should be
as follows:

symbol
  name dots
  type ellipse
  points 1 1 end
  gap 1
end

or an equivalent scaled version such as:

symbol
  name dots
  type ellipse
  points 23 23 end
  gap 23
end

The actual size of the ellipses (and the width of the gaps)
should be determined by the SIZE in CLASS- STYLE.  If
SIZE is 10, the ellipses should have a 10 pixel diameter
(and should have a 10 pixel gap between them).

I have been hesitant to file bugs regarding symbology, since
the documentation on symbology is lacking and there is not
complete agreement on how some of the things that has to do
with symbology should work.  There have also been
discussions on changing some behaviour and mechanisms for
symbology.
First we have to agree on how things should work and document
it, then we can file bugs if behaviour is not as expected.

Håvard

Oliver Christen wrote:

Hi Steve

I followed your suggestion and opened a documentation bug

thanks
Oliver


Hi guys,

I haven't followed this whole thread but I think it should be better 
documented so people can understand how to use this. Please write a doc 
bug and put as much information in the bug about how this works as you 
have been able to discover.


Thanks,
  -Steve W

Oliver Christen wrote:

Thank you Håvard
I see you have changed points 1 1 end by points 8 8 end.
Tell me if im wrong, but these values are only used to render the 
proportions of the elipse but not it's size, is that correct?
so if I understand correctly, using larger values for the elipse 
width/height refine the rendering of the vectorised dot geometry ?


regards
Oliver


Dear Oliver Christen,

Using Mapserver 5.6.0 and AGG rendering, you can achieve what
you want by using a combination of ellipse size and gap size
in the symbol definition.
There is something strange in the calculations (a gap of
about half the ellipse size seems to produce touching symbols),
so in your case, you could try to use 8 as the diameter of the
ellipses, and 20 + 4 (half the ellipse size) = 24 as the
gap:

symbol
 name dots
 type ellipse
 points 8 8 end
 gap 24
end


Håvard

Oliver Christen wrote:

thank you Thomas

so if I have a dot of, for example, 8px and I want a space pf 20px 
between the dots, I need a gap of 20/8 =  2.5


but as far as I can see, Mapserver doesnt like none-integer value for 
gap.


what should I do? :(

2010/1/12 thomas bonfort thomas.bonf...@gmail.com 
mailto:thomas.bonf...@gmail.com


gap in pixels = symbol-gap * style-size


On Tue, Jan 12, 2010 at 16:52, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

GAP 20 is really giving unwanted result:
 http://dev.camptocamp.com/~ochriste/tilecache9.png
http://dev.camptocamp.com/%7Eochriste/tilecache9.png
 though using only one style instead of two seems to solve the
oval problem (but why ???)
 style
 symbol dots
 size 8
 color 204 102 0
 outlinecolor  102 51 0
end
 I dont understand how GAP is supposed working:
 with GAP 2, I had ~10px between dots,
with GAP 3, I had ~18px between dots,
with GAP 4, I had ~26px between dots
 whats the logic ?

- Original Message -
*From:* thomas bonfort mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen 
mailto:oliver.chris...@camptocamp.com

*Cc:* mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
*Sent:* Tuesday, January 12, 2010 4:36 PM
*Subject:* Re: [mapserver-users] symbol circle (ellipse)
rendered not round but oval

symbol
 name dots
 type ellipse
 points 1 1 end
 gap 20
end

...

style
 symbol dots
 size 8
 color r g b
 outlinecolor  r g b
end




On Tue, Jan 12, 2010 at 16:31, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

Hi Thomas :)
 thanks for the answer, but sadely it didnt solve my 
problem:

 here are a few tests I did:
 using GAP 20 gave me really weird result:

http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png

http://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png
 using PATTERN 1 22 END gave me better result, but the
dot are still slightly oval:

http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png

http://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png

Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-14 Thread Stephen Woodbridge
So if I want ten pixel ellipses with a 1, 2, or 3 pixels gap how would 
you specify that?


points 10 10 gap 1 (or 2 or 3)?

-Steve W

Havard Tveite wrote:

If Thomas B. agrees, I think it would be reasonable to also
open a bug on the gap calculation.
In my opinion, since the word gap is used, the correct
way to specify a symbol with ellipses that has the same
gap between them as the diameter of the ellipses should be
as follows:

symbol
  name dots
  type ellipse
  points 1 1 end
  gap 1
end

or an equivalent scaled version such as:

symbol
  name dots
  type ellipse
  points 23 23 end
  gap 23
end

The actual size of the ellipses (and the width of the gaps)
should be determined by the SIZE in CLASS- STYLE.  If
SIZE is 10, the ellipses should have a 10 pixel diameter
(and should have a 10 pixel gap between them).

I have been hesitant to file bugs regarding symbology, since
the documentation on symbology is lacking and there is not
complete agreement on how some of the things that has to do
with symbology should work.  There have also been
discussions on changing some behaviour and mechanisms for
symbology.
First we have to agree on how things should work and document
it, then we can file bugs if behaviour is not as expected.

Håvard

Oliver Christen wrote:

Hi Steve

I followed your suggestion and opened a documentation bug

thanks
Oliver


Hi guys,

I haven't followed this whole thread but I think it should be better 
documented so people can understand how to use this. Please write a 
doc bug and put as much information in the bug about how this works 
as you have been able to discover.


Thanks,
  -Steve W

Oliver Christen wrote:

Thank you Håvard
I see you have changed points 1 1 end by points 8 8 end.
Tell me if im wrong, but these values are only used to render the 
proportions of the elipse but not it's size, is that correct?
so if I understand correctly, using larger values for the elipse 
width/height refine the rendering of the vectorised dot geometry ?


regards
Oliver


Dear Oliver Christen,

Using Mapserver 5.6.0 and AGG rendering, you can achieve what
you want by using a combination of ellipse size and gap size
in the symbol definition.
There is something strange in the calculations (a gap of
about half the ellipse size seems to produce touching symbols),
so in your case, you could try to use 8 as the diameter of the
ellipses, and 20 + 4 (half the ellipse size) = 24 as the
gap:

symbol
 name dots
 type ellipse
 points 8 8 end
 gap 24
end


Håvard

Oliver Christen wrote:

thank you Thomas

so if I have a dot of, for example, 8px and I want a space pf 20px 
between the dots, I need a gap of 20/8 =  2.5


but as far as I can see, Mapserver doesnt like none-integer value 
for gap.


what should I do? :(

2010/1/12 thomas bonfort thomas.bonf...@gmail.com 
mailto:thomas.bonf...@gmail.com


gap in pixels = symbol-gap * style-size


On Tue, Jan 12, 2010 at 16:52, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

GAP 20 is really giving unwanted result:
 http://dev.camptocamp.com/~ochriste/tilecache9.png
http://dev.camptocamp.com/%7Eochriste/tilecache9.png
 though using only one style instead of two seems to solve 
the

oval problem (but why ???)
 style
 symbol dots
 size 8
 color 204 102 0
 outlinecolor  102 51 0
end
 I dont understand how GAP is supposed working:
 with GAP 2, I had ~10px between dots,
with GAP 3, I had ~18px between dots,
with GAP 4, I had ~26px between dots
 whats the logic ?

- Original Message -
*From:* thomas bonfort mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen 
mailto:oliver.chris...@camptocamp.com

*Cc:* mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
*Sent:* Tuesday, January 12, 2010 4:36 PM
*Subject:* Re: [mapserver-users] symbol circle (ellipse)
rendered not round but oval

symbol
 name dots
 type ellipse
 points 1 1 end
 gap 20
end

...

style
 symbol dots
 size 8
 color r g b
 outlinecolor  r g b
end




On Tue, Jan 12, 2010 at 16:31, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

Hi Thomas :)
 thanks for the answer, but sadely it didnt solve 
my problem:

 here are a few tests I did:
 using GAP 20 gave me really weird result:

http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png

http://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png
 using PATTERN 1 22 END gave me better result, but 
the

dot

Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-14 Thread Havard Tveite

Stephen Woodbridge wrote:
So if I want ten pixel ellipses with a 1, 2, or 3 pixels gap how would 
you specify that?


points 10 10 gap 1 (or 2 or 3)?


Yes, if the rendering behaviour had been according to my
preferences,
POINTS 10 10 END
GAP 1 (or 2 or 3)
should do it (if you had specified SIZE 10 in the STYLE).
You specify the gap, and not the centre to centre distance
between the ellipses.

But currently, this is not the behaviour.
Currently (with AGG in 5.6.0) you would have to specify:
POINTS 10 10 END
GAP 6 (or 7 or 8)
to get something close (if you specify SIZE 10 in the STYLE).

Something seems to be wrong when the GAP is close to
half the diameter specified in POINTS - some of the gaps
will be as expected, while others are larger (closer to the
actual number specified in GAP).

Håvard



-Steve W

Havard Tveite wrote:

If Thomas B. agrees, I think it would be reasonable to also
open a bug on the gap calculation.
In my opinion, since the word gap is used, the correct
way to specify a symbol with ellipses that has the same
gap between them as the diameter of the ellipses should be
as follows:

symbol
  name dots
  type ellipse
  points 1 1 end
  gap 1
end

or an equivalent scaled version such as:

symbol
  name dots
  type ellipse
  points 23 23 end
  gap 23
end

The actual size of the ellipses (and the width of the gaps)
should be determined by the SIZE in CLASS- STYLE.  If
SIZE is 10, the ellipses should have a 10 pixel diameter
(and should have a 10 pixel gap between them).

I have been hesitant to file bugs regarding symbology, since
the documentation on symbology is lacking and there is not
complete agreement on how some of the things that has to do
with symbology should work.  There have also been
discussions on changing some behaviour and mechanisms for
symbology.
First we have to agree on how things should work and document
it, then we can file bugs if behaviour is not as expected.

Håvard

Oliver Christen wrote:

Hi Steve

I followed your suggestion and opened a documentation bug

thanks
Oliver


Hi guys,

I haven't followed this whole thread but I think it should be better 
documented so people can understand how to use this. Please write a 
doc bug and put as much information in the bug about how this works 
as you have been able to discover.


Thanks,
  -Steve W

Oliver Christen wrote:

Thank you Håvard
I see you have changed points 1 1 end by points 8 8 end.
Tell me if im wrong, but these values are only used to render the 
proportions of the elipse but not it's size, is that correct?
so if I understand correctly, using larger values for the elipse 
width/height refine the rendering of the vectorised dot geometry ?


regards
Oliver


Dear Oliver Christen,

Using Mapserver 5.6.0 and AGG rendering, you can achieve what
you want by using a combination of ellipse size and gap size
in the symbol definition.
There is something strange in the calculations (a gap of
about half the ellipse size seems to produce touching symbols),
so in your case, you could try to use 8 as the diameter of the
ellipses, and 20 + 4 (half the ellipse size) = 24 as the
gap:

symbol
 name dots
 type ellipse
 points 8 8 end
 gap 24
end


Håvard

Oliver Christen wrote:

thank you Thomas

so if I have a dot of, for example, 8px and I want a space pf 20px 
between the dots, I need a gap of 20/8 =  2.5


but as far as I can see, Mapserver doesnt like none-integer value 
for gap.


what should I do? :(

2010/1/12 thomas bonfort thomas.bonf...@gmail.com 
mailto:thomas.bonf...@gmail.com


gap in pixels = symbol-gap * style-size


On Tue, Jan 12, 2010 at 16:52, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

GAP 20 is really giving unwanted result:
 http://dev.camptocamp.com/~ochriste/tilecache9.png
http://dev.camptocamp.com/%7Eochriste/tilecache9.png
 though using only one style instead of two seems to solve 
the

oval problem (but why ???)
 style
 symbol dots
 size 8
 color 204 102 0
 outlinecolor  102 51 0
end
 I dont understand how GAP is supposed working:
 with GAP 2, I had ~10px between dots,
with GAP 3, I had ~18px between dots,
with GAP 4, I had ~26px between dots
 whats the logic ?

- Original Message -
*From:* thomas bonfort mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen 
mailto:oliver.chris...@camptocamp.com

*Cc:* mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
*Sent:* Tuesday, January 12, 2010 4:36 PM
*Subject:* Re: [mapserver-users] symbol circle (ellipse)
rendered not round but oval

symbol
 name dots
 type ellipse
 points 1 1 end
 gap 20
end

...

style
 symbol dots

Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-14 Thread Oliver Christen
] symbol circle 
(ellipse)

rendered not round but oval

symbol
 name dots
 type ellipse
 points 1 1 end
 gap 20
end

...

style
 symbol dots
 size 8
 color r g b
 outlinecolor  r g b
end




On Tue, Jan 12, 2010 at 16:31, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

Hi Thomas :)
 thanks for the answer, but sadely it didnt solve 
my problem:

 here are a few tests I did:
 using GAP 20 gave me really weird result:

http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png

http://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png
 using PATTERN 1 22 END gave me better result, but 
the

dot are still slightly oval:

http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png

http://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png
 I wondered if the visual effect may have come from 
the
fact im pilling up two circle one over the other, 
but

even when trying to display only the outer or inner
circles, the circle are still slightly off:

http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png

http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png
(both at once

http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png)
 any other idea? ^_^

- Original Message -
*From:* thomas bonfort
mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen
mailto:oliver.chris...@camptocamp.com
*Cc:* mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
*Sent:* Tuesday, January 12, 2010 3:18 PM
*Subject:* Re: [mapserver-users] symbol circle
(ellipse) rendered not round but oval

hi Oliver :)

try with GAP 20 instead of STYLE 1 20 END 
(which is

deprecated btw, use PATTERN now)

cheers,
thomas

On Tue, Jan 12, 2010 at 15:04, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

hello

I have a weird problem with symbology.
Im rendering a line with dots, but the dots 
are

not round but slightly oval, see image

http://dev.camptocamp.com/~ochriste/tilecache.png

http://dev.camptocamp.com/%7Eochriste/tilecache.png

Any idea what could be the cause ?

Here is my symbol definition:

SYMBOL
 NAME linie-gepunkt10
 TYPE ELLIPSE
 POINTS
  1 1
 END
 STYLE
  1 20
 END
 FILLED TRUE
END

and my layer's class definition:

 CLASS
  EXPRESSION 3
  MAXSCALEDENOM 21
  STYLE
SYMBOL linie-gepunkt10
SIZE 10
COLOR 102 51 0
  END
  STYLE
SYMBOL linie-gepunkt10
SIZE 8
COLOR 204 102 0
  END
 END

and the map outputformat:

OUTPUTFORMAT
 NAME png
 DRIVER AGG/PNG
 MIMETYPE image/png
 IMAGEMODE RGBA
 EXTENSION png
 FORMATOPTION INTERLACE=OFF
END

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users






--
Håvard Tveite
Department of Mathematical Sciences and Technology, UMB
Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt

Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-13 Thread Oliver Christen
hi David

Im requesting the image through wms indeed.
Though the bbox x/y ratio is exactly the same as the image x/y.
I tried to request the same image directly in cgi, sadely I get exactly the
same problem:

image result in cgi: http://dev.camptocamp.com/~ochriste/cgi.png

(as compared to the wms image http://dev.camptocamp.com/~ochriste/wms.png)

this is the cgi request I used:
/usr/lib/cgi-bin/mapserv -nh
QUERY_STRING=map=/var/www/veloland/private/veloland/veloland/wms/veloland.mapmode=mapLAYERS=MtblandRoutenNationalmapext=556960+220720+557600+221360mapsize=256+256
 cgi.png

I used exactly the same bbox and image size as the wms request:

/wms?FORMAT=image%2FpngLAYERS=MtblandRoutenNationalSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=EPSG%3A21781BBOX=556960,220720,557600,221360WIDTH=256HEIGHT=256

this is when using STYLE 1 20 END or PATTERN 1 20 END for the symbol

when using GAP  the dots are correctly shaped

so I suspect the problem is within the interpretation of STYLE/PATTERN for
the symbol generation ?


2010/1/12 Fawcett, David (MPCA) david.fawc...@state.mn.us

  Are you requesting your image through a WMS and maybe getting a
 ‘non-square pixel’ effect?



 If you are using WMS, are the symbols round when you do a cgi request in
 mode=map or mode=tile?



 David.



 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Oliver Christen
 *Sent:* Tuesday, January 12, 2010 9:31 AM
 *To:* thomas bonfort

 *Cc:* mapserver-users@lists.osgeo.org
 *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not
 round but oval



 Hi Thomas :)



 thanks for the answer, but sadely it didnt solve my problem:



 here are a few tests I did:



 using GAP 20 gave me really weird result:

 http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png



 using PATTERN 1 22 END gave me better result, but the dot are still
 slightly oval:

 http://dev.camptocamp.com/~ochriste/tilecache7_pattern.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png



 I wondered if the visual effect may have come from the fact im pilling up
 two circle one over the other, but even when trying to display only the
 outer or inner circles, the circle are still slightly off:

 http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png

 http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png

 (both at once
 http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png
 )



 any other idea? ^_^

  - Original Message -

 *From:* thomas bonfort thomas.bonf...@gmail.com

 *To:* Oliver Christen oliver.chris...@camptocamp.com

 *Cc:* mapserver-users@lists.osgeo.org

 *Sent:* Tuesday, January 12, 2010 3:18 PM

 *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not
 round but oval



 hi Oliver :)

 try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use
 PATTERN now)

 cheers,
 thomas

 On Tue, Jan 12, 2010 at 15:04, Oliver Christen 
 oliver.chris...@camptocamp.com wrote:

 hello

 I have a weird problem with symbology.
 Im rendering a line with dots, but the dots are not round but slightly
 oval, see image 
 http://dev.camptocamp.com/~ochriste/tilecache.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache.png

 Any idea what could be the cause ?

 Here is my symbol definition:

 SYMBOL
  NAME linie-gepunkt10
  TYPE ELLIPSE
  POINTS
   1 1
  END
  STYLE
   1 20
  END
  FILLED TRUE
 END

 and my layer's class definition:

  CLASS
   EXPRESSION 3
   MAXSCALEDENOM 21
   STYLE
 SYMBOL linie-gepunkt10
 SIZE 10
 COLOR 102 51 0
   END
   STYLE
 SYMBOL linie-gepunkt10
 SIZE 8
 COLOR 204 102 0
   END
  END

 and the map outputformat:

 OUTPUTFORMAT
  NAME png
  DRIVER AGG/PNG
  MIMETYPE image/png
  IMAGEMODE RGBA
  EXTENSION png
  FORMATOPTION INTERLACE=OFF
 END
 ___
 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 circle (ellipse) rendered not round but oval

2010-01-13 Thread Oliver Christen
thank you Thomas

so if I have a dot of, for example, 8px and I want a space pf 20px between
the dots, I need a gap of 20/8 =  2.5

but as far as I can see, Mapserver doesnt like none-integer value for gap.

what should I do? :(

2010/1/12 thomas bonfort thomas.bonf...@gmail.com

 gap in pixels = symbol-gap * style-size


 On Tue, Jan 12, 2010 at 16:52, Oliver Christen 
 oliver.chris...@camptocamp.com wrote:

  GAP 20 is really giving unwanted result:

 http://dev.camptocamp.com/~ochriste/tilecache9.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache9.png

 though using only one style instead of two seems to solve the oval problem
 (but why ???)

 style
  symbol dots
  size 8
  color 204 102 0
  outlinecolor  102 51 0
 end

 I dont understand how GAP is supposed working:

 with GAP 2, I had ~10px between dots,
  with GAP 3, I had ~18px between dots,
  with GAP 4, I had ~26px between dots

 whats the logic ?

 - Original Message -
  *From:* thomas bonfort thomas.bonf...@gmail.com
 *To:* Oliver Christen oliver.chris...@camptocamp.com
 *Cc:* mapserver-users@lists.osgeo.org
  *Sent:* Tuesday, January 12, 2010 4:36 PM
 *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not
 round but oval

 symbol
  name dots
  type ellipse
  points 1 1 end
  gap 20
 end

 ...

 style
  symbol dots
  size 8
  color r g b
  outlinecolor  r g b
 end




 On Tue, Jan 12, 2010 at 16:31, Oliver Christen 
 oliver.chris...@camptocamp.com wrote:

  Hi Thomas :)

 thanks for the answer, but sadely it didnt solve my problem:

 here are a few tests I did:

 using GAP 20 gave me really weird result:
 http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png

 using PATTERN 1 22 END gave me better result, but the dot are still
 slightly oval:
 http://dev.camptocamp.com/~ochriste/tilecache7_pattern.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png

 I wondered if the visual effect may have come from the fact im pilling up
 two circle one over the other, but even when trying to display only the
 outer or inner circles, the circle are still slightly off:
 http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png
 http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png
 (both at once
 http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png
 )

 any other idea? ^_^

 - Original Message -
  *From:* thomas bonfort thomas.bonf...@gmail.com
 *To:* Oliver Christen oliver.chris...@camptocamp.com
 *Cc:* mapserver-users@lists.osgeo.org
 *Sent:* Tuesday, January 12, 2010 3:18 PM
 *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not
 round but oval

 hi Oliver :)

 try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use
 PATTERN now)

 cheers,
 thomas

 On Tue, Jan 12, 2010 at 15:04, Oliver Christen 
 oliver.chris...@camptocamp.com wrote:

 hello

 I have a weird problem with symbology.
 Im rendering a line with dots, but the dots are not round but slightly
 oval, see image 
 http://dev.camptocamp.com/~ochriste/tilecache.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache.png

 Any idea what could be the cause ?

 Here is my symbol definition:

 SYMBOL
  NAME linie-gepunkt10
  TYPE ELLIPSE
  POINTS
   1 1
  END
  STYLE
   1 20
  END
  FILLED TRUE
 END

 and my layer's class definition:

  CLASS
   EXPRESSION 3
   MAXSCALEDENOM 21
   STYLE
 SYMBOL linie-gepunkt10
 SIZE 10
 COLOR 102 51 0
   END
   STYLE
 SYMBOL linie-gepunkt10
 SIZE 8
 COLOR 204 102 0
   END
  END

 and the map outputformat:

 OUTPUTFORMAT
  NAME png
  DRIVER AGG/PNG
  MIMETYPE image/png
  IMAGEMODE RGBA
  EXTENSION png
  FORMATOPTION INTERLACE=OFF
 END
 ___
 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 circle (ellipse) rendered not round but oval

2010-01-13 Thread Fawcett, David (MPCA)
Oliver,

Apologies for sending you down the wrong path.  I don't follow the dev list, so 
I am not up on the latest feature opportunities (and pitfalls).  My solutions 
appear to be aimed at things people have already figured out...

David.

From: Oliver Christen [mailto:oliver.chris...@camptocamp.com]
Sent: Wednesday, January 13, 2010 3:05 AM
To: Fawcett, David (MPCA)
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but 
oval

hi David

Im requesting the image through wms indeed.
Though the bbox x/y ratio is exactly the same as the image x/y.
I tried to request the same image directly in cgi, sadely I get exactly the 
same problem:

image result in cgi: http://dev.camptocamp.com/~ochriste/cgi.png

(as compared to the wms image http://dev.camptocamp.com/~ochriste/wms.png)

this is the cgi request I used:
/usr/lib/cgi-bin/mapserv -nh 
QUERY_STRING=map=/var/www/veloland/private/veloland/veloland/wms/veloland.mapmode=mapLAYERS=MtblandRoutenNationalmapext=556960+220720+557600+221360mapsize=256+256
  cgi.png

I used exactly the same bbox and image size as the wms request:

/wms?FORMAT=image%2FpngLAYERS=MtblandRoutenNationalSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=EPSG%3A21781BBOX=556960,220720,557600,221360WIDTH=256HEIGHT=256

this is when using STYLE 1 20 END or PATTERN 1 20 END for the symbol

when using GAP  the dots are correctly shaped

so I suspect the problem is within the interpretation of STYLE/PATTERN for the 
symbol generation ?

2010/1/12 Fawcett, David (MPCA) 
david.fawc...@state.mn.usmailto:david.fawc...@state.mn.us
Are you requesting your image through a WMS and maybe getting a 'non-square 
pixel' effect?

If you are using WMS, are the symbols round when you do a cgi request in 
mode=map or mode=tile?

David.

From: 
mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org
 
[mailto:mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org]
 On Behalf Of Oliver Christen
Sent: Tuesday, January 12, 2010 9:31 AM
To: thomas bonfort

Cc: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but 
oval

Hi Thomas :)

thanks for the answer, but sadely it didnt solve my problem:

here are a few tests I did:

using GAP 20 gave me really weird result:
http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png

using PATTERN 1 22 END gave me better result, but the dot are still slightly 
oval:
http://dev.camptocamp.com/~ochriste/tilecache7_pattern.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png

I wondered if the visual effect may have come from the fact im pilling up two 
circle one over the other, but even when trying to display only the outer or 
inner circles, the circle are still slightly off:
http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png
http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png
(both at once 
http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png)

any other idea? ^_^
- Original Message -
From: thomas bonfortmailto:thomas.bonf...@gmail.com
To: Oliver Christenmailto:oliver.chris...@camptocamp.com
Cc: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Sent: Tuesday, January 12, 2010 3:18 PM
Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but 
oval

hi Oliver :)

try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use PATTERN 
now)

cheers,
thomas
On Tue, Jan 12, 2010 at 15:04, Oliver Christen 
oliver.chris...@camptocamp.commailto:oliver.chris...@camptocamp.com wrote:
hello

I have a weird problem with symbology.
Im rendering a line with dots, but the dots are not round but slightly oval, 
see image 
http://dev.camptocamp.com/~ochriste/tilecache.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache.png

Any idea what could be the cause ?

Here is my symbol definition:

SYMBOL
 NAME linie-gepunkt10
 TYPE ELLIPSE
 POINTS
  1 1
 END
 STYLE
  1 20
 END
 FILLED TRUE
END

and my layer's class definition:

 CLASS
  EXPRESSION 3
  MAXSCALEDENOM 21
  STYLE
SYMBOL linie-gepunkt10
SIZE 10
COLOR 102 51 0
  END
  STYLE
SYMBOL linie-gepunkt10
SIZE 8
COLOR 204 102 0
  END
 END

and the map outputformat:

OUTPUTFORMAT
 NAME png
 DRIVER AGG/PNG
 MIMETYPE image/png
 IMAGEMODE RGBA
 EXTENSION png
 FORMATOPTION INTERLACE=OFF
END
___
mapserver-users mailing list
mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-13 Thread Havard Tveite

Dear Oliver Christen,

Using Mapserver 5.6.0 and AGG rendering, you can achieve what
you want by using a combination of ellipse size and gap size
in the symbol definition.
There is something strange in the calculations (a gap of
about half the ellipse size seems to produce touching symbols),
so in your case, you could try to use 8 as the diameter of the
ellipses, and 20 + 4 (half the ellipse size) = 24 as the
gap:

symbol
 name dots
 type ellipse
 points 8 8 end
 gap 24
end


Håvard

Oliver Christen wrote:

thank you Thomas

so if I have a dot of, for example, 8px and I want a space pf 20px 
between the dots, I need a gap of 20/8 =  2.5


but as far as I can see, Mapserver doesnt like none-integer value for gap.

what should I do? :(

2010/1/12 thomas bonfort thomas.bonf...@gmail.com 
mailto:thomas.bonf...@gmail.com


gap in pixels = symbol-gap * style-size


On Tue, Jan 12, 2010 at 16:52, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

GAP 20 is really giving unwanted result:
 
http://dev.camptocamp.com/~ochriste/tilecache9.png

http://dev.camptocamp.com/%7Eochriste/tilecache9.png
 
though using only one style instead of two seems to solve the

oval problem (but why ???)
 
style

 symbol dots
 size 8
 color 204 102 0
 outlinecolor  102 51 0
end
 
I dont understand how GAP is supposed working:
 
with GAP 2, I had ~10px between dots,

with GAP 3, I had ~18px between dots,
with GAP 4, I had ~26px between dots
 
whats the logic ?


- Original Message -
*From:* thomas bonfort mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen mailto:oliver.chris...@camptocamp.com
*Cc:* mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
*Sent:* Tuesday, January 12, 2010 4:36 PM
*Subject:* Re: [mapserver-users] symbol circle (ellipse)
rendered not round but oval

symbol
 name dots
 type ellipse
 points 1 1 end
 gap 20
end

...

style
 symbol dots
 size 8
 color r g b
 outlinecolor  r g b
end




On Tue, Jan 12, 2010 at 16:31, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

Hi Thomas :)
 
thanks for the answer, but sadely it didnt solve my problem:
 
here are a few tests I did:
 
using GAP 20 gave me really weird result:

http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png
http://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png
 
using PATTERN 1 22 END gave me better result, but the

dot are still slightly oval:
http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png
http://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png
 
I wondered if the visual effect may have come from the

fact im pilling up two circle one over the other, but
even when trying to display only the outer or inner
circles, the circle are still slightly off:
http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png
http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png
(both at once
http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png)
 
any other idea? ^_^


- Original Message -
*From:* thomas bonfort
mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen
mailto:oliver.chris...@camptocamp.com
*Cc:* mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
*Sent:* Tuesday, January 12, 2010 3:18 PM
*Subject:* Re: [mapserver-users] symbol circle
(ellipse) rendered not round but oval

hi Oliver :)

try with GAP 20 instead of STYLE 1 20 END (which is
deprecated btw, use PATTERN now)

cheers,
thomas

On Tue, Jan 12, 2010 at 15:04, Oliver Christen

Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-13 Thread Oliver Christen


Thank you Håvard
I see you have changed points 1 1 end by points 8 8 end.
Tell me if im wrong, but these values are only used to render the 
proportions of the elipse but not it's size, is that correct?
so if I understand correctly, using larger values for the elipse 
width/height refine the rendering of the vectorised dot geometry ?


regards
Oliver


Dear Oliver Christen,

Using Mapserver 5.6.0 and AGG rendering, you can achieve what
you want by using a combination of ellipse size and gap size
in the symbol definition.
There is something strange in the calculations (a gap of
about half the ellipse size seems to produce touching symbols),
so in your case, you could try to use 8 as the diameter of the
ellipses, and 20 + 4 (half the ellipse size) = 24 as the
gap:

symbol
 name dots
 type ellipse
 points 8 8 end
 gap 24
end


Håvard

Oliver Christen wrote:

thank you Thomas

so if I have a dot of, for example, 8px and I want a space pf 20px 
between the dots, I need a gap of 20/8 =  2.5


but as far as I can see, Mapserver doesnt like none-integer value for 
gap.


what should I do? :(

2010/1/12 thomas bonfort thomas.bonf...@gmail.com 
mailto:thomas.bonf...@gmail.com


gap in pixels = symbol-gap * style-size


On Tue, Jan 12, 2010 at 16:52, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

GAP 20 is really giving unwanted result:
 http://dev.camptocamp.com/~ochriste/tilecache9.png
http://dev.camptocamp.com/%7Eochriste/tilecache9.png
 though using only one style instead of two seems to solve the
oval problem (but why ???)
 style
 symbol dots
 size 8
 color 204 102 0
 outlinecolor  102 51 0
end
 I dont understand how GAP is supposed working:
 with GAP 2, I had ~10px between dots,
with GAP 3, I had ~18px between dots,
with GAP 4, I had ~26px between dots
 whats the logic ?

- Original Message -
*From:* thomas bonfort mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen mailto:oliver.chris...@camptocamp.com
*Cc:* mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
*Sent:* Tuesday, January 12, 2010 4:36 PM
*Subject:* Re: [mapserver-users] symbol circle (ellipse)
rendered not round but oval

symbol
 name dots
 type ellipse
 points 1 1 end
 gap 20
end

...

style
 symbol dots
 size 8
 color r g b
 outlinecolor  r g b
end




On Tue, Jan 12, 2010 at 16:31, Oliver Christen
oliver.chris...@camptocamp.com
mailto:oliver.chris...@camptocamp.com wrote:

Hi Thomas :)
 thanks for the answer, but sadely it didnt solve my 
problem:

 here are a few tests I did:
 using GAP 20 gave me really weird result:
http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png

http://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png
 using PATTERN 1 22 END gave me better result, but the
dot are still slightly oval:

http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png

http://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png
 I wondered if the visual effect may have come from the
fact im pilling up two circle one over the other, but
even when trying to display only the outer or inner
circles, the circle are still slightly off:

http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png

http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png
(both at once

http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png

http://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png)
 any other idea? ^_^

- Original Message -
*From:* thomas bonfort
mailto:thomas.bonf...@gmail.com
*To:* Oliver Christen
mailto:oliver.chris...@camptocamp.com
*Cc:* mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org
*Sent:* Tuesday, January 12, 2010 3:18 PM
*Subject:* Re: [mapserver-users] symbol circle
(ellipse) rendered not round but oval

hi Oliver :)

try with GAP 20 instead of STYLE 1 20 END (which is
deprecated btw, use PATTERN now)

cheers,
thomas

[mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-12 Thread Oliver Christen

hello

I have a weird problem with symbology.
Im rendering a line with dots, but the dots are not round but slightly oval, 
see image http://dev.camptocamp.com/~ochriste/tilecache.png


Any idea what could be the cause ?

Here is my symbol definition:

SYMBOL
 NAME linie-gepunkt10
 TYPE ELLIPSE
 POINTS
   1 1
 END
 STYLE
   1 20
 END
 FILLED TRUE
END

and my layer's class definition:

 CLASS
   EXPRESSION 3
   MAXSCALEDENOM 21
   STYLE
 SYMBOL linie-gepunkt10
 SIZE 10
 COLOR 102 51 0
   END
   STYLE
 SYMBOL linie-gepunkt10
 SIZE 8
 COLOR 204 102 0
   END
 END

and the map outputformat:

OUTPUTFORMAT
 NAME png
 DRIVER AGG/PNG
 MIMETYPE image/png
 IMAGEMODE RGBA
 EXTENSION png
 FORMATOPTION INTERLACE=OFF
END 


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


Re: [mapserver-users] symbol circle (ellipse) rendered not round but oval

2010-01-12 Thread thomas bonfort
hi Oliver :)

try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use
PATTERN now)

cheers,
thomas

On Tue, Jan 12, 2010 at 15:04, Oliver Christen 
oliver.chris...@camptocamp.com wrote:

 hello

 I have a weird problem with symbology.
 Im rendering a line with dots, but the dots are not round but slightly
 oval, see image 
 http://dev.camptocamp.com/~ochriste/tilecache.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache.png

 Any idea what could be the cause ?

 Here is my symbol definition:

 SYMBOL
  NAME linie-gepunkt10
  TYPE ELLIPSE
  POINTS
   1 1
  END
  STYLE
   1 20
  END
  FILLED TRUE
 END

 and my layer's class definition:

  CLASS
   EXPRESSION 3
   MAXSCALEDENOM 21
   STYLE
 SYMBOL linie-gepunkt10
 SIZE 10
 COLOR 102 51 0
   END
   STYLE
 SYMBOL linie-gepunkt10
 SIZE 8
 COLOR 204 102 0
   END
  END

 and the map outputformat:

 OUTPUTFORMAT
  NAME png
  DRIVER AGG/PNG
  MIMETYPE image/png
  IMAGEMODE RGBA
  EXTENSION png
  FORMATOPTION INTERLACE=OFF
 END
 ___
 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 circle (ellipse) rendered not round but oval

2010-01-12 Thread Oliver Christen
Hi Thomas :)

thanks for the answer, but sadely it didnt solve my problem:

here are a few tests I did:

using GAP 20 gave me really weird result:
http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png

using PATTERN 1 22 END gave me better result, but the dot are still slightly 
oval:
http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png

I wondered if the visual effect may have come from the fact im pilling up two 
circle one over the other, but even when trying to display only the outer or 
inner circles, the circle are still slightly off:
http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png
http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png
(both at once http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png)

any other idea? ^_^
  - Original Message - 
  From: thomas bonfort 
  To: Oliver Christen 
  Cc: mapserver-users@lists.osgeo.org 
  Sent: Tuesday, January 12, 2010 3:18 PM
  Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but 
oval


  hi Oliver :)

  try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use 
PATTERN now)

  cheers,
  thomas


  On Tue, Jan 12, 2010 at 15:04, Oliver Christen 
oliver.chris...@camptocamp.com wrote:

hello

I have a weird problem with symbology.
Im rendering a line with dots, but the dots are not round but slightly 
oval, see image http://dev.camptocamp.com/~ochriste/tilecache.png

Any idea what could be the cause ?

Here is my symbol definition:

SYMBOL
 NAME linie-gepunkt10
 TYPE ELLIPSE
 POINTS
  1 1
 END
 STYLE
  1 20
 END
 FILLED TRUE
END

and my layer's class definition:

 CLASS
  EXPRESSION 3
  MAXSCALEDENOM 21
  STYLE
SYMBOL linie-gepunkt10
SIZE 10
COLOR 102 51 0
  END
  STYLE
SYMBOL linie-gepunkt10
SIZE 8
COLOR 204 102 0
  END
 END

and the map outputformat:

OUTPUTFORMAT
 NAME png
 DRIVER AGG/PNG
 MIMETYPE image/png
 IMAGEMODE RGBA
 EXTENSION png
 FORMATOPTION INTERLACE=OFF
END 
___
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 circle (ellipse) rendered not round but oval

2010-01-12 Thread thomas bonfort
symbol
 name dots
 type ellipse
 points 1 1 end
 gap 20
end

...

style
 symbol dots
 size 8
 color r g b
 outlinecolor  r g b
end




On Tue, Jan 12, 2010 at 16:31, Oliver Christen 
oliver.chris...@camptocamp.com wrote:

  Hi Thomas :)

 thanks for the answer, but sadely it didnt solve my problem:

 here are a few tests I did:

 using GAP 20 gave me really weird result:
 http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png

 using PATTERN 1 22 END gave me better result, but the dot are still
 slightly oval:
 http://dev.camptocamp.com/~ochriste/tilecache7_pattern.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png

 I wondered if the visual effect may have come from the fact im pilling up
 two circle one over the other, but even when trying to display only the
 outer or inner circles, the circle are still slightly off:
 http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png
 http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png
 (both at once
 http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png
 )

 any other idea? ^_^

 - Original Message -
 *From:* thomas bonfort thomas.bonf...@gmail.com
 *To:* Oliver Christen oliver.chris...@camptocamp.com
 *Cc:* mapserver-users@lists.osgeo.org
 *Sent:* Tuesday, January 12, 2010 3:18 PM
 *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not
 round but oval

 hi Oliver :)

 try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use
 PATTERN now)

 cheers,
 thomas

 On Tue, Jan 12, 2010 at 15:04, Oliver Christen 
 oliver.chris...@camptocamp.com wrote:

 hello

 I have a weird problem with symbology.
 Im rendering a line with dots, but the dots are not round but slightly
 oval, see image 
 http://dev.camptocamp.com/~ochriste/tilecache.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache.png

 Any idea what could be the cause ?

 Here is my symbol definition:

 SYMBOL
  NAME linie-gepunkt10
  TYPE ELLIPSE
  POINTS
   1 1
  END
  STYLE
   1 20
  END
  FILLED TRUE
 END

 and my layer's class definition:

  CLASS
   EXPRESSION 3
   MAXSCALEDENOM 21
   STYLE
 SYMBOL linie-gepunkt10
 SIZE 10
 COLOR 102 51 0
   END
   STYLE
 SYMBOL linie-gepunkt10
 SIZE 8
 COLOR 204 102 0
   END
  END

 and the map outputformat:

 OUTPUTFORMAT
  NAME png
  DRIVER AGG/PNG
  MIMETYPE image/png
  IMAGEMODE RGBA
  EXTENSION png
  FORMATOPTION INTERLACE=OFF
 END
 ___
 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 circle (ellipse) rendered not round but oval

2010-01-12 Thread Oliver Christen
GAP 20 is really giving unwanted result:

http://dev.camptocamp.com/~ochriste/tilecache9.png

though using only one style instead of two seems to solve the oval problem (but 
why ???)

style
 symbol dots
 size 8
 color 204 102 0
 outlinecolor  102 51 0
end

I dont understand how GAP is supposed working:

with GAP 2, I had ~10px between dots,
with GAP 3, I had ~18px between dots,
with GAP 4, I had ~26px between dots

whats the logic ?
  - Original Message - 
  From: thomas bonfort 
  To: Oliver Christen 
  Cc: mapserver-users@lists.osgeo.org 
  Sent: Tuesday, January 12, 2010 4:36 PM
  Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round but 
oval


  symbol
   name dots
   type ellipse
   points 1 1 end
   gap 20
  end

  ...

  style
   symbol dots
   size 8
   color r g b
   outlinecolor  r g b
  end





  On Tue, Jan 12, 2010 at 16:31, Oliver Christen 
oliver.chris...@camptocamp.com wrote:

Hi Thomas :)

thanks for the answer, but sadely it didnt solve my problem:

here are a few tests I did:

using GAP 20 gave me really weird result:
http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.png

using PATTERN 1 22 END gave me better result, but the dot are still 
slightly oval:
http://dev.camptocamp.com/~ochriste/tilecache7_pattern.png

I wondered if the visual effect may have come from the fact im pilling up 
two circle one over the other, but even when trying to display only the outer 
or inner circles, the circle are still slightly off:
http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.png
http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.png
(both at once http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.png)

any other idea? ^_^
  - Original Message - 
  From: thomas bonfort 
  To: Oliver Christen 
  Cc: mapserver-users@lists.osgeo.org 
  Sent: Tuesday, January 12, 2010 3:18 PM
  Subject: Re: [mapserver-users] symbol circle (ellipse) rendered not round 
but oval


  hi Oliver :)

  try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use 
PATTERN now)

  cheers,
  thomas


  On Tue, Jan 12, 2010 at 15:04, Oliver Christen 
oliver.chris...@camptocamp.com wrote:

hello

I have a weird problem with symbology.
Im rendering a line with dots, but the dots are not round but slightly 
oval, see image http://dev.camptocamp.com/~ochriste/tilecache.png

Any idea what could be the cause ?

Here is my symbol definition:

SYMBOL
 NAME linie-gepunkt10
 TYPE ELLIPSE
 POINTS
  1 1
 END
 STYLE
  1 20
 END
 FILLED TRUE
END

and my layer's class definition:

 CLASS
  EXPRESSION 3
  MAXSCALEDENOM 21
  STYLE
SYMBOL linie-gepunkt10
SIZE 10
COLOR 102 51 0
  END
  STYLE
SYMBOL linie-gepunkt10
SIZE 8
COLOR 204 102 0
  END
 END

and the map outputformat:

OUTPUTFORMAT
 NAME png
 DRIVER AGG/PNG
 MIMETYPE image/png
 IMAGEMODE RGBA
 EXTENSION png
 FORMATOPTION INTERLACE=OFF
END 
___
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 circle (ellipse) rendered not round but oval

2010-01-12 Thread thomas bonfort
gap in pixels = symbol-gap * style-size

On Tue, Jan 12, 2010 at 16:52, Oliver Christen 
oliver.chris...@camptocamp.com wrote:

  GAP 20 is really giving unwanted result:

 http://dev.camptocamp.com/~ochriste/tilecache9.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache9.png

 though using only one style instead of two seems to solve the oval problem
 (but why ???)

 style
  symbol dots
  size 8
  color 204 102 0
  outlinecolor  102 51 0
 end

 I dont understand how GAP is supposed working:

 with GAP 2, I had ~10px between dots,
  with GAP 3, I had ~18px between dots,
  with GAP 4, I had ~26px between dots

 whats the logic ?

 - Original Message -
 *From:* thomas bonfort thomas.bonf...@gmail.com
 *To:* Oliver Christen oliver.chris...@camptocamp.com
 *Cc:* mapserver-users@lists.osgeo.org
 *Sent:* Tuesday, January 12, 2010 4:36 PM
 *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not
 round but oval

 symbol
  name dots
  type ellipse
  points 1 1 end
  gap 20
 end

 ...

 style
  symbol dots
  size 8
  color r g b
  outlinecolor  r g b
 end




 On Tue, Jan 12, 2010 at 16:31, Oliver Christen 
 oliver.chris...@camptocamp.com wrote:

  Hi Thomas :)

 thanks for the answer, but sadely it didnt solve my problem:

 here are a few tests I did:

 using GAP 20 gave me really weird result:
 http://dev.camptocamp.com/~ochriste/tilecache6_gap_20.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache6_gap_20.png

 using PATTERN 1 22 END gave me better result, but the dot are still
 slightly oval:
 http://dev.camptocamp.com/~ochriste/tilecache7_pattern.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache7_pattern.png

 I wondered if the visual effect may have come from the fact im pilling up
 two circle one over the other, but even when trying to display only the
 outer or inner circles, the circle are still slightly off:
 http://dev.camptocamp.com/~ochriste/tilecache4_outercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache4_outercircle.png
 http://dev.camptocamp.com/~ochriste/tilecache5_innercircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache5_innercircle.png
 (both at once
 http://dev.camptocamp.com/~ochriste/tilecache3_bothcircle.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache3_bothcircle.png
 )

 any other idea? ^_^

 - Original Message -
 *From:* thomas bonfort thomas.bonf...@gmail.com
 *To:* Oliver Christen oliver.chris...@camptocamp.com
 *Cc:* mapserver-users@lists.osgeo.org
 *Sent:* Tuesday, January 12, 2010 3:18 PM
 *Subject:* Re: [mapserver-users] symbol circle (ellipse) rendered not
 round but oval

 hi Oliver :)

 try with GAP 20 instead of STYLE 1 20 END (which is deprecated btw, use
 PATTERN now)

 cheers,
 thomas

 On Tue, Jan 12, 2010 at 15:04, Oliver Christen 
 oliver.chris...@camptocamp.com wrote:

 hello

 I have a weird problem with symbology.
 Im rendering a line with dots, but the dots are not round but slightly
 oval, see image 
 http://dev.camptocamp.com/~ochriste/tilecache.pnghttp://dev.camptocamp.com/%7Eochriste/tilecache.png

 Any idea what could be the cause ?

 Here is my symbol definition:

 SYMBOL
  NAME linie-gepunkt10
  TYPE ELLIPSE
  POINTS
   1 1
  END
  STYLE
   1 20
  END
  FILLED TRUE
 END

 and my layer's class definition:

  CLASS
   EXPRESSION 3
   MAXSCALEDENOM 21
   STYLE
 SYMBOL linie-gepunkt10
 SIZE 10
 COLOR 102 51 0
   END
   STYLE
 SYMBOL linie-gepunkt10
 SIZE 8
 COLOR 204 102 0
   END
  END

 and the map outputformat:

 OUTPUTFORMAT
  NAME png
  DRIVER AGG/PNG
  MIMETYPE image/png
  IMAGEMODE RGBA
  EXTENSION png
  FORMATOPTION INTERLACE=OFF
 END
 ___
 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