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 >


gap in pixels = symbol->gap * style->size


On Tue, Jan 12, 2010 at 16:52, Oliver Christen
mailto: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
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


 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
   

Re: [mapserver-users] OWSRequest raw post data

2010-01-13 Thread Frank Broniewski

It seems that setting owsrequest.postdata is sufficiant

--
From: "Frank Broniewski" 
Sent: Tuesday, January 12, 2010 4:26 PM
To: 
Subject: Re: [mapserver-users] OWSRequest raw post data


Sorry, I forgot to mention that. I'm using Python ...

--
From: "Nolte, Tim" 
Sent: Tuesday, January 12, 2010 3:56 PM
To: "Frank Broniewski" ; 


Subject: RE: [mapserver-users] OWSRequest raw post data


What language are you using, is this PHP?

- Tim


Timothy J Nolte - tno...@ilpcs.com
Network Planning Engineer

4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office:  616-656-5163
PCS: 616-706-2438
Support: 616-929-0289
Fax: 616-554-6484

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Frank 
Broniewski

Sent: Tuesday, January 12, 2010 4:33 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] OWSRequest raw post data

Hello list,

I am wondering how I could load / pass a raw post body to the owsrequest
object. GET is simply done with setParameter. I see that there is a
postrequest attribute for the owsrequest object, but there is no
documentation for it. Can I set it manually? I am using a WSGI Framework 
and

the documented req.loadParams() function does not work with it.
Or is there a parameter 'post' or 'xml' which I can set with the raw post
data with setParameter()?

Many Thanks

Frank



Frank Broniewski

Metrico s.àr.l. ( http://www.metrico.lu )
36, rue des Romains
L-5433 Niederdonven
Luxembourg

Fon: +352 26 74 94 28
Fax: +352 26 74 94 99

___
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 


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


[mapserver-users] how can I associate MySql and Gdal

2010-01-13 Thread Murat BEYHAN
Hi friends,

I have installed mandriva 2010 and then
installed Mysql mapserver and gdal which are coming with Mandriva one CD.
But I could not read data from MySql database by using ogr because of the
supported formats.
How could I associate MySql with gdal in order to draw map using data stored
in MySql
Please help me
the formats supported by gdal as follows
murat

ogrinfo --formats
Supported Formats:
  -> "GRASS" (readonly)
  -> "ESRI Shapefile" (read/write)
  -> "MapInfo File" (read/write)
  -> "UK .NTF" (readonly)
  -> "SDTS" (readonly)
  -> "TIGER" (read/write)
  -> "S57" (read/write)
  -> "DGN" (read/write)
  -> "VRT" (readonly)
  -> "REC" (readonly)
  -> "Memory" (read/write)
  -> "BNA" (read/write)
  -> "CSV" (read/write)
  -> "GML" (read/write)
  -> "GPX" (read/write)
  -> "KML" (read/write)
  -> "GeoJSON" (read/write)
  -> "GMT" (read/write)
  -> "SQLite" (read/write)
  -> "ODBC" (read/write)
  -> "PGeo" (readonly)
  -> "OGDI" (readonly)
  -> "PostgreSQL" (read/write)
  -> "XPlane" (readonly)
  -> "AVCBin" (readonly)
  -> "AVCE00" (readonly)
  -> "Geoconcept" (read/write)


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: [mapserver-users] php error

2010-01-13 Thread Alan Boudreault
You can have both on your system, but if you want to use php mapscript 
with php 5.2.9, you need to specify the proper header path.


ie. on ubuntu:

--with-php=/usr/include/php5/

This way, the mapscript module will work with your php 5.2.9.

Hope this help.
Alan

bascom49 wrote:


Alan Boudreault wrote:
  
PHP mapscript hasn't been compiled with php 5.2.9. You'll have to 
rebuild the module with the proper php lib. You probably have a old php 
4.x on your system too.


Alan

bascom49 wrote:


I am installing mapserver 5.4.2. My php version is 5.2.9.

I am getting an error message with the following code :

php
if (PHP_OS == "WINNT" || PHP_OS == "WIN32") {
$dllversion = 'php_mapscript.dll';
} else {
$dllversion = 'php_mapscript.so';
}
if (!extension_loaded('MapScript')) {dl($dllversion);}
phpinfo();
?>

A link to the file producing this error is at :
http://174.120.238.19/info.php

You can view my php configuration at this link:
http://174.120.238.19/info.php


Does anyone have experience with the following php issue ?


[13-Jan-2010 14:00:04] PHP Warning:  PHP Startup: Unable to load dynamic
library
'/usr/local/lib/php/extensions/no-debug-non-zts-20060613/âphp_mapscript.soâphp_mapscript.soâ
[13-Jan-2010 14:00:04]
PHP
Warning:  PHP Startup: UõSHìè: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=0, thread-safety=0
These options need to match


Thanks,
Charles
  
  

--
Alan Boudreault
Mapgears
http://www.mapgears.com/ 


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





I had installing mapscript with php by following this link:
http://mapserver.org/installation/php.html 
and must have misunderstood that I could compile against
php5. I do have a php4 binary on my server. Is this as simple as 
compiling mapserver with the php4 binary to produce php_mapscript.so

and keeping php5 on my system or do I have to reinstall php4 as well ?



  



--
Alan Boudreault
Mapgears
http://www.mapgears.com/ 


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


Re: [mapserver-users] php error

2010-01-13 Thread bascom49



Alan Boudreault wrote:
> 
> PHP mapscript hasn't been compiled with php 5.2.9. You'll have to 
> rebuild the module with the proper php lib. You probably have a old php 
> 4.x on your system too.
> 
> Alan
> 
> bascom49 wrote:
>> I am installing mapserver 5.4.2. My php version is 5.2.9.
>>
>> I am getting an error message with the following code :
>>
>> php
>> if (PHP_OS == "WINNT" || PHP_OS == "WIN32") {
>> $dllversion = 'php_mapscript.dll';
>> } else {
>> $dllversion = 'php_mapscript.so';
>> }
>> if (!extension_loaded('MapScript')) {dl($dllversion);}
>> phpinfo();
>> ?>
>>
>> A link to the file producing this error is at :
>> http://174.120.238.19/info.php
>>
>> You can view my php configuration at this link:
>> http://174.120.238.19/info.php
>>
>>
>> Does anyone have experience with the following php issue ?
>>
>>
>> [13-Jan-2010 14:00:04] PHP Warning:  PHP Startup: Unable to load dynamic
>> library
>> '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/âphp_mapscript.soâphp_mapscript.soâ
>> [13-Jan-2010 14:00:04]
>> PHP
>> Warning:  PHP Startup: UõSHìè: Unable to initialize module
>> Module compiled with module API=20020429, debug=0, thread-safety=0
>> PHPcompiled with module API=20060613, debug=0, thread-safety=0
>> These options need to match
>>
>>
>> Thanks,
>> Charles
>>   
> 
> 
> -- 
> Alan Boudreault
> Mapgears
> http://www.mapgears.com/ 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 

I had installing mapscript with php by following this link:
http://mapserver.org/installation/php.html 
and must have misunderstood that I could compile against
php5. I do have a php4 binary on my server. Is this as simple as 
compiling mapserver with the php4 binary to produce php_mapscript.so
and keeping php5 on my system or do I have to reinstall php4 as well ?



-- 
View this message in context: 
http://n2.nabble.com/php-error-tp4380950p4385574.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


Re: [mapserver-users] php error

2010-01-13 Thread Alan Boudreault
PHP mapscript hasn't been compiled with php 5.2.9. You'll have to 
rebuild the module with the proper php lib. You probably have a old php 
4.x on your system too.


Alan

bascom49 wrote:

I am installing mapserver 5.4.2. My php version is 5.2.9.

I am getting an error message with the following code :

php
if (PHP_OS == "WINNT" || PHP_OS == "WIN32") {
$dllversion = 'php_mapscript.dll';
} else {
$dllversion = 'php_mapscript.so';
}
if (!extension_loaded('MapScript')) {dl($dllversion);}
phpinfo();
?>

A link to the file producing this error is at :
http://174.120.238.19/info.php

You can view my php configuration at this link:
http://174.120.238.19/info.php


Does anyone have experience with the following php issue ?


[13-Jan-2010 14:00:04] PHP Warning:  PHP Startup: Unable to load dynamic
library
'/usr/local/lib/php/extensions/no-debug-non-zts-20060613/âphp_mapscript.soâphp_mapscript.soâ
[13-Jan-2010 14:00:04] PHP
Warning:  PHP Startup: UõSHìè: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=0, thread-safety=0
These options need to match


Thanks,
Charles
  



--
Alan Boudreault
Mapgears
http://www.mapgears.com/ 


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


[mapserver-users] php error

2010-01-13 Thread bascom49

I am installing mapserver 5.4.2. My php version is 5.2.9.

I am getting an error message with the following code :

php
if (PHP_OS == "WINNT" || PHP_OS == "WIN32") {
$dllversion = 'php_mapscript.dll';
} else {
$dllversion = 'php_mapscript.so';
}
if (!extension_loaded('MapScript')) {dl($dllversion);}
phpinfo();
?>

A link to the file producing this error is at :
http://174.120.238.19/info.php

You can view my php configuration at this link:
http://174.120.238.19/info.php


Does anyone have experience with the following php issue ?


[13-Jan-2010 14:00:04] PHP Warning:  PHP Startup: Unable to load dynamic
library
'/usr/local/lib/php/extensions/no-debug-non-zts-20060613/âphp_mapscript.soâphp_mapscript.soâ
[13-Jan-2010 14:00:04] PHP
Warning:  PHP Startup: UõSHìè: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=0, thread-safety=0
These options need to match


Thanks,
Charles
-- 
View this message in context: 
http://n2.nabble.com/php-error-tp4380950p4380950.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


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 >


gap in pixels = symbol->gap * style->size


On Tue, Jan 12, 2010 at 16:52, Oliver Christen
mailto: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
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

 
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
mailto:oliver.chris...@camptocamp.com>> wrote:


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.map&mode=map&LAYERS=MtblandRoutenNational&mapext=556960+220720+557600+221360&mapsize=256+256"
 > cgi.png

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

/wms?FORMAT=image%2Fpng&LAYERS=MtblandRoutenNational&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A21781&BBOX=556960,220720,557600,221360&WIDTH=256&HEIGHT=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) 
mailto: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.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 
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

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-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 

> 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 "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
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.map&mode=map&LAYERS=MtblandRoutenNational&mapext=556960+220720+557600+221360&mapsize=256+256"
> cgi.png

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

/wms?FORMAT=image%2Fpng&LAYERS=MtblandRoutenNational&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A21781&BBOX=556960,220720,557600,221360&WIDTH=256&HEIGHT=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) 

>  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.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