Re: [mapserver-users] labeling streets

2009-06-09 Thread Thomas Bonfort
Raivo,

are you sure that your streets only contain one feature?
If you are using 5.4+, you can check by appending a geomtransform
style to your street layer, to draw a symbol at the beginning of each
feature:

style
  geomtransform start
  symbol circle
  color 255 0 0
  size 15
end

regards,

thomas

www.camptocamp.com
+33 4 79 26 57 97



On Tue, Jun 9, 2009 at 07:50, Raivo Allasnaper...@gmail.com wrote:
 Thank You,

 so it should be, but somehow in my case it does not work properly.
 When i have no declaration of MINFEATURESIZE, then the picture looks fine:
 http://picasaweb.google.com/snaperski/Ort#5345194219497220482
 But when I add MINFEATURESIZE AUTO, most labels just disappear, even
 if they have enough space to fit in:
 http://picasaweb.google.com/snaperski/Ort#5345195269825705586

 And those labeled straight streets contain only one feature (line
 feature) each - so the label should fit in decently.

 Label is declared this way:
                LABEL
                        TYPE truetype
                        ANTIALIAS true
                        FONT arial
                        COLOR 240 240 240
                        OUTLINECOLOR 52 52 52
                        SIZE 9
                        force false
                        MINDISTANCE 250
                        MINFEATURESIZE auto
                        ANGLE follow
                        POSITION cc
                        BUFFER 1
                END

 Changing FORCE or POSITION parameters didnt help either


 Raivo

 On Mon, Jun 8, 2009 at 12:55 PM, Christy Niemancnie...@dmsolutions.ca wrote:
 Hi,

 You could set MINFEATURESIZE to AUTO and then only the labels that fit on
 the lines should be drawn.

 Regards,
 Christy

 Raivo Alla wrote:

 Hello!

 I'm stuck in simple-looking problem, but the solution is just hiding
 somewhere.

 The question is: how I can label only those line features, whos label
 does not run over the line like that:

 http://picasaweb.google.com/snaperski/Ort#5344831130138846050

 As street lengths are very different, I cant solve the problem by
 setting suitable MINFEATURESIZE for

 respective MINSCALE,MAXSCALE range.


 All the best,
 Raivo Alla
 ___
 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


Re: [mapserver-users] cartographic lines

2009-06-09 Thread David Nugent
On Tue, 09 Jun 2009 14:06:09 +1000, Rahkonen Jukka  
jukka.rahko...@mmmtike.fi wrote:



Hi,

Thomas Bonfort seems to do it this way:
 CLASS
EXPRESSION primary
STYLE
WIDTH 14
OUTLINECOLOR #B7AC9A
OUTLINEWIDTH 1
MINWIDTH 1.5
MAXWIDTH 12
END
STYLE
WIDTH 14
COLOR #7A
MINWIDTH 1.5
MAXWIDTH 12
END
   END


Thanks, I'll give it a shot and post the results. IIRC though when I tried  
a variation of this a couple of weeks back I kept getting the mapserver  
message: Cartoline drawing is deprecated with AGG, so I figured that  
wasn't the correct way to do it. :-)


And I had not realised that *COLOR directives accepted a hexadecimal value  
as an alternative to R G B values!  That will make things easier.


As to the other implied question in my OP - since I've discovered that  
rendering with transparency on fixes a number of artifacts - so does  
anyone know of a solution for setting background when rendering RGBA tiles  
since IMAGECOLOR no longer seems to work?


Note that since I am rendering a flat tile which includes a background  
I'm using RGB rather than RGBA and I suspect this may affect rendering of
OPACITY in layers. However I can't seem to find the magic that will  
render a background colour other than black (and yes, I'm using  
IMAGECOLOR in the MAP section, but it seems to have no effect when  
rendering with

transparency).



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


Re: [mapserver-users] labeling streets

2009-06-09 Thread Raivo Alla
Hi,

I added red box to visualize line vertices
(style
  geomtransform start
  symbol box
  color 255 0 0
  size 6
 end) and the result is displayed here:

http://picasaweb.google.com/snaperski/Ort#5345215158256974066


Best wishes,
Raivo

On Tue, Jun 9, 2009 at 9:18 AM, Thomas
Bonfortthomas.bonf...@camptocamp.com wrote:
 Raivo,

 are you sure that your streets only contain one feature?
 If you are using 5.4+, you can check by appending a geomtransform
 style to your street layer, to draw a symbol at the beginning of each
 feature:

 style
  geomtransform start
  symbol circle
  color 255 0 0
  size 15
 end

 regards,

 thomas

 www.camptocamp.com
 +33 4 79 26 57 97



 On Tue, Jun 9, 2009 at 07:50, Raivo Allasnaper...@gmail.com wrote:
 Thank You,

 so it should be, but somehow in my case it does not work properly.
 When i have no declaration of MINFEATURESIZE, then the picture looks fine:
 http://picasaweb.google.com/snaperski/Ort#5345194219497220482
 But when I add MINFEATURESIZE AUTO, most labels just disappear, even
 if they have enough space to fit in:
 http://picasaweb.google.com/snaperski/Ort#5345195269825705586

 And those labeled straight streets contain only one feature (line
 feature) each - so the label should fit in decently.

 Label is declared this way:
                LABEL
                        TYPE truetype
                        ANTIALIAS true
                        FONT arial
                        COLOR 240 240 240
                        OUTLINECOLOR 52 52 52
                        SIZE 9
                        force false
                        MINDISTANCE 250
                        MINFEATURESIZE auto
                        ANGLE follow
                        POSITION cc
                        BUFFER 1
                END

 Changing FORCE or POSITION parameters didnt help either


 Raivo

 On Mon, Jun 8, 2009 at 12:55 PM, Christy Niemancnie...@dmsolutions.ca 
 wrote:
 Hi,

 You could set MINFEATURESIZE to AUTO and then only the labels that fit on
 the lines should be drawn.

 Regards,
 Christy

 Raivo Alla wrote:

 Hello!

 I'm stuck in simple-looking problem, but the solution is just hiding
 somewhere.

 The question is: how I can label only those line features, whos label
 does not run over the line like that:

 http://picasaweb.google.com/snaperski/Ort#5344831130138846050

 As street lengths are very different, I cant solve the problem by
 setting suitable MINFEATURESIZE for

 respective MINSCALE,MAXSCALE range.


 All the best,
 Raivo Alla
 ___
 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


Re: [mapserver-users] msIO_getStdoutBufferBytes(), gdBuffer in mapscript perl

2009-06-09 Thread Felipe Alcacibar
i found this thread in my mail, and i have solutioned this, i made a
patch.here is the url:

http://counter.tryer.cl/mapserver/mapserver_mapscript_perl_gdbuffer_bytes.patch

On Fri, Apr 10, 2009 at 9:41 AM, Daniel
Morissettedmorisse...@mapgears.com wrote:
 Just a guess since I'm not very familiar with the Perl SWIG stuff, but maybe
 the patch from this ticket could help?
  http://trac.osgeo.org/mapserver/ticket/2962
 If I'm not mistaken it solves a similar problem with the imageObj.getBytes
 return value, and I presume the problem you encountered needs a similar
 solution.

 Daniel


 Felipe Alcacibar wrote:

 Hi, i'm trying to implement a wms server with a perl api of mapscript
 but i cannot understand how msIO_getStdoutBufferBytes() work
 in the docs msIO_getStdoutBufferBytes() function return the binary
 content of the current output but i cannot see that, when i dump with
 Data::Dump::Streamer i got:

 - $_p_gdBuffer1 = bless( \do { my $v = 152646680 }, '_p_gdBuffer' );


 I go to read the sources of the mapscript perl implementation and i
 found a struct with properties data and size, but i cannot get that i
 got that when i try to dump data.

 - Can't locate object method data via package _p_gdBuffer at
 /home/counter/mscacherd/maptest.pl line 36.


 How it works in perl, how i can get the data from the gdBuffer perl class?


 Thanks in advice.
 Greetings


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


 --
 Daniel Morissette
 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 mapscript and getResult()

2009-06-09 Thread Yewondwossen Assefa

Worth Lutz wrote:

Did this get added into PHP mapscript in the 5.4.1 release?  If so, is it a
layer object method?

It missed the release. It is now committed in the the 5.4.x branch and 
the ticket is updated to reflect that.


best regards,


-Original Message-
From: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] 
Sent: Monday, April 06, 2009 1:54 PM

To: Worth Lutz
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] PHP mapscript and getResult()


Worth Lutz wrote:

There is a SWIG mapscript reference to a layerObj method getResults()
returning a resultCacheObj.  The resultCacheObj has an attribute bounds
which is the extent of the results.

Is this available in PHP mapscript.  It seems to be missing.



It is missing in php mapscript. Added a ticket on it and It should be 
available for the 5.4.1 release:

http://trac.osgeo.org/mapserver/ticket/2967

Best Regards



Worth



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







--

Assefa Yewondwossen
Software Analyst

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925


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


Re: [mapserver-users] msIO_getStdoutBufferBytes(), gdBuffer in mapscript perl

2009-06-09 Thread Daniel Morissette

Felipe Alcacibar wrote:

i found this thread in my mail, and i have solutioned this, i made a
patch.here is the url:

http://counter.tryer.cl/mapserver/mapserver_mapscript_perl_gdbuffer_bytes.patch



Thanks for the patch. I have created a ticket for this and will let the 
Perl MapScript maintainer review and apply it:


http://trac.osgeo.org/mapserver/ticket/3048

Daniel
--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Re: Upgrading 5.2 - 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG?

2009-06-09 Thread Paul james
Just one update in my tests...
Using FASTCGI It worked FINE (mapserver 5.4)...

I added a bug ticket : http://trac.osgeo.org/mapserver/ticket/3049

Paul

On Tue, Jun 2, 2009 at 10:12 AM, Paul james paulj...@gmail.com wrote:

 Probably is a mapserver CGI bug...

 Paul

 On Sat, May 30, 2009 at 11:56 PM, Brian Fischer 
 bfisc...@houstoneng.comwrote:

  Paul,

 Just to let you know you are not alone.  I am experiencing the same
 problem with MS4W 3.0 beta 1 and 2.  I’ve reported it as a bug to the MS4W
 project.  Here’s a link to the bug report
 http://bugzilla.maptools.org/show_bug.cgi?id=2043.   I haven’t heard
 anything back on a solution yet.  I’m not sure if this is a MapServer bug or
 a bug with the way the MS4W package was compiled.  It runs fine of Apache
 for me.



 Brian Fischer

 Houston Engineering, Inc.



 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Paul james
 *Sent:* Friday, May 29, 2009 1:08 PM
 *To:* Steve Lime
 *Cc:* mapserver-users@lists.osgeo.org; Daniel Morissette
 *Subject:* Re: [mapserver-users] Re: Upgrading 5.2 - 5.4 generating CGI
 error on IIS(5.1 and 6.0) ... Possible BUG?




 http://localhost/cgi-bin/mapserv.exe?map=C%3A%2Finetpub%2Fwwwroot%2FOpenlayer%2FFiles%2FMapserver%2FMap.mapmode=mapmap_imagetype=pngmapext=-180+0+-90+90imgext=-180+0+-90+90map_size=256+256imgx=128imgy=128imgxy=256+256

 Paul

 On Fri, May 29, 2009 at 3:01 PM, Steve Lime steve.l...@dnr.state.mn.us
 wrote:

 What's the full URL submitted against the CGI?

  On 5/29/2009 at 12:59 PM, in message
 33fad6880905291059i5602a89q84d7673ddcfff...@mail.gmail.com, Paul
 james

 paulj...@gmail.com wrote:
  1 -  I tried with 1500,1400,1310,development version(1500) and ms4w
 beta...
  2 -  Ím using normal CGI
  3 - My tests are only with Postgis... Íll generate a shapefile to
 test
  later ...
 
  Paul
 
  On Fri, May 29, 2009 at 2:27 PM, Tamas Szekeres szeker...@gmail.com
 wrote:
 
  Hi Paul,
 
  Did you experience the same with the release-1310 and release-1400
  versions? Did you experience the same with the development version?
  Are you using fastCGI or normal cgi?
  Is this just a PostGIS related problem or you get the same with a
 simple
  shapefile?
 
  Sorry for the bunch of the questions...
 
  Best regards,
 
  Tamas
 
 
 
  2009/5/29 Paul james paulj...@gmail.com
 
  Yes Daniel...  I deleted all previous files and put only 5.4
 files... My
  mapscript application is working fine on 5.4...
  But the CGI dont...
  Tested on Windows XP (IIS 5.1) and Windows 2003(IIS 6.0)...
 
  Paul
 
 
  On Fri, May 29, 2009 at 12:56 PM, Daniel Morissette 
  dmorisse...@mapgears.com wrote:
 
  Paul james wrote:
 
  Hi Daniel...
  I got the binaries from Tamas build :
  http://vbkto.dyndns.org:1280/sdk/Default.aspx
  And from MS4W 3.0 beta2...
  Same result with both...
 
  That error you got is my fault... I took off the :
  IMAGE ..\Map.png
  from REFERENCE definition when copy the code to email...
 
  My application works fine with 5.2 binary in iis 5.1 and 6.0
  Just replacing with 5.4 binary I got that 502 error...
 
 
  Hopefully you always make sure you update all DLLs as well when
 you
  replace with 5.4 binary? Even if the DLLs have the same names,
 if they
  come from different build environments or versions they may not
 be
  compatible and could cause the kind of crashes that you are
 experiencing.
 
 
  Daniel
  --
  Daniel Morissette
  http://www.mapgears.com/
 
 
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 
 





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


Re: [mapserver-users] Re: Upgrading 5.2 - 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG?

2009-06-09 Thread Tamas Szekeres
Paul,

I've just tried with the latest 5.4 version and worked fine though I'm using
OGR/mapinfo.tab data source.

I suspect you may run into a problem related to the possible differences in
the security settings. Some files may not be accessible by the current user
executing mapserv.exe which may be IUSR_[computername] for the normal CGI
and NT AUTHORITY/NETWORK SERVICE for the fast cgi option by default.

Best regards,

Tamas


2009/6/9 Paul james paulj...@gmail.com

 Just one update in my tests...
 Using FASTCGI It worked FINE (mapserver 5.4)...

 I added a bug ticket : http://trac.osgeo.org/mapserver/ticket/3049

 Paul


 On Tue, Jun 2, 2009 at 10:12 AM, Paul james paulj...@gmail.com wrote:

 Probably is a mapserver CGI bug...

 Paul

 On Sat, May 30, 2009 at 11:56 PM, Brian Fischer 
 bfisc...@houstoneng.comwrote:

  Paul,

 Just to let you know you are not alone.  I am experiencing the same
 problem with MS4W 3.0 beta 1 and 2.  I’ve reported it as a bug to the MS4W
 project.  Here’s a link to the bug report
 http://bugzilla.maptools.org/show_bug.cgi?id=2043.   I haven’t heard
 anything back on a solution yet.  I’m not sure if this is a MapServer bug or
 a bug with the way the MS4W package was compiled.  It runs fine of Apache
 for me.



 Brian Fischer

 Houston Engineering, Inc.



 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Paul james
 *Sent:* Friday, May 29, 2009 1:08 PM
 *To:* Steve Lime
 *Cc:* mapserver-users@lists.osgeo.org; Daniel Morissette
 *Subject:* Re: [mapserver-users] Re: Upgrading 5.2 - 5.4 generating CGI
 error on IIS(5.1 and 6.0) ... Possible BUG?




 http://localhost/cgi-bin/mapserv.exe?map=C%3A%2Finetpub%2Fwwwroot%2FOpenlayer%2FFiles%2FMapserver%2FMap.mapmode=mapmap_imagetype=pngmapext=-180+0+-90+90imgext=-180+0+-90+90map_size=256+256imgx=128imgy=128imgxy=256+256

 Paul

 On Fri, May 29, 2009 at 3:01 PM, Steve Lime steve.l...@dnr.state.mn.us
 wrote:

 What's the full URL submitted against the CGI?

  On 5/29/2009 at 12:59 PM, in message
 33fad6880905291059i5602a89q84d7673ddcfff...@mail.gmail.com, Paul
 james

 paulj...@gmail.com wrote:
  1 -  I tried with 1500,1400,1310,development version(1500) and ms4w
 beta...
  2 -  Ím using normal CGI
  3 - My tests are only with Postgis... Íll generate a shapefile to
 test
  later ...
 
  Paul
 
  On Fri, May 29, 2009 at 2:27 PM, Tamas Szekeres szeker...@gmail.com
 wrote:
 
  Hi Paul,
 
  Did you experience the same with the release-1310 and release-1400
  versions? Did you experience the same with the development version?
  Are you using fastCGI or normal cgi?
  Is this just a PostGIS related problem or you get the same with a
 simple
  shapefile?
 
  Sorry for the bunch of the questions...
 
  Best regards,
 
  Tamas
 
 
 
  2009/5/29 Paul james paulj...@gmail.com
 
  Yes Daniel...  I deleted all previous files and put only 5.4
 files... My
  mapscript application is working fine on 5.4...
  But the CGI dont...
  Tested on Windows XP (IIS 5.1) and Windows 2003(IIS 6.0)...
 
  Paul
 
 
  On Fri, May 29, 2009 at 12:56 PM, Daniel Morissette 
  dmorisse...@mapgears.com wrote:
 
  Paul james wrote:
 
  Hi Daniel...
  I got the binaries from Tamas build :
  http://vbkto.dyndns.org:1280/sdk/Default.aspx
  And from MS4W 3.0 beta2...
  Same result with both...
 
  That error you got is my fault... I took off the :
  IMAGE ..\Map.png
  from REFERENCE definition when copy the code to email...
 
  My application works fine with 5.2 binary in iis 5.1 and 6.0
  Just replacing with 5.4 binary I got that 502 error...
 
 
  Hopefully you always make sure you update all DLLs as well when
 you
  replace with 5.4 binary? Even if the DLLs have the same names,
 if they
  come from different build environments or versions they may not
 be
  compatible and could cause the kind of crashes that you are
 experiencing.
 
 
  Daniel
  --
  Daniel Morissette
  http://www.mapgears.com/
 
 
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 
 






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


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