[mapserver-users] mapObj.getlayersdrawingorder

2009-01-19 Thread Balázs Bámer
Hi All,

I tried to call MapObj.getlayersdrawingorder() from PHP Mapscript
(ms4w 2.3.1 with MapServer 5.2.1, PHP 5.2.6). PHP script terminates.
Same result for MapObj.getLayersDrawingOrder() (the PDF description is
ambiguous about these names).

How it is called? Is it really usable? In the appropriate .dll file
both names appear.

thanx in advance: Balázs Bámer
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Unable to open file for writing in windows(plz immediate response)

2009-01-19 Thread Amiya Patra
But in windows how I will check wheather apache user can write to that
folder. Actually in linux my application is running ok. but in windows
vista, I cant find the daemon apache user as in httpd.conf file daemon is
mentioned as usr and group. But how I will give permission to this user for
writing to that folder. Please help immediate..

On Wed, Jan 7, 2009 at 7:11 PM, Dan Little danlit...@yahoo.com wrote:

 Make sure your apache user can write to that directory, also make sure they
 can cd into that directory.

 -Duck

 --
 *From:* MOHAMMED SADIQUE SHADAB sadiquesha...@gmail.com
 *To:* mapserver-users@lists.osgeo.org
 *Sent:* Wednesday, January 7, 2009 5:13:28 AM
 *Subject:* [mapserver-users] Unable to open file
 /opt/fgs/www/htdocs/tmp/Hello_World12312833136370.png for writing

 hi


 unable to  generate image that is (.png) in FGS after giving  the URL as
 URL:http://localhost:9000/cgi-bin/mapserv

 please help me immediately

 thanks

 regards
 SHADAB


 ___
 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] mapObj.getlayersdrawingorder

2009-01-19 Thread Alan Boudreault
Balázs Bámer,

Note that in PHP, all functions names are case INsensitive  but
variable are case sensitive weird but true ;)
So your call should work. Maybe you could try to execute php -f
youFile.php in console to see if php report errors.

Regards,
Alan
 
Balázs Bámer wrote:
 Hi All,

 I tried to call MapObj.getlayersdrawingorder() from PHP Mapscript
 (ms4w 2.3.1 with MapServer 5.2.1, PHP 5.2.6). PHP script terminates.
 Same result for MapObj.getLayersDrawingOrder() (the PDF description is
 ambiguous about these names).

 How it is called? Is it really usable? In the appropriate .dll file
 both names appear.

 thanx in advance: Balázs Bámer
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
   


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

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


[mapserver-users] plz response immediate(msSaveImageGD(): Unable to open file for writing)

2009-01-19 Thread Amiya Patra
Hi
I got the error but unable to solve.The apache user don have permision to
write to that folder .In windows how I will check wheather apache user can
write to that folder. Actually in linux my application is running ok. but in
windows vista, I cant find the daemon apache user as in httpd.conf file
daemon is mentioned as usr and group. But how I will give permission to
this user for writing to that folder. Please help immediate..

Thanks..and hope positive immidiate response
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] plz response immediate(msSaveImageGD(): Unable to open file for writing)

2009-01-19 Thread Amiya Patra
hi
Thanks 4 reply.but already I have tried that  but no result. Actually I want
to know  how to change the ownership of that folder...I have to change the
ownership to apache user and then needs to give permission..

On Mon, Jan 19, 2009 at 7:27 PM, muzaffar hussain mhd.muzaf...@gmail.comwrote:

 hi

 right click on the folder,then select the property and change the read and
 write option to its folder and to its sub folder.

 regards
 muzaffar

 On Mon, Jan 19, 2009 at 7:12 PM, Amiya Patra amiyapatra...@gmail.comwrote:

 Hi
 I got the error but unable to solve.The apache user don have permision to
 write to that folder .In windows how I will check wheather apache user can
 write to that folder. Actually in linux my application is running ok. but in
 windows vista, I cant find the daemon apache user as in httpd.conf file
 daemon is mentioned as usr and group. But how I will give permission to
 this user for writing to that folder. Please help immediate..

 Thanks..and hope positive immidiate response

 ___
 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] plz response immediate(msSaveImageGD(): Unable to open file for writing)

2009-01-19 Thread Alan Boudreault
Try this:
http://www.mydigitallife.info/2007/05/25/how-to-take-ownership-and-grant-permissions-in-windows-vista/

Alan


Amiya Patra wrote:
 hi
 Thanks 4 reply.but already I have tried that  but no result. Actually
 I want to know  how to change the ownership of that folder...I have to
 change the ownership to apache user and then needs to give
 permission..

 On Mon, Jan 19, 2009 at 7:27 PM, muzaffar hussain
 mhd.muzaf...@gmail.com mailto:mhd.muzaf...@gmail.com wrote:

 hi

 right click on the folder,then select the property and change the
 read and write option to its folder and to its sub folder.

 regards
 muzaffar

 On Mon, Jan 19, 2009 at 7:12 PM, Amiya Patra
 amiyapatra...@gmail.com mailto:amiyapatra...@gmail.com wrote:

 Hi
 I got the error but unable to solve.The apache user don have
 permision to write to that folder .In windows how I will check
 wheather apache user can write to that folder. Actually in
 linux my application is running ok. but in windows vista, I
 cant find the daemon apache user as in httpd.conf file
 daemon is mentioned as usr and group. But how I will give
 permission to this user for writing to that folder. Please
 help immediate..

 Thanks..and hope positive immidiate response

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 mailto: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
   


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

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


Re: [mapserver-users] Mapserver -- ESRI sde -- zlib --core dump

2009-01-19 Thread Russell McOrmond

On Fri, 16 Jan 2009, Russell McOrmond wrote:

 Googling I found this problem being discussed back in 2007 
http://forums.esri.com/Thread.asp?c=2f=1718t=212867  (Started by Howard 
Butler).  I see a bug tracking ID, but I can't find that ID anywhere but in 
that message (IE: there doesn't seem to be a bug with that ID on 
support.esri.com ).


  I asked for a comment from ESRI, and in the thread listed above. They 
said that this issue has not been fixed for 9.3, but planned for 9.4.


  So we'll have to continue our library liking order hack stuff until 
then.  I haven't quite got this working yet, but have been told it does 
work.


--
 Russell McOrmond, Internet Consultant: http://www.flora.ca/
 Please help us tell the Canadian Parliament to protect our property
 rights as owners of Information Technology. Sign the petition!
 http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca

 The government, lobbied by legacy copyright holders and hardware
  manufacturers, can pry control over my camcorder, computer,
  home theatre, or portable media player from my cold dead hands!
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] google tiles

2009-01-19 Thread Chad Clabaugh
Greetings,

I have been trying to generate google tiles from shapefiles using mapserver.
I have been able to successfully generate maps by calling the url
http://0.0.0.0/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage.map
http://0.0.0.0/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage.mapm
ode=map mode=map . but when I attempt to use the url
http://172.18.154.186/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage
.map
http://172.18.154.186/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverag
e.mapmode=tiletile=4+6+4 mode=tiletile=4+6+4  I receive only empty
images, regardless of tile specified.

 

Thanks for any help!

 

MAP

  NAME COVERAGE

  STATUS ON

  SIZE 1400 900

  EXTENT 639000.00 4535300.00 689900.00 4582600.00 

  UNITS METERS

  SHAPEPATH shapefiles

  IMAGECOLOR 220 220 220

 

  IMAGETYPE PNG

 

  PROJECTION

init=epsg:4326

  END 

 

  LAYER

NAME CoverageMap

TYPE POLYGON

STATUS DEFAULT

DATA notforchad

 

CLASS

  STYLE

OUTLINECOLOR 255 128 128

COLOR 225 0 0 

  END

END

 

  END

END

 

Chad Clabaugh

Technical Support, Engineering

Office: 260.760.6398

Mobile: 260.466.8861

 

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


Re: [mapserver-users] Unable to open file for writing in windows(plz immediate response)

2009-01-19 Thread Dan Little
Do you even have a /opt directory (and the related sub-paths in windows)? It 
just seems to be a very Linux construction.

Regardless, are you running Apache as a windows service?





From: Amiya Patra amiyapatra...@gmail.com
To: mapserver-users@lists.osgeo.org
Sent: Monday, January 19, 2009 7:18:37 AM
Subject: Re: [mapserver-users] Unable to open file for writing in windows(plz  
immediate response)

But in windows how I will check wheather apache user can write to that folder. 
Actually in linux my application is running ok. but in windows vista, I cant 
find the daemon apache user as in httpd.conf file daemon is mentioned as usr 
and group. But how I will give permission to this user for writing to that 
folder. Please help immediate..


On Wed, Jan 7, 2009 at 7:11 PM, Dan Little danlit...@yahoo.com wrote:

Make sure your apache user can write to that directory, also make sure they can 
cd into that directory.

-Duck




From: MOHAMMED SADIQUE SHADAB sadiquesha...@gmail.com
To: mapserver-users@lists.osgeo.org
Sent: Wednesday, January 7, 2009 5:13:28 AM
Subject: [mapserver-users] Unable to open file 
/opt/fgs/www/htdocs/tmp/Hello_World12312833136370.png for writing


hi


unable to  generate image that is (.png) in FGS after giving  the URL as
URL:http://localhost:9000/cgi-bin/mapserv

please help me immediately

thanks

regards
SHADAB


___
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] mapObj.getlayersdrawingorder

2009-01-19 Thread Yewondwossen Assefa

Hi there,

 You probably meant you did a call like this 
$oMap-getLayersDrawingOrder(), which is the correct syntax to use in php ?

Quick test using ms4w 2.3.1 environment returns expected result:

?php
dl('php_mapscript.dll');
$oMap =  ms_newMapObj('f:/msapps/gmap-ms40/htdocs/gmap75.map');

print_r ($oMap-getLayersDrawingOrder());

?

Assefa

Balázs Bámer wrote:

Hi All,

I tried to call MapObj.getlayersdrawingorder() from PHP Mapscript
(ms4w 2.3.1 with MapServer 5.2.1, PHP 5.2.6). PHP script terminates.
Same result for MapObj.getLayersDrawingOrder() (the PDF description is
ambiguous about these names).

How it is called? Is it really usable? In the appropriate .dll file
both names appear.

thanx in advance: Balázs Bámer
___
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] Error messages contain private info

2009-01-19 Thread Frank Warmerdam

Jochen Topf wrote:

On Fri, Jan 16, 2009 at 09:02:21AM -0500, Frank Warmerdam wrote:

Jochen Topf wrote:

When using Mapserver with a database and there is an error connecting to
the database the error message sent to the client contains the database
connect string including the password! Thats never a good idea. Can this
be changed somehow?

Jochen,

I would suggest you review:

  http://mapserver.org/development/rfc/ms-rfc-18.html


That seems like a rather complex solution and it falls short in several
aspects:
* Security should be the default, not some add-on
* It only protects passwords not the rest of the information.

Generally services should not leak any internal information to the outside
world. Passwords are only the worst case here. But anything like host
names, file names, database names, URLs auf cascaded WMSes etc. should
not ever get outside!

If there is an error this information should go into a log file. You can
output a time stamp or some kind of id in the error message so that you
can find the corresponding log messages. For servers only used
internally where you don't mind the information leak or for debugging of
a new setup there could be an option to output error messages to the
client. But thats would only be an option which is off by default.

See http://www.owasp.org/index.php/Top_10_2007-A6 for more on this.


Jochen,

Well, luckily we are an open community. Perhaps you would like to prepare
an RFC on a comprehensive solution and once approved begin work on an
implementation.  Be aware we are somewhat itchy about backward compatibility
on this project.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

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


[mapserver-users] missing colors with an xml color table

2009-01-19 Thread Maciej Sieczka

Hi!

There are missing colors when rendering a raster map with a
colortable stored in an xml file. Example:

I have an ESRI ASCII GRID with a colortable in xml (the files along with
a mapfile all attached as smp.tar.bz).

Rendering the raster in QGIS I get a picture as the attached
smp_qgis.png - which is OK.

Rendering it with MapServer the result is as in the attached smp_ms.png
- lacking the greyblack tones.

Why the difference? Could/should MapServer follow QGIS behaviour?


Using GDAL 1.6, MapServer 5.2.0 and QGIS 1.0 on Debian testing amd64.


The command to reproduce the smp_ms.png:

shp2img -e -4 20 36 61 -s 640 480 -m smp.map -o smp_ms.png


Maciek

--
Maciej Sieczka
www.sieczka.org

inline: smp_qgis.pnginline: smp_ms.png

smp.tar.bz2
Description: application/bzip
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] missing colors with an xml color table

2009-01-19 Thread Maciej Sieczka

Hi!

There are missing colors when rendering a raster map with a
colortable stored in an xml file. Example:

I have an ESRI ASCII GRID with a colortable in xml (the files along with
a mapfile all available at http://www.sieczka.org/tmp/smp.zip).

Rendering the raster in QGIS I get a picture as the attached
smp_qgis.png - which is OK.

Rendering it with MapServer the result is as in the attached smp_ms.png
- lacking the greyblack tones.

Why the difference? Could/should MapServer follow QGIS behaviour?


Using GDAL 1.6, MapServer 5.2.0 and QGIS 1.0 on Debian testing amd64.


The command to reproduce the smp_ms.png:

shp2img -e -4 20 36 61 -s 640 480 -m smp.map -o smp_ms.png


Maciek

--
Maciej Sieczka
www.sieczka.org

inline: smp_qgis.pnginline: smp_ms.png___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] optimal path between two points.

2009-01-19 Thread Valeria Muñoz
Hi

 I would like to implement the service optimum path between 2 points, can
someone help me to be able to implement it?. The general idea is that a user
picks a point A and point B and a display on the map the best route to get
from point A to B.

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


Re: [mapserver-users] optimal path between two points.

2009-01-19 Thread Frank Warmerdam

Valeria Muñoz wrote:

Hi
 
I would like to implement the service optimum path between 2 points, 
can someone help me to be able to implement it?. The general idea is 
that a user picks a point A and point B and a display on the map the 
best route to get from point A to B.


Valeria,

MapServer itself does not do route calculation.  You might find some
useful pointers on this page:

 http://wiki.osgeo.org/wiki/OpenRouter

I think the pgRouting (built on postgres/postgis) is the best bet for
integration with MapServer.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

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


Re: [mapserver-users] optimal path between two points.

2009-01-19 Thread Valeria Muñoz
frank
  thanks for the tips.  I use prRouting  and create the table
dijsktra_result. Now how can I implement with my mapfile? , how deliver the
data .. have some sample code?

thanks for your help.

2009/1/19 Frank Warmerdam warmer...@pobox.com

 Valeria Muñoz wrote:

 Hi
  I would like to implement the service optimum path between 2 points,
 can someone help me to be able to implement it?. The general idea is that a
 user picks a point A and point B and a display on the map the best route to
 get from point A to B.


 Valeria,

 MapServer itself does not do route calculation.  You might find some
 useful pointers on this page:

  http://wiki.osgeo.org/wiki/OpenRouter

 I think the pgRouting (built on postgres/postgis) is the best bet for
 integration with MapServer.

 Best regards,
 --

 ---+--
 I set the clouds in motion - turn up   | Frank Warmerdam,
 warmer...@pobox.com
 light and sound - activate the windows | http://pobox.com/~warmerdam
 and watch the world go round - Rush| Geospatial Programmer for Rent


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


Re: [mapserver-users] optimal path between two points.

2009-01-19 Thread Stephen Woodbridge

Valeria Muñoz wrote:

frank
 
thanks for the tips.  I use prRouting  and create the table 
dijsktra_result. Now how can I implement with my mapfile? , how deliver 
the data .. have some sample code?


thanks for your help.

2009/1/19 Frank Warmerdam warmer...@pobox.com mailto:warmer...@pobox.com

Valeria Muñoz wrote:

Hi
 I would like to implement the service optimum path between 2
points, can someone help me to be able to implement it?. The
general idea is that a user picks a point A and point B and a
display on the map the best route to get from point A to B.


Valeria,

MapServer itself does not do route calculation.  You might find some
useful pointers on this page:

 http://wiki.osgeo.org/wiki/OpenRouter

I think the pgRouting (built on postgres/postgis) is the best bet for
integration with MapServer.


So you have various options depending on the client software you are 
using. So here are some ideas for you:


1) put the route into a results table with a unique id, and pass the 
unique id back to the client where it can then request the route image 
via a mapserver mapfile the connects to the postgis database and 
requests the layer be drawn with the unique id to select the appropriate 
route.


2) make an ajax request to generate the route and return the polyline as 
 an xml or json object back to the client. The client then parses the 
result document and displays the route over the map.


3) if you use OpenLayers for the client then you can use it to help you 
do 1) as an image, or 1) as a wfs layer, or 2) as a vector layer.


You can look at the source for my demo page 
http://imaptools.com/leaddog/routing/dd.html which does this with a 
modified version of pgRouting (pgRouting does not return turn-by-turn 
directions), but you should be able to modify my code to work with 
pgRouting. I wrote a simple php script to proxy the route request into 
postgres and to format the results back to the client.


Look this over and see how far you can get with this. If you get stuck, 
ask and I'm sure we can get you moving in the right direction.

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


Re: [mapserver-users] Is there a way to add a single click zoom button

2009-01-19 Thread boesiii

PG


I added the script and the button control but I am not sure about the third
item you mentioned.  I added the lines input type=hidden name=imgxy
value=[center] /
input type=hidden name=zoom value=2 / in the mapserver variables
section but when I click the button nothing happens?

What is the problem?




Pietro Giannini wrote:
 
 Yes, but using some javascript in template html.
 
 if you want to zoomin 2x:
 
 script language=JavaScript
  function zoom2x()
  {
   document.forms['mapserv'].imgxy.value = [mapwidth]/2 +   +
 [mapheight]/2;
   document.forms['mapserv'].zoom.value = 2;
   document.forms['mapserv'].submit();
  }
 /script
 
 called from a button control:
 input type=button value=zoom in 2 X onclick=javascript:zoom2x();
 
 assuming that you have an hidden field named 'imgxy' and a control
 (select, radio, another hidden fiedl...) named 'zoom' in a form named
 'mapserv'.
 
 ciao
 ...pg
 
 -- 
 Pietro Giannini
 Bytewise srl - Area GIS
 41°50'38.58N 12°29'13.39E
 
 
 
 On Mer, Gennaio 14, 2009 18:34, boesiii wrote:

 by just using the map file and html template file.
 --
 View this message in context:
 http://n2.nabble.com/Is-there-a-way-to-add-a-single-click-zoom-button-tp2158109p2158109.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 mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 

-- 
View this message in context: 
http://n2.nabble.com/Is-there-a-way-to-add-a-single-click-zoom-button-tp2158109p2183552.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] How to add rubberband zoom?

2009-01-19 Thread boesiii

What is the easiest way to add a rubberband type of zoom control?
-- 
View this message in context: 
http://n2.nabble.com/How-to-add-rubberband-zoom--tp2183681p2183681.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] How to add rubberband zoom?

2009-01-19 Thread Stephen Woodbridge

boesiii wrote:

What is the easiest way to add a rubberband type of zoom control?


My favorite way of doing that is to use OpenLayers for my client side 
code. The JavaScript API have options for most anything you would want 
to do with a map. It support shift-click-drag out of the box to do 
rubberband zooms.


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


[mapserver-users] WFS Getfeature returning incorrect features

2009-01-19 Thread Fong,Phil [Burlington]

Hello,

I have a mapserver (5.2.1) setup that is returning incorrect features
from a WFS getfeature request. For example, if a bbox is specified:
bbox=-100,50,-99,51, then some point features outside of bbox get
returned. However, the overall bounding box of the features (in the
gml:boundedBy element) looks right and is inside the bbox, but is not
representative of the features that are returned (see below). Also, if I
try different bboxes, it would appear that it's always  taking the first
N (which varies) features in the layer (sites.1, sites.2 always appear).


What is going on and how to fix? Has anyone else encountered this odd
behaviour? The point features are stored in a database table (mssql to
be specific) and connection is using OGR (through ODBC). Mapserver is
running in Windows Server 2003 (64-bit).

Thanks for any help.

-Phil


?xml version='1.0' encoding=ISO-8859-1 ?
wfs:FeatureCollection
   xmlns:ms=http://mapserver.gis.umn.edu/mapserver;
   xmlns:wfs=http://www.opengis.net/wfs;
   xmlns:gml=http://www.opengis.net/gml;
   xmlns:ogc=http://www.opengis.net/ogc;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd 
   http://mapserver.gis.umn.edu/mapserver
http://ecburlwbidev/ms/mapserv.exe?SERVICE=WFSamp;VERSION=1.0.0amp;REQ
UEST=DescribeFeatureTypeamp;TYPENAME=sitesamp;OUTPUTFORMAT=XMLSCHEMA
  gml:boundedBy
gml:Box srsName=EPSG:4326
gml:coordinates-99.976390,50.190280
-99.675000,50.675000/gml:coordinates
/gml:Box
  /gml:boundedBy
gml:featureMember
  ms:sites fid=sites.1
gml:boundedBy
gml:Box srsName=EPSG:4326
gml:coordinates-97.429440,49.679170
-97.429440,49.679170/gml:coordinates
/gml:Box
/gml:boundedBy
ms:msGeometry
gml:Point srsName=EPSG:4326
  gml:coordinates-97.429440,49.679170/gml:coordinates
/gml:Point
/ms:msGeometry
  /ms:sites
/gml:featureMember
gml:featureMember
  ms:sites fid=sites.2
gml:boundedBy
gml:Box srsName=EPSG:4326
gml:coordinates-97.261670,49.696670
-97.261670,49.696670/gml:coordinates
/gml:Box
/gml:boundedBy
ms:msGeometry
gml:Point srsName=EPSG:4326
  gml:coordinates-97.261670,49.696670/gml:coordinates
/gml:Point
/ms:msGeometry
  /ms:sites
/gml:featureMember




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


Re: [mapserver-users] google tiles

2009-01-19 Thread Roger André
Fascinating, thanks for sending the link!  Since you state that you only get
blank images when you try it out, perhaps it is a projection mis-match? It
appears that your mapfile extents are defined in meters, which would match
spherical mercator, but your layer is in EPSG 4326.  What if you make your
extents be in lat/lon instead?

Roger
--

On Mon, Jan 19, 2009 at 10:29 AM, Chad Clabaugh cclaba...@centwire.comwrote:

  Thanks for your reply Roger.  The spec for tilemode is at
 http://mapserver.org/output/tile_mode.html But I'll definitely look into
 TileCache as well.





 *From:* Roger André [mailto:ran...@gmail.com]
 *Sent:* Monday, January 19, 2009 12:03 PM
 *To:* Chad Clabaugh
 *Cc:* mapserver-users@lists.osgeo.org
 *Subject:* Re: [mapserver-users] google tiles



 Hi Chad,

 I wasn't aware that tile is a valid mode of operation for Mapserver.  I
 looked on http://mapserver.org/cgi/controls.html and didn't see it
 referenced there, but its entirely possible that it exists and that I've
 just missed it.  In any case, the way I'm familiar with generating google
 map tiles is via the use of Tilecache.  Tilecache works as in intermediary
 between Mapserver and your Google map. It make the appropriate request to
 Mapserver for a tile, and then returns the tile to your map.  I think this
 might be the solution you're looking for, http://tilecache.org/.

 Best of luck,

 Roger
 --

 On Mon, Jan 19, 2009 at 6:50 AM, Chad Clabaugh cclaba...@centwire.com
 wrote:

 Greetings,

 I have been trying to generate google tiles from shapefiles using
 mapserver.  I have been able to successfully generate maps by calling the
 url
 http://0.0.0.0/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage.mapmode=map.
  but when I attempt to use the url
 http://172.18.154.186/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage.mapmode=tiletile=4+6+4
 I receive only empty images, regardless of tile specified.



 Thanks for any help!



 MAP

   NAME COVERAGE

   STATUS ON

   SIZE 1400 900

   EXTENT 639000.00 4535300.00 689900.00 4582600.00

   UNITS METERS

   SHAPEPATH shapefiles

   IMAGECOLOR 220 220 220



   IMAGETYPE PNG



   PROJECTION

 init=epsg:4326

   END



   LAYER

 NAME CoverageMap

 TYPE POLYGON

 STATUS DEFAULT

 DATA notforchad



 CLASS

   STYLE

 OUTLINECOLOR 255 128 128

 COLOR 225 0 0

   END

 END



   END

 END



 Chad Clabaugh

 Technical Support, Engineering

 Office: 260.760.6398

 Mobile: 260.466.8861




 ___
 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] How to add rubberband zoom?

2009-01-19 Thread boesiii

I am not familiar with javascript. Couyld you give an example?  Do I just
need a copy of openlayers.js in my root?
-- 
View this message in context: 
http://n2.nabble.com/How-to-add-rubberband-zoom--tp2183681p2184773.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] how to stop extent being visible?

2009-01-19 Thread Greg Luker

Hi mapservers,

Is there any way to stop the MapServer image extent being visible to 
the outside world? ie in cgi the imgext= is visible in the URL line, 
and in php-mapscript a simple View/Source in the browser will show 
the extent value. In my app it's important that the extent not be visible.


Thanks,
Greg.


Greg Luker
GIS Lab Manager, Southern Cross University
Lismore, AUSTRALIA.
glu...@scu.edu.au
phone 61 2 66203026



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


Re: [mapserver-users] How to add rubberband zoom?

2009-01-19 Thread Stephen Woodbridge

boesiii wrote:

I am not familiar with javascript. Couyld you give an example?  Do I just
need a copy of openlayers.js in my root?


Start here:
http://openlayers.org/
http://trac.openlayers.org/wiki/UserGuide

Here is an example:
http://openlayers.org/dev/examples/mapserver_untiled.html

Sign up on the OpenLayers Users list which will give you great support
http://openlayers.org/mailman/listinfo

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