Re: [mapserver-users] Map File for Open Street Map symbology

2009-02-08 Thread Lars Lingner
thomas bonfort schrieb:
 [...]
 I don't think you can if you need to do a string comparison in your
 sql where clause, as there's no way in mapserver to escape the ' or 
 characters


   
Ok, thanks for clarification.

 DATA way from (select way,osm_id ,name from planet_osm_polygon where
 'natural'='water'  ) as foo using unique osm_id using srid=900913

 was not working... but I just tried it again, just to make sure I don't
 say anything wrong... and its working. *doh*
 

 it's a valid sql clause, but useless for mapserver as it won't return
 any data (as the string 'water' and 'natural' are never equal)

   
Right, I only checked if mapserver returns an error... I didn't review
the actual rendered image.


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


Re: [mapserver-users] Regarding Apache

2009-02-08 Thread Armin Burger
My experience is the following: I'm using PHP MapScript since ~ 2 years 
as Apache DSO without noticing problems. Important is to use the Apache 
'prefork MPM' version of Apache 2.+ (or Apache 1.3 which seems always 
'prefork'). Using the threaded MPM ('worker') of Apache seems not to 
work correctly with Mapscript. And the PHP docs recommend the prefork 
MPM anyway. Apache on Windows seems always to be threaded, therefore PHP 
should be used only as CGI when Mapscript is required.


Regards, Armin

On 06/02/2009 09:58, Gregor at HostGIS wrote:

Amiya Patra wrote:
*PHP/MapScript and PHP has a habit of causing Apache to effectively 
freeze*

But how to solve that one...


If you suspect that that's the problem with your server, do what 
everyone else does: compile and run PHP as a CGI program, not as a DSO.


It is unfortunate. By using PHP as a CGI, you fix that problem, but lose 
a lot of the benefits of PHP as DSO, such as database connection pooling 
and being able to use Zend Optimizer. But if you're using PHP/MapScript 
that's just how it is.




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


RE: [mapserver-users] Problems with MapScript and setProjection

2009-02-08 Thread Kralidis,Tom [Ontario]

I've added a small example at:

http://trac.osgeo.org/mapserver/wiki/PHPMapscriptAddLayerQueryReproject

Hope this helps.

..Tom



-Original Message-
From: mapserver-users-boun...@lists.osgeo.org on behalf of Tim Wood
Sent: Sat 07-Feb-09 22:55
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Problems with MapScript and setProjection
 
I've been round and round with setProjection in MapScript and 
setProjection today. I either get the infamous blank image  or the image 
returns in the same proportions as the original lat/long data. Proj 
seems to be (at least partially) working because if I forget something 
like +ellps=[blah blah], it throws an error.

I'd like to look at a simple php mapscript example of creating a map, 
adding a layer, adding something to that layer (e.g. my a simple query 
against a lat/long shapefile) and then project that another way (tmerc, 
lcc, whatever). But, I have yet to find one. Can someone share a working 
example or know of one on the web?

Tim Wood

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


[mapserver-users] newbie mapserver question

2009-02-08 Thread new2ms4w

Hello Everyone,

I've very recently started working on a project to display some moving
objects on a road network in the map.
I would like to (dynamically) display moving objects on a road map.
I got the mapserver up and running on my machine and have read some
documentation from the mapserver website.
What I intend to do is add some points to a layer on top of the roads layer
and keep changing their position so that they appear to be constant moving
on the roads.
Has anyone done this kind of stuff before. I would like to know if I'm going
in the right direction...

Also, can someone point to the Perl-Mapscript binaries for mapserver. I'm
currently using MS4W software which doesn't include them. 


Thank you for your time.

~PN
-- 
View this message in context: 
http://n2.nabble.com/newbie-mapserver-question-tp2295097p2295097.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] illegible labels - recommendations?

2009-02-08 Thread Jennifer Shanks
Hello,

I'm using ANGLE FOLLOW to draw labels that follow trails and rivers.  In some 
cases, the labels are drawn around a tight curve and are illegible.  Does 
anyone have any recommendations for improving legibility?  Is there a way to 
increase spacing between letters?  Are there certain fonts that other users 
have found to work well?  Any thoughts would be much appreciated.

Thanks,
Jennifer

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