From warmerdam@pobox.com Thu May 1 20:37:48 2003 From: warmerdam@pobox.com (Frank Warmerdam) Date: Thu, 01 May 2003 15:37:48 -0400 Subject: [Mapserver-users] how to define this datum? References: Message-ID: <3EB1778C.7070400@pobox.com> pond bear wrote: > I need to show an image whose SPHEROID is ["unnamed",6370997,0]]. How to > define it in mapfile's projection field? Jing, a=6370997 b=6370997 The 0 inverse flattening means the spheroid is a sphere. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jnorton@fs.fed.us Thu May 1 00:01:40 2003 From: jnorton@fs.fed.us (John Norton) Date: Wed, 30 Apr 2003 17:01:40 -0600 Subject: [Mapserver-users] Projection on the Fly Problems Message-ID: Thanks Ed, I agree the UTM zone is required for the example I provided. But, actually I grabbed the example from the wrong map file )-: The projection that is causing problems is the latlong which I am trying to convert to aea. So my layers look like... LAYER NAME "Fires" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "c:/msapps/maplab/large_fires/data/l48/tburn111,3" STATUS ON PROJECTION "proj=latlong" "ellps=clrk66" "datum=NAD27" END CLASSITEM "Status" CLASS NAME Burning Expression "502" COLOR 255 0 0 END CLASS NAME Burnt Expression "501" COLOR 255 255 0 END END LAYER NAME "States" STATUS ON DATA "states" TYPE LINE PROJECTION "proj=latlong" "ellps=clrk66" "datum=NAD27" END CLASS NAME "Boundary" SYMBOL 14 COLOR 120 120 120 SIZE 1 END END ------------------------------------------------------ John Norton USDA-RSAC 2222 W 2300 S Salt Lake City, UT 84119 Phone: 801-975-3766 Fax: 801-975-3478 Intranet: fsweb.rsac.fs.fed.us Internet: www.fs.fed.us/eng/rsac/ ------------------------------------------------------ "Ed McNierney" To: "John Norton" , Sent by: cc: mapserver-users-admin@lists. Subject: RE: [Mapserver-users] Projection on the Fly Problems gis.umn.edu 04/30/2003 03:06 PM John - You aren't providing enough information to specify your UTM projections. You need to specify the central meridian (i.e. the UTM zone) each is in. You might find it easier to look up the EPSG codes for each projection and just use the codes. They're more cryptic but less error-prone. You can find them at http://mapserver.gis.umn.edu/doc/proj.html The NAD27 UTM zones are five-digit numbers of the form "267zz" where zz is the two-digit (pad with a leading zero) zone number. So to define a UTM Zone 9, NAD27 projection you can say: PROJECTION "init=epsg:26709" END - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: John Norton [mailto:jnorton@fs.fed.us] Sent: Wednesday, April 30, 2003 4:49 PM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Projection on the Fly Problems I Have a map file with two layers... LAYER NAME "Fires" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "c:/msapps/maplab/large_fires/data/l48/tburn111,3" STATUS ON PROJECTION "proj=utm" "ellps=clrk66" "datum=NAD27" END CLASSITEM "Status" CLASS NAME Burning Expression "502" COLOR 255 0 0 END CLASS NAME Burnt Expression "501" COLOR 255 255 0 END END LAYER NAME "States" STATUS ON DATA "states" TYPE LINE PROJECTION "proj=utm" "ellps=clrk66" "datum=NAD27" END CLASS NAME "Boundary" SYMBOL 14 COLOR 120 120 120 SIZE 1 END END I am trying to project these using mapscript with code that looks like this... $map = ms_newMapObj($map_path."l48c.map"); $result=$map->setProjection ("proj=aea,ellps=clrk66,datum=NAD27,lat_1=29.5,lat_2=45.5,lat_0=23,lon_0 =-96,x_0=0,y_0=0,units=m",MS_TRUE); $image=$map->draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); $projection = $map->getProjection(); No errors, setProjection returns 0 which I guess means the projection didn't take but, when I echo $projection it reports the projection string with commas replace by plus signs. The problem is I get no image. I am using Mapscript... MapServer version 3.6.6-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Same thing happens when I run mapscript as a CGI.... MapServer version 3.7 (development) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PD F OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=GD2_RGB INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAP EFILE Is this a units problem my data is in decimal degrees? I think I have PROJ installed correctly it is in c:\proj with a path to the bin directory. I also tried (meaning I added it to the PHP.ini file as an extension) the PHP extension php_proj.dll. Are these conflicting? Cheers ------------------------------------------------------ John Norton USDA-RSAC 2222 W 2300 S Salt Lake City, UT 84119 Phone: 801-975-3766 Fax: 801-975-3478 Intranet: fsweb.rsac.fs.fed.us Internet: www.fs.fed.us/eng/rsac/ ------------------------------------------------------ _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From BBruce@gov.mb.ca Thu May 1 00:54:12 2003 From: BBruce@gov.mb.ca (Bruce, Bob (CON)) Date: Wed, 30 Apr 2003 18:54:12 -0500 Subject: [Mapserver-users] Non-Rectangular Tiles in TILEINDEX ? Message-ID: <67AA2C4FAC30D611A8F600306E1C245101545C8D@WPG001EX11> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C30F73.CC874A60 Content-Type: text/plain; charset="iso-8859-1" I have been experimenting with TILEINDEXs in order to evaluate their functionality for my applications. I have successfully displayed a TILEINDEX of 20 orthophotos in my browser. Next I wanted to try displaying a set of project mapping areas and built an index map of polygons of these areas. I included this index map as a TILEINDEX in my map file and do not get anything displayed, instead I get a blank display. This leads me to wonder if this is because my tile polygons are non-rectangular. Does the Map Server require tiles to be rectangular or can it work with irregularly shaped tiles? I have successfully displayed my dataset that I'm using as a TILEINDEX as a line file, so I know that the server will work with this file. For your reference, I have included the definition of this layer: LAYER # DLS Polys NAME "DLSPolys" TILEINDEX "TilesWWinnipeg_CARIS/TilesWWinnipeg" TILEITEM "MAPKEY" STATUS DEFAULT TYPE POLYGON CLASSITEM "MAPKEY" CLASS # Whole DLS Parcel STATUS ON NAME "WHOLE DLSPOLY" COLOR 255 202 149 OUTLINECOLOR 0 0 0 END # end of Whole DLS Parcel class object END # end of layer object thanks, Bob Bruce **************************************************************************** ****************************** ** Bob Bruce, P.Eng. Geomatics Support Engineer ** bbruce@gov.mb.ca Manitoba Geomatics/Remote Sensing Branch, ** work # (204) 945-6636 1007 Century Street, ** home # (204) 256-4615 Winnipeg, Manitoba, Canada, R3H 0W4 ** FAX # (204) 945-1365 ** ** The Manitoba Centre for: ** Cadastral & Topographical Mapping, and Remote Sensing ** See us on the Web at: http://www.gov.mb.ca/conservation/geomatics/ cada_mapping/index.html ** and: http://www.gov.mb.ca/conservation/geomatics/index.html ** Check out our digital maps at: http:// mli.gov.mb.ca/ **************************************************************************** ****************************** ------_=_NextPart_001_01C30F73.CC874A60 Content-Type: text/html; charset="iso-8859-1"
I have been experimenting with TILEINDEXs in order to evaluate their functionality for my applications.
 
I have successfully displayed a TILEINDEX of 20 orthophotos in my browser.
 
Next I wanted to try displaying a set of project mapping areas and built an index map of polygons of these areas. I included this index map as a TILEINDEX in my map file and do not get anything displayed, instead I get a blank display. This leads me to wonder if this is because my tile polygons are non-rectangular. Does the Map Server require tiles to be rectangular or can it work with irregularly shaped tiles? I have successfully displayed my dataset that I'm using as a TILEINDEX as a line file, so I know that the server will work with this file.
 
For your reference, I have included the definition of this layer:
 
LAYER # DLS Polys
  NAME "DLSPolys"
  TILEINDEX "TilesWWinnipeg_CARIS/TilesWWinnipeg"
  TILEITEM "MAPKEY"
  STATUS DEFAULT
  TYPE POLYGON
  CLASSITEM "MAPKEY"
  CLASS # Whole DLS Parcel
    STATUS ON
    NAME "WHOLE DLSPOLY"
    COLOR 255 202 149
    OUTLINECOLOR 0 0 0
  END # end of Whole DLS Parcel class object
END # end of layer object
thanks,
            Bob Bruce
**********************************************************************************************************
**    Bob Bruce, P.Eng.         Geomatics Support Engineer
**    bbruce@gov.mb.ca          Manitoba Geomatics/Remote Sensing Branch,
**    work # (204) 945-6636             1007 Century Street,
**    home # (204) 256-4615             Winnipeg, Manitoba, Canada, R3H 0W4
**    FAX  # (204) 945-1365            
**
**    The Manitoba Centre for: 
**      Cadastral & Topographical Mapping, and Remote Sensing
**      See us on the Web at: http://www.gov.mb.ca/conservation/geomatics/cada_mapping/index.html

**          and: http://www.gov.mb.ca/conservation/geomatics/index.html
**      Check out our digital maps at: http://mli.gov.mb.ca/
**********************************************************************************************************
 
------_=_NextPart_001_01C30F73.CC874A60-- From collao_andres@hotmail.com Thu May 1 01:01:00 2003 From: collao_andres@hotmail.com (=?iso-8859-1?B?QW5kculzIENvbGxhbw==?=) Date: Thu, 01 May 2003 00:01:00 +0000 Subject: [Mapserver-users] line size Message-ID: problem: I have a layer of axes of streets, which will be drawn with a greater thickness if the used scale between 0.2[km ] and 8[km ]. But when using the line style that brings by default mapserver and several the SIZE, for example, to 20 does not pass anything. In view of the previous thing I decided to define a SYMBOL (a ellipse) draws them well using apache+windows, I can several its size and color, but when taking them to the servant who has apache+linux it happens that in accordance with to be making zoom lens in and zoom lens out the line begins to change by itself of color, even presented/displayed combinations of colors (to enter gray and green) solution: remove symbol and santo remedy asks: as I can change the size of a line according to the zoom lens? you have idea of pq' could happen the previous thing? thanks --------------- Andrés Collao. --------------- collao_andres@hotmail.com andres@mapserver.cl :-- Il peggior nemico del succeso è la pauta del fallimiento :-- El peor enemigo del éxito es el miedo al fracaso _________________________________________________________________ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.yupimsn.com/ From ed@topozone.com Thu May 1 01:22:27 2003 From: ed@topozone.com (Ed McNierney) Date: Wed, 30 Apr 2003 20:22:27 -0400 Subject: [Mapserver-users] Projection on the Fly Problems Message-ID: <13858AA1A74F30419F319ACB66A9D1220196B5@mercator.topozone.com> John - I would recommend "init=epsg:4267", but those should be fine. Can you send the PROJECTION object for the main MAP file, too, along with the EXTENT (either in the mapfile or as a parameter) that you're trying to view? The most common cause of invisible reprojections is data that's reprojected right out of the view frame. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: John Norton [mailto:jnorton@fs.fed.us] Sent: Wednesday, April 30, 2003 7:02 PM To: Ed McNierney Cc: mapserver-users@lists.gis.umn.edu; mapserver-users-admin@lists.gis.umn.edu Subject: RE: [Mapserver-users] Projection on the Fly Problems Thanks Ed, I agree the UTM zone is required for the example I provided. But, actually I grabbed the example from the wrong map file )-: The projection that is causing problems is the latlong which I am trying to convert to aea. So my layers look like... LAYER NAME "Fires" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "c:/msapps/maplab/large_fires/data/l48/tburn111,3" STATUS ON PROJECTION "proj=latlong" "ellps=clrk66" "datum=NAD27" END CLASSITEM "Status" CLASS NAME Burning Expression "502" COLOR 255 0 0 END CLASS NAME Burnt Expression "501" COLOR 255 255 0 END END LAYER NAME "States" STATUS ON DATA "states" TYPE LINE PROJECTION "proj=latlong" "ellps=clrk66" "datum=NAD27" END CLASS NAME "Boundary" SYMBOL 14 COLOR 120 120 120 SIZE 1 END END ------------------------------------------------------ John Norton USDA-RSAC 2222 W 2300 S Salt Lake City, UT 84119 Phone: 801-975-3766 Fax: 801-975-3478 Intranet: fsweb.rsac.fs.fed.us Internet: www.fs.fed.us/eng/rsac/ ------------------------------------------------------ "Ed McNierney" To: "John Norton" , Sent by: cc: mapserver-users-admin@lists. Subject: RE: [Mapserver-users] Projection on the Fly Problems gis.umn.edu 04/30/2003 03:06 PM John - You aren't providing enough information to specify your UTM projections. You need to specify the central meridian (i.e. the UTM zone) each is in. You might find it easier to look up the EPSG codes for each projection and just use the codes. They're more cryptic but less error-prone. You can find them at http://mapserver.gis.umn.edu/doc/proj.html The NAD27 UTM zones are five-digit numbers of the form "267zz" where zz is the two-digit (pad with a leading zero) zone number. So to define a UTM Zone 9, NAD27 projection you can say: PROJECTION "init=epsg:26709" END - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: John Norton [mailto:jnorton@fs.fed.us] Sent: Wednesday, April 30, 2003 4:49 PM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Projection on the Fly Problems I Have a map file with two layers... LAYER NAME "Fires" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "c:/msapps/maplab/large_fires/data/l48/tburn111,3" STATUS ON PROJECTION "proj=utm" "ellps=clrk66" "datum=NAD27" END CLASSITEM "Status" CLASS NAME Burning Expression "502" COLOR 255 0 0 END CLASS NAME Burnt Expression "501" COLOR 255 255 0 END END LAYER NAME "States" STATUS ON DATA "states" TYPE LINE PROJECTION "proj=utm" "ellps=clrk66" "datum=NAD27" END CLASS NAME "Boundary" SYMBOL 14 COLOR 120 120 120 SIZE 1 END END I am trying to project these using mapscript with code that looks like this... $map = ms_newMapObj($map_path."l48c.map"); $result=$map->setProjection ("proj=aea,ellps=clrk66,datum=NAD27,lat_1=29.5,lat_2=45.5,lat_0=23,lon_0 =-96,x_0=0,y_0=0,units=m",MS_TRUE); $image=$map->draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); $projection = $map->getProjection(); No errors, setProjection returns 0 which I guess means the projection didn't take but, when I echo $projection it reports the projection string with commas replace by plus signs. The problem is I get no image. I am using Mapscript... MapServer version 3.6.6-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Same thing happens when I run mapscript as a CGI.... MapServer version 3.7 (development) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PD F OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=GD2_RGB INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAP EFILE Is this a units problem my data is in decimal degrees? I think I have PROJ installed correctly it is in c:\proj with a path to the bin directory. I also tried (meaning I added it to the PHP.ini file as an extension) the PHP extension php_proj.dll. Are these conflicting? Cheers ------------------------------------------------------ John Norton USDA-RSAC 2222 W 2300 S Salt Lake City, UT 84119 Phone: 801-975-3766 Fax: 801-975-3478 Intranet: fsweb.rsac.fs.fed.us Internet: www.fs.fed.us/eng/rsac/ ------------------------------------------------------ _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From ed@topozone.com Thu May 1 01:26:21 2003 From: ed@topozone.com (Ed McNierney) Date: Wed, 30 Apr 2003 20:26:21 -0400 Subject: [Mapserver-users] Non-Rectangular Tiles in TILEINDEX ? Message-ID: <13858AA1A74F30419F319ACB66A9D1221F42B2@mercator.topozone.com> This is a multi-part message in MIME format. ------_=_NextPart_001_01C30F78.4A792363 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Bob - =20 Your TILEINDEX should be rectangles. The intent of a TILEINDEX is to allow MapServer to quickly determine whether to examine an input file to see if it has any visible features on the current map request. Rectangular tiles can be very quickly examined to see if they intersect the map viewframe. If so, the source is opened and any files that REALLY intersect the view are drawn. =20 Supporting non-rectangular tiles would be more complex and somewhat slower, and would probably be of rather little benefit in most applications. A good combination of rectangular tile indexes and spatial indexing will produce very good performance. =20 - Ed =20 Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com =20 -----Original Message----- From: Bruce, Bob (CON) [mailto:BBruce@gov.mb.ca]=20 Sent: Wednesday, April 30, 2003 7:54 PM To: 'Mapserver Mailing List' Subject: [Mapserver-users] Non-Rectangular Tiles in TILEINDEX ? =20 I have been experimenting with TILEINDEXs in order to evaluate their functionality for my applications. =20 I have successfully displayed a TILEINDEX of 20 orthophotos in my browser. =20 Next I wanted to try displaying a set of project mapping areas and built an index map of polygons of these areas. I included this index map as a TILEINDEX in my map file and do not get anything displayed, instead I get a blank display. This leads me to wonder if this is because my tile polygons are non-rectangular. Does the Map Server require tiles to be rectangular or can it work with irregularly shaped tiles? I have successfully displayed my dataset that I'm using as a TILEINDEX as a line file, so I know that the server will work with this file. =20 For your reference, I have included the definition of this layer: =20 LAYER # DLS Polys NAME "DLSPolys" TILEINDEX "TilesWWinnipeg_CARIS/TilesWWinnipeg" TILEITEM "MAPKEY" STATUS DEFAULT TYPE POLYGON CLASSITEM "MAPKEY" CLASS # Whole DLS Parcel STATUS ON NAME "WHOLE DLSPOLY" COLOR 255 202 149 OUTLINECOLOR 0 0 0 END # end of Whole DLS Parcel class object END # end of layer object thanks, Bob Bruce ************************************************************************ **********************************=20 ** Bob Bruce, P.Eng. Geomatics Support Engineer=20 ** bbruce@gov.mb.ca Manitoba Geomatics/Remote Sensing Branch,=20 ** work # (204) 945-6636 1007 Century Street,=20 ** home # (204) 256-4615 Winnipeg, Manitoba, Canada, R3H 0W4=20 ** FAX # (204) 945-1365 =20 **=20 ** The Manitoba Centre for: =20 ** Cadastral & Topographical Mapping, and Remote Sensing=20 ** See us on the Web at: http://www.gov.mb.ca/conservation/geomatics/cada_mapping/index.html ** and: http://www.gov.mb.ca/conservation/geomatics/index.html=20 ** Check out our digital maps at: http://mli.gov.mb.ca/=20 ************************************************************************ ********************************** =20 ------_=_NextPart_001_01C30F78.4A792363 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Bob –

 

Your TILEINDEX should be = rectangles.  The intent of a TILEINDEX is to allow MapServer to quickly determine whether = to examine an input file to see if it has any visible features on the = current map request.  Rectangular tiles can be very quickly examined to see if = they intersect the map viewframe.  If so, the source is opened and any = files that REALLY intersect the view are drawn.

 

Supporting non-rectangular tiles = would be more complex and somewhat slower, and would probably be of rather little benefit in most applications.  A good combination of rectangular = tile indexes and spatial indexing will produce very good = performance.

 

      =       - Ed

 

Ed McNierney

President and Chief = Mapmaker

TopoZone.com / Maps a la carte, = Inc.

73 Princeton Street, Suite = 305

North Chelmsford, MA  = 01863

Phone: (978) 251-4242  Fax: = (978) 251-1396

ed@topozone.com

 

-----Original = Message-----
From: Bruce, Bob (CON) [mailto:BBruce@gov.mb.ca]
Sent: Wednesday, April = 30, 2003 7:54 PM
To: 'Mapserver Mailing = List'
Subject: = [Mapserver-users] Non-Rectangular Tiles in TILEINDEX ?

 

I have been experimenting = with TILEINDEXs in order to evaluate their functionality for my = applications.

 

I have successfully = displayed a TILEINDEX of 20 orthophotos in my browser.

 

Next I wanted to try = displaying a set of project mapping areas and built an index map of polygons of these = areas. I included this index map as a TILEINDEX in my map file and do not get = anything displayed, instead I get a blank display. This leads me to wonder if = this is because my tile polygons are non-rectangular. Does the Map Server = require tiles to be rectangular or can it work with irregularly shaped tiles? I have successfully displayed my dataset that I'm using as a TILEINDEX as a = line file, so I know that the server will work with this file.

 

For your reference, I have = included the definition of this layer:

 

LAYER # DLS Polys
  NAME "DLSPolys"
  TILEINDEX "TilesWWinnipeg_CARIS/TilesWWinnipeg"
  TILEITEM "MAPKEY"
  STATUS DEFAULT
  TYPE POLYGON
  CLASSITEM "MAPKEY"
  CLASS # Whole DLS Parcel
    STATUS ON
    NAME "WHOLE DLSPOLY"
    COLOR 255 202 149
    OUTLINECOLOR 0 0 0
  END # end of Whole DLS Parcel class object
END # end of layer object

thanks,

    &nbs= p;       Bob Bruce

******************= *************************************************************************= ***************
**    Bob Bruce, P.Eng.         Geomatics Support = Engineer
**    = bbruce@gov.mb.ca          Manitoba Geomatics/Remote = Sensing Branch,
**    work # (204) 945-6636     =         1007 Century Street,
**    home # (204) 256-4615     =         Winnipeg, Manitoba, Canada, R3H 0W4
**    FAX  # (204) 945-1365     =        
**
**    The Manitoba Centre for: 
**      Cadastral = & Topographical Mapping, and Remote Sensing
**      See us on = the Web at: http://www.gov.mb.ca/conservation/geomatics/cada_mappin= g/index.html
**          = and: http://www.gov.mb.ca/conservation/geomatics/index.html<= /a>
**      Check= out our digital maps at:
http://mli.gov.mb.ca/
*************************************************************************= *********************************

 

=00 ------_=_NextPart_001_01C30F78.4A792363-- From sanjaykumartiwary44@yahoo.co.in Thu May 1 12:19:26 2003 From: sanjaykumartiwary44@yahoo.co.in (=?iso-8859-1?q?sanjay=20tiwary?=) Date: Thu, 1 May 2003 12:19:26 +0100 (BST) Subject: [Mapserver-users] shapefiles Message-ID: <20030501111926.913.qmail@web8202.mail.in.yahoo.com> --0-2000100914-1051787966=:306 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi All I have used examle given on the link http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH73which is working fine.Now i want to use the same example with the shape files i am gettingfrom the link http://www.vdstech.com/map_data.htm ( data - india)but the final output is a blank page, nothing is diplyed. How it is happening? I have changed the name of data section in the .map file to include new data.Everything else remains same.How to get that? Sanjay Catch all the cricket action. Download Yahoo! Score tracker --0-2000100914-1051787966=:306 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Hi All
         I have used examle given on the link http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH73
which is working fine.Now i want to use the same example with the shape files i am gettingfrom the link  http://www.vdstech.com/map_data.htm ( data - india)
but the final output is a blank page, nothing is diplyed.
                                   How it is happening? I have changed the name of data section in the .map file to include new data.Everything else remains same.How to get that?
                                         Sanjay

Catch all the cricket action. Download Yahoo! Score tracker --0-2000100914-1051787966=:306-- From schut@sarvision.com Thu May 1 13:09:51 2003 From: schut@sarvision.com (Vincent Schut) Date: Thu, 1 May 2003 14:09:51 +0200 Subject: [Mapserver-users] shapefiles In-Reply-To: <20030501111926.913.qmail@web8202.mail.in.yahoo.com> References: <20030501111926.913.qmail@web8202.mail.in.yahoo.com> Message-ID: <200305011409.51591.schut@sarvision.com> Probably you will have to change the 'extent' parameter in the map file. Try setting it to the boundingbox of the shapes you have. If you don't know this, (i think) you can obtain the bounding box coordinates using the ogrinfo utility that comes with gdal. Eventually change the projection and units also. Regards, Vincent Schut. On Thursday 01 May 2003 13:19, sanjay tiwary wrote: > Hi All I have used examle given on the link > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH73which is > working fine.Now i want to use the same example with the shape files i am > gettingfrom the link http://www.vdstech.com/map_data.htm ( data - > india)but the final output is a blank page, nothing is diplyed. > How it is happening? I have changed the name of data > section in the .map file to include new data.Everything else remains > same.How to get that? Sanjay Catch > all the cricket action. Download Yahoo! Score tracker -- ______________________________________ Vincent Schut (schut@sarvision.com) Sarvision B.V. Wageningen, The Netherlands www.sarvision.com From bpicinbono@worldonline.fr Thu May 1 14:38:12 2003 From: bpicinbono@worldonline.fr (=?iso-8859-1?Q?bpicinbono@worldonline.fr?=) Date: Thu, 1 May 2003 15:38:12 +0200 Subject: [Mapserver-users] =?iso-8859-1?Q?label_and_mysql?= Message-ID: label and mysql Hi everybody I am still wondering how to label shapes with datas coming from MySql. Dan gave me a nice example, but, unfortunately, I can't manage to make it work. I am working with MapScript 3.6.2 and I wonder if the problem is that MS 3.6.2 doesn't know the "annotation" type layers ? ? ?. Here are my settings when I hit the phpinfo page : MapScript Version ($Revision: 1.104.2.4 $ $Date: 2002/07/08 20:04:58 $) MapServer version 3.6.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE I am using .phtml and .php pages which are working pretty similar to the ones of the "gmap75" demo. Here is the answer that Dan gave me when I first asked the question : <<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>> Blaise, Yes it can be done...here is some simple example code in php/mapscript and the associated map file layer. Dan $map = ms_newMapObj($mapPath.$mapFile); $image=$map->draw(); $testlayer = $map->getLayerByName("labels"); $testpt = ms_newPointObj(); $testpt->setXY( 200, 200 ); $testpt->draw($map, $testlayer, $image, 'labels', 'Hello World'); $testpt2 = ms_newPointObj(); $testpt2->setXY( 300, 200 ); $testpt2->draw($map, $testlayer, $image, 'labels2', 'GoodBye World'); LAYER NAME labels STATUS on TRANSFORM false TYPE annotation CLASS NAME labels LABEL type truetype font verdana-bold bold size 8 antialias true backgroundshadowcolor 51 51 51 backgroundshadowsize 2 2 color 51 51 51 position UR END END CLASS NAME labels2 LABEL type truetype font coopperplate-gothic-bold size 8 antialias true backgroundshadowcolor 51 51 51 backgroundshadowsize 2 2 color 51 51 51 position UR END END END <<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>> I am a bit confused about where to put this piece of php code. As, in my php page, the only $map->draw() command is in the GMapDrawMap function, I put it there. Here is my map file related to the label layer : <<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>> ################################## layer labels ############# LAYER NAME labels STATUS ON TRANSFORM false TYPE annotation CLASS NAME labels LABEL TYPE truetype FONT fritqat SIZE 12 COLOR 0 0 255 POSITION UR END END END # Layer <<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>> and here is the beginning of the GMapDrawMap function where I inserted Dan's code: <<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>> /************************************************************************/ /* function GMapDrawMap() */ /* */ /* Funcion to draw the contains of the map. */ /************************************************************************/ function GMapDrawMap() { GLOBAL $gpoMap, $gbShowQueryResults; GLOBAL $gbIsHtmlMode; GLOBAL $gszCommand, $gszZoomBoxExt; GLOBAL $gAppletImgFmt, $gImagesFmt; GLOBAL $TLayer; // if ($gbShowQueryResults) // $img = $gpoMap->drawQuery(); // else // $img = $gpoMap->draw(); //----------------------------------- test label--------- $map=ms_newMapObj("label_2.map"); $img=$map->draw(); $testlayer=$map->getLayerByName("labels"); $testpt=ms_newPointObj(); $testpt->setXY(100,100); $testpt->draw($map,$testlayer,$img, 'labels', 'Hello World'); //------------------------------- end test label--------- $url = $img->saveWebImage($gAppletImgFmt, 0, 0, -1); echo "\n".$gszZoomBoxExt."\n"; printf("", $gpoMap->extent->minx); printf("", $gpoMap->extent->miny); printf("", $gpoMap->extent->maxx); printf("", $gpoMap->extent->maxy); etc,etc,etc.......... <<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>> As I disabled the $gpoMap variable, I can't zoom in, out,etc anymore, but that's ok until I get my labels on the map. But unfortunately, the label 'Hello World' doesn't show. In the "$testpt->setXY(100,100);" line, I tried to put the X,Y of the middle of my mapextent, tried to comment the " TRANSFORM false" line in my map file, but this doesn't work neither. I am wondering what is wrong, and does the version 3.6.2 of MapServer/MapScript support the annotation type for a layer ? Thanks a lot for your help, and many thanks for the MapServer team who are doing a great job. I am very satisfied with this software. Blaise P.S.: Excuse me for the poor text formating but my company' internet conncetion is rock-age, so I have to fight to put some text on the internet, sorry about that. ************ VITE, C'EST LE MOMENT DE VOUS ABONNER A L'ADSL !!! ********** Du 3 avril au 5 mai, série limitée ADSL 128K, cliquez vite ici : http://register.tiscali.fr/adsl/ Offre promotionnelle soumise à conditions, réservée aux nouveaux abonnés ADSL Tiscali. From fx.gamoy@mapxplore.com Thu May 1 16:24:50 2003 From: fx.gamoy@mapxplore.com (fx gamoy) Date: Thu, 1 May 2003 16:24:50 +0100 Subject: [Mapserver-users] Tileindex and raster image Message-ID: <000c01c30ff5$ce887780$0201a8c0@mapxplore.com> C'est un message de format MIME en plusieurs parties. ------=_NextPart_000_0009_01C30FFE.3045DAA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hello everybody, i have tested successfully the script made by Chip Hankley in order to = break large vector shapefiles into regular-sized shapefiles. Thanks to = him for this very efficient contribution http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VectorTileIndex Now i would like to do the same with large raster image and arcview. So = i am looking for a script working with ARCVIEW or MAPINFO which is able = to generate rastertileindex.. Any idea?? thanks fx gamoy http://www.mapxplore.com/=20 ------=_NextPart_000_0009_01C30FFE.3045DAA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

hello everybody,
i have tested successfully the script = made by Chip=20 Hankley in order to break large vector shapefiles into regular-sized = shapefiles.=20 Thanks to him for this very efficient contribution
htt= p://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VectorTileIndex
 
Now i would like to do the same with = large raster=20 image and arcview. So i am looking for a script working with ARCVIEW or=20 MAPINFO which is able to generate rastertileindex..
Any idea??
 
thanks
fx gamoy
http://www.mapxplore.com/ 
------=_NextPart_000_0009_01C30FFE.3045DAA0-- From jnorton@fs.fed.us Thu May 1 15:52:43 2003 From: jnorton@fs.fed.us (John Norton) Date: Thu, 1 May 2003 08:52:43 -0600 Subject: [Mapserver-users] Projection on the Fly Problems Message-ID: Ed, Thanks! I am a bit confused about the extent issue when reprojecting. I do not have a (re)projection object for the map. The extent is set to... EXTENT -125.32 22.62 -66.98 51.48 Which is appropriate for the projection of the layers which are good with init=epsg:4267. I thought that using this mapscript map method... $result=$map->setProjection ("proj=aea,ellps=clrk66,datum=NAD27,lat_1=29.5,lat_2=45.5,lat_0=23,lon_0 =-96,x_0=0,y_0=0,units=m",MS_TRUE); would change the projection for the map object and set the extent with the appropriate values for the new projection. Anyway here is my entire map file... MAP NAME "Lower 48" STATUS ON EXTENT -125.32 22.62 -66.98 51.48 SIZE 800 600 SHAPEPATH "data/l48/" SYMBOLSET "/msapps/maplab/large_fires/etc/symbols.sym" FONTSET "/msapps/maplab/large_fires/etc/fonts.txt" WEB HEADER lf_header.html TEMPLATE lf.html FOOTER lf_footer.html IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER NAME "Burn" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "c:/msapps/maplab/large_fires/data/l48/tburn111,3" STATUS ON PROJECTION "init=epsg:4267" END CLASSITEM "Status" CLASS NAME Burning Expression "502" COLOR 255 0 0 END CLASS NAME Burnt Expression "501" COLOR 255 255 0 END END LAYER NAME "States" STATUS ON DATA "states" TYPE LINE PROJECTION "init=epsg:4267" END CLASS NAME "Boundary" SYMBOL 14 COLOR 120 120 120 SIZE 1 END END END and this the script that I am using to display the map. getProjection(); $result=$map->setProjection ("proj=aea,ellps=clrk66,datum=NAD27,lat_1=29.5,lat_2=45.5,lat_0=23,lon_0 =-96,x_0=0,y_0=0,units=m",MS_TRUE); $image=$map->draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); $projection2 = $map->getProjection(); ?> Displaying a map > "."2:".$projection2."
".$result; ?> $projection1 comes up null and $projection2 comes up as : +proj=aea+ellps=clrk66+datum=NAD27+lat_1=29.5+lat_2=45.5+lat_0=23+lon_0 =-96+x_0=0+y_0=0+units=m and result comes up as 0. Cheers ------------------------------------------------------ John Norton USDA-RSAC 2222 W 2300 S Salt Lake City, UT 84119 Phone: 801-975-3766 Fax: 801-975-3478 Intranet: fsweb.rsac.fs.fed.us Internet: www.fs.fed.us/eng/rsac/ ------------------------------------------------------ "Ed McNierney" To: "John Norton" Sent by: cc: , mapserver-users-admin@lists. gis.umn.edu Subject: RE: [Mapserver-users] Projection on the Fly Problems 04/30/2003 06:22 PM John - I would recommend "init=epsg:4267", but those should be fine. Can you send the PROJECTION object for the main MAP file, too, along with the EXTENT (either in the mapfile or as a parameter) that you're trying to view? The most common cause of invisible reprojections is data that's reprojected right out of the view frame. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: John Norton [mailto:jnorton@fs.fed.us] Sent: Wednesday, April 30, 2003 7:02 PM To: Ed McNierney Cc: mapserver-users@lists.gis.umn.edu; mapserver-users-admin@lists.gis.umn.edu Subject: RE: [Mapserver-users] Projection on the Fly Problems Thanks Ed, I agree the UTM zone is required for the example I provided. But, actually I grabbed the example from the wrong map file )-: The projection that is causing problems is the latlong which I am trying to convert to aea. So my layers look like... LAYER NAME "Fires" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "c:/msapps/maplab/large_fires/data/l48/tburn111,3" STATUS ON PROJECTION "proj=latlong" "ellps=clrk66" "datum=NAD27" END CLASSITEM "Status" CLASS NAME Burning Expression "502" COLOR 255 0 0 END CLASS NAME Burnt Expression "501" COLOR 255 255 0 END END LAYER NAME "States" STATUS ON DATA "states" TYPE LINE PROJECTION "proj=latlong" "ellps=clrk66" "datum=NAD27" END CLASS NAME "Boundary" SYMBOL 14 COLOR 120 120 120 SIZE 1 END END ------------------------------------------------------ John Norton USDA-RSAC 2222 W 2300 S Salt Lake City, UT 84119 Phone: 801-975-3766 Fax: 801-975-3478 Intranet: fsweb.rsac.fs.fed.us Internet: www.fs.fed.us/eng/rsac/ ------------------------------------------------------ "Ed McNierney" To: "John Norton" , Sent by: cc: mapserver-users-admin@lists. Subject: RE: [Mapserver-users] Projection on the Fly Problems gis.umn.edu 04/30/2003 03:06 PM John - You aren't providing enough information to specify your UTM projections. You need to specify the central meridian (i.e. the UTM zone) each is in. You might find it easier to look up the EPSG codes for each projection and just use the codes. They're more cryptic but less error-prone. You can find them at http://mapserver.gis.umn.edu/doc/proj.html The NAD27 UTM zones are five-digit numbers of the form "267zz" where zz is the two-digit (pad with a leading zero) zone number. So to define a UTM Zone 9, NAD27 projection you can say: PROJECTION "init=epsg:26709" END - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: John Norton [mailto:jnorton@fs.fed.us] Sent: Wednesday, April 30, 2003 4:49 PM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Projection on the Fly Problems I Have a map file with two layers... LAYER NAME "Fires" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "c:/msapps/maplab/large_fires/data/l48/tburn111,3" STATUS ON PROJECTION "proj=utm" "ellps=clrk66" "datum=NAD27" END CLASSITEM "Status" CLASS NAME Burning Expression "502" COLOR 255 0 0 END CLASS NAME Burnt Expression "501" COLOR 255 255 0 END END LAYER NAME "States" STATUS ON DATA "states" TYPE LINE PROJECTION "proj=utm" "ellps=clrk66" "datum=NAD27" END CLASS NAME "Boundary" SYMBOL 14 COLOR 120 120 120 SIZE 1 END END I am trying to project these using mapscript with code that looks like this... $map = ms_newMapObj($map_path."l48c.map"); $result=$map->setProjection ("proj=aea,ellps=clrk66,datum=NAD27,lat_1=29.5,lat_2=45.5,lat_0=23,lon_0 =-96,x_0=0,y_0=0,units=m",MS_TRUE); $image=$map->draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); $projection = $map->getProjection(); No errors, setProjection returns 0 which I guess means the projection didn't take but, when I echo $projection it reports the projection string with commas replace by plus signs. The problem is I get no image. I am using Mapscript... MapServer version 3.6.6-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Same thing happens when I run mapscript as a CGI.... MapServer version 3.7 (development) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PD F OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=GD2_RGB INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAP EFILE Is this a units problem my data is in decimal degrees? I think I have PROJ installed correctly it is in c:\proj with a path to the bin directory. I also tried (meaning I added it to the PHP.ini file as an extension) the PHP extension php_proj.dll. Are these conflicting? Cheers ------------------------------------------------------ John Norton USDA-RSAC 2222 W 2300 S Salt Lake City, UT 84119 Phone: 801-975-3766 Fax: 801-975-3478 Intranet: fsweb.rsac.fs.fed.us Internet: www.fs.fed.us/eng/rsac/ ------------------------------------------------------ _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From schut@sarvision.com Thu May 1 15:54:11 2003 From: schut@sarvision.com (Vincent Schut) Date: Thu, 1 May 2003 16:54:11 +0200 Subject: [Mapserver-users] Tileindex and raster image In-Reply-To: <000c01c30ff5$ce887780$0201a8c0@mapxplore.com> References: <000c01c30ff5$ce887780$0201a8c0@mapxplore.com> Message-ID: <200305011654.11482.schut@sarvision.com> See the raster-howto in the docs on the mapserver site: http://mapserver.gis.umn.edu/doc/raster-howto.html (section: rasters and tile indexing). For more info on the gdaltindex utility, see the gdal pages (www.remotesensing.org/gdal ), utility programs. Regards. Vincent Schut. On Thursday 01 May 2003 17:24, fx gamoy wrote: > hello everybody, > i have tested successfully the script made by Chip Hankley in order to > break large vector shapefiles into regular-sized shapefiles. Thanks to him > for this very efficient contribution > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VectorTileIndex > > Now i would like to do the same with large raster image and arcview. So i > am looking for a script working with ARCVIEW or MAPINFO which is able to > generate rastertileindex.. Any idea?? > > thanks > fx gamoy > http://www.mapxplore.com/ -- ______________________________________ Vincent Schut (schut@sarvision.com) Sarvision B.V. Wageningen, The Netherlands www.sarvision.com From babak.tehrani@geosysnet.de Thu May 1 15:34:07 2003 From: babak.tehrani@geosysnet.de (Babak Toloue Tehrani) Date: 01 May 2003 16:34:07 +0200 Subject: [Mapserver-users] Problems with PerlMapscript 3.7 Syntax Message-ID: <1051799644.1950.74.camel@eisbaer.local> Hello, I have still problems with perlmapscript 3.7. The demo below with the syntax of perlmapscript 3.6 is working very fine on my system. shp2img is also working for the mapfile below. >From the WIKI MigrationGuide I Take the syntax for saveImage(): $img->saveImage('test37.png'); and get following output: Can't locate auto/mapscript/imageObj/saveImage.al in @INC (@INC contains: /usr/lib/perl5/5.8.0/i586-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at test37.pl line 7 Then I looked for the string saveImage in the mapscript.pm module and found the function msSaveImage who brings me following output: Usage: msSaveImage(map,img,filename); at test37.pl line 7. I tried: $map->msSaveImage($map,$img,'test37'); and got same errormessage as before. Then I tried to set the set the ImageType with: map->setImageType("png") or die('Unable to setImageType.'); and see that it failed. Here the script and the mapfile: (Does someone now a tool to extract from a perl Module (mapscript.pm) a list of all Classes/Objects, Members and Methods?) Thanks a lot, Babak ========================================================================== #!/usr/bin/perl -w use mapscript; use strict; my $map = new mapscript::mapObj("data/demo37.map") or die('Unable to OPEN mapfile.'); $map->setImageType("png") or die('Unable to setImageType.'); my $img = $map->draw() or die('Unable to DRAW mapfile.'); $map->msSaveImage($map,$img,'test37'); $img->free(); -------------------------------------------------------------------------- NAME DEMO37 STATUS ON SIZE 600 450 EXTENT 5.3 55.5 15.5 46.9 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END LAYER NAME TESTLAYER TYPE POLYGON STATUS DEFAULT DATA lnd01dd.shp CLASS NAME TESTCLASS SYMBOL 0 COLOR 195 195 195 OUTLINECOLOR 102 102 102 END END END -- Babak Toloue Tehrani From ed@topozone.com Thu May 1 16:03:42 2003 From: ed@topozone.com (Ed McNierney) Date: Thu, 1 May 2003 11:03:42 -0400 Subject: [Mapserver-users] Projection on the Fly Problems Message-ID: <13858AA1A74F30419F319ACB66A9D1220196B6@mercator.topozone.com> John - I'm not a MapScript user, so I'll have to let someone else handle this one. The docs say that that setProjection method is supposed to be adjusting your maps' output extents for you (with the MS_TRUE parameter), so your code seems reasonable at first glance. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: John Norton [mailto:jnorton@fs.fed.us] Sent: Thursday, May 01, 2003 10:53 AM To: Ed McNierney Cc: mapserver-users@lists.gis.umn.edu; mapserver-users-admin@lists.gis.umn.edu Subject: RE: [Mapserver-users] Projection on the Fly Problems Ed, Thanks! I am a bit confused about the extent issue when reprojecting. I do not have a (re)projection object for the map. The extent is set to... EXTENT -125.32 22.62 -66.98 51.48 Which is appropriate for the projection of the layers which are good with init=epsg:4267. I thought that using this mapscript map method... $result=$map->setProjection ("proj=aea,ellps=clrk66,datum=NAD27,lat_1=29.5,lat_2=45.5,lat_0=23,lon_0 =-96,x_0=0,y_0=0,units=m",MS_TRUE); would change the projection for the map object and set the extent with the appropriate values for the new projection. Anyway here is my entire map file... MAP NAME "Lower 48" STATUS ON EXTENT -125.32 22.62 -66.98 51.48 SIZE 800 600 SHAPEPATH "data/l48/" SYMBOLSET "/msapps/maplab/large_fires/etc/symbols.sym" FONTSET "/msapps/maplab/large_fires/etc/fonts.txt" WEB HEADER lf_header.html TEMPLATE lf.html FOOTER lf_footer.html IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER NAME "Burn" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "c:/msapps/maplab/large_fires/data/l48/tburn111,3" STATUS ON PROJECTION "init=epsg:4267" END CLASSITEM "Status" CLASS NAME Burning Expression "502" COLOR 255 0 0 END CLASS NAME Burnt Expression "501" COLOR 255 255 0 END END LAYER NAME "States" STATUS ON DATA "states" TYPE LINE PROJECTION "init=epsg:4267" END CLASS NAME "Boundary" SYMBOL 14 COLOR 120 120 120 SIZE 1 END END END and this the script that I am using to display the map. getProjection(); $result=$map->setProjection ("proj=aea,ellps=clrk66,datum=NAD27,lat_1=29.5,lat_2=45.5,lat_0=23,lon_0 =-96,x_0=0,y_0=0,units=m",MS_TRUE); $image=$map->draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); $projection2 = $map->getProjection(); ?> Displaying a map > "."2:".$projection2."
".$result; ?> $projection1 comes up null and $projection2 comes up as : +proj=aea+ellps=clrk66+datum=NAD27+lat_1=29.5+lat_2=45.5+lat_0=23+lon_0 =-96+x_0=0+y_0=0+units=m and result comes up as 0. Cheers ------------------------------------------------------ John Norton USDA-RSAC 2222 W 2300 S Salt Lake City, UT 84119 Phone: 801-975-3766 Fax: 801-975-3478 Intranet: fsweb.rsac.fs.fed.us Internet: www.fs.fed.us/eng/rsac/ ------------------------------------------------------ "Ed McNierney" To: "John Norton" Sent by: cc: , mapserver-users-admin@lists. gis.umn.edu Subject: RE: [Mapserver-users] Projection on the Fly Problems 04/30/2003 06:22 PM John - I would recommend "init=epsg:4267", but those should be fine. Can you send the PROJECTION object for the main MAP file, too, along with the EXTENT (either in the mapfile or as a parameter) that you're trying to view? The most common cause of invisible reprojections is data that's reprojected right out of the view frame. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: John Norton [mailto:jnorton@fs.fed.us] Sent: Wednesday, April 30, 2003 7:02 PM To: Ed McNierney Cc: mapserver-users@lists.gis.umn.edu; mapserver-users-admin@lists.gis.umn.edu Subject: RE: [Mapserver-users] Projection on the Fly Problems Thanks Ed, I agree the UTM zone is required for the example I provided. But, actually I grabbed the example from the wrong map file )-: The projection that is causing problems is the latlong which I am trying to convert to aea. So my layers look like... LAYER NAME "Fires" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "c:/msapps/maplab/large_fires/data/l48/tburn111,3" STATUS ON PROJECTION "proj=latlong" "ellps=clrk66" "datum=NAD27" END CLASSITEM "Status" CLASS NAME Burning Expression "502" COLOR 255 0 0 END CLASS NAME Burnt Expression "501" COLOR 255 255 0 END END LAYER NAME "States" STATUS ON DATA "states" TYPE LINE PROJECTION "proj=latlong" "ellps=clrk66" "datum=NAD27" END CLASS NAME "Boundary" SYMBOL 14 COLOR 120 120 120 SIZE 1 END END ------------------------------------------------------ John Norton USDA-RSAC 2222 W 2300 S Salt Lake City, UT 84119 Phone: 801-975-3766 Fax: 801-975-3478 Intranet: fsweb.rsac.fs.fed.us Internet: www.fs.fed.us/eng/rsac/ ------------------------------------------------------ "Ed McNierney" To: "John Norton" , Sent by: cc: mapserver-users-admin@lists. Subject: RE: [Mapserver-users] Projection on the Fly Problems gis.umn.edu 04/30/2003 03:06 PM John - You aren't providing enough information to specify your UTM projections. You need to specify the central meridian (i.e. the UTM zone) each is in. You might find it easier to look up the EPSG codes for each projection and just use the codes. They're more cryptic but less error-prone. You can find them at http://mapserver.gis.umn.edu/doc/proj.html The NAD27 UTM zones are five-digit numbers of the form "267zz" where zz is the two-digit (pad with a leading zero) zone number. So to define a UTM Zone 9, NAD27 projection you can say: PROJECTION "init=epsg:26709" END - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: John Norton [mailto:jnorton@fs.fed.us] Sent: Wednesday, April 30, 2003 4:49 PM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Projection on the Fly Problems I Have a map file with two layers... LAYER NAME "Fires" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "c:/msapps/maplab/large_fires/data/l48/tburn111,3" STATUS ON PROJECTION "proj=utm" "ellps=clrk66" "datum=NAD27" END CLASSITEM "Status" CLASS NAME Burning Expression "502" COLOR 255 0 0 END CLASS NAME Burnt Expression "501" COLOR 255 255 0 END END LAYER NAME "States" STATUS ON DATA "states" TYPE LINE PROJECTION "proj=utm" "ellps=clrk66" "datum=NAD27" END CLASS NAME "Boundary" SYMBOL 14 COLOR 120 120 120 SIZE 1 END END I am trying to project these using mapscript with code that looks like this... $map = ms_newMapObj($map_path."l48c.map"); $result=$map->setProjection ("proj=aea,ellps=clrk66,datum=NAD27,lat_1=29.5,lat_2=45.5,lat_0=23,lon_0 =-96,x_0=0,y_0=0,units=m",MS_TRUE); $image=$map->draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); $projection = $map->getProjection(); No errors, setProjection returns 0 which I guess means the projection didn't take but, when I echo $projection it reports the projection string with commas replace by plus signs. The problem is I get no image. I am using Mapscript... MapServer version 3.6.6-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Same thing happens when I run mapscript as a CGI.... MapServer version 3.7 (development) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PD F OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=GD2_RGB INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAP EFILE Is this a units problem my data is in decimal degrees? I think I have PROJ installed correctly it is in c:\proj with a path to the bin directory. I also tried (meaning I added it to the PHP.ini file as an extension) the PHP extension php_proj.dll. Are these conflicting? Cheers ------------------------------------------------------ John Norton USDA-RSAC 2222 W 2300 S Salt Lake City, UT 84119 Phone: 801-975-3766 Fax: 801-975-3478 Intranet: fsweb.rsac.fs.fed.us Internet: www.fs.fed.us/eng/rsac/ ------------------------------------------------------ _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From schut@sarvision.com Thu May 1 16:23:38 2003 From: schut@sarvision.com (Vincent Schut) Date: Thu, 1 May 2003 17:23:38 +0200 Subject: [Mapserver-users] Tileindex and raster image In-Reply-To: <001101c30ffb$7fcac930$0201a8c0@mapxplore.com> References: <000c01c30ff5$ce887780$0201a8c0@mapxplore.com> <200305011654.11482.schut@sarvision.com> <001101c30ffb$7fcac930$0201a8c0@mapxplore.com> Message-ID: <200305011723.38250.schut@sarvision.com> fx, I don't know of a direct solution for your question, but there might be some more complex ways to achieve it... Are you on linux? If you know the size of your images, you can write a shell script to use 'gdal_translate -srcwin xoff yoff xsize ysize in.tif out.tif', looping automatically over your raster image using the appropriate window. Even if you don't know the imagesize, you could get that by parsing the gdalinfo output in your script, but that might be a bit more trickier. Another option: If your raster can be saved as a normal tif (or otherwise non-geographic image format), you could use the convert program (coming with imagemagick), it has some automatic tile command, check the docs, I don't know it by heart. You can then after that add geo information with gdal or just by adding world files (which you could generate with a script again :-)). Third option: make a map file with your raster in a layer and write a simple php/mapscript program that loops over the extent of your raster, changes the extent to the tile you want to have, have mapserver draw your image (if you have a recent version of mapserver and gdal, mapserver will even be able to generate geotiff image files (or any image format gdal can write) for you if you set the outputformat section accordingly!), and save it. Hope these ideas help you, Regards, Vincent Schut. On Thursday 01 May 2003 18:05, you wrote: > thanks for your request > but i am looking for a script which is able to break automatically large > georeferenced raster files into smaller ones with arcview or mapinfo. > i have already managed to proccess raster image with mapserver. my problem > is to cut large raster file.. > thanks > fx > > ----- Original Message ----- > From: "Vincent Schut" > To: "fx gamoy" ; > Sent: Thursday, May 01, 2003 3:54 PM > Subject: Re: [Mapserver-users] Tileindex and raster image > > > See the raster-howto in the docs on the mapserver site: > > http://mapserver.gis.umn.edu/doc/raster-howto.html (section: rasters and > > tile > > > indexing). > > For more info on the gdaltindex utility, see the gdal pages > > (www.remotesensing.org/gdal ), utility programs. > > > > Regards. > > Vincent Schut. > > > > On Thursday 01 May 2003 17:24, fx gamoy wrote: > > > hello everybody, > > > i have tested successfully the script made by Chip Hankley in order to > > > break large vector shapefiles into regular-sized shapefiles. Thanks to > > him > > > > for this very efficient contribution > > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VectorTileIndex > > > > > > Now i would like to do the same with large raster image and arcview. So > > i > > > > am looking for a script working with ARCVIEW or MAPINFO which is able > > > to generate rastertileindex.. Any idea?? > > > > > > thanks > > > fx gamoy > > > http://www.mapxplore.com/ > > > > -- > > ______________________________________ > > Vincent Schut (schut@sarvision.com) > > Sarvision B.V. > > Wageningen, The Netherlands > > www.sarvision.com > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- ______________________________________ Vincent Schut (schut@sarvision.com) Sarvision B.V. Wageningen, The Netherlands www.sarvision.com From cpurvis@asg.sc.edu Thu May 1 16:45:45 2003 From: cpurvis@asg.sc.edu (Charlton Purvis) Date: Thu, 1 May 2003 11:45:45 -0400 Subject: [Mapserver-users] what to do w/ ming swf's? Message-ID: Thanks, Vincent. I should have delved deeper into MapServer source on my own, but after listening to your advice and looking at http://ming.sourceforge.net/docs/index.php?mode=php, things seem clear. At this point I guess it boils down to whether or not our users should be forced to have a plug-in to view the flash animation. GIF's self-containment sure is compelling, but that comes at a cost of limited features. Same argument goes for the rosa applet download, too. But there's no harm in checking it out! Thanks again. -----Original Message----- From: Vincent Schut [mailto:schut@sarvision.com] Sent: Wednesday, April 30, 2003 5:13 AM To: Charlton Purvis Cc: Mapserver Users (E-mail) Subject: Re: [Mapserver-users] what to do w/ ming swf's? Charlton, You could use the same library Mapserver is using to produce it's swf's: ming. It's free, and you can use actionscript. It has a php component too. You can simply program quite complex swf's with that. See the website for more details, api, etc.: http://ming.sourceforge.net/ , and the ming docs at php.net. However, especially when using the php extension (it is a c library originally) be carefull and play around a bit with different versions, cause not every version of ming works with every version of php. And it is still in development, so not everything is working properly. My own experience: though you might want to use ming-cvs (lots of errors fixed and some better functionality) I could not get it to work with php. The version I currently have is ming 0.2a (the tar.gz from the website) which works in combination with the ming extension that comes bundled with php 4.3.1. If you want to use a newer ming, you might have to use it as a c library. Which is very well possible, though, cause you can produce a static swf that dynamically loads a mapserver produced swf on request, like Ryan Grant wrote. However, when using this combination be carefull not to mix ming02.a and ming-cvs (you will need them both I think, cause mapserver depends on 0.2a?). However, with only 0.2a it's quite possible to produce nice mapserver interfaces. You can look at an (very simple) example at http://www.sarvision.nl/mawas/mapserver/ms-mawas.php . It has nothing to do with image sequences, but shows you a bit of the possibilities of ming and building interfaces and integration/communication with mapserver. On Tuesday 29 April 2003 21:00, Grant, Ryan wrote: > As far as I know, there is no way to make ActionScript calls from php. > > So calls such as the one that I used are contained written using the > Macromedia Flash author product. The project files are .fla, which publish > to .swf. I'm not currently aware of any free tools that let you work with > .fla files. > > > To John Arthur: > I haven't experimented with any layers containing labels yet, but that's > next on my list of things to try > > Regards, > > Ryan Grant > > > > -----Original Message----- > From: Charlton Purvis [mailto:cpurvis@asg.sc.edu] > Sent: Tuesday, April 29, 2003 11:44 AM > To: Grant, Ryan > Cc: Mapserver Users (E-mail) > Subject: RE: [Mapserver-users] what to do w/ ming swf's? > > > Thanks for your help, Grant. But I'm afraid that I'm still in the dark. > > I'd like to play w/ flash a bit more even though I'm pretty happy w/ > animated .gif's. > > But I'm missing how my .php and ActionScript are linked. First of all, > it's not free, is it? I'd like to think that I could make ActionScript > calls from w/i my .php, but that ain't so, is it? > > So where and in what type of file are calls like > var mapName = _level10.mapObj.name; > ? > > Thanks again. > > Charlton -- ______________________________________ Vincent Schut (schut@sarvision.com) Sarvision B.V. Wageningen, The Netherlands www.sarvision.com From schut@sarvision.com Thu May 1 16:53:36 2003 From: schut@sarvision.com (Vincent Schut) Date: Thu, 1 May 2003 17:53:36 +0200 Subject: [Mapserver-users] not all labels get rendered In-Reply-To: <200304301253.21338.schut@sarvision.com> References: <200304301253.21338.schut@sarvision.com> Message-ID: <200305011753.36770.schut@sarvision.com> In addition to my previous mail: It seems that mapserver has some problems with some polygons in the shapefile that cause mapserver not to draw the labels of these polygons. The shapefile is produced by arcview, and in av I can't find any weird things. I loaded it into postgres/postgis0.7.5, simplified it using a strk's Douglas Peuker implementation for postgis (tolerance 0.1025 DD), wrote this to shape again, and suddenly some more labels appear. But still not all. I hope that somebody with more knowledge on shapefile/mapserver interaction thinks this interesting enough to have a look at it :-) I will be in Brasil next week and probably won't read email and surely won't be able to test things, so I will put the (simplified) shapefile on the internet where you can download it for testing purposes. You will find the shapefile (and dbf/shx files) at www.sarvision.com/vincent . Thanks! Vincent Schut. On Wednesday 30 April 2003 12:53, Vincent Schut wrote: > Hi all, > > I have a shapefile of the provinces of Indonesia. > I have a map file with 2 layers: one displays the provinces, each with a > unique color (classes are generated on the fly using metadata and php), the > second is the same as the first, but labels the provinces and does not show > anything else then just the labels. It contains only one class, which > contains the label section. Labels are drawn based on the same item used to > class provinces by color. > Now the first layer draws ok, every province is drawn with its according > color. The second layer displays not ok. It shows some labels, some labels > not. I have tried anything I can think of, I have force true in the label > object, etc. etc., but some labels simply do not get drawn. And yes, I do > call drawLabelCache before saveWebImage. I wil attach the generated image > and my mapfile, and a save of the mapobject after creating the classes > (thus the mapfile including the color classes). The image clearly shows > that some provinces get drawn but not labeled. (For those that know their > topo lessons: north-west sumatra (next to Aceh) is missing some, east & > central Sulasesi too...). > > Hope someone can help. > > Regards, > Vincent Schut. -- ______________________________________ Vincent Schut (schut@sarvision.com) Sarvision B.V. Wageningen, The Netherlands www.sarvision.com From ROGERT@gwm.sc.edu Thu May 1 17:01:32 2003 From: ROGERT@gwm.sc.edu (Roger Truesdale) Date: Thu, 01 May 2003 12:01:32 -0400 Subject: [Mapserver-users] Map Server Demo - Download Dialog Box Popping Up Message-ID: I am running the mapserve demo in windows XP with Apache server. It comes up fine the first time and displays the Lakes and Rivers layer in Browse Map mode. Then when I try to do anything else, e.g. just click the Refresh/Query button, I get a file download dialog box indicating it is trying to download a file with a name like CARQIXB3 from the local host. If I select a different layer and click the refresh/query button, the download dialog box comes up with a different file name. The newly selected layers do not display after clearing out the download dialog box. Any ideas on why the download dialog box comes up and why selecting other layers will not display them? Thank you. Roger Truesdale Interactive Site Architect eBusiness Solutions (f.k.a. i2Media) Contractual Services Group Usc Computer Services 1244 Blossom Street, Columbia, SC 29208 Voice: (803) 777-7366 | (803) 777-1900 (fax) rogert@gwm.sc.edu | http://i2alliance.sc.edu From jnorton@fs.fed.us Thu May 1 18:00:07 2003 From: jnorton@fs.fed.us (John Norton) Date: Thu, 1 May 2003 11:00:07 -0600 Subject: [Mapserver-users] Projection on the Fly Problems - Mapscript setprojection problem? Message-ID: Thanks Ed! Looks like your first hunch was right...it is an extent issue. I manually set the extent void setextent(double minx, double miny, double maxx, double maxy) and everything is right now. Looks like I can do a "manual-on-the-fly" change of the extents by pulling up the current extent (for the input projection) and build two point objects with that and re-project those points and use the map method above to set the extent for the output projection. Thanks for the feedback, without it I probably would not of thought of this. Hopefully, the point objects behave as documented. Cheers ------------------------------------------------------ John Norton USDA-RSAC 2222 W 2300 S Salt Lake City, UT 84119 Phone: 801-975-3766 Fax: 801-975-3478 Intranet: fsweb.rsac.fs.fed.us Internet: www.fs.fed.us/eng/rsac/ ------------------------------------------------------ "Ed McNierney" > cc: , 05/01/2003 09:03 Subject: RE: [Mapserver-users] Projection on the Fly Problems AM John - I'm not a MapScript user, so I'll have to let someone else handle this one. The docs say that that setProjection method is supposed to be adjusting your maps' output extents for you (with the MS_TRUE parameter), so your code seems reasonable at first glance. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: John Norton [mailto:jnorton@fs.fed.us] Sent: Thursday, May 01, 2003 10:53 AM To: Ed McNierney Cc: mapserver-users@lists.gis.umn.edu; mapserver-users-admin@lists.gis.umn.edu Subject: RE: [Mapserver-users] Projection on the Fly Problems Ed, Thanks! I am a bit confused about the extent issue when reprojecting. I do not have a (re)projection object for the map. The extent is set to... EXTENT -125.32 22.62 -66.98 51.48 Which is appropriate for the projection of the layers which are good with init=epsg:4267. I thought that using this mapscript map method... $result=$map->setProjection ("proj=aea,ellps=clrk66,datum=NAD27,lat_1=29.5,lat_2=45.5,lat_0=23,lon_0 =-96,x_0=0,y_0=0,units=m",MS_TRUE); would change the projection for the map object and set the extent with the appropriate values for the new projection. Anyway here is my entire map file... MAP NAME "Lower 48" STATUS ON EXTENT -125.32 22.62 -66.98 51.48 SIZE 800 600 SHAPEPATH "data/l48/" SYMBOLSET "/msapps/maplab/large_fires/etc/symbols.sym" FONTSET "/msapps/maplab/large_fires/etc/fonts.txt" WEB HEADER lf_header.html TEMPLATE lf.html FOOTER lf_footer.html IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER NAME "Burn" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "c:/msapps/maplab/large_fires/data/l48/tburn111,3" STATUS ON PROJECTION "init=epsg:4267" END CLASSITEM "Status" CLASS NAME Burning Expression "502" COLOR 255 0 0 END CLASS NAME Burnt Expression "501" COLOR 255 255 0 END END LAYER NAME "States" STATUS ON DATA "states" TYPE LINE PROJECTION "init=epsg:4267" END CLASS NAME "Boundary" SYMBOL 14 COLOR 120 120 120 SIZE 1 END END END and this the script that I am using to display the map. getProjection(); $result=$map->setProjection ("proj=aea,ellps=clrk66,datum=NAD27,lat_1=29.5,lat_2=45.5,lat_0=23,lon_0 =-96,x_0=0,y_0=0,units=m",MS_TRUE); $image=$map->draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); $projection2 = $map->getProjection(); ?> Displaying a map > "."2:".$projection2."
".$result; ?> $projection1 comes up null and $projection2 comes up as : +proj=aea+ellps=clrk66+datum=NAD27+lat_1=29.5+lat_2=45.5+lat_0=23+lon_0 =-96+x_0=0+y_0=0+units=m and result comes up as 0. Cheers ------------------------------------------------------ John Norton USDA-RSAC 2222 W 2300 S Salt Lake City, UT 84119 Phone: 801-975-3766 Fax: 801-975-3478 Intranet: fsweb.rsac.fs.fed.us Internet: www.fs.fed.us/eng/rsac/ ------------------------------------------------------ "Ed McNierney" To: "John Norton" Sent by: cc: , mapserver-users-admin@lists. gis.umn.edu Subject: RE: [Mapserver-users] Projection on the Fly Problems 04/30/2003 06:22 PM John - I would recommend "init=epsg:4267", but those should be fine. Can you send the PROJECTION object for the main MAP file, too, along with the EXTENT (either in the mapfile or as a parameter) that you're trying to view? The most common cause of invisible reprojections is data that's reprojected right out of the view frame. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: John Norton [mailto:jnorton@fs.fed.us] Sent: Wednesday, April 30, 2003 7:02 PM To: Ed McNierney Cc: mapserver-users@lists.gis.umn.edu; mapserver-users-admin@lists.gis.umn.edu Subject: RE: [Mapserver-users] Projection on the Fly Problems Thanks Ed, I agree the UTM zone is required for the example I provided. But, actually I grabbed the example from the wrong map file )-: The projection that is causing problems is the latlong which I am trying to convert to aea. So my layers look like... LAYER NAME "Fires" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "c:/msapps/maplab/large_fires/data/l48/tburn111,3" STATUS ON PROJECTION "proj=latlong" "ellps=clrk66" "datum=NAD27" END CLASSITEM "Status" CLASS NAME Burning Expression "502" COLOR 255 0 0 END CLASS NAME Burnt Expression "501" COLOR 255 255 0 END END LAYER NAME "States" STATUS ON DATA "states" TYPE LINE PROJECTION "proj=latlong" "ellps=clrk66" "datum=NAD27" END CLASS NAME "Boundary" SYMBOL 14 COLOR 120 120 120 SIZE 1 END END ------------------------------------------------------ John Norton USDA-RSAC 2222 W 2300 S Salt Lake City, UT 84119 Phone: 801-975-3766 Fax: 801-975-3478 Intranet: fsweb.rsac.fs.fed.us Internet: www.fs.fed.us/eng/rsac/ ------------------------------------------------------ "Ed McNierney" To: "John Norton" , Sent by: cc: mapserver-users-admin@lists. Subject: RE: [Mapserver-users] Projection on the Fly Problems gis.umn.edu 04/30/2003 03:06 PM John - You aren't providing enough information to specify your UTM projections. You need to specify the central meridian (i.e. the UTM zone) each is in. You might find it easier to look up the EPSG codes for each projection and just use the codes. They're more cryptic but less error-prone. You can find them at http://mapserver.gis.umn.edu/doc/proj.html The NAD27 UTM zones are five-digit numbers of the form "267zz" where zz is the two-digit (pad with a leading zero) zone number. So to define a UTM Zone 9, NAD27 projection you can say: PROJECTION "init=epsg:26709" END - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: John Norton [mailto:jnorton@fs.fed.us] Sent: Wednesday, April 30, 2003 4:49 PM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Projection on the Fly Problems I Have a map file with two layers... LAYER NAME "Fires" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "c:/msapps/maplab/large_fires/data/l48/tburn111,3" STATUS ON PROJECTION "proj=utm" "ellps=clrk66" "datum=NAD27" END CLASSITEM "Status" CLASS NAME Burning Expression "502" COLOR 255 0 0 END CLASS NAME Burnt Expression "501" COLOR 255 255 0 END END LAYER NAME "States" STATUS ON DATA "states" TYPE LINE PROJECTION "proj=utm" "ellps=clrk66" "datum=NAD27" END CLASS NAME "Boundary" SYMBOL 14 COLOR 120 120 120 SIZE 1 END END I am trying to project these using mapscript with code that looks like this... $map = ms_newMapObj($map_path."l48c.map"); $result=$map->setProjection ("proj=aea,ellps=clrk66,datum=NAD27,lat_1=29.5,lat_2=45.5,lat_0=23,lon_0 =-96,x_0=0,y_0=0,units=m",MS_TRUE); $image=$map->draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); $projection = $map->getProjection(); No errors, setProjection returns 0 which I guess means the projection didn't take but, when I echo $projection it reports the projection string with commas replace by plus signs. The problem is I get no image. I am using Mapscript... MapServer version 3.6.6-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Same thing happens when I run mapscript as a CGI.... MapServer version 3.7 (development) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PD F OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=GD2_RGB INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAP EFILE Is this a units problem my data is in decimal degrees? I think I have PROJ installed correctly it is in c:\proj with a path to the bin directory. I also tried (meaning I added it to the PHP.ini file as an extension) the PHP extension php_proj.dll. Are these conflicting? Cheers ------------------------------------------------------ John Norton USDA-RSAC 2222 W 2300 S Salt Lake City, UT 84119 Phone: 801-975-3766 Fax: 801-975-3478 Intranet: fsweb.rsac.fs.fed.us Internet: www.fs.fed.us/eng/rsac/ ------------------------------------------------------ _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From pagurekd@agr.gc.ca Thu May 1 18:14:11 2003 From: pagurekd@agr.gc.ca (Debbie Pagurek) Date: Thu, 01 May 2003 13:14:11 -0400 Subject: [Mapserver-users] Projection on the Fly Problems Message-ID: I am not entirely certain that setting the map projection automatically changes the extent so that it is also in the new projection. (I think it doesn't). I have an application that starts with the user picking an country from a pick list, and this passes the country extent in decimal degrees. If the user had also selected another projection, such as Robinson, I have to project the extent rectangle from latlong to Robinson, and I've done it as follows. Maybe this bit of code will help you. $newproj=ms_newprojectionObj("proj=robin,lon_0=0,x_0=0,y_0=0"); $latlon = ms_newprojectionObj("proj=longlat,ellps=GRS80,datum=NAD83,no_defs"); $oldext= ms_newRectObj(); $oldext->setextent($bounds[0],$bounds[1],$bounds[2],$bounds[3]); //the extent in latlong $newextproj = ms_newRectObj(); $newextproj = $oldext->project($latlon,$newproj); //the extent in Robinson $map->setextent($newextproj->minx,$newextproj->miny,$newextproj->maxx,$newextproj->maxy); Debbie Pagurek >>> "John Norton" 04/30/03 04:48pm >>> I Have a map file with two layers... LAYER NAME "Fires" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "c:/msapps/maplab/large_fires/data/l48/tburn111,3" STATUS ON PROJECTION "proj=utm" "ellps=clrk66" "datum=NAD27" END CLASSITEM "Status" CLASS NAME Burning Expression "502" COLOR 255 0 0 END CLASS NAME Burnt Expression "501" COLOR 255 255 0 END END LAYER NAME "States" STATUS ON DATA "states" TYPE LINE PROJECTION "proj=utm" "ellps=clrk66" "datum=NAD27" END CLASS NAME "Boundary" SYMBOL 14 COLOR 120 120 120 SIZE 1 END END I am trying to project these using mapscript with code that looks like this... $map = ms_newMapObj($map_path."l48c.map"); $result=$map->setProjection ("proj=aea,ellps=clrk66,datum=NAD27,lat_1=29.5,lat_2=45.5,lat_0=23,lon_0 =-96,x_0=0,y_0=0,units=m",MS_TRUE); $image=$map->draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); $projection = $map->getProjection(); No errors, setProjection returns 0 which I guess means the projection didn't take but, when I echo $projection it reports the projection string with commas replace by plus signs. The problem is I get no image. I am using Mapscript... MapServer version 3.6.6-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Same thing happens when I run mapscript as a CGI.... MapServer version 3.7 (development) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PD F OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=GD2_RGB INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAP EFILE Is this a units problem my data is in decimal degrees? I think I have PROJ installed correctly it is in c:\proj with a path to the bin directory. I also tried (meaning I added it to the PHP.ini file as an extension) the PHP extension php_proj.dll. Are these conflicting? Cheers ------------------------------------------------------ John Norton USDA-RSAC 2222 W 2300 S Salt Lake City, UT 84119 Phone: 801-975-3766 Fax: 801-975-3478 Intranet: fsweb.rsac.fs.fed.us Internet: www.fs.fed.us/eng/rsac/ ------------------------------------------------------ _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From ed@topozone.com Thu May 1 18:27:04 2003 From: ed@topozone.com (Ed McNierney) Date: Thu, 1 May 2003 13:27:04 -0400 Subject: [Mapserver-users] Projection on the Fly Problems Message-ID: <13858AA1A74F30419F319ACB66A9D1221F42BD@mercator.topozone.com> Debbie - The MapScript documentation says that if setProjection is called with two arguments and the second is MS_TRUE, that the map's extents and units are automatically recalculated to the new projection. Since I don't use MapScript I can't tell whether that feature actually is working as documented. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: Debbie Pagurek [mailto:pagurekd@agr.gc.ca] Sent: Thursday, May 01, 2003 1:14 PM To: jnorton@fs.fed.us; mapserver-users@lists.gis.umn.edu Subject: Re: [Mapserver-users] Projection on the Fly Problems I am not entirely certain that setting the map projection automatically changes the extent so that it is also in the new projection. (I think it doesn't). I have an application that starts with the user picking an country from a pick list, and this passes the country extent in decimal degrees. If the user had also selected another projection, such as Robinson, I have to project the extent rectangle from latlong to Robinson, and I've done it as follows. Maybe this bit of code will help you. $newproj=ms_newprojectionObj("proj=robin,lon_0=0,x_0=0,y_0=0"); $latlon = ms_newprojectionObj("proj=longlat,ellps=GRS80,datum=NAD83,no_defs"); $oldext= ms_newRectObj(); $oldext->setextent($bounds[0],$bounds[1],$bounds[2],$bounds[3]); //the extent in latlong $newextproj = ms_newRectObj(); $newextproj = $oldext->project($latlon,$newproj); //the extent in Robinson $map->setextent($newextproj->minx,$newextproj->miny,$newextproj->maxx,$newextproj->maxy); Debbie Pagurek >>> "John Norton" 04/30/03 04:48pm >>> I Have a map file with two layers... LAYER NAME "Fires" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "c:/msapps/maplab/large_fires/data/l48/tburn111,3" STATUS ON PROJECTION "proj=utm" "ellps=clrk66" "datum=NAD27" END CLASSITEM "Status" CLASS NAME Burning Expression "502" COLOR 255 0 0 END CLASS NAME Burnt Expression "501" COLOR 255 255 0 END END LAYER NAME "States" STATUS ON DATA "states" TYPE LINE PROJECTION "proj=utm" "ellps=clrk66" "datum=NAD27" END CLASS NAME "Boundary" SYMBOL 14 COLOR 120 120 120 SIZE 1 END END I am trying to project these using mapscript with code that looks like this... $map = ms_newMapObj($map_path."l48c.map"); $result=$map->setProjection ("proj=aea,ellps=clrk66,datum=NAD27,lat_1=29.5,lat_2=45.5,lat_0=23,lon_0 =-96,x_0=0,y_0=0,units=m",MS_TRUE); $image=$map->draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); $projection = $map->getProjection(); No errors, setProjection returns 0 which I guess means the projection didn't take but, when I echo $projection it reports the projection string with commas replace by plus signs. The problem is I get no image. I am using Mapscript... MapServer version 3.6.6-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Same thing happens when I run mapscript as a CGI.... MapServer version 3.7 (development) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PD F OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=GD2_RGB INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAP EFILE Is this a units problem my data is in decimal degrees? I think I have PROJ installed correctly it is in c:\proj with a path to the bin directory. I also tried (meaning I added it to the PHP.ini file as an extension) the PHP extension php_proj.dll. Are these conflicting? Cheers ------------------------------------------------------ John Norton USDA-RSAC 2222 W 2300 S Salt Lake City, UT 84119 Phone: 801-975-3766 Fax: 801-975-3478 Intranet: fsweb.rsac.fs.fed.us Internet: www.fs.fed.us/eng/rsac/ ------------------------------------------------------ _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From sgillies@frii.com Thu May 1 18:47:26 2003 From: sgillies@frii.com (Sean Gillies) Date: Thu, 1 May 2003 11:47:26 -0600 Subject: [Mapserver-users] Problems with PerlMapscript 3.7 Syntax In-Reply-To: <1051799644.1950.74.camel@eisbaer.local> Message-ID: Babak, The function you're looking for is save(), not saveImage(). To find out what functions are current in MapScript, you need to look in the mapscript.i file. The documentation is far behind development. To find all symbols in a package, do something like what's illustrated on page 281 of Programming Perl, 2nd edition: foreach $symname (sort keys %main::) { ... } Hope this helps, Sean On Thursday, May 1, 2003, at 08:34 AM, Babak Toloue Tehrani wrote: > Hello, > > I have still problems with perlmapscript 3.7. The demo below with the > syntax of perlmapscript 3.6 is working very fine on my system. shp2img > is also working for the mapfile below. >> From the WIKI MigrationGuide I Take the syntax for saveImage(): > > $img->saveImage('test37.png'); > > and get following output: > > Can't locate auto/mapscript/imageObj/saveImage.al in @INC (@INC > contains: /usr/lib/perl5/5.8.0/i586-linux-thread-multi > /usr/lib/perl5/5.8.0 > /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at test37.pl > line 7 > > Then I looked for the string saveImage in the mapscript.pm module and > found the function msSaveImage who brings me following output: > > Usage: msSaveImage(map,img,filename); at test37.pl line 7. > > I tried: $map->msSaveImage($map,$img,'test37'); > > and got same errormessage as before. Then I tried to set the set the > ImageType with: > > map->setImageType("png") or die('Unable to setImageType.'); > > and see that it failed. Here the script and the mapfile: > > (Does someone now a tool to extract from a perl Module (mapscript.pm) a > list of all Classes/Objects, Members and Methods?) > > Thanks a lot, > > Babak > > ======================================================================= > === > #!/usr/bin/perl -w > use mapscript; > use strict; > > my $map = new mapscript::mapObj("data/demo37.map") or die('Unable to > OPEN mapfile.'); > $map->setImageType("png") or die('Unable to setImageType.'); > my $img = $map->draw() or die('Unable to DRAW mapfile.'); > $map->msSaveImage($map,$img,'test37'); > $img->free(); > ----------------------------------------------------------------------- > --- > NAME DEMO37 > STATUS ON > SIZE 600 450 > EXTENT 5.3 55.5 15.5 46.9 > UNITS METERS > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE PC256 > EXTENSION "png" > END > > LAYER > NAME TESTLAYER > TYPE POLYGON > STATUS DEFAULT > DATA lnd01dd.shp > CLASS > NAME TESTCLASS > SYMBOL 0 > COLOR 195 195 195 > OUTLINECOLOR 102 102 102 > END > END > END > > -- Sean Gillies sgillies at frii dot com http://www.frii.com/~sgillies From cpurvis@asg.sc.edu Thu May 1 18:54:35 2003 From: cpurvis@asg.sc.edu (Charlton Purvis) Date: Thu, 1 May 2003 13:54:35 -0400 Subject: [Mapserver-users] bug on PHPDynLegend wiki post? Message-ID: Hi, Chip: Infinite thanks for your dynamic legend PHP post (http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPDynLegend). It's great! I have one thought, though. You draw the map . . . $img = $map->draw(); $url = $img->saveWebImage(MS_PNG, $map->transparent, $map->interlace, 50); . . . at the very beginning of your .php -- before you run down the legend checkboxes where you turn layers on and off. Shouldn't this be toward the end, say, near the . . . include($path_to_legend . "legend.php"); . . . line after you've set the layers in the $map? I might be missing something, but w/o moving the draw(), all I got was whatever the .map file defined. Again, thanks, and apologies if I've goofed. Charlton Charlton Purvis (803) 777-8858 : voice (803) 777-8833 : fax cpurvis@sc.edu Advanced Solutions Group Department of Physics and Astronomy University of South Carolina Columbia, SC 29208 From Prashant Desai" Message-ID: <000701c3100a$a6e8d520$0f00a8c0@MT15> Hi, Is there a known problem in using TrueType symbols in MapServer version 3.6.4? The symbol definition in my mapfile is given below. I tried to debug and found that it is successfully able to recognize type ELLIPSE and VECTOR, but when it comes to TRUETYPE, it stores 0 in the symbol->type Any help on this will be appreciated. Regards, SYMBOL NAME "circle" TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME "triangle" TYPE vector POINTS 0 2 1 0 2 2 0 2 END END SYMBOL NAME "s1" TYPE TRUETYPE FONT arial FILLED true ANTIALIAS true CHARACTER "A" END From lfilak@medinaco.org Thu May 1 19:07:03 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Thu, 01 May 2003 14:07:03 -0400 Subject: [Mapserver-users] Problems with PerlMapscript 3.7 Syntax Message-ID: <200305011806.h41I6sN21401@yogi.medinaco.net> There are a few things here that may be causing the exit during the setting of the image type, ie. "use strict". Have you already tried tuirning on the debugging to see if you receive a better message of what is occuring? Lowell F. The following message was sent by Babak Toloue Tehrani on 01 May 2003 16:34:07 +0200. > Hello, > > I have still problems with perlmapscript 3.7. The demo below with the > syntax of perlmapscript 3.6 is working very fine on my system. shp2img > is also working for the mapfile below. > >From the WIKI MigrationGuide I Take the syntax for saveImage(): > > $img->saveImage('test37.png'); > > and get following output: > > Can't locate auto/mapscript/imageObj/saveImage.al in @INC (@INC > contains: /usr/lib/perl5/5.8.0/i586-linux-thread-multi > /usr/lib/perl5/5.8.0 > /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at test37.pl > line 7 > > Then I looked for the string saveImage in the mapscript.pm module and > found the function msSaveImage who brings me following output: > > Usage: msSaveImage(map,img,filename); at test37.pl line 7. > > I tried: $map->msSaveImage($map,$img,'test37'); > > and got same errormessage as before. Then I tried to set the set the > ImageType with: > > map->setImageType("png") or die('Unable to setImageType.'); > > and see that it failed. Here the script and the mapfile: > > (Does someone now a tool to extract from a perl Module (mapscript.pm) a > list of all Classes/Objects, Members and Methods?) > > Thanks a lot, > > Babak > > ========================================================================== > #!/usr/bin/perl -w > use mapscript; > use strict; > > my $map = new mapscript::mapObj("data/demo37.map") or die('Unable to > OPEN mapfile.'); > $map->setImageType("png") or die('Unable to setImageType.'); > my $img = $map->draw() or die('Unable to DRAW mapfile.'); > $map->msSaveImage($map,$img,'test37'); > $img->free(); > -------------------------------------------------------------------------- > NAME DEMO37 > STATUS ON > SIZE 600 450 > EXTENT 5.3 55.5 15.5 46.9 > UNITS METERS > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE PC256 > EXTENSION "png" > END > > LAYER > NAME TESTLAYER > TYPE POLYGON > STATUS DEFAULT > DATA lnd01dd.shp > CLASS > NAME TESTCLASS > SYMBOL 0 > COLOR 195 195 195 > OUTLINECOLOR 102 102 102 > END > END > END > > -- > Babak Toloue Tehrani > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From Prashant Desai" <000701c3100a$a6e8d520$0f00a8c0@MT15> Message-ID: <001101c3100d$e0b28140$0f00a8c0@MT15> Hi Again, Please ignore my message. I was able to resolve the problem. I traced the parsing code and found that truetype symbols are required to be in a separate symbolset file. Regards, Prashant ----- Original Message ----- From: "Prashant Desai" To: Sent: Thursday, May 01, 2003 1:54 PM Subject: [Mapserver-users] TrueType Symbols > Hi, > > Is there a known problem in using TrueType symbols in MapServer version > 3.6.4? > The symbol definition in my mapfile is given below. I tried to debug and > found that it is successfully able to recognize type ELLIPSE and VECTOR, but > when it comes to TRUETYPE, it stores 0 in the symbol->type > Any help on this will be appreciated. > > Regards, > > SYMBOL > NAME "circle" > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > END > SYMBOL > NAME "triangle" > TYPE vector > POINTS > 0 2 > 1 0 > 2 2 > 0 2 > END > END > SYMBOL > NAME "s1" > TYPE TRUETYPE > FONT arial > FILLED true > ANTIALIAS true > CHARACTER "A" > END > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From joe@otsys.com Thu May 1 19:23:02 2003 From: joe@otsys.com (Joe Bussell) Date: Thu, 01 May 2003 11:23:02 -0700 Subject: [Mapserver-users] Problems with PerlMapscript 3.7 Syntax In-Reply-To: References: Message-ID: <3EB16606.4000305@otsys.com> Is it just me, or does this function renaming seem unnecesary? I fully understand fixing up the internal code. I do not accept that making function call naming changes from distinctly articulated names like "saveImage()" to its ambiguously named alternative "save()" is at all productive. Could you explain to me the reason that this particular name was changed? Can we agree on a stable interface and concentrate on the real buisiness of the day? Cordially, Joe Bussell On Time Systems www.trafficdodger.com Sean Gillies wrote: > Babak, > > The function you're looking for is save(), not saveImage(). > > To find out what functions are current in MapScript, you need to > look in the mapscript.i file. The documentation is far behind > development. > > To find all symbols in a package, do something like what's > illustrated on page 281 of Programming Perl, 2nd edition: > > foreach $symname (sort keys %main::) { > ... > } > > Hope this helps, > Sean > > On Thursday, May 1, 2003, at 08:34 AM, Babak Toloue Tehrani wrote: > >> Hello, >> >> I have still problems with perlmapscript 3.7. The demo below with the >> syntax of perlmapscript 3.6 is working very fine on my system. shp2img >> is also working for the mapfile below. >> >>> From the WIKI MigrationGuide I Take the syntax for saveImage(): >> >> >> $img->saveImage('test37.png'); >> >> and get following output: >> >> Can't locate auto/mapscript/imageObj/saveImage.al in @INC (@INC >> contains: /usr/lib/perl5/5.8.0/i586-linux-thread-multi >> /usr/lib/perl5/5.8.0 >> /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi >> /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at test37.pl >> line 7 >> >> Then I looked for the string saveImage in the mapscript.pm module and >> found the function msSaveImage who brings me following output: >> >> Usage: msSaveImage(map,img,filename); at test37.pl line 7. >> >> I tried: $map->msSaveImage($map,$img,'test37'); >> >> and got same errormessage as before. Then I tried to set the set the >> ImageType with: >> >> map->setImageType("png") or die('Unable to setImageType.'); >> >> and see that it failed. Here the script and the mapfile: >> >> (Does someone now a tool to extract from a perl Module (mapscript.pm) a >> list of all Classes/Objects, Members and Methods?) >> >> Thanks a lot, >> >> Babak >> >> ======================================================================= >> === >> #!/usr/bin/perl -w >> use mapscript; >> use strict; >> >> my $map = new mapscript::mapObj("data/demo37.map") or die('Unable to >> OPEN mapfile.'); >> $map->setImageType("png") or die('Unable to setImageType.'); >> my $img = $map->draw() or die('Unable to DRAW mapfile.'); >> $map->msSaveImage($map,$img,'test37'); >> $img->free(); >> ----------------------------------------------------------------------- >> --- >> NAME DEMO37 >> STATUS ON >> SIZE 600 450 >> EXTENT 5.3 55.5 15.5 46.9 >> UNITS METERS >> SHAPEPATH "data" >> IMAGECOLOR 255 255 255 >> >> OUTPUTFORMAT >> NAME png >> DRIVER "GD/PNG" >> MIMETYPE "image/png" >> IMAGEMODE PC256 >> EXTENSION "png" >> END >> >> LAYER >> NAME TESTLAYER >> TYPE POLYGON >> STATUS DEFAULT >> DATA lnd01dd.shp >> CLASS >> NAME TESTCLASS >> SYMBOL 0 >> COLOR 195 195 195 >> OUTLINECOLOR 102 102 102 >> END >> END >> END >> >> > -- > Sean Gillies > sgillies at frii dot com > http://www.frii.com/~sgillies > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From steve.lime@dnr.state.mn.us Thu May 1 18:55:36 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Thu, 01 May 2003 12:55:36 -0500 Subject: [Mapserver-users] Non-Rectangular Tiles in TILEINDEX ? Message-ID: Actually there is no pre-requisite for tiles other than that they be polygons. Behind the scenes the decision to process a tile or not is based on the bounding box of that feature (I believe) so there are certain inefficiencies that can occur with irregularly shaped tiles that don't truly intersect the area of interest. I and others have use things like counties or landsat footprints with success in the past. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ed McNierney" 04/30/03 07:26PM >>> Bob - Your TILEINDEX should be rectangles. The intent of a TILEINDEX is to allow MapServer to quickly determine whether to examine an input file to see if it has any visible features on the current map request. Rectangular tiles can be very quickly examined to see if they intersect the map viewframe. If so, the source is opened and any files that REALLY intersect the view are drawn. Supporting non-rectangular tiles would be more complex and somewhat slower, and would probably be of rather little benefit in most applications. A good combination of rectangular tile indexes and spatial indexing will produce very good performance. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: Bruce, Bob (CON) [mailto:BBruce@gov.mb.ca] Sent: Wednesday, April 30, 2003 7:54 PM To: 'Mapserver Mailing List' Subject: [Mapserver-users] Non-Rectangular Tiles in TILEINDEX ? I have been experimenting with TILEINDEXs in order to evaluate their functionality for my applications. I have successfully displayed a TILEINDEX of 20 orthophotos in my browser. Next I wanted to try displaying a set of project mapping areas and built an index map of polygons of these areas. I included this index map as a TILEINDEX in my map file and do not get anything displayed, instead I get a blank display. This leads me to wonder if this is because my tile polygons are non-rectangular. Does the Map Server require tiles to be rectangular or can it work with irregularly shaped tiles? I have successfully displayed my dataset that I'm using as a TILEINDEX as a line file, so I know that the server will work with this file. For your reference, I have included the definition of this layer: LAYER # DLS Polys NAME "DLSPolys" TILEINDEX "TilesWWinnipeg_CARIS/TilesWWinnipeg" TILEITEM "MAPKEY" STATUS DEFAULT TYPE POLYGON CLASSITEM "MAPKEY" CLASS # Whole DLS Parcel STATUS ON NAME "WHOLE DLSPOLY" COLOR 255 202 149 OUTLINECOLOR 0 0 0 END # end of Whole DLS Parcel class object END # end of layer object thanks, Bob Bruce ************************************************************************ ********************************** ** Bob Bruce, P.Eng. Geomatics Support Engineer ** bbruce@gov.mb.ca Manitoba Geomatics/Remote Sensing Branch, ** work # (204) 945-6636 1007 Century Street, ** home # (204) 256-4615 Winnipeg, Manitoba, Canada, R3H 0W4 ** FAX # (204) 945-1365 ** ** The Manitoba Centre for: ** Cadastral & Topographical Mapping, and Remote Sensing ** See us on the Web at: http://www.gov.mb.ca/conservation/geomatics/cada_mapping/index.html ** and: http://www.gov.mb.ca/conservation/geomatics/index.html ** Check out our digital maps at: http://mli.gov.mb.ca/ ************************************************************************ ********************************** From steve.lime@dnr.state.mn.us Thu May 1 19:01:47 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Thu, 01 May 2003 13:01:47 -0500 Subject: [Mapserver-users] PERL mapscript undefined symbol woes Message-ID: I've not tried perl 5.8 with Swig. So, if they changed the guts of perl which is where all the undefined symbols live then that could be the issue. Have you tried re-swigging the the interface (cd mapscript/perl; swig -shadow -perl5 mapscript.i) file with a brand new version of Swig? Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Joe Bussell 04/30/03 05:56PM >>> Greetings Listers, I have a Debian box with PERL5.8 and mapserver-3.6.5. I have had great success in the past with this box, but something in my build went awry. The compile for mapserv and then perl/mapscript completed without error. The object is also generally useful when using dump.pl and even some live map rendering under apache. The symptom that I observed is that whenever the process needs to carp out something it segfaults and dies. I ran ldd with the -r option and observed an interresting clue (see below). Does anyone have any ideas how the Perl_* symbols are defined? Why would they not be found? Should the list of *.so include libperl.so? Any ideas on getting out of this mess? ldd -r blib/arch/auto/mapscript/mapscript.so libgd.so.2 => /usr/local/lib/libgd.so.2 (0x40102000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40147000) libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x40164000) libpng.so.2 => /usr/lib/libpng.so.2 (0x401ad000) libz.so.1 => /lib/libz.so.1 (0x401d3000) libtiff.so.3 => /usr/lib/libtiff.so.3 (0x401e0000) libproj.so.0 => /usr/local/lib/libproj.so.0 (0x40224000) libgdal.1.1.so => /usr/local/lib/libgdal.1.1.so (0x40255000) libm.so.6 => /lib/libm.so.6 (0x404b0000) libc.so.6 => /lib/libc.so.6 (0x404d1000) libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x405e1000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x405ef000) libdl.so.2 => /lib/libdl.so.2 (0x406ab000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x406ae000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40757000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) undefined symbol: Perl_croak_nocontext (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_setiv (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_2pv_flags (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_mg_find (blib/arch/auto/mapscript/mapscript.so) undefined symbol: pthread_getspecific (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_newmortal (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_isobject (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_2nv (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_Isv_yes_ptr (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_setpv (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_newXS (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_Tna_ptr (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_Tmarkstack_ptr_ptr (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_Isv_undef_ptr (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_magic (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_setsv_flags (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_Tstack_base_ptr (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_get_sv (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_Gthr_key_ptr (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_setref_pv (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_2iv (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_setnv (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_Tstack_sp_ptr (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_setpvn (blib/arch/auto/mapscript/mapscript.so) undefined symbol: Perl_mg_get (blib/arch/auto/mapscript/mapscript.so) Cordially, Joe Bussell On Time Systems www.trafficdodger.com _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From ed@topozone.com Thu May 1 19:59:43 2003 From: ed@topozone.com (Ed McNierney) Date: Thu, 1 May 2003 14:59:43 -0400 Subject: [Mapserver-users] Non-Rectangular Tiles in TILEINDEX ? Message-ID: <13858AA1A74F30419F319ACB66A9D1221F42C2@mercator.topozone.com> Steve - Thanks; I didn't realize that. So non-rectangular tiles basically end up being treated the same as rectangular tiles (i.e. bounding boxes) enclosing the same polygons? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: Steve Lime [mailto:steve.lime@dnr.state.mn.us] Sent: Thursday, May 01, 2003 1:56 PM To: BBruce@gov.mb.ca; mapserver-users@lists.gis.umn.edu; Ed McNierney Subject: RE: [Mapserver-users] Non-Rectangular Tiles in TILEINDEX ? Actually there is no pre-requisite for tiles other than that they be polygons. Behind the scenes the decision to process a tile or not is based on the bounding box of that feature (I believe) so there are certain inefficiencies that can occur with irregularly shaped tiles that don't truly intersect the area of interest. I and others have use things like counties or landsat footprints with success in the past. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ed McNierney" 04/30/03 07:26PM >>> Bob - Your TILEINDEX should be rectangles. The intent of a TILEINDEX is to allow MapServer to quickly determine whether to examine an input file to see if it has any visible features on the current map request. Rectangular tiles can be very quickly examined to see if they intersect the map viewframe. If so, the source is opened and any files that REALLY intersect the view are drawn. Supporting non-rectangular tiles would be more complex and somewhat slower, and would probably be of rather little benefit in most applications. A good combination of rectangular tile indexes and spatial indexing will produce very good performance. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: Bruce, Bob (CON) [mailto:BBruce@gov.mb.ca] Sent: Wednesday, April 30, 2003 7:54 PM To: 'Mapserver Mailing List' Subject: [Mapserver-users] Non-Rectangular Tiles in TILEINDEX ? I have been experimenting with TILEINDEXs in order to evaluate their functionality for my applications. I have successfully displayed a TILEINDEX of 20 orthophotos in my browser. Next I wanted to try displaying a set of project mapping areas and built an index map of polygons of these areas. I included this index map as a TILEINDEX in my map file and do not get anything displayed, instead I get a blank display. This leads me to wonder if this is because my tile polygons are non-rectangular. Does the Map Server require tiles to be rectangular or can it work with irregularly shaped tiles? I have successfully displayed my dataset that I'm using as a TILEINDEX as a line file, so I know that the server will work with this file. For your reference, I have included the definition of this layer: LAYER # DLS Polys NAME "DLSPolys" TILEINDEX "TilesWWinnipeg_CARIS/TilesWWinnipeg" TILEITEM "MAPKEY" STATUS DEFAULT TYPE POLYGON CLASSITEM "MAPKEY" CLASS # Whole DLS Parcel STATUS ON NAME "WHOLE DLSPOLY" COLOR 255 202 149 OUTLINECOLOR 0 0 0 END # end of Whole DLS Parcel class object END # end of layer object thanks, Bob Bruce ************************************************************************ ********************************** ** Bob Bruce, P.Eng. Geomatics Support Engineer ** bbruce@gov.mb.ca Manitoba Geomatics/Remote Sensing Branch, ** work # (204) 945-6636 1007 Century Street, ** home # (204) 256-4615 Winnipeg, Manitoba, Canada, R3H 0W4 ** FAX # (204) 945-1365 ** ** The Manitoba Centre for: ** Cadastral & Topographical Mapping, and Remote Sensing ** See us on the Web at: http://www.gov.mb.ca/conservation/geomatics/cada_mapping/index.html ** and: http://www.gov.mb.ca/conservation/geomatics/index.html ** Check out our digital maps at: http://mli.gov.mb.ca/ ************************************************************************ ********************************** _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From babak.tehrani@geosysnet.de Thu May 1 19:34:58 2003 From: babak.tehrani@geosysnet.de (Babak Toloue Tehrani) Date: 01 May 2003 20:34:58 +0200 Subject: [Mapserver-users] Problems with PerlMapscript 3.7 Syntax In-Reply-To: <200305011806.h41I6sN21401@yogi.medinaco.net> References: <200305011806.h41I6sN21401@yogi.medinaco.net> Message-ID: <1051814048.5391.97.camel@eisbaer.local> Thanks Sean and Lowell, #!/usr/bin/perl -w use mapscript; use strict; my $map = new mapscript::mapObj("data/demo37.map") or die('Unable to OPEN mapfile.'); $map->setImageType("png"); my $img = $map->draw() or die('Unable to DRAW mapfile.'); $img->save('test37'); $img->free(); This works!!!! The mistake was to write ...or die('Unable to setImageType.'); behind the setImageType!!?? This works also for swf, but then the $img->free() give me a memoryaccesserror when I use setImageType("swf") to specify the outputformat. I don't get the error when I specify the outputpormat in the mapfile. The swf file is produced even though the error. Cheers Am Don, 2003-05-01 um 20.07 schrieb Lowell Filak: > There are a few things here that may be causing the exit during the setting of the image type, ie. "use strict". > Have you already tried tuirning on the debugging to see if you receive a better message of what is occuring? > Lowell F. > > The following message was sent by Babak Toloue Tehrani on 01 May 2003 16:34:07 +0200. > > > Hello, > > > > I have still problems with perlmapscript 3.7. The demo below with the > > syntax of perlmapscript 3.6 is working very fine on my system. shp2img > > is also working for the mapfile below. > > >From the WIKI MigrationGuide I Take the syntax for saveImage(): > > > > $img->saveImage('test37.png'); > > > > and get following output: > > > > Can't locate auto/mapscript/imageObj/saveImage.al in @INC (@INC > > contains: /usr/lib/perl5/5.8.0/i586-linux-thread-multi > > /usr/lib/perl5/5.8.0 > > /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi > > /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at test37.pl > > line 7 > > > > Then I looked for the string saveImage in the mapscript.pm module and > > found the function msSaveImage who brings me following output: > > > > Usage: msSaveImage(map,img,filename); at test37.pl line 7. > > > > I tried: $map->msSaveImage($map,$img,'test37'); > > > > and got same errormessage as before. Then I tried to set the set the > > ImageType with: > > > > map->setImageType("png") or die('Unable to setImageType.'); > > > > and see that it failed. Here the script and the mapfile: > > > > (Does someone now a tool to extract from a perl Module (mapscript.pm) a > > list of all Classes/Objects, Members and Methods?) > > > > Thanks a lot, > > > > Babak > > > > ========================================================================== > > #!/usr/bin/perl -w > > use mapscript; > > use strict; > > > > my $map = new mapscript::mapObj("data/demo37.map") or die('Unable to > > OPEN mapfile.'); > > $map->setImageType("png") or die('Unable to setImageType.'); > > my $img = $map->draw() or die('Unable to DRAW mapfile.'); > > $map->msSaveImage($map,$img,'test37'); > > $img->free(); > > -------------------------------------------------------------------------- > > NAME DEMO37 > > STATUS ON > > SIZE 600 450 > > EXTENT 5.3 55.5 15.5 46.9 > > UNITS METERS > > SHAPEPATH "data" > > IMAGECOLOR 255 255 255 > > > > OUTPUTFORMAT > > NAME png > > DRIVER "GD/PNG" > > MIMETYPE "image/png" > > IMAGEMODE PC256 > > EXTENSION "png" > > END > > > > LAYER > > NAME TESTLAYER > > TYPE POLYGON > > STATUS DEFAULT > > DATA lnd01dd.shp > > CLASS > > NAME TESTCLASS > > SYMBOL 0 > > COLOR 195 195 195 > > OUTLINECOLOR 102 102 102 > > END > > END > > END > > > > -- > > Babak Toloue Tehrani > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- Babak Toloue Tehrani From sgillies@frii.com Thu May 1 20:02:30 2003 From: sgillies@frii.com (Sean Gillies) Date: Thu, 1 May 2003 13:02:30 -0600 Subject: [Mapserver-users] Problems with PerlMapscript 3.7 Syntax In-Reply-To: <3EB16606.4000305@otsys.com> Message-ID: <753963AD-7C07-11D7-AE40-000393B98B56@frii.com> I can't speak for the developer who committed the change, but it appears to me that the developer wants to promote some degree of uniformity across object methods. The mapObj has a save() method that outputs to disk, and it seems natural that the extension to imageObj that outputs to disk should also be named 'save'. Is not at all productive? If all mapping objects had a save() method, one could reliably save an arbitrary object without having to do any type checking, or looking up whether you have to use 'saveMap' or 'saveImage' or 'saveSymbol'. Objects save themselves using methods uniformly named 'save'. This promotes development of more modular and reusable code. To me, that is productive. I don't deny that refactoring scripts to work with the newer MapScript module will have a cost. One way to enable a script to work with 3.6 mapscript and 4.0 mapscript is to use try/catch. This example in Python: try: img.saveImage('foo.png') except AttributeError: img.save('foo.png') With Perl it's a bit uglier since you have to eval() and trap errors, but it's the same idea. Sean On Thursday, May 1, 2003, at 12:23 PM, Joe Bussell wrote: > Is it just me, or does this function renaming seem unnecesary? I > fully understand fixing up the internal code. I do not accept that > making function call naming changes from distinctly articulated names > like "saveImage()" to its ambiguously named alternative "save()" is at > all productive. > > Could you explain to me the reason that this particular name was > changed? Can we agree on a stable interface and concentrate on the > real buisiness of the day? > > Cordially, > > Joe Bussell > On Time Systems > www.trafficdodger.com > > > Sean Gillies wrote: >> Babak, >> The function you're looking for is save(), not saveImage(). >> To find out what functions are current in MapScript, you need to >> look in the mapscript.i file. The documentation is far behind >> development. >> To find all symbols in a package, do something like what's >> illustrated on page 281 of Programming Perl, 2nd edition: >> foreach $symname (sort keys %main::) { >> ... >> } >> Hope this helps, >> Sean >> On Thursday, May 1, 2003, at 08:34 AM, Babak Toloue Tehrani wrote: >>> Hello, >>> >>> I have still problems with perlmapscript 3.7. The demo below with the >>> syntax of perlmapscript 3.6 is working very fine on my system. >>> shp2img >>> is also working for the mapfile below. >>> >>>> From the WIKI MigrationGuide I Take the syntax for saveImage(): >>> >>> >>> $img->saveImage('test37.png'); >>> >>> and get following output: >>> >>> Can't locate auto/mapscript/imageObj/saveImage.al in @INC (@INC >>> contains: /usr/lib/perl5/5.8.0/i586-linux-thread-multi >>> /usr/lib/perl5/5.8.0 >>> /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi >>> /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at >>> test37.pl >>> line 7 >>> >>> Then I looked for the string saveImage in the mapscript.pm module and >>> found the function msSaveImage who brings me following output: >>> >>> Usage: msSaveImage(map,img,filename); at test37.pl line 7. >>> >>> I tried: $map->msSaveImage($map,$img,'test37'); >>> >>> and got same errormessage as before. Then I tried to set the set the >>> ImageType with: >>> >>> map->setImageType("png") or die('Unable to setImageType.'); >>> >>> and see that it failed. Here the script and the mapfile: >>> >>> (Does someone now a tool to extract from a perl Module >>> (mapscript.pm) a >>> list of all Classes/Objects, Members and Methods?) >>> >>> Thanks a lot, >>> >>> Babak >>> >>> ===================================================================== >>> == === >>> #!/usr/bin/perl -w >>> use mapscript; >>> use strict; >>> >>> my $map = new mapscript::mapObj("data/demo37.map") or die('Unable to >>> OPEN mapfile.'); >>> $map->setImageType("png") or die('Unable to setImageType.'); >>> my $img = $map->draw() or die('Unable to DRAW mapfile.'); >>> $map->msSaveImage($map,$img,'test37'); >>> $img->free(); >>> --------------------------------------------------------------------- >>> -- --- >>> NAME DEMO37 >>> STATUS ON >>> SIZE 600 450 >>> EXTENT 5.3 55.5 15.5 46.9 >>> UNITS METERS >>> SHAPEPATH "data" >>> IMAGECOLOR 255 255 255 >>> >>> OUTPUTFORMAT >>> NAME png >>> DRIVER "GD/PNG" >>> MIMETYPE "image/png" >>> IMAGEMODE PC256 >>> EXTENSION "png" >>> END >>> >>> LAYER >>> NAME TESTLAYER >>> TYPE POLYGON >>> STATUS DEFAULT >>> DATA lnd01dd.shp >>> CLASS >>> NAME TESTCLASS >>> SYMBOL 0 >>> COLOR 195 195 195 >>> OUTLINECOLOR 102 102 102 >>> END >>> END >>> END >>> >>> >> -- >> Sean Gillies >> sgillies at frii dot com >> http://www.frii.com/~sgillies >> _______________________________________________ >> Mapserver-users mailing list >> Mapserver-users@lists.gis.umn.edu >> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > From lfilak@medinaco.org Thu May 1 20:17:01 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Thu, 01 May 2003 15:17:01 -0400 Subject: [Mapserver-users] Problems with PerlMapscript 3.7 Syntax Message-ID: <200305011916.h41JGqN22734@yogi.medinaco.net> Not that I know for certain but I think saveImage was a carry-over from pre-3.6 pertaining to msSaveImage then in 3.6 the imageObj was born but the method was left as "saveImage" where a "save" method on an imageObj would make the naming convention more consistent & be less redundant, ie. mapObj->save. Not that I'm saying it isn't a bother to rewrite things to work with the latest release but it may make sense to be consistent. Just my theory. Lowell F. The following message was sent by Joe Bussell on Thu, 01 May 2003 11:23:02 -0700. > Is it just me, or does this function renaming seem unnecesary? I fully > understand fixing up the internal code. I do not accept that making > function call naming changes from distinctly articulated names like > "saveImage()" to its ambiguously named alternative "save()" is at all > productive. > > Could you explain to me the reason that this particular name was > changed? Can we agree on a stable interface and concentrate on the real > buisiness of the day? > > Cordially, > > Joe Bussell > On Time Systems > www.trafficdodger.com > > > Sean Gillies wrote: > > Babak, > > > > The function you're looking for is save(), not saveImage(). > > > > To find out what functions are current in MapScript, you need to > > look in the mapscript.i file. The documentation is far behind > > development. > > > > To find all symbols in a package, do something like what's > > illustrated on page 281 of Programming Perl, 2nd edition: > > > > foreach $symname (sort keys %main::) { > > ... > > } > > > > Hope this helps, > > Sean > > > > On Thursday, May 1, 2003, at 08:34 AM, Babak Toloue Tehrani wrote: > > > >> Hello, > >> > >> I have still problems with perlmapscript 3.7. The demo below with the > >> syntax of perlmapscript 3.6 is working very fine on my system. shp2img > >> is also working for the mapfile below. > >> > >>> From the WIKI MigrationGuide I Take the syntax for saveImage(): > >> > >> > >> $img->saveImage('test37.png'); > >> > >> and get following output: > >> > >> Can't locate auto/mapscript/imageObj/saveImage.al in @INC (@INC > >> contains: /usr/lib/perl5/5.8.0/i586-linux-thread-multi > >> /usr/lib/perl5/5.8.0 > >> /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi > >> /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at test37.pl > >> line 7 > >> > >> Then I looked for the string saveImage in the mapscript.pm module and > >> found the function msSaveImage who brings me following output: > >> > >> Usage: msSaveImage(map,img,filename); at test37.pl line 7. > >> > >> I tried: $map->msSaveImage($map,$img,'test37'); > >> > >> and got same errormessage as before. Then I tried to set the set the > >> ImageType with: > >> > >> map->setImageType("png") or die('Unable to setImageType.'); > >> > >> and see that it failed. Here the script and the mapfile: > >> > >> (Does someone now a tool to extract from a perl Module (mapscript.pm) a > >> list of all Classes/Objects, Members and Methods?) > >> > >> Thanks a lot, > >> > >> Babak > >> > >> ======================================================================= > >> === > >> #!/usr/bin/perl -w > >> use mapscript; > >> use strict; > >> > >> my $map = new mapscript::mapObj("data/demo37.map") or die('Unable to > >> OPEN mapfile.'); > >> $map->setImageType("png") or die('Unable to setImageType.'); > >> my $img = $map->draw() or die('Unable to DRAW mapfile.'); > >> $map->msSaveImage($map,$img,'test37'); > >> $img->free(); > >> ----------------------------------------------------------------------- > >> --- > >> NAME DEMO37 > >> STATUS ON > >> SIZE 600 450 > >> EXTENT 5.3 55.5 15.5 46.9 > >> UNITS METERS > >> SHAPEPATH "data" > >> IMAGECOLOR 255 255 255 > >> > >> OUTPUTFORMAT > >> NAME png > >> DRIVER "GD/PNG" > >> MIMETYPE "image/png" > >> IMAGEMODE PC256 > >> EXTENSION "png" > >> END > >> > >> LAYER > >> NAME TESTLAYER > >> TYPE POLYGON > >> STATUS DEFAULT > >> DATA lnd01dd.shp > >> CLASS > >> NAME TESTCLASS > >> SYMBOL 0 > >> COLOR 195 195 195 > >> OUTLINECOLOR 102 102 102 > >> END > >> END > >> END > >> > >> > > -- > > Sean Gillies > > sgillies at frii dot com > > http://www.frii.com/~sgillies > > > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From tai.le@sbcglobal.net Thu May 1 20:28:33 2003 From: tai.le@sbcglobal.net (Tai Le) Date: Thu, 1 May 2003 14:28:33 -0500 Subject: [Mapserver-users] Renderer within one layer Message-ID: <004d01c31017$daf57f00$0220a8c0@devnet.com> This is a multi-part message in MIME format. ------=_NextPart_000_004A_01C30FED.F1B91410 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I'm new to MapServer. I have some questions: - What is the best way to implement some kind of PushPin with MapServer? = Is there any example available? - I want to display different symbols on the map from the same map layer = (based on some query attributes). If any one knows the Renderer class = from ESRI MapObject, that is what I would like to see on MapServer. Thanks for your help. -- Tai. ------=_NextPart_000_004A_01C30FED.F1B91410 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
I'm new to MapServer. I have some=20 questions:
- What is the best way to implement = some kind of=20 PushPin with MapServer? Is there any example available?
- I want to display different symbols = on the map=20 from the same map layer (based on some query attributes). If any = one=20 knows the Renderer class from ESRI MapObject, that is what I would = like to=20 see on MapServer.
Thanks for your help.
 
-- Tai.
------=_NextPart_000_004A_01C30FED.F1B91410-- From lfilak@medinaco.org Thu May 1 20:40:41 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Thu, 01 May 2003 15:40:41 -0400 Subject: [Mapserver-users] Problems with PerlMapscript 3.7 Syntax Message-ID: <200305011940.h41JeWN23293@yogi.medinaco.net> At first glance it appears that swf * pdf are not handled the same way as "customary" image formats like jpeg. The swf is actually created by first rendering a temporary gd object and dumping that into the swf creation routine so there may be a different way of accessing that via mapscript (I don't know what that is yet). HTH Lowell F. The following message was sent by Babak Toloue Tehrani on 01 May 2003 20:34:58 +0200. > Thanks Sean and Lowell, > > #!/usr/bin/perl -w > use mapscript; > use strict; > > my $map = new mapscript::mapObj("data/demo37.map") or die('Unable to > OPEN mapfile.'); > $map->setImageType("png"); > my $img = $map->draw() or die('Unable to DRAW mapfile.'); > $img->save('test37'); > $img->free(); > > This works!!!! > The mistake was to write ...or die('Unable to setImageType.'); behind > the setImageType!!?? This works also for swf, but then the $img->free() > give me a memoryaccesserror when I use setImageType("swf") to specify > the outputformat. I don't get the error when I specify the outputpormat > in the mapfile. The swf file is produced even though the error. > > Cheers > > > > Am Don, 2003-05-01 um 20.07 schrieb Lowell Filak: > > There are a few things here that may be causing the exit during the setting of the image type, ie. "use strict". > > Have you already tried tuirning on the debugging to see if you receive a better message of what is occuring? > > Lowell F. > > > > The following message was sent by Babak Toloue Tehrani on 01 May 2003 16:34:07 +0200. > > > > > Hello, > > > > > > I have still problems with perlmapscript 3.7. The demo below with the > > > syntax of perlmapscript 3.6 is working very fine on my system. shp2img > > > is also working for the mapfile below. > > > >From the WIKI MigrationGuide I Take the syntax for saveImage(): > > > > > > $img->saveImage('test37.png'); > > > > > > and get following output: > > > > > > Can't locate auto/mapscript/imageObj/saveImage.al in @INC (@INC > > > contains: /usr/lib/perl5/5.8.0/i586-linux-thread-multi > > > /usr/lib/perl5/5.8.0 > > > /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi > > > /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at test37.pl > > > line 7 > > > > > > Then I looked for the string saveImage in the mapscript.pm module and > > > found the function msSaveImage who brings me following output: > > > > > > Usage: msSaveImage(map,img,filename); at test37.pl line 7. > > > > > > I tried: $map->msSaveImage($map,$img,'test37'); > > > > > > and got same errormessage as before. Then I tried to set the set the > > > ImageType with: > > > > > > map->setImageType("png") or die('Unable to setImageType.'); > > > > > > and see that it failed. Here the script and the mapfile: > > > > > > (Does someone now a tool to extract from a perl Module (mapscript.pm) a > > > list of all Classes/Objects, Members and Methods?) > > > > > > Thanks a lot, > > > > > > Babak > > > > > > ========================================================================== > > > #!/usr/bin/perl -w > > > use mapscript; > > > use strict; > > > > > > my $map = new mapscript::mapObj("data/demo37.map") or die('Unable to > > > OPEN mapfile.'); > > > $map->setImageType("png") or die('Unable to setImageType.'); > > > my $img = $map->draw() or die('Unable to DRAW mapfile.'); > > > $map->msSaveImage($map,$img,'test37'); > > > $img->free(); > > > -------------------------------------------------------------------------- > > > NAME DEMO37 > > > STATUS ON > > > SIZE 600 450 > > > EXTENT 5.3 55.5 15.5 46.9 > > > UNITS METERS > > > SHAPEPATH "data" > > > IMAGECOLOR 255 255 255 > > > > > > OUTPUTFORMAT > > > NAME png > > > DRIVER "GD/PNG" > > > MIMETYPE "image/png" > > > IMAGEMODE PC256 > > > EXTENSION "png" > > > END > > > > > > LAYER > > > NAME TESTLAYER > > > TYPE POLYGON > > > STATUS DEFAULT > > > DATA lnd01dd.shp > > > CLASS > > > NAME TESTCLASS > > > SYMBOL 0 > > > COLOR 195 195 195 > > > OUTLINECOLOR 102 102 102 > > > END > > > END > > > END > > > > > > -- > > > Babak Toloue Tehrani > > > > > > _______________________________________________ > > > Mapserver-users mailing list > > > Mapserver-users@lists.gis.umn.edu > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > -- > Babak Toloue Tehrani > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From gis@farmvilleva.com Thu May 1 20:43:40 2003 From: gis@farmvilleva.com (John M. Duggan, LSIT) Date: Thu, 1 May 2003 15:43:40 -0400 Subject: [Mapserver-users] Example of many raster files? Message-ID: <007d01c31019$f7917e00$1c00000a@JMDSurvey> This is a multi-part message in MIME format. ------=_NextPart_000_007A_01C30FF8.7051F030 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable can anyone show me one of their map files that has many raster files = under one layer so you can simply click on "images" and have all the = raster files within the zoomed area appear? kinda like: LAYER IMAGES DATA 1.TIF,2.TIF, 3.TIF .... ETC TYPE RASTER END Thanks, John John M. Duggan LSIT gis@farmvilleva.com http://www.farmvilleva.com (434) 392-3333 "......for the whole universe is in Him and He dwells within our heart." -The Upanishads ------=_NextPart_000_007A_01C30FF8.7051F030 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
can anyone show me one of their map = files that=20 has many raster files under one layer so you can simply click on = "images" and=20 have all the raster files within the zoomed area appear?
 
kinda like:
 
LAYER IMAGES
DATA 1.TIF,2.TIF, 3.TIF .... = ETC
TYPE RASTER
END
 
Thanks,
John
 
John M. Duggan LSIT
gis@farmvilleva.com
http://www.farmvilleva.com
(43= 4)=20 392-3333
 
"......for the whole universe is in Him = and He=20 dwells
within our=20 heart."
          &n= bsp;           &nb= sp;  =20 -The Upanishads
------=_NextPart_000_007A_01C30FF8.7051F030-- From steve.lime@dnr.state.mn.us Thu May 1 20:48:54 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Thu, 01 May 2003 14:48:54 -0500 Subject: [Mapserver-users] Non-Rectangular Tiles in TILEINDEX ? Message-ID: Yes, although I need to look at the code to be sure. Even with though there are situations where a tile may be processed when it doesn't intersect the AOI it's still far better than no tiling in all. In general regular shaped tiles will provide the best performance as Ed mentions. Steve >>> "Ed McNierney" 05/01/03 01:59PM >>> Steve - Thanks; I didn't realize that. So non-rectangular tiles basically end up being treated the same as rectangular tiles (i.e. bounding boxes) enclosing the same polygons? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: Steve Lime [mailto:steve.lime@dnr.state.mn.us] Sent: Thursday, May 01, 2003 1:56 PM To: BBruce@gov.mb.ca; mapserver-users@lists.gis.umn.edu; Ed McNierney Subject: RE: [Mapserver-users] Non-Rectangular Tiles in TILEINDEX ? Actually there is no pre-requisite for tiles other than that they be polygons. Behind the scenes the decision to process a tile or not is based on the bounding box of that feature (I believe) so there are certain inefficiencies that can occur with irregularly shaped tiles that don't truly intersect the area of interest. I and others have use things like counties or landsat footprints with success in the past. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ed McNierney" 04/30/03 07:26PM >>> Bob - Your TILEINDEX should be rectangles. The intent of a TILEINDEX is to allow MapServer to quickly determine whether to examine an input file to see if it has any visible features on the current map request. Rectangular tiles can be very quickly examined to see if they intersect the map viewframe. If so, the source is opened and any files that REALLY intersect the view are drawn. Supporting non-rectangular tiles would be more complex and somewhat slower, and would probably be of rather little benefit in most applications. A good combination of rectangular tile indexes and spatial indexing will produce very good performance. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: Bruce, Bob (CON) [mailto:BBruce@gov.mb.ca] Sent: Wednesday, April 30, 2003 7:54 PM To: 'Mapserver Mailing List' Subject: [Mapserver-users] Non-Rectangular Tiles in TILEINDEX ? I have been experimenting with TILEINDEXs in order to evaluate their functionality for my applications. I have successfully displayed a TILEINDEX of 20 orthophotos in my browser. Next I wanted to try displaying a set of project mapping areas and built an index map of polygons of these areas. I included this index map as a TILEINDEX in my map file and do not get anything displayed, instead I get a blank display. This leads me to wonder if this is because my tile polygons are non-rectangular. Does the Map Server require tiles to be rectangular or can it work with irregularly shaped tiles? I have successfully displayed my dataset that I'm using as a TILEINDEX as a line file, so I know that the server will work with this file. For your reference, I have included the definition of this layer: LAYER # DLS Polys NAME "DLSPolys" TILEINDEX "TilesWWinnipeg_CARIS/TilesWWinnipeg" TILEITEM "MAPKEY" STATUS DEFAULT TYPE POLYGON CLASSITEM "MAPKEY" CLASS # Whole DLS Parcel STATUS ON NAME "WHOLE DLSPOLY" COLOR 255 202 149 OUTLINECOLOR 0 0 0 END # end of Whole DLS Parcel class object END # end of layer object thanks, Bob Bruce ************************************************************************ ********************************** ** Bob Bruce, P.Eng. Geomatics Support Engineer ** bbruce@gov.mb.ca Manitoba Geomatics/Remote Sensing Branch, ** work # (204) 945-6636 1007 Century Street, ** home # (204) 256-4615 Winnipeg, Manitoba, Canada, R3H 0W4 ** FAX # (204) 945-1365 ** ** The Manitoba Centre for: ** Cadastral & Topographical Mapping, and Remote Sensing ** See us on the Web at: http://www.gov.mb.ca/conservation/geomatics/cada_mapping/index.html ** and: http://www.gov.mb.ca/conservation/geomatics/index.html ** Check out our digital maps at: http://mli.gov.mb.ca/ ************************************************************************ ********************************** _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From steve.lime@dnr.state.mn.us Thu May 1 20:50:26 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Thu, 01 May 2003 14:50:26 -0500 Subject: [Mapserver-users] Example of many raster files? Message-ID: You need to use tiles for that and it works quite well. For example, we have ~1000 DOQs that we handle with a single layer. Steve >>> "John M. Duggan, LSIT" 05/01/03 02:43PM >>> can anyone show me one of their map files that has many raster files under one layer so you can simply click on "images" and have all the raster files within the zoomed area appear? kinda like: LAYER IMAGES DATA 1.TIF,2.TIF, 3.TIF .... ETC TYPE RASTER END Thanks, John John M. Duggan LSIT gis@farmvilleva.com http://www.farmvilleva.com (434) 392-3333 "......for the whole universe is in Him and He dwells within our heart." -The Upanishads From eric@gomoos.org Thu May 1 17:05:49 2003 From: eric@gomoos.org (Eric Bridger) Date: 01 May 2003 16:05:49 +0000 Subject: [Mapserver-users] Renderer within one layer In-Reply-To: <004d01c31017$daf57f00$0220a8c0@devnet.com> References: <004d01c31017$daf57f00$0220a8c0@devnet.com> Message-ID: <1051805150.1480.51.camel@ubet.gomoos.org> There is a Perl mapscript and mapfile example here: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex14 which puts a plus symbol where the user clicked the map. See get_click() and $click_pt->draw(). This is a vector symbol, but a pixmap pushpin symbol could be used. Not sure how to do this with CGI mapserv. See: http://mapserver.gis.umn.edu/doc36/mapfile-reference.html#class Layer Class Expression for how to get different symbols to display based on attribute values. Eric Bridger On Thu, 2003-05-01 at 19:28, Tai Le wrote: > Hello, > I'm new to MapServer. I have some questions: > - What is the best way to implement some kind of PushPin with MapServer? Is there any example available? > - I want to display different symbols on the map from the same map layer (based on some query attributes). If any one knows the Renderer class from ESRI MapObject, that is what I would like to see on MapServer. > Thanks for your help. > > -- Tai. From joe@otsys.com Thu May 1 21:08:18 2003 From: joe@otsys.com (Joe Bussell) Date: Thu, 01 May 2003 13:08:18 -0700 Subject: [Mapserver-users] PERL mapscript undefined symbol woes In-Reply-To: References: Message-ID: <3EB17EB2.30703@otsys.com> I have had this running on 5.8 using swig1.1 some weeks ago. Something drifted on my box certainly. I have a similar set of undefined symbols on a Redhat box using perl5.6. It does not give me any trouble however, certainly never seg-faults. I did make a pass using swig1.3. I recieved several warnings about deprecated methods, but it generated a compilable .c file. Make went well also. Mapscript almost worked, but I observed msyyparse errors on an expression without any detail on the source of the error (Thu May 1 10:29:58 2003 - msyyparse(): Expression parser error. parse error) It did render some maps with very small number of elements. When the number of on-screen objects gets large,it seg-faults. This seems quite odd as the production box at www.trafficdodger.com is doing a bang up job with mapserver-3.6.5 using the same shapefiles, mapfile, and symbol set. On my Redhat box with perl5.6.1 (that works fine apparently) I get the following errors upon ldd -r mapscript.so: ldd -r /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so libgd.so.2 => /usr/local/lib/libgd.so.2 (0x400d9000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40110000) libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x4012f000) libpng.so.2 => /usr/lib/libpng.so.2 (0x40178000) libz.so.1 => /usr/lib/libz.so.1 (0x4019a000) libtiff.so.3 => /usr/lib/libtiff.so.3 (0x401a9000) libproj.so.0 => /usr/local/lib/libproj.so.0 (0x401eb000) libgdal.1.1.so => /usr/local/lib/libgdal.1.1.so (0x4021d000) libm.so.6 => /lib/i686/libm.so.6 (0x40474000) libc.so.6 => /lib/i686/libc.so.6 (0x40497000) libdl.so.2 => /lib/libdl.so.2 (0x405d3000) libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x405d8000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) undefined symbol: PL_sv_undef (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: PL_markstack_ptr (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: PL_na (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: PL_sv_yes (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: PL_stack_base (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: PL_stack_sp (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: perl_get_sv (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: Perl_croak (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_setiv (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: Perl_mg_find (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_newmortal (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_isobject (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_2nv (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_2pv (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_setpv (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: Perl_newXS (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_setsv (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_magic (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_setref_pv (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_2iv (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_setnv (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: Perl_sv_setpvn (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) undefined symbol: Perl_mg_get (/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/mapscript/mapscript.so) Cordially, Joe Bussell Steve Lime wrote: > I've not tried perl 5.8 with Swig. So, if they changed the guts of perl > which is where all > the undefined symbols live then that could be the issue. Have you tried > re-swigging the > the interface (cd mapscript/perl; swig -shadow -perl5 mapscript.i) file > with a brand new > version of Swig? > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>>>Joe Bussell 04/30/03 05:56PM >>> > > Greetings Listers, > I have a Debian box with PERL5.8 and mapserver-3.6.5. I have had > great success in the past with this box, but something in my build went > > awry. The compile for mapserv and then perl/mapscript completed > without > error. The object is also generally useful when using dump.pl and even > > some live map rendering under apache. The symptom that I observed is > that whenever the process needs to carp out something it segfaults and > > dies. I ran ldd with the -r option and observed an interresting clue > (see below). Does anyone have any ideas how the Perl_* symbols are > defined? Why would they not be found? Should the list of *.so include > > libperl.so? Any ideas on getting out of this mess? > > ldd -r blib/arch/auto/mapscript/mapscript.so > libgd.so.2 => /usr/local/lib/libgd.so.2 (0x40102000) > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40147000) > libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 > (0x40164000) > libpng.so.2 => /usr/lib/libpng.so.2 (0x401ad000) > libz.so.1 => /lib/libz.so.1 (0x401d3000) > libtiff.so.3 => /usr/lib/libtiff.so.3 (0x401e0000) > libproj.so.0 => /usr/local/lib/libproj.so.0 (0x40224000) > libgdal.1.1.so => /usr/local/lib/libgdal.1.1.so (0x40255000) > libm.so.6 => /lib/libm.so.6 (0x404b0000) > libc.so.6 => /lib/libc.so.6 (0x404d1000) > libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x405e1000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x405ef000) > libdl.so.2 => /lib/libdl.so.2 (0x406ab000) > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x406ae000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40757000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > undefined symbol: Perl_croak_nocontext > (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: > Perl_sv_setiv (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: > Perl_sv_2pv_flags (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_mg_find (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: pthread_getspecific > (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: > Perl_sv_newmortal (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: > Perl_sv_isobject (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_sv_2nv (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: > Perl_Isv_yes_ptr (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: > Perl_sv_setpv (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_newXS (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_Tna_ptr (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_Tmarkstack_ptr_ptr > (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: > Perl_Isv_undef_ptr (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: > Perl_sv_magic (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_sv_setsv_flags > (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_Tstack_base_ptr > (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_get_sv (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: > Perl_Gthr_key_ptr (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: > Perl_sv_setref_pv (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_sv_2iv (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: > Perl_sv_setnv (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: > Perl_Tstack_sp_ptr (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: > Perl_sv_setpvn (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_mg_get (blib/arch/auto/mapscript/mapscript.so) > > > Cordially, > > Joe Bussell > On Time Systems > www.trafficdodger.com > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From slaven@rezic.de Thu May 1 20:45:07 2003 From: slaven@rezic.de (Slaven Rezic) Date: 01 May 2003 21:45:07 +0200 Subject: [Mapserver-users] Problems with PerlMapscript 3.7 Syntax In-Reply-To: Sean Gillies's message of "Thu, 1 May 2003 13:02:30 -0600" References: <753963AD-7C07-11D7-AE40-000393B98B56@frii.com> Message-ID: <87znm61mf0.fsf@vran.herceg.de> Sean Gillies writes: > I can't speak for the developer who committed the change, but > it appears to me that the developer wants to promote some > degree of uniformity across object methods. The mapObj has a > save() method that outputs to disk, and it seems natural that > the extension to imageObj that outputs to disk should also be > named 'save'. > > Is not at all productive? If all mapping objects had a save() > method, one could reliably save an arbitrary object without > having to do any type checking, or looking up whether you have > to use 'saveMap' or 'saveImage' or 'saveSymbol'. Objects > save themselves using methods uniformly named 'save'. This > promotes development of more modular and reusable code. To me, > that is productive. > > I don't deny that refactoring scripts to work with the newer > MapScript module will have a cost. One way to enable a script > to work with 3.6 mapscript and 4.0 mapscript is to use > try/catch. This example in Python: > > try: > img.saveImage('foo.png') > except AttributeError: > img.save('foo.png') > > With Perl it's a bit uglier since you have to eval() and trap > errors, but it's the same idea. > I have to disagree. It's not ugly, it's maybe named somewhat strange for non-perlers: eval { $img->saveImage("foo.png"); }; if ($@) { $img->save("foo.png"); } But you should better either use ->can: $image_save = $img->can("save") || $img->can("saveImage"); $img->save("foo.png"); or create a compatibility method: if (!defined &mapscript::imageObj::saveImage) { *mapscript::imageObj::saveImage = \&mapscript::imageObj::save; } Such a module with compatibility methods could even go into the standard mapserver distribution. Regards, Slaven -- Slaven Rezic - slaven@rezic.de BBBike - route planner for cyclists in Berlin WWW version: http://www.bbbike.de Perl/Tk version for Unix and Windows: http://bbbike.sourceforge.net From slaven@rezic.de Thu May 1 21:26:30 2003 From: slaven@rezic.de (Slaven Rezic) Date: 01 May 2003 22:26:30 +0200 Subject: [Mapserver-users] PERL mapscript undefined symbol woes In-Reply-To: Joe Bussell's message of "Wed, 30 Apr 2003 15:56:16 -0700" References: <3EB05490.8080602@otsys.com> Message-ID: <87wuha1ki1.fsf@vran.herceg.de> Joe Bussell writes: > Greetings Listers, > I have a Debian box with PERL5.8 and mapserver-3.6.5. I have had > great success in the past with this box, but something in my build went > awry. The compile for mapserv and then perl/mapscript completed without > error. The object is also generally useful when using dump.pl and even > some live map rendering under apache. The symptom that I observed is > that whenever the process needs to carp out something it segfaults and > dies. I ran ldd with the -r option and observed an interresting clue > (see below). Does anyone have any ideas how the Perl_* symbols are > defined? Normally the Perl_* symbols are either in the perl library or in the perl executable. > Why would they not be found? Should the list of *.so include > libperl.so? I don't think so, at least it's not on FreeBSD. > Any ideas on getting out of this mess? What is the output of "perl -v"? Does it include "useshrplib=true"? Regards, Slaven > > ldd -r blib/arch/auto/mapscript/mapscript.so > libgd.so.2 => /usr/local/lib/libgd.so.2 (0x40102000) > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40147000) > libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x40164000) > libpng.so.2 => /usr/lib/libpng.so.2 (0x401ad000) > libz.so.1 => /lib/libz.so.1 (0x401d3000) > libtiff.so.3 => /usr/lib/libtiff.so.3 (0x401e0000) > libproj.so.0 => /usr/local/lib/libproj.so.0 (0x40224000) > libgdal.1.1.so => /usr/local/lib/libgdal.1.1.so (0x40255000) > libm.so.6 => /lib/libm.so.6 (0x404b0000) > libc.so.6 => /lib/libc.so.6 (0x404d1000) > libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x405e1000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x405ef000) > libdl.so.2 => /lib/libdl.so.2 (0x406ab000) > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x406ae000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40757000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > undefined symbol: Perl_croak_nocontext > (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_sv_setiv (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_sv_2pv_flags (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_mg_find (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: pthread_getspecific > (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_sv_newmortal (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_sv_isobject (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_sv_2nv (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_Isv_yes_ptr (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_sv_setpv (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_newXS (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_Tna_ptr (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_Tmarkstack_ptr_ptr > (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_Isv_undef_ptr (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_sv_magic (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_sv_setsv_flags > (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_Tstack_base_ptr > (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_get_sv (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_Gthr_key_ptr (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_sv_setref_pv (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_sv_2iv (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_sv_setnv (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_Tstack_sp_ptr (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_sv_setpvn (blib/arch/auto/mapscript/mapscript.so) > undefined symbol: Perl_mg_get (blib/arch/auto/mapscript/mapscript.so) > > > Cordially, > > Joe Bussell > On Time Systems > www.trafficdodger.com > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > -- Slaven Rezic - slaven@rezic.de BBBike - route planner for cyclists in Berlin WWW version: http://www.bbbike.de Perl/Tk version for Unix and Windows: http://bbbike.sourceforge.net From joe@otsys.com Thu May 1 22:11:27 2003 From: joe@otsys.com (Joe Bussell) Date: Thu, 01 May 2003 14:11:27 -0700 Subject: [Mapserver-users] PERL mapscript undefined symbol woes In-Reply-To: <87wuha1ki1.fsf@vran.herceg.de> References: <3EB05490.8080602@otsys.com> <87wuha1ki1.fsf@vran.herceg.de> Message-ID: <3EB18D7F.10402@otsys.com> perl -V does indeed include "useshrplib=true" Slaven Rezic wrote: > Joe Bussell writes: > > >>Greetings Listers, >> I have a Debian box with PERL5.8 and mapserver-3.6.5. I have had >>great success in the past with this box, but something in my build went >>awry. The compile for mapserv and then perl/mapscript completed without >>error. The object is also generally useful when using dump.pl and even >>some live map rendering under apache. The symptom that I observed is >>that whenever the process needs to carp out something it segfaults and >>dies. I ran ldd with the -r option and observed an interresting clue >>(see below). Does anyone have any ideas how the Perl_* symbols are >>defined? > > > Normally the Perl_* symbols are either in the perl library or in the > perl executable. > > >> Why would they not be found? Should the list of *.so include >>libperl.so? > > > I don't think so, at least it's not on FreeBSD. > > >> Any ideas on getting out of this mess? > > > What is the output of "perl -v"? Does it include "useshrplib=true"? > > Regards, > Slaven > > >>ldd -r blib/arch/auto/mapscript/mapscript.so >> libgd.so.2 => /usr/local/lib/libgd.so.2 (0x40102000) >> libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40147000) >> libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x40164000) >> libpng.so.2 => /usr/lib/libpng.so.2 (0x401ad000) >> libz.so.1 => /lib/libz.so.1 (0x401d3000) >> libtiff.so.3 => /usr/lib/libtiff.so.3 (0x401e0000) >> libproj.so.0 => /usr/local/lib/libproj.so.0 (0x40224000) >> libgdal.1.1.so => /usr/local/lib/libgdal.1.1.so (0x40255000) >> libm.so.6 => /lib/libm.so.6 (0x404b0000) >> libc.so.6 => /lib/libc.so.6 (0x404d1000) >> libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x405e1000) >> libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x405ef000) >> libdl.so.2 => /lib/libdl.so.2 (0x406ab000) >> libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x406ae000) >> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40757000) >> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) >>undefined symbol: Perl_croak_nocontext >>(blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_sv_setiv (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_sv_2pv_flags (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_mg_find (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: pthread_getspecific >>(blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_sv_newmortal (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_sv_isobject (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_sv_2nv (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_Isv_yes_ptr (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_sv_setpv (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_newXS (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_Tna_ptr (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_Tmarkstack_ptr_ptr >>(blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_Isv_undef_ptr (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_sv_magic (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_sv_setsv_flags >>(blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_Tstack_base_ptr >>(blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_get_sv (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_Gthr_key_ptr (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_sv_setref_pv (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_sv_2iv (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_sv_setnv (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_Tstack_sp_ptr (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_sv_setpvn (blib/arch/auto/mapscript/mapscript.so) >>undefined symbol: Perl_mg_get (blib/arch/auto/mapscript/mapscript.so) >> >> >>Cordially, >> >>Joe Bussell >>On Time Systems >>www.trafficdodger.com >> >>_______________________________________________ >>Mapserver-users mailing list >>Mapserver-users@lists.gis.umn.edu >>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >> > > From slaven@rezic.de Thu May 1 22:48:06 2003 From: slaven@rezic.de (Slaven Rezic) Date: 01 May 2003 23:48:06 +0200 Subject: [Mapserver-users] PERL mapscript undefined symbol woes In-Reply-To: Joe Bussell's message of "Thu, 01 May 2003 14:11:27 -0700" References: <3EB05490.8080602@otsys.com> <87wuha1ki1.fsf@vran.herceg.de> <3EB18D7F.10402@otsys.com> Message-ID: <87llxq1gq1.fsf@vran.herceg.de> Joe Bussell writes: > perl -V does indeed include "useshrplib=true" > Does it help if you specify LD_LIBRARY_PATH? env LD_LIBRARY_PATH=/path/containing/libperl.so yourscript Regards, Slaven > Slaven Rezic wrote: > > Joe Bussell writes: > > > > > >>Greetings Listers, > >> I have a Debian box with PERL5.8 and mapserver-3.6.5. I have had > >>great success in the past with this box, but something in my build went > >>awry. The compile for mapserv and then perl/mapscript completed without > >>error. The object is also generally useful when using dump.pl and even > >>some live map rendering under apache. The symptom that I observed is > >>that whenever the process needs to carp out something it segfaults and > >>dies. I ran ldd with the -r option and observed an interresting clue > >>(see below). Does anyone have any ideas how the Perl_* symbols are > >>defined? > > > > > > Normally the Perl_* symbols are either in the perl library or in the > > perl executable. > > > > > >> Why would they not be found? Should the list of *.so include > >>libperl.so? > > > > > > I don't think so, at least it's not on FreeBSD. > > > > > >> Any ideas on getting out of this mess? > > > > > > What is the output of "perl -v"? Does it include "useshrplib=true"? > > > > Regards, > > Slaven > > > > > >>ldd -r blib/arch/auto/mapscript/mapscript.so > >> libgd.so.2 => /usr/local/lib/libgd.so.2 (0x40102000) > >> libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40147000) > >> libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x40164000) > >> libpng.so.2 => /usr/lib/libpng.so.2 (0x401ad000) > >> libz.so.1 => /lib/libz.so.1 (0x401d3000) > >> libtiff.so.3 => /usr/lib/libtiff.so.3 (0x401e0000) > >> libproj.so.0 => /usr/local/lib/libproj.so.0 (0x40224000) > >> libgdal.1.1.so => /usr/local/lib/libgdal.1.1.so (0x40255000) > >> libm.so.6 => /lib/libm.so.6 (0x404b0000) > >> libc.so.6 => /lib/libc.so.6 (0x404d1000) > >> libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x405e1000) > >> libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x405ef000) > >> libdl.so.2 => /lib/libdl.so.2 (0x406ab000) > >> libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x406ae000) > >> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40757000) > >> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > >>undefined symbol: Perl_croak_nocontext > >>(blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_sv_setiv (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_sv_2pv_flags (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_mg_find (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: pthread_getspecific > >>(blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_sv_newmortal (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_sv_isobject (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_sv_2nv (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_Isv_yes_ptr (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_sv_setpv (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_newXS (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_Tna_ptr (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_Tmarkstack_ptr_ptr > >>(blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_Isv_undef_ptr (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_sv_magic (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_sv_setsv_flags > >>(blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_Tstack_base_ptr > >>(blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_get_sv (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_Gthr_key_ptr (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_sv_setref_pv (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_sv_2iv (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_sv_setnv (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_Tstack_sp_ptr (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_sv_setpvn (blib/arch/auto/mapscript/mapscript.so) > >>undefined symbol: Perl_mg_get (blib/arch/auto/mapscript/mapscript.so) > >> > >> > >>Cordially, > >> > >>Joe Bussell > >>On Time Systems > >>www.trafficdodger.com > >> > >>_______________________________________________ > >>Mapserver-users mailing list > >>Mapserver-users@lists.gis.umn.edu > >>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > >> > > > > > > > -- Slaven Rezic - slaven@rezic.de babybike - routeplanner for cyclists in Berlin handheld (e.g. Compaq iPAQ with Linux) version of bbbike http://bbbike.sourceforge.net From BBruce@gov.mb.ca Thu May 1 23:14:35 2003 From: BBruce@gov.mb.ca (Bruce, Bob (CON)) Date: Thu, 1 May 2003 17:14:35 -0500 Subject: [Mapserver-users] Non-Rectangular Tiles in TILEINDEX ? - Got It Working - THANKS! Message-ID: <67AA2C4FAC30D611A8F600306E1C245101545C91@WPG001EX11> Thanks to you all for your help. Being very new to the MapServer I'm not sure when I'm going wrong or I'm hitting a limit in the software. These comments made me go back and take a long hard look at my files and I realized where I was going wrong - in the path names in my TILEITEMs. I now have my TILEINDEX file set up with my irregularly shaped polygons referencing my datasets and it all draws quite nicely, going off to get these datasets and drawing them. So non-rectangular tiles do work in the MapServer, a fact that will be very useful in drawing property mapping datasets. Bob Bruce -----Original Message----- From: Steve Lime [mailto:steve.lime@dnr.state.mn.us] Sent: 2003-May-01 2:49 PM To: BBruce@gov.mb.ca; mapserver-users@lists.gis.umn.edu; ed@topozone.com Subject: RE: [Mapserver-users] Non-Rectangular Tiles in TILEINDEX ? Yes, although I need to look at the code to be sure. Even with though there are situations where a tile may be processed when it doesn't intersect the AOI it's still far better than no tiling in all. In general regular shaped tiles will provide the best performance as Ed mentions. - - - - - From Antti.Roppola@brs.gov.au Fri May 2 00:55:31 2003 From: Antti.Roppola@brs.gov.au (Antti.Roppola@brs.gov.au) Date: Fri, 2 May 2003 09:55:31 +1000 Subject: [Mapserver-users] Example of many raster files? Message-ID: <3E4215C93D3CE24D84A9FF385DF88D87FC42A6@afeb-ms-02> I wonder how it would work if you created a tile index that had overlapping tiles containing your images? Antti -----Original Message----- From: John M. Duggan, LSIT [mailto:gis@farmvilleva.com] Sent: Friday, 2 May 2003 5:44 AM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Example of many raster files? can anyone show me one of their map files that has many raster files under one layer so you can simply click on "images" and have all the raster files within the zoomed area appear? kinda like: LAYER IMAGES DATA 1.TIF,2.TIF, 3.TIF .... ETC TYPE RASTER END Thanks, John John M. Duggan LSIT gis@farmvilleva.com http://www.farmvilleva.com (434) 392-3333 "......for the whole universe is in Him and He dwells within our heart." -The Upanishads From woodbri@swoodbridge.com Fri May 2 02:30:50 2003 From: woodbri@swoodbridge.com (woodbri@swoodbridge.com) Date: Thu, 01 May 2003 21:30:50 -0400 Subject: [Mapserver-users] Example of many raster files? In-Reply-To: <3E4215C93D3CE24D84A9FF385DF88D87FC42A6@afeb-ms-02> Message-ID: <3EB1920A.23609.291AFD21@localhost> I believe that I have some like that and the files are all loaded in the order they are encountered in the tileindex. -Steve W. On 2 May 2003 at 9:55, Antti.Roppola@brs.gov.au wrote: > I wonder how it would work if you created a tile index > that had overlapping tiles containing your images? > > Antti > > > -----Original Message----- > From: John M. Duggan, LSIT [mailto:gis@farmvilleva.com] > Sent: Friday, 2 May 2003 5:44 AM > To: mapserver-users@lists.gis.umn.edu > Subject: [Mapserver-users] Example of many raster files? > > > can anyone show me one of their map files that has many raster files > under one layer so you can simply click on "images" and have all the > raster files within the zoomed area appear? > > kinda like: > > LAYER IMAGES > DATA 1.TIF,2.TIF, 3.TIF .... ETC > TYPE RASTER > END > > Thanks, > John > > John M. Duggan LSIT > gis@farmvilleva.com > http://www.farmvilleva.com > (434) 392-3333 > > "......for the whole universe is in Him and He dwells > within our heart." > -The Upanishads > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From ed@topozone.com Fri May 2 03:10:43 2003 From: ed@topozone.com (Ed McNierney) Date: Thu, 1 May 2003 22:10:43 -0400 Subject: [Mapserver-users] Example of many raster files? Message-ID: <13858AA1A74F30419F319ACB66A9D1220196B9@mercator.topozone.com> Yes, there's nothing wrong with overlapping tiles in a tile index. MapServer just intersects the output image frame with the polygons in the index and then goes about opening and rendering all the ones that intersect the output frame. We've got something over 300,000 raster images tiled into layers, and then those layers put into GROUPs so you can switch a whole bunch on or off at once. I think the biggest TILEINDEX files we've got probably have 20,000 to 25,000 raster images in them. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: woodbri@swoodbridge.com [mailto:woodbri@swoodbridge.com] Sent: Thursday, May 01, 2003 9:31 PM To: gis@farmvilleva.com; mapserver-users@lists.gis.umn.edu; Antti.Roppola@brs.gov.au Subject: RE: [Mapserver-users] Example of many raster files? I believe that I have some like that and the files are all loaded in the order they are encountered in the tileindex. -Steve W. On 2 May 2003 at 9:55, Antti.Roppola@brs.gov.au wrote: > I wonder how it would work if you created a tile index > that had overlapping tiles containing your images? > > Antti > > > -----Original Message----- > From: John M. Duggan, LSIT [mailto:gis@farmvilleva.com] > Sent: Friday, 2 May 2003 5:44 AM > To: mapserver-users@lists.gis.umn.edu > Subject: [Mapserver-users] Example of many raster files? > > > can anyone show me one of their map files that has many raster files > under one layer so you can simply click on "images" and have all the > raster files within the zoomed area appear? > > kinda like: > > LAYER IMAGES > DATA 1.TIF,2.TIF, 3.TIF .... ETC > TYPE RASTER > END > > Thanks, > John > > John M. Duggan LSIT > gis@farmvilleva.com > http://www.farmvilleva.com > (434) 392-3333 > > "......for the whole universe is in Him and He dwells > within our heart." > -The Upanishads > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From Antti.Roppola@brs.gov.au Fri May 2 04:16:16 2003 From: Antti.Roppola@brs.gov.au (Antti.Roppola@brs.gov.au) Date: Fri, 2 May 2003 13:16:16 +1000 Subject: [Mapserver-users] WMS wms_srs of non-EPSG projections? Message-ID: <3E4215C93D3CE24D84A9FF385DF88D87FC42A7@afeb-ms-02> Hello all, I am in the process of building some WMS datasets and have a question about how non-EPSG projections are handled by WMS. According to the WMS server HOWTO: > WMS servers have to advertise the projection in which they are able to > serve data using EPSG projection codes And that we do this by defining EPSG codes in the WMS_SRS parameter. What do you do if you want to serve stuff up in something like Albers? Cheers, Antti From garre_gis@hotmail.com Fri May 2 08:09:24 2003 From: garre_gis@hotmail.com (Justin Garre) Date: Fri, 02 May 2003 00:09:24 -0700 Subject: [Mapserver-users] Mapserver/ArcIMS: server requirements Message-ID: I am trying to get an idea of how many servers/server space will be required to run Mapserver with a specific number of hits per day. For example, would a single server be adequate for 200,00 user sessions per day? How many servers would be necessary for 1,000,000 users (site hits) per day? Granted this questions depends on a variety of criteria such as the capabilities of the hardware and how large the map files are, but if anybody would be willing to share what kind of server setup you have and how much usage you experience on a daily basis it would be greatly appreciated. Also, would ArcIMS be more demanding than Mapserver in terms of server consumption? ie- I understand Mapserver has a more concise code so I am curious to know if it would be less demanding on our server(s). Thanks in advance, Justin Garre University of Washington garre_gis@hotmail.com _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From garre_gis@hotmail.com Fri May 2 08:29:26 2003 From: garre_gis@hotmail.com (Justin Garre) Date: Fri, 02 May 2003 00:29:26 -0700 Subject: [Mapserver-users] Transforming lat/long points into shapefiles Message-ID: Given a set of start and end latitude and longitude points that comprise a street rout, how do I transform them into a shapefile in an automated manner from a database? This database would be consistently updated with new data from the field so it is important that we be able to have our map be capable of automatically displaying the data as it becomes available. Is the most common and time efficient way of doing this to have a new shapefile be created and displayed in real-time on our map during each data update from the field or is there a way to simply have the street network shapefile draw data from a database real-time and update its attributes without creating an all new shapefile? Depending on which is best, are there any text resources out there that show how this is accomplished in database design? I have been having difficulty in finding information on this topic both through Google searches and on the Mapserver support site so I appreciate both your patience and any help that you can provide. Best regards, Justin Garre University of Washington garre_gis@hotmail.com _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From paul.hasenohr@jrc.it Fri May 2 08:29:24 2003 From: paul.hasenohr@jrc.it (Paul Hasenohr) Date: Fri, 2 May 2003 09:29:24 +0200 Subject: [Mapserver-users] still a problem with ecw output Message-ID: <001001c3107c$8ee5cd80$878ebf8b@mars.ipsc.jrc.it> This is a multi-part message in MIME format. ------=_NextPart_000_0011_01C3108D.52702420 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Frank, =20 I posted a message to the mapserver user list three weeks ago about a problem with ecw output (the ecw generated file stayed in the server web temp folder and was not sent back to the client browser). You answered me that there was a problem of filename (the filename = expected by mapserver from gdal/ecw was different from the one produced by = gdal/ecw). You wrote that you probably fixed the problem but couldn't test it. I downloaded yesterday a new windows built of mapserver from dmsolutions website (file mapserver-3.7-dev-win32-php4.3.0-gd2.zip created by 23-Apr-2003 12:08 with a size of 14.0M) I presume it integrated your modifications to the mapserver source code = as the error I get now from mapserver trying to produce an ecw output is different. In fact, I don't receive any error message. When I try to produce an ecw image, my browser asks me if I want to download a file called "mapserv". This file has the same size as the ecw image produced in the web temp directory (called for example 105172245637240.ecw against 105172245637240.img.ecw before you changed the code) but it's not an ecw image (ER Viewer can't open it). Have you any idea of what's happening ? =20 Thanks for your help =20 Best regards Paul ------=_NextPart_000_0011_01C3108D.52702420 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
Frank,
 
I = posted a message=20 to the mapserver user list three weeks ago about a problem with ecw = output (the=20 ecw generated file stayed in the server web temp folder and was not sent = back to=20 the client browser).
You = answered me that=20 there was a problem of filename (the filename expected by mapserver from = gdal/ecw was different from the one produced by gdal/ecw). You wrote = that you=20 probably fixed the problem but couldn't test it.
I = downloaded=20 yesterday a new windows built of mapserver from dmsolutions website = (file=20 mapserver-3.7-dev-win32-php4.3.0-gd2.zip created by 23-Apr-2003 12:08 = with a=20 size of 14.0M)
I = presume it=20 integrated your modifications to the mapserver source code as the error = I get=20 now from mapserver trying to produce an ecw output is=20 different.
In = fact, I don't=20 receive any error message. When I try to produce an ecw image, my = browser asks=20 me if I want to download a file called "mapserv". This file has the same = size as=20 the ecw image produced in the web temp directory (called for example=20 105172245637240.ecw against 105172245637240.img.ecw before you changed = the code)=20 but it's not an ecw image (ER Viewer can't open it).
Have = you any idea of=20 what's happening ?
 
Thanks = for your=20 help
 
Best=20 regards
Paul
------=_NextPart_000_0011_01C3108D.52702420-- From bplatzen@sosnetz.de Fri May 2 10:16:21 2003 From: bplatzen@sosnetz.de (=?iso-8859-15?q?Bj=F6rn=20Platzen?=) Date: Fri, 2 May 2003 11:16:21 +0200 Subject: [Mapserver-users] Error when using labels TYPE=truetype Message-ID: <200305021116.21471.bplatzen@sosnetz.de> Hi all, I am using MapServer 3.6.5 with TTF-Support on a SuSE Linux 8.0-Box. When using TYPE=truetype on labels I get the following error: msGetLabelSize(): TrueType Font error. Could not find/open font I have dfined the alias in my font.list and the ttf-file is available in the same directory. chmod'ing the ttf-files to 755 did have no effect. Here are some snippets: NAME wtal1 STATUS ON SIZE 400 400 SYMBOLSET symbols/symbols.sym FONTSET font/font.list EXTENT 2579338.972431 5678689.425632 2584838.972431 5684196.944428 UNITS METERS SHAPEPATH "dds_data" IMAGECOLOR 250 250 250 #[...] LAYER NAME stadtteile TYPE POLYGON STATUS ON MINSCALE 12000 DATA stadtteile LABELITEM "Name" CLASS LABEL TYPE truetype FONT "arial" SIZE 32 COLOR 0 0 0 END #LABEL END #CLASS END #LAYER END # Map File arial arial.ttf arial-bold arialbd.ttf arial-italic ariali.ttf arial-bold-italic arialbi.ttf arial_black ariblk.ttf drwxr-xr-x 2 platzen users 4096 Okt 24 2002 ./ drwxrwxr-x 13 platzen users 4096 Apr 7 17:16 ../ -rwxr-xr-x 1 platzen users 296712 Aug 18 2001 arial.ttf* -rwxr-xr-x 1 platzen users 288496 Aug 18 2001 arialbd.ttf* -rwxr-xr-x 1 platzen users 226748 Aug 18 2001 arialbi.ttf* -rwxr-xr-x 1 platzen users 207808 Aug 18 2001 ariali.ttf* -rwxr-xr-x 1 platzen users 117028 Aug 18 2001 ariblk.ttf* -rwxr-xr-x 1 platzen users 215 Okt 24 2002 font.list* Am I doing something wrong?? Thanks for any help Bjoern -- small office solutions info@sosnetz.de - http://www.sosnetz.de From bplatzen@sosnetz.de Fri May 2 10:18:44 2003 From: bplatzen@sosnetz.de (=?iso-8859-1?q?Bj=F6rn=20Platzen?=) Date: Fri, 2 May 2003 11:18:44 +0200 Subject: [Mapserver-users] How to do an Arrow-Symbol In-Reply-To: <3EAD1C77.C3205301@webgis.de> References: <200304281233.54882.bplatzen@sosnetz.de> <3EAD1C77.C3205301@webgis.de> Message-ID: <200305021118.44986.bplatzen@sosnetz.de> Hi Michael, sorry for the late response, but I've been out of the office for some days... > instead of the line layer, you could also use a point layer for the > entry markers, thus you can easy use self-made raster arrows and use > mapserver rotation mechanism when you add a field with the rotation > angle to each entry marker. This angle should not be to hard to > calculate when using arcview or sth similar. This seems to be the best way. Thanks, Bjoern -- small office solutions info@sosnetz.de - http://www.sosnetz.de From st027364@ait.ac.th Fri May 2 11:41:15 2003 From: st027364@ait.ac.th (Yann) Date: 02 May 2003 17:41:15 +0700 Subject: [Mapserver-users] Mandrake 9.1 - installation of MapServer Message-ID: <1051872073.9351.14.camel@sakura.rsl.star.ait.ac.th> Modified list from the MapServer WIKI RedHat8.0 April 02, 2003 Yann Chemin and Prasad Bauchkar Asian Institute of Technology, Thailand When "#" is put in front of an command, it means we did not use it Build Notes #downloads Gd => http://www.boutell.com/gd/http/gd-2.0.12.tar.gz Freetype => http://prdownloads.sourceforge.net/freetype/freetype-2.1.4.tar.gz?download LibTiff => ftp://ftp.remotesensing.org/pub/libtiff/tiff-v3.6.0-beta.tar.gz proj4 => ftp://ftp.remotesensing.org/pub/proj/proj-4.4.7.tar.gz Shapelib => ftp://gdal.velocet.ca/pub/outgoing/shapelib-1.2.10.tar.gz PHP => http://www.php.net/get/php-4.3.1.tar.gz/from/au.php.net/mirror #http://snaps.php.net/ # removed these and dependent rpms # rpm -e gd rpm -e curl-7.10.3-1 # rpm -e curl-devel-7.9.8-1 rpm -e php # already have rpm installed rpm -q libpng3-1.2.5-2mdk rpm -q libpng3-devel-1.2.5-2mdk rpm -q libjpeg62-6b-26mdk rpm -q libjpeg62-devel-6b-26mdk # download and install pdflib #http://www.pdflib.com/products/pdflib/download/PDFlib-5.0.0-Linux.tar.gz #http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/PDFLib-0.12.tar.gz #tar xzf PDFLib-5.0.0-Linux.tar.gz #tar xzf PDFLib-0.12.tar.gz #I gave up on this one, better find the RPM if we have time # download and build ming http://prdownloads.sourceforge.net/ming/ming-0.2a.tgz?download tar xzf ming-0.2a.tgz cd ming-0.2a make make static make install # download and build curl ftp.wau.nl/pub/Mandrake/9.1/i586/Mandrake/RPMS/bison-1.35-3mdk.i586.rpm urpmi bison-1.35-3mdk.i586.rpm ftp.wau.nl/pub/Mandrake/9.1/SRPMS/curl-7.10.3-1mdk.src.rpm urpmi --install-src curl-7.10.3-1mdk.src.rpm gzip -d /usr/src/RPM/SOURCES/curl-7.10.3-1.tar.bz2 /home/yann/tmp cd curl-7.10.3 ./configure make make install # add /usr/local/lib to /etc/ld.so.conf /sbin/ldconfig # download and install gd-2 into /usr/local #rm -f /usr/lib/libgd.* # to remove any potentially conflicts tar xzf gd-2.0.11.tar.gz cd gd-2.0.11 ./configure make make install # download and install gdal-1.1.8 tar xzf gdal-1.1.8.tar.gz cd gdal-1.1.8 ./configure \ --with-libz \ --with-png \ --with-libtiff=internal \ --with-geotiff=internal \ --with-jpeg \ --without-jasper \ --without-python make make ogr-all make install /sbin/ldconfig # download and build php-4.3.0 ftp.wau.nl/pub/Mandrake/9.1/i586/RPMS/flex-2.5.4a-20mdk.i586.rpm urpmi flex-2.5.4a-20mdk.i586.rpm tar xzf php-4.3.0.tar.gz cd php-4.3.0 rm -f config.cache ./configure \ --enable-force-cgi-redirect \ --enable-discard-path \ --with-config-file-path=/etc/httpd/ \ --with-gd=/usr/local \ --with-jpeg-dir \ --with-png-dir \ --with-zlib-dir \ --with-freetype-dir \ --without-ttf \ --with-pdflib \ #removed --with-mysql \ --with-regex=system \ --with-ming \ --enable-dbase \ --enable-dbx \ --enable-versioning make cp sapi/cgi/php /var/www/cgi-bin make install cp php.ini-dist /etc/httpd/php.ini # change the following as appropriate diff -s /etc/httpd/php.ini php.ini-dist Files /etc/httpd/php.ini and php.ini-dist are identical #423c423 #< extension_dir = /etc/httpd/php_mods #--- #> extension_dir = ./ # download and build proj libraries tar xzf proj-4.4.7.tar.gz cd proj-4.4.7 ./configure make make install /sbin/ldconfig # download and build mapserver-3.7 tar xzf mapserver-3.7.tgz cd mapServer-3.7 rm -f config.cache ./configure \ --without-tiff \ --without-eppl \ --without-jpeg \ --with-threads \ --with-proj \ --with-gdal=/usr/local/bin \ --with-php=../php4-STABLE-200305010930 \ --with-gd=/usr/local \ --with-freetype=/usr/bin \ --without-pdf \ --with-ogr \ --with-gdal \ --with-ming \ --with-wmsclient \ --with-wfs \ --with-wfs-client #I did not get the following message during my build #-------------------------------------------------------- # I got an undefined "_snprintf" which required changing # mswmslayer.c to #include # and replace "_snprintf" with "snprintf" #-------------------------------------------------------- make # DO NOT do a "make install" cp legend mapserv scalebar /var/www/cgi-bin #No /php_mods/ in /etc/httpd/ ! #cp mapscript/php3/php_mapscript.so /etc/httpd/php_mods/ cp /home/yann/mapserver_dev/mapscript/php3/php_mapscript.so /usr/lib/php/extensions/php_mapscript.so # add to /etc/httpd/conf/httpd.conf # # For PHP scripts as CGI-BIN # AddType application/x-httpd-php-cgi .php .php4 .phtml Action application/x-httpd-php-cgi /cgi-bin/php /etc/rc.d/init.d/httpd restart # create /var/www/html/info.php # check the output of http://yourhost/info.php # for mapserver support -- Yann AIT From Mferrari@crema.unimi.it Fri May 2 12:59:24 2003 From: Mferrari@crema.unimi.it (Marco Ferrari) Date: Fri, 2 May 2003 13:59:24 +0200 Subject: [Mapserver-users] Size's line Message-ID: <92F02B0DA5A19549BEA6C9E26917F0392A1758@ganimede.crema.unimi.it> Hi, Is possible to define the line's size of the polygon, as for example, "outlinecolor" defines the line's color? Thanks. From ed@topozone.com Fri May 2 13:19:05 2003 From: ed@topozone.com (Ed McNierney) Date: Fri, 2 May 2003 08:19:05 -0400 Subject: [Mapserver-users] Mapserver/ArcIMS: server requirements Message-ID: <13858AA1A74F30419F319ACB66A9D1221F42CA@mercator.topozone.com> Justin - Unfortunately, these are extremely difficult questions to answer, mainly because there's a huge range in what constitutes a "hit". Is one map served a single tax parcel from a town-wide collection of 3,000 generally simple polygons, or is one map served a resampled and reprojected subset of a raster mosaic producing a zoomed-out view of several megabytes of imagery? If you want to evaluate server requirements, you will need to describe the serving job as precisely as possible. If you can pretty well define what a single map "hit" constitutes, you'll get more helpful advice. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: Justin Garre [mailto:garre_gis@hotmail.com] Sent: Friday, May 02, 2003 3:09 AM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Mapserver/ArcIMS: server requirements I am trying to get an idea of how many servers/server space will be required to run Mapserver with a specific number of hits per day. For example, would a single server be adequate for 200,00 user sessions per day? How many servers would be necessary for 1,000,000 users (site hits) per day? Granted this questions depends on a variety of criteria such as the capabilities of the hardware and how large the map files are, but if anybody would be willing to share what kind of server setup you have and how much usage you experience on a daily basis it would be greatly appreciated. Also, would ArcIMS be more demanding than Mapserver in terms of server consumption? ie- I understand Mapserver has a more concise code so I am curious to know if it would be less demanding on our server(s). Thanks in advance, Justin Garre University of Washington garre_gis@hotmail.com _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From eric@gomoos.org Fri May 2 14:14:09 2003 From: eric@gomoos.org (Eric Bridger) Date: Fri, 02 May 2003 09:14:09 -0400 Subject: [Mapserver-users] Size's line In-Reply-To: <92F02B0DA5A19549BEA6C9E26917F0392A1758@ganimede.crema.unim i.it> Message-ID: <4.3.2.7.2.20030502091053.00aa0620@mail.gomoos.org> Yes. Add the following to your map file: SYMBOL Name 'circle' Type ELLIPSE Filled TRUE Points 1 1 END END LAYER TYPE POLYGON CLASS OUTLINECOLOR 255 0 0 SYMBOL 'circle' # this size will determine the thickness of your line. SIZE 3 END At 01:59 PM 05/02/2003 +0200, Marco Ferrari wrote: >Hi, >Is possible to define the line's size of the polygon, as >for example, "outlinecolor" defines the line's color? >Thanks. > > > >_______________________________________________ >Mapserver-users mailing list >Mapserver-users@lists.gis.umn.edu >http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From schut@sarvision.com Fri May 2 14:50:46 2003 From: schut@sarvision.com (Vincent Schut) Date: Fri, 2 May 2003 15:50:46 +0200 Subject: [Mapserver-users] Transforming lat/long points into shapefiles In-Reply-To: References: Message-ID: <200305021550.46860.schut@sarvision.com> Justin, though it is possible (even with php_mapscript) to create shapefiles 'on the fly' this probably would be far from efficient for you, as you will keep loading - updating - saving etc. shapefiles... Shapefiles are slightly faster, but mainly suited as a static data source. Better keep your dynamic data in a spatially enabled database. You can edit your data (add streets etc) then from any scripting language that has an interface for that database, php for example. Postgresql with posgis could be perfect: see www.postgresql.org, http://postgis.refractions.net/ . Mapserver can directly access data from a postgis enables postgresql database. See the mapserver docs for that. Regards, Vincent Schut. On Friday 02 May 2003 09:29, Justin Garre wrote: > Given a set of start and end latitude and longitude points that comprise a > street rout, how do I transform them into a shapefile in an automated > manner from a database? This database would be consistently updated with > new data from the field so it is important that we be able to have our map > be capable of automatically displaying the data as it becomes available. > > Is the most common and time efficient way of doing this to have a new > shapefile be created and displayed in real-time on our map during each data > update from the field or is there a way to simply have the street network > shapefile draw data from a database real-time and update its attributes > without creating an all new shapefile? Depending on which is best, are > there any text resources out there that show how this is accomplished in > database design? > > I have been having difficulty in finding information on this topic both > through Google searches and on the Mapserver support site so I appreciate > both your patience and any help that you can provide. > > Best regards, > > Justin Garre > University of Washington > garre_gis@hotmail.com > > > > > > _________________________________________________________________ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- ______________________________________ Vincent Schut (schut@sarvision.com) Sarvision B.V. Wageningen, The Netherlands www.sarvision.com From arnulf.christl@ccgis.de Fri May 2 15:01:30 2003 From: arnulf.christl@ccgis.de (Arnulf Christl (CCGIS)) Date: Fri, 2 May 2003 16:01:30 +0200 Subject: AW: [Mapserver-users] Mapserver/ArcIMS: server requirements In-Reply-To: Message-ID: Hi, our experience is limited to customers with about 500,000 to 750,000 requests per month(!!!) which (we believe...) is quite a lot, considering that one request takes between 0.2 up to 3 seconds server time. The services in question (all running as WMS) contain between 10 and 70 layers, the "largest" vector layers (in terms of quantity of elements) can contain up to 500,000 polygon objects (buildings). Our experience is that any services with dynamic online maps need a lot more server power than what a standard webserver needs (or provides). It is no problem to get an internet server capable to answer several million standard(!) html requests per day, but as soon as dynamic maps are requested the performance will go down considerably. This is what a lot of internet engineers tend to ignore! Therefore we separate the GIS engine from the webserver and cluster the gis engines until we have enough overall power. This also helps to increase the stability of the entire system as it is not problem to take one gis engine out of the cluster and replace it with another staying online all the time. We have several different web map servers online (ArcIMS, deegree, SICAD/SD-IMS, MapServer). We believe that it is probably impossible to compare the different servers which are currently in use because of the differing contents of the maps. I do not know of any THE STANDARD MAP which would be necessary to be able to compare. Then again there exist several optimized services, one service provides 1000 GB of raster data in almost no time but cannot handle vector formats, another performs the other way round. Therefore in large projects we usually have to combine several different services in a cascading WMS (which by itself already slows performace considerably) but in effect we then obtain best overall results. Last but not least there are endless tuning options starting from the network itself, db indexing, data thinning, clustering, etc. One of our customer who uses both MapServer and ArcIMS gets better results using MapServer with shape files but again this is probably also a tuning question (we set up the MapServer environment, another company does the ArcIMS stuff... and obviously we are better ;-)). The online time of MapServer lies at 98% compared to a meager 75% in the ArcIMS environment, which we attribute to the complexity and missing transparency of the second software package. Some time ago we have set up a robot environment for testing purposes to get "real results" with "real data". I do not know if anything like that already exitsts for MapServer? It would probaly produce the best results to your answer, but obviously involves settings up the complete service with both software packages. Regards, Arnulf. -----Ursprüngliche Nachricht----- Von: mapserver-users-admin@lists.gis.umn.edu [mailto:mapserver-users-admin@lists.gis.umn.edu]Im Auftrag von Justin Garre Gesendet: Freitag, 2. Mai 2003 09:09 An: mapserver-users@lists.gis.umn.edu Betreff: [Mapserver-users] Mapserver/ArcIMS: server requirements I am trying to get an idea of how many servers/server space will be required to run Mapserver with a specific number of hits per day. For example, would a single server be adequate for 200,00 user sessions per day? How many servers would be necessary for 1,000,000 users (site hits) per day? Granted this questions depends on a variety of criteria such as the capabilities of the hardware and how large the map files are, but if anybody would be willing to share what kind of server setup you have and how much usage you experience on a daily basis it would be greatly appreciated. Also, would ArcIMS be more demanding than Mapserver in terms of server consumption? ie- I understand Mapserver has a more concise code so I am curious to know if it would be less demanding on our server(s). Thanks in advance, Justin Garre University of Washington garre_gis@hotmail.com _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From arnulf.christl@ccgis.de Fri May 2 15:01:31 2003 From: arnulf.christl@ccgis.de (Arnulf Christl (CCGIS)) Date: Fri, 2 May 2003 16:01:31 +0200 Subject: AW: [Mapserver-users] Transforming lat/long points into shapefiles In-Reply-To: Message-ID: Maybe the best idea is to not create shapefiles on the fly but directly access the db which contains the points? We are currently exerimenting with PostGreSQL/PostGIS to achieve this but do not have any firm results yet. Regards, Arnulf. -----Ursprüngliche Nachricht----- Von: mapserver-users-admin@lists.gis.umn.edu [mailto:mapserver-users-admin@lists.gis.umn.edu]Im Auftrag von Justin Garre Gesendet: Freitag, 2. Mai 2003 09:29 An: mapserver-users@lists.gis.umn.edu Betreff: [Mapserver-users] Transforming lat/long points into shapefiles Given a set of start and end latitude and longitude points that comprise a street rout, how do I transform them into a shapefile in an automated manner from a database? This database would be consistently updated with new data from the field so it is important that we be able to have our map be capable of automatically displaying the data as it becomes available. Is the most common and time efficient way of doing this to have a new shapefile be created and displayed in real-time on our map during each data update from the field or is there a way to simply have the street network shapefile draw data from a database real-time and update its attributes without creating an all new shapefile? Depending on which is best, are there any text resources out there that show how this is accomplished in database design? I have been having difficulty in finding information on this topic both through Google searches and on the Mapserver support site so I appreciate both your patience and any help that you can provide. Best regards, Justin Garre University of Washington garre_gis@hotmail.com _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From warmerdam@pobox.com Fri May 2 15:04:53 2003 From: warmerdam@pobox.com (Frank Warmerdam) Date: Fri, 02 May 2003 10:04:53 -0400 Subject: [Mapserver-users] Re: still a problem with ecw output In-Reply-To: <001001c3107c$8ee5cd80$878ebf8b@mars.ipsc.jrc.it> References: <001001c3107c$8ee5cd80$878ebf8b@mars.ipsc.jrc.it> Message-ID: <3EB27B05.6070007@pobox.com> Paul Hasenohr wrote: > Frank, > > I posted a message to the mapserver user list three weeks ago about a > problem with ecw output (the ecw generated file stayed in the server web > temp folder and was not sent back to the client browser). > You answered me that there was a problem of filename (the filename > expected by mapserver from gdal/ecw was different from the one produced > by gdal/ecw). You wrote that you probably fixed the problem but couldn't > test it. > I downloaded yesterday a new windows built of mapserver from dmsolutions > website (file mapserver-3.7-dev-win32-php4.3.0-gd2.zip created by > 23-Apr-2003 12:08 with a size of 14.0M) > I presume it integrated your modifications to the mapserver source code > as the error I get now from mapserver trying to produce an ecw output is > different. > In fact, I don't receive any error message. When I try to produce an ecw > image, my browser asks me if I want to download a file called "mapserv". > This file has the same size as the ecw image produced in the web temp > directory (called for example 105172245637240.ecw against > 105172245637240.img.ecw before you changed the code) but it's not an ecw > image (ER Viewer can't open it). > Have you any idea of what's happening ? Paul, Can you send me an example of this pseudo-ecw file? It is vaguely possible that ERViewer is very deciding what API to use based on extension though that seems unlikely. Next, are you using MapServer in "traditional" mode where mapserv returns an HTML page referring to the image internally using an tag, or are you using it in WMS mode where the cgi-bin call to mapserver returns an image result directly? In WMS mode the filename is essentially lost and you would see the filename behaviour you encounter, while in MapServer mode this should not occur. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From spencer@dmsolutions.ca Fri May 2 15:09:24 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Fri, 02 May 2003 10:09:24 -0400 Subject: [Mapserver-users] Transforming lat/long points into shapefiles In-Reply-To: References: Message-ID: <3EB27C14.3080909@magma.ca> Justin, you have a variety of choices ;). You can use postgis - a postgresql gis extension, check out http://www.refractions.net/ - or you could create a script that queries the database and writes a shapefile directly. PHP is a great langauge for doing this (yes, I am biased), and I am sure that you could accomplish the same thing in perl. If you try PHP, you can use its extensions to query an existing database, and use the php_mapscript extension to create a shapefile from the latlong coordinates. Only tricky part is that you have to create the dbf file using PHPs dbase extension, but that is not too difficult. Postgis would be the best answer, I think. Cheers, Paul Justin Garre wrote: > Given a set of start and end latitude and longitude points that comprise > a street rout, how do I transform them into a shapefile in an automated > manner from a database? This database would be consistently updated > with new data from the field so it is important that we be able to have > our map be capable of automatically displaying the data as it becomes > available. > > Is the most common and time efficient way of doing this to have a new > shapefile be created and displayed in real-time on our map during each > data update from the field or is there a way to simply have the street > network shapefile draw data from a database real-time and update its > attributes without creating an all new shapefile? Depending on which is > best, are there any text resources out there that show how this is > accomplished in database design? > > I have been having difficulty in finding information on this topic both > through Google searches and on the Mapserver support site so I > appreciate both your patience and any help that you can provide. > > Best regards, > > Justin Garre > University of Washington > garre_gis@hotmail.com > > > > > > _________________________________________________________________ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > -- Paul Spencer Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca From thfischer@mapmedia.de Fri May 2 17:09:38 2003 From: thfischer@mapmedia.de (Thorsten Fischer) Date: 02 May 2003 18:09:38 +0200 Subject: [Mapserver-users] Error when using labels TYPE=truetype In-Reply-To: <200305021116.21471.bplatzen@sosnetz.de> References: <200305021116.21471.bplatzen@sosnetz.de> Message-ID: <1051891778.325.6.camel@jeanjacques> On Fri, 2003-05-02 at 11:16, Björn Platzen wrote: > When using TYPE=truetype on labels I get the following error: > msGetLabelSize(): TrueType Font error. Could not find/open font > > I have dfined the alias in my font.list and the ttf-file is available in > the same directory. chmod'ing the ttf-files to 755 did have no effect. This can happen for several reasons. The most common one for me is that your GD library was not linked against the same version of FreeType as your mapserver binary. Since your are using SuSE, it's quite likely that you have more than one version installed. Use the 'ldd' command to find out about the libraries your programs are linked against. chmod 755 is a bit too much btw, that makes your font files executable :) 644 should do fine. hth, thorsten From cpurvis@asg.sc.edu Fri May 2 15:13:16 2003 From: cpurvis@asg.sc.edu (Charlton Purvis) Date: Fri, 2 May 2003 10:13:16 -0400 Subject: [Mapserver-users] Transforming lat/long points into shapefiles Message-ID: Absolutely, without a doubt, give PostGIS a shot. I have been nothing but impressed w/ its performance and ease (w/ MapServer 3.7.x). Admittedly, I am not doing anything akin to rocket science, but I have also experimented w/ online data additions to my PostGIS tables. The exercise I did was to provide a map, allow the user to input a name, click on the map, and then the click would be translated into a lat/lon + the name would be entered in to the PostGIS table as a new buoy. Redisplay the map, read the updated table, and there's the new buoy. PostGIS also has simple command-line utilities to both bring shapefiles in to the database as well as export PostGIS tables from the database into new shapefiles. Don't know if that applies to you or not. Sometime soon I hope to organize my iterative MapServer/PostGIS code to post to the Wiki, but until then, if you'd like an example, let me know. Charlton -----Original Message----- From: Arnulf Christl (CCGIS) [mailto:arnulf.christl@ccgis.de] Sent: Friday, May 02, 2003 10:02 AM To: mapserver-users@lists.gis.umn.edu Subject: AW: [Mapserver-users] Transforming lat/long points into shapefiles Maybe the best idea is to not create shapefiles on the fly but directly access the db which contains the points? We are currently exerimenting with PostGreSQL/PostGIS to achieve this but do not have any firm results yet. Regards, Arnulf. -----Ursprüngliche Nachricht----- Von: mapserver-users-admin@lists.gis.umn.edu [mailto:mapserver-users-admin@lists.gis.umn.edu]Im Auftrag von Justin Garre Gesendet: Freitag, 2. Mai 2003 09:29 An: mapserver-users@lists.gis.umn.edu Betreff: [Mapserver-users] Transforming lat/long points into shapefiles Given a set of start and end latitude and longitude points that comprise a street rout, how do I transform them into a shapefile in an automated manner from a database? This database would be consistently updated with new data from the field so it is important that we be able to have our map be capable of automatically displaying the data as it becomes available. Is the most common and time efficient way of doing this to have a new shapefile be created and displayed in real-time on our map during each data update from the field or is there a way to simply have the street network shapefile draw data from a database real-time and update its attributes without creating an all new shapefile? Depending on which is best, are there any text resources out there that show how this is accomplished in database design? I have been having difficulty in finding information on this topic both through Google searches and on the Mapserver support site so I appreciate both your patience and any help that you can provide. Best regards, Justin Garre University of Washington garre_gis@hotmail.com _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From MHoward@spaceimaging.com Fri May 2 15:28:16 2003 From: MHoward@spaceimaging.com (Howard Mark) Date: Fri, 2 May 2003 08:28:16 -0600 Subject: [Mapserver-users] Anyone dong Flash? Message-ID: <6FD037F6491DD51191BE006008F5E5A50290AEBB@IMAGER3> A co-worker is trying to write a GIS interface with Flash. He does have panning and zooming working for a single fixed WMS layer. However there's a lot of work to do to get the interface to do what mapserver does out of the box. I thought I'd ask if anyone here is doing similar development or wants to share development? Mark ******************************************************************************** This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify Space Imaging immediately. ******************************************************************************** From cpurvis@asg.sc.edu Fri May 2 15:34:01 2003 From: cpurvis@asg.sc.edu (Charlton Purvis) Date: Fri, 2 May 2003 10:34:01 -0400 Subject: [Mapserver-users] Anyone dong Flash? Message-ID: This one is still fresh on the list. See http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0305/msg00015.h tml for the latest post that refers to this thread http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0304/threads.ht ml#00447. You might find hope, eye candy, or at minimum, a few points of reference. -----Original Message----- From: Howard Mark [mailto:MHoward@spaceimaging.com] Sent: Friday, May 02, 2003 10:28 AM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Anyone dong Flash? A co-worker is trying to write a GIS interface with Flash. He does have panning and zooming working for a single fixed WMS layer. However there's a lot of work to do to get the interface to do what mapserver does out of the box. I thought I'd ask if anyone here is doing similar development or wants to share development? Mark ************************************************************************ ******** This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify Space Imaging immediately. ************************************************************************ ******** _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From gadoury@dmsolutions.ca Fri May 2 15:36:21 2003 From: gadoury@dmsolutions.ca (Dean Gadoury) Date: Fri, 02 May 2003 10:36:21 -0400 Subject: [Mapserver-users] Size's line References: <4.3.2.7.2.20030502091053.00aa0620@mail.gomoos.org> Message-ID: <3EB28265.50209@dmsolutions.ca> --------------030406040308000709080009 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I have observed that this seems to be one of the most frequently asked questions on the list, aside from compilation / installation issues. It seems to trip up new users very frequently and I think its fair to say that that is because setting a circle symbol for a line is, at first glance, counterintuitive. Has there ever been any consideration of the idea of making a circle symbol default when setting the thickness property of lines? That would make things more intuitive and more in line with the way other web mapping, GIS, and graphics packages work. In fact, Mapserver is the only application I've ever used in which you need to apply a symbol to a line to adjust its thickness. I guess there is a dependency on the symbol file, but could things be done in such a way that a circle symbol is available in the actual core of Mapserver and is used by default? Users could still override this if they choose to use a symbol, but if not they get the circle symbol and only have to use size to define the thickness of a line. Dean Gadoury Eric Bridger wrote: >Yes. Add the following to your map file: > >SYMBOL > Name 'circle' > Type ELLIPSE > Filled TRUE > Points > 1 1 > END >END > >LAYER >TYPE POLYGON >CLASS > OUTLINECOLOR 255 0 0 > SYMBOL 'circle' > # this size will determine the thickness of your line. > SIZE 3 >END > > >At 01:59 PM 05/02/2003 +0200, Marco Ferrari wrote: > > >>Hi, >>Is possible to define the line's size of the polygon, as >>for example, "outlinecolor" defines the line's color? >>Thanks. >> >> >> >>_______________________________________________ >>Mapserver-users mailing list >>Mapserver-users@lists.gis.umn.edu >>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >> >> > >_______________________________________________ >Mapserver-users mailing list >Mapserver-users@lists.gis.umn.edu >http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > -- ___________________________ Dean Gadoury DM Solutions Group 72 Chamberlain Ave. Third Floor Ottawa, Ontario. K1S 1V9 613 565-5056 ext. 24 gadoury@dmsolutions.ca www.dmsolutions.ca --------------030406040308000709080009 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I have observed that this seems to be one of the most frequently asked questions on the list, aside from compilation / installation issues. It seems to trip up new users very frequently and I think its fair to say that that is because setting a circle symbol for a line is, at first glance, counterintuitive.

Has there ever been any consideration of the idea of making a circle symbol default when setting the thickness property of lines? That would make things more intuitive and more in line with the way other web mapping, GIS, and graphics packages work. In fact, Mapserver is the only application I've ever used in which you need to apply a symbol to a line to adjust its thickness. I guess there is a dependency on the symbol file, but could things be done in such a way that a circle symbol is available in the actual core of Mapserver and is used by default? Users could still override this if they choose to use a symbol, but if not they get the circle symbol and only have to use size to define the thickness of a line.

Dean Gadoury

Eric Bridger wrote:
Yes.  Add the following to your map file:

SYMBOL
  Name 'circle'
  Type ELLIPSE
  Filled TRUE
  Points
    1 1
  END
END

LAYER
TYPE POLYGON
CLASS
  OUTLINECOLOR 255 0 0
  SYMBOL 'circle'
  # this size will determine the thickness of your line.
  SIZE 3
END


At 01:59 PM 05/02/2003 +0200, Marco Ferrari wrote:
  
Hi, 
Is possible to define the line's size of the polygon, as
for example, "outlinecolor" defines the line's color?
Thanks.



_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
    

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

  

-- 
___________________________

Dean Gadoury

DM Solutions Group
72 Chamberlain Ave. Third Floor
Ottawa, Ontario. K1S 1V9
613 565-5056 ext. 24

gadoury@dmsolutions.ca
www.dmsolutions.ca

--------------030406040308000709080009-- From morissette@dmsolutions.ca Fri May 2 16:27:31 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Fri, 02 May 2003 11:27:31 -0400 Subject: [Mapserver-users] Size's line References: <4.3.2.7.2.20030502091053.00aa0620@mail.gomoos.org> <3EB28265.50209@dmsolutions.ca> Message-ID: <3EB28E63.731ADA32@dmsolutions.ca> Very good point Dean. I would suggest that you file an enhancement request about this in the MapServer bugzilla so that we don't forget. Daniel > Dean Gadoury wrote: > > I have observed that this seems to be one of the most frequently asked > questions on the list, aside from compilation / installation issues. > It seems to trip up new users very frequently and I think its fair to > say that that is because setting a circle symbol for a line is, at > first glance, counterintuitive. > > Has there ever been any consideration of the idea of making a circle > symbol default when setting the thickness property of lines? That > would make things more intuitive and more in line with the way other > web mapping, GIS, and graphics packages work. In fact, Mapserver is > the only application I've ever used in which you need to apply a > symbol to a line to adjust its thickness. I guess there is a > dependency on the symbol file, but could things be done in such a way > that a circle symbol is available in the actual core of Mapserver and > is used by default? Users could still override this if they choose to > use a symbol, but if not they get the circle symbol and only have to > use size to define the thickness of a line. > > Dean Gadoury > > Eric Bridger wrote: > > > Yes. Add the following to your map file: > > > > SYMBOL > > Name 'circle' > > Type ELLIPSE > > Filled TRUE > > Points > > 1 1 > > END > > END > > > > LAYER > > TYPE POLYGON > > CLASS > > OUTLINECOLOR 255 0 0 > > SYMBOL 'circle' > > # this size will determine the thickness of your line. > > SIZE 3 > > END > > > > > > At 01:59 PM 05/02/2003 +0200, Marco Ferrari wrote: > > > > > >> Hi, > >> Is possible to define the line's size of the polygon, as > >> for example, "outlinecolor" defines the line's color? > >> Thanks. > >> > >> > >> > >> _______________________________________________ > >> Mapserver-users mailing list > >> Mapserver-users@lists.gis.umn.edu > >> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > >> > >> > > _______________________________________________ > > Mapserver-users mailing list > > Mapserver-users@lists.gis.umn.edu > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > > > > > > > -- > ___________________________ > > Dean Gadoury > > DM Solutions Group > 72 Chamberlain Ave. Third Floor > Ottawa, Ontario. K1S 1V9 > 613 565-5056 ext. 24 > > gadoury@dmsolutions.ca > www.dmsolutions.ca From bplatzen@sosnetz.de Fri May 2 16:32:24 2003 From: bplatzen@sosnetz.de (=?iso-8859-1?q?Bj=F6rn=20Platzen?=) Date: Fri, 2 May 2003 17:32:24 +0200 Subject: [Mapserver-users] Error when using labels TYPE=truetype In-Reply-To: <1051891778.325.6.camel@jeanjacques> References: <200305021116.21471.bplatzen@sosnetz.de> <1051891778.325.6.camel@jeanjacques> Message-ID: <200305021732.24319.bplatzen@sosnetz.de> Hi Thorsten, > This can happen for several reasons. The most common one for me is > that your GD library was not linked against the same version of > FreeType as your mapserver binary. Since your are using SuSE, it's > quite likely that you have more than one version installed. Use the > 'ldd' command to find out about the libraries your programs are > linked against. Thanks! I compiled with a patched gd-2.0.7 while on my system there was I think gd-1.8.x without GIF-support... I'll check this ... and hope that I get it working ... > chmod 755 is a bit too much btw, that makes your font files > executable > > :) 644 should do fine. 755 was the "last try"... Thanks & bye, Bjoern. -- small office solutions info@sosnetz.de - http://www.sosnetz.de From tmelhuish@webinsightsinc.com Fri May 2 16:42:45 2003 From: tmelhuish@webinsightsinc.com (Tom Melhuish) Date: Fri, 2 May 2003 11:42:45 -0400 Subject: [Mapserver-users] Scaling TrueType Labels In-Reply-To: Message-ID: Hi, I can't seemed to be able to scale labels up and down as the map zoom in and out. It always remains the same as initial size. When I load the mapfile, it doesn't returns any errors. The TRUETYPE font are installed correctly because they follow my street centerline data fine. I thought that all it requires is to set LABEL's TYPE to TRUETYPE, and specifying MINSIZE and MAXSIZE....am I missing something? I'm using Mapserver 3.6.4 with Postgres on Redhat 8.0. Here are some scenario's I tried and the results: SIZE 12 MINSIZE 8 Result => font is 12 pixels at any zoom size MAXSIZE 18 #SIZE 12 MINSIZE 8 Result => font is 8 pixels at any zoom size MAXSIZE 18 #SIZE 12 MINSIZE 18 Result => font is 8 pixels at any zoom size MAXSIZE 8 SIZE 12 MINSIZE 18 Result => font is 8 pixels at any zoom size MAXSIZE 8 This is what a portion of my mapfile look like: MAP # # Start of map file # NAME "MSapplet" STATUS ON EXTENT 2190000 640000 2200000 650000 # JC extents SIZE 600 600 SHAPEPATH "data" FONTSET "fonts/font.list" IMAGECOLOR 255 255 255 UNITS FEET SCALE 24000 # you may need to change this to match your MapServer build IMAGETYPE PNG LAYER NAME "streets" GROUP "gp_streets" STATUS ON # Get the lines from the 'the_geom' column of the 'jcctrline' table DATA "the_geom from jcctrline" TYPE LINE CONNECTIONTYPE postgis # Connect to a remote spatial database CONNECTION "user=gisusr password=gisusr dbname=gisdb host=localhost port=5432" MAXSCALE 30000 MINSCALE 30 LABELMAXSCALE 30000 LABELMINSCALE 1000 LABELITEM "name" TEMPLATE "ttt.html" CLASS # EXPRESSION /./ NAME "streets" COLOR 75 75 75 LABEL TYPE TRUETYPE FONT "times_regular" SIZE 12 MINSIZE 8 MAXSIZE 18 POSITION CC ANGLE AUTO BUFFER 2 MINDISTANCE 200 MINFEATURESIZE AUTO COLOR 0 0 0 ANTIALIAS true END END END # streets Layer END Thanks for your help, From rgrant@nrcan.gc.ca Fri May 2 17:09:26 2003 From: rgrant@nrcan.gc.ca (Grant, Ryan) Date: Fri, 2 May 2003 12:09:26 -0400 Subject: [Mapserver-users] Anyone dong Flash? Message-ID: <8AE17DD6AA4FD51191CD0002A551168184BD1A@s5-van1-r1.ess.nrcan.gc.ca> Hey Mark, Here is a page I posted a couple months back, from a demo I made using a Flash interface around mapserver: http://132.156.108.209/flashmap/FlashMapServer.html This uses PHP as the main engine behind the scenes. I've also been working on a cgi only interface, and playing around with the swf output. I planned on releasing some more code as soon as it's ready.. (or as soon as time allows) Cheers, Ryan -----Original Message----- From: Howard Mark [mailto:MHoward@spaceimaging.com] Sent: Friday, May 02, 2003 7:28 AM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Anyone dong Flash? A co-worker is trying to write a GIS interface with Flash. He does have panning and zooming working for a single fixed WMS layer. However there's a lot of work to do to get the interface to do what mapserver does out of the box. I thought I'd ask if anyone here is doing similar development or wants to share development? Mark **************************************************************************** **** This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify Space Imaging immediately. **************************************************************************** **** _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From joe@otsys.com Fri May 2 17:28:00 2003 From: joe@otsys.com (Joe Bussell) Date: Fri, 02 May 2003 09:28:00 -0700 Subject: [Mapserver-users] PERL mapscript undefined symbol woes In-Reply-To: <87llxq1gq1.fsf@vran.herceg.de> References: <3EB05490.8080602@otsys.com> <87wuha1ki1.fsf@vran.herceg.de> <3EB18D7F.10402@otsys.com> <87llxq1gq1.fsf@vran.herceg.de> Message-ID: <3EB29C90.5090800@otsys.com> Red Herring alert!! I believe that the undefined symbols are set by the encapsulating instantiation of PERL. This is not my problem. The real problem resulted from a change in one of my shapefiles. The updated file contains a significantly larger number of points. My current working theory is that the number has somehow exceeded a fixed limit. Cordially, Joe Bussell Slaven Rezic wrote: > Joe Bussell writes: > > >>perl -V does indeed include "useshrplib=true" >> > > > Does it help if you specify LD_LIBRARY_PATH? > > env LD_LIBRARY_PATH=/path/containing/libperl.so yourscript > > Regards, > Slaven > > >>Slaven Rezic wrote: >> >>>Joe Bussell writes: >>> >>> >>> >>>>Greetings Listers, >>>> I have a Debian box with PERL5.8 and mapserver-3.6.5. I have had >>>>great success in the past with this box, but something in my build went >>>>awry. The compile for mapserv and then perl/mapscript completed without >>>>error. The object is also generally useful when using dump.pl and even >>>>some live map rendering under apache. The symptom that I observed is >>>>that whenever the process needs to carp out something it segfaults and >>>>dies. I ran ldd with the -r option and observed an interresting clue >>>>(see below). Does anyone have any ideas how the Perl_* symbols are >>>>defined? >>> >>> >>>Normally the Perl_* symbols are either in the perl library or in the >>>perl executable. >>> >>> >>> >>>>Why would they not be found? Should the list of *.so include >>>>libperl.so? >>> >>> >>>I don't think so, at least it's not on FreeBSD. >>> >>> >>> >>>>Any ideas on getting out of this mess? >>> >>> >>>What is the output of "perl -v"? Does it include "useshrplib=true"? >>> >>>Regards, >>> Slaven >>> >>> >>> >>>>ldd -r blib/arch/auto/mapscript/mapscript.so >>>> libgd.so.2 => /usr/local/lib/libgd.so.2 (0x40102000) >>>> libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40147000) >>>> libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x40164000) >>>> libpng.so.2 => /usr/lib/libpng.so.2 (0x401ad000) >>>> libz.so.1 => /lib/libz.so.1 (0x401d3000) >>>> libtiff.so.3 => /usr/lib/libtiff.so.3 (0x401e0000) >>>> libproj.so.0 => /usr/local/lib/libproj.so.0 (0x40224000) >>>> libgdal.1.1.so => /usr/local/lib/libgdal.1.1.so (0x40255000) >>>> libm.so.6 => /lib/libm.so.6 (0x404b0000) >>>> libc.so.6 => /lib/libc.so.6 (0x404d1000) >>>> libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x405e1000) >>>> libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x405ef000) >>>> libdl.so.2 => /lib/libdl.so.2 (0x406ab000) >>>> libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x406ae000) >>>> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40757000) >>>> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) >>>>undefined symbol: Perl_croak_nocontext >>>>(blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_sv_setiv (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_sv_2pv_flags (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_mg_find (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: pthread_getspecific >>>>(blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_sv_newmortal (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_sv_isobject (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_sv_2nv (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_Isv_yes_ptr (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_sv_setpv (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_newXS (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_Tna_ptr (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_Tmarkstack_ptr_ptr >>>>(blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_Isv_undef_ptr (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_sv_magic (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_sv_setsv_flags >>>>(blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_Tstack_base_ptr >>>>(blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_get_sv (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_Gthr_key_ptr (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_sv_setref_pv (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_sv_2iv (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_sv_setnv (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_Tstack_sp_ptr (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_sv_setpvn (blib/arch/auto/mapscript/mapscript.so) >>>>undefined symbol: Perl_mg_get (blib/arch/auto/mapscript/mapscript.so) >>>> >>>> >>>>Cordially, >>>> >>>>Joe Bussell >>>>On Time Systems >>>>www.trafficdodger.com >>>> >>>>_______________________________________________ >>>>Mapserver-users mailing list >>>>Mapserver-users@lists.gis.umn.edu >>>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >>>> >>> >>> >> >> > From RichardBecher@SierraSystems.com Fri May 2 18:17:41 2003 From: RichardBecher@SierraSystems.com (Becher, Richard) Date: Fri, 2 May 2003 13:17:41 -0400 Subject: [Mapserver-users] Mapscript extension error... Message-ID: <8450D0E05920354D97B1507EABDCDB7F073458@svott2000.sierrasys.com> This is a multi-part message in MIME format. ------_=_NextPart_001_01C310CE.BD04A05F Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have installed PHP and PHP_MAPSCRIPT. I have copied the resulting php_mapscript.dll file to the C:\PHP\extensions directory. I have also modified the php.ini file accordingly. =20 When I run phpinfo() I can successfully include/load any extension EXCEPT php_mapscript.dll. Not sure what's going on....any help would be greatly appreciated! =20 =20 Running WinXP, IIS 5, Mapserver 3.7 (latest) and PHP 4.3.2RC2 for win32.... =20 Cheers, =20 Richard Becher Sierra Systems 130 Slater Street, Suite 800 Ottawa, Ontario K1P 6E2 Phone: 613.236.7888, Extension: 350 Fax: 613.236.9333 Email: RichardBecher@SierraSystems.com www.SierraSystems.com =20 =20 =20 ------_=_NextPart_001_01C310CE.BD04A05F Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I have installed PHP and PHP_MAPSCRIPT.  I have copied the resulting = php_mapscript.dll file to the C:\PHP\extensions directory.  I have also modified the php.ini file = accordingly.

 

When I run phpinfo() I can successfully include/load any extension = EXCEPT php_mapscript.dll.  Not = sure what’s going on….any help would be greatly = appreciated!

 

 

Running WinXP, IIS 5, = Mapserver 3.7 (latest) and PHP 4.3.2RC2 for = win32….

 

Cheers,

 

Richard = Becher

= Sierra Systems
130 Slater Street, Suite 800
Ottawa, Ontario = K1P 6E2
Phone: 613.236.7888, Extension: = 350

Fax: = 613.236.9333
Email: = RichardBecher@SierraSystems.com
www.SierraSystems.com

 

 

=00 ------_=_NextPart_001_01C310CE.BD04A05F-- From spencer@dmsolutions.ca Fri May 2 18:50:54 2003 From: spencer@dmsolutions.ca (Paul Spencer) Date: Fri, 02 May 2003 13:50:54 -0400 Subject: [Mapserver-users] Mapscript extension error... In-Reply-To: <8450D0E05920354D97B1507EABDCDB7F073458@svott2000.sierrasys.com> References: <8450D0E05920354D97B1507EABDCDB7F073458@svott2000.sierrasys.com> Message-ID: <3EB2AFFE.9030506@magma.ca> Richard, there are a couple of things that can go wrong, but this normally means that a dll that mapscript needs is not found in the system path. On winXP there is a utility called depends.exe that will show you dependencies of any executable or dll file. You can access this utility by right clicking on the php_mapscript dll and selecting "view dependencies". The resulting screen will show you all the files that php_mapscript needs in order to load. It is most likely that you are missing one of these files. Once you have identified the missing files, it is a simple matter of making sure that the file is in your system path (normally by moving them to c:\windows\system32 or by editing the PATH environment variable). It may also be that your IIS configuration is not correct, but that seems unlikely since you can load php. Cheers, Paul Becher, Richard wrote: > I have installed PHP and PHP_MAPSCRIPT. I have copied the resulting > php_mapscript.dll file to the C:\PHP\extensions directory. I have also > modified the php.ini file accordingly. > > > > When I run phpinfo() I can successfully include/load any extension > EXCEPT php_mapscript.dll. Not sure what’s going on….any help would be > greatly appreciated! > > > > > > Running WinXP, IIS 5, Mapserver 3.7 (latest) and PHP 4.3.2RC2 for win32…. > > > > Cheers, > > > > **Richard Becher** > > /*/Sierra Systems/*/* > *130 Slater Street, Suite 800 > Ottawa, Ontario K1P 6E2 > Phone: 613.236.7888, Extension: 350 > > Fax: 613.236.9333 > Email: RichardBecher@SierraSystems.com > www.SierraSystems.com > > > > > -- Paul Spencer Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca From steve.lime@dnr.state.mn.us Fri May 2 19:10:12 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Fri, 02 May 2003 13:10:12 -0500 Subject: [Mapserver-users] Scaling TrueType Labels Message-ID: You need to set a SYMBOLSCALE value. That is, the value at which symbols or fonts are their default size. >>> "Tom Melhuish" 05/02/03 10:42AM >>> Hi, I can't seemed to be able to scale labels up and down as the map zoom in and out. It always remains the same as initial size. When I load the mapfile, it doesn't returns any errors. The TRUETYPE font are installed correctly because they follow my street centerline data fine. I thought that all it requires is to set LABEL's TYPE to TRUETYPE, and specifying MINSIZE and MAXSIZE....am I missing something? I'm using Mapserver 3.6.4 with Postgres on Redhat 8.0. Here are some scenario's I tried and the results: SIZE 12 MINSIZE 8 Result => font is 12 pixels at any zoom size MAXSIZE 18 #SIZE 12 MINSIZE 8 Result => font is 8 pixels at any zoom size MAXSIZE 18 #SIZE 12 MINSIZE 18 Result => font is 8 pixels at any zoom size MAXSIZE 8 SIZE 12 MINSIZE 18 Result => font is 8 pixels at any zoom size MAXSIZE 8 This is what a portion of my mapfile look like: MAP # # Start of map file # NAME "MSapplet" STATUS ON EXTENT 2190000 640000 2200000 650000 # JC extents SIZE 600 600 SHAPEPATH "data" FONTSET "fonts/font.list" IMAGECOLOR 255 255 255 UNITS FEET SCALE 24000 # you may need to change this to match your MapServer build IMAGETYPE PNG LAYER NAME "streets" GROUP "gp_streets" STATUS ON # Get the lines from the 'the_geom' column of the 'jcctrline' table DATA "the_geom from jcctrline" TYPE LINE CONNECTIONTYPE postgis # Connect to a remote spatial database CONNECTION "user=gisusr password=gisusr dbname=gisdb host=localhost port=5432" MAXSCALE 30000 MINSCALE 30 LABELMAXSCALE 30000 LABELMINSCALE 1000 LABELITEM "name" TEMPLATE "ttt.html" CLASS # EXPRESSION /./ NAME "streets" COLOR 75 75 75 LABEL TYPE TRUETYPE FONT "times_regular" SIZE 12 MINSIZE 8 MAXSIZE 18 POSITION CC ANGLE AUTO BUFFER 2 MINDISTANCE 200 MINFEATURESIZE AUTO COLOR 0 0 0 ANTIALIAS true END END END # streets Layer END Thanks for your help, _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From RichardBecher@SierraSystems.com Fri May 2 19:32:12 2003 From: RichardBecher@SierraSystems.com (Becher, Richard) Date: Fri, 2 May 2003 14:32:12 -0400 Subject: [Mapserver-users] OracleSpatial switches to include... Message-ID: <8450D0E05920354D97B1507EABDCDB7F132074@svott2000.sierrasys.com> This is a multi-part message in MIME format. ------_=_NextPart_001_01C310D9.25B046F7 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Attempting to compile Mapserver with OracleSpatial (Oracle 8i) =20 Can someone help me determine what the entry should look like in the nmake.opt file? Also, I was hoping to get a handle on what Files/directories I need to reference... =20 Help is greatly appreciated! =20 Running WinXP, IIS 5, Mapserver 3.7 (latest) and PHP 4.3.2RC2 for win32.... =20 =20 Cheers, =20 Richard Becher Sierra Systems 130 Slater Street, Suite 800 Ottawa, Ontario K1P 6E2 Phone: 613.236.7888, Extension: 350 Fax: 613.236.9333 Email: RichardBecher@SierraSystems.com www.SierraSystems.com =20 =20 =20 ------_=_NextPart_001_01C310D9.25B046F7 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Attempting to compile Mapserver with OracleSpatial (Oracle = 8i)

 

Can someone help me determine what the entry should = look like in the nmake.opt file?  Also, I was hoping to get a = handle on what

Files/directories I need to = reference…

 

Help is greatly = appreciated!

 

Running WinXP, IIS 5, Mapserver 3.7 (latest) and PHP = 4.3.2RC2 for win32....

 

 

Cheers,

 

Richard = Becher

= Sierra Systems
130 Slater Street, Suite 800
Ottawa, Ontario = K1P 6E2
Phone: 613.236.7888, Extension: = 350

Fax: = 613.236.9333
Email: = RichardBecher@SierraSystems.com
www.SierraSystems.com

 

 

=00 ------_=_NextPart_001_01C310D9.25B046F7-- From eric@barrodale.com Sat May 3 00:19:04 2003 From: eric@barrodale.com (Eric Davies) Date: Fri, 02 May 2003 16:19:04 -0700 Subject: [Mapserver-users] layer for user points choking mapserv 3.6.3. Message-ID: <5.2.0.9.0.20030502161055.021e0d18@marilyn.barrodale.com> --=====================_369328468==.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Hi All, I want to have the user be able to mark a point on the map. According to the cgi reference document, this is doable with a map_${layername}_feature... argument. You just have to define the layer first in your map file. Fair enough, my layer looks like SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 1 1 END END LAYER NAME reddot TYPE Point STATUS on METADATA ICONNAME "/mapserverdemo/selected.png" DESCRIPTION "Selected point" END CLASS Name "reddot" COLOR 255 0 0 SYMBOL "circle" SIZE 1 1 END # CLASS END # LAYER Mapserver seems to choke on this. I try to invoke it and get MapServer version 3.6.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE --> loadClass(): Unknown identifier. (1):(212) I've tried a few permutations on the layer without any luck. Can anyone supply a layer that works or tell me what I'm doing wrong? Thank you. Eric. ********************************************** Eric Davies, M.Sc. Barrodale Computing Services Ltd. Tel: (250) 472-4372 Fax: (250) 472-4373 Web: http://www.barrodale.com Email: eric@barrodale.com ********************************************** Mailing Address: P.O. Box 3075 STN CSC Victoria BC Canada V8W 3W2 Shipping Address: Hut R, McKenzie Avenue University of Victoria Victoria BC Canada V8W 3W2 ********************************************** --=====================_369328468==.ALT Content-Type: text/html; charset="us-ascii" Hi All,

I want to have the user be able to mark a point on the map.
According to the cgi reference document, this is doable with a map_${layername}_feature...
argument. You just have to define the layer first in your map file. Fair enough, my layer looks like

SYMBOL
  NAME "circle"
  TYPE ellipse
  FILLED true
  POINTS
    1 1
  END
END
 
LAYER
  NAME reddot
  TYPE Point
  STATUS on
  METADATA
     ICONNAME "/mapserverdemo/selected.png"
     DESCRIPTION "Selected point"
  END
  CLASS
    Name "reddot"
    COLOR 255 0 0
    SYMBOL "circle"
    SIZE 1 1
  END  # CLASS
END  # LAYER

Mapserver seems to choke on this. I try to invoke it and get
MapServer version 3.6.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE --> <BODY BGCOLOR="#FFFFFF"> loadClass(): Unknown identifier. (1):(212)

I've tried a few permutations on the layer without any luck.
Can anyone supply a layer that works or tell me what I'm doing wrong? Thank you.

Eric.

**********************************************
Eric Davies, M.Sc.
Barrodale Computing Services Ltd.
Tel: (250) 472-4372 Fax: (250) 472-4373
Web: http://www.barrodale.com
Email: eric@barrodale.com
**********************************************
Mailing Address:
P.O. Box 3075 STN CSC
Victoria BC Canada V8W 3W2

Shipping Address:
Hut R, McKenzie Avenue
University of Victoria
Victoria BC Canada V8W 3W2
**********************************************


--=====================_369328468==.ALT-- From bpicinbono@worldonline.fr Sat May 3 17:09:29 2003 From: bpicinbono@worldonline.fr (=?iso-8859-1?Q?bpicinbono@worldonline.fr?=) Date: Sat, 3 May 2003 18:09:29 +0200 Subject: [Mapserver-users] =?iso-8859-1?Q?surface?= Message-ID: Hi, the list. I am wondering weither MapServer know how to calculate the surface of a polygon or not. I searched the list, but I found old messages telling it doesn't. Is there a new version of MapServer - PHP - MapScript that does ? (I am using phpMapscript version 3.6.2). Does it ? If not, does the latest version do it ? If not, it should, as it's a kind of basic thing one could expect from a GIS. Thanks for the info. Blaise ************ VITE, C'EST LE MOMENT DE VOUS ABONNER A L'ADSL !!! ********** Du 3 avril au 5 mai, série limitée ADSL 128K, cliquez vite ici : http://register.tiscali.fr/adsl/ Offre promotionnelle soumise à conditions, réservée aux nouveaux abonnés ADSL Tiscali. From doug@moximedia.com Sat May 3 17:14:03 2003 From: doug@moximedia.com (Doug Cates) Date: Sat, 3 May 2003 09:14:03 -0700 Subject: [Mapserver-users] WMS server issues Message-ID: <000001c3118f$04124e90$6401a8c0@vn.shawcable.net> Hi, I've encountered a couple of problems using MapServer as a WMS server. I couldn't get the bugzilla to work for me, so here they are here. 1. Commas in layer names I've been accessing a remote French MapServer site that uses commas in the layer names like "pe_7,5m", which indicate that the layer is at 1:7.5 million (the comma is the decimal character). Even when requesting the layers in an encoded way (like LAYERS=rec_7%2C5m,pe_7%2C5m,hydro_7%2C5m ...), the layers are not included in the GetMap image that is returned. Although it is not necessary for people to name their layers this way, MapServer should deal with this if they do. 2. Invalid XML in application/vnd.ogc.gml GetFeatureInfo response. When requested this way (layer must be defined as DUMP true in order for this to work), the resulting XML response can be invalid if the fields contain certain text. MapServer should automatically convert special characters (&,",') to &, " and ' that are found in field values to ensure a valid XML response. Doug -- Doug Cates Moxi Media Inc. 757 - 1641 Lonsdale Avenue, Vancouver, BC, Canada V7M 2J5 Phone: 604-984-8109 Fax: 604-608-4764 E-Mail: doug@moximedia.com Web: www.moximedia.com From ed@topozone.com Sat May 3 17:51:21 2003 From: ed@topozone.com (Ed McNierney) Date: Sat, 3 May 2003 12:51:21 -0400 Subject: [Mapserver-users] WMS server issues Message-ID: <13858AA1A74F30419F319ACB66A9D1221F42E2@mercator.topozone.com> Doug - I would recommend highly that commas NOT be used in layer names, as the spec requires the comma to be the separator character in a layer list. By spec, the escaped commas should be handled properly, so thanks for that input - but the French server docs should make it very clear that their layer names MUST be escaped. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: Doug Cates [mailto:doug@moximedia.com] Sent: Saturday, May 03, 2003 12:14 PM To: Mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] WMS server issues Hi, I've encountered a couple of problems using MapServer as a WMS server. I couldn't get the bugzilla to work for me, so here they are here. 1. Commas in layer names I've been accessing a remote French MapServer site that uses commas in the layer names like "pe_7,5m", which indicate that the layer is at 1:7.5 million (the comma is the decimal character). Even when requesting the layers in an encoded way (like LAYERS=rec_7%2C5m,pe_7%2C5m,hydro_7%2C5m ...), the layers are not included in the GetMap image that is returned. Although it is not necessary for people to name their layers this way, MapServer should deal with this if they do. 2. Invalid XML in application/vnd.ogc.gml GetFeatureInfo response. When requested this way (layer must be defined as DUMP true in order for this to work), the resulting XML response can be invalid if the fields contain certain text. MapServer should automatically convert special characters (&,",') to &, " and ' that are found in field values to ensure a valid XML response. Doug -- Doug Cates Moxi Media Inc. 757 - 1641 Lonsdale Avenue, Vancouver, BC, Canada V7M 2J5 Phone: 604-984-8109 Fax: 604-608-4764 E-Mail: doug@moximedia.com Web: www.moximedia.com _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From doug@moximedia.com Sat May 3 18:05:33 2003 From: doug@moximedia.com (Doug Cates) Date: Sat, 3 May 2003 10:05:33 -0700 Subject: [Mapserver-users] WMS server issues In-Reply-To: <13858AA1A74F30419F319ACB66A9D1221F42E2@mercator.topozone.com> Message-ID: <000301c31196$35fb8af0$6401a8c0@vn.shawcable.net> This is a multi-part message in MIME format. ------=_NextPart_000_0004_01C3115B.899E3990 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Ed, Agreed. I contacted the server host (National Atlas of Canada), and they have agreed to change the layer names to remove the commas. I don't think that it is necessary to notify people that layer names should be encoded if necessary, because that is part of the WMS specification. If a server purports to be OGC-compliant, it should handle encoded layer names properly. Cheers, Doug ------=_NextPart_000_0004_01C3115B.899E3990 Content-Type: application/ms-tnef; name="winmail.dat" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="winmail.dat" eJ8+IiIRAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEGgAMADgAAANMHBQADAAoABQAAAAYA9wAB A5AGAMQFAAAmAAAACwACAAEAAAALACMAAAAAAAMAJgAAAAAACwApAAAAAAADAC4AAAAAAAMANgAA AAAAHgBwAAEAAAAkAAAAW01hcHNlcnZlci11c2Vyc10gV01TIHNlcnZlciBpc3N1ZXMAAgFxAAEA AAAWAAAAAcMRljWFOCD2/H17Ede34wBAM9QF4wAAAgEdDAEAAAAYAAAAU01UUDpET1VHQE1PWElN RURJQS5DT00ACwABDgAAAABAAAYOAAZsIZYRwwECAQoOAQAAABgAAAAAAAAAJ5Xn3CnH1BG05QBA M9QF48KAAAADABQOAQAAAAsAHw4BAAAAAgEJEAEAAADKAQAAxgEAALcCAABMWkZ1v+0AmwMACgBy Y3BnMTI14jIDQ3RleAVBAQMB9/8KgAKkA+QHEwKAD/MAUARWPwhVB7IRJQ5RAwECAGNo4QrAc2V0 MgYABsMRJfYzBEYTtzASLBEzCO8J97Y7GB8OMDURIgxgYwBQMwsJAWQzNhZQC6YgRVxkLAqiCoQK gEEJwmTwLiBJIAWgAjAA0A6wQGQgdGhlIBQQciJ2EoFob3MFQChOuGF0aQIgB0AQwHQLYBkEIG9m EiAAcGFkYVgpLCAAcB8DeR/AYW8fkCHQHfMfEG8ecBPgbu5nH0AfIgtgeRKBIIAHgr8jMRggBGAi kR8iBaBtAMCscy4dKh5gZAIgJwVAmx8gC4BrHxEgQCBpJ/HtBCBuBZAHkHMKwCJQIzEUbm8gUGYi UHBlby8LUCOyJ+EkGnMf0HVs/R8AYh9ACfAFoAEAHwAGkMcoaCHAK6BjYXUUECe1XwQgCrEFQCEh HyJXBeFzfSmwYwaQDeAgQx5BITBhdR9WcAhwcBfBJLMroU/4R0MtJbELUAcwAjAhwHcoESs1I3Fk KfEr1iQacGMDYCmwcmx5HkAdKkOrHzAEkHMdFUQIYGc1qwJ9OGAAAB4AQhABAAAAPwAAADwxMzg1 OEFBMUE3NEYzMDQxOUYzMTlBQ0I2NkE5RDEyMjFGNDJFMkBtZXJjYXRvci50b3Bvem9uZS5jb20+ AAADAAlZAQAAAAMAAHwFAAAACwAAgAggBgAAAAAAwAAAAAAAAEYAAAAAA4UAAAAAAAADAAKACCAG AAAAAADAAAAAAAAARgAAAAAQhQAAAAAAAAMABYAIIAYAAAAAAMAAAAAAAABGAAAAAFKFAAA/cQEA HgAJgAggBgAAAAAAwAAAAAAAAEYAAAAAVIUAAAEAAAAEAAAAOS4wAAMACoAIIAYAAAAAAMAAAAAA AABGAAAAAAGFAAAAAAAACwATgAggBgAAAAAAwAAAAAAAAEYAAAAADoUAAAAAAAADABSACCAGAAAA AADAAAAAAAAARgAAAAARhQAAAAAAAAMAFoAIIAYAAAAAAMAAAAAAAABGAAAAABiFAAAAAAAACwCE gAggBgAAAAAAwAAAAAAAAEYAAAAABoUAAAAAAAACAfgPAQAAABAAAAAnlefcKcfUEbTlAEAz1AXj AgH6DwEAAAAQAAAAJ5Xn3CnH1BG05QBAM9QF4wIB+w8BAAAATAAAAAAAAAA4obsQBeUQGqG7CAAr KlbCAABtc3BzdC5kbGwAAAAAAE5JVEH5v7gBAKoAN9luAAAARjpcbWFpbFxtb3hpbWVybGluLnBz dAADAP4PBQAAAAMADTT9NwAAAgF/AAEAAAAxAAAAMDAwMDAwMDAyNzk1RTdEQzI5QzdENDExQjRF NTAwNDAzM0Q0MDVFMzI0M0U0RjA1AAAAAAMABhDdcpcAAwAHEDwBAAADABAQAAAAAAMAERAAAAAA HgAIEAEAAABlAAAARUQsQUdSRUVESUNPTlRBQ1RFRFRIRVNFUlZFUkhPU1QoTkFUSU9OQUxBVExB U09GQ0FOQURBKSxBTkRUSEVZSEFWRUFHUkVFRFRPQ0hBTkdFVEhFTEFZRVJOQU1FU1RPUkVNTwAA AAAQNw== ------=_NextPart_000_0004_01C3115B.899E3990-- From ed@topozone.com Sat May 3 19:59:28 2003 From: ed@topozone.com (Ed McNierney) Date: Sat, 3 May 2003 14:59:28 -0400 Subject: [Mapserver-users] WMS server issues Message-ID: <13858AA1A74F30419F319ACB66A9D1221F42E3@mercator.topozone.com> Doug - I do think it's necessary to notify people if you find a bug, otherwise it's unlikely to be fixed! I'm frankly quite surprised that commas are permitted in layer names in the spec, so it's very easy to overlook that detail - I haven't heard of anyone else serving layer names with commas, so it's the kind of bug that's easy to miss. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed@topozone.com -----Original Message----- From: Doug Cates [mailto:doug@moximedia.com] Sent: Saturday, May 03, 2003 1:06 PM To: Ed McNierney; Mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] WMS server issues Ed, Agreed. I contacted the server host (National Atlas of Canada), and they have agreed to change the layer names to remove the commas. I don't think that it is necessary to notify people that layer names should be encoded if necessary, because that is part of the WMS specification. If a server purports to be OGC-compliant, it should handle encoded layer names properly. Cheers, Doug From doug@moximedia.com Sat May 3 20:15:01 2003 From: doug@moximedia.com (Doug Cates) Date: Sat, 3 May 2003 12:15:01 -0700 Subject: [Mapserver-users] WMS server issues In-Reply-To: <13858AA1A74F30419F319ACB66A9D1221F42E3@mercator.topozone.com> Message-ID: <000401c311a8$4c4c42b0$6401a8c0@vn.shawcable.net> This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C3116D.9FFE3390 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Ed, You misunderstand me. It is important to notify the MapServer developers about the bug so they can fix it. I wasn't suggesting otherwise. I was referring to your comment, "but the French server docs should make it very clear that their layer names MUST be escaped" which I interpreted to mean that you thought that the capabilities response should have special mention about needing to encode the layer names or that they should go out of their way to warn people about that. A compliant client application will always encode the layer names if necessary, and a compliant server must be able to decode the request, so what I'm saying is that if everyone follows the specification (which is the whole idea of OGC), that there is no need for a server with reserved characters in their names to notify people about that. Doug ------=_NextPart_000_0005_01C3116D.9FFE3390 Content-Type: application/ms-tnef; name="winmail.dat" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="winmail.dat" eJ8+IgITAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEGgAMADgAAANMHBQADAAwADwAAAAYAAwEB A5AGABAHAAAnAAAACwACAAEAAAALACMAAAAAAAMAJgAAAAAACwApAAAAAAADAC4AAAAAAAMANgAA AAAAHgBwAAEAAAAkAAAAW01hcHNlcnZlci11c2Vyc10gV01TIHNlcnZlciBpc3N1ZXMAAgFxAAEA AAAgAAAAAcMRljWFOCD2/H17Ede34wBAM9QF4wAD6FMgAABSztACAR0MAQAAABgAAABTTVRQOkRP VUdATU9YSU1FRElBLkNPTQALAAEOAAAAAEAABg4AkpVKqBHDAQIBCg4BAAAAGAAAAAAAAAAnlefc KcfUEbTlAEAz1AXjwoAAAAMAFA4BAAAACwAfDgEAAAACAQkQAQAAAO8CAADrAgAAYgQAAExaRnUE +TKmAwAKAHJjcGcxMjXiMgNDdGV4BUEBAwH3/wqAAqQD5AcTAoAP8wBQBFY/CFUHshElDlEDAQIA Y2jhCsBzZXQyBgAGwxEl9jMERhO3MBIsETMI7wn3tjsYHw4wNREiDGBjAFAzCwkBZDM2FlALpiBF XGQsCqIKhAqAWQhgINJtBAB1bgSBcwGQHmDhHhBlLiBJBUAEAB9gHG1wF8EAcAVAdG8gKG5vdAaQ eSAwaGXpBdBhcAZhdhKBAQAhgPUXsHAegSABoAhgICEg8eBidWcgcyBQIOEgwKJjA5FmaXgfYHQf IcAgd2FzbicFQB5A7GdnB5AgkG4jMCCAIPBecgPxHxAdKiSTIBggZu8EkAUQJaEgQXkIYSPAA3Bj B4ACMCwgIiMQIrRGnRggbhPQI0AhZW9jBCCUc2gIYGwe4WFrIQDNJFAgIYEjsWxlCsEg4FphIrNp BcALYHkSgW7CYQeCTVVTVCMAIQCnB5Aj0CIgZCIkoGgN4M8qICSQC4AOsHJwGCAOsP8e4CBBB4AD kSyjKGEg0QhgvGdoIrIsxCPBCrBiAxD3JFAIkCdycx/AAIAhACsF7xPgIYAjQCIgYwcxHvECMNZp AiAiZW4J4GQn9SnxfwRxINMtWgWxLKYgwCsFZ/MgUCKSb2Ys5SSwIMEgUP8ksAShIiAiECxQImcs wB8g/kEoogtQBzAgESxACJAgEd8hMDyhI9A1UwPwbAMgB0C/OmEEIDa/LbQGkDXxYweQ2nMKwHkp IB7CYTxpKkX8bXUeoC5SAaA7YSBBBYL7P0UYIHEKUB6gKSAjUS8g8SzBSSdtI0AtYCWSH3H/LKNA cSHRLBACICEAAhA+YLxvd0ZCNIUkED3VKC8k/0YzIQAvIAbwK6EBAEGQOdHwT0dDKSkgLKYYIB9i /yBwNfNHYQXAQZAqRQPwIOD/M0IhYh7gE9IA0C/BH4Ewwt8tEi20IEg7LyZrRDGRHSQCfVMQAB4A QhABAAAAPwAAADwxMzg1OEFBMUE3NEYzMDQxOUYzMTlBQ0I2NkE5RDEyMjFGNDJFM0BtZXJjYXRv ci50b3Bvem9uZS5jb20+AAADAAlZAQAAAAMAAHwFAAAACwAAgAggBgAAAAAAwAAAAAAAAEYAAAAA A4UAAAAAAAADAAKACCAGAAAAAADAAAAAAAAARgAAAAAQhQAAAAAAAAMABYAIIAYAAAAAAMAAAAAA AABGAAAAAFKFAAA/cQEAHgAJgAggBgAAAAAAwAAAAAAAAEYAAAAAVIUAAAEAAAAEAAAAOS4wAAMA CoAIIAYAAAAAAMAAAAAAAABGAAAAAAGFAAAAAAAACwATgAggBgAAAAAAwAAAAAAAAEYAAAAADoUA AAAAAAADABSACCAGAAAAAADAAAAAAAAARgAAAAARhQAAAAAAAAMAFoAIIAYAAAAAAMAAAAAAAABG AAAAABiFAAAAAAAACwCEgAggBgAAAAAAwAAAAAAAAEYAAAAABoUAAAAAAAALAIaACCAGAAAAAADA AAAAAAAARgAAAACChQAAAQAAAAIB+A8BAAAAEAAAACeV59wpx9QRtOUAQDPUBeMCAfoPAQAAABAA AAAnlefcKcfUEbTlAEAz1AXjAgH7DwEAAABMAAAAAAAAADihuxAF5RAaobsIACsqVsIAAG1zcHN0 LmRsbAAAAAAATklUQfm/uAEAqgA32W4AAABGOlxtYWlsXG1veGltZXJsaW4ucHN0AAMA/g8FAAAA AwANNP03AAACAX8AAQAAADEAAAAwMDAwMDAwMDI3OTVFN0RDMjlDN0Q0MTFCNEU1MDA0MDMzRDQw NUUzMDRFNTRGMDUAAAAAAwAGEJ8rx9kDAAcQowIAAAMAEBAAAAAAAwAREAAAAAAeAAgQAQAAAGUA AABFRCxZT1VNSVNVTkRFUlNUQU5ETUVJVElTSU1QT1JUQU5UVE9OT1RJRllUSEVNQVBTRVJWRVJE RVZFTE9QRVJTQUJPVVRUSEVCVUdTT1RIRVlDQU5GSVhJVElXQVNOVFNVR0dFAAAAAMCq ------=_NextPart_000_0005_01C3116D.9FFE3390-- From bon@ivv-aachen.de Mon May 5 12:18:59 2003 From: bon@ivv-aachen.de (=?iso-8859-1?Q?Nicole_B=F6meke?=) Date: Mon, 5 May 2003 13:18:59 +0200 Subject: [Mapserver-users] execute two querys at the same time Message-ID: <000001c312f8$20d909f0$1a01a8c0@ivvaachen.de> Hello list, is it possible to execute two or more querys over different layers at the same time and mark the query results in different colors? If yes, how can I define more than one qlayer? And where can I determin the hilite color for the query result of each layer? To execute a query I'm using the following code: template file: ------------------ mapfile: ----------- QUERYMAP STATUS ON STYLE HILITE COLOR 255 0 255 END LAYER NAME "rqF" DATA "gesamt_fgo" STATUS OFF TYPE LINE FILTERITEM "sStrNr" FILTER "%map_rqF_filter%" CLASS NAME "rqF" SYMBOL "circle" SIZE 6 TEMPLATE "empty.html" END FOOTER "rrt_query_mode.html" END Nicole From paul.hasenohr@jrc.it Mon May 5 13:08:52 2003 From: paul.hasenohr@jrc.it (Paul Hasenohr) Date: Mon, 5 May 2003 14:08:52 +0200 Subject: [Mapserver-users] w32 binaries with gdal/ecw, gd2, postgis and mapscript support Message-ID: <000101c312ff$181f97f0$878ebf8b@mars.ipsc.jrc.it> This is a multi-part message in MIME format. ------=_NextPart_000_0002_01C3130F.DBA867F0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, =20 I would like to use mapserver to read (and sometimes as a WMS server to write) ecw images. So I think that I need to use mapserver under windows with a gdal library compiled against ecw sdk. I would also like to use this mapserver to serve postgis data with = mapscript support. I set up a postgis/postgresql database under linux but now, I would like = to use it with ecw images and php mapscript. I found very recent binaries on dmsolutions website but, unfortunately without postgis support. On mapserver web site, I found binaries with gdal and postgis support = but unfortunately without mapscript support. So I would like to compile it by myself but my knowledge of makefiles = and specially of Makefile.vc is very poor. I had a look to the makefile.vc provided with mapserver_nightly.tar.gz but it doesn't seem to include postgis support (I didn't see any reference to the flag USE_POSTGIS). Options are available for gd 1.8.4 but I didn't find any indication for compiling with support of gd2. I compiled gdal with ecw support but I really don't understand how to compile mapserver with postgis, gd2, gdal, mapscript,... support. Would it be possible to get the Makefile.vc files used to compile the mapserver program included in the zip file ms37png_gdal_wms.zip = available at http://mapserver.gis.umn.edu/win32nightlies.html and the other one used = to compile mapserver included in mapserver-3.7-dev-win32-php4.3.0-gd2.zip available on dmsolutions web site ? =20 I would really appreciate any help related to this topic. =20 Thanks in advance. =20 Best regards, Paul Hasenohr ------=_NextPart_000_0002_01C3130F.DBA867F0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message

Hello,
 
I = would like to use=20 mapserver to read (and sometimes as a WMS server to write) ecw images. = So I=20 think that I need to use mapserver under windows with a gdal library = compiled=20 against ecw sdk.
I = would also like to=20 use this mapserver to serve postgis data with mapscript=20 support.
I set = up a=20 postgis/postgresql database under linux but now, I would like to use it = with ecw=20 images and php mapscript.
I = found very recent=20 binaries on dmsolutions website but, unfortunately without postgis=20 support.
On = mapserver web=20 site, I found binaries with gdal and postgis support but = unfortunately=20 without mapscript support.
So I = would like to=20 compile it by myself but my knowledge of makefiles and specially of = Makefile.vc=20 is very poor. I had a look to the makefile.vc provided with=20 mapserver_nightly.tar.gz but it doesn't seem to include postgis support = (I=20 didn't see any reference to the flag USE_POSTGIS). Options are available = for gd=20 1.8.4 but I didn't find any indication for compiling with support of=20 gd2.
I = compiled gdal with=20 ecw support but I really don't understand how to compile mapserver with = postgis,=20 gd2, gdal, mapscript,... support.
Would = it be possible=20 to get the Makefile.vc files used to compile the mapserver program = included in=20 the zip file ms37png_gdal_wms.zip available at http://mapserve= r.gis.umn.edu/win32nightlies.html and=20 the other one used to compile mapserver included in=20 mapserver-3.7-dev-win32-php4.3.0-gd2.zip available on dmsolutions web = site=20 ?
 
I = would really=20 appreciate any help related to this topic.
 
Thanks = in=20 advance.
 
Best=20 regards,
Paul=20 Hasenohr
------=_NextPart_000_0002_01C3130F.DBA867F0-- From wesp@gdv.com Mon May 5 13:01:55 2003 From: wesp@gdv.com (Oliver Wesp) Date: Mon, 05 May 2003 14:01:55 +0200 Subject: [Mapserver-users] 24bit IMG turns out Greyscale Message-ID: <5.2.0.9.2.20030505131013.00a79ee8@192.168.1.2> Dear List, I came across some behaviour and I don't know how to handle this one. I'm using 24bit IMG-Files (RGB) within my mapfile that should be displayed as RGB in the resulting mapimage. And in fact they are displayed with appropriate colors, as long as there is no class defined within the layer. As soon as I define a class - although it's empty - the image turns out greyscale. I came across this one cause I would like to display a legend entry for the raster image. So I was used to add CLASS NAME 'Layername' END to the raster layers. Here's the setup -mapserver nightly -gdal-cvs-030505 -gd 2.0.12 Maybe somebody is able to shed some light on this. best regards Oliver -- Dipl.-Geogr. Oliver Wesp Gesellschaft für geografische Datenverarbeitung Binger Strasse 49-51 D-55218 Ingelheim fon: +49 6132 714818 fax: +49 6132 714828 http: www.gdv.com From RichardBecher@SierraSystems.com Mon May 5 13:51:53 2003 From: RichardBecher@SierraSystems.com (Becher, Richard) Date: Mon, 5 May 2003 08:51:53 -0400 Subject: [Mapserver-users] OracleSpatial switches to include...(correction) Message-ID: <8450D0E05920354D97B1507EABDCDB7F07345D@svott2000.sierrasys.com> This is a multi-part message in MIME format. ------_=_NextPart_001_01C31305.1A38AFCA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Attempting to compile Mapserver with OracleSpatial (Oracle 8i) =20 Can someone help me determine what the entry should look like in the Makefile.vc file? Also, I was hoping to get a handle on what Files/directories I need to reference... =20 Help is greatly appreciated! =20 Running WinXP, IIS 5, Mapserver 3.7 (latest) and PHP 4.3.2RC2 for win32.... =20 =20 Cheers, =20 Richard Becher Sierra Systems 130 Slater Street, Suite 800 Ottawa, Ontario K1P 6E2 Phone: 613.236.7888, Extension: 350 Fax: 613.236.9333 Email: RichardBecher@SierraSystems.com www.SierraSystems.com =20 =20 =20 ------_=_NextPart_001_01C31305.1A38AFCA Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Attempting to compile = Mapserver with OracleSpatial (Oracle 8i)

 

Can someone help me = determine what the entry should look like in the Makefile.vc file?  Also, I was hoping to get a = handle on what

Files/directories I need to reference…

 

Help is greatly = appreciated!

 

Running WinXP, IIS 5, = Mapserver 3.7 (latest) and PHP 4.3.2RC2 for win32....

 

 

Cheers,

 

Richard = Becher

Sierra Systems
130 Slater Street, Suite 800
Ottawa, Ontario = K1P 6E2
Phone: 613.236.7888, Extension: 350

Fax: 613.236.9333
Email: = RichardBecher@SierraSystems.com
www.SierraSystems.com

 

 

=00 ------_=_NextPart_001_01C31305.1A38AFCA-- From agalasso@gndci.cs.cnr.it Mon May 5 14:08:53 2003 From: agalasso@gndci.cs.cnr.it (Alessandro Galasso) Date: Mon, 5 May 2003 15:08:53 +0200 Subject: [Mapserver-users] execute two querys at the same time References: <000001c312f8$20d909f0$1a01a8c0@ivvaachen.de> Message-ID: <003601c31307$7a3469e0$1900a8c0@labtel.net> Hi Nicole, if you mean geografical query (by click) the answer is yes for sure. You have to use NQUERY/NQUERYMAP modes and LAYERS to specify which layers are active (ON). The same thing seems to me impossible in ITEMNQUERY/ITEMNQUERYMAP modes. In fact the omission of qlayer give a "No query layer defined". I've tryed in many ways but i cannot find the right one. By the way, Steve Lime told us that a new management for item queries is in progress, and will be available in the next final release of Mapserver. --- Alessandro Galasso ----- Original Message ----- From: "Nicole Bömeke" To: Sent: Monday, May 05, 2003 1:18 PM Subject: [Mapserver-users] execute two querys at the same time > Hello list, > > is it possible to execute two or more querys > over different layers at the same time > and mark the query results in different colors? > > If yes, how can I define more than one qlayer? > And where can I determin the hilite color > for the query result of each layer? > > To execute a query I'm using the following code: > > template file: > ------------------ > > > > > value="/0000156946|0000156957|0000156955|0000156956/"> > > mapfile: > ----------- > > QUERYMAP > STATUS ON > STYLE HILITE > COLOR 255 0 255 > END > > LAYER > NAME "rqF" > DATA "gesamt_fgo" > STATUS OFF > TYPE LINE > FILTERITEM "sStrNr" > FILTER "%map_rqF_filter%" > CLASS > NAME "rqF" > SYMBOL "circle" > SIZE 6 > TEMPLATE "empty.html" > END > FOOTER "rrt_query_mode.html" > END > > Nicole > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From jhart@frw.uva.nl Mon May 5 14:57:51 2003 From: jhart@frw.uva.nl (Jan Hartmann) Date: Mon, 05 May 2003 15:57:51 +0200 Subject: [Mapserver-users] execute two querys at the same time In-Reply-To: <000001c312f8$20d909f0$1a01a8c0@ivvaachen.de> References: <000001c312f8$20d909f0$1a01a8c0@ivvaachen.de> Message-ID: <3EB66DDF.5080304@frw.uva.nl> Nicole, Aren't you making it very difficult for yourself? If you just want to display assorted selections with different colors, you can use CLASS expressions within layers. To display selections from several layers, you can define classes for each layer and display all layers transparently (see OUTPUTFORMAT). Queries are only needed when you want to process additional data from the selected items. Templates for these can be provided at CLASS and LAYER level. Jan Nicole Bömeke wrote: > Hello list, > > is it possible to execute two or more querys > over different layers at the same time > and mark the query results in different colors? > > If yes, how can I define more than one qlayer? > And where can I determin the hilite color > for the query result of each layer? > > To execute a query I'm using the following code: > > template file: > ------------------ > > > > > value="/0000156946|0000156957|0000156955|0000156956/"> > > mapfile: > ----------- > > QUERYMAP > STATUS ON > STYLE HILITE > COLOR 255 0 255 > END > > LAYER > NAME "rqF" > DATA "gesamt_fgo" > STATUS OFF > TYPE LINE > FILTERITEM "sStrNr" > FILTER "%map_rqF_filter%" > CLASS > NAME "rqF" > SYMBOL "circle" > SIZE 6 > TEMPLATE "empty.html" > END > FOOTER "rrt_query_mode.html" > END > > Nicole > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From bfraser@geoanalytic.com Mon May 5 15:05:06 2003 From: bfraser@geoanalytic.com (Brent Fraser) Date: Mon, 5 May 2003 08:05:06 -0600 Subject: [Mapserver-users] 24bit IMG turns out Greyscale References: <5.2.0.9.2.20030505131013.00a79ee8@192.168.1.2> Message-ID: <020301c3130f$5520b570$020002c0@SHARK> Oliver, I ran across this problem in January. If you have a CLASS defined for a raster layer, MapServer assumes you want to classify it (examine the pixel values) and assumes the raster is 8-bit one band instead of 24-bit. The result is that the first band is rendered as greyscale. A bug has been filed (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=270), and Steve Lime and Frank Warmerdam had an email exchange on possible solutions (do a seach of the mailing list archive for "image processing crash"). But I don't think the problem has been solved yet. Brent Fraser bfraser@geoanalytic.com ----- Original Message ----- From: "Oliver Wesp" To: Sent: Monday, May 05, 2003 6:01 AM Subject: [Mapserver-users] 24bit IMG turns out Greyscale Dear List, I came across some behaviour and I don't know how to handle this one. I'm using 24bit IMG-Files (RGB) within my mapfile that should be displayed as RGB in the resulting mapimage. And in fact they are displayed with appropriate colors, as long as there is no class defined within the layer. As soon as I define a class - although it's empty - the image turns out greyscale. I came across this one cause I would like to display a legend entry for the raster image. So I was used to add CLASS NAME 'Layername' END to the raster layers. Here's the setup -mapserver nightly -gdal-cvs-030505 -gd 2.0.12 Maybe somebody is able to shed some light on this. best regards Oliver -- Dipl.-Geogr. Oliver Wesp Gesellschaft für geografische Datenverarbeitung Binger Strasse 49-51 D-55218 Ingelheim fon: +49 6132 714818 fax: +49 6132 714828 http: www.gdv.com _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From benjamin.thelen@ccgis.de Mon May 5 16:57:20 2003 From: benjamin.thelen@ccgis.de (Benjamin Thelen) Date: Mon, 5 May 2003 17:57:20 +0200 Subject: [Mapserver-users] rojection library error. no system list, errno: 2 Message-ID: Hi everybody, after days of work, umn-mapserver is nearly running on my FreeBSD 4.7 System. I think I'll post what was neccessary to have umn-mapserver running on FreeBSD. Maybe that is something for a FAQ or even the manual. But there are finally two problems. One is still the pdf-lib and the other one is here: http://servername/cgi-bin/mapserv?wmtver=1.0.0&map=/home/umn/test1.map&reque st=capabilities responds the following: --------------------------------------------------------------------------- - - MapServer Message - msProcessProjection(): Projection library error. no system list, errno: 2 --------------------------------------------------------------------------- ./configure was successful, even with proj4. If needed I'll provide the options and output as well as the output of make of course. Anybody an idea? Where can this system list be found? What's its name? Can I somehow check the installation of proj4? I have installed FreeBSD 4.7 out of the ports-collection apache 1.3.27 php 4.3.1 proj 4.4.5 gd-2.0.11 gdal-1.1.8 libWWW-5.4.0 directly from source code of course mapserver 3.6.5 Thanks, Benjamin From tai.le@sbcglobal.net Mon May 5 17:10:51 2003 From: tai.le@sbcglobal.net (Tai Le) Date: Mon, 5 May 2003 11:10:51 -0500 Subject: [Mapserver-users] display a translucently layer on top of others Message-ID: <003b01c31320$e6b293d0$0220a8c0@devnet.com> This is a multi-part message in MIME format. ------=_NextPart_000_0038_01C312F6.FD4554E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I'm new with MapServer. I would like to display a layer (of polygon = type) translucently on top of other layers. One way I can do it is set = its symbol to a "crosshash" style: SYMBOL NAME 'crosshatch' TYPE VECTOR POINTS 0 0 2 2 END END I know this is not the right way, you can "see thru" this layer, but not = truely "translucent". Is there other way of doing this (also, if we can set the transparency = level)? Thanks. -- Tai. ------=_NextPart_000_0038_01C312F6.FD4554E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
I'm new with MapServer. I = would like to=20 display a layer (of polygon type) translucently on top of other=20 layers. One way I can do it is set its symbol to a "crosshash"=20 style:
 
SYMBOL
  NAME 'crosshatch'
  TYPE VECTOR
 =20 POINTS
    0 0
    2 2
 =20 END
END
I know = this is not the=20 right way, you can "see thru" this layer, but not truely=20 "translucent".
Is there = other way of=20 doing this (also, if we can set the transparency level)?=20 Thanks.
--=20 Tai.
------=_NextPart_000_0038_01C312F6.FD4554E0-- From benjamin.thelen@ccgis.de Mon May 5 17:44:25 2003 From: benjamin.thelen@ccgis.de (Benjamin Thelen) Date: Mon, 5 May 2003 18:44:25 +0200 Subject: [Mapserver-users] rojection library error. no system list, errno: 2 In-Reply-To: Message-ID: Hi again, I found out the lists names and where they are to be found. On my system in /usr/local/share/proj. But still I don't understand, why proj4 isn't able to find its own files?? Ben > -----Original Message----- > From: mapserver-users-admin@lists.gis.umn.edu > [mailto:mapserver-users-admin@lists.gis.umn.edu]On Behalf Of Benjamin > Thelen > Sent: Monday, May 05, 2003 5:57 PM > To: mapserver-users@lists.gis.umn.edu > Subject: [Mapserver-users] rojection library error. no system list, > errno: 2 > > > Hi everybody, > > after days of work, umn-mapserver is nearly running on my FreeBSD 4.7 > System. I think I'll post what was neccessary to have > umn-mapserver running > on FreeBSD. Maybe that is something for a FAQ or even the manual. > > > But there are finally two problems. One is still the pdf-lib and the other > one is here: > > > > > http://servername/cgi-bin/mapserv?wmtver=1.0.0&map=/home/umn/test1 > .map&reque > st=capabilities > > responds the following: > > > ------------------------------------------------------------------ > --------- > - > - > MapServer Message > > - > msProcessProjection(): Projection library error. > no system list, errno: 2 > > ------------------------------------------------------------------ > --------- > > > ./configure was successful, even with proj4. If needed I'll provide the > options and output as well as the output of make of course. > > > Anybody an idea? Where can this system list be found? What's its > name? Can I > somehow check the installation of proj4? > > > I have installed > > FreeBSD 4.7 > > out of the ports-collection > apache 1.3.27 > php 4.3.1 > proj 4.4.5 > gd-2.0.11 > gdal-1.1.8 > libWWW-5.4.0 > > directly from source code of course > mapserver 3.6.5 > > > Thanks, > Benjamin > > > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > From cpurvis@asg.sc.edu Mon May 5 17:52:46 2003 From: cpurvis@asg.sc.edu (Charlton Purvis) Date: Mon, 5 May 2003 12:52:46 -0400 Subject: [Mapserver-users] display a translucently layer on top of others Message-ID: This is a multi-part message in MIME format. ------_=_NextPart_001_01C31326.C0C0CCFA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Check out the TRANSPARENCY property. I believe you have to be running MapServer 3.7.x for this to kick in. =20 LAYER TRANSPARENCY 75 CLASS END END =20 -----Original Message----- From: Tai Le [mailto:tai.le@sbcglobal.net]=20 Sent: Monday, May 05, 2003 12:11 PM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] display a translucently layer on top of others =20 Hello, I'm new with MapServer. I would like to display a layer (of polygon type) translucently on top of other layers. One way I can do it is set its symbol to a "crosshash" style: =20 SYMBOL NAME 'crosshatch' TYPE VECTOR POINTS 0 0 2 2 END END I know this is not the right way, you can "see thru" this layer, but not truely "translucent". Is there other way of doing this (also, if we can set the transparency level)? Thanks. -- Tai. ------_=_NextPart_001_01C31326.C0C0CCFA Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Check out the TRANSPARENCY = property.  I believe you have to be running MapServer 3.7.x for this to kick = in.

 

LAYER

  TRANSPARENCY = 75

  CLASS

  END

END

 

-----Original = Message-----
From: Tai Le [mailto:tai.le@sbcglobal.net]
Sent: Monday, May 05, = 2003 12:11 PM
To: mapserver-users@lists.gis.umn.edu
Subject: = [Mapserver-users] display a translucently layer on top of others

 

Hello,

I'm new with = MapServer. I would like to display a layer (of polygon type) translucently on = top of other layers. One way I can do it is set its symbol to a "crosshash" style:

 

SYMBOL
  NAME 'crosshatch'
  TYPE VECTOR
  POINTS
    0 0
    2 2
  END
END

I know this is not the = right way, you can "see thru" this layer, but not truely "translucent".

Is there other way of doing = this (also, if we can set the transparency level)? Thanks.

-- Tai.

=00 ------_=_NextPart_001_01C31326.C0C0CCFA-- From eric@gomoos.org Mon May 5 14:05:57 2003 From: eric@gomoos.org (Eric Bridger) Date: 05 May 2003 13:05:57 +0000 Subject: [Mapserver-users] display a translucently layer on top of others In-Reply-To: References: Message-ID: <1052139958.1876.7.camel@ubet.gomoos.org> TRANSPARENCY works in 3.6 and 3.5 also. On Mon, 2003-05-05 at 16:52, Charlton Purvis wrote: > Check out the TRANSPARENCY property. I believe you have to be running > MapServer 3.7.x for this to kick in. > > > > LAYER > > TRANSPARENCY 75 > > CLASS > > END > > END > > > > -----Original Message----- > From: Tai Le [mailto:tai.le@sbcglobal.net] > Sent: Monday, May 05, 2003 12:11 PM > To: mapserver-users@lists.gis.umn.edu > Subject: [Mapserver-users] display a translucently layer on top of > others > > > > Hello, > > I'm new with MapServer. I would like to display a layer (of polygon > type) translucently on top of other layers. One way I can do it is set > its symbol to a "crosshash" style: > > > > SYMBOL > NAME 'crosshatch' > TYPE VECTOR > POINTS > 0 0 > 2 2 > END > END > > I know this is not the right way, you can "see thru" this layer, but not > truely "translucent". > > Is there other way of doing this (also, if we can set the transparency > level)? Thanks. > > -- Tai. > From benjamin.thelen@ccgis.de Mon May 5 18:21:08 2003 From: benjamin.thelen@ccgis.de (Benjamin Thelen) Date: Mon, 5 May 2003 19:21:08 +0200 Subject: [Mapserver-users] rojection library error. no system list, errno: 2 In-Reply-To: Message-ID: Hi everybody, I found something what Daniel Morrissette wrote some time ago: ---------------------------------------------------------------------- This happens if the file "epsg" is missing in the proj directory (/usr/local/share/proj/epsg on Unix), or if you try to use an epsg:XXXX code that doesn't exist in that file. ---------------------------------------------------------------------- But, both is not true in my case. The epsg-file IS there and the epsg:XXXX I specified are in the epsg-file. And here something that Frank Warmerdam wrote: ------------------------------------------------------------------------ errno = 2 is ENOENT which means file not found. Sorry for the awful error message, but basically I think the epsg file isn't found. Please ensure that the PROJ_LIB environment variable points to the directory with the EPSG file in it. On unix this is normally installed into /usr/local/share/proj, and it is in the nad directory within the proj distribution. ------------------------------------------------------------------------ I set the environment variable PROJ_LIB directly in a shell: "set PROJ_LIB=/usr/local/share/proj". But that didn't help as well. I thought it could be something with file permissions, but I don't think, proj4 is not allowed to access its own files. I have no more ideas at the moment. Anybody another idea? Sorry for my three mails. I was a bit to fast writing to the list. Thanks, Benjamin > -----Original Message----- > From: mapserver-users-admin@lists.gis.umn.edu > [mailto:mapserver-users-admin@lists.gis.umn.edu]On Behalf Of Benjamin > Thelen > Sent: Monday, May 05, 2003 5:57 PM > To: mapserver-users@lists.gis.umn.edu > Subject: [Mapserver-users] rojection library error. no system list, > errno: 2 > > > Hi everybody, > > after days of work, umn-mapserver is nearly running on my FreeBSD 4.7 > System. I think I'll post what was neccessary to have > umn-mapserver running > on FreeBSD. Maybe that is something for a FAQ or even the manual. > > > But there are finally two problems. One is still the pdf-lib and the other > one is here: > > > > > http://servername/cgi-bin/mapserv?wmtver=1.0.0&map=/home/umn/test1 > .map&reque > st=capabilities > > responds the following: > > > ------------------------------------------------------------------ > --------- > - > - > MapServer Message > > - > msProcessProjection(): Projection library error. > no system list, errno: 2 > > ------------------------------------------------------------------ > --------- > > > ./configure was successful, even with proj4. If needed I'll provide the > options and output as well as the output of make of course. > > > Anybody an idea? Where can this system list be found? What's its > name? Can I > somehow check the installation of proj4? > > > I have installed > > FreeBSD 4.7 > > out of the ports-collection > apache 1.3.27 > php 4.3.1 > proj 4.4.5 > gd-2.0.11 > gdal-1.1.8 > libWWW-5.4.0 > > directly from source code of course > mapserver 3.6.5 > > > Thanks, > Benjamin > > > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > From eduardo@linkgeo.com.br Mon May 5 18:31:26 2003 From: eduardo@linkgeo.com.br (Eduardo Patto Kanegae) Date: Mon, 5 May 2003 14:31:26 -0300 Subject: [Mapserver-users] Mapplet - show x/y coordinates on moving In-Reply-To: <1052139958.1876.7.camel@ubet.gomoos.org> References: <1052139958.1876.7.camel@ubet.gomoos.org> Message-ID: <20030505173126.2225.qmail@hm47.locaweb.com.br> I've that Mapplet has a 'verbose' param that makes the applet return the current x/y mouse position in image coordinates. Does anybody has a function to transformate it to geographic coordinates? tks mapplet_mouse_moved Eduardo Patto Kanegae Consultor GeoTI / GeoIT Consultant eduardo@linkgeo.com.br http://www.linkgeo.com.br LinkGEO - Geoprocessamento & Webmapping / LinkGEO - Geoprocessing & Webmapping *************************************** ***Fim da Mensagem / End of Message *** *************************************** From jesiel@cttmar.univali.br Mon May 5 18:35:21 2003 From: jesiel@cttmar.univali.br (Jesiel de Souza) Date: Mon, 5 May 2003 14:35:21 -0300 Subject: [Mapserver-users] OracleSpatial switches to include...(correction) Message-ID: <005601c3132c$b47a2b60$1f36a9c8@cttmar.univali.br> This is a multi-part message in MIME format. ------=_NextPart_000_0053_01C31313.8EC83E20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Richard, The entire file "Makefile.vc" it's here. PS: Modify ORACLESPATIAL_HOME with the your oracle home path. Regards, Jesiel de Souza # -------------------------------------- Begin of file "Makefile.vc" = ------------------------------------------------ # # makefile.vc - Main MapServer makefile for MSVC++ # # This VC++ makefile will build MAPSERVER.LIB, MAPSERV.EXE, and the = other # MapServer command-line programs. # # To use the makefile: # - Open a DOS prompt window # - Run the VCVARS32.BAT script to initialize the VC++ environment = variables # - Start the build with: nmake /f makefile.vc # # $Id: Makefile.vc,v 1.21.2.1 2002/08/01 14:46:45 assefa Exp $ # OPTFLAGS =3D /nologo /Zi /W3 /DDEBUG /DWIN32 #OPTFLAGS =3D /nologo /Zi=20 BASE_CFLAGS =3D $(OPTFLAGS)=20 LDFLAGS =3D /NODEFAULTLIB:libcd /DEBUG CC=3D cl LINK=3D link /debug # # If you want to ignore missing datafile errors uncomment the following # line. This is especially useful with large tiled datasets that may not # have complete data for each tile. # IGNORE_MISSING_DATA=3D-DIGNORE_MISSING_DATA # # Apparently these aren't as commonplace as I'd hoped. Edit the # following line to reflect the missing functions on your platform. # #STRINGS=3D-DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRDUP STRINGS=3D-DNEED_STRCASECMP -DNEED_STRNCASECMP # Proj.4 distribution (cartographic projection routines). Not required = for normal use. (EXPERIMENTAL) PROJ_LIB=3D../proj/src/proj.lib PROJ_INC=3D-I../proj/src PROJ=3D-DUSE_PROJ -DUSE_PROJ_API_H #Use this flag to compile with WMS support WMS=3D-DUSE_WMS #Use this flag to compile with WMS Client support #you need the libwww from http://www.w3.org/Library/. WMSCLIENT=3D -DUSE_WMS_LYR WWWLIB_INC=3D-I../Libwww/library/src -I../libwww/modules/expat/xmlparse WWWLIB_LIB=3D../Libwww/bin/wwwcore.lib ../Libwww/bin/wwwapp.lib = ../Libwww/bin/wwwinit.lib ../Libwww/bin/wwwutils.lib # GD distribution (graphics library GIF and/or PNG support). (REQUIRED) # # - Version 1.2 is included and writes LZW GIF (-DUSE_GD_GIF = -DUSE_GD_SWAP_XY). # - Versions 1.3 to 1.5 write non-LZW GIF (-DUSE_GD_GIF). # - Versions 1.6 and greater write PNG (-DUSE_GD_PNG). Add -lpng -lz = to GD_LIB line. # - Versions 1.8 (or was it 1.7?) also supports JPEG and WBMP = (-DUSE_GD_JPEG -DUSE_GD_WBMP) # # The following lines will compile GD 1.2: #GDFONT_OBJ=3D gd-1.2/gdfontt.obj gd-1.2/gdfonts.obj gd-1.2/gdfontmb.obj = \ # gd-1.2/gdfontl.obj gd-1.2/gdfontg.obj #GD_INC=3D -I./gd-1.2 #GD_LIB=3D gd-1.2/gd.lib #GD=3D -DUSE_GD_GIF -DUSE_GD_SWAP_XY #MAKE_GD=3Dgd # A patched version of GD that supports GIF, JPEG, PNG and WBMP can be=20 # downloaded from http://www.rime.com.au/gd/. # The following defns will include the patched GD 1.8.4 with TTF: GDFONT_OBJ=3D GD_INC=3D -I../gd-1.8.4 GD_LIB=3D ../gd-1.8.4/gd.lib \ ../jpeg-6b/libjpeg.lib \ ../libpng-1.0.8/libpng.lib \ ../zlib-1.1.3/zlibstat.lib ../freetype/lib/freetype.lib GD=3D -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP = -DUSE_GD_TTF \ -DUSE_GD_TTF -DGD_HAS_GDIMAGEGIFPTR MAKE_GD=3Dgd # TIFF distribution (raster support for TIFF and GEOTIFF = imagery).(RECOMMENDED) #TIFF_INC=3D-I../tiff-v3.5.4/libtiff #TIFF_LIB=3D../tiff-v3.5.4/libtiff/libtiff.lib #TIFF=3D-DUSE_TIFF # JPEG distribution (raster support for grayscale JPEG images, INPUT = ONLY). #JPEG_INC=3D #JPEG_LIB=3D-ljpeg #JPEG=3D-DUSE_JPEG # EPPL7 Support (this activates ERDAS as well) Included in the = distribution. Probably the best raster alternative if # you've got EPPL7 laying around. See http://www.lmic.state.mn.us/ for = more information. (RECOMMENDED) EPPL=3D-DUSE_EPPL EPPL_OBJ=3Depplib.obj # OGR Support OGC Simple Feature inspired interface for vector # formats. See http://gdal.velocet.ca/projects/opengis/ GDAL_DIR=3D ..\gdal OGR=3D-DUSE_OGR OGR_LIB =3D $(GDAL_DIR)/gdal.lib = $(GDAL_DIR)/ogr/ogrsf_frmts/ogrsf_frmts.lib = $(GDAL_DIR)/ogr/ogrsf_frmts/ogrsf_frmts_sup.lib $(GDAL_DIR)/ogr/ogr.lib = $(GDAL_DIR)/ogr/../port/cpl.lib OGR_INC =3D -I$(GDAL_DIR)/ogr/ogrsf_frmts -I$(GDAL_DIR)/ogr = -I$(GDAL_DIR)/ogr/../port -I$(GDAL_DIR)/core GDAL=3D-DUSE_GDAL # ESRI SDE support. #SDE_OPT=3D-DUSE_SDE -DWIN32 #SDE_INC=3D-I../arcsde/include #SDE_LIB=3D../arcsde/lib/sde80.lib ../arcsde/lib/sg80.lib = ../arcsde/lib/pe80.lib # # UofMN GIS/Image Processing Extension (very experimental) # #EGIS=3D-DUSE_EGIS #ERR_OBJ=3D./errLog/errLog.o #ERR_INC=3D-I./errLog #ERR_LIB=3D-L./errLog -lerrLog #IMGGEN_OBJ=3D./imgSrc/imgLib.o #IMGGEN_INC=3D-I./imgSrc #IMGGEN_LIB=3D-L./imgSrc -limgGEN #ECWDIR=3D C:\ProgFile\ECW_SDK #ECW_LIB=3D$(ECWDIR)\lib\NCSEcw.lib $(ECWDIR)\lib\NCSEcwC.lib \ # $(ECWDIR)\lib\NCSUtil.lib # # VC++ does not include the REGEX library... so we must provide our one. # The following definitions will try to build GNU regex-0.12 located in = the # regex-0.12 sub-directory. # If it was not included in the source distribution, then you can get it = from: # ftp://ftp.gnu.org/pub/gnu/regex/regex-0.12.tar.gz # REGEX_OBJ=3D.\regex-0.12\regex.obj REGEX_INC=3D-I./regex-0.12 # # IMPORTANT NOTE ABOUT REGEX FOR PHP_MAPSCRIPT USERS: # # If you want to compile the PHP_MAPSCRIPT module, then you have to make # MapServer uses the same version of the REGEX library that PHP was=20 # compiled with: # #PHP_REGEX=3D..\php-3.0.14\regex #PHP_REGEX=3D..\php-4.0.6\regex #PHP_REGEX=3D..\php-4.1.2\regex #PHP_REGEX=3D..\php-4.2.1\regex PHP_REGEX=3D..\php-4.2.2\regex #REGEX_OBJ=3D$(PHP_REGEX)\regcomp.obj $(PHP_REGEX)\regerror.obj \ # $(PHP_REGEX)\regexec.obj $(PHP_REGEX)\regfree.obj #REGEX_INC=3D-I$(PHP_REGEX) -DPHP_NO_ALIASES # # REGEX needs some special flags... here they are for VC++ 6.0 # REGEX_OPT=3D-DHAVE_STRING_H -DREGEX_MALLOC # # --- You shouldn't have to edit anything else. --- # # # Main MapServer library. # MS_LIB =3D mapserver.lib MS_OBJS =3D mapbits.obj maphash.obj mapshape.obj mapxbase.obj \ mapparser.obj maplexer.obj mapindex.obj maptree.obj \ mapsearch.obj mapstring.obj mapsymbol.obj mapfile.obj \ maplegend.obj maputil.obj mapscale.obj mapquery.obj \ maplabel.obj maperror.obj mapprimitive.obj mapproject.obj\ mapraster.obj cgiutil.obj mapsde.obj mapogr.obj \ maptemplate.obj mappostgis.obj maplayer.obj mapresample.obj \ mapwms.obj mapwmslayer.obj mapgml.obj maporaclespatial.obj \ mapprojhack.obj \ $(EPPL_OBJ) $(REGEX_OBJ) MS_HDRS =3D map.h mapfile.h MS_EXE =3D mapserv.exe \ shp2img.exe legend.exe \ shptree.exe scalebar.exe sortshp.exe tile4ms.exe # # # LIBS =3D $(MS_LIB) $(GD_LIB) $(TIFF_LIB) $(JPEG_LIB) \ $(PROJ_LIB) $(ERR_LIB) $(IMGGEN_LIB) $(OGR_LIB) \ $(WWWLIB_LIB) $(ECW_LIB) INCLUDES =3D $(GD_INC) $(TIFF_INC) $(JPEG_INC) \ $(PROJ_INC) $(ERR_INC) $(IMGGEN_INC) $(REGEX_INC) $(OGR_INC) \ $(WWWLIB_INC) CFLAGS =3D $(BASE_CFLAGS) $(INCLUDES) $(REGEX_OPT) $(STRINGS) \ $(EPPL) $(PROJ) $(TIFF) $(JPEG) $(GD) $(OGR) $(WMS) $(WMSCLIENT) \ $(IGNORE_MISSING_DATA) $(GDAL) -DFEATURE_INFO_HTML default: all all: $(MS_LIB) $(MS_EXE) $(MS_OBJS): $(MS_HDRS) $(MS_LIB): $(MS_OBJS) copy $(GDAL_DIR)\gdal.pdb . lib /out:$(MS_LIB) $(MS_OBJS) $(MS_EXE): $(LIBS) #gd:: # cd gd-1.2 # nmake /f makefile.nt OPTFLAGS=3D"$(OPTFLAGS)" # cd .. .c.obj:=20 $(CC) $(CFLAGS) /c $*.c /Fo$*.obj .cpp.obj:=20 $(CC) $(CFLAGS) /c $*.cpp /Fo$*.obj .c.exe: $(CC) $(CFLAGS) /c $*.c /Fo$*.obj $(LINK) $(LDFLAGS) $*.obj $(LIBS) .cpp.exe: $(CC) $(CFLAGS) /c $*.cpp /Fo$*.obj $(LINK) $(LDFLAGS) $*.obj $(LIBS) clean: del *.obj # del $(REGEX_OBJ) del $(MS_LIB) del $(MS_EXE) del *.pdb del *.exp del *.ilk # cd gd-1.2 # nmake -f makefile.nt clean # cd .. # ------------------------------------ End of file "Makefile.vc" = ----------------------------------------------- ----- Original Message -----=20 From: Becher, Richard=20 To: Mapserver-users@lists.gis.umn.edu=20 Sent: Monday, May 05, 2003 9:51 AM Subject: [Mapserver-users] OracleSpatial switches to = include...(correction) Attempting to compile Mapserver with OracleSpatial (Oracle 8i) =20 Can someone help me determine what the entry should look like in the = Makefile.vc file? Also, I was hoping to get a handle on what Files/directories I need to reference. =20 Help is greatly appreciated! =20 Running WinXP, IIS 5, Mapserver 3.7 (latest) and PHP 4.3.2RC2 for = win32.... =20 =20 Cheers, =20 Richard Becher Sierra Systems 130 Slater Street, Suite 800 Ottawa, Ontario K1P 6E2 Phone: 613.236.7888, Extension: 350 Fax: 613.236.9333 Email: RichardBecher@SierraSystems.com www.SierraSystems.com =20 =20 ------=_NextPart_000_0053_01C31313.8EC83E20 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi Richard,
 
The entire file "Makefile.vc" it's=20 here.
 
PS: Modify ORACLESPATIAL_HOME with = the your=20 oracle home path.
 
Regards,
Jesiel de Souza
 
#=20 -------------------------------------- Begin of file "Makefile.vc"=20 ------------------------------------------------
 
#
# makefile.vc - = Main MapServer=20 makefile for MSVC++
#
# This VC++ makefile will build = MAPSERVER.LIB,=20 MAPSERV.EXE, and the other
# MapServer command-line = programs.
#
# To=20 use the makefile:
#  - Open a DOS prompt window
#  - Run = the=20 VCVARS32.BAT script to initialize the VC++ environment = variables
#  -=20 Start the build with:  nmake /f makefile.vc
#
# $Id: = Makefile.vc,v=20 1.21.2.1 2002/08/01 14:46:45 assefa Exp $
#
 
OPTFLAGS = =3D /nologo /Zi /W3=20 /DDEBUG /DWIN32
#OPTFLAGS =3D /nologo /Zi
BASE_CFLAGS =3D=20  $(OPTFLAGS)
LDFLAGS =3D /NODEFAULTLIB:libcd = /DEBUG
 
CC=3D    =20 cl
LINK=3D   link /debug
 
#
# If you want to = ignore missing=20 datafile errors uncomment the following
# line. This is especially = useful=20 with large tiled datasets that may not
# have complete data for each=20 tile.
#
IGNORE_MISSING_DATA=3D-DIGNORE_MISSING_DATA
 
#
# Apparently these = aren't as=20 commonplace as I'd hoped. Edit the
# following line to reflect the = missing=20 functions on your platform.
#
#STRINGS=3D-DNEED_STRCASECMP=20 -DNEED_STRNCASECMP -DNEED_STRDUP
STRINGS=3D-DNEED_STRCASECMP=20 -DNEED_STRNCASECMP
 
# Proj.4 distribution = (cartographic=20 projection routines). Not required for normal use.=20 (EXPERIMENTAL)
PROJ_LIB=3D../proj/src/proj.lib
PROJ_INC=3D-I../proj= /src
PROJ=3D-DUSE_PROJ=20 -DUSE_PROJ_API_H
 
#Use this flag to = compile with WMS=20 support
WMS=3D-DUSE_WMS
 
#Use this flag to = compile with=20 WMS Client support
#you need the libwww from
http://www.w3.org/Library/.
WMSCLIENT=3D -DUSE_WMS_LYR
 
WWWLIB_INC=3D-I../Libwww/library/src=20 -I../libwww/modules/expat/xmlparse
WWWLIB_LIB=3D../Libwww/bin/wwwcore.= lib=20 ../Libwww/bin/wwwapp.lib ../Libwww/bin/wwwinit.lib=20 ../Libwww/bin/wwwutils.lib
 
# GD distribution = (graphics library=20 GIF and/or PNG support). (REQUIRED)
#
#   - Version 1.2 = is=20 included and writes LZW GIF (-DUSE_GD_GIF = -DUSE_GD_SWAP_XY).
#   -=20 Versions 1.3 to 1.5 write non-LZW GIF (-DUSE_GD_GIF).
#   - = Versions 1.6 and greater write PNG (-DUSE_GD_PNG). Add -lpng -lz to = GD_LIB=20 line.
#   - Versions 1.8 (or was it 1.7?) also supports = JPEG and=20 WBMP (-DUSE_GD_JPEG -DUSE_GD_WBMP)
#
# The following lines will = compile GD=20 1.2:
#GDFONT_OBJ=3D gd-1.2/gdfontt.obj gd-1.2/gdfonts.obj=20 gd-1.2/gdfontmb.obj \
#  gd-1.2/gdfontl.obj=20 gd-1.2/gdfontg.obj
#GD_INC=3D -I./gd-1.2
#GD_LIB=3D gd-1.= 2/gd.lib
#GD=3D=20 -DUSE_GD_GIF -DUSE_GD_SWAP_XY
#MAKE_GD=3Dgd
 
# A patched = version of GD that=20 supports GIF, JPEG, PNG and WBMP can be
# downloaded from
http://www.rime.com.au/gd/.
# The following defns will include the patched GD = 1.8.4 with=20 TTF:
GDFONT_OBJ=3D
GD_INC=3D -I../gd-1.8.4
GD_LIB=3D .= ./gd-1.8.4/gd.lib=20 \
        ../jpeg-6b/libjpeg.lib=20 \
        = ../libpng-1.0.8/libpng.lib=20 \
 ../zlib-1.1.3/zlibstat.lib=20 ../freetype/lib/freetype.lib
GD=3D     = -DUSE_GD_GIF=20 -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF = \
 -DUSE_GD_TTF=20 -DGD_HAS_GDIMAGEGIFPTR
MAKE_GD=3Dgd
 
# TIFF distribution = (raster support=20 for TIFF and GEOTIFF=20 imagery).(RECOMMENDED)
#TIFF_INC=3D-I../tiff-v3.5.4/libtiff
#TIFF_L= IB=3D../tiff-v3.5.4/libtiff/libtiff.lib
#TIFF=3D-DUSE_TIFF
 
# JPEG distribution = (raster support=20 for grayscale JPEG images, INPUT=20 ONLY).
#JPEG_INC=3D
#JPEG_LIB=3D-ljpeg
#JPEG=3D-DUSE_JPEG
=
 
# EPPL7 Support = (this activates=20 ERDAS as well) Included in the distribution. Probably the best raster=20 alternative if
# you've got EPPL7 laying around. See
http://www.lmic.state.mn.us/ for more information.=20 (RECOMMENDED)
EPPL=3D-DUSE_EPPL
EPPL_OBJ=3Depplib.obj
=
 
# OGR Support OGC = Simple=20 Feature inspired interface for vector
# formats.  See
http://gdal.velocet.ca/= projects/opengis/
GDAL_DIR=3D ..\gdal
OGR=3D-DUSE_OGR
OGR_LIB = =3D =20 $(GDAL_DIR)/gdal.lib $(GDAL_DIR)/ogr/ogrsf_frmts/ogrsf_frmts.lib=20 $(GDAL_DIR)/ogr/ogrsf_frmts/ogrsf_frmts_sup.lib $(GDAL_DIR)/ogr/ogr.lib=20 $(GDAL_DIR)/ogr/../port/cpl.lib
OGR_INC =3D = -I$(GDAL_DIR)/ogr/ogrsf_frmts=20 -I$(GDAL_DIR)/ogr -I$(GDAL_DIR)/ogr/../port=20 -I$(GDAL_DIR)/core
 
GDAL=3D-DUSE_GDAL
 
# ESRI SDE=20 support.
#SDE_OPT=3D-DUSE_SDE=20 -DWIN32
#SDE_INC=3D-I../arcsde/include
#SDE_LIB=3D../arcsde/lib/sde= 80.lib=20 ../arcsde/lib/sg80.lib ../arcsde/lib/pe80.lib
 
#
# UofMN GIS/Image = Processing=20 Extension (very experimental)
#
#EGIS=3D-DUSE_EGIS
 
#ERR_OBJ=3D./errLog/errLog.o
#ERR_INC=3D-I./errLog
#ERR_LI= B=3D-L./errLog=20 -lerrLog
 
#IMGGEN_OBJ=3D./imgSrc/imgLib.o
#IMGGEN_INC=3D-I./imgSrc
#= IMGGEN_LIB=3D-L./imgSrc=20 -limgGEN
 
#ECWDIR=3D=20 C:\ProgFile\ECW_SDK
#ECW_LIB=3D$(ECWDIR)\lib\NCSEcw.lib=20 $(ECWDIR)\lib\NCSEcwC.lib = \
#       =20 $(ECWDIR)\lib\NCSUtil.lib
#
# VC++ does not include the REGEX = library...=20 so we must provide our one.
# The following definitions will try to = build GNU=20 regex-0.12 located in the
# regex-0.12 sub-directory.
# If it was = not=20 included in the source distribution, then you can get it=20 from:
#   
ftp://ftp.gnu.= org/pub/gnu/regex/regex-0.12.tar.gz
#
REGEX_OBJ=3D.\regex-0.12\regex.obj
REGEX_INC=3D-I= ./regex-0.12
 
#
# IMPORTANT NOTE = ABOUT REGEX FOR=20 PHP_MAPSCRIPT USERS:
#
# If you want to compile the PHP_MAPSCRIPT = module,=20 then you have to make
# MapServer uses the same version of the REGEX = library=20 that PHP was
# compiled=20 with:
#
#PHP_REGEX=3D..\php-3.0.14\regex
#PHP_REGEX=3D..\php-4.0= .6\regex
#PHP_REGEX=3D..\php-4.1.2\regex
#PHP_REGEX=3D..\php-4.2.1\= regex
PHP_REGEX=3D..\php-4.2.2\regex
#REGEX_OBJ=3D$(PHP_REGEX)\regc= omp.obj=20 $(PHP_REGEX)\regerror.obj=20 \
#         =20 $(PHP_REGEX)\regexec.obj = $(PHP_REGEX)\regfree.obj
#REGEX_INC=3D-I$(PHP_REGEX)=20 -DPHP_NO_ALIASES
 
#
# REGEX needs some = special=20 flags... here they are for VC++ 6.0
#
REGEX_OPT=3D-DHAVE_STRING_H=20 -DREGEX_MALLOC
 
 
 
#
# --- You = shouldn't have to edit=20 anything else. ---
#
 
#
# Main MapServer=20 library.
#
MS_LIB  =3D mapserver.lib
MS_OBJS =3D=20  mapbits.obj maphash.obj mapshape.obj mapxbase.obj=20 \
  mapparser.obj maplexer.obj mapindex.obj maptree.obj=20 \
  mapsearch.obj mapstring.obj mapsymbol.obj mapfile.obj=20 \
  maplegend.obj maputil.obj mapscale.obj mapquery.obj=20 \
  maplabel.obj maperror.obj mapprimitive.obj=20 mapproject.obj\
  mapraster.obj cgiutil.obj mapsde.obj = mapogr.obj=20 \
        maptemplate.obj = mappostgis.obj=20 maplayer.obj mapresample.obj = \
       =20 mapwms.obj mapwmslayer.obj mapgml.obj maporaclespatial.obj=20 \
        mapprojhack.obj=20 \
  $(EPPL_OBJ) $(REGEX_OBJ)
 
MS_HDRS =3D  map.h = mapfile.h
 
MS_EXE =3D =  mapserv.exe=20 \
           &n= bsp;   =20 shp2img.exe legend.exe  \
  shptree.exe scalebar.exe=20 sortshp.exe tile4ms.exe
 
#
#
#
LIBS =3D $(MS_LIB) $(GD_LIB) = $(TIFF_LIB)=20 $(JPEG_LIB) \
  $(PROJ_LIB) $(ERR_LIB) $(IMGGEN_LIB) = $(OGR_LIB)=20 \
           &n= bsp;   =20 $(WWWLIB_LIB) $(ECW_LIB)
 
INCLUDES = =3D $(GD_INC) $(TIFF_INC)=20 $(JPEG_INC) \
  $(PROJ_INC) $(ERR_INC) $(IMGGEN_INC) = $(REGEX_INC)=20 $(OGR_INC)=20 \
           &n= bsp;   =20 $(WWWLIB_INC)
 
CFLAGS = =3D $(BASE_CFLAGS)=20 $(INCLUDES) $(REGEX_OPT) $(STRINGS)  \
  $(EPPL) = $(PROJ)=20 $(TIFF) $(JPEG) $(GD) $(OGR) $(WMS) $(WMSCLIENT)=20 \
           &n= bsp;   =20 $(IGNORE_MISSING_DATA) $(GDAL) -DFEATURE_INFO_HTML
 
default: =  all
 
all:  $(MS_LIB)=20 $(MS_EXE)
 
$(MS_OBJS): $(MS_HDRS)
 
$(MS_LIB): $(MS_OBJS)
 copy $(GDAL_DIR)\gdal.pdb=20 .
 lib /out:$(MS_LIB) $(MS_OBJS)
 
$(MS_EXE): $(LIBS)
 
#gd::
# cd=20 gd-1.2
# nmake /f makefile.nt = OPTFLAGS=3D"$(OPTFLAGS)"
# cd=20 ..
 
.c.obj: 
 $(CC)=20 $(CFLAGS) /c $*.c /Fo$*.obj
 
.cpp.obj: 
 $(CC)=20 $(CFLAGS) /c $*.cpp /Fo$*.obj
 
.c.exe:
 $(CC) = $(CFLAGS) /c=20 $*.c /Fo$*.obj
 $(LINK) $(LDFLAGS) $*.obj $(LIBS)
 
.cpp.exe:
 $(CC) $(CFLAGS) /c=20 $*.cpp /Fo$*.obj
 $(LINK) $(LDFLAGS) $*.obj $(LIBS)
 

clean:
 del *.obj
# del=20 $(REGEX_OBJ)
 del $(MS_LIB)
 del $(MS_EXE)
 del=20 *.pdb
 del *.exp
 del *.ilk
# cd = gd-1.2
# nmake=20 -f makefile.nt clean
# cd ..
 
# ------------------------------------ End of = file=20 "Makefile.vc" = -----------------------------------------------
 
----- Original Message -----
From:=20 Becher, Richard =
To: Mapserver-users@lists.g= is.umn.edu=20
Sent: Monday, May 05, 2003 9:51 = AM
Subject: [Mapserver-users] = OracleSpatial=20 switches to include...(correction)

Attempting to compile = Mapserver=20 with OracleSpatial (Oracle 8i)

 

Can someone help me = determine what=20 the entry should look like in the Makefile.vc file?  Also, I was hoping to get a = handle on=20 what

Files/directories I need = to=20 reference=85

 

Help is greatly=20 appreciated!

 

Running=20 WinXP, IIS 5, = Mapserver=20 3.7 (latest) and PHP 4.3.2RC2 for = win32....

 

 

Cheers,

 

Richard=20 Becher

Sierra=20 Systems
130 Slater=20 Street, Suite 800
Ottawa,=20 Ontario=20 K1P=20 6E2
Phone:=20 613.236.7888, Extension: 350

Fax:=20 613.236.9333
Email:=20 RichardBecher@SierraSystems.com
www.SierraSystems.com

 

 

------=_NextPart_000_0053_01C31313.8EC83E20-- From gayathri@ou.edu Mon May 5 18:33:38 2003 From: gayathri@ou.edu (Swaminathan, Gayathri) Date: Mon, 5 May 2003 12:33:38 -0500 Subject: [Mapserver-users] rojection library error. no system list, er rno: 2 Message-ID: Benjamin, See if this is useful http://lists.gis.umn.edu/pipermail/mapserver-users/2003-January/000540.html ~Gayathri -----Original Message----- From: Benjamin Thelen [mailto:benjamin.thelen@ccgis.de] Sent: Monday, May 05, 2003 10:21 AM To: mapserver-users@lists.gis.umn.edu Subject: RE: [Mapserver-users] rojection library error. no system list, errno: 2 Hi everybody, I found something what Daniel Morrissette wrote some time ago: ---------------------------------------------------------------------- This happens if the file "epsg" is missing in the proj directory (/usr/local/share/proj/epsg on Unix), or if you try to use an epsg:XXXX code that doesn't exist in that file. ---------------------------------------------------------------------- But, both is not true in my case. The epsg-file IS there and the epsg:XXXX I specified are in the epsg-file. And here something that Frank Warmerdam wrote: ------------------------------------------------------------------------ errno = 2 is ENOENT which means file not found. Sorry for the awful error message, but basically I think the epsg file isn't found. Please ensure that the PROJ_LIB environment variable points to the directory with the EPSG file in it. On unix this is normally installed into /usr/local/share/proj, and it is in the nad directory within the proj distribution. ------------------------------------------------------------------------ I set the environment variable PROJ_LIB directly in a shell: "set PROJ_LIB=/usr/local/share/proj". But that didn't help as well. I thought it could be something with file permissions, but I don't think, proj4 is not allowed to access its own files. I have no more ideas at the moment. Anybody another idea? Sorry for my three mails. I was a bit to fast writing to the list. Thanks, Benjamin > -----Original Message----- > From: mapserver-users-admin@lists.gis.umn.edu > [mailto:mapserver-users-admin@lists.gis.umn.edu]On Behalf Of Benjamin > Thelen > Sent: Monday, May 05, 2003 5:57 PM > To: mapserver-users@lists.gis.umn.edu > Subject: [Mapserver-users] rojection library error. no system list, > errno: 2 > > > Hi everybody, > > after days of work, umn-mapserver is nearly running on my FreeBSD 4.7 > System. I think I'll post what was neccessary to have > umn-mapserver running > on FreeBSD. Maybe that is something for a FAQ or even the manual. > > > But there are finally two problems. One is still the pdf-lib and the other > one is here: > > > > > http://servername/cgi-bin/mapserv?wmtver=1.0.0&map=/home/umn/test1 > .map&reque > st=capabilities > > responds the following: > > > ------------------------------------------------------------------ > --------- > - > - > MapServer Message > > - > msProcessProjection(): Projection library error. > no system list, errno: 2 > > ------------------------------------------------------------------ > --------- > > > ./configure was successful, even with proj4. If needed I'll provide the > options and output as well as the output of make of course. > > > Anybody an idea? Where can this system list be found? What's its > name? Can I > somehow check the installation of proj4? > > > I have installed > > FreeBSD 4.7 > > out of the ports-collection > apache 1.3.27 > php 4.3.1 > proj 4.4.5 > gd-2.0.11 > gdal-1.1.8 > libWWW-5.4.0 > > directly from source code of course > mapserver 3.6.5 > > > Thanks, > Benjamin > > > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From warmerdam@pobox.com Mon May 5 18:37:53 2003 From: warmerdam@pobox.com (Frank Warmerdam) Date: Mon, 05 May 2003 13:37:53 -0400 Subject: [Mapserver-users] rojection library error. no system list, errno: 2 In-Reply-To: References: Message-ID: <3EB6A171.5010704@pobox.com> Benjamin Thelen wrote: > I set the environment variable PROJ_LIB directly in a shell: > "set PROJ_LIB=/usr/local/share/proj". > But that didn't help as well. > > > > I thought it could be something with file permissions, but I don't think, > proj4 is not allowed to access its own files. I have no more ideas at the > moment. Anybody another idea? > Sorry for my three mails. I was a bit to fast writing to the list. Benjamin, I haven't traced through everything you have tried, but permissions can certainly be an issue under some circumstances. Note that PROJ only has the permission available to the cgi-bin process it is called from when used in a web environment. So if your webserver runs cgi-bin programs as "nobody" please verify that the nobody user has read permissions on /usr/local/share/proj/epsg. You should also verify that things work fine in your commandline environment. For instances, does shp2img work on your map? Does proj? Try this: warmerda@gdal2200[90]% setenv PROJ_DEBUG warmerda@gdal2200[91]% proj -v +init=epsg:27700 pj_open_lib(epsg): call fopen(/usr/local/share/proj/epsg) - succeeded #Transverse Mercator # Cyl, Sph&Ell # +init=epsg:27700 +proj=tmerc +lat_0=49 +lon_0=-2 +k=0.999601 +x_0=400000 # +y_0=-100000 +ellps=airy +units=m +no_defs Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From steve.lime@dnr.state.mn.us Mon May 5 18:38:10 2003 From: steve.lime@dnr.state.mn.us (Steve Lime) Date: Mon, 05 May 2003 12:38:10 -0500 Subject: [Mapserver-users] Fwd: Php-MapScript on Windows, postGIS on Solaris Message-ID: Return-path: Received: from mail.state.mn.us (state.mn.us [156.99.125.109]) by co5.dnr.state.mn.us; Mon, 05 May 2003 08:08:33 -0500 Return-Path: Received: from lists.gis.umn.edu (lists.gis.umn.edu [128.101.73.109]) by mail.state.mn.us with ESMTP for steve.lime@dnr.state.mn.us; Mon, 5 May 2003 08:08:33 -0500 Received: from hotmail.com (f89.law8.hotmail.com [216.33.241.89]) by lists.gis.umn.edu (8.12.9/8.12.6) with ESMTP id h45D8pHg002145 for ; Mon, 5 May 2003 08:08:51 -0500 (CDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 5 May 2003 06:08:27 -0700 Received: from 193.48.73.124 by lw8fd.law8.hotmail.msn.com with HTTP; Mon, 05 May 2003 13:08:26 GMT X-Originating-IP: [193.48.73.124] X-Originating-Email: [chewbizz@hotmail.com] From: "W. Steph" To: mapserver-bugs@lists.gis.umn.edu Subject: Php-MapScript on Windows, postGIS on Solaris Date: Mon, 05 May 2003 13:08:26 +0000 Message-Id: X-OriginalArrivalTime: 05 May 2003 13:08:27.0308 (UTC) FILETIME=[6ABE96C0:01C31307] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Hello all ! Here is my problem : I have a large database in shapefiles, that i successfully exported to my PostGIS database on Solaris 8. And i can access to my data using php-mapscript with postgis support on Windows. But i also have rasters in Tiff format, which are still on Windows. My problem is that i can't display these rasters because my mapscript version does not have Tiff files support. So i see 2 solutions : 1) Get a php mapscript (version 3.6 or older) for windows (dll) with at least the following features : - PostGIS support - Tiff input - ShapeFiles input - Gif output I already have a version with input=postgis but without input=tiff and another version with input=tiff but without input=postgis :/ 2) Seems to be better if possible : Put my Tiff files directly into my postGis database, but i don't know if doing something like that is possible. (This way, i won't have anymore data on my Windows computer :D ) Note that my raster files are tiled with a shapefile (using gdaltindex.exe) Thank you ! (And sorry for my bad English...) W. Steph _________________________________________________________________ Hotmail : un compte GRATUIT qui vous suit partout et tout le temps ! http://g.msn.fr/FR1000/9493 From Tom.Kralidis@CCRS.NRCan.gc.ca Mon May 5 18:43:24 2003 From: Tom.Kralidis@CCRS.NRCan.gc.ca (Tom.Kralidis@CCRS.NRCan.gc.ca) Date: Mon, 5 May 2003 13:43:24 -0400 Subject: [Mapserver-users] Mapplet - show x/y coordinates on moving Message-ID: <7CDD7B94357FD5119E800002A537C46E04FA1F90@s5-ccr-r1.ccrs.nrcan.gc.ca> > -----Original Message----- > From: Eduardo Patto Kanegae [mailto:eduardo@linkgeo.com.br] > Sent: Monday, May 05, 2003 1:31 PM > To: Mapserver List > Subject: [Mapserver-users] Mapplet - show x/y coordinates on moving > > > I've that Mapplet has a 'verbose' param that makes the applet > return the current x/y mouse position in image > coordinates. > You can check out: http://www.kralidis.ca/gis/mapserv/mapplet/howto.htm > Does anybody has a function to transformate it to geographic > coordinates? > Something like this works in JavaScript, although it has problems recognizing hemispheres. xval = Number([minx] + (x * (Math.abs([minx]) - Math.abs(([maxx]))) / [mapwidth])); yval = Number([maxy] - (y * (Math.abs([maxy]) - Math.abs(([miny]))) / [mapheight])); I think there is a more robust formula in the MapServer code. ..Tom ================================= Tom Kralidis Systems Scientist Canada Centre for Remote Sensing Tel: +01-613-947-1828 http://www.cgdi.ca/ ================================= > tks > > mapplet_mouse_moved > > Eduardo Patto Kanegae > Consultor GeoTI / GeoIT Consultant > eduardo@linkgeo.com.br > http://www.linkgeo.com.br > LinkGEO - Geoprocessamento & Webmapping / LinkGEO - > Geoprocessing & Webmapping > > *************************************** > ***Fim da Mensagem / End of Message *** > *************************************** > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From jesiel@cttmar.univali.br Mon May 5 22:36:50 2003 From: jesiel@cttmar.univali.br (Jesiel de Souza) Date: Mon, 5 May 2003 18:36:50 -0300 Subject: [Mapserver-users] Oracle Spatial Reference Message-ID: <011701c3134e$707812c0$1f36a9c8@cttmar.univali.br> This is a multi-part message in MIME format. ------=_NextPart_000_0114_01C31335.4AE7B740 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, For those who use the Oracle Spatial, the link below points to the = complete official reference: http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/appdev.= 920/a96630.pdf ps: You must register (for free) on OTN in order to download the file. Regards, Jesiel de Souza ------=_NextPart_000_0114_01C31335.4AE7B740 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all,
 
For those who use = the Oracle=20 Spatial,  the link=20 below points to the complete official reference:
 
http://otn.oracle.com/docs/products/oracle9i/doc_= library/release2/appdev.920/a96630.pdf
 
ps: You must register (for free) on OTN = in order to=20 download the file.
 
Regards,
Jesiel de Souza
 
------=_NextPart_000_0114_01C31335.4AE7B740-- From Ellen.Brachmann@LVERMAP.brandenburg.de Tue May 6 09:28:56 2003 From: Ellen.Brachmann@LVERMAP.brandenburg.de (Brachmann, Ellen) Date: Tue, 6 May 2003 10:28:56 +0200 Subject: [Mapserver-users] displaying lat/long maps Message-ID: <47E1D354A19DD311BA2600105A4234F40221F156@ntsv3.lvap.kvv-bb.de> Hi all, I've got a problem displaying lat/long maps. I tested a lot, but no result (filled map or exception). The specific part of the MAP file is: ------------ NAME BRANDENBURG STATUS ON SIZE 200 200 SYMBOLSET "symbols/line.sym" FONTSET "fonts/fonts.txt" EXTENT 11.25 51.30 14.80 53.60 UNITS dd SHAPEPATH "geo" TRANSPARENT ON PROJECTION "proj=latlong" "ellps=WGS84" END WEB TEMPLATE map.html MINSCALE 1 MAXSCALE 150000000 IMAGEPATH "... IMAGEURL "... METADATA "wms_title" "... "wms_abstract" "... "wms_onlineresource" "http://10.133.4.212:81/cgi-bin/mapserv?map=wms/GEOdnm100.map" "wms_srs" "EPSG:4326" "wms_fees" "... "wms_keywordlist" "... END END LAYER METADATA "wms_title" "Brandenburg" "wms_srs" "EPSG:4326" END NAME state MINSCALE 1 MAXSCALE 150000000 TYPE POLYGON DATA geo_dnmvg_kreis STATUS default CLASSITEM 'LANDKREIS' CLASS NAME "Brandenburg" EXPRESSION /./ COLOR 255 255 224 OUTLINECOLOR 0 0 0 END PROJECTION "proj=latlong" END END ... ------------ What Did I wrong ? The mapserver-parameters are: MapServer version 3.6.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE Regards Ellen From bon@ivv-aachen.de Tue May 6 10:05:37 2003 From: bon@ivv-aachen.de (=?iso-8859-1?Q?Nicole_B=F6meke?=) Date: Tue, 6 May 2003 11:05:37 +0200 Subject: AW: [Mapserver-users] execute two querys at the same time In-Reply-To: <3EB66DDF.5080304@frw.uva.nl> Message-ID: <001101c313ae$a962af40$1a01a8c0@ivvaachen.de> Hello Jan, I don't know wich selection will be needed befor someone sends a request. I'm using the mapserver to display the route from a starting point to an ending point specified in the request. All combinations of points in my layer are valid - that makes 365816 different possibilities for the selection. Therefor I use a query to mark the selection. See: http://www.stadtinfokoeln.de Bus & Bahn - Fahplanauskunft KVB (specify a station i.e. "Köln - Zoo" to "Köln - Hauptbahnhof" and choose "Karte") Now I want to mark each part of the route in a different color depending on the means of transport (bus, train, car, ...) to be used. Nicole ------------------------------------ Nicole Bömeke Ingenieurgruppe IVV Oppenhoffallee 171 52066 Aachen Tel.: 0241-94691-76 Fax: 0241-531622 e-mail: bon@ivv-aachen.de http://www.ivv-aachen.de -----Ursprüngliche Nachricht----- Von: mapserver-users-admin@lists.gis.umn.edu [mailto:mapserver-users-admin@lists.gis.umn.edu]Im Auftrag von Jan Hartmann Gesendet: Montag, 5. Mai 2003 15:58 An: mapserver-users@lists.gis.umn.edu Betreff: Re: [Mapserver-users] execute two querys at the same time Nicole, Aren't you making it very difficult for yourself? If you just want to display assorted selections with different colors, you can use CLASS expressions within layers. To display selections from several layers, you can define classes for each layer and display all layers transparently (see OUTPUTFORMAT). Queries are only needed when you want to process additional data from the selected items. Templates for these can be provided at CLASS and LAYER level. Jan Nicole Bömeke wrote: > Hello list, > > is it possible to execute two or more querys > over different layers at the same time > and mark the query results in different colors? > > If yes, how can I define more than one qlayer? > And where can I determin the hilite color > for the query result of each layer? > > To execute a query I'm using the following code: > > template file: > ------------------ > > > > > value="/0000156946|0000156957|0000156955|0000156956/"> > > mapfile: > ----------- > > QUERYMAP > STATUS ON > STYLE HILITE > COLOR 255 0 255 > END > > LAYER > NAME "rqF" > DATA "gesamt_fgo" > STATUS OFF > TYPE LINE > FILTERITEM "sStrNr" > FILTER "%map_rqF_filter%" > CLASS > NAME "rqF" > SYMBOL "circle" > SIZE 6 > TEMPLATE "empty.html" > END > FOOTER "rrt_query_mode.html" > END > > Nicole > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From christina.biakowski@ccgis.de Tue May 6 10:28:31 2003 From: christina.biakowski@ccgis.de (Christina Biakowski (CCGIS)) Date: Tue, 6 May 2003 11:28:31 +0200 Subject: AW: [Mapserver-users] displaying lat/long maps In-Reply-To: <47E1D354A19DD311BA2600105A4234F40221F156@ntsv3.lvap.kvv-bb.de> Message-ID: Ellen, in my Mapfile (for WGS84) it works with defining PROJECTION "init=EPSG:4326" END in the Map- and in the Layer-Section. If your map is not composed of Layers with different Spatial Reference Systems (no on-the-fly-projection) you even can omit the Projection-tag. But if e.g. your Layer "Brandenburg" was in Gauss-Krüger 4 and you wanted to display it in WGS84, then in the Map-Section you would have to declare .."init=EPSG:4326".. and in the Layer-Section "init=EPSG:31494". I hope this helps! Best regards, Christina -----Ursprüngliche Nachricht----- Von: mapserver-users-admin@lists.gis.umn.edu [mailto:mapserver-users-admin@lists.gis.umn.edu]Im Auftrag von Brachmann, Ellen Gesendet: Dienstag, 6. Mai 2003 10:29 An: 'mapserver-users@lists.gis.umn.edu' Betreff: [Mapserver-users] displaying lat/long maps Hi all, I've got a problem displaying lat/long maps. I tested a lot, but no result (filled map or exception). The specific part of the MAP file is: ------------ NAME BRANDENBURG STATUS ON SIZE 200 200 SYMBOLSET "symbols/line.sym" FONTSET "fonts/fonts.txt" EXTENT 11.25 51.30 14.80 53.60 UNITS dd SHAPEPATH "geo" TRANSPARENT ON PROJECTION "proj=latlong" "ellps=WGS84" END WEB TEMPLATE map.html MINSCALE 1 MAXSCALE 150000000 IMAGEPATH "... IMAGEURL "... METADATA "wms_title" "... "wms_abstract" "... "wms_onlineresource" "http://10.133.4.212:81/cgi-bin/mapserv?map=wms/GEOdnm100.map" "wms_srs" "EPSG:4326" "wms_fees" "... "wms_keywordlist" "... END END LAYER METADATA "wms_title" "Brandenburg" "wms_srs" "EPSG:4326" END NAME state MINSCALE 1 MAXSCALE 150000000 TYPE POLYGON DATA geo_dnmvg_kreis STATUS default CLASSITEM 'LANDKREIS' CLASS NAME "Brandenburg" EXPRESSION /./ COLOR 255 255 224 OUTLINECOLOR 0 0 0 END PROJECTION "proj=latlong" END END ... ------------ What Did I wrong ? The mapserver-parameters are: MapServer version 3.6.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE Regards Ellen _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From thfischer@mapmedia.de Tue May 6 12:45:54 2003 From: thfischer@mapmedia.de (Thorsten Fischer) Date: 06 May 2003 13:45:54 +0200 Subject: [Mapserver-users] layer for user points choking mapserv 3.6.3. In-Reply-To: <5.2.0.9.0.20030502161055.021e0d18@marilyn.barrodale.com> References: <5.2.0.9.0.20030502161055.021e0d18@marilyn.barrodale.com> Message-ID: <1052221554.306.61.camel@jeanjacques> On Sat, 2003-05-03 at 01:19, Eric Davies wrote: [snip] > CLASS > Name "reddot" > COLOR 255 0 0 > SYMBOL "circle" > SIZE 1 1 ^^^ > END # CLASS > END # LAYER The SIZE of a symbol in a class is only one digit, not two. MapServer reads SIZE 1 and then looks for the the next keyword (or 'identifier'), which appears to be another '1': > loadClass(): Unknown identifier. (1):(212) hth, thorsten From jhart@frw.uva.nl Tue May 6 11:08:01 2003 From: jhart@frw.uva.nl (Jan Hartmann) Date: Tue, 06 May 2003 12:08:01 +0200 Subject: AW: [Mapserver-users] execute two querys at the same time In-Reply-To: <001101c313ae$a962af40$1a01a8c0@ivvaachen.de> References: <001101c313ae$a962af40$1a01a8c0@ivvaachen.de> Message-ID: <3EB78981.1040603@frw.uva.nl> That's a nice MapServer application, Nicole! I see now why you need two different query colors. If you could use PostGIS it wouldn't be too hard. You can write wonderful routing applications with PostGIS. For standalone MapServer it looks a bit heavy to me. Can't you do something with scripted CLASS and COLOR expressions? (map_layer_class_expression / map_layer_class_color, see the MapServer CGI reference at the bottom: http://mapserver.gis.umn.edu/doc36/cgi-reference.html) You can fill these variables from the URL or form. I guess more people on the list are working on transportation problems; perhaps they have other solutions. The city of Cologne will provide a free ticket to the Zoo for the best one. Jan Nicole Bömeke wrote: > Hello Jan, > > I don't know wich selection will be needed befor someone sends a request. > I'm using the mapserver to display the route from a starting point to an > ending point specified in the request. All combinations of points in my > layer are valid - that makes 365816 different possibilities for the > selection. > Therefor I use a query to mark the selection. > > See: http://www.stadtinfokoeln.de Bus & Bahn - Fahplanauskunft KVB > > (specify a station i.e. "Köln - Zoo" to "Köln - Hauptbahnhof" and choose > "Karte") > > Now I want to mark each part of the route in a different color depending > on the means of transport (bus, train, car, ...) to be used. > > Nicole > > ------------------------------------ > Nicole Bömeke > Ingenieurgruppe IVV > Oppenhoffallee 171 > 52066 Aachen > Tel.: 0241-94691-76 > Fax: 0241-531622 > e-mail: bon@ivv-aachen.de > http://www.ivv-aachen.de > > > > > -----Ursprüngliche Nachricht----- > Von: mapserver-users-admin@lists.gis.umn.edu > [mailto:mapserver-users-admin@lists.gis.umn.edu]Im Auftrag von Jan > Hartmann > Gesendet: Montag, 5. Mai 2003 15:58 > An: mapserver-users@lists.gis.umn.edu > Betreff: Re: [Mapserver-users] execute two querys at the same time > > > Nicole, > > Aren't you making it very difficult for yourself? If you just want to > display assorted selections with different colors, you can use CLASS > expressions within layers. To display selections from several layers, > you can define classes for each layer and display all layers > transparently (see OUTPUTFORMAT). Queries are only needed when you want > to process additional data from the selected items. Templates for these > can be provided at CLASS and LAYER level. > > Jan > > > Nicole Bömeke wrote: > >>Hello list, >> >>is it possible to execute two or more querys >>over different layers at the same time >>and mark the query results in different colors? >> >>If yes, how can I define more than one qlayer? >>And where can I determin the hilite color >>for the query result of each layer? >> >>To execute a query I'm using the following code: >> >>template file: >>------------------ >> >> >> >> >>>value="/0000156946|0000156957|0000156955|0000156956/"> >> >>mapfile: >>----------- >> >> QUERYMAP >> STATUS ON >> STYLE HILITE >> COLOR 255 0 255 >> END >> >> LAYER >> NAME "rqF" >> DATA "gesamt_fgo" >> STATUS OFF >> TYPE LINE >> FILTERITEM "sStrNr" >> FILTER "%map_rqF_filter%" >> CLASS >> NAME "rqF" >> SYMBOL "circle" >> SIZE 6 >> TEMPLATE "empty.html" >> END >> FOOTER "rrt_query_mode.html" >> END >> >>Nicole >> >>_______________________________________________ >>Mapserver-users mailing list >>Mapserver-users@lists.gis.umn.edu >>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users >> > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From Mark.Balman@birdlife.org.uk Tue May 6 11:13:23 2003 From: Mark.Balman@birdlife.org.uk (Mark Balman) Date: Tue, 6 May 2003 11:13:23 +0100 Subject: [Mapserver-users] configuring mapserver with php Message-ID: Hi All Having finally got mapserver compiled on Mandrake 9 and can use the demo application ok :) I now want to configure mapserver with php mapscript. As I have php loaded as an apache DSO (default Mandrake install), I cannot work out how to configure php mapscript. If I ./configure --with-proj --with-gdal --with-ogr --with-php I get Could not find config.h or php_config.h I have read through the documentation and wiki pages but alas still clueless any suggestions would be welcomed! TIA Mark From Ellen.Brachmann@LVERMAP.brandenburg.de Tue May 6 13:01:45 2003 From: Ellen.Brachmann@LVERMAP.brandenburg.de (Brachmann, Ellen) Date: Tue, 6 May 2003 14:01:45 +0200 Subject: AW: [Mapserver-users] displaying lat/long maps Message-ID: <47E1D354A19DD311BA2600105A4234F40221F158@ntsv3.lvap.kvv-bb.de> Christina, thanks for your help. After changing the PROJECTION parameter, we got problems with the Projection (famous error no. 2). So we use the system-wrapper wms110 (with PROJ_LIB=YES) to call the mapserver. He demands the files proj_def.dat, EPSG (lib_proj itself) and epsg (mapserver), see error_log. After clearing this problems the result file is empty too (see access_log, result 200). If we delete the PROJECTION entries completly the result is the same. A shell-wrapper with different arguments tells us, that the mapserv terminates correctly. The mapserv-version 3.6.1 and 3.6.5 tells the same result, so it seems that we made the mistake. We only want to use SHAPE-files with geographic coordinates (they work with ArcView), and displaying them in ETRS89 (EPSG:25833) or alternatively geographic coordinates (EPSG:4326). Did you have an idea what's going wrong ? Regards Ellen GEOdnm100.map: ------------- NAME BRANDENBURG STATUS ON SIZE 200 200 SYMBOLSET "symbols/line.sym" FONTSET "fonts/fonts.txt" EXTENT 3240000.0 5679000.0 3490000.0 5946000.0 # EXTENT 11.25 51.30 14.80 53.60 UNITS meters SHAPEPATH "geo" PROJECTION "init=EPSG:25833" END WEB TEMPLATE map.html MINSCALE 1 MAXSCALE 150000000 IMAGEPATH "... IMAGEURL "... METADATA "wms_title" "... "wms_abstract" "... "wms_onlineresource" "http://10.133.4.212:81/cgi-bin-wms/wms110?map=wms/GEOdnm100.map" "wms_srs" "EPSG:4326,EPSG:25833" "wms_fees" "... "wms_keywordlist" "... END END LAYER METADATA "wms_title" "Brandenburg" "wms_srs" "EPSG:4326" END NAME state MINSCALE 1 MAXSCALE 150000000 TYPE POLYGON DATA geo_dnmvg_kreis STATUS default CLASSITEM 'GN' CLASS NAME "Brandenburg" EXPRESSION /./ COLOR 255 255 224 OUTLINECOLOR 0 0 0 END PROJECTION "init=EPSG:4326" END END .... wms110: ------ #!/bin/bash export LD_LIBRARY_PATH=/usr/local/lib export PROJ_DEBUG=YES export PROJ_LIB=/usr/local/httpd/cgi-bin-wms ../mapserv $* error_log: --------- .... pj_open_lib(proj_def.dat): call fopen(/usr/local/httpd/cgi-bin-wms/proj_def.dat). pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG). pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG). pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG). pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG). pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG). pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG). pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG). pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG). pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG). pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG). pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG). pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG). pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG). pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG). pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG). pj_open_lib(epsg): call fopen(/usr/local/httpd/cgi-bin-wms/epsg). access_log: ---------- 10.133.4.999 - - [06/May/2003:12:44:18 +0200] "GET /cgi-bin-wms/wms110?map=wms/GEOdnm100.map&SERVICE=WMS&V ERSION=1.1.0&REQUEST=GetMap&LAYERS=state&STYLES=default&TRANSPARENT=FALSE&FO RMAT=image/png&EXCEPTIONS=appl ication/vnd.ogc.se_inimage&SRS=EPSG:4326&WIDTH=200&HEIGHT=200&BBOX=13.205910 0,52.2080300,13.2436100,52.222 6100 HTTP/1.0" 200 144 shell_wrapper: ------------- export LD_LIBRARY_PATH=/usr/local/lib export PROJ_LIB=/usr/local/httpd/cgi-bin-wms export QUERY_STRING=$'map=wms/GEOdnm100.map&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMa p&LAYERS=state&STYLES=d efault&TRANSPARENT=FALSE&FORMAT=image/png&EXCEPTIONS=application/vnd.ogc.se_ inimage&SRS=EPSG:4326&WIDTH=20 0&HEIGHT=200&BBOX=13.2059100,52.2080300,13.2436100,52.2226100' export REQUEST_METHOD=GET mapserv > ms.out 2> ms.err echo $? > ms.result ------------------------------------------------------------------------- From thfischer@mapmedia.de Tue May 6 15:57:03 2003 From: thfischer@mapmedia.de (Thorsten Fischer) Date: 06 May 2003 16:57:03 +0200 Subject: [Mapserver-users] configuring mapserver with php In-Reply-To: References: Message-ID: <1052233023.353.4.camel@jeanjacques> On Tue, 2003-05-06 at 12:13, Mark Balman wrote: > Having finally got mapserver compiled on Mandrake 9 and can use the demo > application ok :) I now want to configure mapserver with php mapscript. As I > have php loaded as an apache DSO (default Mandrake install), I cannot work > out how to configure php mapscript. > > If I ./configure --with-proj --with-gdal --with-ogr --with-php The --with-php parameter needs to know where your (configured!) php source tree is (see ./configure --help). So you should do ./configure --with-php=/where/ever/you/put/your/php-4.x hth, thorsten From bplatzen@sosnetz.de Tue May 6 14:18:57 2003 From: bplatzen@sosnetz.de (=?iso-8859-1?q?Bj=F6rn=20Platzen?=) Date: Tue, 6 May 2003 15:18:57 +0200 Subject: [Mapserver-users] Re: [Mapserver-users][SOLUTION] Error when using labels TYPE=truetype In-Reply-To: <1051891778.325.6.camel@jeanjacques> References: <200305021116.21471.bplatzen@sosnetz.de> <1051891778.325.6.camel@jeanjacques> Message-ID: <200305061518.57884.bplatzen@sosnetz.de> Hi all, maybe someone has the same problems with Mapserver 3.6.5, GD 2.0.7 on Linux, here is the solution: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0110/msg00050.html The point is, right now, the ONLY way to really make it work is to refer fonts with a full path, like: fontset '/home/mapserv/fonts/fonts.txt' Greets, Bjoern Am Freitag, 2. Mai 2003 18:09 schrieb Thorsten Fischer: > On Fri, 2003-05-02 at 11:16, Björn Platzen wrote: > > When using TYPE=truetype on labels I get the following error: > > msGetLabelSize(): TrueType Font error. Could not find/open font > > > > I have dfined the alias in my font.list and the ttf-file is > > available in the same directory. chmod'ing the ttf-files to 755 did > > have no effect. > > This can happen for several reasons. The most common one for me is > that your GD library was not linked against the same version of > FreeType as your mapserver binary. Since your are using SuSE, it's > quite likely that you have more than one version installed. Use the > 'ldd' command to find out about the libraries your programs are > linked against. -- small office solutions info@sosnetz.de - http://www.sosnetz.de From poff@sixbit.org Tue May 6 17:57:36 2003 From: poff@sixbit.org (poff@sixbit.org) Date: Tue, 6 May 2003 18:57:36 +0200 (CEST) Subject: [Mapserver-users] Newbie php/basic ideas help! Message-ID: Hello, I managed to get php mapscript installed in Windows with the gmap demo running very nicely, however I am totally lost and after browsing the faq and docs am totally confused! Can someone give me stepby step instructions, on how, for example, to draw a simple map of the world? I'd like to take things slowly, but mapserver looks great and I look forward to using it! I really don't get where to find .map files and their formats, nor shape files or anything! I learn best by examples, although the ones I found didn't help:( SO! *If* someone could be so kind as to post some codeand files so I can just simply draw a map - anymap! Then I'd like to get into city names, rivers and all kindsofcool stuff. Is it easy to find map files? Like, The Canada onelooks great, but is that available for the whole world? Thanks for any help, poff@sixbit.org SDF Public Access UNIX System - http://sdf.lonestar.org From RichardBecher@SierraSystems.com Tue May 6 18:05:58 2003 From: RichardBecher@SierraSystems.com (Becher, Richard) Date: Tue, 6 May 2003 13:05:58 -0400 Subject: [Mapserver-users] Mapserver on Windows/IIS ? Message-ID: <8450D0E05920354D97B1507EABDCDB7F073467@svott2000.sierrasys.com> Anybody have any experience with building a Mapserver app on Windows (and IIS or Apache)? Just trying to get an idea of what anybody's thoughts are on this set up and if there have been any problems. If possible, I would really appreciate any URLs to look at those applications for myself. Cheers, Richard From ed@topozone.com Tue May 6 18:13:00 2003 From: ed@topozone.com (Ed McNierney) Date: Tue, 6 May 2003 13:13:00 -0400 Subject: [Mapserver-users] Mapserver on Windows/IIS ? Message-ID: <13858AA1A74F30419F319ACB66A9D1221F4310@mercator.topozone.com> Richard - We've been running production MapServer applications on Windows (Linux, too) for nearly two years now. We have had no trouble at all, and we've been very happy with the results. Your questions are a bit difficult to answer helpfully because they're kinda broad . If you can describe your intended application in a bit more detail, you'll get more helpful responses. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed@topozone.com (978) 251-4242 -----Original Message----- From: Becher, Richard [mailto:RichardBecher@sierrasystems.com] Sent: Tuesday, May 06, 2003 1:06 PM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Mapserver on Windows/IIS ? Anybody have any experience with building a Mapserver app on Windows (and IIS or Apache)? Just trying to get an idea of what anybody's thoughts are on this set up and if there have been any problems. If possible, I would really appreciate any URLs to look at those applications for myself. Cheers, Richard _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From gayathri@ou.edu Tue May 6 18:13:45 2003 From: gayathri@ou.edu (Swaminathan, Gayathri) Date: Tue, 6 May 2003 12:13:45 -0500 Subject: [Mapserver-users] Mapserver on Windows/IIS ? Message-ID: Hi, Mapserver on windows and IIS is a breeze. It is real easy to set it up, maintain and modify... We have had smooth operations with the same, with no pleasant surprises ;) And here is one of our application for you to look at. http://geo.ou.edu - Click on the Oklahoma Datawarehouse Interactive mapper This one runs on a Windows NT server with IIS 4.0 HTH, Gayathri -----Original Message----- From: Becher, Richard [mailto:RichardBecher@SierraSystems.com] Sent: Tuesday, May 06, 2003 10:06 AM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Mapserver on Windows/IIS ? Anybody have any experience with building a Mapserver app on Windows (and IIS or Apache)? Just trying to get an idea of what anybody's thoughts are on this set up and if there have been any problems. If possible, I would really appreciate any URLs to look at those applications for myself. Cheers, Richard _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From Rebecca.Astolfo@ec.gc.ca Tue May 6 18:24:03 2003 From: Rebecca.Astolfo@ec.gc.ca (Astolfo,Rebecca [Burlington]) Date: Tue, 6 May 2003 13:24:03 -0400 Subject: [Mapserver-users] Mapserver on Windows/IIS ? Message-ID: <2576812186CDD411BF1500508B6DCE9502F2AE2B@ECNWRI1> I'm in the middle of developing a site so nothing to show yet. We are using Windows 2000 and IIS. The set up is fairly straight forward if you understand the basics of IIS. I required some extra help but I am not an IT type. It's a bit fiddly making sure all the files are put in the right locations but once everything is set up it works well. Rebecca Astolfo GIS Specialist IT Division Environment Canada -----Original Message----- From: Becher, Richard [mailto:RichardBecher@SierraSystems.com] Sent: May 6, 2003 1:06 PM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] Mapserver on Windows/IIS ? Anybody have any experience with building a Mapserver app on Windows (and IIS or Apache)? Just trying to get an idea of what anybody's thoughts are on this set up and if there have been any problems. If possible, I would really appreciate any URLs to look at those applications for myself. Cheers, Richard _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From RichardBecher@SierraSystems.com Tue May 6 18:42:07 2003 From: RichardBecher@SierraSystems.com (Becher, Richard) Date: Tue, 6 May 2003 13:42:07 -0400 Subject: [Mapserver-users] OracleSpatial and .NET... Message-ID: <8450D0E05920354D97B1507EABDCDB7F13207C@svott2000.sierrasys.com> Hi there, I have just completed compiling everything (PHP_Mapscript and Mapserver) to include OracleSpatial. I know that PHP_Mapscript is working since I see the right results when I run phpinfo(). 1. How can I tell if OracleSpatial is properly referenced/included? I included the switch but I don't see anything in phpinfo referencing Oracle (except my environment variables). 2. Where can I get some basic documentation on how to create a simple Mapserver application to test basic data from an OracleSpatial SDO object (want to connect via an SQL like command in a Layer object)? 3. My environment is Windows/IIS, ASP.NET website (want to add a page or two for maps) and Oracle 8i with the Spatial cartridge. Anyone out there in a similar situation? If so, any hints, tips, warnings would be greatly appreciated! Cheers, Richard From bartvde@xs4all.nl Tue May 6 19:50:10 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Tue, 06 May 2003 20:50:10 +0200 Subject: [Mapserver-users] Oracle spatial Message-ID: Hi list, I have a question about the Oracle Spatial support in mapserver. There used to be (or still is) a C source file for Oracle support. But now OGR is completely integrated with mapserver, is the Oracle Spatial support from OGR used instead? Thanks, Bart From rjames57@yahoo.com Tue May 6 19:54:00 2003 From: rjames57@yahoo.com (Randy James) Date: Tue, 6 May 2003 11:54:00 -0700 (PDT) Subject: [Mapserver-users] phpinfo Message-ID: <20030506185400.77112.qmail@web12501.mail.yahoo.com> Hi I am trying to get php to work on my linux mandrake 8.2, i managed to get the php_mapscript.so compiled. When i run the test page phpinfo_mapscript.phtml i get the following error. Does any one know what it means or where i should start looking? Warning: Unable to load dynamic library '/usr/lib/php/extensions/php_mapscript.so' - /usr/lib/php/extensions/php_mapscript.so: undefined symbol: IsLocal__C19OGRSpatialReference I'm using 3.7 nightly from may 2nd Cheers Randy __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com From morissette@dmsolutions.ca Tue May 6 20:04:35 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Tue, 06 May 2003 15:04:35 -0400 Subject: [Mapserver-users] phpinfo References: <20030506185400.77112.qmail@web12501.mail.yahoo.com> Message-ID: <3EB80743.F19D3698@dmsolutions.ca> Randy James wrote: > > Warning: Unable to load dynamic library > '/usr/lib/php/extensions/php_mapscript.so' - > /usr/lib/php/extensions/php_mapscript.so: undefined symbol: > IsLocal__C19OGRSpatialReference > > I'm using 3.7 nightly from may 2nd > See: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0206/msg00385.html -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From warmerdam@pobox.com Tue May 6 20:20:46 2003 From: warmerdam@pobox.com (Frank Warmerdam) Date: Tue, 06 May 2003 15:20:46 -0400 Subject: [Mapserver-users] Oracle spatial In-Reply-To: References: Message-ID: <3EB80B0E.103@pobox.com> Bart van den Eijnden wrote: > Hi list, > > I have a question about the Oracle Spatial support in mapserver. > > There used to be (or still is) a C source file for Oracle support. But > now OGR is completely integrated with mapserver, is the Oracle Spatial > support from OGR used instead? Bart, "Normal" Oracle Spatial support in MapServer is still the built-in support implemented in maporaclespatial.cpp. Which you use depends on how you build mapserver, and OGR, and what you use in your mapfile. To use OGR based oracle spatial support you would need to use a CONNECTIONTYPE of OGR. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From bartvde@xs4all.nl Tue May 6 20:26:23 2003 From: bartvde@xs4all.nl (Bart van den Eijnden) Date: Tue, 06 May 2003 21:26:23 +0200 Subject: [Mapserver-users] Oracle spatial In-Reply-To: <3EB80B0E.103@pobox.com> References: <3EB80B0E.103@pobox.com> Message-ID: Hi list, Frank thanks for the quick answer. Which of the two options is the recommended one? Have there been any performance tests in the past? Is one implementation more elaborate than the other? Are there any future plans to not further develop one of the two options, or will they be both available in future releases? A lot of questions, I hope I get some answers. Thanks, Bart On Tue, 06 May 2003 15:20:46 -0400, Frank Warmerdam wrote: > Bart van den Eijnden wrote: >> Hi list, >> >> I have a question about the Oracle Spatial support in mapserver. >> >> There used to be (or still is) a C source file for Oracle support. But >> now OGR is completely integrated with mapserver, is the Oracle Spatial >> support from OGR used instead? > > > Bart, > > "Normal" Oracle Spatial support in MapServer is still the built-in > support > implemented in maporaclespatial.cpp. Which you use depends on how you > build mapserver, and OGR, and what you use in your mapfile. To use OGR > based oracle spatial support you would need to use a CONNECTIONTYPE of > OGR. > > Best regards, -- From warmerdam@pobox.com Wed May 7 20:15:37 2003 From: warmerdam@pobox.com (Frank Warmerdam) Date: Wed, 07 May 2003 15:15:37 -0400 Subject: [Mapserver-users] Oracle spatial References: <3EB80B0E.103@pobox.com> Message-ID: <3EB95B59.7020308@pobox.com> Bart van den Eijnden wrote: > Hi list, > > Frank thanks for the quick answer. > > Which of the two options is the recommended one? Have there been any > performance tests in the past? Is one implementation more elaborate than > the other? Are there any future plans to not further develop one of the > two options, or will they be both available in future releases? > > A lot of questions, I hope I get some answers. Bart, I have not done a performance comparison; however, there are reasons to believe the OGR case would be noticably slower than the other version. First because of the extra layer of indirection and object marshalling going through OGR, and second because I haven't done much to optimize the OGR code for reading from Oracle Spatial (though oddly, writing to Oracle Spatial is highly optimized). I plan to maintain the OGR Oracle Spatial support into the forseeable future. I don't know about the other version. My understanding is that there are some MapServer features support via OGR, but not via the standalone Oracle Spatial support but I don't know what those are. If you have the time, I would encourage you to do a performance and feature comparison of the two options. If you need fast, and you don't have time to mess around give the built-in support a quick try and if that doesn't work fallback to the OGR support. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From mapserver@oram.com Tue May 6 23:49:48 2003 From: mapserver@oram.com (John Oram) Date: Tue, 6 May 2003 15:49:48 -0700 Subject: [Mapserver-users] problems compiling PROJ.4 on Mac OS X 10.2.5 Message-ID: <0A3DCEA6-8015-11D7-AACA-00039315FC54@oram.com> Hi- I'm new to Mapserver and am trying to get it up and running on Mac OS X 10.2.5. I've been following the instructions on Bill Wheaton's page http://home.nc.rr.com/wwheaton/ as well as the wiki stuff at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MacOS I'm by no means an accomplished compiler -- I'm more the 'stimulus/response' type, so I apologize if I'm asking ridiculous questions. That being said, I had no problems with the other libraries, and was able to build PHP and get up and running with Apache (albeit without Mapserver). So, after I "make" and "sudo sh install" with the proj.4 4.4.7 I downloaded from remotesensing.org, I get this: install: Basic: command not found install: ==================: command not found install: These: command not found install: command substitution: line 1: unexpected EOF while looking for matching `'' install: command substitution: line 4: syntax error: unexpected end of file install: The: command not found install: command substitution: line 1: unexpected EOF while looking for matching `'' install: command substitution: line 3: syntax error: unexpected end of file install: definitions.: command not found install: line 113: syntax error near unexpected token `(f' install: line 113: `is something like `gnu-as' or `x' (for the X Window System). The' Is it crapping out entirely, i.e. grabbing something other than the install script, or is it just disliking a few lines? I get the feeling it's not working since when I try to build PHP I see: checking whether we should include PROJ.4 support... PROJ.4 support not requested. I'm a bit confused why proj.4 is built using "sh install" while everything else uses "make install". Also, how case sensitive are the references? I notice references to PROJ.4, Proj.4 and proj.4. Anyway, if anyone could shine some light on this I'd greatly appreciate it. Mapserver and its utilities look pretty intriguing and I'm looking forward to getting my hands dirty. Thanks, John From morissette@dmsolutions.ca Wed May 7 00:03:02 2003 From: morissette@dmsolutions.ca (Daniel Morissette) Date: Tue, 06 May 2003 19:03:02 -0400 Subject: [Mapserver-users] problems compiling PROJ.4 on Mac OS X 10.2.5 References: <0A3DCEA6-8015-11D7-AACA-00039315FC54@oram.com> Message-ID: <3EB83F26.98F094AC@dmsolutions.ca> John Oram wrote: > > I'm a bit confused why proj.4 is built using "sh install" while > everything else uses "make install". Also, how case sensitive are the > references? I notice references to PROJ.4, Proj.4 and proj.4. > Maybe there is something specific to MacOSX that I'm not aware of, but I've always compiled/installed PROJ using './configure; make; sudo make install' on any OS. I never used 'sh install' ... perhaps you could try 'make install' and see if that works for you. -- ------------------------------------------------------------ Daniel Morissette morissette@dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From mapserver@oram.com Wed May 7 00:46:10 2003 From: mapserver@oram.com (John Oram) Date: Tue, 6 May 2003 16:46:10 -0700 Subject: [Mapserver-users] problems compiling PROJ.4 on Mac OS X 10.2.5 In-Reply-To: <3EB83F26.98F094AC@dmsolutions.ca> Message-ID: OK, tried "sudo make install". Seems a little better -- no grievous errors that I can see (though I am not quite sure what I should look for). I did see something about "nad2nad source files not present" -- is there an acid test, i.e. certain things I should look for to see if it installed properly? In /usr/local/lib I see: libproj.0.4.1.dylib libproj.0.dylib libproj.a libproj.dylib libproj.la These have timestamps that make sense. Will try PHP next and see what happens. Thanks, John On Tuesday, May 6, 2003, at 04:03 PM, Daniel Morissette wrote: > John Oram wrote: >> >> I'm a bit confused why proj.4 is built using "sh install" while >> everything else uses "make install". Also, how case sensitive are the >> references? I notice references to PROJ.4, Proj.4 and proj.4. >> > > Maybe there is something specific to MacOSX that I'm not aware of, but > I've always compiled/installed PROJ using './configure; make; sudo make > install' on any OS. I never used 'sh install' ... perhaps you could > try > 'make install' and see if that works for you. > > -- > ------------------------------------------------------------ > Daniel Morissette morissette@dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ From sholl@gmx.net Wed May 7 06:28:52 2003 From: sholl@gmx.net (Stephan Holl) Date: Wed, 7 May 2003 07:28:52 +0200 Subject: [Mapserver-users] error in open() with php/mapscript Message-ID: <20030507072852.21850ae6.sholl@gmx.net> --=.7ihRQ)zskL3ZbP Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Dear mapserver-gurus, I cannot make the singel-point-query with php/mapscript working in gmap-demo and in my app. The following error results: Warning: Wrong parameter count for open() in /var/www/php/function.inc on line 325 Fatal error: MapServer Error in msLayerGetShape(): Shapefile layer has not been opened. in /var/www/php/function.inc on line 356 The query-code: // Open layer's table... take the list of fields to display from // the "HEADERRESULT_FIELDS" metadata in the layer object. $oLayer->open($map->shapepath); // line 325 $selFields = explode(" ", $oLayer->getMetaData("RESULT_FIELDS")); printf("\n"); printf("\n"); printf("\n"); // // Table header: attribute names... // printf("\n"); for ($iField=0; $iField < sizeof($selFields); $iField++) { printf(""); } printf("\n"); // // One row in table for each selected record // for ($iRes=0; $iRes < $numResults; $iRes++) { $oRes = $oLayer->getResult($iRes); $oShape = $oLayer->getShape($oRes->tileindex,$oRes->shapeindex); // line 356 printf("\n"); Perhaps anybody could give me a hint how to solve this problem. My system: MapServer version 3.7 (development) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=GD2_RGB INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 1.149 $ $Date: 2003/03/14 13:43:03 $) php4.3.1 Thanks for your help Stephan Holl -- Stephan Holl GnuPG Key-ID: 11946A09 --=.7ihRQ)zskL3ZbP Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+uJmWEg9SKhGUagkRAlDcAJ942HVkOdoBgn9AWYPgjFRhKGtOxwCeIACB jSVVi17B2fKJcZSa1RSe4cM= =g1Ev -----END PGP SIGNATURE----- --=.7ihRQ)zskL3ZbP-- From garre_gis@hotmail.com Wed May 7 10:39:03 2003 From: garre_gis@hotmail.com (Justin Garre) Date: Wed, 07 May 2003 02:39:03 -0700 Subject: [Mapserver-users] Mapserver/ArcIMS: server requirements Message-ID: We are looking at constructing a real-time traffic flow map using either ArcIMS or Mapserver. Shapefiles would consist of simple boundary files in addition to street nodes defined by (x,y) coordinates. The traffic data would be placed automatically into a database that ArcIMS/Mapserver would draw from in real-time (ie when the user would access the web page). The scale of the area would be a large metropolitan area and the map user would be able to zoom to different parts of the highway system. I expect this is a fairly standard web-based real-time traffic mapping system. Hypothetically speaking, what would the requirements be in terms of server hardware should the number of hits be in the neighborhood of 200,000 per day? We are trying to estimate what our server costs will be prior to attacking such a project so any input would be helpful. For those of you who are currently running Mapserver off of a dedicated server, how many map users do you get on a daily basis and what hardware infrastructure do you use to satisfy your map's demand? >From: "Ed McNierney" >To: "Justin Garre" >, >Subject: RE: [Mapserver-users] Mapserver/ArcIMS: server requirements >Date: Fri, 2 May 2003 08:19:05 -0400 > >Justin - > >Unfortunately, these are extremely difficult questions to answer, mainly >because there's a huge range in what constitutes a "hit". Is one map >served a single tax parcel from a town-wide collection of 3,000 generally >simple polygons, or is one map served a resampled and reprojected subset of >a raster mosaic producing a zoomed-out view of several megabytes of >imagery? > >If you want to evaluate server requirements, you will need to describe the >serving job as precisely as possible. If you can pretty well define what a >single map "hit" constitutes, you'll get more helpful advice. > > - Ed > >Ed McNierney >President and Chief Mapmaker >TopoZone.com / Maps a la carte, Inc. >73 Princeton Street, Suite 305 >North Chelmsford, MA 01863 >ed@topozone.com >(978) 251-4242 > >-----Original Message----- >From: Justin Garre [mailto:garre_gis@hotmail.com] >Sent: Friday, May 02, 2003 3:09 AM >To: mapserver-users@lists.gis.umn.edu >Subject: [Mapserver-users] Mapserver/ArcIMS: server requirements > > >I am trying to get an idea of how many servers/server space will be >required >to run Mapserver with a specific number of hits per day. For example, >would >a single server be adequate for 200,00 user sessions per day? How many >servers would be necessary for 1,000,000 users (site hits) per day? > >Granted this questions depends on a variety of criteria such as the >capabilities of the hardware and how large the map files are, but if >anybody >would be willing to share what kind of server setup you have and how much >usage you experience on a daily basis it would be greatly appreciated. > >Also, would ArcIMS be more demanding than Mapserver in terms of server >consumption? ie- I understand Mapserver has a more concise code so I am >curious to know if it would be less demanding on our server(s). > >Thanks in advance, > >Justin Garre >University of Washington >garre_gis@hotmail.com > > > > > > > >_________________________________________________________________ >Add photos to your messages with MSN 8. Get 2 months FREE*. >http://join.msn.com/?page=features/featuredemail > >_______________________________________________ >Mapserver-users mailing list >Mapserver-users@lists.gis.umn.edu >http://lists.gis.umn.edu/mailman/listinfo/mapserver-users _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From stepan.kafka@centrum.cz Wed May 7 11:17:59 2003 From: stepan.kafka@centrum.cz (Stepan Kafka) Date: Wed, 7 May 2003 12:17:59 +0200 Subject: [Mapserver-users] error in open() with php/mapscript In-Reply-To: <20030507072852.21850ae6.sholl@gmx.net> Message-ID: <000901c31481$ef1c1e80$463c2fc3@HSGIS> Stephan, in version 3.7 the syntax of layer->open() has changed. Now it is called without any parameters. See mapscript documentation. Stepan Kafka > -----Pùvodní zpráva----- > Od: mapserver-users-admin@lists.gis.umn.edu > [mailto:mapserver-users-admin@lists.gis.umn.edu]za uživatele Stephan > Holl > Odesláno: 7. kvìtna 2003 7:29 > Komu: mapserver-users > Pøedmìt: [Mapserver-users] error in open() with php/mapscript > > > Dear mapserver-gurus, > I cannot make the singel-point-query with php/mapscript working in > gmap-demo and in my app. > The following error results: > Warning: Wrong parameter count for open() in /var/www/php/function.inc > on line 325 > Fatal error: MapServer Error in msLayerGetShape(): Shapefile layer has > not been opened. in /var/www/php/function.inc on line 356 > > The query-code: > > // Open layer's table... take the list of fields to display from > // the "HEADERRESULT_FIELDS" metadata in the layer object. > $oLayer->open($map->shapepath); // line 325 > > > $selFields = explode(" ", $oLayer->getMetaData("RESULT_FIELDS")); > > printf("
", sizeof($selFields)); printf("
%s
", $oLayer->getMetaData("DESCRIPTION")); printf("
"); printf("%s",$selFields[$iField]); printf("
\n"); > printf("\n"); > printf("\n"); > > // > // Table header: attribute names... > // > printf("\n"); > for ($iField=0; $iField < sizeof($selFields); $iField++) > { > printf(""); > } > printf("\n"); > > // > // One row in table for each selected record > // > > for ($iRes=0; $iRes < $numResults; $iRes++) > { > $oRes = $oLayer->getResult($iRes); > > $oShape = $oLayer->getShape($oRes->tileindex,$oRes->shapeindex); // > line 356 > > printf("\n"); > > > Perhaps anybody could give me a hint how to solve this problem. > My system: > MapServer version 3.7 (development) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER > SUPPORTS=WFS_SERVER SUPPORTS=GD2_RGB INPUT=EPPL7 INPUT=JPEG > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > PHP MapScript Version > ($Revision: 1.149 $ $Date: 2003/03/14 13:43:03 $) > > php4.3.1 > > Thanks for your help > Stephan Holl > > -- > Stephan Holl > > GnuPG Key-ID: 11946A09 > --- Odchozí zpráva neobsahuje viry. Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz). Verze: 6.0.474 / Virová báze: 272 - datum vydání: 18.4.2003 From edspremolla@Antel.com.uy Wed May 7 12:44:38 2003 From: edspremolla@Antel.com.uy (Eduardo Spremolla) Date: 07 May 2003 08:44:38 -0300 Subject: [Mapserver-users] Drawing groups with perlMapscript In-Reply-To: References: Message-ID: <1052307877.5160.9.camel@fly.in.iantel.com.uy> Hi all: In the CGI version you can set a group on and all the layers in the group get draw. I'm now working with perl Mapscript , and the sequence: my $layer = $map->getLayerByName('group_name'); $layer->draw($map, $img); fails, since there is no layer with that name. Is there a way to do it, without stating every layer in the group? Thanks in advance Eduardo Spremolla Montevideo Uruguay From lfilak@medinaco.org Wed May 7 15:33:02 2003 From: lfilak@medinaco.org (Lowell Filak) Date: Wed, 07 May 2003 10:33:02 -0400 Subject: [Mapserver-users] Drawing groups with perlMapscript Message-ID: <200305071432.h47EWsN32270@yogi.medinaco.net> I don't know of a 'group' object which is what I think your looking for here. However you can emulate a group by selecting all layers then looping through each of them and retrieving the group name ($layer->{group}) then set the layers which belong to the group you wish to draw on. You can also add/remove layers that belong to a group by changing the value of $layer->{group} which may be a simpler solution depending on what your trying to accomplish. HTH Lowell F. The following message was sent by Eduardo Spremolla on 07 May 2003 08:44:38 -0300. > Hi all: > > In the CGI version you can set a group on and all the layers in the > group get draw. > I'm now working with perl Mapscript , and the sequence: > > my $layer = $map->getLayerByName('group_name'); > $layer->draw($map, $img); > > fails, since there is no layer with that name. > > Is there a way to do it, without stating every layer in the group? > > Thanks in advance > > > Eduardo Spremolla > Montevideo > Uruguay > > > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From rosangela.silva@zenitpolar.com.br Wed May 7 16:10:03 2003 From: rosangela.silva@zenitpolar.com.br (Rosangela Silva) Date: Wed, 7 May 2003 12:10:03 -0300 Subject: [Mapserver-users] shptree, shptrevis and shptst Message-ID: <000c01c314aa$bd132450$377ba8c0@nadir> This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C31491.97164B60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello list, Does anyone can give me some information about how can I get shptrevis and shptst utilities?? Are there a shptrevis.exe and shptst.exe=20 like shptree.exe??=20 Having the .qix (quadtree index) created, the mapserver automaticaly read it or I have do set something in the Layer definition?? Thanks in advance Ros=E2ngela. ------=_NextPart_000_0009_01C31491.97164B60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello list,
 
Does anyone can give me some = information about=20 how
can I get shptrevis and shptst utilities??
Are there a shptrevis.exe and = shptst.exe=20
like shptree.exe??
 
Having the .qix (quadtree index) = created, the=20 mapserver
automaticaly read it or I have do set = something in=20 the
Layer definition??
 
Thanks in advance
 
Ros=E2ngela.
------=_NextPart_000_0009_01C31491.97164B60-- From robe.dnd@ci.boston.ma.us Wed May 7 17:42:57 2003 From: robe.dnd@ci.boston.ma.us (Obe, Regina DND\MIS) Date: Wed, 7 May 2003 12:42:57 -0400 Subject: [Mapserver-users] Limiting number of results in ItemNQuery Message-ID: Is there a way to limit the number of results returned by an ItemNQuery in mapserver. For example if I'm returning a list of addresses and someone types in just a street name, I'd want to limit the result set to 10 records. Thanks From doug@moximedia.com Wed May 7 18:17:54 2003 From: doug@moximedia.com (Doug Cates) Date: Wed, 7 May 2003 10:17:54 -0700 Subject: [Mapserver-users] Mapserver on Windows/IIS Message-ID: <001001c314bc$98db1e50$6401a8c0@vn.shawcable.net> Richard, We have a server-side Java / JSP framework for deploying customized WMS services, which includes MapServer. It is platform independent, and runs nicely under IIS. My server is Linux, but you can see some examples at: http://moximedia.com/imf_sites.html Regards, Doug -- Doug Cates Moxi Media Inc. 757 - 1641 Lonsdale Avenue, Vancouver, BC, Canada V7M 2J5 Phone: 604-984-8109 Fax: 604-608-4764 E-Mail: doug@moximedia.com Web: www.moximedia.com From pkishor@geoanalytics.com Wed May 7 18:30:11 2003 From: pkishor@geoanalytics.com (pkishor_98) Date: Wed, 07 May 2003 17:30:11 -0000 Subject: [Mapserver-users] Re: problems compiling PROJ.4 on Mac OS X 10.2.5 In-Reply-To: Message-ID: --- In mapserver-users@yahoogroups.com, John Oram wrote: > OK, tried "sudo make install". Seems a little better -- no grievous > errors that I can see (though I am not quite sure what I should look > for). I did see something about "nad2nad source files not present" John, you have to grab the NAD files (on remotesensing.org) and copy them in the src directory tree... everything will be ok. I am not near my iBook (all the instructions are there, so I am speaking from memory), but I can email you the specific instructions in the evening. In the meantime, try the above. Puneet. From sholl@gmx.net Wed May 7 18:50:17 2003 From: sholl@gmx.net (Stephan Holl) Date: Wed, 7 May 2003 19:50:17 +0200 Subject: [Mapserver-users] error in open() with php/mapscript In-Reply-To: <000901c31481$ef1c1e80$463c2fc3@HSGIS> References: <20030507072852.21850ae6.sholl@gmx.net> <000901c31481$ef1c1e80$463c2fc3@HSGIS> Message-ID: <20030507195017.2a9b96ce.sholl@gmx.net> --=.a1kiQkHswLTeRB Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit At Wed, 7 May 2003 12:17:59 +0200 Stepan Kafka wrote: Hello Stepan, > Stephan, > in version 3.7 the syntax of layer->open() has changed. Now it is > called > without any parameters. See mapscript documentation. my docs were outdated... thanks for your hint! cheers Stephan -- Stephan Holl GnuPG Key-ID: 11946A09 --=.a1kiQkHswLTeRB Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+uUdbEg9SKhGUagkRAhbyAJ9gN9Kg10hFXdu9CKyXGrtwuW/gUgCfaKER avf/N7diLS5wB/vxie70M9A= =k7Lk -----END PGP SIGNATURE----- --=.a1kiQkHswLTeRB-- From mdoggett@coas.oregonstate.edu Wed May 7 23:40:17 2003 From: mdoggett@coas.oregonstate.edu (Matt Doggett) Date: Wed, 7 May 2003 15:40:17 -0700 Subject: [Mapserver-users] Help COLOR_MATCH_THRESHOLD In-Reply-To: <3EA549EB.3000100@pobox.com> Message-ID: <006201c314e9$a26465d0$2441c180@nino> I have raster data (via GDAL) with values much larger than 255 and I tried using the PROCESSING directive as described in this thread but I'm not getting it to work. In fact, I can't find ANY reference to this option in the documentation. Apparently, you got it to work, so...how did you do it? What's the syntax and use for this option? Where is it documented? -Matt (RedHat8.0, Apache2.0, Mapserver 3.6.4, Php4.2.3) The following snippet from my mapfile: LAYER NAME "PPT" STATUS ON DATA "/home/mistral/forages/data/grass/us/PERMANENT/cellhd/us_ppt_01" TYPE RASTER TEMPLATE "ttt.html" PROCESSING "SCALE=0,105812" END Produces the following error: Warning: MapServer Error in loadLayer(): (PROCESSING):(87) in /home/mistral/forages/www/us_simple.php on line 12 Fatal error: Failed to open map file ./us.map in /home/mistral/forages/www/us_simple.php on line 12 > -----Original Message----- > From: mapserver-users-admin@lists.gis.umn.edu [mailto:mapserver-users- > admin@lists.gis.umn.edu] On Behalf Of Frank Warmerdam > Sent: Tuesday, April 22, 2003 6:56 AM > To: Hussain, Asghar (IWMIPK) > Cc: mapserver-users@lists.gis.umn.edu > Subject: Re: [Mapserver-users] Help COLOR_MATCH_THRESHOLD > > Hussain, Asghar (IWMIPK) wrote: > > Dear all > > > > I am publishing raster data through mapserver. I wants to use GDAL > > library how I can use in map file for example I have elevation data the > > values are more than 256 color. So I wants to decrease the color depth. > > please can any one help and share the map file code with me ? > > Asghar, > > I don't think you need to use COLOR_MATCH_THRESHOLD in this case. Instead > you > need to scale your elevation data into the range 0-255 (or perhaps a more > constrained range). > > By default the GDAL raster input code for MapServer will just truncate > pixel > values outside the range 0-255, so any elevation over 255 would be set to > 255. > > What you need to do is establish the range of values that can occur, and > then > set a SCALING processing directive to control the scaling of the raw > raster > values into the 0-255 range. > > For instance if a utility like gdalinfo (or metadata) tells you that the > range of elevation is 0 to 1000 you might put the following directive in > the LAYER section to force the input range to be scaled down to 0-255: > > PROCESSING "SCALE=0,1000" > > If you don't want to figure out the min and max for your dataset, and > don't > need to be able to document exactly what output values correspond to in > input elevations you could just use auto-scaling. > > PROCESSING "SCALE=AUTO" > > Note that auto-scaling is based only on the rectangle of raster data > loaded > for a particular request, so the scaling applied will vary depending on > the > section of data being viewed. This is often inappropriate. Auto-scaling > will > always be inappopriate if you want to produce a legend with meaningful > range > values for the classes. > > I think that the SCALE processing option is documented in the mapfile > reference. > > Best regards, > > -- > ---------------------------------------+-------------------------------- -- > ---- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam@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.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From mdoggett@coas.oregonstate.edu Thu May 8 00:03:05 2003 From: mdoggett@coas.oregonstate.edu (Matt Doggett) Date: Wed, 7 May 2003 16:03:05 -0700 Subject: [Mapserver-users] TIF colors too dark Message-ID: <006301c314ec$d185f380$2441c180@nino> I have a georeferenced TIF raster that looks great in my image editing/display program (like ImageMagick or MS PhotoEditor) but when mapserver displays the raster, the colors are much darker than they should be. Any thoughts as to what may be going on and how I might fix it? -Matt (RedHat8.0, Apache2.0, Mapserver 3.6.4, Php4.2.3) Matt Doggett Spatial Climate Analysis Service Oregon State University 316 Strand Ag Hall Corvallis, OR 97331 (541)737-9153 mdoggett@coas.oregonstate.edu From hartr@3logix.com.au Thu May 8 00:57:34 2003 From: hartr@3logix.com.au (Hermie) Date: Thu, 8 May 2003 09:57:34 +1000 Subject: [Mapserver-users] Projection in Mapserver Problem Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C31548.3F6F6740 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi, I have set up a map file using utm projection, RASTER layer using utm projection and am trying to render points based on received lat/long from a GPS device. The locations displayed are way off (PROJECTION object for lat/long was added to the layer), however if I take the lat/long coordinates received and convert them to utm coordinates with a conversion tool I have and they are pretty close (not exact). The other anomaly I struck was when I tried to convert all the projections to lat/long firstly the EXTENT was set to lat long (based on the converted utm coordinates) and the x,y of RASTER layer displayed in the centre even though the anchor point x,y was the same in both the MAP EXTENT and the .wld file (I did add utm projection object to the raster layer). I also tried the point project API and the locations are still off, the variation appears to be about 50km North and about 10km west of the real location. Any help/advise would be appreciated. //Wld File 13.901760889712696941612604263207 0.0000000000 0.0000000000 -13.899920571882446386020651310564 480000 7000000 //Map File MAP NAME BRISBANE STATUS ON EXTENT 480000.00 7000000.00 540000.00 6930000.00 UNITS METERS SHAPEPATH "data" SIZE 500 500 PROJECTION "proj=utm" "zone=56" "south" "ellps=aust_SA" "towgs84=-133,-48,148,0,0,0,0" "units=m" "no_defs" END SYMBOL NAME 'circle' IMAGE './data/trucks.gif' TYPE pixmap END REFERENCE IMAGE graphics/reference.gif SIZE 120 140 STATUS ON EXTENT 480000.00 6930000.00 540000.00 7000000.00 END LAYER NAME mainmap DATA brisbane.tiff TYPE Raster STATUS ON END LAYER NAME trucks STATUS DEFAULT TYPE POINT PROJECTION proj=longlat ellps=aust_SA no_defs END CLASS NAME "clstrucks" SYMBOL 'circle' MAXSIZE 200 END END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 80 2 COLOR 255 255 255 UNITS KILOMETERS INTERVALS 1 TRANSPARENT FALSE STATUS TRUE END END Hart Runge 3Logix Pty Ltd Delivering Total Logistic Solutions Ph. 1300 727 100 Fax 1300 727 101 Mobile 0402 794198 mailto:hartr@3Logix.com.au http://www.3Logix.com.au This transmission is for the intended addressee only. If you have received this transmission in error, please delete the mail and notify the sender. The Contents of this e-mail are the opinion of the writer only and are not endorsed by 3Logix Pty Ltd unless expressly stated otherwise. ------=_NextPart_000_0005_01C31548.3F6F6740 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi,

 

I have set up a map file using utm projection, RASTER layer using = utm projection and am trying to render points based on received lat/long = from a GPS device. The locations displayed are way off (PROJECTION object for = lat/long was added to the layer), however if I take the lat/long coordinates received = and convert them to utm coordinates with a conversion tool I have and they = are pretty close (not exact).

 

The other anomaly I struck was when I tried to convert all the projections to lat/long firstly the EXTENT was set to lat long (based on = the converted utm coordinates) and the x,y of RASTER layer displayed in the = centre even though the anchor point x,y was the same in both the MAP EXTENT and = the .wld file (I did add utm projection object to the raster = layer).

 

I also tried the point project API and the locations are still = off, the variation appears to be about 50km North and about 10km west of the real location.

 

Any help/advise would be = appreciated.

 

//Wld File

13.901760889712696941612604263207<= /p>

0.0000000000

0.0000000000

-13.899920571882446386020651310564=

480000

7000000

 

//Map File

MAP

NAME BRISBANE

STATUS ON

EXTENT 480000.00 7000000.00 540000.00 = 6930000.00

UNITS METERS

SHAPEPATH "data"

SIZE 500 500

 

PROJECTION

  = "proj=3Dutm"       =

  = "zone=3D56"

  = "south"

  = "ellps=3Daust_SA"

  "towgs84=3D-133,-48,148,0,0,0,0"

  = "units=3Dm"

  = "no_defs"

END

 

SYMBOL

  NAME = 'circle'

  IMAGE = './data/trucks.gif'

  TYPE pixmap  =

END

 

REFERENCE

  IMAGE graphics/reference.gif  =

  SIZE 120 = 140

  STATUS = ON

  EXTENT 480000.00 6930000.00 540000.00 7000000.00

END

 

LAYER

  NAME = mainmap

  DATA = brisbane.tiff

  TYPE = Raster

  STATUS = ON

END

 

LAYER

    NAME = trucks

    = STATUS DEFAULT

    TYPE POINT    =

    = PROJECTION

      proj=3Dlonglat

      ellps=3Daust_SA

      no_defs

    = END

    = CLASS

      NAME "clstrucks"

      SYMBOL 'circle'

      MAXSIZE = 200

    = END

END

 

SCALEBAR

  IMAGECOLOR 255 = 255 255

  = LABEL

    COLOR = 255 255 255

    SIZE = tiny    =

  = END

  STYLE = 1

  SIZE 80 = 2

  COLOR 255 255 = 255

  UNITS = KILOMETERS

  INTERVALS = 1

  TRANSPARENT = FALSE

  STATUS = TRUE

END

 

END

 

Hart Runge

Ph. 1300 = 727 100

Fax 1300 = 727 101

Mobile = 0402 794198

mailto:hartr@3Logix.com.au

http://www.3Logix.com.au

 <= /p>

This transmission is for the = intended addressee only. If you have received<= /p>

this transmission in error, = please delete the mail and notify the sender.<= /p>

The Contents of this e-mail are = the opinion of the writer only and are not<= /p>

endorsed by 3Logix Pty Ltd unless expressly stated otherwise.<= /p>

 <= /p>

------=_NextPart_000_0005_01C31548.3F6F6740-- From mapserver@oram.com Thu May 8 01:58:52 2003 From: mapserver@oram.com (John Oram) Date: Wed, 7 May 2003 17:58:52 -0700 Subject: [Mapserver-users] building Mapserver 3.6.5 on Mac OS X 10.2.5 Message-ID: <3C7E8938-80F0-11D7-AACA-00039315FC54@oram.com> Hi- In my further adventures of getting Mapserver up and running, after issuing ./configure --with-jpeg / --with-gd=../gd-1.8.4 / --with-proj / --with-zlib=/usr/local/lib / --with-png=/usr/local/lib / --with-php=/usr/local/src/php-4.3.1 I see this at the tail end of the messages: checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... no PHP/MapScript module configured. updating cache ./config.cache creating ./config.status creating Makefile mkdir: mapscript/php3: No such file or directory creating mapscript/php3/Makefile sed: ./mapscript/php3/Makefile.in: No such file or directory ./config.status: mapscript/php3/Makefile: No such file or directory Then it quits. It seems to be choking on the non-existence of the ./mapscript/php3 directory -- I am assuming that this is supposed to be automagically generated by Mapserver's "./configure", as opposed to pre-existing, but why it would have trouble with "mkdir" is confusing. Should I try making that directory on my own? Would the proper path be /usr/local/src/mapscript/php3? Or is there a deeper issue? I'm wondering if I missed something with PHP. PHP seemed to compile and install without problems. Here's the configure for it: ./configure \ --with-xml \ --with-zlib \ --with-mysql \ --with-gd \ --with-png \ --with-jpeg \ --enable-wddx \ --with-regex=system \ --enable-force-cgi-redirect as well as sudo cp ./sapi/cgi/php /Library/WebServer/CGI-Executables/php Thanks for your patience, John From warmerdam@pobox.com Fri May 9 05:58:58 2003 From: warmerdam@pobox.com (Frank Warmerdam) Date: Fri, 09 May 2003 00:58:58 -0400 Subject: [Mapserver-users] Help COLOR_MATCH_THRESHOLD References: <006201c314e9$a26465d0$2441c180@nino> Message-ID: <3EBB3592.9070102@pobox.com> Matt Doggett wrote: > I have raster data (via GDAL) with values much larger than 255 and I > tried using the PROCESSING directive as described in this thread but I'm > not getting it to work. In fact, I can't find ANY reference to this > option in the documentation. Apparently, you got it to work, so...how > did you do it? What's the syntax and use for this option? Where is it > documented? Matt, The option only exists in MapServer 3.7 (aka dev, aka CVS, aka 4.0). I think it is discussed in the MapServer 3.7 raster howto. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From tomax77@gmx.de Thu May 8 13:04:57 2003 From: tomax77@gmx.de (tomax77@gmx.de) Date: Thu, 8 May 2003 14:04:57 +0200 (MEST) Subject: [Mapserver-users] Problems with Compiling PostGIS 0.7.5 Message-ID: <691.1052395497@www50.gmx.net> Hello UMN users, i've some problems with compiling PostGIS 0.7.5 on a Microsoft IIS 4 Server. I used a cygwin shell as unix module on a WIN NT system to compile, then I've got the following error message: collect2: returned 1 exit status dllwrap: gcc exited with status 1 Make:***[libpostgis.a] Error 1 This abbort message occured after some lines with 'undefined reference to' errors. May it be a problem with the path of my 'libpostgis.a' data or stays it in relation with my PostgreSQL Installation. Can anyone gives me a hint to solve this problem. Thanks Tom -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! From dukav110@mars.rz.fht-stuttgart.de Thu May 8 13:41:30 2003 From: dukav110@mars.rz.fht-stuttgart.de (Karin =?iso-8859-1?Q?D=FCrrwanger?=) Date: Thu, 08 May 2003 14:41:30 +0200 Subject: [Mapserver-users] Scalebar Message-ID: <3EBA507A.D8D0A039@mars.rz.fht-stuttgart.de> Dear list, i have a question about the scalebar. When I zoom in, the label turn to decimal numbers and the numbers overlap. Could I only avoid this with MINSCALE / MAXSCALE in the Web Object or is there another solution? And is it possible to control the decimal places? Thanks for any help. Karin From jacobi@dfki.de Thu May 8 14:02:05 2003 From: jacobi@dfki.de (Sven Jacobi) Date: Thu, 08 May 2003 15:02:05 +0200 Subject: [Mapserver-users] msSearchDiskTree(): Unable to access file. Message-ID: <200305081301.h48D19I9016010@corp-200.dfki.uni-sb.de> Hi list, I'm using Mapscript for Python and I want to ask whether it is possible to avoid exceptions like this: val = MapScriptc.mapObj_draw(self.this) RuntimeError: msSearchDiskTree(): Unable to access file. Exception exceptions.RuntimeError: 'msSearchDiskTree(): Unable to access file. \n' in ignored I can't find any error inside my script or mapfile, but still I receive these errors. So I ask whether it is possible to ignore these exceptions... Or any other ideas??? Thanks in forward, Sven From mschulz@webgis.de Thu May 8 14:15:33 2003 From: mschulz@webgis.de (Michael Schulz) Date: Thu, 08 May 2003 15:15:33 +0200 Subject: [Mapserver-users] msSearchDiskTree(): Unable to access file. References: <200305081301.h48D19I9016010@corp-200.dfki.uni-sb.de> Message-ID: <3EBA5874.BCD0195@webgis.de> Hi, i know that Sean Gillies has added some code to the exception handling in python/mapscript. You might need a more recent version of python/mapscript and use the provided setup.py script to build python/mapscript. Cheers, Michael Sven Jacobi schrieb: > Hi list, > > I'm using Mapscript for Python and I want to ask > whether it is possible to avoid exceptions like this: > > val = MapScriptc.mapObj_draw(self.this) > RuntimeError: msSearchDiskTree(): Unable to access file. > > Exception exceptions.RuntimeError: 'msSearchDiskTree(): Unable to access file. \n' in mapObjPtr.__del__ of mapObj instance at 1a16fc> ignored > > I can't find any error inside my script or mapfile, but still > I receive these errors. So I ask whether it is possible to > ignore these exceptions... > > Or any other ideas??? > > Thanks in forward, > > Sven > > _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft für Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz@webgis.de www.webgis.de From rosangela.silva@zenitpolar.com.br Thu May 8 15:12:27 2003 From: rosangela.silva@zenitpolar.com.br (Rosangela Silva) Date: Thu, 8 May 2003 11:12:27 -0300 Subject: [Mapserver-users] Problems with Compiling PostGIS 0.7.5 References: <691.1052395497@www50.gmx.net> Message-ID: <002101c3156b$dbf92c90$377ba8c0@nadir> Tom, I had the same problem and this was a past question of the list. POSTGIS 0.7.5 COMPILATION 1) EDIT THE FILE /POSTGRESQL-VERSION/SRC/INCLUDE/OPTMIZER/COST.H CHANGE THE LINE extern double cpu_index_tuple_cost; FOR extern DLLIMPORT double cpu_index_tuple_cost; in POSTGRESQL-VERSION directory ./configure ou ./configure --enable-multibyte --with-CXX --prefix=/usr --sysconfdir=/etc -- docdir=/usr/doc/postgresql-7.3.1 make 2) in postgis MAKEFILE ADD THE CLAUSE: -L ../../src/backend -lpostgres IN # Add libraries that libpq depends (or might depend) on into the # shared library link. (The order in which you list them here doesn't # matter.) SHLIB_LINK=$(filter -L%, $(LDFLAGS)) ifeq ($(USE_PROJ),1) SHLIB_LINK=$(filter -L%, $(LDFLAGS)) $(BE_DLLLIBS) -L$(PROJ_DIR)/lib -lproj else SHLIB_LINK=$(filter -L%, $(LDFLAGS)) $(BE_DLLLIBS) -L ../../src/backend -lpostgres endif make make install For more completed information, see the olders links See the link http://postgis.refractions.net/pipermail/postgis-users/2003-April/002316.html http://postgis.refractions.net/pipermail/postgis-users/2003-February/002129.html Rosângela ----- Original Message ----- From: To: Sent: Thursday, May 08, 2003 9:04 AM Subject: [Mapserver-users] Problems with Compiling PostGIS 0.7.5 > Hello UMN users, > > i've some problems with compiling PostGIS 0.7.5 on a Microsoft IIS 4 Server. > I used a cygwin shell as unix module on a WIN NT system to compile, then > I've got the following error message: > > collect2: returned 1 exit status > dllwrap: gcc exited with status 1 > Make:***[libpostgis.a] Error 1 > > This abbort message occured after some lines with 'undefined reference to' > errors. May it be a problem with the path of my 'libpostgis.a' data or stays > it in relation with my PostgreSQL Installation. > Can anyone gives me a hint to solve this problem. > > Thanks > > Tom > > -- > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From pagurekd@agr.gc.ca Thu May 8 16:46:40 2003 From: pagurekd@agr.gc.ca (Debbie Pagurek) Date: Thu, 08 May 2003 11:46:40 -0400 Subject: [Mapserver-users] problem with GetCapabilities Message-ID: Hi all, am experiencing something weird when I request a GetCapabilities from my wms_server apps. I am prompted to download a file. It says file name = mapserv.map (where's it getting that name????) file type=MAP_AUTO_FILE from: my server name if I open this file up in wordpad it is fine. I am using Internet Explorer 6. Is this a browser problem or a file associations problem or what? Also, I have Mapserver 3.6.3 on my system. Does this support WMS 1.1.0 or just 1.0.0? D. Pagurek From Jean-Francois.Doyon@CCRS.NRCan.gc.ca Thu May 8 17:00:37 2003 From: Jean-Francois.Doyon@CCRS.NRCan.gc.ca (Jean-Francois.Doyon@CCRS.NRCan.gc.ca) Date: Thu, 8 May 2003 12:00:37 -0400 Subject: [Mapserver-users] problem with GetCapabilities Message-ID: <7CDD7B94357FD5119E800002A537C46E2307B5@s5-ccr-r1.ccrs.nrcan.gc.ca> Debbie, I'm not sure what this MAP_AUTO_FILE thing is ... But, the thing is there is a special MIME-Type used for OGC XML, such as GetCapabilities. MapServer responds sending this MIME Type to the browser, which the browser by default doesn't know what to do with, so it opens the download dialog. I don't have the mime-types on hand, they're in the WMS spec ... You can setup your browser to act according to your wishes based on this mime-type, such as open it in XML Spy or something. Oh wait here they are: application/vnd.ogc.wms_xml, application/vnd.ogc.se_xml, application/vnd.ogc.gml In Mozilla/Netscape6/7 , you go into Edit -> Preferences -> Navigator -> Helper Applications ... Hope this helps! J.F. -----Original Message----- From: Debbie Pagurek [mailto:pagurekd@agr.gc.ca] Sent: Thursday, May 08, 2003 11:47 AM To: mapserver-users@lists.gis.umn.edu Subject: [Mapserver-users] problem with GetCapabilities Hi all, am experiencing something weird when I request a GetCapabilities from my wms_server apps. I am prompted to download a file. It says file name = mapserv.map (where's it getting that name????) file type=MAP_AUTO_FILE from: my server name if I open this file up in wordpad it is fine. I am using Internet Explorer 6. Is this a browser problem or a file associations problem or what? Also, I have Mapserver 3.6.3 on my system. Does this support WMS 1.1.0 or just 1.0.0? D. Pagurek _______________________________________________ Mapserver-users mailing list Mapserver-users@lists.gis.umn.edu http://lists.gis.umn.edu/mailman/listinfo/mapserver-users From Tom.Kralidis@CCRS.NRCan.gc.ca Thu May 8 17:05:50 2003 From: Tom.Kralidis@CCRS.NRCan.gc.ca (Tom.Kralidis@CCRS.NRCan.gc.ca) Date: Thu, 8 May 2003 12:05:50 -0400 Subject: [Mapserver-users] problem with GetCapabilities Message-ID: <7CDD7B94357FD5119E800002A537C46E04FA1FD4@s5-ccr-r1.ccrs.nrcan.gc.ca> > -----Original Message----- > From: Debbie Pagurek [mailto:pagurekd@agr.gc.ca] > Sent: Thursday, May 08, 2003 11:47 AM > To: mapserver-users@lists.gis.umn.edu > Subject: [Mapserver-users] problem with GetCapabilities > > > Hi all, > am experiencing something weird when I request a > GetCapabilities from my wms_server apps. > > I am prompted to download a file. It says > file name = mapserv.map (where's it getting that name????) > file type=MAP_AUTO_FILE > from: my server name > > if I open this file up in wordpad it is fine. > > I am using Internet Explorer 6. > > Is this a browser problem or a file associations problem or what? > As of WMS 1.1.0, the content type for a GetCapabilities response is application/vnd.ogc.wms_xml for a GetCapabilities response. So unless your web browser knows how to handle this content type (i.e. file associations) you'll be prompted to download or open. Alot of people ask 'why -- it's just an XML document?'. The reasoning behind this is so that, seeing that everyone and their dog is writing dialects of XML in their services, they could be easily recognizable by the content type and be pushed off to specific applications through file associations. This way, with WMS as an example, I could configure GetCapabilities responses to open up in Notepad, and GetFeatureInfo (application/vnd.ogc.gml) with XML Spy or something. > Also, I have Mapserver 3.6.3 on my system. Does this support > WMS 1.1.0 or just 1.0.0? > > D. Pagurek > > > > _______________________________________________ > Mapserver-users mailing list > Mapserver-users@lists.gis.umn.edu > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users > From benjamin.thelen@ccgis.de Thu May 8 17:33:59 2003 From: benjamin.thelen@ccgis.de (Benjamin Thelen) Date: Thu, 8 May 2003 18:33:59 +0200 Subject: [Mapserver-users] rojection library error. no system list, errno: 2 In-Reply-To: <3EB6A171.5010704@pobox.com> Message-ID: Hi Frank, thanks to you. Sorry for that long mail again, I am still stuck and could not find any more helpful information in the mailing list archives or at MapServerWiki. shp2img responds the same error message!! ---------------------------------------------------------------------------- -------------------- root@qwertzuiop# /usr/home/src/mapserver-3.6.5/shp2img -m /usr/home/umn/test1.map -o /tmp/test pj_open_lib(proj_def.dat): call fopen(/usr/local/share/proj/proj_def.dat). pj_open_lib(EPSG): call fopen(/usr/local/share/proj/EPSG). msProcessProjection(): Projection library error. no system list, errno: 2 ---------------------------------------------------------------------------- -------------------- Is this maybe a hint? Why does proj -v find the epsg file (see below) and shp2img not? Why is shp2img not installed in /usr/local/bin/ like "shp2pgsql"? Is that ok? I then checked all permissions. Everybody has read permissions on /usr/local/share/proj/epsg, as you can see below in the directory listing. benjamin@qwertzuiop> cd /usr/local/share/proj/ benjamin@qwertzuiop> l epsg -r--r--r-- 1 root wheel 196424 Mar 25 18:24 epsg Apache runs as user www (or nobody on Linux), so I suppose cgi-processes are run with the same user...?! I have my umn data in /usr/home/umn: data/test/ --> SHAPEPATH sessions/ --> IMAGEPATH symbols/ test1.map I checked permissions within /usr/home/umn. At least everyone has r--. Maybe that is not enough. But I don't think so, because, why should rwx be neccessary. At last I've downloaded the latest epsg-file, changed the owner from root to an ordinary user and made chmod 777. Changing user and permissions does't help at all. Then I found out the following strange thing: root@qwertzuiop# proj -v +init=epsg:31493 pj_open_lib(epsg): call fopen(/usr/local/share/proj/epsg). Rel. 4.4.5, 9 January 2002 : projection initialization failure cause: no options found in 'init' file program abnormally terminated root@qwertzuiop# proj -v +init=epsg:4326 pj_open_lib(epsg): call fopen(/usr/local/share/proj/epsg). Rel. 4.4.5, 9 January 2002 : +proj=latlong unsuitable for use with proj program. program abnormally terminated Then I found out that there are no entries for epsg:3149X in the new epsg-file!!?? So I took the old epsg-file. There are epsg:3149X entries in it. proj -v +init=epsg:4326 responds the same. Do you have an another idea what's that "no system list"-thing is? Thanks in advance, Benjamin Maybe it provides some helpful information, here is my map-file: ---------------------------------------------------------------------------- MAP NAME "test1" STATUS ON #EXTENT 5.88 46.6213 15 55.7187 EXTENT 3230000 5230448 3965190 6130010 #5.88 46.6213 15 55.7187 PROJECTION "init=EPSG:31493" END SIZE 650 420 SHAPEPATH "/usr/home/umn/data/test/" #SYMBOLSET "/usr/home/umn/symbols/symbols.sym" #FONTSET "/usr/home/umn/fonts/fonts.list" IMAGECOLOR 255 255 255 TRANSPARENT ON #ON|OFF Backgroundcolor fur Karten transparent; def off UNITS METERS #Units mapcoordinates; fur scale/scalebar Berechnungen RESOLUTION 72 #Pixel/inch fur Output (scalecomputation; def 72), vorher 300 INTERLACE OFF IMAGETYPE PNG #output imagetype WEB MINSCALE 1 MAXSCALE 100000000000000000 #TEMPLATE "templates/client.html" IMAGEPATH "/usr/home/umn/sessions/" IMAGEURL "http://qwertzuiop/umn/sessions/" TEMPLATE "/usr/home/umn/templates/test3.html" # LOG "./umn.log" METADATA "WMS_ACCESSCONSTRAINTS" "none" "WMS_SRS" "EPSG:4326" #"WMS_SRS" "EPSG:31493" "WMS_ONLINERESOURCE" "http://qwertzuiop/cgi-bin/mapserv?map=../../../home/umn/test1.map" "WMS_TITLE" "Germany" "WMS_FEATURE_INFO_MIME_TYPE" "text/html" "WMS_ABSTRACT" "Germany" END END #------------------------ LAYER NAME "Grenze" STATUS ON DATA "grenze.shp" TYPE POLYGON PROJECTION "init=EPSG:4326" END UNITS METERS SIZEUNITS PIXELS MINSCALE 0 MAXSCALE 100000000000000000 METADATA "WMS_SRS" "EPSG:4326" "WMS_TITLE" "Grenze" "WMS_FEATURE_INFO_MIME_TYPE" "text/html" END CLASS SYMBOL 0 COLOR 255 204 102 END END END #End mapfile ---------------------------------------------------------------------------- > -----Original Message----- > From: mapserver-users-admin@lists.gis.umn.edu > [mailto:mapserver-users-admin@lists.gis.umn.edu]On Behalf Of Frank > Warmerdam > Sent: Monday, May 05, 2003 7:38 PM > To: Benjamin Thelen > Cc: UMN MapServer > Subject: Re: [Mapserver-users] rojection library error. no system list, > errno: 2 > > > Benjamin Thelen wrote: > > I set the environment variable PROJ_LIB directly in a shell: > > "set PROJ_LIB=/usr/local/share/proj". > > But that didn't help as well. > > > > > > > > I thought it could be something with file permissions, but I > don't think, > > proj4 is not allowed to access its own files. I have no more > ideas at the > > moment. Anybody another idea? > > Sorry for my three mails. I was a bit to fast writing to the list. > > Benjamin, > > I haven't traced through everything you have tried, but permissions can > certainly be an issue under some circumstances. Note that PROJ only has > the permission available to the cgi-bin process it is called from > when used > in a web environment. So if you
", sizeof($selFields)); > printf("
%s
", $oLayer->getMetaData("DESCRIPTION")); > printf("
"); > printf("%s",$selFields[$iField]); > printf("