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

2010-01-14 Thread Oliver Christen
mmm, in my opinion it would be clearer if the GAP didnt depend from 
anything, set the GAP to 10 would make you a spacing of 10px between each 
symbols border, whatever the values of the symbol POINTS.

but that may be a change too important ?

Oliver


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 >


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)

re

RE: [mapserver-users] Change mapfile from html form

2010-01-14 Thread Lime, Steve D (DNR)
Lot's of changes in the syntax when altering a mapfile by URL since the 4.x 
series. Try:

  map.layer[BOUNDARY]=POINTS+434844.80 4522838.00 434840.17 4522890.93 
434826.42 4522942.25 434803.96 4522990.40 434844.80 4522838.00+END

I think that should work.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lee [hate...@yahoo.com]
Sent: Thursday, January 14, 2010 5:35 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Change mapfile from html form

Greetings,

In a mapfile I have the following layer in my mapfile:

LAYER
  NAME 'BOUNDARY'
  TYPE POLYGON
  FEATURE
  STATUS OFF
  CLASS
NAME 'Search Boundary'
OUTLINECOLOR 0 230 255
  END  # CLASS
END# Layer

In Mapserver 4 I was able to create a polygon from a form using the following 
html tags:




In Mapserver 5 it is not working.  Any suggestions would be greatly appreciated.

Thanks

Lee



___
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] 5.6.1 Postgis problem

2010-01-14 Thread Stephen Woodbridge

Ah, that was much more helpful and I have an answer ...

There was just another thread about query in mapscript that Steve Lime 
responded to. In 5.6 (read the migration guide) there have been big 
changes to the the query code and things work differently now. I don't 
have all the details on the top of my head, but look in the archives for 
today.


-Steve W

Sandeep Kumar Chauhan wrote:

Hi Steve,

Thanks for reply.  What I was trying to say was ...
I was using mapscript (csharp) 5.4.1 earlier for my customize application.
For performing Identify operation I was using following code...

...
...
if (layer.queryByPoint(Map, point, (int)mapscript.MS_SINGLE, tolerance) ==
...
{
resultCacheObj result = layer.getResults();
if (result.numresults > 0)
{

int shapeInd = result.getResult(0).shapeindex;
...
...
...
It was working perfectly fine. Few days back I compiled 5.6.0 on my system.
It was not working in expected way in case of postGIS dataset. Value
returned every time for ShapeIndex was either 0 or 1, even though I had more
than 1000 features in my dataset. I tried to use 5.6.1 as well but was not
able to get correct results.

I swap mappostgis.c of 5.6.1 with that of 5.4.1, and recompiled everything.
I got expected results.

Please advice if my compilation is wrong or it is a bug in 5.6.x? I am using
postgresql-8.3.7 for compilation.


Thanks,
   -Sandeep
___
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] 5.6.1 Postgis problem

2010-01-14 Thread Sandeep Kumar Chauhan

Hi Steve,

Thanks for reply.  What I was trying to say was ...
I was using mapscript (csharp) 5.4.1 earlier for my customize application.
For performing Identify operation I was using following code...

...
...
if (layer.queryByPoint(Map, point, (int)mapscript.MS_SINGLE, tolerance) ==
...
{
resultCacheObj result = layer.getResults();
if (result.numresults > 0)
{

int shapeInd = result.getResult(0).shapeindex;
...
...
...
It was working perfectly fine. Few days back I compiled 5.6.0 on my system.
It was not working in expected way in case of postGIS dataset. Value
returned every time for ShapeIndex was either 0 or 1, even though I had more
than 1000 features in my dataset. I tried to use 5.6.1 as well but was not
able to get correct results.

I swap mappostgis.c of 5.6.1 with that of 5.4.1, and recompiled everything.
I got expected results.

Please advice if my compilation is wrong or it is a bug in 5.6.x? I am using
postgresql-8.3.7 for compilation.


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



-- 
View this message in context: 
http://n2.nabble.com/5-6-1-Postgis-problem-tp4392177p4396971.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] new query file format

2010-01-14 Thread Lime, Steve D (DNR)
Hi Stepan: The query performance improvements for the database drivers come 
from referring to features within a result set as we process query results. 
Previously, we referred to features globally and that is terribly inefficient 
in some cases, and that's why the old query files stored global feature 
indexes. Under the new querying scheme this simply won't work without the 
underlying query result set. The new scheme stores information necessary to 
redo a query and nothing more.

How you might recreate the old approach with MapScript 5.6.1 depends on your 
data store. With shapefiles, the index values stored in a result cache are 
suitable for use msQueryByIndex() as is. With a database source you need to 
work with a primary key and are probably best off working through 
msQueryByAttribute() instead. Perhaps Paul Ramsey can comment on whether or not 
the overall row number is somehow retrievable from a query result so that 
msQueryByIndex() could indeed be used, I don't think it is. In either case 
you'd need to serialize/unserialize your result list or hash yourself, 
msSaveQuery()/msLoadQuery() doesn't do it for you.

Does this help?

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
stepan.ka...@centrum.cz
Sent: Thursday, January 14, 2010 12:23 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] new query file format


Dear Steve and all,
  in version 5.6 the query file format has changed to remember last query 
rather than selected records list in previous versions. I used list approach to 
work with selections (add to existing selection XOR etc.), so msQueryByIndex 
was used frequently in mapscript. It seems that new approach doesn't work 
properly with combined and added queries. Is there any reason why it is changed 
now? How the results are stored when I add attribute query to queryByIndex etc. 
?

Thank you

Stepan Kafka
Help Service Remote Sensing
e-mail: ka...@email.cz
___
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] Change mapfile from html form

2010-01-14 Thread Lee
Greetings,
 
In a mapfile I have the following layer in my mapfile:
 
LAYER
  NAME 'BOUNDARY'
  TYPE POLYGON
  FEATURE
  STATUS OFF
  CLASS
    NAME 'Search Boundary'
    OUTLINECOLOR 0 230 255
  END  # CLASS
END    # Layer
 
In Mapserver 4 I was able to create a polygon from a form using the following 
html tags:
 


 
In Mapserver 5 it is not working.  Any suggestions would be greatly appreciated.
 
Thanks
 
Lee



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


[mapserver-users] Fwd: Strange behavior for a truetype symbol render..

2010-01-14 Thread Martin Ouellet
2 new elements.

->The problem occur only in FireFox (OK in IE dans Chrome)
->The problem is related to the wingding true font (no problem with arial)

Did someone experiment similar behavior?

MartinO

-- Forwarded message --
From: Martin Ouellet 
Date: 2009/12/4
Subject: Strange behavior for a truetype symbol render..
To: mapserver-users 


Hi there,

I have two symbol definition in my mapfile:

SYMBOL
NAME'baisse'
TYPETRUETYPE
FONT"windg3"
#CHARACTER   "È"
CHARACTER   "È"
END

SYMBOL
NAME'hausse'
TYPETRUETYPE
FONT"windg3"
#CHARACTER   "Ç"
CHARACTER   "Ç"
END

While moving the map around (and without making any changes in the mapfile
or in js code), sometime Mapserver is drawing the arrow up symbol (hausse),
and the other time, the arrow down symbol (baisse). See attachment for this
strange display. In both case, the symbol who's not displayed correctly is
replaced with a little box in the center of the circle.

Here the 2 WMS call behind it (identical but BBOX is different)
http://
/cgi-wms/adnInternet?LAYERS=ADN_STATION&TRANSPARENT=true&FORMAT=image%2Fpng&ISBASELAYER=false&VISIBILITY=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-8357644.0084038,5691908.0497863,-7868447.0274662,6038014.9137997&WIDTH=800&HEIGHT=566
http://
/cgi-wms/adnInternet?LAYERS=ADN_STATION&TRANSPARENT=true&FORMAT=image%2Fpng&ISBASELAYER=false&VISIBILITY=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-8451202.9310082,5636261.8932047,-7962005.9500706,5982368.7572181&WIDTH=800&HEIGHT=566

Any tought why this happen?

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


[mapserver-users] [Fwd: WMSGetFeatureInfo with Mapserver]

2010-01-14 Thread Stephen Woodbridge

Stella,

I forwarded this to the lists because there are more people there that 
might be able to help. If you are not signup to these lists I recommend 
that you sign up.


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

Users mailing list
us...@openlayers.org
http://openlayers.org/mailman/listinfo/users

-Steve

 Original Message 
Subject:WMSGetFeatureInfo with Mapserver
Date:   Thu, 14 Jan 2010 15:57:34 -0300
From:   stela anders 
To: wood...@swoodbridge.com



Hello!

I´m trying to implement tha sample :
http://dev.openlayers.org/releases/OpenLayers-2.8/examples/getfeatureinfo-control.html 


with mapserver...
But I kind of lost...
Could you send-me any sample how to do that?
And is possible to use a BOX instead a POINT to query?

Thanks for the help

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


Re: [mapserver-users] MapServer with JBOSS

2010-01-14 Thread Dave Potts

Flavio Souza wrote:
Yes its possible but there are problem depending on your platform type.

Jboss expects everything to be packaged up as a jar file, when these are 
expanded on a Linux/Unix system, set to mode 644, ie rw for owner and 
readable for everybody else.  Since the map server program is a binary, 
after jboss has deployed your mapserver application, you must manual 
turn the execute bit on.  The problem is finding out where jboss has 
place your application.


You also have to enabled the cgi setting for the tomcat process, its 
burried away in one of the many xml files.

Hello again

Anyone knows if is it possible , to use MapServer with JBOSS ?

Thanks in  advance

Flávio Souza


___
Flávio Souza
(021)  7629-4249
___
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] 5.6.1 - GetFeatureInfo - template processing

2010-01-14 Thread Ted Spradley


Ted Spradley wrote:
> 
> Hi everyone,
> 
> In version 5.4.1 the following GetFeatureInfo request url produced a table
> described by templates for the
> layer 'bldg_query' described below.  With ver 5.6.1, Mapserver outputs
> only the template from the
> mapfile's WEB object (with no query results or image).
> 
> Do you have any idea of changes to make?  To the request format?  To the
> mapfile? 
> 

Well Ted,  re-read the migration guide carefully and think about the
implications of the following:

>From the migration guide for 5.6.1:


> -
> Change of mime-type for the imagemap outputformat
> -
> 
> RFC 36 added support for templated outptformats, but this new feature
> was not available for WMS GetFeatureInfo ouptut (see ticket #3024).
> In MapServer 5.6 this has been resolved by implementing lookup of output
> formats for query templates by mime-type. However this caused a conflict
> for the text/html mime-type between the actual text/html query
> templates and the preconfigured imagemap outputformat which also used the
> text/html mime-type.
> 
> In order to resolve this conflict, the mime-type of the imagemap
> outputformat
> has been changed to "text/html; driver=imagemap". This is unlikely to
> cause
> much side-effects to existing applications, but the change is documented
> here
> just in case.
> 

Sorry guys!  I left out part of the map file that I didn't think was
relevant but definitely is.  I had an 
OUTPUTFORMAT that I was using for a related, but different part of the
application.

  OUTPUTFORMAT
NAME 'selected_parcel'
DRIVER 'TEMPLATE'
MIMETYPE 'text/html'
FORMATOPTION 'FILE=selected_parcel.tmpl'
  END

Changing 
  MIMETYPE 'text/html' to  MIMETYPE 'text/html; driver=imagemap'
resolved the issue.  Now our GetFeatureInfo request queries return in the
order given in the 
WMS LAYERS parameter!

Have a good day all!



-
Thank you,
Ted S

MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


Linux/Fedora7
-- 
View this message in context: 
http://n2.nabble.com/5-6-1-GetFeatureInfo-template-processing-tp4393728p4394911.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] new query file format

2010-01-14 Thread stepan.kafka

Dear Steve and all,
  in version 5.6 the query file format has changed to remember last query 
rather than selected records list in previous versions. I used list approach to 
work with selections (add to existing selection XOR etc.), so msQueryByIndex 
was used frequently in mapscript. It seems that new approach doesn't work 
properly with combined and added queries. Is there any reason why it is changed 
now? How the results are stored when I add attribute query to queryByIndex etc. 
?

Thank you

Stepan Kafka
Help Service Remote Sensing
e-mail: ka...@email.cz
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] MapServer with JBOSS

2010-01-14 Thread Flavio Souza
Hello again

Anyone knows if is it possible , to use MapServer with JBOSS ?

Thanks in  advance

Flávio Souza


___
Flávio Souza
(021)  7629-4249
___
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-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 >


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
 c

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 >


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_

Re: [mapserver-users] make error - version 5.6.0-rc1 - /usr/bin/ld: cannot find -lxslt

2010-01-14 Thread Ted Spradley



Daniel Morissette wrote:
> 
> The linker looks for .so files, the *.so.x and *.so.x.y are used only at 
> runtime, so you need libpam.so, which is usually provided by the -devel 
> version of the RPM package.
> 
> Daniel
> 

Thanks much Daniel.  The package MS needed turns out to be named 'pam-devel'
in my fc7 distribution.

Cheers!

-
Thank you,
Ted S

MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


Linux/Fedora7
-- 
View this message in context: 
http://n2.nabble.com/make-error-version-5-6-0-rc1-usr-bin-ld-cannot-find-lxslt-tp4148052p4393886.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] Newbee, hello world problem! It used to work on my old system!

2010-01-14 Thread Ted Spradley

Hi,
Insert the 'magic string'  at the beginning of
all of your html templates and 
// Mapserver Template at the beginning of any javascript templates you have.


Gazz1982 wrote:
> 
> this error:msLoadMap(): Unknown identifier. First token must be MAP, this
> doesn't look like a mapfile. seems to have fixed itself by adding the MAP
> tag but now it has a problem with the html file!
> 
> Content-type: text/html isValidTemplate(): Web application error. Missing
> magic string, /var/www/htdocs/hello.html doesn't look like a MapServer
> template. 
> 


-
Thank you,
Ted S

MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


Linux/Fedora7
-- 
View this message in context: 
http://n2.nabble.com/Newbee-hello-world-problem-It-used-to-work-on-my-old-system-tp4348856p4393840.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] 5.6.1 - GetFeatureInfo - template processing

2010-01-14 Thread Ted Spradley

Hi everyone,

In version 5.4.1 the following GetFeatureInfo request url produced a table
described by templates for the
layer 'bldg_query' described below.  With ver 5.6.1, Mapserver outputs only
the template from the
mapfile's WEB object (with no query results or image).

Do you have any idea of changes to make?  To the request format?  To the
mapfile? 

Thank you all very much,
Ted S.

URL:
http://url.com/cgi-bin/mapserv?map=/path/to/cad.map
&SERVICE=WMS
&VERSION=1.1.1
&REQUEST=GetFeatureInfo
&SRS=EPSG%3A102740
&WIDTH=800&HEIGHT=800
&BBOX=3102785.400463,13832395.006499,3104115.230452,13833724.836488&LAYERS=building_comp_query
&STYLES=&FORMAT=image%2Fpng
&QUERY_LAYERS=bldg_query
&X=398&Y=390
&INFO_FORMAT=text/html

Relevant mapfile snippets:

MAP
  NAME  "CAD"
  SIZE800 800
  EXTENT  2928849.796040 13748390.427723 3269286.273267
13992542.754455
  UNITS FEET
  IMAGECOLOR255 255 255

  PROJECTION
"init=epsg:102740"
  END

  IMAGETYPE PNG24
  SHAPEPATH '/path/to/data/'
  STATUSON
  SYMBOLSET   "examples.sym"
  FONTSET '/usr/share/fonts/fonts.list'
  CONFIG  "MS_ERRORFILE" "/path/to/cad.log"
  WEB
TEMPLATE"mapserver.html"
IMAGEPATH  
"/var/www/vhosts/snoogems.com/subdomains/maps/httpdocs/temp/"
IMAGEURL"/temp/"
METADATA
"wms_title" "CAD Search"
"wfs_title" "CAD Search"
"wms_srs" "EPSG:102740 EPSG:4326"
"wfs_srs" "EPSG:102740 EPSG:4326"
"wms_onlineresource"
"http://url.com/cgi-bin/mapserv?map=/path/to/cads";
"wfs_onlineresource"
"http://url.com/cgi-bin/mapserv?map=/path/to/cads";
"wms_feature_info_mime_type" "text/html"
END
  END

  QUERYMAP
STATUS ON
STYLE HILITE
COLOR 255 255 0
  END

  LAYER
NAME 'bldg_query'
TYPE  QUERY
STATUS  ON
DEBUG   3
TEMPLATE  bldgGetFeatureInfo.html
HEADERbldgGetFeatureInfo_header.html
FOOTERbldgGetFeatureInfo_footer.html
PROCESSING "CLOSE_CONNECTION=DEFER" 

DUMP TRUE
MAXSCALEDENOM 1
CONNECTIONTYPE POSTGIS
CONNECTION "dbname=cad1 user=tedkspradley password=05gusher
host=localhost port=5432"
DATA  "the_geom from (select b.the_geom AS the_geom, b.gid AS gid,
b.hcad_num AS hcad_num FROM parcels b) as foo using unique gid using
srid=-1"

JOIN
  NAME "building_components"
  CONNECTION "dbname=cad1 user=usr password=pw host=localhost port=5432"
  CONNECTIONTYPE ogr
  TABLE "building_components"
  FROM "hcad_num"
  TO "hcad_acct"
  TYPE ONE-TO-MANY
  TEMPLATE bldgGetFeatureInfo_join.html
END

PROJECTION
  "init=epsg:102740"
END
METADATA
  "wms_title" "Building Components Query Layer"
  "wfs_title" "Building Components Query Layer"
  "wms_srs" "epsg:102740 epsg:4326"
  "gml_include_items" "all"
  "wms_include_items" "all"
  "gml_featureid" "ogc_fid"
  "qstring_validation_pattern" '.'
END
  END # End layer 'bldg_query'

-
Thank you,
Ted S

MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS
INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


Linux/Fedora7
-- 
View this message in context: 
http://n2.nabble.com/5-6-1-GetFeatureInfo-template-processing-tp4393728p4393728.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-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 >


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

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 >


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

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

2010-01-14 Thread Luigi Castro Cardeles
Hi,

you can use http://www.gdal.org/ogr/drv_vrt.html

[]'s
Luigi Castro Cardeles


2010/1/14 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
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] 5.6.1 Postgis problem

2010-01-14 Thread Stephen Woodbridge

Sandeep Kumar Chauhan wrote:

i have problem in 5.6.1 for shape index and layeobj getFeature in case of
postgis but no problem in 5.4.1
i think problem in mappostgis.c file of 5.6.1


Hi Sandeep,

Thanks for the report.

It would be very helpful if you could provide more detail on this?
What are the symptoms?
How can we reproduce this problem?
Why do you think it is a problem in mappostgis.c?
where do you think the problem is in this file?
etc.

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


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

2010-01-14 Thread karlos036

Murat,

  You'll need to get the MapServer source and compile it yourself in order
to add MySql support.

  Look at the 5.4.2 documentation
(http://mapserver.org/installation/unix.html) for instructions.

  In order to compile MapServer, you'll need to have the MySql db, client
and dev packages installed.  You can use whatever package manager you have
to add any missing component.

  I've did some testing with MySql.  I converted all of the world country
shapefiles (.shp) to sql import scripts and then imported them into MySql (I
have instructions on how to do this archived somewhere).  Displaying simple
geometries worked OK, but complex shapes such as Argentina or Chile (lots of
small vectors define the country outline) were very slow to load even when
indexed carefully.  I found that PostgesSQL was much faster and better
supported if you are planning on storing your shapefiles within a database
in order to query and then display them.   If you are just storing data
points, then MySql works fine.

Cheers,

Karlos

Murat Beyhan wrote:
> 
> 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
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/how-can-I-associate-MySql-and-Gdal-tp4385959p4392920.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-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 >


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



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 >


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 b

[mapserver-users] 5.6.1 Postgis problem

2010-01-14 Thread Sandeep Kumar Chauhan

i have problem in 5.6.1 for shape index and layeobj getFeature in case of
postgis but no problem in 5.4.1
i think problem in mappostgis.c file of 5.6.1
-- 
View this message in context: 
http://n2.nabble.com/5-6-1-Postgis-problem-tp4392177p4392177.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-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 >


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



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

2010-01-14 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] 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 >


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
   

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 >


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


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 

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



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