[mapserver-users] Need Help with Custom (Raster) Data as Input

2009-01-20 Thread Muizudeen Kusimo
Hello Everyone,

I am new to MapServer, however I am working on an application that is
similar to Google Maps albeit with my own custom maps.

The problem is:

1) I have several maps mostly in .jpeg format and would like to use them as
Data Inputs for this Web Application. I can't seem to get it done correctly.
Must I convert these maps to a SHAPEFILE i.e. .shp or what? If so, how do I
convert them?

My development platform is:

- Microsoft Windows XP
- Ka-Map
- MapServer (MS4W)

Thanks.

NB: I am re-reading the documentation for a solution.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Need Help with Custom (Raster) Data as Input

2009-01-20 Thread Rahkonen Jukka
Hi,
 
First of all your jpeg files need to be georeferenced.  Jpeg files are most 
often georeferenced with world files which are named as .jgw.  Sometimes they 
are named as .tfw, even that name is actually reserved for tiff files.  And 
Mapserver understands also world files named as .wld.
If your images are georeferenced you can continue to building one single layer 
from all of your images.  It is done with gdaltindex utility program.  
Gdaltindex is building a shapefile that records the extents of all the images 
to be indexed.
Third step is to make a new raster layer that is using the shapefile index as a 
catalogue for finding the actual image files that needs to be opened when user 
is requesting a map from a certain area.
 
This should be enough to show you images as a single layer.  It would be a 
benefit to know the projection where the images are because otherwise they 
cannot be reprojected.  And for optimising performance it may be good to 
convert jpeg images to tiffs, but you can just start from jpegs and see if you 
are happy with the speed.
In conclusion:
1. Check georeferencing and projection, gdalinfo program is a good help in this.
2. Make tileindex with gdaltindex
3. Make a new raster layer in mapfile referring to just created tileindex file.
 
-Jukka Rahkonen-
 




Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Muizudeen Kusimo
Lähetetty: 20. tammikuuta 2009 10:45
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] Need Help with Custom (Raster) Data as Input


Hello Everyone,

I am new to MapServer, however I am working on an application that is 
similar to Google Maps albeit with my own custom maps.

The problem is:

1) I have several maps mostly in .jpeg format and would like to use 
them as Data Inputs for this Web Application. I can't seem to get it done 
correctly. Must I convert these maps to a SHAPEFILE i.e. .shp or what? If so, 
how do I convert them?

My development platform is:

- Microsoft Windows XP
- Ka-Map
- MapServer (MS4W)

Thanks.

NB: I am re-reading the documentation for a solution.


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


RE: [mapserver-users] Need Help with Custom (Raster) Data as Input

2009-01-20 Thread Venkat Rao Tammineni
Hi,

 

  You can use raster data .but here I have some questions 

 

1)  The is georefrenced ? 

2)  Is data is projected ?

 

 

If it is you can use raster data into mapserver..

 

If you have done all above things , refer below url

 

  

 http://mapserver.org/input/raster.html#how-are-rasters-added-to-a-map-file

 

I hope this will help you.

 

Thanks,

Venkat

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Muizudeen
Kusimo
Sent: Tuesday, January 20, 2009 2:15 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Need Help with Custom (Raster) Data as Input

 

Hello Everyone,

I am new to MapServer, however I am working on an application that is
similar to Google Maps albeit with my own custom maps.

The problem is:

1) I have several maps mostly in .jpeg format and would like to use them as
Data Inputs for this Web Application. I can't seem to get it done correctly.
Must I convert these maps to a SHAPEFILE i.e. .shp or what? If so, how do I
convert them?

My development platform is:

- Microsoft Windows XP
- Ka-Map
- MapServer (MS4W)

Thanks.

NB: I am re-reading the documentation for a solution.

___
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-20 Thread Pietro Giannini
Your code seems correct...

maybe a javascript error.
If you use firefox you can intercept javascript errors with the error
console.

my code, simplified, is:

html
head
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
/head
body
form name=mapserv method=GET action=/cgi-bin/mapserv.exe
!-- the map path, mandatory --
input type=hidden name=map value=[map]
!--  the center of the img, no matter to valorize with the [center] cgi
variable  --
input type=hidden name=imgxy
!-- the current extent of the map, mandatory --
input type=hidden name=imgext value=[mapext]
!-- the zoom --
input type=hidden name=zoom
!-- the map image --
input type=image name=img src=[img] width=[mapwidth]
height=[mapheight] alt=map
!-- the button --
input type=button value=zoom in 2 X onclick=javascript:zoom2x();
/form
/body
/html

this work, try it.

ciao ...pg

-- 
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58N 12°29'13.39E



On Lun, Gennaio 19, 2009 22:30, boesiii wrote:

 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?




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


Re: [mapserver-users] Need Help with Custom (Raster) Data as Input

2009-01-20 Thread Muizudeen Kusimo
Dear Rahkonen,

Thank you for your mail, it was very helpful.

I have done the following:

1) Converted my .jpeg files to .tif and run the gdaltindex program to
georeference them. It returned a .shp, .shx and .dbf files. But I don't have
any .tfw file yet. Please see output of GDALTINDEX below.

2) I tested my .map file with the shp2img utility and it generated a blank
(white) .png file for me. Expectedly, the same blank file displays as blank
in the browser (i.e. Ka-Map UI).

My new questions:

1) My maps were scanned from a paper map, does this affect my ability to
Georeference them?
2) How do I determine the Projection of the scanned map images?

Thanks.

GDALTINDEX OUTPUT (condensed):
==
C:\ms4w\Apache\cgi-bingdalinfo c:\ms4w\apps\test\tmp\pg19.tif
Driver: GTiff/GeoTIFF
Files: c:\ms4w\apps\test\tmp\pg19.tif
Size is 1098, 1696
Coordinate System is `'
Metadata:
  TIFFTAG_XRESOLUTION=200
  TIFFTAG_YRESOLUTION=200
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Image Structure Metadata:
  COMPRESSION=LZW
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (0.0,0.0)
Lower Left  (0.0, 1696.0)
Upper Right ( 1098.0,0.0)
Lower Right ( 1098.0, 1696.0)
Center  (  549.0,  848.0)
Band 1 Block=1098x8 Type=Byte, ColorInterp=Palette
  Color Table (RGB with 256 entries)
0: 0,0,0,255
1: 165,171,167,255
2: 255,197,98,255
3: 239,168,102,255
4: 206,150,75,255
 .
 . #removed to conserve space
 .
  255: 177,169,148,255

C:\ms4w\Apache\cgi-bin

The test.map file I used:
=
MAP
 NAME test
 STATUS ON
 SIZE 1280 1280
 EXTENT -220 -712631 3072800 384
 UNITS DD
 #IMAGECOLOR 255 255 255
 IMAGETYPE JPEG

 WEB
   IMAGEPATH c:\ms4w\apps\test\tmp\
   IMAGEURL c:\ms4w\apps\test\
 END

 LEGEND
   TRANSPARENT TRUE
 END

 SCALEBAR
   TRANSPARENT TRUE
 END

 LAYER
   NAME My Sample Location
   TYPE RASTER
   STATUS ON
   TILEINDEX tmp\pg19.shp
   TILEITEM Location
 END
END #MAP END


@Venkat

I hope my mail gives a clearer picture of my status for your further advice.

Thanks.

On Tue, Jan 20, 2009 at 1:04 AM, Rahkonen Jukka
jukka.rahko...@mmmtike.fiwrote:

  Hi,

 First of all your jpeg files need to be georeferenced.  Jpeg files are most
 often georeferenced with world files which are named as .jgw.  Sometimes
 they are named as .tfw, even that name is actually reserved for tiff files.
 And Mapserver understands also world files named as .wld.
 If your images are georeferenced you can continue to building one single
 layer from all of your images.  It is done with gdaltindex utility program.
 Gdaltindex is building a shapefile that records the extents of all the
 images to be indexed.
 Third step is to make a new raster layer that is using the shapefile index
 as a catalogue for finding the actual image files that needs to be opened
 when user is requesting a map from a certain area.

 This should be enough to show you images as a single layer.  It would be a
 benefit to know the projection where the images are because otherwise they
 cannot be reprojected.  And for optimising performance it may be good to
 convert jpeg images to tiffs, but you can just start from jpegs and see if
 you are happy with the speed.
 In conclusion:
 1. Check georeferencing and projection, gdalinfo program is a good help in
 this.
 2. Make tileindex with gdaltindex
 3. Make a new raster layer in mapfile referring to just created tileindex
 file.

 -Jukka Rahkonen-


  --
 *Lähettäjä:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *Puolesta *Muizudeen Kusimo
 *Lähetetty:* 20. tammikuuta 2009 10:45
 *Vastaanottaja:* mapserver-users@lists.osgeo.org
 *Aihe:* [mapserver-users] Need Help with Custom (Raster) Data as Input

 Hello Everyone,

 I am new to MapServer, however I am working on an application that is
 similar to Google Maps albeit with my own custom maps.

 The problem is:

 1) I have several maps mostly in .jpeg format and would like to use them as
 Data Inputs for this Web Application. I can't seem to get it done correctly.
 Must I convert these maps to a SHAPEFILE i.e. .shp or what? If so, how do I
 convert them?

 My development platform is:

 - Microsoft Windows XP
 - Ka-Map
 - MapServer (MS4W)

 Thanks.

 NB: I am re-reading the documentation for a solution.


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


Re: [mapserver-users] Need Help with Custom (Raster) Data as Input

2009-01-20 Thread Siki Zoltan

Dear Muizudeen,

On Tue, 20 Jan 2009, Muizudeen Kusimo wrote:


I have done the following:

1) Converted my .jpeg files to .tif and run the gdaltindex program to
georeference them. It returned a .shp, .shx and .dbf files. But I don't have
any .tfw file yet. Please see output of GDALTINDEX below.


gdaltindex doesn't create a georeference to your raster, it is usefull if 
you have many tiled georeferenced rasters.
You should get information about the coordinates of the corner of the 
scanned map or coordinates for any visible point on your scanned map.
Than you may create the tfw file by hand (if the sides of the scanned map 
are parelel to the coordinate axices it is simple). Or you can use GRASS 
or gdal utilities to calculate the transformation between your image 
coordinatesystem to the map coordinate system (e.g. UTM).




2) I tested my .map file with the shp2img utility and it generated a blank
(white) .png file for me. Expectedly, the same blank file displays as blank
in the browser (i.e. Ka-Map UI).


AFAIK if you have a raster without georeference then Mapserver will use 
the pixel row and column number as coordinates. So now the extent sould be

0 0 1098 1696

or if the given extent in your map file are the corners of your map then
create the following georeference file (tfw)
- start of twf file
4802.18579
0
0
-2684.334316
-220
384
-- end of tfw file

But I am not sure the resolution of your raster is so different in 
northing and easting direction.




My new questions:

1) My maps were scanned from a paper map, does this affect my ability to
Georeference them?


No. But you need reference points on the map where the coordinates are 
known.



2) How do I determine the Projection of the scanned map images?


Usually it is written on. The projection is not so important if all of 
your maps use the same projection (coordinate system).


Best regards
Zoltan


Thanks.

GDALTINDEX OUTPUT (condensed):
==
C:\ms4w\Apache\cgi-bingdalinfo c:\ms4w\apps\test\tmp\pg19.tif
Driver: GTiff/GeoTIFF
Files: c:\ms4w\apps\test\tmp\pg19.tif
Size is 1098, 1696
Coordinate System is `'
Metadata:
 TIFFTAG_XRESOLUTION=200
 TIFFTAG_YRESOLUTION=200
 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Image Structure Metadata:
 COMPRESSION=LZW
 INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (0.0,0.0)
Lower Left  (0.0, 1696.0)
Upper Right ( 1098.0,0.0)
Lower Right ( 1098.0, 1696.0)
Center  (  549.0,  848.0)
Band 1 Block=1098x8 Type=Byte, ColorInterp=Palette
 Color Table (RGB with 256 entries)
   0: 0,0,0,255
   1: 165,171,167,255
   2: 255,197,98,255
   3: 239,168,102,255
   4: 206,150,75,255
.
. #removed to conserve space
.
 255: 177,169,148,255

C:\ms4w\Apache\cgi-bin

The test.map file I used:
=
MAP
NAME test
STATUS ON
SIZE 1280 1280
EXTENT -220 -712631 3072800 384
UNITS DD
#IMAGECOLOR 255 255 255
IMAGETYPE JPEG

WEB
  IMAGEPATH c:\ms4w\apps\test\tmp\
  IMAGEURL c:\ms4w\apps\test\
END

LEGEND
  TRANSPARENT TRUE
END

SCALEBAR
  TRANSPARENT TRUE
END

LAYER
  NAME My Sample Location
  TYPE RASTER
  STATUS ON
  TILEINDEX tmp\pg19.shp
  TILEITEM Location
END
END #MAP END


@Venkat

I hope my mail gives a clearer picture of my status for your further advice.

Thanks.

On Tue, Jan 20, 2009 at 1:04 AM, Rahkonen Jukka
jukka.rahko...@mmmtike.fiwrote:


 Hi,

First of all your jpeg files need to be georeferenced.  Jpeg files are most
often georeferenced with world files which are named as .jgw.  Sometimes
they are named as .tfw, even that name is actually reserved for tiff files.
And Mapserver understands also world files named as .wld.
If your images are georeferenced you can continue to building one single
layer from all of your images.  It is done with gdaltindex utility program.
Gdaltindex is building a shapefile that records the extents of all the
images to be indexed.
Third step is to make a new raster layer that is using the shapefile index
as a catalogue for finding the actual image files that needs to be opened
when user is requesting a map from a certain area.

This should be enough to show you images as a single layer.  It would be a
benefit to know the projection where the images are because otherwise they
cannot be reprojected.  And for optimising performance it may be good to
convert jpeg images to tiffs, but you can just start from jpegs and see if
you are happy with the speed.
In conclusion:
1. Check georeferencing and projection, gdalinfo program is a good help in
this.
2. Make tileindex with gdaltindex
3. Make a new raster layer in mapfile referring to just created tileindex
file.

-Jukka Rahkonen-


 --
*Lähettäjä:* mapserver-users-boun...@lists.osgeo.org [mailto:
mapserver-users-boun...@lists.osgeo.org] *Puolesta *Muizudeen Kusimo
*Lähetetty:* 20. tammikuuta 2009 10:45
*Vastaanottaja:* mapserver-users@lists.osgeo.org
*Aihe:* [mapserver-users] Need Help with Custom (Raster) Data as Input

Hello Everyone,

Re: [mapserver-users] Need Help with Custom (Raster) Data as Input

2009-01-20 Thread Rahkonen Jukka
Hi,
 
You have decided to take the most rocky road that exists. Georeferencing 
scanned paper maps is not extra easy and I have not seen many good, easy to use 
free utilities for doing that. If you just want to learn Mapserver I would 
recommend you to acquire some ready, georeferenced images to start with.  But 
if you are not afraid then just go ahead.
 
First, your Mapserver map will remain empty because your output extents are 
EXTENT -220 -712631 3072800 384
 UNITS DD
while all your scanned maps have their upper left corner at point zero, zero
Upper Left  (0.0,0.0)
 
By the way, unit DD in the mapfile means decimal degrees but judged by number 
values in extent line I guess that they mean meters.
 
What you should do is to georeference your scanned images. It means that in 
some way you must tell Mapserver what place on Earth the images are presenting. 
 In most simple case giving coordinates of one corner and pixel sizes in 
east-west and south-north direction is enough. That is the information that 
ESRI style world file is giving.  For scanned maps it may not give very good 
results because images are more or less rotated.  Therefore more ground control 
points (GCP) would be needed. If the original map has coordinate grid then 
finding good GPSs is easy.  
 
A rather simple to use georeferencing utility that I have tried is available as 
Quantum GIS plugin.  Unfortunately it did not do very good job for me but it 
may have been improved since then.  I have been mostly feeding coordinates 
manually for gdal_translate utility and warped images then to target projection 
with gdalwarp but I wouldn't say that its a great pleasure to work like that.  
Combining the user interface of QGis and gdal_translate-gdalwarp chain would 
give rather a nice tool for georeferencing.
Or maybe the same functionality could be added to OpenEV that comes with 
FWTools package.
 
By the way, most simple way to get your scanned image visible is to adjust 
mapfile extents to suit your imagery there around point 0,0.  No other data 
would suit with your image but at least you can see that the system works.
 
-Jukka Rahkonen-
 


Lähettäjä: Muizudeen Kusimo [mailto:devbo...@gmail.com] 
Lähetetty: 20. tammikuuta 2009 13:43
Vastaanottaja: Rahkonen Jukka; vtammin...@roulacglobal.com; 
mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] Need Help with Custom (Raster) Data as Input



Dear Rahkonen,

Thank you for your mail, it was very helpful.

I have done the following:

1) Converted my .jpeg files to .tif and run the gdaltindex program to 
georeference them. It returned a .shp, .shx and .dbf files. But I don't have 
any .tfw file yet. Please see output of GDALTINDEX below.

2) I tested my .map file with the shp2img utility and it generated a 
blank (white) .png file for me. Expectedly, the same blank file displays as 
blank in the browser (i.e. Ka-Map UI).

My new questions:

1) My maps were scanned from a paper map, does this affect my ability 
to Georeference them? 
2) How do I determine the Projection of the scanned map images?

Thanks.

GDALTINDEX OUTPUT (condensed):
==
C:\ms4w\Apache\cgi-bingdalinfo c:\ms4w\apps\test\tmp\pg19.tif
Driver: GTiff/GeoTIFF
Files: c:\ms4w\apps\test\tmp\pg19.tif
Size is 1098, 1696
Coordinate System is `'
Metadata:
  TIFFTAG_XRESOLUTION=200
  TIFFTAG_YRESOLUTION=200
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Image Structure Metadata:
  COMPRESSION=LZW
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (0.0,0.0)
Lower Left  (0.0, 1696.0)
Upper Right ( 1098.0,0.0)
Lower Right ( 1098.0, 1696.0)
Center  (  549.0,  848.0)
Band 1 Block=1098x8 Type=Byte, ColorInterp=Palette
  Color Table (RGB with 256 entries)
0: 0,0,0,255
1: 165,171,167,255
2: 255,197,98,255
3: 239,168,102,255
4: 206,150,75,255
 .
 . #removed to conserve space
 .
  255: 177,169,148,255

C:\ms4w\Apache\cgi-bin

The test.map file I used:
=
MAP
 NAME test
 STATUS ON
 SIZE 1280 1280
 EXTENT -220 -712631 3072800 384
 UNITS DD
 #IMAGECOLOR 255 255 255
 IMAGETYPE JPEG

 WEB
   IMAGEPATH c:\ms4w\apps\test\tmp\
   IMAGEURL c:\ms4w\apps\test\
 END

 LEGEND
   TRANSPARENT TRUE
 END

 SCALEBAR
   TRANSPARENT TRUE
 END

 LAYER
   NAME My Sample Location
   TYPE RASTER
   

[mapserver-users] Mapserver PROJECTION - MapInfo Non-Earth (meters) projection

2009-01-20 Thread Matej
Hi,

I have a bunch of MapInfo layers which are saved in a Non-Earth (meters) 
projection. When doing ogrinfo on one of such files, I get:
Geometry: Line String
Feature Count: 177
Extent: (577197.926321, 163752.612753) - (583056.262978, 168205.527060)
Layer SRS WKT:
LOCAL_CS[Nonearth,
UNIT[Meter,1.0]]

What would be the best procedure to get Mapserver's WMS server working on it? I 
have no idea which projection to choose in mapfile, is my only option left to 
change projections in MapInfo and use changed layers?

Thank you for ideas.

Cheers, Matej Serc
ma...@matnet.net___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] PHP Mapscript question

2009-01-20 Thread rafael

Sorry If shouldn't  post php mapscript questions here. But I have I doubt and
didn't find a mapscript forum. So the question is the following. How do I
set the mapserver information in PHP Mapscript?? What happen if my mapserver
is running in other machine and I want to connect to that server from
another host where I'm developing the web application??? 

Thanks in advance.

Rafael
-- 
View this message in context: 
http://n2.nabble.com/PHP-Mapscript-question-tp2186664p2186664.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] optimal path between two points.

2009-01-20 Thread Fawcett, David
You may also want to look at the Workshops posted at the pgRouting site.  Here 
is a link to the workshop from FOSS4G2008:  
http://pgrouting.postlbs.org/wiki/WorkshopFOSS4G2008

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Valeria Muñoz
Sent: Monday, January 19, 2009 2:20 PM
To: Frank Warmerdam
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] optimal path between two points.


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


[mapserver-users] integration php with tomcat

2009-01-20 Thread Amiya Patra
hi

I am unable to integrate php with tomcat as I cant find php servlet jar
file(in linux as well as windows).It is not in my system.where I will get
that file plz help me...

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


Re: [mapserver-users] RE: mapserver-users Digest, Vol 12, Issue 73

2009-01-20 Thread Rahkonen Jukka
Have you specified the projection also inside LAYER?  There are two places for 
giving projections, in MAP section to give the set of available output 
projections, and in LAYER section to tell Mapserver which projection the layer 
data are in.

-Jukka Rahkonen- 

 -Alkuperäinen viesti-
 Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta 
 Chad Clabaugh
 Lähetetty: 20. tammikuuta 2009 16:29
 Vastaanottaja: mapserver-users@lists.osgeo.org
 Aihe: [mapserver-users] RE: mapserver-users Digest, Vol 12, Issue 73
 
 Am I not specifying my projection by using init=epsg:4326 
 within the PROJECTION BLOCK  I have tried as many 
 different projections as I can find. Including 4326, 900913, 
 3785, and the following block...
 
 PROJECTION
   proj=merc
   a=6378137
   b=6378137
   lat_ts=0.0
   lon_0=0.0
   x_0=0.0
   y_0=0
   k=1.0
   units=m
   nadgri...@null
   wktext
   no_defs
 END
 
 ...which didn't work for me.
 
 --
 
 Message: 3
 Date: Mon, 19 Jan 2009 20:16:28 -0800
 From: Paul Ramsey pram...@cleverelephant.ca
 Subject: Re: [mapserver-users] google tiles
 To: Chad Clabaugh cclaba...@centwire.com
 Cc: mapserver-users@lists.osgeo.org
 Message-ID:
   30fe546d0901192016u1ad26e6fy7ec54e13da416...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1
 
 You need to specify the PROJECTION of your LAYER.
 
 P.
 
 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/c
 overage.mapmo
 de=map
  . but when I attempt to use the url
 
 http://172.18.154.186/cgi-bin/mapserv?map=/srv/www/htdocs/maps
 erver/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
 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] PHP Mapscript question

2009-01-20 Thread Dan Little
Rafeal,

I think you'll need to clarify a little bit more.  Mapscript is a library you 
use inside of a PHP script.  If you're trying to access data on another server 
then you'll need to be more specific about what that data might be.  If you're 
trying to retrieve an image from another server then you might want to look 
into php curl.



- Original Message 
 From: rafael rafaelcha...@gmail.com
 To: mapserver-users@lists.osgeo.org
 Sent: Tuesday, January 20, 2009 8:16:02 AM
 Subject: [mapserver-users] PHP Mapscript question
 
 
 Sorry If shouldn't  post php mapscript questions here. But I have I doubt and
 didn't find a mapscript forum. So the question is the following. How do I
 set the mapserver information in PHP Mapscript?? What happen if my mapserver
 is running in other machine and I want to connect to that server from
 another host where I'm developing the web application??? 
 
 Thanks in advance.
 
 Rafael
 -- 
 View this message in context: 
 http://n2.nabble.com/PHP-Mapscript-question-tp2186664p2186664.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


Re: [mapserver-users] integration php with tomcat

2009-01-20 Thread Dan Little
Did a google search, maybe this will help...

http://wiki.apache.org/tomcat/UsingPhp





From: Amiya Patra amiyapatra...@gmail.com
To: mapserver-users@lists.osgeo.org
Sent: Tuesday, January 20, 2009 8:32:59 AM
Subject: [mapserver-users] integration php with tomcat

hi

I am unable to integrate php with tomcat as I cant find php servlet jar file(in 
linux as well as windows).It is not in my system.where I will get that file plz 
help me...

Thanks.



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


Re: [mapserver-users] PHP Mapscript question

2009-01-20 Thread Alan Boudreault
Hi Rafael,

PHP MapScript needs the libmapserver to work. You said that your
MapServer is running on another machine... so what are you trying to do
? using WMS ? open a map file ?

btw, it's ok to post php mapscript questions here. It's the right place.

Regards,
Alan

rafael wrote:
 Sorry If shouldn't  post php mapscript questions here. But I have I doubt and
 didn't find a mapscript forum. So the question is the following. How do I
 set the mapserver information in PHP Mapscript?? What happen if my mapserver
 is running in other machine and I want to connect to that server from
 another host where I'm developing the web application??? 

 Thanks in advance.

 Rafael
   


-- 
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] RE: mapserver-users Digest, Vol 12, Issue 73

2009-01-20 Thread Chad Clabaugh
Am I not specifying my projection by using init=epsg:4326 within the
PROJECTION BLOCK  I have tried as many different projections as I can
find. Including 4326, 900913, 3785, and the following block...

PROJECTION
proj=merc
a=6378137
b=6378137
lat_ts=0.0
lon_0=0.0
x_0=0.0
y_0=0
k=1.0
units=m
nadgri...@null
wktext
no_defs
END

...which didn't work for me.

--

Message: 3
Date: Mon, 19 Jan 2009 20:16:28 -0800
From: Paul Ramsey pram...@cleverelephant.ca
Subject: Re: [mapserver-users] google tiles
To: Chad Clabaugh cclaba...@centwire.com
Cc: mapserver-users@lists.osgeo.org
Message-ID:
30fe546d0901192016u1ad26e6fy7ec54e13da416...@mail.gmail.com
Content-Type: text/plain; charset=ISO-8859-1

You need to specify the PROJECTION of your LAYER.

P.

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.mapmo
de=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] optimal path between two points.

2009-01-20 Thread Stephen Woodbridge

Valeria,

You should really look at the example provided with:
http://pgrouting.postlbs.org/wiki/WorkshopFOSS4G2007

This is what I started with and then made my own modifications. The 
above workshop should walk you through how to setup a pgRouting without 
my additional hacks which will only confuse you at the moment.


My dd_routing.php is a modified version of ax_routing.php that is 
included in the tutorial tarball.


You might also want to read some of these pages if you have not already:
http://www.google.com/search?hl=enq=pgRoutingbtnG=Google+Search

Best regards,
  -Steve W

Valeria Muñoz wrote:

hi Stephen.. thank for the tips...
I have reviewed the code but can only see the dd.html. can you send me 
the dd_routing.php? .
 
please


thanks for everything
2009/1/19 Stephen Woodbridge wood...@swoodbridge.com 
mailto:wood...@swoodbridge.com


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 mailto: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] RE: mapserver-users Digest, Vol 12, Issue 73

2009-01-20 Thread Frank Warmerdam

Chad Clabaugh wrote:

Am I not specifying my projection by using init=epsg:4326 within the
PROJECTION BLOCK  I have tried as many different projections as I can
find. Including 4326, 900913, 3785, and the following block...


Chad,

You need to specify a PROJECTION block on your LAYER *as well as*
on your MAP object. If everything is in the same coordinate system
then they can match.  Your sample map (fragment?) only had a
projection declaration on the map.

Best regards,


Message: 3
Date: Mon, 19 Jan 2009 20:16:28 -0800
From: Paul Ramsey pram...@cleverelephant.ca

You need to specify the PROJECTION of your LAYER.

P.

...


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




--
---+--
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] Mapserver PROJECTION - MapInfo Non-Earth (meters) projection

2009-01-20 Thread Frank Warmerdam

Matej wrote:

Hi,
 
I have a bunch of MapInfo layers which are saved in a Non-Earth (meters) 
projection. When doing ogrinfo on one of such files, I get:

Geometry: Line String
Feature Count: 177
Extent: (577197.926321, 163752.612753) - (583056.262978, 168205.527060)
Layer SRS WKT:
LOCAL_CS[Nonearth,
UNIT[Meter,1.0]]
What would be the best procedure to get Mapserver's WMS server working 
on it? I have no idea which projection to choose in mapfile, is my only 
option left to change projections in MapInfo and use changed layers?


Matej,

If you are not too concerned about where you are in the world, you can just
fake the coordinate system.  Just declare it to be some EPSG coordinate system
that is well behaved over a large range.  Perhaps EPSG:3349 and global
mercator projection.

So, just use PROJECTION init=epsg:3349 END for your map and layers, and
use EPSG:3349 in the WMS metadata anywhere it needs to know the area.

Then any custom WMS client hardcoded to your region of interest should be
ok. But this setup won't work with general purpose clients that are trying
to integrate the results with datasets in other projections.

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] Mapserver WMS client without SERVICE parameter

2009-01-20 Thread Ivan Mincik
Dear users,
We want to use Manifold GIS to connect to UMN Mapserver WMS server. Manifold 
request doesn't contain SERVICE  parameter. (It should be a bug on the 
Manifold side.  It was already submitted. No response since now .)
If mapserver will receive  request without SERVICE parameter, it will process 
it as WFS request. We want WMS response. 
Is there any way how to configure mapserver to return WMS response even if 
SERVICE parameter is not present  ?

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


Re: [mapserver-users] Mapserver WMS client without SERVICE parameter

2009-01-20 Thread Yewondwossen Assefa
One possibility would be to use the WXS sevice of Mapserver if that is 
an option for you : http://mapserver.org/ogc/mapscript.html

You can then add the  Service parameter to the request and proceed.

Best Regards

Ivan Mincik wrote:

Dear users,
We want to use Manifold GIS to connect to UMN Mapserver WMS server. Manifold request 
doesn't contain SERVICE  parameter. (It should be a bug on the Manifold side. 
 It was already submitted. No response since now .)
If mapserver will receive  request without SERVICE parameter, it will process it as WFS request. We want WMS response. 
Is there any way how to configure mapserver to return WMS response even if SERVICE parameter is not present  ?


Thanks 
Ivan

___
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] Mapserver WMS client without SERVICE parameter

2009-01-20 Thread Bart van den Eijnden (OSGIS)

Hi,

this was fixed in Mapserver 5.2.1. So please upgrade.

Best regards,
Bart

Ivan Mincik wrote:

Dear users,
We want to use Manifold GIS to connect to UMN Mapserver WMS server. Manifold request 
doesn't contain SERVICE  parameter. (It should be a bug on the Manifold side. 
 It was already submitted. No response since now .)
If mapserver will receive  request without SERVICE parameter, it will process it as WFS request. We want WMS response. 
Is there any way how to configure mapserver to return WMS response even if SERVICE parameter is not present  ?


Thanks 
Ivan

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


  



--
Bart van den Eijnden
OSGIS, Open Source GIS
bart...@osgis.nl
http://www.osgis.nl

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


Re: [mapserver-users] Mapserver WMS client without SERVICE parameter

2009-01-20 Thread Ivan Mincik
Thanks a lot. I thought  it is a feature :). 
I will upgrade as suggested. 

Ivan

On Tuesday 20 January 2009, you wrote:
 On Tue, Jan 20, 2009 at 05:13:25PM +0100, Ivan Mincik wrote:
  Dear users,
  We want to use Manifold GIS to connect to UMN Mapserver WMS server. 
  Manifold request doesn't contain SERVICE  parameter. (It should be a bug 
  on the Manifold side.  It was already submitted. No response since now .)
 
 Actually, SERVICE=WMS is not required for GetMap requests. This is a bug
 in MapServer that requires it. This was fixed in
 http://trac.osgeo.org/mapserver/ticket/2737, fixed in 2737, and released
 in 5.2.1 , according to the ticket. 
 
 -- Chris
 
  If mapserver will receive  request without SERVICE parameter, it will 
  process it as WFS request. We want WMS response. 
  Is there any way how to configure mapserver to return WMS response even if 
  SERVICE parameter is not present  ?
  
  Thanks 
  Ivan
  ___
  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] optimal path between two points.

2009-01-20 Thread Valeria Muñoz
Hi Stephen

 thanks for the tip... I read the example and implements it with my data.

 Now my problem is :how to rescue the data for instructions,distance,time
etc? ..
 how can I know whether to turn right or left?

RG.
2009/1/20 Stephen Woodbridge wood...@swoodbridge.com

 Valeria,

 You should really look at the example provided with:
 http://pgrouting.postlbs.org/wiki/WorkshopFOSS4G2007

 This is what I started with and then made my own modifications. The above
 workshop should walk you through how to setup a pgRouting without my
 additional hacks which will only confuse you at the moment.

 My dd_routing.php is a modified version of ax_routing.php that is included
 in the tutorial tarball.

 You might also want to read some of these pages if you have not already:
 http://www.google.com/search?hl=enq=pgRoutingbtnG=Google+Search

 Best regards,
  -Steve W

 Valeria Muñoz wrote:

 hi Stephen.. thank for the tips...
 I have reviewed the code but can only see the dd.html. can you send me the
 dd_routing.php? .
  please

 thanks for everything
 2009/1/19 Stephen Woodbridge wood...@swoodbridge.com mailto:
 wood...@swoodbridge.com

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 mailto: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] optimal path between two points.

2009-01-20 Thread Stephen Woodbridge

Valeria Muñoz wrote:

Hi Stephen
 
 thanks for the tip... I read the example and implements it with my data.
 
Now my problem is :how to rescue the data for instructions,distance,time 
etc? ..

how can I know whether to turn right or left?


Assume you have two segments a-b and a-c and we want to evaluate it at a

1) you need to check if segment a-b needs to be flipped end to end.

2) because segments can be curves like highway exit ramps you can not 
just use the endpoints, instead you have to use:

ab[npoints], ab[npoints-1] and compute the azimuth of this
ac[1], ac[2] and compute the azimuth of this

3) then based on the change in azimuth you and determine if the route is 
changing directions and turning right or left


See postGIS functions:

ST_NumPoints()
ST_pointN()
Reverse()
Azimuth()

-Steve


RG.
2009/1/20 Stephen Woodbridge wood...@swoodbridge.com 
mailto:wood...@swoodbridge.com


Valeria,

You should really look at the example provided with:
http://pgrouting.postlbs.org/wiki/WorkshopFOSS4G2007

This is what I started with and then made my own modifications. The
above workshop should walk you through how to setup a pgRouting
without my additional hacks which will only confuse you at the moment.

My dd_routing.php is a modified version of ax_routing.php that is
included in the tutorial tarball.

You might also want to read some of these pages if you have not already:
http://www.google.com/search?hl=enq=pgRoutingbtnG=Google+Search
http://www.google.com/search?hl=enq=pgRoutingbtnG=Google+Search

Best regards,
 -Steve W

Valeria Muñoz wrote:

hi Stephen.. thank for the tips...
I have reviewed the code but can only see the dd.html. can you
send me the dd_routing.php? .
 please

thanks for everything
2009/1/19 Stephen Woodbridge wood...@swoodbridge.com
mailto:wood...@swoodbridge.com mailto:wood...@swoodbridge.com
mailto:wood...@swoodbridge.com


   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
   mailto:warmer...@pobox.com mailto:warmer...@pobox.com
mailto:warmer...@pobox.com mailto:warmer...@pobox.com

   mailto: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.



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

2009-01-20 Thread Daniel Kastl
Actually there is wiki page on the pgRouting website how to use
Mapserver with pgRouting:
http://pgrouting.postlbs.org/wiki/MapServerOutput

And there is also a tutorial that makes use of Mapserver:
http://pgrouting.postlbs.org/wiki/pgRoutingDocs#Tutorials

I didn't try the tutorial myself and it could use an older version of
pgRouting. If something doesn't work (anymore), you can also ask on the
pgRouting forum (http://pgrouting.postlbs.org/discussion).

Daniel


Fawcett, David schrieb:
 You may also want to look at the Workshops posted at the pgRouting
 site.  Here is a link to the workshop from FOSS4G2008: 
 http://pgrouting.postlbs.org/wiki/WorkshopFOSS4G2008

 -Original Message-
 *From:* mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of
 *Valeria Muñoz
 *Sent:* Monday, January 19, 2009 2:20 PM
 *To:* Frank Warmerdam
 *Cc:* mapserver-users@lists.osgeo.org
 *Subject:* Re: [mapserver-users] optimal path between two points.

 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.

 Best regards,
 -- 
 
 ---+--
 I set the clouds in motion - turn up   | Frank Warmerdam,
 warmer...@pobox.com mailto:warmer...@pobox.com
 light and sound - activate the windows |
 http://pobox.com/~warmerdam http://pobox.com/%7Ewarmerdam
 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: [Foss4g2009] Integration Showcase Machine 1

2009-01-20 Thread Mark Leslie
I'm looking for some feedback on the requirements of our first machine 
for the FOSS4G 2009 integration showcase.  We are planning on having 
this up and running early next month as a first kick at the cat.

Can any comment on the proposed requirements below?

Mark Leslie
Geospatial Software Architect
LISAsoft

-
Ph: +61 2 8570 5000 Fax: +61 2 8570 5099 Mob: +61
Suite 112, Jones Bay Wharf 19-21 Pirrama Rd Pyrmont NSW 2009
-

LISAsoft is part of the A2end Group of Companies
http://www.ardec.com.au
http://www.lisasoft.com
http://www.terrapages.com


Jody Garnett wrote:

Good Afternoon,

Mark and myself are going to try and set up the first integration 
showcase machine; as I would like to have a sample server to point 
people to when the call for workshops goes out early next month. 
Sticking with what we are comfortable with this machine will be set up 
with MapServer/GeoServer/PostGIS and such sample data as people actually 
donate in time (I am hoping for a range of raster and vector data).


So the question is 

How is this for machine specifications (based on this I am going to go 
and try and round up the hardware).

- 512 G Disk RAID 0
- 4 gigs ram
- 2 cpu (2 core each)

We can go bounce this off the mapserver, geoserver, postgis developer 
lists but I though I would start here.

Jody
___
Foss4g2009 mailing list
foss4g2...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/foss4g2009

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


[mapserver-users] Overlapping lines not shown correctly

2009-01-20 Thread boesiii

I have a shapefile layer which is a polygon layer drawn as a line that has a
dashed apperance.  All the lines don't show up correctly because dashed
lines overlap other dashed lines.  How do I get them to show up correctly?
-- 
View this message in context: 
http://n2.nabble.com/Overlapping-lines-not-shown-correctly-tp2190301p2190301.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] Re: [Foss4g2009] Integration Showcase Machine 1

2009-01-20 Thread Steve Lime
MapServer should run comfortably on that box. Better than what I have
services running on at work. ;-)

Steve

 Mark Leslie mrk.les...@gmail.com 01/20/09 7:02 PM 
I'm looking for some feedback on the requirements of our first machine 
for the FOSS4G 2009 integration showcase.  We are planning on having 
this up and running early next month as a first kick at the cat.
Can any comment on the proposed requirements below?

Mark Leslie
Geospatial Software Architect
LISAsoft

-
Ph: +61 2 8570 5000 Fax: +61 2 8570 5099 Mob: +61
Suite 112, Jones Bay Wharf 19-21 Pirrama Rd Pyrmont NSW 2009
-

LISAsoft is part of the A2end Group of Companies
http://www.ardec.com.au
http://www.lisasoft.com
http://www.terrapages.com


Jody Garnett wrote:
 Good Afternoon,
 
 Mark and myself are going to try and set up the first integration 
 showcase machine; as I would like to have a sample server to point 
 people to when the call for workshops goes out early next month. 
 Sticking with what we are comfortable with this machine will be set up 
 with MapServer/GeoServer/PostGIS and such sample data as people actually 
 donate in time (I am hoping for a range of raster and vector data).
 
 So the question is 
 
 How is this for machine specifications (based on this I am going to go 
 and try and round up the hardware).
 - 512 G Disk RAID 0
 - 4 gigs ram
 - 2 cpu (2 core each)
 
 We can go bounce this off the mapserver, geoserver, postgis developer 
 lists but I though I would start here.
 Jody
 ___
 Foss4g2009 mailing list
 foss4g2...@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/foss4g2009
___
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