Re: [mapserver-users] distance between line and a given point usingmapscript

2009-07-28 Thread Mark Brooks
I got the looping through each result. However, all distances are calculated to -1, which I know can't be right. In debugging, I'm also echo'ing the shape index for each result, but it's always the same. Am I constructing the layer correctly? // create array of points from database query

[mapserver-users] MapInfo Vertical Mapper/PlanetEV Data and MapServer

2009-07-28 Thread Nolte, Tim
Does anyone have any experience with preparing MapInfo Vertical Mapper/PlanetEV data for use with MapServer? I'm looking for some tips and ways to streamline my process, as well as improve the performance of my final MapServer maps. Timothy J Nolte - tno...@ilpcs.com Network Planning

[mapserver-users] Python

2009-07-28 Thread Mohammed Rashad
Why python mapscript is not used as php mapscript?? What are problems using python mapscript?? If i am using python mapscript can i develop an webgis interface which can perform faster than interfaces built on php-mapscripts such as cartoweb,ka-map etc... Can i get more speed with python

[mapserver-users] Legend: Calling one of two layers shows both legend entries

2009-07-28 Thread CoFIS Web
Dear all, I am using a mapfile with two layers. When using Geomoose 2 as client and turning the first of these layers on from the legend, the respective signature will appear in the legend at its respective location (as expected), but also the legend location of the second layer. I tried

[mapserver-users] Can google earth skin format be converted by GDAL to be used within MapServer?

2009-07-28 Thread John Mitchell
Hi, Can google earth skin format be converted by GDAL to be used within MapServer? Thanks, John J. Mitchell ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Mapserver Security

2009-07-28 Thread Bill Thoen
I have some questions about securing a MapServer WMS. From the googlits I've gathered it seems that the easy way is to use Basic Authentication if you have Apache. I do have that on my Linux-based server, so I sealed off the directory in which I have my mapfile and web template. And so far so

Re: [mapserver-users] Mapserver Security

2009-07-28 Thread Andy Colson
Bill Thoen wrote: I have some questions about securing a MapServer WMS. From the googlits I've gathered it seems that the easy way is to use Basic Authentication if you have Apache. I do have that on my Linux-based server, so I sealed off the directory in which I have my mapfile and web

Re: [mapserver-users] Python

2009-07-28 Thread Alan Boudreault
Hi Mohammed, See comments below... On July 28, 2009 10:33:58 am Mohammed Rashad wrote: Why python mapscript is not used as php mapscript?? PHP is just a lot more popular/easier than python for dynamic websites. I think this is the only reason. What are problems using python mapscript??

Re: [mapserver-users] Mapserver Security

2009-07-28 Thread Gregor at HostGIS
MS_MAPFILE=/var/www/html/theDir/theFile.map export MS_MAPFILE QUERY_STRING=map=${MS_MAPFILE}zoomdir=0zoomsize=2layer=countieslayer=states... /var/www/cgi-bin/mapserv it accesses the mapfile in /theDir/, and /theDir is supposed to be password protected now by Apache. Correct. But the

Re: [mapserver-users] Mapserver Security

2009-07-28 Thread Steve Lime
Others may have different ideas but it seems to me you'll need to secure the wms binary rather than a directory. (I wouldn't store mapfiles and templates in a web accessible location anyway.) There are probably many ways to do this. One idea might be to have separate WMS binaries, one for

Re: [mapserver-users] Mapserver Security

2009-07-28 Thread Gregor at HostGIS
Latest versions of MapServer allow you to set an env variable called MS_MAPFILE_PATTERN Holy cow! SetEnv MS_MAP_NO_PATH 1 SetEnv WMS1_MAPFILE 'some path' SetEnv WMS2_MAPFILE 'some other path' Wow! Wow! Super cool. I hadn't even heard of these. Thanks for the tip! -- HostGIS, Open

Re: [mapserver-users] Mapserver Security

2009-07-28 Thread Steve Lime
Problem with MS_MAPFILE_PATTERN is that if using it for the path part of a mapfile you could use back references to get elsewhere. I imagine it's possible to craft a regex that wouldn't allow '..' but it's not trivial (examples welcome!). Not allowing path'd mapfiles at all is more restrictive

Re: [mapserver-users] Python

2009-07-28 Thread Alan Boudreault
What about OpenLayers ? On July 28, 2009 02:14:41 pm Mohammed Rashad wrote: On Tue, Jul 28, 2009 at 10:34 PM, Alan Boudreault aboudrea...@mapgears.comwrote: Hi Mohammed, See comments below... On July 28, 2009 10:33:58 am Mohammed Rashad wrote: Why python mapscript is not used as

[mapserver-users] pretty maps

2009-07-28 Thread Andy Colson
Hi All, I am a programmer, and not an artist or a mapper. (I cant even draw good stick figures.) So my question is, how do ya'll make pretty maps? Is there a tool you use? Are there standards/common colors/symbols that should be used? (I assume watter should be blue... and red-green

RE: [mapserver-users] pretty maps

2009-07-28 Thread Fawcett, David
For thematic maps, Color Brewer is a lot of help. http://www.personal.psu.edu/cab38/ColorBrewer/ColorBrewer_intro.html -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andy Colson Sent: Tuesday, July 28, 2009

RE: [mapserver-users] pretty maps

2009-07-28 Thread Bob Basques
I use this color tool as well: http://www.colorsontheweb.com/colorwizard.asp#wizard ( http://www.colorsontheweb.com/colorwizard.asp#wizard ) bobb Fawcett, David david.fawc...@state.mn.us wrote: For thematic maps, Color Brewer is a lot of help.

Re: [mapserver-users] Legend: Calling one of two layers shows both legend entries

2009-07-28 Thread Brent Fraser
Nils, Sounds like a GeoMoose problem; you might try asking their email list. I seem to recall a similar problem with GeoMoose 1.6.1; try using underscores (_) instead of a dash (-) in the layer name. Best Regards, Brent Fraser Dear all, I am using a mapfile with two layers. When using