From covariance at SHAW.CA Sun May 1 04:11:43 2005 From: covariance at SHAW.CA (Bob Bruce) Date: Sun, 1 May 2005 06:11:43 -0500 Subject: Zooming and Centering Question: Second Run Message-ID: Giridhar: I have never used zoompoint but, by my reading of the PHP documentation, you can use it to zoom by a factor of the current scale instead of specifying an actual scale. Other than that, the arguments are identical. Bob On Sat, 30 Apr 2005 02:51:51 -0400, Giridhar Manepalli wrote: >Thanks Bob! It really helped. Can you tell me how zoomscale and >zoompoint are different from a map point of view. > >Giridhar > >On 4/25/05, Bob Bruce wrote: >> On Sun, 24 Apr 2005 23:01:06 -0400, Giridhar Manepalli >> wrote: >> >> >Hello All, >> >I am using php mapscript. I cannot get the image to center when I >> >click on the image and with some zooming factor. >> > >> >I am using image coordinates (not geographical coordinates) for zooming. >> > >> >1.)Can anyone think of possible reasons? I can provide with any >> >necessary information. >> > >> >2.) Also, how do I center the image based on my click without zooming? >> > >> >3.) Finally, does the extent of the map automatically changed by >> >mapscript, when I zoom? >> > >> >I hope, i can get this resolved! >> > >> >Thanks, >> >Giridhar >> > >> > >> >Hello All, >> >I tried to center the image based on a click when I zoom using >> >php/mapscript. For some reason, I am failing to do so. >> > >> >Is it because, the lat long I calculated using javascript is wrong? >> >but it almost matches with 'ArcIMS Author'.? >> > >> >Can anyone write the snippet of php/mapscript code that will zoom to >> >the point i click, provided I have the lat-long of the click? Also, >> >can you explain what the new extent will be? >> > >> >Thanks, >> >Giridhar >> >> Giridhar: >> >> here's a code snippet that I use for zooming in: >> >> } elseif($_POST['mode'] == "ZoomInAtPT" ) { >> $new_point = ms_newPointObj(); >> >> $new_point->setXY(floatval($_POST['mapimage_x']),floatval($_POST['mapimage_y'])); >> $map->zoomscale($mapscale/$mapScaleZoomFactor, $new_point, >> $map->width, $map->width, >> >> $mapRect, $maxmapRect); >> >> the post variables are the image coordinates of the mouse click. You should >> have those anyway and it shouldn't be necessary to convert them to Lat/Long. >> I get $mapscale using the statement: >> >> $mapscale = isset($_POST['mapscale']) ? floatval($_POST['mapscale']) : >> $maxscale; >> >> and I set the post value of mapscale using the following statements: >> >> // now set up some web page display values >> $currentscale = round($map->scale); >> $char_scale = number_format($currentscale); >> >> and this is my code to re-center the draw: >> >> } elseif($_POST['mode'] == "recenter" ) { >> $new_point = ms_newPointObj(); >> >> $new_point->setXY(floatval($_POST['mapimage_x']),floatval($_POST['mapimage_y'])); >> $map->zoomscale($mapscale, $new_point, $map->width, $map->width, >> $mapRect, $maxmapRect); >> >> (notice that I don't change the scale in this call) >> and this is the code to set the last two values of the above call: >> >> if(isset($_POST['mapextent'])) { >> $extents = explode("+",$_POST['mapextent']); >> $mapRect = ms_newRectObj(); >> >> $mapRect->setextent(floatval($extents[0]),floatval($extents[1]),floatval($extents[2]),floatval($extents[3])); >> $maxmapextent = $_POST['maxmapextent']; // save this for the hidden >> form variable >> } else { // set this for the hidden form variable using the values >> from the map file >> $maxmapextent = $map->extent->minx . "+" . $map->extent->miny . "+" >> . $map->extent->maxx . "+" . $map->extent->maxy; >> } >> >> if(isset($_POST['maxmapextent'])) { >> $maxextents = explode("+",$_POST['maxmapextent']); >> $maxmapRect = ms_newRectObj(); >> >> $maxmapRect->setextent(floatval($maxextents[0]),floatval($maxextents[1]),floatval($maxextents[2]),floatval($maxextents[3])); >> } >> >> hopefully there is enough here to get you going. >> >> Bob Bruce >> From stigmata_blackangel at YAHOO.COM Sun May 1 15:55:37 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Sun, 1 May 2005 15:55:37 -0700 Subject: HostGIS Linux 3.0 released Message-ID: Hi, all. I'm proud to announce that HostGIS Linux 3.0 has been released. See http://www.hostgis.com for details. HostGIS Linux is a Linux distribution designed for map service. Imagine this: Slackware Linux. MapServer. PHP, Perl, Python and MapScript for all of them. Already-working PostGIS and MySQL servers. PDFlib. Webmin, phpMyAdmin, and phpPgAdmin. Demo programs. And because we know what packages are important and included only those, it's only a 240 MB download and it takes about 1 minute to run through the interactive part of the installation procedure. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From ace at SUARES.NL Sun May 1 19:53:42 2005 From: ace at SUARES.NL (Ace Suares) Date: Sun, 1 May 2005 22:53:42 -0400 Subject: escaping single quotes Message-ID: dear list, I have the following situation: 1. a column in my shapefile (.dbf) that is called GEMNAAM 2. 482 gemeentes (counties), 3 of them starting with an ' (an apostroph or single quote). 3. a filter that looks like '[GEMNAAM]'='$gemnaam' where $gemnaam iterates over (some of) the 482 gemeentes The problem seems to be that the single quote in the $gemnaam is not being escaped, and I have no idea how to escape it. Is there an escape mechanism for single quotes ? I tried double quotes i.e. '[GEMNAAM]'="$gemnaam" but apparently to no avail. Much obliged for any hint. (However, that won't bring back the past 4 hours of my life). _ace -- I wanna be the squeezer, and not the squeezie. - Bootsy Ace Suares' Internet Consultancy mail: PObox 2599, 4800 CN Breda, The Netherlands phone: +31 6 244 33 608 (Jan Veuger, support Netherlands) emergency: +599 786 23 73 voicemail & fax: +31 848 707 705 web: http://www.suares.nl email: support at suares.nl -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From stigmata_blackangel at YAHOO.COM Sun May 1 21:24:50 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Sun, 1 May 2005 21:24:50 -0700 Subject: PHP as Apache DSO, status? Message-ID: Last I heard, a few months ago, it was unstable to run MapScript with PHP as an Apache DSO. I just wanted to check in and see whether I had missed anything. Also a few months ago, I saw a mention somewhere (this list, maybe?) of installing two PHPs: a CGI for MapScript and a DSO for other stuff. Has anybody tried this, and with what success? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From mh at SVAJ.DK Sun May 1 23:48:04 2005 From: mh at SVAJ.DK (=?ISO-8859-1?Q?Martin_H=F8gh?=) Date: Mon, 2 May 2005 08:48:04 +0200 Subject: PHP as Apache DSO, status? Message-ID: Hi, Running php as cgi (for mapscript) and DSO for other stuff is what you normally do. I've installed mapscript as DSO from the Debian testing distribution, and it seems to run ok - but I've not yet tried to put a big workload on it. /martin Date: Sun, 1 May 2005 21:24:50 -0700 From: Gregor Mosheh Subject: PHP as Apache DSO, status? Last I heard, a few months ago, it was unstable to run MapScript with PHP as an Apache DSO. I just wanted to check in and see whether I had missed anything. Also a few months ago, I saw a mention somewhere (this list, maybe?) of installing two PHPs: a CGI for MapScript and a DSO for other stuff. Has anybody tried this, and with what success? -- Martin H?gh Sven Allan Jensen as Sankelmarksgade 9 9000 Aalborg Tlf. 98129300 Direkte tlf. 96314082 From mapserver at GEOWORLD.DE Mon May 2 01:50:52 2005 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Mon, 2 May 2005 10:50:52 +0200 Subject: mapserv segfaults trying to get the query results of a native oracle spatial data source In-Reply-To: <1114699352.4270f6585c2fa@webmail.univali.br> Message-ID: Hi Fernando, thank you very much for your e-mail. I tried the latest CVS version ($Id: maporaclespatial.c,v 1.26 2005/04/28 22:19:41 rodrigo Exp $) with the '--enable-point-z-m' compiling flag but it did not change the situation. Mapserver crashes when it try to access the search results with: $shpobj = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); I also found, that nearly the hole map-object is empty when i add the '--enable-point-z-m' compiling flag (see attached gdb output) and try to access it with PHP Mapscript. $map = ms_newMapObj('oracle_test_gk3.map') or die('Error.'); var_dump($map); Removing this flag gives me the normal look. Here is my oracle layer definition. Yes i define a template, and no i did not define any filter parameter: LAYER NAME Oracle STATUS DEFAULT TYPE POLYGON DEBUG ON CONNECTIONTYPE oraclespatial CONNECTION "user/passwd at BOX.os" DATA "GEOMETRIE from FLURST USING SRID 82027" PROJECTION "init=epsg:31467" END CLASS NAME gw TEMPLATE "dummy.html" STYLE COLOR 192 192 192 OUTLINECOLOR 0 0 0 END END END Should i open a bug on this? Many thanks Nicol gdb-Output: nicol at emil:~/public_html/mapserver/dev$ gdb php GNU gdb 6.3-debian Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-linux"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run nativ_oraclequelle_query.php Starting program: /usr/local/bin/php nativ_oraclequelle_query.php [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 8137)] Content-type: text/html X-Powered-By: PHP/4.3.8 ms_map_obj Object ( [_handle_] => Resource id #1 [numlayers] => 1 [name] => Karte [status] => 1 [debug] => 0 [width] => 300 [height] => 300 [maxsize] => 2048 [transparent] => 0 [interlace] => 0 [imagetype] => [imagequality] => 0 [extent] => ms_rect_obj Object ( [_handle_] => Resource id #2 [minx] => 0 [miny] => 0 [maxx] => 0 [maxy] => 0 ) [cellsize] => 0 [units] => 0 [scale] => 0 [resolution] => 0 [shapepath] => [keysizex] => 0 [keysizey] => 0 [keyspacingx] => 0 [keyspacingy] => 0 [symbolsetfilename] => [fontsetfilename] => [mappath] => [imagecolor] => ms_color_obj Object ( [_handle_] => Resource id #3 [red] => 0 [green] => 0 [blue] => 0 ) [web] => ms_web_obj Object ( [_handle_] => Resource id #4 [log] => [imagepath] => [template] => [imageurl] => [header] => [footer] => [empty] => [error] => [mintemplate] => [maxtemplate] => [minscale] => 0 [maxscale] => 0 [queryformat] => [extent] => ms_rect_obj Object ( [_handle_] => Resource id #5 [minx] => 0 [miny] => 0 [maxx] => 0 [maxy] => 0 ) ) [reference] => ms_reference_obj Object ( [_handle_] => Resource id #6 [image] => [width] => 0 [height] => 0 [status] => 0 [extent] => ms_rect_obj Object ( [_handle_] => Resource id #7 [minx] => 0 [miny] => 0 [maxx] => 0 [maxy] => 0 ) [color] => ms_color_obj Object ( [_handle_] => Resource id #8 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #9 [red] => 0 [green] => 0 [blue] => 0 ) ) [scalebar] => ms_scalebar_obj Object ( [_handle_] => Resource id #10 [height] => 0 [width] => 0 [style] => 0 [intervals] => 0 [units] => 0 [status] => 0 [position] => 0 [transparent] => 0 [interlace] => 0 [postlabelcache] => 0 [label] => ms_label_obj Object ( [_handle_] => Resource id #11 [font] => [encoding] => [type] => 0 [shadowsizex] => 0 [shadowsizey] => 0 [backgroundshadowsizex] => 0 [backgroundshadowsizey] => 0 [size] => 0 [minsize] => 0 [maxsize] => 0 [position] => 0 [offsetx] => 0 [offsety] => 0 [angle] => 0 [autoangle] => 0 [buffer] => 0 [antialias] => 0 [wrap] => 0 [minfeaturesize] => 0 [autominfeaturesize] => 0 [mindistance] => 0 [partials] => 0 [force] => 0 [color] => ms_color_obj Object ( [_handle_] => Resource id #12 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #13 [red] => 0 [green] => 0 [blue] => 0 ) [shadowcolor] => ms_color_obj Object ( [_handle_] => Resource id #14 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundcolor] => ms_color_obj Object ( [_handle_] => Resource id #15 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundshadowcolor] => ms_color_obj Object ( [_handle_] => Resource id #16 [red] => 0 [green] => 0 [blue] => 0 ) ) [imagecolor] => ms_color_obj Object ( [_handle_] => Resource id #17 [red] => 0 [green] => 0 [blue] => 0 ) [color] => ms_color_obj Object ( [_handle_] => Resource id #18 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundcolor] => ms_color_obj Object ( [_handle_] => Resource id #19 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #20 [red] => 0 [green] => 0 [blue] => 0 ) ) [legend] => ms_legend_obj Object ( [_handle_] => Resource id #21 [height] => 0 [width] => 0 [keysizex] => 0 [keysizey] => 0 [keyspacingx] => 0 [keyspacingy] => 0 [status] => 0 [position] => 0 [transparent] => 0 [interlace] => 0 [postlabelcache] => 0 [template] => [label] => ms_label_obj Object ( [_handle_] => Resource id #22 [font] => [encoding] => [type] => 0 [shadowsizex] => 0 [shadowsizey] => 0 [backgroundshadowsizex] => 0 [backgroundshadowsizey] => 0 [size] => 0 [minsize] => 0 [maxsize] => 0 [position] => 0 [offsetx] => 0 [offsety] => 0 [angle] => 0 [autoangle] => 0 [buffer] => 0 [antialias] => 0 [wrap] => 0 [minfeaturesize] => 0 [autominfeaturesize] => 0 [mindistance] => 0 [partials] => 0 [force] => 0 [color] => ms_color_obj Object ( [_handle_] => Resource id #23 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #24 [red] => 0 [green] => 0 [blue] => 0 ) [shadowcolor] => ms_color_obj Object ( [_handle_] => Resource id #25 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundcolor] => ms_color_obj Object ( [_handle_] => Resource id #26 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundshadowcolor] => ms_color_obj Object ( [_handle_] => Resource id #27 [red] => 0 [green] => 0 [blue] => 0 ) ) [imagecolor] => ms_color_obj Object ( [_handle_] => Resource id #28 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #29 [red] => 0 [green] => 0 [blue] => 0 ) ) [latlon] => ms_projection_obj Object ( [_handle_] => Resource id #30 ) [outputformat] => [labelcache] => ms_labelcache_obj Object ( [_handle_] => Resource id #31 ) ) [Mon May 2 10:19:22 2005].888452 msOracleSpatialLayerOpen called with: GEOMETRIE from FLURST USING SRID 82027 [Mon May 2 10:19:23 2005].93962 msOracleSpatialLayerOpen. Shared connection not available. Creating one. [Mon May 2 10:19:23 2005].94024 msConnPoolRegister(Oracle,user/passwd at BOX.os,0x82bcd78) [Mon May 2 10:19:23 2005].100358 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 10:19:23 2005].101489 msOracleSpatialLayerWhichShapes was called. [Mon May 2 10:19:23 2005].101597 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT rownum, GEOMETRIE FROM FLURST WHERE SDO_FILTER( GEOMETRIE, MDSYS.SDO_GEOMETRY(2003, 82027, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(3384094.22,5499947.53,3427070.22,5542923.53) ),'querytype=window') = 'TRUE' [Mon May 2 10:19:45 2005].111568 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 10:19:45 2005].111754 msOracleSpatialLayerClose was called. Layer connection: user/passwd at BOX.os [Mon May 2 10:19:45 2005].111825 msOracleSpatialLayerClose. Cleaning layerinfo handlers. [Mon May 2 10:19:45 2005].111964 msOracleSpatialLayerClose. Cleaning Oracle handlers. [Mon May 2 10:19:45 2005].112050 msConnPoolRelease(Oracle,user/passwd at BOX.os,0x82bcd78) [Mon May 2 10:19:45 2005].112124 msConnPoolClose(user/passwd at BOX.os,0x82bcd78)

Anzahl der Layer: 1 - Anzahl der Klassen dieses Layers: [Mon May 2 10:19:45 2005].129564 msOracleSpatialLayerOpen called with: GEOMETRIE from FLURST USING SRID 82027 [Mon May 2 10:19:45 2005].156144 msOracleSpatialLayerOpen. Shared connection not available. Creating one. [Mon May 2 10:19:45 2005].156290 msConnPoolRegister(Oracle,user/passwd at BOX.os,0x82f7f78) [Mon May 2 10:19:45 2005].161787 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 10:19:45 2005].164368 msOracleSpatialLayerGetItems was called. [Mon May 2 10:19:45 2005].165424 msOracleSpatialLayerInitItemInfo was called. [Mon May 2 10:19:45 2005].166837 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 10:19:45 2005].166931 msOracleSpatialLayerGetItems was called. [Mon May 2 10:19:45 2005].167639 msOracleSpatialLayerInitItemInfo was called. x: 0 - y: 0 [Mon May 2 10:19:45 2005].169442 msOracleSpatialLayerOpen called with: GEOMETRIE from FLURST USING SRID 82027 [Mon May 2 10:19:45 2005].169568 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 10:19:45 2005].169647 msOracleSpatialLayerWhichShapes was called. [Mon May 2 10:19:45 2005].169776 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT rownum, GEOMETRIE FROM FLURST WHERE SDO_FILTER( GEOMETRIE, MDSYS.SDO_GEOMETRY(2003, 82027, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(3405582.22,5521435.53,3405582.22,5521435.53) ),'querytype=window') = 'TRUE' [Mon May 2 10:19:45 2005].181548 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 10:19:45 2005].184400 msOracleSpatialLayerClose was called. Layer connection: user/passwd at BOX.os [Mon May 2 10:19:45 2005].184504 msOracleSpatialLayerClose. Cleaning layerinfo handlers. [Mon May 2 10:19:45 2005].184597 msOracleSpatialLayerClose. Cleaning Oracle handlers. [Mon May 2 10:19:45 2005].184667 msConnPoolRelease(Oracle,user/passwd at BOX.os,0x82f7f78) [Mon May 2 10:19:45 2005].184741 msConnPoolClose(user/passwd at BOX.os,0x82f7f78) Anzahl: 1
0. ErgebnisstdClass Object ( [shapeindex] => 1 [tileindex] => -1 [classindex] => 0 ) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 8137)] msOracleSpatialLayerGetShape (layer=0x8285d60, shape=0x8306c78, record=1) at maporaclespatial.c:2003 2003 msOracleSpatialDataHandler *dthand = (msOracleSpatialDataHandler *)layerinfo->oradatahandlers; Am Donnerstag, den 28.04.2005, 11:42 -0300 schrieb Fernando Simon: > Hi Nicol, > This problem can be a bug in maporaclespatial.c in 4.4.2 version. > In this version of Mapserver the maporaclespatial is a 1.16 version, > a old version (now it is a 1.25). I fixed some problems with OCI > handlers between 1.6 and 1.25, the last version 1.25 can work > correctly for you. > But, it's a strange problem, how did you define oracle spatial > layer? Did you define the template for the layer? Did you define any > filter parameter for the layer? > Thanks. > > ps: for cvs version specify the --enable-point-z-m flag > > ------------------------------------------------------------------------ > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://g10.cttmar.univali.br - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > > Citando Nicol Hermann : > > > Dear list, > > > > I want to use the query function of the native Oracle Spatial > > support > > (INPUT=ORACLESPATIAL) from mapserver 4.4.2. > > Displaying the image is no problem but when try to get the query > > results > > mapserver crashes with a segmentation fault. > > > > Here is what i try to do: > > > > for($j = 0;$j < $Layer->getNumResults(); $j++) { > > $oRes = $Layer->getResult($j); > > $shpobj = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); > > // <- > > Line which causes the Segmentation fault > > $shpobj->free(); > > } > > > > Is this a bug or do i have to change something? > > My system is: > > Debian sarge, mapserver 4.4.2 (php Mapscript), oracle 10g > > > > Attached you find the output of gdb. > > ------------------------------------------------- > Univali - Webmail - http://webmail.univali.br > > From Dejan.Gambin at PULA.HR Mon May 2 01:57:13 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Mon, 2 May 2005 10:57:13 +0200 Subject: Transparent hatch patterns in MapServer Message-ID: Hi, I would like to have a hatch for my polygon (for example a cross hatch) that could be transparent, so that I can see an ortophoto tiff image on the layer below. Is it possible? There is TRANSPARENT parameter in Symbol reference but I don't know if this can solve my problem. Thanks in advance Dejan From BEN at SYNCERA-ITSOLUTIONS.NL Mon May 2 01:57:28 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 2 May 2005 10:57:28 +0200 Subject: mapserv segfaults trying to get the query results of a native oracle spati Message-ID: Hi Nicol, In order to use query functionality you need to define a different DATA statement, something like: DATA "GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027" where ID is the name of your unique column (primary key most of the time). Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Nicol Hermann 05/02/05 10:50am >>> Hi Fernando, thank you very much for your e-mail. I tried the latest CVS version ($Id: maporaclespatial.c,v 1.26 2005/04/28 22:19:41 rodrigo Exp $) with the '--enable-point-z-m' compiling flag but it did not change the situation. Mapserver crashes when it try to access the search results with: $shpobj = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); I also found, that nearly the hole map-object is empty when i add the '--enable-point-z-m' compiling flag (see attached gdb output) and try to access it with PHP Mapscript. $map = ms_newMapObj('oracle_test_gk3.map') or die('Error.'); var_dump($map); Removing this flag gives me the normal look. Here is my oracle layer definition. Yes i define a template, and no i did not define any filter parameter: LAYER NAME Oracle STATUS DEFAULT TYPE POLYGON DEBUG ON CONNECTIONTYPE oraclespatial CONNECTION "user/passwd at BOX.os" DATA "GEOMETRIE from FLURST USING SRID 82027" PROJECTION "init=epsg:31467" END CLASS NAME gw TEMPLATE "dummy.html" STYLE COLOR 192 192 192 OUTLINECOLOR 0 0 0 END END END Should i open a bug on this? Many thanks Nicol gdb-Output: nicol at emil:~/public_html/mapserver/dev$ gdb php GNU gdb 6.3-debian Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-linux"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run nativ_oraclequelle_query.php Starting program: /usr/local/bin/php nativ_oraclequelle_query.php [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 8137)] Content-type: text/html X-Powered-By: PHP/4.3.8 ms_map_obj Object ( [_handle_] => Resource id #1 [numlayers] => 1 [name] => Karte [status] => 1 [debug] => 0 [width] => 300 [height] => 300 [maxsize] => 2048 [transparent] => 0 [interlace] => 0 [imagetype] => [imagequality] => 0 [extent] => ms_rect_obj Object ( [_handle_] => Resource id #2 [minx] => 0 [miny] => 0 [maxx] => 0 [maxy] => 0 ) [cellsize] => 0 [units] => 0 [scale] => 0 [resolution] => 0 [shapepath] => [keysizex] => 0 [keysizey] => 0 [keyspacingx] => 0 [keyspacingy] => 0 [symbolsetfilename] => [fontsetfilename] => [mappath] => [imagecolor] => ms_color_obj Object ( [_handle_] => Resource id #3 [red] => 0 [green] => 0 [blue] => 0 ) [web] => ms_web_obj Object ( [_handle_] => Resource id #4 [log] => [imagepath] => [template] => [imageurl] => [header] => [footer] => [empty] => [error] => [mintemplate] => [maxtemplate] => [minscale] => 0 [maxscale] => 0 [queryformat] => [extent] => ms_rect_obj Object ( [_handle_] => Resource id #5 [minx] => 0 [miny] => 0 [maxx] => 0 [maxy] => 0 ) ) [reference] => ms_reference_obj Object ( [_handle_] => Resource id #6 [image] => [width] => 0 [height] => 0 [status] => 0 [extent] => ms_rect_obj Object ( [_handle_] => Resource id #7 [minx] => 0 [miny] => 0 [maxx] => 0 [maxy] => 0 ) [color] => ms_color_obj Object ( [_handle_] => Resource id #8 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #9 [red] => 0 [green] => 0 [blue] => 0 ) ) [scalebar] => ms_scalebar_obj Object ( [_handle_] => Resource id #10 [height] => 0 [width] => 0 [style] => 0 [intervals] => 0 [units] => 0 [status] => 0 [position] => 0 [transparent] => 0 [interlace] => 0 [postlabelcache] => 0 [label] => ms_label_obj Object ( [_handle_] => Resource id #11 [font] => [encoding] => [type] => 0 [shadowsizex] => 0 [shadowsizey] => 0 [backgroundshadowsizex] => 0 [backgroundshadowsizey] => 0 [size] => 0 [minsize] => 0 [maxsize] => 0 [position] => 0 [offsetx] => 0 [offsety] => 0 [angle] => 0 [autoangle] => 0 [buffer] => 0 [antialias] => 0 [wrap] => 0 [minfeaturesize] => 0 [autominfeaturesize] => 0 [mindistance] => 0 [partials] => 0 [force] => 0 [color] => ms_color_obj Object ( [_handle_] => Resource id #12 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #13 [red] => 0 [green] => 0 [blue] => 0 ) [shadowcolor] => ms_color_obj Object ( [_handle_] => Resource id #14 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundcolor] => ms_color_obj Object ( [_handle_] => Resource id #15 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundshadowcolor] => ms_color_obj Object ( [_handle_] => Resource id #16 [red] => 0 [green] => 0 [blue] => 0 ) ) [imagecolor] => ms_color_obj Object ( [_handle_] => Resource id #17 [red] => 0 [green] => 0 [blue] => 0 ) [color] => ms_color_obj Object ( [_handle_] => Resource id #18 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundcolor] => ms_color_obj Object ( [_handle_] => Resource id #19 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #20 [red] => 0 [green] => 0 [blue] => 0 ) ) [legend] => ms_legend_obj Object ( [_handle_] => Resource id #21 [height] => 0 [width] => 0 [keysizex] => 0 [keysizey] => 0 [keyspacingx] => 0 [keyspacingy] => 0 [status] => 0 [position] => 0 [transparent] => 0 [interlace] => 0 [postlabelcache] => 0 [template] => [label] => ms_label_obj Object ( [_handle_] => Resource id #22 [font] => [encoding] => [type] => 0 [shadowsizex] => 0 [shadowsizey] => 0 [backgroundshadowsizex] => 0 [backgroundshadowsizey] => 0 [size] => 0 [minsize] => 0 [maxsize] => 0 [position] => 0 [offsetx] => 0 [offsety] => 0 [angle] => 0 [autoangle] => 0 [buffer] => 0 [antialias] => 0 [wrap] => 0 [minfeaturesize] => 0 [autominfeaturesize] => 0 [mindistance] => 0 [partials] => 0 [force] => 0 [color] => ms_color_obj Object ( [_handle_] => Resource id #23 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #24 [red] => 0 [green] => 0 [blue] => 0 ) [shadowcolor] => ms_color_obj Object ( [_handle_] => Resource id #25 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundcolor] => ms_color_obj Object ( [_handle_] => Resource id #26 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundshadowcolor] => ms_color_obj Object ( [_handle_] => Resource id #27 [red] => 0 [green] => 0 [blue] => 0 ) ) [imagecolor] => ms_color_obj Object ( [_handle_] => Resource id #28 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #29 [red] => 0 [green] => 0 [blue] => 0 ) ) [latlon] => ms_projection_obj Object ( [_handle_] => Resource id #30 ) [outputformat] => [labelcache] => ms_labelcache_obj Object ( [_handle_] => Resource id #31 ) ) [Mon May 2 10:19:22 2005].888452 msOracleSpatialLayerOpen called with: GEOMETRIE from FLURST USING SRID 82027 [Mon May 2 10:19:23 2005].93962 msOracleSpatialLayerOpen. Shared connection not available. Creating one. [Mon May 2 10:19:23 2005].94024 msConnPoolRegister(Oracle,user/passwd at BOX.os,0x82bcd78) [Mon May 2 10:19:23 2005].100358 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 10:19:23 2005].101489 msOracleSpatialLayerWhichShapes was called. [Mon May 2 10:19:23 2005].101597 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT rownum, GEOMETRIE FROM FLURST WHERE SDO_FILTER( GEOMETRIE, MDSYS.SDO_GEOMETRY(2003, 82027, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(3384094.22,5499947.53,3427070.22,5542923.53) ),'querytype=window') = 'TRUE' [Mon May 2 10:19:45 2005].111568 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 10:19:45 2005].111754 msOracleSpatialLayerClose was called. Layer connection: user/passwd at BOX.os [Mon May 2 10:19:45 2005].111825 msOracleSpatialLayerClose. Cleaning layerinfo handlers. [Mon May 2 10:19:45 2005].111964 msOracleSpatialLayerClose. Cleaning Oracle handlers. [Mon May 2 10:19:45 2005].112050 msConnPoolRelease(Oracle,user/passwd at BOX.os,0x82bcd78) [Mon May 2 10:19:45 2005].112124 msConnPoolClose(user/passwd at BOX.os,0x82bcd78)

Anzahl der Layer: 1 - Anzahl der Klassen dieses Layers: [Mon May 2 10:19:45 2005].129564 msOracleSpatialLayerOpen called with: GEOMETRIE from FLURST USING SRID 82027 [Mon May 2 10:19:45 2005].156144 msOracleSpatialLayerOpen. Shared connection not available. Creating one. [Mon May 2 10:19:45 2005].156290 msConnPoolRegister(Oracle,user/passwd at BOX.os,0x82f7f78) [Mon May 2 10:19:45 2005].161787 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 10:19:45 2005].164368 msOracleSpatialLayerGetItems was called. [Mon May 2 10:19:45 2005].165424 msOracleSpatialLayerInitItemInfo was called. [Mon May 2 10:19:45 2005].166837 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 10:19:45 2005].166931 msOracleSpatialLayerGetItems was called. [Mon May 2 10:19:45 2005].167639 msOracleSpatialLayerInitItemInfo was called. x: 0 - y: 0 [Mon May 2 10:19:45 2005].169442 msOracleSpatialLayerOpen called with: GEOMETRIE from FLURST USING SRID 82027 [Mon May 2 10:19:45 2005].169568 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 10:19:45 2005].169647 msOracleSpatialLayerWhichShapes was called. [Mon May 2 10:19:45 2005].169776 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT rownum, GEOMETRIE FROM FLURST WHERE SDO_FILTER( GEOMETRIE, MDSYS.SDO_GEOMETRY(2003, 82027, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(3405582.22,5521435.53,3405582.22,5521435.53) ),'querytype=window') = 'TRUE' [Mon May 2 10:19:45 2005].181548 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 10:19:45 2005].184400 msOracleSpatialLayerClose was called. Layer connection: user/passwd at BOX.os [Mon May 2 10:19:45 2005].184504 msOracleSpatialLayerClose. Cleaning layerinfo handlers. [Mon May 2 10:19:45 2005].184597 msOracleSpatialLayerClose. Cleaning Oracle handlers. [Mon May 2 10:19:45 2005].184667 msConnPoolRelease(Oracle,user/passwd at BOX.os,0x82f7f78) [Mon May 2 10:19:45 2005].184741 msConnPoolClose(user/passwd at BOX.os,0x82f7f78) Anzahl: 1
0. ErgebnisstdClass Object ( [shapeindex] => 1 [tileindex] => -1 [classindex] => 0 ) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 8137)] msOracleSpatialLayerGetShape (layer=0x8285d60, shape=0x8306c78, record=1) at maporaclespatial.c:2003 2003 msOracleSpatialDataHandler *dthand = (msOracleSpatialDataHandler *)layerinfo->oradatahandlers; Am Donnerstag, den 28.04.2005, 11:42 -0300 schrieb Fernando Simon: > Hi Nicol, > This problem can be a bug in maporaclespatial.c in 4.4.2 version. > In this version of Mapserver the maporaclespatial is a 1.16 version, > a old version (now it is a 1.25). I fixed some problems with OCI > handlers between 1.6 and 1.25, the last version 1.25 can work > correctly for you. > But, it's a strange problem, how did you define oracle spatial > layer? Did you define the template for the layer? Did you define any > filter parameter for the layer? > Thanks. > > ps: for cvs version specify the --enable-point-z-m flag > > ------------------------------------------------------------------------ > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://g10.cttmar.univali.br - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > > Citando Nicol Hermann : > > > Dear list, > > > > I want to use the query function of the native Oracle Spatial > > support > > (INPUT=ORACLESPATIAL) from mapserver 4.4.2. > > Displaying the image is no problem but when try to get the query > > results > > mapserver crashes with a segmentation fault. > > > > Here is what i try to do: > > > > for($j = 0;$j < $Layer->getNumResults(); $j++) { > > $oRes = $Layer->getResult($j); > > $shpobj = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); > > // <- > > Line which causes the Segmentation fault > > $shpobj->free(); > > } > > > > Is this a bug or do i have to change something? > > My system is: > > Debian sarge, mapserver 4.4.2 (php Mapscript), oracle 10g > > > > Attached you find the output of gdb. > > ------------------------------------------------- > Univali - Webmail - http://webmail.univali.br > > From BEN at SYNCERA-ITSOLUTIONS.NL Mon May 2 02:00:17 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 2 May 2005 11:00:17 +0200 Subject: Transparent hatch patterns in MapServer Message-ID: Have a look at: http://mapserver.gis.umn.edu/doc44/cartographic-symbols.html that should answer your question. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Gambin Dejan 05/02/05 10:57am >>> Hi, I would like to have a hatch for my polygon (for example a cross hatch) that could be transparent, so that I can see an ortophoto tiff image on the layer below. Is it possible? There is TRANSPARENT parameter in Symbol reference but I don't know if this can solve my problem. Thanks in advance Dejan From pscott at UWC.AC.ZA Mon May 2 02:08:53 2005 From: pscott at UWC.AC.ZA (Paul Scott) Date: Mon, 2 May 2005 11:08:53 +0200 Subject: escaping single quotes Message-ID: One word: addslashes(); PHP does it for you with the function addslashes(); '[GEMNAAM]'= addslashes('$gemnaam'); --Paul >>> Ace Suares 05/02/05 4:53 AM >>> dear list, I have the following situation: 1. a column in my shapefile (.dbf) that is called GEMNAAM 2. 482 gemeentes (counties), 3 of them starting with an ' (an apostroph or single quote). 3. a filter that looks like '[GEMNAAM]'='$gemnaam' where $gemnaam iterates over (some of) the 482 gemeentes The problem seems to be that the single quote in the $gemnaam is not being escaped, and I have no idea how to escape it. Is there an escape mechanism for single quotes ? I tried double quotes i.e. '[GEMNAAM]'="$gemnaam" but apparently to no avail. Much obliged for any hint. (However, that won't bring back the past 4 hours of my life). _ace -- I wanna be the squeezer, and not the squeezie. - Bootsy Ace Suares' Internet Consultancy mail: PObox 2599, 4800 CN Breda, The Netherlands phone: +31 6 244 33 608 (Jan Veuger, support Netherlands) emergency: +599 786 23 73 voicemail & fax: +31 848 707 705 web: http://www.suares.nl email: support at suares.nl From webmaster at 2ID-DESIGN.COM Mon May 2 02:18:26 2005 From: webmaster at 2ID-DESIGN.COM (S.Nicolas - Webmaster) Date: Mon, 2 May 2005 10:18:26 +0100 Subject: Line between 2 points In-Reply-To: Message-ID: Hi, I am successfully tracing a line between 2 points on my map (I get the coordinate from long and lat). The line traced on the map is correct but is displayed as a straight line. I was wondering if it was possible to add some "curve" to the line displayed. I am using $lineObj->add($oPoint); S. NICOLAS -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.0 - Release Date: 29/04/2005 From mapserver at GEOWORLD.DE Mon May 2 02:17:03 2005 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Mon, 2 May 2005 11:17:03 +0200 Subject: mapserv segfaults trying to get the query results of a native oracle spati In-Reply-To: Message-ID: Hi Bart, Fernando, List thank you for your mail. I changed the DATA statement according to your advice. The statement is: DATA "GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027" Sadly this changes nothing. I further get a segfault. Attached the new gdb output: nicol at emil:~/public_html/mapserver/dev$ gdb php GNU gdb 6.3-debian Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-linux"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run nativ_oraclequelle_query.php Starting program: /usr/local/bin/php nativ_oraclequelle_query.php [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 8349)] Content-type: text/html X-Powered-By: PHP/4.3.8 ms_map_obj Object ( [_handle_] => Resource id #1 [numlayers] => 1 [name] => Karte [status] => 1 [debug] => 0 [width] => 300 [height] => 300 [maxsize] => 2048 [transparent] => 0 [interlace] => 0 [imagetype] => [imagequality] => 0 [extent] => ms_rect_obj Object ( [_handle_] => Resource id #2 [minx] => 0 [miny] => 0 [maxx] => 0 [maxy] => 0 ) [cellsize] => 0 [units] => 0 [scale] => 0 [resolution] => 0 [shapepath] => [keysizex] => 0 [keysizey] => 0 [keyspacingx] => 0 [keyspacingy] => 0 [symbolsetfilename] => [fontsetfilename] => [mappath] => [imagecolor] => ms_color_obj Object ( [_handle_] => Resource id #3 [red] => 0 [green] => 0 [blue] => 0 ) [web] => ms_web_obj Object ( [_handle_] => Resource id #4 [log] => [imagepath] => [template] => [imageurl] => [header] => [footer] => [empty] => [error] => [mintemplate] => [maxtemplate] => [minscale] => 0 [maxscale] => 0 [queryformat] => [extent] => ms_rect_obj Object ( [_handle_] => Resource id #5 [minx] => 0 [miny] => 0 [maxx] => 0 [maxy] => 0 ) ) [reference] => ms_reference_obj Object ( [_handle_] => Resource id #6 [image] => [width] => 0 [height] => 0 [status] => 0 [extent] => ms_rect_obj Object ( [_handle_] => Resource id #7 [minx] => 0 [miny] => 0 [maxx] => 0 [maxy] => 0 ) [color] => ms_color_obj Object ( [_handle_] => Resource id #8 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #9 [red] => 0 [green] => 0 [blue] => 0 ) ) [scalebar] => ms_scalebar_obj Object ( [_handle_] => Resource id #10 [height] => 0 [width] => 0 [style] => 0 [intervals] => 0 [units] => 0 [status] => 0 [position] => 0 [transparent] => 0 [interlace] => 0 [postlabelcache] => 0 [label] => ms_label_obj Object ( [_handle_] => Resource id #11 [font] => [encoding] => [type] => 0 [shadowsizex] => 0 [shadowsizey] => 0 [backgroundshadowsizex] => 0 [backgroundshadowsizey] => 0 [size] => 0 [minsize] => 0 [maxsize] => 0 [position] => 0 [offsetx] => 0 [offsety] => 0 [angle] => 0 [autoangle] => 0 [buffer] => 0 [antialias] => 0 [wrap] => 0 [minfeaturesize] => 0 [autominfeaturesize] => 0 [mindistance] => 0 [partials] => 0 [force] => 0 [color] => ms_color_obj Object ( [_handle_] => Resource id #12 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #13 [red] => 0 [green] => 0 [blue] => 0 ) [shadowcolor] => ms_color_obj Object ( [_handle_] => Resource id #14 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundcolor] => ms_color_obj Object ( [_handle_] => Resource id #15 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundshadowcolor] => ms_color_obj Object ( [_handle_] => Resource id #16 [red] => 0 [green] => 0 [blue] => 0 ) ) [imagecolor] => ms_color_obj Object ( [_handle_] => Resource id #17 [red] => 0 [green] => 0 [blue] => 0 ) [color] => ms_color_obj Object ( [_handle_] => Resource id #18 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundcolor] => ms_color_obj Object ( [_handle_] => Resource id #19 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #20 [red] => 0 [green] => 0 [blue] => 0 ) ) [legend] => ms_legend_obj Object ( [_handle_] => Resource id #21 [height] => 0 [width] => 0 [keysizex] => 0 [keysizey] => 0 [keyspacingx] => 0 [keyspacingy] => 0 [status] => 0 [position] => 0 [transparent] => 0 [interlace] => 0 [postlabelcache] => 0 [template] => [label] => ms_label_obj Object ( [_handle_] => Resource id #22 [font] => [encoding] => [type] => 0 [shadowsizex] => 0 [shadowsizey] => 0 [backgroundshadowsizex] => 0 [backgroundshadowsizey] => 0 [size] => 0 [minsize] => 0 [maxsize] => 0 [position] => 0 [offsetx] => 0 [offsety] => 0 [angle] => 0 [autoangle] => 0 [buffer] => 0 [antialias] => 0 [wrap] => 0 [minfeaturesize] => 0 [autominfeaturesize] => 0 [mindistance] => 0 [partials] => 0 [force] => 0 [color] => ms_color_obj Object ( [_handle_] => Resource id #23 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #24 [red] => 0 [green] => 0 [blue] => 0 ) [shadowcolor] => ms_color_obj Object ( [_handle_] => Resource id #25 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundcolor] => ms_color_obj Object ( [_handle_] => Resource id #26 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundshadowcolor] => ms_color_obj Object ( [_handle_] => Resource id #27 [red] => 0 [green] => 0 [blue] => 0 ) ) [imagecolor] => ms_color_obj Object ( [_handle_] => Resource id #28 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #29 [red] => 0 [green] => 0 [blue] => 0 ) ) [latlon] => ms_projection_obj Object ( [_handle_] => Resource id #30 ) [outputformat] => [labelcache] => ms_labelcache_obj Object ( [_handle_] => Resource id #31 ) ) [Mon May 2 11:07:01 2005].683777 msOracleSpatialLayerOpen called with: GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027 [Mon May 2 11:07:01 2005].846399 msOracleSpatialLayerOpen. Shared connection not available. Creating one. [Mon May 2 11:07:01 2005].846593 msConnPoolRegister(Oracle,user/passwd at BOX.os,0x82bcd98) [Mon May 2 11:07:01 2005].853183 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 11:07:01 2005].882663 msOracleSpatialLayerWhichShapes was called. [Mon May 2 11:07:01 2005].888674 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ID, GEOMETRIE FROM (SELECT * FROM FLURST) WHERE SDO_FILTER( GEOMETRIE, MDSYS.SDO_GEOMETRY(2003, 82027, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(3384094.22,5499947.53,3427070.22,5542923.53) ),'querytype=window') = 'TRUE' [Mon May 2 11:07:23 2005].259709 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 11:07:23 2005].259903 msOracleSpatialLayerClose was called. Layer connection: user/passwd at BOX.os [Mon May 2 11:07:23 2005].259978 msOracleSpatialLayerClose. Cleaning layerinfo handlers. [Mon May 2 11:07:23 2005].260121 msOracleSpatialLayerClose. Cleaning Oracle handlers. [Mon May 2 11:07:23 2005].260214 msConnPoolRelease(Oracle,user/passwd at BOX.os,0x82bcd98) [Mon May 2 11:07:23 2005].260293 msConnPoolClose(user/passwd at BOX.os,0x82bcd98)

Anzahl der Layer: 1 - Anzahl der Klassen dieses Layers: [Mon May 2 11:07:23 2005].372014 msOracleSpatialLayerOpen called with: GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027 [Mon May 2 11:07:23 2005].449381 msOracleSpatialLayerOpen. Shared connection not available. Creating one. [Mon May 2 11:07:23 2005].449542 msConnPoolRegister(Oracle,user/passwd at BOX.os,0x82f7f98) [Mon May 2 11:07:23 2005].455171 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 11:07:23 2005].513718 msOracleSpatialLayerGetItems was called. [Mon May 2 11:07:23 2005].514835 msOracleSpatialLayerInitItemInfo was called. [Mon May 2 11:07:23 2005].527714 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 11:07:23 2005].527815 msOracleSpatialLayerGetItems was called. [Mon May 2 11:07:23 2005].617739 msOracleSpatialLayerInitItemInfo was called. x: 0 - y: 0 [Mon May 2 11:07:23 2005].618040 msOracleSpatialLayerOpen called with: GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027 [Mon May 2 11:07:23 2005].618059 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 11:07:23 2005].618075 msOracleSpatialLayerWhichShapes was called. [Mon May 2 11:07:23 2005].618136 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ID, GEOMETRIE FROM (SELECT * FROM FLURST) WHERE SDO_FILTER( GEOMETRIE, MDSYS.SDO_GEOMETRY(2003, 82027, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(3405582.22,5521435.53,3405582.22,5521435.53) ),'querytype=window') = 'TRUE' [Mon May 2 11:07:23 2005].731214 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 11:07:23 2005].731264 msOracleSpatialLayerClose was called. Layer connection: user/passwd at BOX.os [Mon May 2 11:07:23 2005].731276 msOracleSpatialLayerClose. Cleaning layerinfo handlers. [Mon May 2 11:07:23 2005].731309 msOracleSpatialLayerClose. Cleaning Oracle handlers. [Mon May 2 11:07:23 2005].731321 msConnPoolRelease(Oracle,user/passwd at BOX.os,0x82f7f98) [Mon May 2 11:07:23 2005].731337 msConnPoolClose(user/passwd at BOX.os,0x82f7f98) Anzahl: 1
0. ErgebnisstdClass Object ( [shapeindex] => 0 [tileindex] => -1 [classindex] => 0 ) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 8349)] msOracleSpatialLayerGetShape (layer=0x8285d60, shape=0x82df3e0, record=0) at maporaclespatial.c:2003 2003 msOracleSpatialDataHandler *dthand = (msOracleSpatialDataHandler *)layerinfo->oradatahandlers; Am Montag, den 02.05.2005, 10:57 +0200 schrieb Bart van den Eijnden: > Hi Nicol, > > In order to use query functionality you need to define a different DATA statement, something like: > > DATA "GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027" > > where ID is the name of your unique column (primary key most of the time). > > Best regards, > Bart > > Bart van den Eijnden > Syncera-ITSolutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> Nicol Hermann 05/02/05 10:50am >>> > Hi Fernando, > > thank you very much for your e-mail. > I tried the latest CVS version ($Id: maporaclespatial.c,v 1.26 > 2005/04/28 22:19:41 rodrigo Exp $) with the '--enable-point-z-m' > compiling flag but it did not change the situation. > Mapserver crashes when it try to access the search results with: > > $shpobj = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); > > I also found, that nearly the hole map-object is empty when i add the > '--enable-point-z-m' compiling flag (see attached gdb output) and try to > access it with PHP Mapscript. > > $map = ms_newMapObj('oracle_test_gk3.map') or die('Error.'); > var_dump($map); > > Removing this flag gives me the normal look. > > Here is my oracle layer definition. > Yes i define a template, and no i did not define any filter parameter: > > LAYER > NAME Oracle > STATUS DEFAULT > TYPE POLYGON > DEBUG ON > CONNECTIONTYPE oraclespatial > CONNECTION "user/passwd at BOX.os" > DATA "GEOMETRIE from FLURST USING SRID 82027" > PROJECTION > "init=epsg:31467" > END > CLASS > NAME gw > TEMPLATE "dummy.html" > STYLE > COLOR 192 192 192 > OUTLINECOLOR 0 0 0 > END > END > END > > > Should i open a bug on this? > Many thanks > Nicol > > > gdb-Output: > > > > Am Donnerstag, den 28.04.2005, 11:42 -0300 schrieb Fernando Simon: > > Hi Nicol, > > This problem can be a bug in maporaclespatial.c in 4.4.2 version. > > In this version of Mapserver the maporaclespatial is a 1.16 version, > > a old version (now it is a 1.25). I fixed some problems with OCI > > handlers between 1.6 and 1.25, the last version 1.25 can work > > correctly for you. > > But, it's a strange problem, how did you define oracle spatial > > layer? Did you define the template for the layer? Did you define any > > filter parameter for the layer? > > Thanks. > > > > ps: for cvs version specify the --enable-point-z-m flag > > > > ------------------------------------------------------------------------ > > Fernando Simon > > Mapserver and Oracle Spatial developer > > G10 - Laboratorio de Computacao Aplicada - Brazil > > http://g10.cttmar.univali.br - UNIVALI/CTTMAR > > ------------------------------------------------------------------------ > > > > Citando Nicol Hermann : > > > > > Dear list, > > > > > > I want to use the query function of the native Oracle Spatial > > > support > > > (INPUT=ORACLESPATIAL) from mapserver 4.4.2. > > > Displaying the image is no problem but when try to get the query > > > results > > > mapserver crashes with a segmentation fault. > > > > > > Here is what i try to do: > > > > > > for($j = 0;$j < $Layer->getNumResults(); $j++) { > > > $oRes = $Layer->getResult($j); > > > $shpobj = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); > > > // <- > > > Line which causes the Segmentation fault > > > $shpobj->free(); > > > } > > > > > > Is this a bug or do i have to change something? > > > My system is: > > > Debian sarge, mapserver 4.4.2 (php Mapscript), oracle 10g > > > > > > Attached you find the output of gdb. > > > > > > > > > ------------------------------------------------- > > Univali - Webmail - http://webmail.univali.br > > > > From BEN at SYNCERA-ITSOLUTIONS.NL Mon May 2 02:23:02 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 2 May 2005 11:23:02 +0200 Subject: mapserv segfaults trying to get thequery results of a native oracle spati Message-ID: Hi Nicol, I have had similar crashes on Windows which were solved magically by compiling with Visual Studio 7 instead of 6. But for Fernando a similar situation on Linux worked fine. Can you try the following data statement as a last resort: DATA "GEOMETRIE from (SELECT ID, GEOMETRIE FROM FLURST) USING UNIQUE ID SRID 82027" That used to work for me on Windows even with Visual Studio 6, but then you miss a lot of attribute info ofcourse. Probably Fernando needs to step in and help, but in Brazil it is still quite early I guess :-) Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Nicol Hermann 05/02/05 11:17am >>> Hi Bart, Fernando, List thank you for your mail. I changed the DATA statement according to your advice. The statement is: DATA "GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027" Sadly this changes nothing. I further get a segfault. Attached the new gdb output: nicol at emil:~/public_html/mapserver/dev$ gdb php GNU gdb 6.3-debian Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-linux"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run nativ_oraclequelle_query.php Starting program: /usr/local/bin/php nativ_oraclequelle_query.php [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 8349)] Content-type: text/html X-Powered-By: PHP/4.3.8 ms_map_obj Object ( [_handle_] => Resource id #1 [numlayers] => 1 [name] => Karte [status] => 1 [debug] => 0 [width] => 300 [height] => 300 [maxsize] => 2048 [transparent] => 0 [interlace] => 0 [imagetype] => [imagequality] => 0 [extent] => ms_rect_obj Object ( [_handle_] => Resource id #2 [minx] => 0 [miny] => 0 [maxx] => 0 [maxy] => 0 ) [cellsize] => 0 [units] => 0 [scale] => 0 [resolution] => 0 [shapepath] => [keysizex] => 0 [keysizey] => 0 [keyspacingx] => 0 [keyspacingy] => 0 [symbolsetfilename] => [fontsetfilename] => [mappath] => [imagecolor] => ms_color_obj Object ( [_handle_] => Resource id #3 [red] => 0 [green] => 0 [blue] => 0 ) [web] => ms_web_obj Object ( [_handle_] => Resource id #4 [log] => [imagepath] => [template] => [imageurl] => [header] => [footer] => [empty] => [error] => [mintemplate] => [maxtemplate] => [minscale] => 0 [maxscale] => 0 [queryformat] => [extent] => ms_rect_obj Object ( [_handle_] => Resource id #5 [minx] => 0 [miny] => 0 [maxx] => 0 [maxy] => 0 ) ) [reference] => ms_reference_obj Object ( [_handle_] => Resource id #6 [image] => [width] => 0 [height] => 0 [status] => 0 [extent] => ms_rect_obj Object ( [_handle_] => Resource id #7 [minx] => 0 [miny] => 0 [maxx] => 0 [maxy] => 0 ) [color] => ms_color_obj Object ( [_handle_] => Resource id #8 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #9 [red] => 0 [green] => 0 [blue] => 0 ) ) [scalebar] => ms_scalebar_obj Object ( [_handle_] => Resource id #10 [height] => 0 [width] => 0 [style] => 0 [intervals] => 0 [units] => 0 [status] => 0 [position] => 0 [transparent] => 0 [interlace] => 0 [postlabelcache] => 0 [label] => ms_label_obj Object ( [_handle_] => Resource id #11 [font] => [encoding] => [type] => 0 [shadowsizex] => 0 [shadowsizey] => 0 [backgroundshadowsizex] => 0 [backgroundshadowsizey] => 0 [size] => 0 [minsize] => 0 [maxsize] => 0 [position] => 0 [offsetx] => 0 [offsety] => 0 [angle] => 0 [autoangle] => 0 [buffer] => 0 [antialias] => 0 [wrap] => 0 [minfeaturesize] => 0 [autominfeaturesize] => 0 [mindistance] => 0 [partials] => 0 [force] => 0 [color] => ms_color_obj Object ( [_handle_] => Resource id #12 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #13 [red] => 0 [green] => 0 [blue] => 0 ) [shadowcolor] => ms_color_obj Object ( [_handle_] => Resource id #14 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundcolor] => ms_color_obj Object ( [_handle_] => Resource id #15 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundshadowcolor] => ms_color_obj Object ( [_handle_] => Resource id #16 [red] => 0 [green] => 0 [blue] => 0 ) ) [imagecolor] => ms_color_obj Object ( [_handle_] => Resource id #17 [red] => 0 [green] => 0 [blue] => 0 ) [color] => ms_color_obj Object ( [_handle_] => Resource id #18 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundcolor] => ms_color_obj Object ( [_handle_] => Resource id #19 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #20 [red] => 0 [green] => 0 [blue] => 0 ) ) [legend] => ms_legend_obj Object ( [_handle_] => Resource id #21 [height] => 0 [width] => 0 [keysizex] => 0 [keysizey] => 0 [keyspacingx] => 0 [keyspacingy] => 0 [status] => 0 [position] => 0 [transparent] => 0 [interlace] => 0 [postlabelcache] => 0 [template] => [label] => ms_label_obj Object ( [_handle_] => Resource id #22 [font] => [encoding] => [type] => 0 [shadowsizex] => 0 [shadowsizey] => 0 [backgroundshadowsizex] => 0 [backgroundshadowsizey] => 0 [size] => 0 [minsize] => 0 [maxsize] => 0 [position] => 0 [offsetx] => 0 [offsety] => 0 [angle] => 0 [autoangle] => 0 [buffer] => 0 [antialias] => 0 [wrap] => 0 [minfeaturesize] => 0 [autominfeaturesize] => 0 [mindistance] => 0 [partials] => 0 [force] => 0 [color] => ms_color_obj Object ( [_handle_] => Resource id #23 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #24 [red] => 0 [green] => 0 [blue] => 0 ) [shadowcolor] => ms_color_obj Object ( [_handle_] => Resource id #25 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundcolor] => ms_color_obj Object ( [_handle_] => Resource id #26 [red] => 0 [green] => 0 [blue] => 0 ) [backgroundshadowcolor] => ms_color_obj Object ( [_handle_] => Resource id #27 [red] => 0 [green] => 0 [blue] => 0 ) ) [imagecolor] => ms_color_obj Object ( [_handle_] => Resource id #28 [red] => 0 [green] => 0 [blue] => 0 ) [outlinecolor] => ms_color_obj Object ( [_handle_] => Resource id #29 [red] => 0 [green] => 0 [blue] => 0 ) ) [latlon] => ms_projection_obj Object ( [_handle_] => Resource id #30 ) [outputformat] => [labelcache] => ms_labelcache_obj Object ( [_handle_] => Resource id #31 ) ) [Mon May 2 11:07:01 2005].683777 msOracleSpatialLayerOpen called with: GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027 [Mon May 2 11:07:01 2005].846399 msOracleSpatialLayerOpen. Shared connection not available. Creating one. [Mon May 2 11:07:01 2005].846593 msConnPoolRegister(Oracle,user/passwd at BOX.os,0x82bcd98) [Mon May 2 11:07:01 2005].853183 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 11:07:01 2005].882663 msOracleSpatialLayerWhichShapes was called. [Mon May 2 11:07:01 2005].888674 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ID, GEOMETRIE FROM (SELECT * FROM FLURST) WHERE SDO_FILTER( GEOMETRIE, MDSYS.SDO_GEOMETRY(2003, 82027, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(3384094.22,5499947.53,3427070.22,5542923.53) ),'querytype=window') = 'TRUE' [Mon May 2 11:07:23 2005].259709 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 11:07:23 2005].259903 msOracleSpatialLayerClose was called. Layer connection: user/passwd at BOX.os [Mon May 2 11:07:23 2005].259978 msOracleSpatialLayerClose. Cleaning layerinfo handlers. [Mon May 2 11:07:23 2005].260121 msOracleSpatialLayerClose. Cleaning Oracle handlers. [Mon May 2 11:07:23 2005].260214 msConnPoolRelease(Oracle,user/passwd at BOX.os,0x82bcd98) [Mon May 2 11:07:23 2005].260293 msConnPoolClose(user/passwd at BOX.os,0x82bcd98)

Anzahl der Layer: 1 - Anzahl der Klassen dieses Layers: [Mon May 2 11:07:23 2005].372014 msOracleSpatialLayerOpen called with: GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027 [Mon May 2 11:07:23 2005].449381 msOracleSpatialLayerOpen. Shared connection not available. Creating one. [Mon May 2 11:07:23 2005].449542 msConnPoolRegister(Oracle,user/passwd at BOX.os,0x82f7f98) [Mon May 2 11:07:23 2005].455171 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 11:07:23 2005].513718 msOracleSpatialLayerGetItems was called. [Mon May 2 11:07:23 2005].514835 msOracleSpatialLayerInitItemInfo was called. [Mon May 2 11:07:23 2005].527714 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 11:07:23 2005].527815 msOracleSpatialLayerGetItems was called. [Mon May 2 11:07:23 2005].617739 msOracleSpatialLayerInitItemInfo was called. x: 0 - y: 0 [Mon May 2 11:07:23 2005].618040 msOracleSpatialLayerOpen called with: GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027 [Mon May 2 11:07:23 2005].618059 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 11:07:23 2005].618075 msOracleSpatialLayerWhichShapes was called. [Mon May 2 11:07:23 2005].618136 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ID, GEOMETRIE FROM (SELECT * FROM FLURST) WHERE SDO_FILTER( GEOMETRIE, MDSYS.SDO_GEOMETRY(2003, 82027, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(3405582.22,5521435.53,3405582.22,5521435.53) ),'querytype=window') = 'TRUE' [Mon May 2 11:07:23 2005].731214 msOracleSpatialLayerFreeItemInfo was called. [Mon May 2 11:07:23 2005].731264 msOracleSpatialLayerClose was called. Layer connection: user/passwd at BOX.os [Mon May 2 11:07:23 2005].731276 msOracleSpatialLayerClose. Cleaning layerinfo handlers. [Mon May 2 11:07:23 2005].731309 msOracleSpatialLayerClose. Cleaning Oracle handlers. [Mon May 2 11:07:23 2005].731321 msConnPoolRelease(Oracle,user/passwd at BOX.os,0x82f7f98) [Mon May 2 11:07:23 2005].731337 msConnPoolClose(user/passwd at BOX.os,0x82f7f98) Anzahl: 1
0. ErgebnisstdClass Object ( [shapeindex] => 0 [tileindex] => -1 [classindex] => 0 ) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 8349)] msOracleSpatialLayerGetShape (layer=0x8285d60, shape=0x82df3e0, record=0) at maporaclespatial.c:2003 2003 msOracleSpatialDataHandler *dthand = (msOracleSpatialDataHandler *)layerinfo->oradatahandlers; Am Montag, den 02.05.2005, 10:57 +0200 schrieb Bart van den Eijnden: > Hi Nicol, > > In order to use query functionality you need to define a different DATA statement, something like: > > DATA "GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027" > > where ID is the name of your unique column (primary key most of the time). > > Best regards, > Bart > > Bart van den Eijnden > Syncera-ITSolutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> Nicol Hermann 05/02/05 10:50am >>> > Hi Fernando, > > thank you very much for your e-mail. > I tried the latest CVS version ($Id: maporaclespatial.c,v 1.26 > 2005/04/28 22:19:41 rodrigo Exp $) with the '--enable-point-z-m' > compiling flag but it did not change the situation. > Mapserver crashes when it try to access the search results with: > > $shpobj = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); > > I also found, that nearly the hole map-object is empty when i add the > '--enable-point-z-m' compiling flag (see attached gdb output) and try to > access it with PHP Mapscript. > > $map = ms_newMapObj('oracle_test_gk3.map') or die('Error.'); > var_dump($map); > > Removing this flag gives me the normal look. > > Here is my oracle layer definition. > Yes i define a template, and no i did not define any filter parameter: > > LAYER > NAME Oracle > STATUS DEFAULT > TYPE POLYGON > DEBUG ON > CONNECTIONTYPE oraclespatial > CONNECTION "user/passwd at BOX.os" > DATA "GEOMETRIE from FLURST USING SRID 82027" > PROJECTION > "init=epsg:31467" > END > CLASS > NAME gw > TEMPLATE "dummy.html" > STYLE > COLOR 192 192 192 > OUTLINECOLOR 0 0 0 > END > END > END > > > Should i open a bug on this? > Many thanks > Nicol > > > gdb-Output: > > > > Am Donnerstag, den 28.04.2005, 11:42 -0300 schrieb Fernando Simon: > > Hi Nicol, > > This problem can be a bug in maporaclespatial.c in 4.4.2 version. > > In this version of Mapserver the maporaclespatial is a 1.16 version, > > a old version (now it is a 1.25). I fixed some problems with OCI > > handlers between 1.6 and 1.25, the last version 1.25 can work > > correctly for you. > > But, it's a strange problem, how did you define oracle spatial > > layer? Did you define the template for the layer? Did you define any > > filter parameter for the layer? > > Thanks. > > > > ps: for cvs version specify the --enable-point-z-m flag > > > > ------------------------------------------------------------------------ > > Fernando Simon > > Mapserver and Oracle Spatial developer > > G10 - Laboratorio de Computacao Aplicada - Brazil > > http://g10.cttmar.univali.br - UNIVALI/CTTMAR > > ------------------------------------------------------------------------ > > > > Citando Nicol Hermann : > > > > > Dear list, > > > > > > I want to use the query function of the native Oracle Spatial > > > support > > > (INPUT=ORACLESPATIAL) from mapserver 4.4.2. > > > Displaying the image is no problem but when try to get the query > > > results > > > mapserver crashes with a segmentation fault. > > > > > > Here is what i try to do: > > > > > > for($j = 0;$j < $Layer->getNumResults(); $j++) { > > > $oRes = $Layer->getResult($j); > > > $shpobj = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); > > > // <- > > > Line which causes the Segmentation fault > > > $shpobj->free(); > > > } > > > > > > Is this a bug or do i have to change something? > > > My system is: > > > Debian sarge, mapserver 4.4.2 (php Mapscript), oracle 10g > > > > > > Attached you find the output of gdb. > > > > > > > > > ------------------------------------------------- > > Univali - Webmail - http://webmail.univali.br > > > > From mapserver at GEOWORLD.DE Mon May 2 02:40:19 2005 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Mon, 2 May 2005 11:40:19 +0200 Subject: mapserv segfaults trying to get thequery results of a native oracle spati In-Reply-To: Message-ID: Hi Bart, thanks again for your mail. I changed the data statement one more time but unfortunately without luck. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 8480)] msOracleSpatialLayerGetShape (layer=0x8285d60, shape=0x82ff510, record=0) at maporaclespatial.c:2003 2003 msOracleSpatialDataHandler *dthand = (msOracleSpatialDataHandler *)layerinfo->oradatahandlers; Yes i think Fernando needs to step in. Thanks again for your help Nicol Am Montag, den 02.05.2005, 11:23 +0200 schrieb Bart van den Eijnden: > Hi Nicol, > > I have had similar crashes on Windows which were solved magically by compiling with Visual Studio 7 instead of 6. But for Fernando a similar situation on Linux worked fine. > > Can you try the following data statement as a last resort: > > DATA "GEOMETRIE from (SELECT ID, GEOMETRIE FROM FLURST) USING UNIQUE ID SRID 82027" > > That used to work for me on Windows even with Visual Studio 6, but then you miss a lot of attribute info ofcourse. > > Probably Fernando needs to step in and help, but in Brazil it is still quite early I guess :-) > > Best regards, > Bart > > Bart van den Eijnden > Syncera-ITSolutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> Nicol Hermann 05/02/05 11:17am >>> > Hi Bart, Fernando, List > > thank you for your mail. > I changed the DATA statement according to your advice. > The statement is: > DATA "GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027" > > Sadly this changes nothing. I further get a segfault. > Attached the new gdb output: > > nicol at emil:~/public_html/mapserver/dev$ gdb php > GNU gdb 6.3-debian > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. > This GDB was configured as "i386-linux"...Using host libthread_db > library "/lib/libthread_db.so.1". > > (gdb) run nativ_oraclequelle_query.php > Starting program: /usr/local/bin/php nativ_oraclequelle_query.php > [Thread debugging using libthread_db enabled] > [New Thread 16384 (LWP 8349)] > Content-type: text/html > X-Powered-By: PHP/4.3.8 > > ms_map_obj Object > ( > [_handle_] => Resource id #1 > [numlayers] => 1 > [name] => Karte > [status] => 1 > [debug] => 0 > [width] => 300 > [height] => 300 > [maxsize] => 2048 > [transparent] => 0 > [interlace] => 0 > [imagetype] => > [imagequality] => 0 > [extent] => ms_rect_obj Object > ( > [_handle_] => Resource id #2 > [minx] => 0 > [miny] => 0 > [maxx] => 0 > [maxy] => 0 > ) > > [cellsize] => 0 > [units] => 0 > [scale] => 0 > [resolution] => 0 > [shapepath] => > [keysizex] => 0 > [keysizey] => 0 > [keyspacingx] => 0 > [keyspacingy] => 0 > [symbolsetfilename] => > [fontsetfilename] => > [mappath] => > [imagecolor] => ms_color_obj Object > ( > [_handle_] => Resource id #3 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > [web] => ms_web_obj Object > ( > [_handle_] => Resource id #4 > [log] => > [imagepath] => > [template] => > [imageurl] => > [header] => > [footer] => > [empty] => > [error] => > [mintemplate] => > [maxtemplate] => > [minscale] => 0 > [maxscale] => 0 > [queryformat] => > [extent] => ms_rect_obj Object > ( > [_handle_] => Resource id #5 > [minx] => 0 > [miny] => 0 > [maxx] => 0 > [maxy] => 0 > ) > > ) > > [reference] => ms_reference_obj Object > ( > [_handle_] => Resource id #6 > [image] => > [width] => 0 > [height] => 0 > [status] => 0 > [extent] => ms_rect_obj Object > ( > [_handle_] => Resource id #7 > [minx] => 0 > [miny] => 0 > [maxx] => 0 > [maxy] => 0 > ) > > [color] => ms_color_obj Object > ( > [_handle_] => Resource id #8 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > [outlinecolor] => ms_color_obj Object > ( > [_handle_] => Resource id #9 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > ) > > [scalebar] => ms_scalebar_obj Object > ( > [_handle_] => Resource id #10 > [height] => 0 > [width] => 0 > [style] => 0 > [intervals] => 0 > [units] => 0 > [status] => 0 > [position] => 0 > [transparent] => 0 > [interlace] => 0 > [postlabelcache] => 0 > [label] => ms_label_obj Object > ( > [_handle_] => Resource id #11 > [font] => > [encoding] => > [type] => 0 > [shadowsizex] => 0 > [shadowsizey] => 0 > [backgroundshadowsizex] => 0 > [backgroundshadowsizey] => 0 > [size] => 0 > [minsize] => 0 > [maxsize] => 0 > [position] => 0 > [offsetx] => 0 > [offsety] => 0 > [angle] => 0 > [autoangle] => 0 > [buffer] => 0 > [antialias] => 0 > [wrap] => 0 > [minfeaturesize] => 0 > [autominfeaturesize] => 0 > [mindistance] => 0 > [partials] => 0 > [force] => 0 > [color] => ms_color_obj Object > ( > [_handle_] => Resource id #12 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > [outlinecolor] => ms_color_obj Object > ( > [_handle_] => Resource id #13 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > [shadowcolor] => ms_color_obj Object > ( > [_handle_] => Resource id #14 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > [backgroundcolor] => ms_color_obj Object > ( > [_handle_] => Resource id #15 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > [backgroundshadowcolor] => ms_color_obj Object > ( > [_handle_] => Resource id #16 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > ) > > [imagecolor] => ms_color_obj Object > ( > [_handle_] => Resource id #17 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > [color] => ms_color_obj Object > ( > [_handle_] => Resource id #18 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > [backgroundcolor] => ms_color_obj Object > ( > [_handle_] => Resource id #19 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > [outlinecolor] => ms_color_obj Object > ( > [_handle_] => Resource id #20 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > ) > > [legend] => ms_legend_obj Object > ( > [_handle_] => Resource id #21 > [height] => 0 > [width] => 0 > [keysizex] => 0 > [keysizey] => 0 > [keyspacingx] => 0 > [keyspacingy] => 0 > [status] => 0 > [position] => 0 > [transparent] => 0 > [interlace] => 0 > [postlabelcache] => 0 > [template] => > [label] => ms_label_obj Object > ( > [_handle_] => Resource id #22 > [font] => > [encoding] => > [type] => 0 > [shadowsizex] => 0 > [shadowsizey] => 0 > [backgroundshadowsizex] => 0 > [backgroundshadowsizey] => 0 > [size] => 0 > [minsize] => 0 > [maxsize] => 0 > [position] => 0 > [offsetx] => 0 > [offsety] => 0 > [angle] => 0 > [autoangle] => 0 > [buffer] => 0 > [antialias] => 0 > [wrap] => 0 > [minfeaturesize] => 0 > [autominfeaturesize] => 0 > [mindistance] => 0 > [partials] => 0 > [force] => 0 > [color] => ms_color_obj Object > ( > [_handle_] => Resource id #23 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > [outlinecolor] => ms_color_obj Object > ( > [_handle_] => Resource id #24 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > [shadowcolor] => ms_color_obj Object > ( > [_handle_] => Resource id #25 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > [backgroundcolor] => ms_color_obj Object > ( > [_handle_] => Resource id #26 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > [backgroundshadowcolor] => ms_color_obj Object > ( > [_handle_] => Resource id #27 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > ) > > [imagecolor] => ms_color_obj Object > ( > [_handle_] => Resource id #28 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > [outlinecolor] => ms_color_obj Object > ( > [_handle_] => Resource id #29 > [red] => 0 > [green] => 0 > [blue] => 0 > ) > > ) > > [latlon] => ms_projection_obj Object > ( > [_handle_] => Resource id #30 > ) > > [outputformat] => > [labelcache] => ms_labelcache_obj Object > ( > [_handle_] => Resource id #31 > ) > > ) > [Mon May 2 11:07:01 2005].683777 msOracleSpatialLayerOpen called with: > GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027 > [Mon May 2 11:07:01 2005].846399 msOracleSpatialLayerOpen. Shared > connection not available. Creating one. > [Mon May 2 11:07:01 2005].846593 > msConnPoolRegister(Oracle,user/passwd at BOX.os,0x82bcd98) > [Mon May 2 11:07:01 2005].853183 msOracleSpatialLayerFreeItemInfo was > called. > [Mon May 2 11:07:01 2005].882663 msOracleSpatialLayerWhichShapes was > called. > [Mon May 2 11:07:01 2005].888674 msOracleSpatialLayerWhichShapes. Using > this Sql to retrieve the data: SELECT ID, GEOMETRIE FROM (SELECT * FROM > FLURST) WHERE SDO_FILTER( GEOMETRIE, MDSYS.SDO_GEOMETRY(2003, 82027, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(3384094.22,5499947.53,3427070.22,5542923.53) ),'querytype=window') = 'TRUE' > [Mon May 2 11:07:23 2005].259709 msOracleSpatialLayerFreeItemInfo was > called. > [Mon May 2 11:07:23 2005].259903 msOracleSpatialLayerClose was called. > Layer connection: user/passwd at BOX.os > [Mon May 2 11:07:23 2005].259978 msOracleSpatialLayerClose. Cleaning > layerinfo handlers. > [Mon May 2 11:07:23 2005].260121 msOracleSpatialLayerClose. Cleaning > Oracle handlers. > [Mon May 2 11:07:23 2005].260214 > msConnPoolRelease(Oracle,user/passwd at BOX.os,0x82bcd98) > [Mon May 2 11:07:23 2005].260293 > msConnPoolClose(user/passwd at BOX.os,0x82bcd98) > >

Anzahl der Layer: 1 - Anzahl der Klassen dieses Layers: [Mon May 2 > 11:07:23 2005].372014 msOracleSpatialLayerOpen called with: GEOMETRIE > from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027 > [Mon May 2 11:07:23 2005].449381 msOracleSpatialLayerOpen. Shared > connection not available. Creating one. > [Mon May 2 11:07:23 2005].449542 > msConnPoolRegister(Oracle,user/passwd at BOX.os,0x82f7f98) > [Mon May 2 11:07:23 2005].455171 msOracleSpatialLayerFreeItemInfo was > called. > [Mon May 2 11:07:23 2005].513718 msOracleSpatialLayerGetItems was > called. > [Mon May 2 11:07:23 2005].514835 msOracleSpatialLayerInitItemInfo was > called. > [Mon May 2 11:07:23 2005].527714 msOracleSpatialLayerFreeItemInfo was > called. > [Mon May 2 11:07:23 2005].527815 msOracleSpatialLayerGetItems was > called. > [Mon May 2 11:07:23 2005].617739 msOracleSpatialLayerInitItemInfo was > called. > x: 0 - y: 0 [Mon May 2 11:07:23 2005].618040 msOracleSpatialLayerOpen > called with: GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID > 82027 > [Mon May 2 11:07:23 2005].618059 msOracleSpatialLayerFreeItemInfo was > called. > [Mon May 2 11:07:23 2005].618075 msOracleSpatialLayerWhichShapes was > called. > [Mon May 2 11:07:23 2005].618136 msOracleSpatialLayerWhichShapes. Using > this Sql to retrieve the data: SELECT ID, GEOMETRIE FROM (SELECT * FROM > FLURST) WHERE SDO_FILTER( GEOMETRIE, MDSYS.SDO_GEOMETRY(2003, 82027, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(3405582.22,5521435.53,3405582.22,5521435.53) ),'querytype=window') = 'TRUE' > [Mon May 2 11:07:23 2005].731214 msOracleSpatialLayerFreeItemInfo was > called. > [Mon May 2 11:07:23 2005].731264 msOracleSpatialLayerClose was called. > Layer connection: user/passwd at BOX.os > [Mon May 2 11:07:23 2005].731276 msOracleSpatialLayerClose. Cleaning > layerinfo handlers. > [Mon May 2 11:07:23 2005].731309 msOracleSpatialLayerClose. Cleaning > Oracle handlers. > [Mon May 2 11:07:23 2005].731321 > msConnPoolRelease(Oracle,user/passwd at BOX.os,0x82f7f98) > [Mon May 2 11:07:23 2005].731337 > msConnPoolClose(user/passwd at BOX.os,0x82f7f98) > Anzahl: 1
0. ErgebnisstdClass Object > ( > [shapeindex] => 0 > [tileindex] => -1 > [classindex] => 0 > ) > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 16384 (LWP 8349)] > msOracleSpatialLayerGetShape (layer=0x8285d60, shape=0x82df3e0, > record=0) at maporaclespatial.c:2003 > 2003 msOracleSpatialDataHandler *dthand = > (msOracleSpatialDataHandler *)layerinfo->oradatahandlers; > > > Am Montag, den 02.05.2005, 10:57 +0200 schrieb Bart van den Eijnden: > > Hi Nicol, > > > > In order to use query functionality you need to define a different DATA statement, something like: > > > > DATA "GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027" > > > > where ID is the name of your unique column (primary key most of the time). > > > > Best regards, > > Bart > > > > Bart van den Eijnden > > Syncera-ITSolutions > > Postbus 270 > > 2600 AG DELFT > > > > tel.nr.: 015-7512436 > > email: BEN at Syncera-ITSolutions.nl > > > > >>> Nicol Hermann 05/02/05 10:50am >>> > > Hi Fernando, > > > > thank you very much for your e-mail. > > I tried the latest CVS version ($Id: maporaclespatial.c,v 1.26 > > 2005/04/28 22:19:41 rodrigo Exp $) with the '--enable-point-z-m' > > compiling flag but it did not change the situation. > > Mapserver crashes when it try to access the search results with: > > > > $shpobj = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); > > > > I also found, that nearly the hole map-object is empty when i add the > > '--enable-point-z-m' compiling flag (see attached gdb output) and try to > > access it with PHP Mapscript. > > > > $map = ms_newMapObj('oracle_test_gk3.map') or die('Error.'); > > var_dump($map); > > > > Removing this flag gives me the normal look. > > > > Here is my oracle layer definition. > > Yes i define a template, and no i did not define any filter parameter: > > > > LAYER > > NAME Oracle > > STATUS DEFAULT > > TYPE POLYGON > > DEBUG ON > > CONNECTIONTYPE oraclespatial > > CONNECTION "user/passwd at BOX.os" > > DATA "GEOMETRIE from FLURST USING SRID 82027" > > PROJECTION > > "init=epsg:31467" > > END > > CLASS > > NAME gw > > TEMPLATE "dummy.html" > > STYLE > > COLOR 192 192 192 > > OUTLINECOLOR 0 0 0 > > END > > END > > END > > > > > > Should i open a bug on this? > > Many thanks > > Nicol > > > > > > gdb-Output: > > > > > > > > > > > Am Donnerstag, den 28.04.2005, 11:42 -0300 schrieb Fernando Simon: > > > Hi Nicol, > > > This problem can be a bug in maporaclespatial.c in 4.4.2 version. > > > In this version of Mapserver the maporaclespatial is a 1.16 version, > > > a old version (now it is a 1.25). I fixed some problems with OCI > > > handlers between 1.6 and 1.25, the last version 1.25 can work > > > correctly for you. > > > But, it's a strange problem, how did you define oracle spatial > > > layer? Did you define the template for the layer? Did you define any > > > filter parameter for the layer? > > > Thanks. > > > > > > ps: for cvs version specify the --enable-point-z-m flag > > > > > > ------------------------------------------------------------------------ > > > Fernando Simon > > > Mapserver and Oracle Spatial developer > > > G10 - Laboratorio de Computacao Aplicada - Brazil > > > http://g10.cttmar.univali.br - UNIVALI/CTTMAR > > > ------------------------------------------------------------------------ > > > > > > Citando Nicol Hermann : > > > > > > > Dear list, > > > > > > > > I want to use the query function of the native Oracle Spatial > > > > support > > > > (INPUT=ORACLESPATIAL) from mapserver 4.4.2. > > > > Displaying the image is no problem but when try to get the query > > > > results > > > > mapserver crashes with a segmentation fault. > > > > > > > > Here is what i try to do: > > > > > > > > for($j = 0;$j < $Layer->getNumResults(); $j++) { > > > > $oRes = $Layer->getResult($j); > > > > $shpobj = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); > > > > // <- > > > > Line which causes the Segmentation fault > > > > $shpobj->free(); > > > > } > > > > > > > > Is this a bug or do i have to change something? > > > > My system is: > > > > Debian sarge, mapserver 4.4.2 (php Mapscript), oracle 10g > > > > > > > > Attached you find the output of gdb. > > > > > > > > > > > > > > > > ------------------------------------------------- > > > Univali - Webmail - http://webmail.univali.br > > > > > > > > From Dejan.Gambin at PULA.HR Mon May 2 03:03:52 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Mon, 2 May 2005 12:03:52 +0200 Subject: Transparent hatch patterns inMapServer Message-ID: Well I have to admit I didn't find the answer in this document. I can get hatch patterns shown well. For example I have used the symbol SYMBOL NAME 'fill45' TYPE VECTOR POINTS 0 5 5 0 END END and the class element: CLASS ... COLOR 0 255 0 OUTLINECOLOR 0 255 0 SYMBOL 'fill45' ... END and I get green lines hatch pattern, but the space between the line is filled with white colour, it is not transparent ie I can't see my tiff that is below. Am I missing something? It is written at the end of the document something about the current problems/issues that open symbols are rendered incorrectly? Is it related? Thanks very much Dejan -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Monday, May 02, 2005 11:00 AM To: MAPSERVER-USERS at LISTS.UMN.EDU; Gambin Dejan Subject: Re: [UMN_MAPSERVER-USERS] Transparent hatch patterns inMapServer Have a look at: http://mapserver.gis.umn.edu/doc44/cartographic-symbols.html that should answer your question. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Gambin Dejan 05/02/05 10:57am >>> Hi, I would like to have a hatch for my polygon (for example a cross hatch) that could be transparent, so that I can see an ortophoto tiff image on the layer below. Is it possible? There is TRANSPARENT parameter in Symbol reference but I don't know if this can solve my problem. Thanks in advance Dejan From xbobwjones at HOTMAIL.COM Mon May 2 03:08:59 2005 From: xbobwjones at HOTMAIL.COM (Robert Jones) Date: Mon, 2 May 2005 05:08:59 -0500 Subject: International text characters in labels Message-ID: Hi I am using a shapefile which contains cities and displaying the city names as labels, and am having the problem that the city names which contain international characters are not displaying correctly i.e. the wrong characters are being used for the international characters. Can anyone suggest how to solve this problem? I couldn't find the solution by searching the archives or looking through the mapserver documentation. Many thanks Rob From Dejan.Gambin at PULA.HR Mon May 2 03:22:18 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Mon, 2 May 2005 12:22:18 +0200 Subject: International text characters in labels Message-ID: As far as I know, MapServer uses Unicode internally so maybe that is the problem but I hope someone more experienced will give you an exact answer. Dejan Gambin -----Original Message----- From: Robert Jones [mailto:xbobwjones at HOTMAIL.COM] Sent: Monday, May 02, 2005 12:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] International text characters in labels Hi I am using a shapefile which contains cities and displaying the city names as labels, and am having the problem that the city names which contain international characters are not displaying correctly i.e. the wrong characters are being used for the international characters. Can anyone suggest how to solve this problem? I couldn't find the solution by searching the archives or looking through the mapserver documentation. Many thanks Rob From rtcastro2 at GMAIL.COM Mon May 2 04:14:09 2005 From: rtcastro2 at GMAIL.COM (Rodrigo Tomasi) Date: Mon, 2 May 2005 08:14:09 -0300 Subject: Architecture of my site: Chameleon, MapLab, MapScript, etc. What should I use ? Message-ID: Hi, I?m searching for the best architecture for my MapServer site. I?m with difficult to understand what is the difference between these tools: Chameleon, MapLab, MapScript. Can anyone point me in the right direction or send some documentation ? My page will run on Windows. I want to build a page with PHP that will display a mapfile with about 150 layers on Oracle Spatial or Shapefile, with the following commands: - Zoom in - Zoom Out - Full Extent - Pan - Identify - Measure Distance - Layer?s list loaded from mapfile and divided into groups (vector and raster) - Show/Hide layer Users will enter in the site by entering the main page (overview) or by making a query on a Table and the clicking on "View Map" button (direct view). The page will be part of an Environmental Information System. Any ideas ? What?s the best option to me ? I have experience in ArcIMS (C# Development), so I think when I understand the architecture things will clear more rapidly. Thanks in advance, Rodrigo From BEN at SYNCERA-ITSOLUTIONS.NL Mon May 2 04:29:08 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 2 May 2005 13:29:08 +0200 Subject: Architecture of my site: Chameleon, MapLab, MapScript, etc. What should I use Message-ID: Hi, Maplab is a tool mainly aimed at creating and managing Mapserver MAP files. Mapscript is a SWIG-based (http://www.swig.org) or PHP interface to the Mapserver C core. Chameleon is based on PHP/Mapscript (PHP/Mapscript is the engine of Chameleon) and is a toolkit to build webmapping applications fast using templates. ALl the functionality you need is part of Chameleon. You can create your own Mapscript application, but it's a lot faster to build an application using Chameleon in my opinion. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Rodrigo Tomasi 05/02/05 01:14pm >>> Hi, I m searching for the best architecture for my MapServer site. I m with difficult to understand what is the difference between these tools: Chameleon, MapLab, MapScript. Can anyone point me in the right direction or send some documentation ? My page will run on Windows. I want to build a page with PHP that will display a mapfile with about 150 layers on Oracle Spatial or Shapefile, with the following commands: - Zoom in - Zoom Out - Full Extent - Pan - Identify - Measure Distance - Layer s list loaded from mapfile and divided into groups (vector and raster) - Show/Hide layer Users will enter in the site by entering the main page (overview) or by making a query on a Table and the clicking on "View Map" button (direct view). The page will be part of an Environmental Information System. Any ideas ? What s the best option to me ? I have experience in ArcIMS (C# Development), so I think when I understand the architecture things will clear more rapidly. Thanks in advance, Rodrigo From ace at SUARES.NL Mon May 2 04:30:03 2005 From: ace at SUARES.NL (Ace Suares) Date: Mon, 2 May 2005 07:30:03 -0400 Subject: escaping single quotes In-Reply-To: Message-ID: On Monday 02 May 2005 5:08, Paul Scott wrote: > One word: > > addslashes(); > > PHP does it for you with the function addslashes(); > '[GEMNAAM]'= addslashes('$gemnaam'); Tried that, didn't work. A \' is not recognized by mapserver. Correct me if I am wrong. I got the tip from some else (off-list) to us two single quotes in a row, like '[GEMNAAM]'=''s-Gravenhage' Haven't tested it yet. I would prefer that mapserver/mapscript would honour addslashes(). _Ace > > > --Paul > > >>> Ace Suares 05/02/05 4:53 AM >>> > > dear list, > > I have the following situation: > > 1. a column in my shapefile (.dbf) that is called GEMNAAM > 2. 482 gemeentes (counties), 3 of them starting with an ' (an apostroph > or > single quote). > 3. a filter that looks like '[GEMNAAM]'='$gemnaam' > where $gemnaam iterates over (some of) the 482 gemeentes > > The problem seems to be that the single quote in the $gemnaam is not > being > escaped, and I have no idea how to escape it. > > Is there an escape mechanism for single quotes ? > > I tried double quotes i.e. '[GEMNAAM]'="$gemnaam" but apparently to no > avail. > > Much obliged for any hint. (However, that won't bring back the past 4 > hours of my life). > > _ace -- It's not possible to treat coherently that which is incoherent. - Date's Incoherence Principle Ace Suares' Internet Consultancy mail: PObox 2599, 4800 CN Breda, The Netherlands phone: +31 6 244 33 608 (Jan Veuger, support Netherlands) emergency: +599 786 23 73 voicemail & fax: +31 848 707 705 web: http://www.suares.nl email: support at suares.nl -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From pscott at UWC.AC.ZA Mon May 2 04:50:15 2005 From: pscott at UWC.AC.ZA (Paul Scott) Date: Mon, 2 May 2005 13:50:15 +0200 Subject: escaping single quotes Message-ID: Two other things you could try: use htmlspecialchars(); or str_replace the "'" with ' That will make it look like ' . $gemnaam; which will echo to 'genmaan --Paul >>> Ace Suares 05/02/05 1:30 PM >>> On Monday 02 May 2005 5:08, Paul Scott wrote: > One word: > > addslashes(); > > PHP does it for you with the function addslashes(); > '[GEMNAAM]'= addslashes('$gemnaam'); Tried that, didn't work. A \' is not recognized by mapserver. Correct me if I am wrong. I got the tip from some else (off-list) to us two single quotes in a row, like '[GEMNAAM]'=''s-Gravenhage' Haven't tested it yet. I would prefer that mapserver/mapscript would honour addslashes(). _Ace > > > --Paul > > >>> Ace Suares 05/02/05 4:53 AM >>> > > dear list, > > I have the following situation: > > 1. a column in my shapefile (.dbf) that is called GEMNAAM > 2. 482 gemeentes (counties), 3 of them starting with an ' (an apostroph > or > single quote). > 3. a filter that looks like '[GEMNAAM]'='$gemnaam' > where $gemnaam iterates over (some of) the 482 gemeentes > > The problem seems to be that the single quote in the $gemnaam is not > being > escaped, and I have no idea how to escape it. > > Is there an escape mechanism for single quotes ? > > I tried double quotes i.e. '[GEMNAAM]'="$gemnaam" but apparently to no > avail. > > Much obliged for any hint. (However, that won't bring back the past 4 > hours of my life). > > _ace -- It's not possible to treat coherently that which is incoherent. - Date's Incoherence Principle Ace Suares' Internet Consultancy mail: PObox 2599, 4800 CN Breda, The Netherlands phone: +31 6 244 33 608 (Jan Veuger, support Netherlands) emergency: +599 786 23 73 voicemail & fax: +31 848 707 705 web: http://www.suares.nl email: support at suares.nl From Dejan.Gambin at PULA.HR Mon May 2 05:13:54 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Mon, 2 May 2005 14:13:54 +0200 Subject: Transparent hatch patterns inMapServer Message-ID: Thanks Stephane I have tried this and it works. I thought I have to deal with symbol parameters but this is even better. Thanks very much Dejan -----Original Message----- From: St?phane RIFF [mailto:stephane.riff at cerene.fr] Sent: Monday, May 02, 2005 2:03 PM To: Gambin Dejan Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Transparent hatch patterns inMapServer Try removing you COLOR attribute and i think there is a TRANSPARENCE attibute in the layer object the value is between 0 to 100 where 0 is opaque and 100 fully transparent Gambin Dejan wrote: >Well I have to admit I didn't find the answer in this document. I can >get hatch patterns shown well. For example I have used the symbol > >SYMBOL > NAME 'fill45' > TYPE VECTOR > POINTS > 0 5 > 5 0 > END >END > >and the class element: > >CLASS >... > COLOR 0 255 0 > OUTLINECOLOR 0 255 0 > SYMBOL 'fill45' > ... >END > >and I get green lines hatch pattern, but the space between the line is >filled with white colour, it is not transparent ie I can't see my tiff >that is below. Am I missing something? It is written at the end of the >document something about the current problems/issues that open symbols >are rendered incorrectly? Is it related? > >Thanks very much > >Dejan > >-----Original Message----- >From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] >Sent: Monday, May 02, 2005 11:00 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU; Gambin Dejan >Subject: Re: [UMN_MAPSERVER-USERS] Transparent hatch patterns >inMapServer > > >Have a look at: > >http://mapserver.gis.umn.edu/doc44/cartographic-symbols.html > >that should answer your question. > >Best regards, >Bart > >Bart van den Eijnden >Syncera-ITSolutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > > > >>>>Gambin Dejan 05/02/05 10:57am >>> >>>> >>>> >Hi, > >I would like to have a hatch for my polygon (for example a cross hatch) >that could be transparent, so that I can see an ortophoto tiff image on >the layer below. Is it possible? There is TRANSPARENT parameter in >Symbol reference but I don't know if this can solve my problem. > >Thanks in advance > >Dejan > > > > From rtcastro2 at GMAIL.COM Mon May 2 05:15:43 2005 From: rtcastro2 at GMAIL.COM (Rodrigo Tomasi) Date: Mon, 2 May 2005 07:15:43 -0500 Subject: Architecture of my site: Chameleon, MapLab, MapScript, etc. What should I use Message-ID: Thanks Bart, And about MapLab?s GMapFactory ? Isn?t similiar to Chameleon ? That?s my doubt: 1) Build my own mapscript application OR 2) Use Chameleon ou GMapFactory Maybe the first option will be slower at start, by will give me more flexibility and scalability in the feature. I?m afraid of use a 3rd party solution (ex: Chameleon), have a fast start but after 1 month discover that I have some limitations that I will not have building my own mapscript application. What is your sugestion ? Thanks again, Rodrigo ------------ On Mon, 2 May 2005 13:29:08 +0200, Bart van den Eijnden wrote: >Hi, > >Maplab is a tool mainly aimed at creating and managing Mapserver MAP files. > >Mapscript is a SWIG-based (http://www.swig.org) or PHP interface to the Mapserver C core. > >Chameleon is based on PHP/Mapscript (PHP/Mapscript is the engine of Chameleon) and is a toolkit to build webmapping applications fast using templates. ALl the functionality you need is part of Chameleon. > >You can create your own Mapscript application, but it's a lot faster to build an application using Chameleon in my opinion. > >Best regards, >Bart > >Bart van den Eijnden >Syncera-ITSolutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > >>>> Rodrigo Tomasi 05/02/05 01:14pm >>> >Hi, > >I m searching for the best architecture for my MapServer site. > >I m with difficult to understand what is the difference between these >tools: Chameleon, MapLab, MapScript. Can anyone point me in the right >direction or send some documentation ? > >My page will run on Windows. I want to build a page with PHP that will >display a mapfile with about 150 layers on Oracle Spatial or >Shapefile, with the following commands: > >- Zoom in >- Zoom Out >- Full Extent >- Pan >- Identify >- Measure Distance >- Layer s list loaded from mapfile and divided into groups (vector and raster) >- Show/Hide layer > >Users will enter in the site by entering the main page (overview) or >by making a query on a Table and the clicking on "View Map" button >(direct view). > >The page will be part of an Environmental Information System. > >Any ideas ? What s the best option to me ? >I have experience in ArcIMS (C# Development), so I think when I >understand the architecture things will clear more rapidly. > >Thanks in advance, > > Rodrigo From knozi at GMX.AT Mon May 2 05:33:45 2005 From: knozi at GMX.AT (Gernot Katzlberger) Date: Mon, 2 May 2005 14:33:45 +0200 Subject: imagemap Message-ID: Hi list, I'm trying to get the imagemap function working. I can create an output and an imagemap but the ids to the single polygons are missing. How do I get the ids into the href of the imagemap? The ids should come out of the database. html-source: now: should be: I have a mapfile with the outputformat and one layer defined: ... OUTPUTFORMAT NAME imagemap DRIVER imagemap MIMETYPE text/html FORMATOPTION "POLYHREF=/verifier/map.php?state=%s" FORMATOPTION "SYMBOLHREF=#" FORMATOPTION "MAPNAME=image_map" FORMATOPTION "TITLE=image_map" FORMATOPTION "POLYMOUSEOUT=return nd();" FORMATOPTION "POLYMOUSEOVER=return overlib('%s');" END LAYER CONNECTION "user=user password=pwd dbname=db host=localhost" CONNECTIONTYPE POSTGIS DATA "the_geom from gd_poly_002" NAME "see01" STATUS ON TYPE POLYGON UNITS METERS CLASS NAME "class0" STYLE COLOR 189 215 231 SYMBOL 0 END END END ... Thanks, Gernot From BEN at SYNCERA-ITSOLUTIONS.NL Mon May 2 05:34:42 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 2 May 2005 14:34:42 +0200 Subject: Architecture of my site: Chameleon, MapLab, MapScript, etc. What should I Message-ID: I think Chameleon replaces GMapFactory, but maybe DMSG has a different vision to this. Chameleon offers a lot of flexibility in my opinion, you can build your own widgets inside the Chameleon system. My advice would be to start looking at Chameleon. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Rodrigo Tomasi 05/02/05 02:15pm >>> Thanks Bart, And about MapLab s GMapFactory ? Isn t similiar to Chameleon ? That s my doubt: 1) Build my own mapscript application OR 2) Use Chameleon ou GMapFactory Maybe the first option will be slower at start, by will give me more flexibility and scalability in the feature. I m afraid of use a 3rd party solution (ex: Chameleon), have a fast start but after 1 month discover that I have some limitations that I will not have building my own mapscript application. What is your sugestion ? Thanks again, Rodrigo ------------ On Mon, 2 May 2005 13:29:08 +0200, Bart van den Eijnden wrote: >Hi, > >Maplab is a tool mainly aimed at creating and managing Mapserver MAP files. > >Mapscript is a SWIG-based (http://www.swig.org) or PHP interface to the Mapserver C core. > >Chameleon is based on PHP/Mapscript (PHP/Mapscript is the engine of Chameleon) and is a toolkit to build webmapping applications fast using templates. ALl the functionality you need is part of Chameleon. > >You can create your own Mapscript application, but it's a lot faster to build an application using Chameleon in my opinion. > >Best regards, >Bart > >Bart van den Eijnden >Syncera-ITSolutions >Postbus 270 >2600 AG DELFT > >tel.nr.: 015-7512436 >email: BEN at Syncera-ITSolutions.nl > >>>> Rodrigo Tomasi 05/02/05 01:14pm >>> >Hi, > >I m searching for the best architecture for my MapServer site. > >I m with difficult to understand what is the difference between these >tools: Chameleon, MapLab, MapScript. Can anyone point me in the right >direction or send some documentation ? > >My page will run on Windows. I want to build a page with PHP that will >display a mapfile with about 150 layers on Oracle Spatial or >Shapefile, with the following commands: > >- Zoom in >- Zoom Out >- Full Extent >- Pan >- Identify >- Measure Distance >- Layer s list loaded from mapfile and divided into groups (vector and raster) >- Show/Hide layer > >Users will enter in the site by entering the main page (overview) or >by making a query on a Table and the clicking on "View Map" button >(direct view). > >The page will be part of an Environmental Information System. > >Any ideas ? What s the best option to me ? >I have experience in ArcIMS (C# Development), so I think when I >understand the architecture things will clear more rapidly. > >Thanks in advance, > > Rodrigo From gerry.creager at TAMU.EDU Mon May 2 05:42:47 2005 From: gerry.creager at TAMU.EDU (Gerry Creager n5jxs) Date: Mon, 2 May 2005 07:42:47 -0500 Subject: PHP as Apache DSO, status? In-Reply-To: <20050502042450.57942.qmail@web53810.mail.yahoo.com> Message-ID: Gregor Mosheh wrote: > Last I heard, a few months ago, it was unstable to run > MapScript with PHP as an Apache DSO. I just wanted to > check in and see whether I had missed anything. Geez. If I'd seen this maybe we wouldn't have been running this way for the last couple of years! > Also a few months ago, I saw a mention somewhere (this > list, maybe?) of installing two PHPs: a CGI for > MapScript and a DSO for other stuff. Has anybody tried > this, and with what success? We don't do as much mapscript as mapserver cgi, more a mix/match as needed. However, we've not seen any problems. -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From fsimon at UNIVALI.BR Mon May 2 05:59:09 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Mon, 2 May 2005 09:59:09 -0300 Subject: mapserv segfaults trying to get thequery results of a native oracle spati In-Reply-To: <1115026820.8310.11.camel@emil> Message-ID: Hi Nicol and Bart, It's a strange problem for Linux box, what GCC are you using, 4.0? I will check this problem, I saw a problem here with query's when I defined a filter parameter for my layer. But it isn't the problem in your case, or did you denine any filter for the layer in your mapscript?. Here I used in a project this code to retrieve the data from Oracle layer: $camada->open(); for($i = 0; $i < $total_results; $i++) { $sindex = $camada->getResult($i); $result = $camada->getShape(-1,$sindex->shapeindex); if ($result->type == 0) { $x = $result->bounds->minx; $y = $result->bounds->miny; $ponto_temp = ms_newpointObj(); $ponto_temp->setXY($x, $y); if ($rectangle->contains($ponto_temp)) { $arraytmp = array($result->values[$nm_campo_sel],$result->values[$desc]); array_push($resultado_selecao[$nm_campo_array], $arraytmp); } $ponto_temp->free(); } else { if(($rectangle->intersects($result) == MS_TRUE)) { $arraytmp = array($result->values[$nm_campo_sel],$result->values[$desc]); array_push($resultado_selecao[$nm_campo_array], $arraytmp); } } $result->free(); } $camada->close(); In this code I executed a "open" before retrieve the shapes ($camada is a layerobj). Did you execute this function before the getshape? (I used "-1" for tile index too). The problem with Oracle Spatial and "--enable-point-z" flag was solved, you can see this in #1244 Mapserver bugzilla. Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Nicol Hermann wrote: >Hi Bart, > >thanks again for your mail. >I changed the data statement one more time but unfortunately without >luck. > > > >Program received signal SIGSEGV, Segmentation fault. >[Switching to Thread 16384 (LWP 8480)] >msOracleSpatialLayerGetShape (layer=0x8285d60, shape=0x82ff510, >record=0) at maporaclespatial.c:2003 >2003 msOracleSpatialDataHandler *dthand = >(msOracleSpatialDataHandler *)layerinfo->oradatahandlers; > > > >Yes i think Fernando needs to step in. > >Thanks again for your help >Nicol > > >Am Montag, den 02.05.2005, 11:23 +0200 schrieb Bart van den Eijnden: > > >>Hi Nicol, >> >>I have had similar crashes on Windows which were solved magically by compiling with Visual Studio 7 instead of 6. But for Fernando a similar situation on Linux worked fine. >> >>Can you try the following data statement as a last resort: >> >>DATA "GEOMETRIE from (SELECT ID, GEOMETRIE FROM FLURST) USING UNIQUE ID SRID 82027" >> >>That used to work for me on Windows even with Visual Studio 6, but then you miss a lot of attribute info ofcourse. >> >>Probably Fernando needs to step in and help, but in Brazil it is still quite early I guess :-) >> >>Best regards, >>Bart >> >>Bart van den Eijnden >>Syncera-ITSolutions >>Postbus 270 >>2600 AG DELFT >> >>tel.nr.: 015-7512436 >>email: BEN at Syncera-ITSolutions.nl >> >> >> >>>>>Nicol Hermann 05/02/05 11:17am >>> >>>>> >>>>> >>Hi Bart, Fernando, List >> >>thank you for your mail. >>I changed the DATA statement according to your advice. >>The statement is: >>DATA "GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027" >> >>Sadly this changes nothing. I further get a segfault. >>Attached the new gdb output: >> >>nicol at emil:~/public_html/mapserver/dev$ gdb php >>GNU gdb 6.3-debian >>Copyright 2004 Free Software Foundation, Inc. >>GDB is free software, covered by the GNU General Public License, and you >>are >>welcome to change it and/or distribute copies of it under certain >>conditions. >>Type "show copying" to see the conditions. >>There is absolutely no warranty for GDB. Type "show warranty" for >>details. >>This GDB was configured as "i386-linux"...Using host libthread_db >>library "/lib/libthread_db.so.1". >> >>(gdb) run nativ_oraclequelle_query.php >>Starting program: /usr/local/bin/php nativ_oraclequelle_query.php >>[Thread debugging using libthread_db enabled] >>[New Thread 16384 (LWP 8349)] >>Content-type: text/html >>X-Powered-By: PHP/4.3.8 >> >>ms_map_obj Object >>( >> [_handle_] => Resource id #1 >> [numlayers] => 1 >> [name] => Karte >> [status] => 1 >> [debug] => 0 >> [width] => 300 >> [height] => 300 >> [maxsize] => 2048 >> [transparent] => 0 >> [interlace] => 0 >> [imagetype] => >> [imagequality] => 0 >> [extent] => ms_rect_obj Object >> ( >> [_handle_] => Resource id #2 >> [minx] => 0 >> [miny] => 0 >> [maxx] => 0 >> [maxy] => 0 >> ) >> >> [cellsize] => 0 >> [units] => 0 >> [scale] => 0 >> [resolution] => 0 >> [shapepath] => >> [keysizex] => 0 >> [keysizey] => 0 >> [keyspacingx] => 0 >> [keyspacingy] => 0 >> [symbolsetfilename] => >> [fontsetfilename] => >> [mappath] => >> [imagecolor] => ms_color_obj Object >> ( >> [_handle_] => Resource id #3 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> [web] => ms_web_obj Object >> ( >> [_handle_] => Resource id #4 >> [log] => >> [imagepath] => >> [template] => >> [imageurl] => >> [header] => >> [footer] => >> [empty] => >> [error] => >> [mintemplate] => >> [maxtemplate] => >> [minscale] => 0 >> [maxscale] => 0 >> [queryformat] => >> [extent] => ms_rect_obj Object >> ( >> [_handle_] => Resource id #5 >> [minx] => 0 >> [miny] => 0 >> [maxx] => 0 >> [maxy] => 0 >> ) >> >> ) >> >> [reference] => ms_reference_obj Object >> ( >> [_handle_] => Resource id #6 >> [image] => >> [width] => 0 >> [height] => 0 >> [status] => 0 >> [extent] => ms_rect_obj Object >> ( >> [_handle_] => Resource id #7 >> [minx] => 0 >> [miny] => 0 >> [maxx] => 0 >> [maxy] => 0 >> ) >> >> [color] => ms_color_obj Object >> ( >> [_handle_] => Resource id #8 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> [outlinecolor] => ms_color_obj Object >> ( >> [_handle_] => Resource id #9 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> ) >> >> [scalebar] => ms_scalebar_obj Object >> ( >> [_handle_] => Resource id #10 >> [height] => 0 >> [width] => 0 >> [style] => 0 >> [intervals] => 0 >> [units] => 0 >> [status] => 0 >> [position] => 0 >> [transparent] => 0 >> [interlace] => 0 >> [postlabelcache] => 0 >> [label] => ms_label_obj Object >> ( >> [_handle_] => Resource id #11 >> [font] => >> [encoding] => >> [type] => 0 >> [shadowsizex] => 0 >> [shadowsizey] => 0 >> [backgroundshadowsizex] => 0 >> [backgroundshadowsizey] => 0 >> [size] => 0 >> [minsize] => 0 >> [maxsize] => 0 >> [position] => 0 >> [offsetx] => 0 >> [offsety] => 0 >> [angle] => 0 >> [autoangle] => 0 >> [buffer] => 0 >> [antialias] => 0 >> [wrap] => 0 >> [minfeaturesize] => 0 >> [autominfeaturesize] => 0 >> [mindistance] => 0 >> [partials] => 0 >> [force] => 0 >> [color] => ms_color_obj Object >> ( >> [_handle_] => Resource id #12 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> [outlinecolor] => ms_color_obj Object >> ( >> [_handle_] => Resource id #13 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> [shadowcolor] => ms_color_obj Object >> ( >> [_handle_] => Resource id #14 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> [backgroundcolor] => ms_color_obj Object >> ( >> [_handle_] => Resource id #15 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> [backgroundshadowcolor] => ms_color_obj Object >> ( >> [_handle_] => Resource id #16 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> ) >> >> [imagecolor] => ms_color_obj Object >> ( >> [_handle_] => Resource id #17 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> [color] => ms_color_obj Object >> ( >> [_handle_] => Resource id #18 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> [backgroundcolor] => ms_color_obj Object >> ( >> [_handle_] => Resource id #19 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> [outlinecolor] => ms_color_obj Object >> ( >> [_handle_] => Resource id #20 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> ) >> >> [legend] => ms_legend_obj Object >> ( >> [_handle_] => Resource id #21 >> [height] => 0 >> [width] => 0 >> [keysizex] => 0 >> [keysizey] => 0 >> [keyspacingx] => 0 >> [keyspacingy] => 0 >> [status] => 0 >> [position] => 0 >> [transparent] => 0 >> [interlace] => 0 >> [postlabelcache] => 0 >> [template] => >> [label] => ms_label_obj Object >> ( >> [_handle_] => Resource id #22 >> [font] => >> [encoding] => >> [type] => 0 >> [shadowsizex] => 0 >> [shadowsizey] => 0 >> [backgroundshadowsizex] => 0 >> [backgroundshadowsizey] => 0 >> [size] => 0 >> [minsize] => 0 >> [maxsize] => 0 >> [position] => 0 >> [offsetx] => 0 >> [offsety] => 0 >> [angle] => 0 >> [autoangle] => 0 >> [buffer] => 0 >> [antialias] => 0 >> [wrap] => 0 >> [minfeaturesize] => 0 >> [autominfeaturesize] => 0 >> [mindistance] => 0 >> [partials] => 0 >> [force] => 0 >> [color] => ms_color_obj Object >> ( >> [_handle_] => Resource id #23 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> [outlinecolor] => ms_color_obj Object >> ( >> [_handle_] => Resource id #24 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> [shadowcolor] => ms_color_obj Object >> ( >> [_handle_] => Resource id #25 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> [backgroundcolor] => ms_color_obj Object >> ( >> [_handle_] => Resource id #26 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> [backgroundshadowcolor] => ms_color_obj Object >> ( >> [_handle_] => Resource id #27 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> ) >> >> [imagecolor] => ms_color_obj Object >> ( >> [_handle_] => Resource id #28 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> [outlinecolor] => ms_color_obj Object >> ( >> [_handle_] => Resource id #29 >> [red] => 0 >> [green] => 0 >> [blue] => 0 >> ) >> >> ) >> >> [latlon] => ms_projection_obj Object >> ( >> [_handle_] => Resource id #30 >> ) >> >> [outputformat] => >> [labelcache] => ms_labelcache_obj Object >> ( >> [_handle_] => Resource id #31 >> ) >> >>) >>[Mon May 2 11:07:01 2005].683777 msOracleSpatialLayerOpen called with: >>GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027 >>[Mon May 2 11:07:01 2005].846399 msOracleSpatialLayerOpen. Shared >>connection not available. Creating one. >>[Mon May 2 11:07:01 2005].846593 >>msConnPoolRegister(Oracle,user/passwd at BOX.os,0x82bcd98) >>[Mon May 2 11:07:01 2005].853183 msOracleSpatialLayerFreeItemInfo was >>called. >>[Mon May 2 11:07:01 2005].882663 msOracleSpatialLayerWhichShapes was >>called. >>[Mon May 2 11:07:01 2005].888674 msOracleSpatialLayerWhichShapes. Using >>this Sql to retrieve the data: SELECT ID, GEOMETRIE FROM (SELECT * FROM >>FLURST) WHERE SDO_FILTER( GEOMETRIE, MDSYS.SDO_GEOMETRY(2003, 82027, >>NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(3384094.22,5499947.53,3427070.22,5542923.53) ),'querytype=window') = 'TRUE' >>[Mon May 2 11:07:23 2005].259709 msOracleSpatialLayerFreeItemInfo was >>called. >>[Mon May 2 11:07:23 2005].259903 msOracleSpatialLayerClose was called. >>Layer connection: user/passwd at BOX.os >>[Mon May 2 11:07:23 2005].259978 msOracleSpatialLayerClose. Cleaning >>layerinfo handlers. >>[Mon May 2 11:07:23 2005].260121 msOracleSpatialLayerClose. Cleaning >>Oracle handlers. >>[Mon May 2 11:07:23 2005].260214 >>msConnPoolRelease(Oracle,user/passwd at BOX.os,0x82bcd98) >>[Mon May 2 11:07:23 2005].260293 >>msConnPoolClose(user/passwd at BOX.os,0x82bcd98) >> >>

Anzahl der Layer: 1 - Anzahl der Klassen dieses Layers: [Mon May 2 >>11:07:23 2005].372014 msOracleSpatialLayerOpen called with: GEOMETRIE >>from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027 >>[Mon May 2 11:07:23 2005].449381 msOracleSpatialLayerOpen. Shared >>connection not available. Creating one. >>[Mon May 2 11:07:23 2005].449542 >>msConnPoolRegister(Oracle,user/passwd at BOX.os,0x82f7f98) >>[Mon May 2 11:07:23 2005].455171 msOracleSpatialLayerFreeItemInfo was >>called. >>[Mon May 2 11:07:23 2005].513718 msOracleSpatialLayerGetItems was >>called. >>[Mon May 2 11:07:23 2005].514835 msOracleSpatialLayerInitItemInfo was >>called. >>[Mon May 2 11:07:23 2005].527714 msOracleSpatialLayerFreeItemInfo was >>called. >>[Mon May 2 11:07:23 2005].527815 msOracleSpatialLayerGetItems was >>called. >>[Mon May 2 11:07:23 2005].617739 msOracleSpatialLayerInitItemInfo was >>called. >>x: 0 - y: 0 [Mon May 2 11:07:23 2005].618040 msOracleSpatialLayerOpen >>called with: GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID >>82027 >>[Mon May 2 11:07:23 2005].618059 msOracleSpatialLayerFreeItemInfo was >>called. >>[Mon May 2 11:07:23 2005].618075 msOracleSpatialLayerWhichShapes was >>called. >>[Mon May 2 11:07:23 2005].618136 msOracleSpatialLayerWhichShapes. Using >>this Sql to retrieve the data: SELECT ID, GEOMETRIE FROM (SELECT * FROM >>FLURST) WHERE SDO_FILTER( GEOMETRIE, MDSYS.SDO_GEOMETRY(2003, 82027, >>NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(3405582.22,5521435.53,3405582.22,5521435.53) ),'querytype=window') = 'TRUE' >>[Mon May 2 11:07:23 2005].731214 msOracleSpatialLayerFreeItemInfo was >>called. >>[Mon May 2 11:07:23 2005].731264 msOracleSpatialLayerClose was called. >>Layer connection: user/passwd at BOX.os >>[Mon May 2 11:07:23 2005].731276 msOracleSpatialLayerClose. Cleaning >>layerinfo handlers. >>[Mon May 2 11:07:23 2005].731309 msOracleSpatialLayerClose. Cleaning >>Oracle handlers. >>[Mon May 2 11:07:23 2005].731321 >>msConnPoolRelease(Oracle,user/passwd at BOX.os,0x82f7f98) >>[Mon May 2 11:07:23 2005].731337 >>msConnPoolClose(user/passwd at BOX.os,0x82f7f98) >>Anzahl: 1
0. ErgebnisstdClass Object >>( >> [shapeindex] => 0 >> [tileindex] => -1 >> [classindex] => 0 >>) >> >>Program received signal SIGSEGV, Segmentation fault. >>[Switching to Thread 16384 (LWP 8349)] >>msOracleSpatialLayerGetShape (layer=0x8285d60, shape=0x82df3e0, >>record=0) at maporaclespatial.c:2003 >>2003 msOracleSpatialDataHandler *dthand = >>(msOracleSpatialDataHandler *)layerinfo->oradatahandlers; >> >> >>Am Montag, den 02.05.2005, 10:57 +0200 schrieb Bart van den Eijnden: >> >> >>>Hi Nicol, >>> >>>In order to use query functionality you need to define a different DATA statement, something like: >>> >>>DATA "GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027" >>> >>>where ID is the name of your unique column (primary key most of the time). >>> >>>Best regards, >>>Bart >>> >>>Bart van den Eijnden >>>Syncera-ITSolutions >>>Postbus 270 >>>2600 AG DELFT >>> >>>tel.nr.: 015-7512436 >>>email: BEN at Syncera-ITSolutions.nl >>> >>> >>> >>>>>>Nicol Hermann 05/02/05 10:50am >>> >>>>>> >>>>>> >>>Hi Fernando, >>> >>>thank you very much for your e-mail. >>>I tried the latest CVS version ($Id: maporaclespatial.c,v 1.26 >>>2005/04/28 22:19:41 rodrigo Exp $) with the '--enable-point-z-m' >>>compiling flag but it did not change the situation. >>>Mapserver crashes when it try to access the search results with: >>> >>>$shpobj = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); >>> >>>I also found, that nearly the hole map-object is empty when i add the >>>'--enable-point-z-m' compiling flag (see attached gdb output) and try to >>>access it with PHP Mapscript. >>> >>>$map = ms_newMapObj('oracle_test_gk3.map') or die('Error.'); >>>var_dump($map); >>> >>>Removing this flag gives me the normal look. >>> >>>Here is my oracle layer definition. >>>Yes i define a template, and no i did not define any filter parameter: >>> >>>LAYER >>> NAME Oracle >>> STATUS DEFAULT >>> TYPE POLYGON >>> DEBUG ON >>> CONNECTIONTYPE oraclespatial >>> CONNECTION "user/passwd at BOX.os" >>> DATA "GEOMETRIE from FLURST USING SRID 82027" >>> PROJECTION >>> "init=epsg:31467" >>> END >>> CLASS >>> NAME gw >>> TEMPLATE "dummy.html" >>> STYLE >>> COLOR 192 192 192 >>> OUTLINECOLOR 0 0 0 >>> END >>> END >>> END >>> >>> >>>Should i open a bug on this? >>>Many thanks >>>Nicol >>> >>> >>>gdb-Output: >>> >>> >>> >> >> >> >> >>>Am Donnerstag, den 28.04.2005, 11:42 -0300 schrieb Fernando Simon: >>> >>> >>>>Hi Nicol, >>>> This problem can be a bug in maporaclespatial.c in 4.4.2 version. >>>>In this version of Mapserver the maporaclespatial is a 1.16 version, >>>>a old version (now it is a 1.25). I fixed some problems with OCI >>>>handlers between 1.6 and 1.25, the last version 1.25 can work >>>>correctly for you. >>>> But, it's a strange problem, how did you define oracle spatial >>>>layer? Did you define the template for the layer? Did you define any >>>>filter parameter for the layer? >>>> Thanks. >>>> >>>>ps: for cvs version specify the --enable-point-z-m flag >>>> >>>>------------------------------------------------------------------------ >>>>Fernando Simon >>>>Mapserver and Oracle Spatial developer >>>>G10 - Laboratorio de Computacao Aplicada - Brazil >>>>http://g10.cttmar.univali.br - UNIVALI/CTTMAR >>>>------------------------------------------------------------------------ >>>> >>>>Citando Nicol Hermann : >>>> >>>> >>>> >>>>>Dear list, >>>>> >>>>>I want to use the query function of the native Oracle Spatial >>>>>support >>>>>(INPUT=ORACLESPATIAL) from mapserver 4.4.2. >>>>>Displaying the image is no problem but when try to get the query >>>>>results >>>>>mapserver crashes with a segmentation fault. >>>>> >>>>>Here is what i try to do: >>>>> >>>>>for($j = 0;$j < $Layer->getNumResults(); $j++) { >>>>> $oRes = $Layer->getResult($j); >>>>> $shpobj = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); >>>>>// <- >>>>>Line which causes the Segmentation fault >>>>> $shpobj->free(); >>>>>} >>>>> >>>>>Is this a bug or do i have to change something? >>>>>My system is: >>>>>Debian sarge, mapserver 4.4.2 (php Mapscript), oracle 10g >>>>> >>>>>Attached you find the output of gdb. >>>>> >>>>> >>> >>> >>> >>> >>> >>>>------------------------------------------------- >>>> Univali - Webmail - http://webmail.univali.br >>>> >>>> >>>> >>>> >> >> > > > From trondmm-mapserver at CRUSADERS.NO Mon May 2 06:05:30 2005 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Mon, 2 May 2005 15:05:30 +0200 Subject: International text characters in labels In-Reply-To: Message-ID: On Mon, May 02, 2005 at 05:08:59AM -0500, Robert Jones wrote: > I am using a shapefile which contains cities and displaying the city names > as labels, and am having the problem that the city names which contain > international characters are not displaying correctly i.e. the wrong > characters are being used for the international characters. > > Can anyone suggest how to solve this problem? > > I couldn't find the solution by searching the archives or looking through > the mapserver documentation. First of all, you need to specify in the mapfile what character set the labeldata is in. Then you need a font that supports international characters. I had a lot of problems trying to display Norwegian charcters, until I realised that the bitmap fonts doesn't support them. I then switched to a truetype font, and everything worked as expected. Here's an example of my label class: LABEL ENCODING LATIN1 color 0 0 0 outlinecolor 255 255 255 type truetype font arialbd size 10 PARTIALS FALSE BUFFER 1 END Of course, this also requires that I have specified a fontset in the mapfile, like this: FONTSET "fonts/fonts.list" and this file must include an entry that maps "arialbd" to a ttf-file arialbd arialbd.ttf Finally, you also need the actual ttf-file. I can't help you with that, I'm afraid. -- Trond Michelsen From raphael.teixeira at GMAIL.COM Mon May 2 06:17:20 2005 From: raphael.teixeira at GMAIL.COM (Raphael Teixeira) Date: Mon, 2 May 2005 13:17:20 +0000 Subject: Book about Distributed GIS Message-ID: Hi All, I'm working on my dissertation about Distributed GIS and I'd like to know a name of a good book that cover this subject. Best regards -- Raphael da Silva Teixeira From knozi at GMX.AT Mon May 2 06:40:47 2005 From: knozi at GMX.AT (Gernot Katzlberger) Date: Mon, 2 May 2005 15:40:47 +0200 Subject: AW: [UMN_MAPSERVER-USERS] imagemap In-Reply-To: <42762A31.5060503@cerene.fr> Message-ID: I changed the data statement but nothing happened. It is still the same map as before (without the ids). Can I define a column in the database which will be taken by the imagemap for inserting the ids? regards, gernot -----Urspr?ngliche Nachricht----- Von: St?phane RIFF [mailto:stephane.riff at cerene.fr] Gesendet: Montag, 02. Mai 2005 15:25 An: Gernot Katzlberger Cc: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] imagemap I think that the data return by '%s' in imagemap format is the first filed of your datasource. with a DATA pattern like this : DATA "geom from (select oid, geom from geom_table) as foo" you will gt what you want Gernot Katzlberger wrote: >Hi list, >I'm trying to get the imagemap function working. I can create an output and >an imagemap but the ids to the single polygons are missing. How do I get the >ids into the href of the imagemap? The ids should come out of the database. > >html-source: >now: > > > >should be: > > > > >I have a mapfile with the outputformat and one layer defined: > >... > >OUTPUTFORMAT > NAME imagemap > DRIVER imagemap > MIMETYPE text/html > FORMATOPTION "POLYHREF=/verifier/map.php?state=%s" > FORMATOPTION "SYMBOLHREF=#" > FORMATOPTION "MAPNAME=image_map" > FORMATOPTION "TITLE=image_map" > FORMATOPTION "POLYMOUSEOUT=return nd();" > FORMATOPTION "POLYMOUSEOVER=return overlib('%s');" >END > >LAYER > CONNECTION "user=user password=pwd dbname=db host=localhost" > CONNECTIONTYPE POSTGIS > DATA "the_geom from gd_poly_002" > NAME "see01" > STATUS ON > TYPE POLYGON > UNITS METERS > > CLASS > NAME "class0" > STYLE > COLOR 189 215 231 > SYMBOL 0 > END > END > END >... > >Thanks, >Gernot > > > > From mapserver at GEOWORLD.DE Mon May 2 06:43:34 2005 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Mon, 2 May 2005 15:43:34 +0200 Subject: mapserv segfaults trying to get thequery results of a native oracle spati In-Reply-To: <4276241D.8010504@univali.br> Message-ID: Hi Fernando, thank you for your answer! I found a problem in my code. I opened the layer before i send the query. I changed this to: $status = $Layer -> queryByPoint($geometrie, MS_MULTIPLE, 100); $Layer->open(); for($j = 0;$j < $Layer->getNumResults(); $j++) { $oRes = $Layer->getResult($j); $shpobj = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); $shpobj->free(); } $Layer->close(); Now i get a mapserver error message: Fatal error: [MapServer Error]: msOracleSpatialLayerGetShape(): Error: ORA-01722: Ungultige Zahl . Query statement: SELECT ID, INFOTEXT, BESCHRIFT, GEOMETRIE FROM (SELECT * FROM FLURST) WHERE ID = 0 .Check your data statement. Here is my data statement: DATA "GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027" The value of the variable '$oRes' are: stdClass Object ( [shapeindex] => 0 [tileindex] => -1 [classindex] => 0 ) How do i have to change the data statement to get a valid shapeindex? I'am not sure that the solution found for bug #1244 solves my problem with the "--enable-point-z" flag. I use the latest cvs version which should contain the fix, right? Many thanks for your help Nicol Am Montag, den 02.05.2005, 09:59 -0300 schrieb Fernando Simon: > Hi Nicol and Bart, > It's a strange problem for Linux box, what GCC are you using, 4.0? > I will check this problem, I saw a problem here with query's when I > defined a filter parameter for my layer. But it isn't the problem in > your case, or did you denine any filter for the layer in your mapscript?. > Here I used in a project this code to retrieve the data from Oracle > layer: > $camada->open(); > for($i = 0; $i < $total_results; $i++) > { > $sindex = $camada->getResult($i); > $result = $camada->getShape(-1,$sindex->shapeindex); > if ($result->type == 0) > { > $x = $result->bounds->minx; > $y = $result->bounds->miny; > $ponto_temp = ms_newpointObj(); > $ponto_temp->setXY($x, $y); > if ($rectangle->contains($ponto_temp)) > { > $arraytmp = > array($result->values[$nm_campo_sel],$result->values[$desc]); > array_push($resultado_selecao[$nm_campo_array], > $arraytmp); > } > $ponto_temp->free(); > } > else > { > if(($rectangle->intersects($result) == MS_TRUE)) > { > $arraytmp = > array($result->values[$nm_campo_sel],$result->values[$desc]); > array_push($resultado_selecao[$nm_campo_array], > $arraytmp); > } > } > $result->free(); > } > $camada->close(); > > In this code I executed a "open" before retrieve the shapes ($camada > is a layerobj). Did you execute this function before the getshape? (I > used "-1" for tile index too). > The problem with Oracle Spatial and "--enable-point-z" flag was > solved, you can see this in #1244 Mapserver bugzilla. > Thanks. > > ------------------------------------------------------------------------ > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://g10.cttmar.univali.br - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > > > Nicol Hermann wrote: > > >Hi Bart, > > > >thanks again for your mail. > >I changed the data statement one more time but unfortunately without > >luck. > > > > > > > >Program received signal SIGSEGV, Segmentation fault. > >[Switching to Thread 16384 (LWP 8480)] > >msOracleSpatialLayerGetShape (layer=0x8285d60, shape=0x82ff510, > >record=0) at maporaclespatial.c:2003 > >2003 msOracleSpatialDataHandler *dthand = > >(msOracleSpatialDataHandler *)layerinfo->oradatahandlers; > > > > > > > >Yes i think Fernando needs to step in. > > > >Thanks again for your help > >Nicol > > > > > >Am Montag, den 02.05.2005, 11:23 +0200 schrieb Bart van den Eijnden: > > > > > >>Hi Nicol, > >> > >>I have had similar crashes on Windows which were solved magically by compiling with Visual Studio 7 instead of 6. But for Fernando a similar situation on Linux worked fine. > >> > >>Can you try the following data statement as a last resort: > >> > >>DATA "GEOMETRIE from (SELECT ID, GEOMETRIE FROM FLURST) USING UNIQUE ID SRID 82027" > >> > >>That used to work for me on Windows even with Visual Studio 6, but then you miss a lot of attribute info ofcourse. > >> > >>Probably Fernando needs to step in and help, but in Brazil it is still quite early I guess :-) > >> > >>Best regards, > >>Bart > >> > >>Bart van den Eijnden > >>Syncera-ITSolutions > >>Postbus 270 > >>2600 AG DELFT > >> > >>tel.nr.: 015-7512436 > >>email: BEN at Syncera-ITSolutions.nl > >> > >> > >> > >>>>>Nicol Hermann 05/02/05 11:17am >>> > >>>>> > >>>>> > >>Hi Bart, Fernando, List > >> > >>thank you for your mail. > >>I changed the DATA statement according to your advice. > >>The statement is: > >>DATA "GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027" > >> > >>Sadly this changes nothing. I further get a segfault. > >>Attached the new gdb output: > >> > >> > >> > >>Am Montag, den 02.05.2005, 10:57 +0200 schrieb Bart van den Eijnden: > >> > >> > >>>Hi Nicol, > >>> > >>>In order to use query functionality you need to define a different DATA statement, something like: > >>> > >>>DATA "GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027" > >>> > >>>where ID is the name of your unique column (primary key most of the time). > >>> > >>>Best regards, > >>>Bart > >>> > >>>Bart van den Eijnden > >>>Syncera-ITSolutions > >>>Postbus 270 > >>>2600 AG DELFT > >>> > >>>tel.nr.: 015-7512436 > >>>email: BEN at Syncera-ITSolutions.nl > >>> > >>> > >>> > >>>>>>Nicol Hermann 05/02/05 10:50am >>> > >>>>>> > >>>>>> > >>>Hi Fernando, > >>> > >>>thank you very much for your e-mail. > >>>I tried the latest CVS version ($Id: maporaclespatial.c,v 1.26 > >>>2005/04/28 22:19:41 rodrigo Exp $) with the '--enable-point-z-m' > >>>compiling flag but it did not change the situation. > >>>Mapserver crashes when it try to access the search results with: > >>> > >>>$shpobj = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); > >>> > >>>I also found, that nearly the hole map-object is empty when i add the > >>>'--enable-point-z-m' compiling flag (see attached gdb output) and try to > >>>access it with PHP Mapscript. > >>> > >>>$map = ms_newMapObj('oracle_test_gk3.map') or die('Error.'); > >>>var_dump($map); > >>> > >>>Removing this flag gives me the normal look. > >>> > >>>Here is my oracle layer definition. > >>>Yes i define a template, and no i did not define any filter parameter: > >>> > >>>LAYER > >>> NAME Oracle > >>> STATUS DEFAULT > >>> TYPE POLYGON > >>> DEBUG ON > >>> CONNECTIONTYPE oraclespatial > >>> CONNECTION "user/passwd at BOX.os" > >>> DATA "GEOMETRIE from FLURST USING SRID 82027" > >>> PROJECTION > >>> "init=epsg:31467" > >>> END > >>> CLASS > >>> NAME gw > >>> TEMPLATE "dummy.html" > >>> STYLE > >>> COLOR 192 192 192 > >>> OUTLINECOLOR 0 0 0 > >>> END > >>> END > >>> END > >>> > >>> > >>>Should i open a bug on this? > >>>Many thanks > >>>Nicol > >>> > >>> > >>>gdb-Output: > >>> > >>> > >>> > >> > >> > >> > >> > >>>Am Donnerstag, den 28.04.2005, 11:42 -0300 schrieb Fernando Simon: > >>> > >>> > >>>>Hi Nicol, > >>>> This problem can be a bug in maporaclespatial.c in 4.4.2 version. > >>>>In this version of Mapserver the maporaclespatial is a 1.16 version, > >>>>a old version (now it is a 1.25). I fixed some problems with OCI > >>>>handlers between 1.6 and 1.25, the last version 1.25 can work > >>>>correctly for you. > >>>> But, it's a strange problem, how did you define oracle spatial > >>>>layer? Did you define the template for the layer? Did you define any > >>>>filter parameter for the layer? > >>>> Thanks. > >>>> > >>>>ps: for cvs version specify the --enable-point-z-m flag > >>>> > >>>>------------------------------------------------------------------------ > >>>>Fernando Simon > >>>>Mapserver and Oracle Spatial developer > >>>>G10 - Laboratorio de Computacao Aplicada - Brazil > >>>>http://g10.cttmar.univali.br - UNIVALI/CTTMAR > >>>>------------------------------------------------------------------------ > >>>> > >>>>Citando Nicol Hermann : > >>>> > >>>> > >>>> > >>>>>Dear list, > >>>>> > >>>>>I want to use the query function of the native Oracle Spatial > >>>>>support > >>>>>(INPUT=ORACLESPATIAL) from mapserver 4.4.2. > >>>>>Displaying the image is no problem but when try to get the query > >>>>>results > >>>>>mapserver crashes with a segmentation fault. > >>>>> > >>>>>Here is what i try to do: > >>>>> > >>>>>for($j = 0;$j < $Layer->getNumResults(); $j++) { > >>>>> $oRes = $Layer->getResult($j); > >>>>> $shpobj = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); > >>>>>// <- > >>>>>Line which causes the Segmentation fault > >>>>> $shpobj->free(); > >>>>>} > >>>>> > >>>>>Is this a bug or do i have to change something? > >>>>>My system is: > >>>>>Debian sarge, mapserver 4.4.2 (php Mapscript), oracle 10g > >>>>> > >>>>>Attached you find the output of gdb. > >>>>> > >>>>> > >>> > >>> > >>>>------------------------------------------------- > >>>> Univali - Webmail - http://webmail.univali.br > >>>> From jmckenna at DMSOLUTIONS.CA Mon May 2 06:48:21 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 2 May 2005 09:48:21 -0400 Subject: Architecture of my site: Chameleon, MapLab, MapScript, etc. What should I In-Reply-To: Message-ID: That is one way to look at it. I don't think we ever thought of replacing GMapFactory - GMapFactory is still useful for people who don't care to customize their application (it does offer options for layout, however to add more options you would have to dive deep into phpmapscript code). Chameleon offers many more 'widgets' (mapping functionality), allows for custom widget additions (as Bart mentioned), and is constantly growing through development. jeff Bart van den Eijnden wrote: > I think Chameleon replaces GMapFactory, but maybe DMSG has a different vision to this. > > Chameleon offers a lot of flexibility in my opinion, you can build your own widgets inside the Chameleon system. My advice would be to start looking at Chameleon. > > Best regards, > Bart > > Bart van den Eijnden > Syncera-ITSolutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>>>Rodrigo Tomasi 05/02/05 02:15pm >>> > > Thanks Bart, > > And about MapLab s GMapFactory ? Isn t similiar to Chameleon ? > > That s my doubt: > > 1) Build my own mapscript application OR > 2) Use Chameleon ou GMapFactory > > Maybe the first option will be slower at start, by will give me more > flexibility and scalability in the feature. I m afraid of use a 3rd party > solution (ex: Chameleon), have a fast start but after 1 month discover > that I have some limitations that I will not have building my own > mapscript application. > > What is your sugestion ? > > Thanks again, > > Rodrigo > > ------------ > > On Mon, 2 May 2005 13:29:08 +0200, Bart van den Eijnden ITSOLUTIONS.NL> wrote: > > >>Hi, >> >>Maplab is a tool mainly aimed at creating and managing Mapserver MAP > > files. > >>Mapscript is a SWIG-based (http://www.swig.org) or PHP interface to the > > Mapserver C core. > >>Chameleon is based on PHP/Mapscript (PHP/Mapscript is the engine of > > Chameleon) and is a toolkit to build webmapping applications fast using > templates. ALl the functionality you need is part of Chameleon. > >>You can create your own Mapscript application, but it's a lot faster to > > build an application using Chameleon in my opinion. > >>Best regards, >>Bart >> >>Bart van den Eijnden >>Syncera-ITSolutions >>Postbus 270 >>2600 AG DELFT >> >>tel.nr.: 015-7512436 >>email: BEN at Syncera-ITSolutions.nl >> >> >>>>>Rodrigo Tomasi 05/02/05 01:14pm >>> >> >>Hi, >> >>I m searching for the best architecture for my MapServer site. >> >>I m with difficult to understand what is the difference between these >>tools: Chameleon, MapLab, MapScript. Can anyone point me in the right >>direction or send some documentation ? >> >>My page will run on Windows. I want to build a page with PHP that will >>display a mapfile with about 150 layers on Oracle Spatial or >>Shapefile, with the following commands: >> >>- Zoom in >>- Zoom Out >>- Full Extent >>- Pan >>- Identify >>- Measure Distance >>- Layer s list loaded from mapfile and divided into groups (vector and > > raster) > >>- Show/Hide layer >> >>Users will enter in the site by entering the main page (overview) or >>by making a query on a Table and the clicking on "View Map" button >>(direct view). >> >>The page will be part of an Environmental Information System. >> >>Any ideas ? What s the best option to me ? >>I have experience in ArcIMS (C# Development), so I think when I >>understand the architecture things will clear more rapidly. >> >>Thanks in advance, >> >> Rodrigo > > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From bfraser at GEOANALYTIC.COM Mon May 2 07:05:06 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Mon, 2 May 2005 08:05:06 -0600 Subject: Book about Distributed GIS Message-ID: Raphael, Two books that cover Internet GIS are "GIS ONLINE" by Brandon Plewe, OnWord Press ISBN 1-56690-137-5 (1997) "Internet GIS" Zhong-Ren Peng, Wiley & Sons ISBN 0-471-35923-8 (2003) Brent Fraser ----- Original Message ----- From: "Raphael Teixeira" To: Sent: Monday, May 02, 2005 7:17 AM Subject: [UMN_MAPSERVER-USERS] Book about Distributed GIS Hi All, I'm working on my dissertation about Distributed GIS and I'd like to know a name of a good book that cover this subject. Best regards -- Raphael da Silva Teixeira From wouter.schaubroeck at GMAIL.COM Mon May 2 07:07:10 2005 From: wouter.schaubroeck at GMAIL.COM (Wouter Schaubroeck) Date: Mon, 2 May 2005 16:07:10 +0200 Subject: Book about Distributed GIS In-Reply-To: Message-ID: Raphael, There are several: * title = {Internet GIS: Distributed geospatial services for the Internet and wireless networks}, publisher = {Wiley}, year = {2003}, author = {Peng, Zhong-Ren. and Tsou, Ming-Hsiang.}, * title = {Geospatial data infrastructure: concepts, cases and good practice}, publisher = {Oxford University Press}, year = {2000}, editor = {Groot, Richard and McLaughlin, John}, * title = {Online GIS and Spatial Metadata}, publisher = {Taylor and Francis}, year = {2002}, author = {Green, David and Bossomaier, Terry}, * Also there are a lot of papers on the internet - i suggest you pay scholar.google.com a visit * Here you can find some information perhaps: http://www.agile-secretariat.org/Conference/Confer.html grtz Wouter Schaubroeck Raphael Teixeira wrote: >Hi All, > > I'm working on my dissertation about Distributed GIS and I'd like >to know a name of a good book that cover this subject. > > Best regards > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.canfield at GMAIL.COM Mon May 2 07:09:19 2005 From: andy.canfield at GMAIL.COM (Andy Canfield) Date: Mon, 2 May 2005 07:09:19 -0700 Subject: Easiest OS Message-ID: I know it may fall into the realm of personal opinion but what is the easiest OS to run Mapserver on from start to finish? By that I mean compiling, setting up, maintaining, and serving. If it's Linux or Unix then please let me know which type. Thank you, Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From pscott at UWC.AC.ZA Mon May 2 07:21:04 2005 From: pscott at UWC.AC.ZA (Paul Scott) Date: Mon, 2 May 2005 16:21:04 +0200 Subject: Easiest OS Message-ID: Not to start a distro war or anything... I have set up mapserver et al on RH9, debian, Mandrake and Windows. By far the best experience I had was with Mandrake 10 and 10.1, however as a production server I would think twice about that choice, rather go with debian. Nice thing about debian is that there is now a debian GIS repository that is pretty actively maintained, so it makes life VERY easy when you can simply apt-get install mapserver! I had the most problems with Windows, but that may be that I am just not a Windows person, I like the command line, so I may be a touch biased ;> --Paul >>> Andy Canfield 05/02/05 4:09 PM >>> I know it may fall into the realm of personal opinion but what is the easiest OS to run Mapserver on from start to finish? By that I mean compiling, setting up, maintaining, and serving. If it's Linux or Unix then please let me know which type. Thank you, Andy From jcradock at ME3.COM Mon May 2 07:23:01 2005 From: jcradock at ME3.COM (James Cradock) Date: Mon, 2 May 2005 10:23:01 -0400 Subject: Easiest OS In-Reply-To: <7425d08705050207097e6a232e@mail.gmail.com> Message-ID: Andy, It depends on your comfort level and experience with Windows or with other operating systems, like Linux (Redhat, Debian, Mandrake, etc), FreeBSD or Mac OS X. Do *you* have a preference? The MapServer list will give you enough support whatever the operating system you use. Jim On May 2, 2005, at 10:09 AM, Andy Canfield wrote: > I know it may fall into the realm of personal opinion but what is the > easiest OS to run Mapserver on from start to finish? By that I mean > compiling, setting up, maintaining, and serving. If it's Linux or Unix > then please let me know which type. > Thank you, > Andy > ----- James Cradock, jcradock at me3.com me3 Technology Consultants, LLC 24 Preble Street, 2nd Floor Portland, ME 04101 207-772-3217 (office) 207-838-8678 (mobile) www.me3.com From ed at TOPOZONE.COM Mon May 2 07:33:15 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 2 May 2005 10:33:15 -0400 Subject: Easiest OS Message-ID: Andy - It is the operating system and Web server configuration you know best. MapServer is a relatively straightforward CGI application, so the issues users most commonly have involve proper Web server setup/configuration/security; they're really not MapServer issues. If you're going to be a MapScript user, the issues there are mostly around integration with the scripting engine and Web server, so it's easiest to work with the servers you know. The one area I have found most different is the general neglect of library developers for Windows builds. There's nothing mysterious about Windows makefiles, but some supporting libraries simply ignore them or (worse) ship defective ones. It's a sad commentary that the very simple regex-0.12 library has probably caused more problems per line of code simply because the Windows makefile is messed up. However, the recent availability of prebuilt binaries for Windows (and other platforms) may reduce or eliminate this issue entirely. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Andy Canfield Sent: Monday, May 02, 2005 10:09 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Easiest OS I know it may fall into the realm of personal opinion but what is the easiest OS to run Mapserver on from start to finish? By that I mean compiling, setting up, maintaining, and serving. If it's Linux or Unix then please let me know which type. Thank you, Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From cdaily at GMAIL.COM Mon May 2 07:33:57 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Mon, 2 May 2005 09:33:57 -0500 Subject: Easiest OS In-Reply-To: Message-ID: I've been running it fine on Suse 9.1, but it's not always easy to find rpms for some of the gis software. I compile most stuff, though, so it hasn't been that big of a deal. -Camden Daily http://www.prupref.com From fsimon at UNIVALI.BR Mon May 2 07:35:35 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Mon, 2 May 2005 11:35:35 -0300 Subject: mapserv segfaults trying to get thequery results of a native oracle spati In-Reply-To: <1115041414.8310.27.camel@emil> Message-ID: Hi Nicol, You can change the data parameter for any sql that return a geometry type. In your case you can add "WHERE" inside the data stmt, like: DATA "GEOMETRIE from (SELECT ID, INFOTEXT, BESCHRIFT, GEOMETRIE FROM FLURST WHERE ID > 0) USING UNIQUE ID SRID 82027" Here I don't use the "select *", but you can use without problem. About the example, you can define your sql with where's, join's, functions and spatial functions between the "(" and ")". The maporaclespatial.c don't change this sql, it's mount the internal sql using your sql as base. Just as hint, the column that you define as UNIQUE, ID in your case, must be a numeric type. Only numbers, and it's need to be unique identifiers for your table. More one hint, you can start your counter "j" with 1 and test the if occur the same problem. Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Nicol Hermann wrote: >Hi Fernando, > >thank you for your answer! >I found a problem in my code. >I opened the layer before i send the query. I changed this to: > >$status = $Layer -> queryByPoint($geometrie, MS_MULTIPLE, 100); >$Layer->open(); >for($j = 0;$j < $Layer->getNumResults(); $j++) { > $oRes = $Layer->getResult($j); > $shpobj = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); > $shpobj->free(); >} >$Layer->close(); > >Now i get a mapserver error message: > >Fatal error: [MapServer Error]: msOracleSpatialLayerGetShape(): Error: >ORA-01722: Ungultige Zahl . Query statement: SELECT ID, INFOTEXT, >BESCHRIFT, GEOMETRIE FROM (SELECT * FROM FLURST) WHERE ID = 0 .Check >your data statement. > >Here is my data statement: >DATA "GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027" > >The value of the variable '$oRes' are: > >stdClass Object >( > [shapeindex] => 0 > [tileindex] => -1 > [classindex] => 0 >) > >How do i have to change the data statement to get a valid shapeindex? > >I'am not sure that the solution found for bug #1244 solves my problem >with the "--enable-point-z" flag. I use the latest cvs version which >should contain the fix, right? > >Many thanks for your help >Nicol > > > > From ltiu at ALUMNI.SFU.CA Mon May 2 07:41:12 2005 From: ltiu at ALUMNI.SFU.CA (Lyndon Tiu) Date: Mon, 2 May 2005 07:41:12 -0700 Subject: Easiest OS In-Reply-To: <16264e0705050207332692cffb@mail.gmail.com> Message-ID: Mandrake comes with pre-compiled Mapserver binaries with basic capabilities fit for most needs. Saves you time compiling. -- Lyndon Tiu From andy.canfield at GMAIL.COM Mon May 2 07:43:04 2005 From: andy.canfield at GMAIL.COM (Andy Canfield) Date: Mon, 2 May 2005 07:43:04 -0700 Subject: Easiest OS In-Reply-To: Message-ID: So far I have only set it up on Windows but I want to set it up at home now on my home server. The only preferences I have is that it not be a Windows OS, it must be able to run Tomcat as well as Apache, and it must be able to compile the PHP/Mapscript version of Mapserver. Does this filter it down at all to a certain distro? I had considered Sun Solaris 10 but so far I have heard virtually no feedback on how well Mapserver runs on Solaris 10. On 5/2/05, James Cradock wrote: > > Andy, > > It depends on your comfort level and experience with Windows or with > other operating systems, like Linux (Redhat, Debian, Mandrake, etc), > FreeBSD or Mac OS X. Do *you* have a preference? > > The MapServer list will give you enough support whatever the operating > system you use. > > Jim > > On May 2, 2005, at 10:09 AM, Andy Canfield wrote: > > > I know it may fall into the realm of personal opinion but what is the > > easiest OS to run Mapserver on from start to finish? By that I mean > > compiling, setting up, maintaining, and serving. If it's Linux or Unix > > then please let me know which type. > > Thank you, > > Andy > > > ----- > James Cradock, jcradock at me3.com > > me3 Technology Consultants, LLC > 24 Preble Street, 2nd Floor > Portland, ME 04101 > > 207-772-3217 (office) > 207-838-8678 (mobile) > > www.me3.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From saintsjd at YAHOO.COM Mon May 2 07:43:21 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Mon, 2 May 2005 07:43:21 -0700 Subject: Easiest OS In-Reply-To: 6667 Message-ID: my vote is for debian and the debianGIS repository http://pkg-grass.alioth.debian.org/cgi-bin/wiki.pl Jon From mapserver at GEOWORLD.DE Mon May 2 07:59:49 2005 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Mon, 2 May 2005 16:59:49 +0200 Subject: mapserv segfaults trying to get thequery results of a native oracle spati In-Reply-To: <42763AB7.5040907@univali.br> Message-ID: Hi Fernando, is it mandatory to use numeric field types as UNIQUE column in the data statement? At the moment i use a character field. I assume this is the reason for the wrong shapeindex value, right? Thanks Nicol Am Montag, den 02.05.2005, 11:35 -0300 schrieb Fernando Simon: > Hi Nicol, > You can change the data parameter for any sql that return a geometry > type. In your case you can add "WHERE" inside the data stmt, like: > DATA "GEOMETRIE from (SELECT ID, INFOTEXT, BESCHRIFT, GEOMETRIE FROM > FLURST WHERE ID > 0) USING UNIQUE ID SRID 82027" > Here I don't use the "select *", but you can use without problem. > About the example, you can define your sql with where's, join's, > functions and spatial functions between the "(" and ")". The > maporaclespatial.c don't change this sql, it's mount the internal sql > using your sql as base. > Just as hint, the column that you define as UNIQUE, ID in your case, > must be a numeric type. Only numbers, and it's need to be unique > identifiers for your table. More one hint, you can start your counter > "j" with 1 and test the if occur the same problem. > Thanks. > > ------------------------------------------------------------------------ > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://g10.cttmar.univali.br - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > > > Nicol Hermann wrote: > > >Hi Fernando, > > > >thank you for your answer! > >I found a problem in my code. > >I opened the layer before i send the query. I changed this to: > > > >$status = $Layer -> queryByPoint($geometrie, MS_MULTIPLE, 100); > >$Layer->open(); > >for($j = 0;$j < $Layer->getNumResults(); $j++) { > > $oRes = $Layer->getResult($j); > > $shpobj = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); > > $shpobj->free(); > >} > >$Layer->close(); > > > >Now i get a mapserver error message: > > > >Fatal error: [MapServer Error]: msOracleSpatialLayerGetShape(): Error: > >ORA-01722: Ungultige Zahl . Query statement: SELECT ID, INFOTEXT, > >BESCHRIFT, GEOMETRIE FROM (SELECT * FROM FLURST) WHERE ID = 0 .Check > >your data statement. > > > >Here is my data statement: > >DATA "GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027" > > > >The value of the variable '$oRes' are: > > > >stdClass Object > >( > > [shapeindex] => 0 > > [tileindex] => -1 > > [classindex] => 0 > >) > > > >How do i have to change the data statement to get a valid shapeindex? > > > >I'am not sure that the solution found for bug #1244 solves my problem > >with the "--enable-point-z" flag. I use the latest cvs version which > >should contain the fix, right? > > > >Many thanks for your help > >Nicol > > > > > > > > > > From stigmata_blackangel at YAHOO.COM Mon May 2 08:13:41 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Mon, 2 May 2005 08:13:41 -0700 Subject: Easiest OS In-Reply-To: 6667 Message-ID: In my opinion, the easiest map-serving OS is HostGIS Linux. I posted to the list about our 3.0 release yesterday. It's Slackware Linux, with MapServer, etc already set up, including sample apps. 220 MB download, takes about 1 minute to get through the interactive part of the install. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Troy.Johnson at SDL.USU.EDU Mon May 2 08:18:00 2005 From: Troy.Johnson at SDL.USU.EDU (Troy R. Johnson) Date: Mon, 2 May 2005 09:18:00 -0600 Subject: Finding Latitude and Longitude of the 4 corners of a map using mapscript. Message-ID: Giridhar, My problem was the projection as described by Sean (Thanks!) I'm passing the latitude and longitude of the 4 corners to the browser. I still calculate the lat and lon of each point, from these corner points. So that sounds like what you are already doing? Thanks Troy -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Giridhar Manepalli Sent: Saturday, April 30, 2005 2:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Finding Latitude and Longitude of the 4 corners of a map using mapscript. Troy, Did you try $map->extent after the zooming? I thought this is working for me. Let me know how it goes. Also, I thought we always have the image coordinates with us and not latitude and longitude on the browser. Because, I always use the image coordinates and convert them into latitude and longitude. How did you manage to get latitude and longitude without knowing the image coordinates? Knowing this, would do a lot of good to me. Thanks, Giridhar On 4/30/05, Sean Gillies wrote: > Troy, > > I'm cc'ing the list on this. > > First of all, you should provide a datum or ellipsoid, if known, for > the latlong projection. The second thing to keep in mind is that your > projected rectangle's corner points are not necessarily the same points > a the original rectangle. The projected rectangle is the smallest > rectangle that contains the transformation of the original one. > > Sean > > On Apr 29, 2005, at 5:50 PM, Troy R. Johnson wrote: > > > Hi Sean, thanks for your information. I followed the instructions and > > did this after I had drawn the image and saved the file: > > > > $image=$map->draw(); > > $image_url=$image->saveWebImage('MS_PNG',1,1,0); > > > > Then I do a > > > > $latlong_rect = $map->extent; > > $latlong_rect->project( ms_newprojectionobj($map->getProjection()), > > ms_newprojectionobj("proj=latlong")); > > > > I then print these lat long values out, but they don't match up > > exactly with Lat Long > > points of fixed locations. For example I have a shape file that > > contains a point at > > -111.383, 42.333. When I pan that point to the corner 0,0 I get a > > reported lat lon > > of the corner printed out of -111.351, 42.344 and this is when I'm > > zoomed way in. > > The opposite corner lat lon points are -111.38 and 42.318. So I'm > > surprised that there > > is this much error. > > > > Is there something else that I could be doing wrong? > > > > > > The reason for me wanting the lat, lon points is so that I can > > calculate the x,y > > pixel coordinates of these points of interest in shape files. I'm > > sure the map > > server at some point knows what these x,y coordinates are, because it > > places those > > points on the image it returns, but I haven't been able to find a way > > to > > retrieve the x,y coordinates directly, so I'm calculating them based > > on lat, lon. > > > > Maybe there is an easier way to do this that I'm missing? > > > > Any help would be appreciated. > > > > Thanks > > > > Troy > > > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > > Behalf Of Sean Gillies > > Sent: Tuesday, April 26, 2005 3:08 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Finding Latitude and Longitude of > > the > > 4 corners of a map using mapscript. > > > > > > Just make sure to get and transform your extent *after* the map is > > drawn because msDrawMap will fudge the map extents to fit the specified > > image size. > > > > cheers, > > Sean > > > > On Apr 26, 2005, at 2:57 PM, James Sohr wrote: > > > >> Yes, you can calculate the lat long of your current extent by using > >> the > >> RectObj's project method. For instance: > >> > >> > >> $latlong_rect = $map->extent; > >> $latlong_rect->project( ms_newprojectionobj($map->getProjection), > >> ms_newprojectionobj("proj=latlong")); > >> > >> > >> > >> Assuming $map is your map object, the latitudes and longitudes of the > >> four > >> corners of your map are now stored in $latlong_rect->minx, > >> $latlong_rect- > >>> miny, $latlong_rec->maxx, and $latlong_rect->maxy . > >> > >> > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > From f.iacotucci at INFINITO.IT Mon May 2 07:55:04 2005 From: f.iacotucci at INFINITO.IT (Francesco Iacotucci) Date: Mon, 2 May 2005 16:55:04 +0200 Subject: imagemap In-Reply-To: Message-ID: You have to use FILTERITEM "column with your id" in your layer definition. regards, Francesco Gernot Katzlberger ha scritto: >Hi list, >I'm trying to get the imagemap function working. I can create an output and >an imagemap but the ids to the single polygons are missing. How do I get the >ids into the href of the imagemap? The ids should come out of the database. > >html-source: >now: > > > >should be: > > > > >I have a mapfile with the outputformat and one layer defined: > >... > >OUTPUTFORMAT > NAME imagemap > DRIVER imagemap > MIMETYPE text/html > FORMATOPTION "POLYHREF=/verifier/map.php?state=%s" > FORMATOPTION "SYMBOLHREF=#" > FORMATOPTION "MAPNAME=image_map" > FORMATOPTION "TITLE=image_map" > FORMATOPTION "POLYMOUSEOUT=return nd();" > FORMATOPTION "POLYMOUSEOVER=return overlib('%s');" >END > >LAYER > CONNECTION "user=user password=pwd dbname=db host=localhost" > CONNECTIONTYPE POSTGIS > DATA "the_geom from gd_poly_002" > NAME "see01" > STATUS ON > TYPE POLYGON > UNITS METERS > > CLASS > NAME "class0" > STYLE > COLOR 189 215 231 > SYMBOL 0 > END > END > END >... > >Thanks, >Gernot > > > > From fsimon at UNIVALI.BR Mon May 2 08:34:36 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Mon, 2 May 2005 12:34:36 -0300 Subject: mapserv segfaults trying to get thequery results of a native oracle spati In-Reply-To: <1115045989.8313.32.camel@emil> Message-ID: Hi Nicol, Yes, is mandatory to use numeric type for UNIQUE column. I use this way because mapserver use the internal shapeindex as a long type. The character field can be the problem in your case. Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Nicol Hermann wrote: >Hi Fernando, >is it mandatory to use numeric field types as UNIQUE column in the data >statement? At the moment i use a character field. I assume this is the >reason for the wrong shapeindex value, right? >Thanks >Nicol > > >Am Montag, den 02.05.2005, 11:35 -0300 schrieb Fernando Simon: > > >>Hi Nicol, >> You can change the data parameter for any sql that return a geometry >>type. In your case you can add "WHERE" inside the data stmt, like: >>DATA "GEOMETRIE from (SELECT ID, INFOTEXT, BESCHRIFT, GEOMETRIE FROM >>FLURST WHERE ID > 0) USING UNIQUE ID SRID 82027" >> Here I don't use the "select *", but you can use without problem. >> About the example, you can define your sql with where's, join's, >>functions and spatial functions between the "(" and ")". The >>maporaclespatial.c don't change this sql, it's mount the internal sql >>using your sql as base. >> Just as hint, the column that you define as UNIQUE, ID in your case, >>must be a numeric type. Only numbers, and it's need to be unique >>identifiers for your table. More one hint, you can start your counter >>"j" with 1 and test the if occur the same problem. >> Thanks. >> >>------------------------------------------------------------------------ >>Fernando Simon >>Mapserver and Oracle Spatial developer >>G10 - Laboratorio de Computacao Aplicada - Brazil >>http://g10.cttmar.univali.br - UNIVALI/CTTMAR >>------------------------------------------------------------------------ >> >> >>Nicol Hermann wrote: >> >> >> >>>Hi Fernando, >>> >>>thank you for your answer! >>>I found a problem in my code. >>>I opened the layer before i send the query. I changed this to: >>> >>>$status = $Layer -> queryByPoint($geometrie, MS_MULTIPLE, 100); >>>$Layer->open(); >>>for($j = 0;$j < $Layer->getNumResults(); $j++) { >>> $oRes = $Layer->getResult($j); >>> $shpobj = $Layer->getShape($oRes->tileindex,$oRes->shapeindex); >>> $shpobj->free(); >>>} >>>$Layer->close(); >>> >>>Now i get a mapserver error message: >>> >>>Fatal error: [MapServer Error]: msOracleSpatialLayerGetShape(): Error: >>>ORA-01722: Ungultige Zahl . Query statement: SELECT ID, INFOTEXT, >>>BESCHRIFT, GEOMETRIE FROM (SELECT * FROM FLURST) WHERE ID = 0 .Check >>>your data statement. >>> >>>Here is my data statement: >>>DATA "GEOMETRIE from (SELECT * FROM FLURST) USING UNIQUE ID SRID 82027" >>> >>>The value of the variable '$oRes' are: >>> >>>stdClass Object >>>( >>> [shapeindex] => 0 >>> [tileindex] => -1 >>> [classindex] => 0 >>>) >>> >>>How do i have to change the data statement to get a valid shapeindex? >>> >>>I'am not sure that the solution found for bug #1244 solves my problem >>>with the "--enable-point-z" flag. I use the latest cvs version which >>>should contain the fix, right? >>> >>>Many thanks for your help >>>Nicol >>> >>> >>> >>> >>> >>> >> >> > > > From schuyler at NOCAT.NET Mon May 2 08:44:37 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Mon, 2 May 2005 08:44:37 -0700 Subject: Easiest OS In-Reply-To: <16264e0705050207332692cffb@mail.gmail.com> Message-ID: * On 2-May-2005 at 7:34AM PDT, Camden Daily said: > I've been running it fine on Suse 9.1, but it's not always easy to > find rpms for some of the gis software. I compile most stuff, though, > so it hasn't been that big of a deal. I don't know if these RPMs will work with SuSE, but I maintain a repository of GIS RPMs at: http://mappinghacks.com/rpm/ Some of the RPMs are a little out of date atm - I have to carve out some time to do maintenance on the archive shortly. SDE From stigmata_blackangel at YAHOO.COM Mon May 2 08:46:56 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Mon, 2 May 2005 08:46:56 -0700 Subject: solaris bug In-Reply-To: 6667 Message-ID: This was from September 2004, and all I have to go by is what leftovers are still in my Sent folder. Ultimately, looking back at it, Don *did* get it to work, by experimenting with versions. He used GEOS 2.0.0 and PostGIS 0.9.0 This was under SPARC Solaris 9. Also, we had many compile problems (apparently configure issues) with GDAL 1.2.x and GEOS 2.1.x under SPARC Solaris. Any or all of these issues may have been corrected by now. If anyone is using GDAL, PostGIS, etc. on Solaris, I'd love to hear what versions you're using and how easy/difficult it was. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From knozi at GMX.AT Mon May 2 09:11:26 2005 From: knozi at GMX.AT (knozi) Date: Mon, 2 May 2005 18:11:26 +0200 Subject: AW: [UMN_MAPSERVER-USERS] imagemap In-Reply-To: <42763F48.9020107@infinito.it> Message-ID: thanks a lot, now it works! regards, Gernot -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Francesco Iacotucci Gesendet: Montag, 02. Mai 2005 16:55 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] imagemap You have to use FILTERITEM "column with your id" in your layer definition. regards, Francesco Gernot Katzlberger ha scritto: >Hi list, >I'm trying to get the imagemap function working. I can create an output and >an imagemap but the ids to the single polygons are missing. How do I get the >ids into the href of the imagemap? The ids should come out of the database. > >html-source: >now: > > > >should be: > > > > >I have a mapfile with the outputformat and one layer defined: > >... > >OUTPUTFORMAT > NAME imagemap > DRIVER imagemap > MIMETYPE text/html > FORMATOPTION "POLYHREF=/verifier/map.php?state=%s" > FORMATOPTION "SYMBOLHREF=#" > FORMATOPTION "MAPNAME=image_map" > FORMATOPTION "TITLE=image_map" > FORMATOPTION "POLYMOUSEOUT=return nd();" > FORMATOPTION "POLYMOUSEOVER=return overlib('%s');" >END > >LAYER > CONNECTION "user=user password=pwd dbname=db host=localhost" > CONNECTIONTYPE POSTGIS > DATA "the_geom from gd_poly_002" > NAME "see01" > STATUS ON > TYPE POLYGON > UNITS METERS > > CLASS > NAME "class0" > STYLE > COLOR 189 215 231 > SYMBOL 0 > END > END > END >... > >Thanks, >Gernot > > > > From cdaily at GMAIL.COM Mon May 2 09:38:25 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Mon, 2 May 2005 11:38:25 -0500 Subject: Easiest OS In-Reply-To: <20050502154437.GC31423@vishnu.tridity.org> Message-ID: Thanks Schuyler. -Camden Daily http://www.prupref.com On 5/2/05, Schuyler Erle wrote: > * On 2-May-2005 at 7:34AM PDT, Camden Daily said: > > I've been running it fine on Suse 9.1, but it's not always easy to > > find rpms for some of the gis software. I compile most stuff, though, > > so it hasn't been that big of a deal. > > I don't know if these RPMs will work with SuSE, but I maintain a > repository of GIS RPMs at: > > http://mappinghacks.com/rpm/ > > Some of the RPMs are a little out of date atm - I have to carve out > some time to do maintenance on the archive shortly. > > SDE > From rtcastro2 at GMAIL.COM Mon May 2 09:46:39 2005 From: rtcastro2 at GMAIL.COM (Rodrigo Tomasi) Date: Mon, 2 May 2005 11:46:39 -0500 Subject: Architecture of my site: Chameleon, MapLab, MapScript, etc. What should I Message-ID: Thanks Jeff, I want a more scalable solution. So I?l try MapEdit/MapBrowse to create my maps and Chameleon to design my site. I hope it will work !! If things become complicated I?l try GMapFactory with phpmapscript development. If anyone has any other solution I?d like to hear. Rodrigo ------------------ On Mon, 2 May 2005 09:48:21 -0400, Jeff McKenna wrote: >That is one way to look at it. I don't think we ever thought of >replacing GMapFactory - GMapFactory is still useful for people who don't >care to customize their application (it does offer options for layout, >however to add more options you would have to dive deep into >phpmapscript code). Chameleon offers many more 'widgets' (mapping >functionality), allows for custom widget additions (as Bart mentioned), >and is constantly growing through development. > >jeff > > > > >Bart van den Eijnden wrote: >> I think Chameleon replaces GMapFactory, but maybe DMSG has a different vision to this. >> >> Chameleon offers a lot of flexibility in my opinion, you can build your own widgets inside the Chameleon system. My advice would be to start looking at Chameleon. >> >> Best regards, >> Bart >> >> Bart van den Eijnden >> Syncera-ITSolutions >> Postbus 270 >> 2600 AG DELFT >> >> tel.nr.: 015-7512436 >> email: BEN at Syncera-ITSolutions.nl >> >> >>>>>Rodrigo Tomasi 05/02/05 02:15pm >>> >> >> Thanks Bart, >> >> And about MapLab s GMapFactory ? Isn t similiar to Chameleon ? >> >> That s my doubt: >> >> 1) Build my own mapscript application OR >> 2) Use Chameleon ou GMapFactory >> >> Maybe the first option will be slower at start, by will give me more >> flexibility and scalability in the feature. I m afraid of use a 3rd party >> solution (ex: Chameleon), have a fast start but after 1 month discover >> that I have some limitations that I will not have building my own >> mapscript application. >> >> What is your sugestion ? >> >> Thanks again, >> >> Rodrigo >> >> ------------ >> >> On Mon, 2 May 2005 13:29:08 +0200, Bart van den Eijnden > ITSOLUTIONS.NL> wrote: >> >> >>>Hi, >>> >>>Maplab is a tool mainly aimed at creating and managing Mapserver MAP >> >> files. >> >>>Mapscript is a SWIG-based (http://www.swig.org) or PHP interface to the >> >> Mapserver C core. >> >>>Chameleon is based on PHP/Mapscript (PHP/Mapscript is the engine of >> >> Chameleon) and is a toolkit to build webmapping applications fast using >> templates. ALl the functionality you need is part of Chameleon. >> >>>You can create your own Mapscript application, but it's a lot faster to >> >> build an application using Chameleon in my opinion. >> >>>Best regards, >>>Bart >>> >>>Bart van den Eijnden >>>Syncera-ITSolutions >>>Postbus 270 >>>2600 AG DELFT >>> >>>tel.nr.: 015-7512436 >>>email: BEN at Syncera-ITSolutions.nl >>> >>> >>>>>>Rodrigo Tomasi 05/02/05 01:14pm >>> >>> >>>Hi, >>> >>>I m searching for the best architecture for my MapServer site. >>> >>>I m with difficult to understand what is the difference between these >>>tools: Chameleon, MapLab, MapScript. Can anyone point me in the right >>>direction or send some documentation ? >>> >>>My page will run on Windows. I want to build a page with PHP that will >>>display a mapfile with about 150 layers on Oracle Spatial or >>>Shapefile, with the following commands: >>> >>>- Zoom in >>>- Zoom Out >>>- Full Extent >>>- Pan >>>- Identify >>>- Measure Distance >>>- Layer s list loaded from mapfile and divided into groups (vector and >> >> raster) >> >>>- Show/Hide layer >>> >>>Users will enter in the site by entering the main page (overview) or >>>by making a query on a Table and the clicking on "View Map" button >>>(direct view). >>> >>>The page will be part of an Environmental Information System. >>> >>>Any ideas ? What s the best option to me ? >>>I have experience in ArcIMS (C# Development), so I think when I >>>understand the architecture things will clear more rapidly. >>> >>>Thanks in advance, >>> >>> Rodrigo >> >> >> > > >-- >Jeff McKenna >DM Solutions Group Inc. >http://www.dmsolutions.ca Thanks Jeff From andy.canfield at GMAIL.COM Mon May 2 09:57:54 2005 From: andy.canfield at GMAIL.COM (Andy Canfield) Date: Mon, 2 May 2005 09:57:54 -0700 Subject: Easiest OS In-Reply-To: <20050502154857.7142.qmail@web53807.mail.yahoo.com> Message-ID: Gregor and all, I went to that page Gregor linked and that sounds like it will save me a ton of time. I will probably use that then and if I can't get Tomcat running on it I'll just put Solaris 10 on another box and run my jsp stuff from that box and fiddle with trying to get a Mapserver build up and going for Solaris 10 when I have time later on. Thanks, Andy On 5/2/05, Gregor Mosheh wrote: > > > > Will that run Tomcat and PHP/Mapscript as well? If > > it will, where do I get that Distro? > > http://www.hostgis.com > > It includes MapScript for PHP, Perl, and Python. It > does not include Tomcat, though there's no reason to > expect that Tomcat couldn't be installed. If it'll > work under Slackware, it'll work under HGL. > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlos_msf at AEIOU.PT Mon May 2 09:57:27 2005 From: carlos_msf at AEIOU.PT (Carlos Ferreira) Date: Mon, 2 May 2005 11:57:27 -0500 Subject: Shapefile vs PostGIS Message-ID: Hello to all, I wanted some help in defining wich data format to work with in a web mapping tool. More accurately, I wanted to understand the advantages of using PostGIS (if any) over using shapefiles. 1: I have installed the package of MapServerForWindows(MS4W) with support for PostGIS and it seems to me that the server takes more time showing data recorded in the Postgre/PostGIS database then data recorded in shapefile. Is this true? 2: Is it faster to make spatial queries through the Postgre/PostGIS capabilities or make all the queries through the MapServer engine? 3: To the ones using Postgre/PostGIS, tell me please the main advantages and core limitations you have encountered. Thank you in advance. Carlos From pauljame at GMAIL.COM Mon May 2 10:38:51 2005 From: pauljame at GMAIL.COM (Paul james) Date: Mon, 2 May 2005 14:38:51 -0300 Subject: Show up only some data of a layer.... Message-ID: I have a line layer, and I?d like to show up only some data from it (by queryByAttribute) ... Is it posible? thank you From RSuddaby at NRCAN.GC.CA Mon May 2 10:44:34 2005 From: RSuddaby at NRCAN.GC.CA (Suddaby, Rod) Date: Mon, 2 May 2005 13:44:34 -0400 Subject: Trouble getting SLD working Message-ID: Hi Tom. Good to hear from you again... 1. Yes, I've pulled up the XML doc directly in my browser. 2. Tried the &styles=myStyle... Mapserver responds with an error: msWMSLoadGetMapParams(): Invalid style (myStyle). And goes on to indicate that Mapserver only supports default styles (i.e. a keyword Default) or an empty string. Note that this error message is embedded in the image returned by Mapserver, not just a text error message. 3. Tried the element with no change in the response. ...scratching my head... Rod. -----Original Message----- From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] Sent: Friday, April 29, 2005 4:27 PM To: Suddaby, Rod; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Trouble getting SLD working Rod, 1./ does the SLD indeed reside at http://localhost/test_sld.xml ? 2./ in your GetMap request, have you tried "...styles=myStyle&sld=http://localhost/test_sld.xml..." (note it should be "styles=", not "style=" ? 3./ Try inserting this element in the UserStyle element (after the "Name" element) 1 ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Suddaby, Rod > Sent: Thursday, 28 April, 2005 18:05 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Trouble getting SLD working > > > Hi Bart, > Yes, Mapserver operates fine with the exception of the SLD. The > GetCapabilities responds with (with respect to SLD): > RemoteWFS="0"/> and the 'request=getStyles' request reports back fine > as well (indicating the styles I set in the CLASS block). > > Using the CLASS block without the SLD works as expected, too. > (BTW, under normal circumstances will the SLD override the > CLASS specified in the map > file?) > > The '&style=' parameter makes no difference whether it is > present or not. > > Does Mapserver have a debug mode where I could trace what is > going on internally? > > Still stumped, > > Rod. > > -----Original Message----- > From: Bart van den Eijnden [mailto:bartvde at xs4all.nl] > Sent: Thursday, April 28, 2005 1:26 PM > To: Rod Suddaby; MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Trouble getting SLD working > > > Hi Rod, > > I can't see anything obvious wrong with what you are doing. > > A few questions: > > -is your WMS GetCapabilities working? > > -does the LAYER work without an SLD, ie when you specify a CLASS? > > -does it work if you leave out the style parameter in the request? > > -your WMS request is not a full WMS request, it should > contain a BBOX, WIDTH, HEIGHT and SRS (among others). But > Mapserver seems to be leniant towards this and probably uses > MAP file values. > > Best regards, > Bart > > On Thu, 28 Apr 2005 14:00:44 -0500, Rod Suddaby > wrote: > > > Hi List: > > I'm a newbie to SLD and I've been trying to figure out why > my build of > > mapserver will not apply the styles. I've created the following SLD > > xml > > file: > > > > [test_sld.xml] > > > xmlns="http://www.opengis.net/sld" > > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ > > ogc" xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3. > > org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://www.opengis.net/sld > > > http://schemas.opengeospatial.net/sld/1.0.0/StyledLayerDescrip > tor.xsd"> > > > > provinces > > > > myStyle > > > > > > > > > > #00ff00 > > > > > > #0000ff > > 3 > > > > > > > > > > > > > > > > > > The layer block of my mapfile is: > > > > LAYER > > NAME provinces > > DATA prov_prj > > PROJECTION > > "init=epsg:42304" > > END > > UNITS METERS > > TYPE POLYGON > > STATUS ON > > > > # CLASS > > # COLOR 255 0 0 > > # OUTLINECOLOR 0 0 255 > > # END > > > > END > > > > > > I've sent the following request to the mapserver: > > http://localhost/cgi-bin/mapserv?map=prov.map&version=1.1. > > > 1&request=getMap&layers=provinces&styles=&sld=http://localhost > /test_sld.xml > > > > ... and all I get is a blank image. Checking the apache access_log > > shows no hit for the 'test_sld.xml' file. It seems that > mapserver is > > simply ignoring > > the sld parameter. > > I've also tried putting the "wms_sld_url" tag in the layer metadata, > > tried the "wms_sld_body" tag, and tried feeding the xml directly > > using the sld_body parameter -- same result > > > > Heres the output of mapserv -v: > > > > %dragon>./mapserv -v > > MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBNP > > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > INPUT=TIFF > > INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > O.S. Is Suse Linux 9.1 > > > > Can anyone see if I'm missing something here? > > Also, are there any other resources available regarding SLD > other than > > the spec and the HOWTO docs? > > > > Thanks, > > Rod. > > > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > From xbobwjones at HOTMAIL.COM Mon May 2 10:51:42 2005 From: xbobwjones at HOTMAIL.COM (Robert Jones) Date: Mon, 2 May 2005 12:51:42 -0500 Subject: International text characters in labels Message-ID: Thanks for the info - does this mean I cannot set up the labels in a styled layer descriptor, but must do it in the .map file instead? Rob From mcgrawj at AGR.GC.CA Mon May 2 12:31:41 2005 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Mon, 2 May 2005 15:31:41 -0400 Subject: WMS GetMap not using Lat/Lon projection Message-ID: Hello all, I'm hoping someone can help with two problems I am having, both of which are related to projections. 1. My first problem is a map file I created in which I set the Map object's projection to "init=epsg:4267" (Lat/Long, NAD27) and it contains a layer for a shapefile whose projection is "init=epsg:4269" (Lat/Long, NAD83). When I try to display this layer using map mode with MapServer on my local machine it works, but it will not work on our corporate server. All other layers (that are also Lat/Long, NAD27) in the map file work. I am running MapServer version 4.4.1 for Windows on my local machine, but am running 4.4.0 for Linux on our corporate server. Is this a known problem? And, if so, is there a workaround besides upgrading the 4.4.0 installation to 4.4.1? 2. I created the pei.map file listed below. The map's projection is set to "init=epsg:4267" (Lat/Long, NAD27) and it contains a layer for a shapefile whose projection is also "init=epsg:4267" (Lat/Long, NAD27). This layer also provides WMS support. In a web browser, I use the following URLs to display the data...first using map mode and second using WMS' GetMap capabilities: 1. To display Map mode results (see MapMode.png for image): http://wms1.agr.gc.ca/cgi-bin/://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map&mode=map&layer= peiLayer 2. To display WMS GetMap image (see GetMap.png for image): http://wms1.agr.gc.ca/cgi-bin/://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map&service=wms&version=1.1.1&request=GetMap&layers= peiLayer When I compare the images generated by these two different processes, the one generated for Map mode appears to display in lat/long, however, the WMS GetMap data seems to be getting projected. To what projection, I have no idea but the differences can be seen in the two attached images "MapMode.png" and "GetMap.png." This behaviour occurs on both my 4.4.1 and 4.4.0 servers. Why are the two outputs displaying the data differently? Any pointers that will help with these problems is greatly appreciated. Cheers, jtm map name pei status on size 400 300 extent -64.601900 45.879485 -61.366990 47.179725 units dd # units meters shapepath "../data" imagecolor 255 255 255 imagetype png # NAD27 projection "init=epsg:4267" end # projection outputformat name png driver "GD/PNG" mimetype "image/png" imagemode RGB extension "png" end # outputformat web imagepath "/ms4w/tmp/ms_tmp/" imageurl "/ms_tmp/" metadata "wms_title" "PEI Test Data" "wms_onlineresource" "http://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map" "wms_srs" "EPSG:4267" "wfs_title" "PEI Test Data" "wfs_onlineresource" "http://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map" "wfs_srs" "EPSG:4267" end # metadata end # web layer name peiLayer type polygon status off dump true data pei metadata "wms_title" "Prince Edward Island" "wfs_title" "Prince Edward Island" end # metadata class color -1 -1 -1 outlinecolor 0 0 0 end # class end # peiLayer layer end # map Joanne T. McGraw Spatial Data Visualization Specialist / Sp?cialiste en visualisation des donn?es spatiales Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: (613) 694-2331 Facsimile/T?l?copieur: (613) 759-1937 960 Carling Ave, #1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3190 bytes Desc: image001.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GetMap.png Type: image/png Size: 5715 bytes Desc: GetMap.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MapMode.png Type: image/png Size: 4283 bytes Desc: MapMode.png URL: From jalfarid at GMAIL.COM Mon May 2 12:57:58 2005 From: jalfarid at GMAIL.COM (Farid Vakilzadeh) Date: Mon, 2 May 2005 15:57:58 -0400 Subject: Pixel's values in DEM raster file Message-ID: Hi all, I am displaying a DEM raster file in Mapserver. I am able to display the DEM raster file but I don't know how I can get or show the pixel values ( long, lat, height ) inside a DEM image. I appreciate if someone can help me. Farid From ace at SUARES.NL Mon May 2 17:06:23 2005 From: ace at SUARES.NL (Ace Suares) Date: Mon, 2 May 2005 20:06:23 -0400 Subject: PHP as Apache DSO, status? In-Reply-To: <42762047.4030604@tamu.edu> Message-ID: Hi, Since 6 months I am using mapscript as a PHP module (not as cgi) and it seems not to have any problems. See also my incomplete manual at http://www.suares.nl/?page_id=46 Cheers, ace PS the project where I use it: http://www.la21.nl/resultaten2005 On Monday 02 May 2005 8:42, Gerry Creager n5jxs wrote: > Gregor Mosheh wrote: > > Last I heard, a few months ago, it was unstable to run > > MapScript with PHP as an Apache DSO. I just wanted to > > check in and see whether I had missed anything. > > Geez. If I'd seen this maybe we wouldn't have been running this way > for the last couple of years! > > > Also a few months ago, I saw a mention somewhere (this > > list, maybe?) of installing two PHPs: a CGI for > > MapScript and a DSO for other stuff. Has anybody tried > > this, and with what success? > > We don't do as much mapscript as mapserver cgi, more a mix/match as > needed. However, we've not seen any problems. > -- > Gerry Creager -- gerry.creager at tamu.edu > Texas Mesonet -- AATLT, Texas A&M University > Cell: 979.229.5301 Office: 979.458.4020 > FAX: 979.847.8578 Pager: 979.228.0173 > Office: 903A Eller Bldg, TAMU, College Station, TX 77843 -- It's not possible to treat coherently that which is incoherent. - Date's Incoherence Principle Ace Suares' Internet Consultancy mail: PObox 2599, 4800 CN Breda, The Netherlands phone: +31 6 244 33 608 (Jan Veuger, support Netherlands) emergency: +599 786 23 73 voicemail & fax: +31 848 707 705 web: http://www.suares.nl email: support at suares.nl -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From Dejan.Gambin at PULA.HR Mon May 2 23:48:10 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Tue, 3 May 2005 08:48:10 +0200 Subject: International text characters in labels Message-ID: I am too interested on how to show the international characters using ENCODING parameter in map file. Does the font I am using to display the labels has to be in Unicode character set? Dejan -----Original Message----- From: Robert Jones [mailto:xbobwjones at HOTMAIL.COM] Sent: Monday, May 02, 2005 7:52 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] International text characters in labels Thanks for the info - does this mean I cannot set up the labels in a styled layer descriptor, but must do it in the .map file instead? Rob From BEN at SYNCERA-ITSOLUTIONS.NL Tue May 3 00:46:24 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 3 May 2005 09:46:24 +0200 Subject: WMS GetMap not using Lat/Lon projection Message-ID: Hi, 1) can your server access the PROJ library? Is the PROJ_LIB variable set? 2) officially your WMS request is not valid. You always need to specify the reference system you want to use, ie SRS, maybe Mapserver defaults to EPSG:4326 for WMS which explains the reprojection. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "McGraw, Joanne" 05/02/05 09:31pm >>> Hello all, I'm hoping someone can help with two problems I am having, both of which are related to projections. 1. My first problem is a map file I created in which I set the Map object's projection to "init=epsg:4267" (Lat/Long, NAD27) and it contains a layer for a shapefile whose projection is "init=epsg:4269" (Lat/Long, NAD83). When I try to display this layer using map mode with MapServer on my local machine it works, but it will not work on our corporate server. All other layers (that are also Lat/Long, NAD27) in the map file work. I am running MapServer version 4.4.1 for Windows on my local machine, but am running 4.4.0 for Linux on our corporate server. Is this a known problem? And, if so, is there a workaround besides upgrading the 4.4.0 installation to 4.4.1? 2. I created the pei.map file listed below. The map's projection is set to "init=epsg:4267" (Lat/Long, NAD27) and it contains a layer for a shapefile whose projection is also "init=epsg:4267" (Lat/Long, NAD27). This layer also provides WMS support. In a web browser, I use the following URLs to display the data...first using map mode and second using WMS' GetMap capabilities: 1. To display Map mode results (see MapMode.png for image): http://wms1.agr.gc.ca/cgi-bin/://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map&mode=map&layer= peiLayer 2. To display WMS GetMap image (see GetMap.png for image): http://wms1.agr.gc.ca/cgi-bin/://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map&service=wms&version=1.1.1&request=GetMap&layers= peiLayer When I compare the images generated by these two different processes, the one generated for Map mode appears to display in lat/long, however, the WMS GetMap data seems to be getting projected. To what projection, I have no idea but the differences can be seen in the two attached images "MapMode.png" and "GetMap.png." This behaviour occurs on both my 4.4.1 and 4.4.0 servers. Why are the two outputs displaying the data differently? Any pointers that will help with these problems is greatly appreciated. Cheers, jtm map name pei status on size 400 300 extent -64.601900 45.879485 -61.366990 47.179725 units dd # units meters shapepath "../data" imagecolor 255 255 255 imagetype png # NAD27 projection "init=epsg:4267" end # projection outputformat name png driver "GD/PNG" mimetype "image/png" imagemode RGB extension "png" end # outputformat web imagepath "/ms4w/tmp/ms_tmp/" imageurl "/ms_tmp/" metadata "wms_title" "PEI Test Data" "wms_onlineresource" "http://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map" "wms_srs" "EPSG:4267" "wfs_title" "PEI Test Data" "wfs_onlineresource" "http://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map" "wfs_srs" "EPSG:4267" end # metadata end # web layer name peiLayer type polygon status off dump true data pei metadata "wms_title" "Prince Edward Island" "wfs_title" "Prince Edward Island" end # metadata class color -1 -1 -1 outlinecolor 0 0 0 end # class end # peiLayer layer end # map Joanne T. McGraw Spatial Data Visualization Specialist / Sp?cialiste en visualisation des donn?es spatiales Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: (613) 694-2331 Facsimile/T?l?copieur: (613) 759-1937 960 Carling Ave, #1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca From mh at SVAJ.DK Tue May 3 01:11:06 2005 From: mh at SVAJ.DK (=?ISO-8859-1?Q?Martin_H=F8gh?=) Date: Tue, 3 May 2005 10:11:06 +0200 Subject: PHP as Apache DSO, status? Message-ID: Hi, The mapscript installed as DSO I referring to is not from the debian testing (sarge) distribution, but from the Debian GIS project at http://pkg-grass.alioth.debian.org/cgi-bin/wiki.pl sorry about that. I've put some of my experience on installing mapscript on my site http://maplink.sourceforge.net/ /martin Date: Mon, 2 May 2005 08:48:04 +0200 From: =?ISO-8859-1?Q?Martin_H=F8gh?= Subject: Re: PHP as Apache DSO, status? Hi, Running php as cgi (for mapscript) and DSO for other stuff is what you normally do. I've installed mapscript as DSO from the Debian testing distribution, and it seems to run ok - but I've not yet tried to put a big workload on it. /martin Date: Sun, 1 May 2005 21:24:50 -0700 From: Gregor Mosheh Subject: PHP as Apache DSO, status? Last I heard, a few months ago, it was unstable to run MapScript with PHP as an Apache DSO. I just wanted to check in and see whether I had missed anything. Also a few months ago, I saw a mention somewhere (this list, maybe?) of installing two PHPs: a CGI for MapScript and a DSO for other stuff. Has anybody tried this, and with what success? -- Martin H?gh Sven Allan Jensen as Sankelmarksgade 9 9000 Aalborg Tlf. 98129300 Direkte tlf. 96314082 From vberre at GI-PARIS.COM Tue May 3 01:21:44 2005 From: vberre at GI-PARIS.COM (Virginie Berre) Date: Tue, 3 May 2005 03:21:44 -0500 Subject: MapServer & TIFF 24 bits Message-ID: Hi All ! When I try to visualize a tiff (I've read http://mapserver.gis.umn.edu/doc44/raster-howto.html ) it doesn't work: nothing is rendered... My TIFF is coded in 24 bits. Is it why it doesn't work? MapServer supports only 16 bits TIFF?? Thanks! Best regards, Virginie Berre G?n?rale d'Infographie ZA Les Erables - B?timent 4 66, route de Sartrouville - F-78232 - LE PECQ cedex T?l : (33) (0)1.30.15.40.50 - Fax : (33) (0)1.30.15.40.60 mailto:vberre at gi-paris.com http://www.generale-infographie.fr/ From andrew.seales at ED.AC.UK Tue May 3 01:42:11 2005 From: andrew.seales at ED.AC.UK (Andrew Seales) Date: Tue, 3 May 2005 03:42:11 -0500 Subject: solaris bug Message-ID: We have been successful installing GEOS 2.1.1, Postgres-8.0.1 and Postgis 1.0RC6 on Solaris 8. We initially tried to use Sun's own compiler and linker, but this proved to be very problematic. We then tried GCC and the Solaris linker but this still caused problems since the Solaris linker doesn't support some of the library symbol export functions that the GNU linker does. Once we were using both GCC and the GNU linker then it became very easy to install. When compiling postgres, one thing we did was to specify the environment variable LDFLAGS=-lstdc++ when running the configure script as specified in the Postgis documentation. Andrew From siki at AGT.BME.HU Tue May 3 04:08:24 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 3 May 2005 10:08:24 -0100 Subject: MapServer & TIFF 24 bits {Scanned} In-Reply-To: Message-ID: Dear Virginie, Mapserver nativly supports 16 bits TIFs, but gdal supports 24 bits. You should configure mapserver --without-tiff and --with-gdal to use 24 bits tiffs. Bye, Zoltan On Tue, 3 May 2005, Virginie Berre wrote: > Hi All ! > > When I try to visualize a tiff (I've read > http://mapserver.gis.umn.edu/doc44/raster-howto.html ) it doesn't work: > nothing is rendered... > > My TIFF is coded in 24 bits. Is it why it doesn't work? MapServer supports > only 16 bits TIFF?? > > Thanks! > > Best regards, > > Virginie Berre > > G?n?rale d'Infographie > ZA Les Erables - B?timent 4 > 66, route de Sartrouville - F-78232 - LE PECQ cedex > T?l : (33) (0)1.30.15.40.50 - Fax : (33) (0)1.30.15.40.60 > mailto:vberre at gi-paris.com > http://www.generale-infographie.fr/ > From Dejan.Gambin at PULA.HR Tue May 3 02:27:33 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Tue, 3 May 2005 11:27:33 +0200 Subject: Query on DGN attribute data Message-ID: Hi, Does anyone know how can I query dgn attribute data. I have successfully displayed dgn annotations using ANNOTATION type and LABELITEM="Text" in mapfile but I would like to search for this attribute data and I don't know how to do it. If I search for a "TEXT" field I get nothing. Do I have to add another layer of type POINT or something? Does anyone has experience in this? Thanks very much Dejan Gambin From nunoragil at GMAIL.COM Tue May 3 04:06:05 2005 From: nunoragil at GMAIL.COM (Nuno Gil) Date: Tue, 3 May 2005 12:06:05 +0100 Subject: Mapfile GRID element Message-ID: Dear listers, Hi am having some troubles in defining a costumised spacing for my Mapserver grid. I would like to achieve something like this http://webservices.ionicsoft.com/ionicweb/map/MAPDRESSING?VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-180,-90,180,90&WIDTH=680&HEIGHT=340&LAYERS=grid&STYLES=currentsrs&FORMAT=image/gif&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage and till now I've only managed this http://iceds.ge.ucl.ac.uk/cgi-bin/wms?map=wms.map&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-180,-90,180,90&WIDTH=680&HEIGHT=340&LAYERS=grid&STYLES=&FORMAT=image/gif&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage& Any help would be appreciated. Regards, Nuno From leopold.schefcik at MULTIMEDIAPLAN.AT Tue May 3 04:26:39 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik) Date: Tue, 3 May 2005 06:26:39 -0500 Subject: own data in mapbender Message-ID: Hello, I posted this problem bevor, but didn?t get any answer. But its that importand for me, that I have to try again. Maybe someone can help me please: The situation: Tomcat and a Deegree WMS is running on my PC. As a Client I have installed Mapbender. There I can Load a WMS. For Example: http://www.gis.nrw.de/wms/DGM50? REQUEST=GetCapabilities&VERSION=1.1.0&SERVICE=WMS or http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map&... are both no problem. But my own PC: http://localhost:8080/deegreewms/wms? SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities or http://192.168.0.180:8080/deegreewms/wms? SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities or an other deegree server: http://deegree.centropemap.multimediaplan.kosnet.com/deegree2/wms/wms? SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities do not work. But for example at the last Request I can get an file where is no Extention but xml code in it. At the first (working) request I can get the the xml code direktly in the browser window. May you have an idea the help me? Leopold Schefcik From BEN at SYNCERA-ITSOLUTIONS.NL Tue May 3 04:57:13 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 3 May 2005 13:57:13 +0200 Subject: own data in mapbender Message-ID: Hi, you are using Mapbender, most of the people on this list are not familiar with Mapbender, but Mapbender uses PHP/Mapscript. Have you tried this on the Mapbender list? Do you know how to get a Mapserver MAP file generated by Mapbender? Without a generated MAP file it will be hard for the Mapserver list to track down the problem. If you have a MAP file and a GetCapabilities document from your local Deegree WMS service we might be able to help. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Leopold Schefcik 05/03/05 01:26pm >>> Hello, I posted this problem bevor, but didn t get any answer. But its that importand for me, that I have to try again. Maybe someone can help me please: The situation: Tomcat and a Deegree WMS is running on my PC. As a Client I have installed Mapbender. There I can Load a WMS. For Example: http://www.gis.nrw.de/wms/DGM50? REQUEST=GetCapabilities&VERSION=1.1.0&SERVICE=WMS or http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map&... are both no problem. But my own PC: http://localhost:8080/deegreewms/wms? SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities or http://192.168.0.180:8080/deegreewms/wms? SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities or an other deegree server: http://deegree.centropemap.multimediaplan.kosnet.com/deegree2/wms/wms? SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities do not work. But for example at the last Request I can get an file where is no Extention but xml code in it. At the first (working) request I can get the the xml code direktly in the browser window. May you have an idea the help me? Leopold Schefcik From bvanmeul at EBE.UCT.AC.ZA Tue May 3 05:34:08 2005 From: bvanmeul at EBE.UCT.AC.ZA (Bas Vanmeulebrouk) Date: Tue, 3 May 2005 14:34:08 +0200 Subject: Installing Python Mapscript on Windows XP In-Reply-To: Message-ID: Hi everyone, I finally got Pyhton Mapscript up and running. After I had installed the FWTools version, I still had the same problem. However, the cgitb tip proved very useful. Now I could see which dll was missing and it was the mapscript module. Apparently, Apache couldn't find it (I think it doesn't recognize the PythonPath environment variable). But it did find the cgitb module, so I put mapscript.py, _mapscript.pyd and mapscript.pyc in the same directory as cgitb.py. And now Python Mapscript is working just fine. This is what I have done: - Install Apache HTTP server 1.3 - Install FWTools 0.9.6 - Configure Apache so that it will run Python scripts as CGI (httpd.conf) - Fiddle around with the path and pythonpath environment variables and dll names to get Mapscript working from the Python command line - Copy mapscript.py etc. as explained earlier. Maybe I will look into this last step. I don't think it is a very neat solution, but for now I am just glad evrything is working. Thank you very much for your help! Kind regards, Bas Vanmeulebrouk. -----Original Message----- From: Sean Gillies [mailto:sgillies at frii.com] Sent: Friday, April 29, 2005 6:08 PM To: Bas Vanmeulebrouk Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: Installing Python Mapscript on Windows XP Bas, Look at Python's cgitb module. It will allow your CGI script to return a more informative traceback. Another thing to check is that the PATH, PROJ_LIB, and other variables are properly set for the Apache user's environment. Sean On Apr 29, 2005, at 8:04 AM, Bas Vanmeulebrouk wrote: > Hello Howard, > > Thank you very much for reaction. I thought I had downloaded the > Python Mapscript build without SDE and Oracle support, but of course I > may be mistaken.=20 > > I have solved the gdal12.dll problem. And when I run a Python script > in which I use "import mapscript", everything runs fine. I can create a > new > mapObj and save it to an image. However, if I call this script via the > Apache webserver, I get the internal server error.=20 > > I have downloaded the FWTools package and I will try it next week. > > Kind regards, > > Bas. > > -----Original Message----- > From: Howard Butler [mailto:hobu at iastate.edu]=20 > Sent: Thursday, April 28, 2005 6:16 PM > To: Bas Vanmeulebrouk; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: Installing Python Mapscript on Windows XP > > > Bas, > > Regarding the SDE depencency in my MapScript builds.... you need to be > = very=20 > careful to get the exact Python MapScript you need. As you can see on > = > my=20 > website, there are *four* Python MapScript builds. At one time, you = > must=20 > have chosen either the "SDE" or "Full" build, which both have the > SDE=20 > dependency. Use the "Normal" release at all times unless you have a = > need=20 > (and the dlls) for either SDE or Oracle. > > Regarding the extra gdal12.dll's in C:\python23\ and > C:\python23\dlls... = > > The Python uninstaller doesn't deal with dlls in the main > sys.prefix=20 directory very well on Windows (especially in an > uninstall-reinstall=20 cycle). I've had to manually delete these after an uninstall of > Python=20 > MapScript (using the control panel). Python 2.4 (which I don't > provide=20 > builds for) does better at this, and will uninstall dlls in the DLLs=20 > directory. Uninstall all of the mapscripts that you have using the = > control=20 > panel and then go into the python23 directory and delete the dlls by=20 > hand. This will clean up your Python directory. If you have other=20 > gdal12.dlls, you'll either have to move the PATH, clean them up, or > do=20 > something with them as you see fit. > > Regarding the issue of not seeing which dll python can't find... run > the = > > python script using a command window (dos prompt), rather than IDLE > or=20 Activestate. The IDEs swallow the dialog for some reason. > > FWTools is more cleanly packaged than my mapscript binaries=20 > . It comes with its own Python and=20 > everything else you might need. I suggest you try it if you continue > to = > > have trouble with my binaries. > > Howard > > > At 10:32 AM 4/28/2005, Bas Vanmeulebrouk wrote: >> Frank, >> >> Thank you very much for your reaction. I did rename the one in the >> windows/system32 directory. However, I didn't notice that there >> were=20 >> two gdal12.dll's in the Python installation directory: one in the >> root=20 >> and =3D one in the DLLs subdirectory. I have renamed the one in the = > DLLs=20 >> =3D subdirectory >> and after that got a different error message (now sde90.dll was =3D >> missing).=3D20 >> >> This errormessage always appeared, no matter from what location I =3D >> started Python. Sde90.dll was on my machine, in the C:\Program=20 >> Files\Common\ESRI directory. After I had added this directory to >> the=20 >> PATH environment variable, Python Mapscript was finally working. >> But=20 >> does this mean =3D Python >> Mapscript needs some ESRI files? The ones I have came with the =3D >> installation >> of ESRI MapObjects 2.3.=3D20 >> >> I want to use Python/Mapscript to generate a map and some HTML which >> can =3D be displayed in webbrowser. So I thought I should get a=20 >> Python/Mapscript =3D script which does this to work as a CGI script. >> I can get Apache to execute a Python CGI script, but when I include >> the line "import mapscript", I = > get =3D >> an >> internal server error and the following error messages in the Apache >> = > =3D >> error >> log.=3D20 >> >> Traceback (most recent call last):\n >> File "c:\\PROGRA~1\\APACHE~1\\apache\\cgi-bin\\HELLO_~1.PY", line >> 4, =3D in ?\n >> import mapscript\n >> File "C:\\programs\\python23\\Lib\\site-packages\\mapscript.py", = > line =3D >> 4, >> in ?\n >> import _mapscript\n >> ImportError: DLL load failed: The specified module could not be = > found.\n >> >> I don't have a clue which dll is missing this time. Anyone? Or is >> there another way to achieve this? >> >> Kind regards, >> >> Bas Vanmeulebrouk.=3D20 >> >> -----Original Message----- >> From: Frank Warmerdam [mailto:fwarmerdam at gmail.com]=3D20 >> Sent: Thursday, April 28, 2005 2:19 PM >> To: Bas Vanmeulebrouk >> Cc: MAPSERVER-USERS at lists.umn.edu >> Subject: Re: [UMN_MAPSERVER-USERS] Installing Python Mapscript on =3D >> Windows XP >> >> >> On 4/28/05, Bas Vanmeulebrouk wrote: >>> =3D20 >>> Hi list, >>> =3D20 >>> I have been trying to get Python Mapscript up and running on MS=3D20 >>> Windows XP, but I haven't succeeded yet. I have downloaded >>> the=3D20=20 >>> binaries at http://hobu.stat.iastate.edu/mapserver/. When I = > start=3D20=20 >>> Python from the directory in which I have installed Python,=20 >>> Mapscript=3D20 works fine. However, if I start Python from >>> another=20 directory, I get=3D20 the following error message when I try >>> import=20 >>> mapscript at the Python=3D20 command line: "The procedure entry=20 >>> point=3D20 ?SetnextByIndex at OGRLayer@@UAEHJ at Z could not be located in >>> = > >>> the dynamic=3D20 link library gdal12.dll.". =3D20 >>> I have found four copies of gdal12.dll on my machine. I have = > been=3D20 >>> exeprimenting with the PATH environment variable, I have renamed = > the=3D20 >>> various dll's, but the message stays the same. >>> =3D20 >>> Does anyone have an idea what might be wrong? >> >> Bas,=3D20 >> >> I am guessing that one of the 4 gdal12.dll's is in = > windows\system32,=3D20 >> right? This location takes precidence over the PATH, but even >> higher=20 precidence is the directory the program is running in.=3D20 >> >> I would suggest you move or rename the version in = > windows\system32.=3D20 >> >> Best regards, >> --------------------------------------- >> +------------------------------- >> ---------------------------------------+- >> ---------------------------------------+------ >> I set the clouds in motion - turn up | Frank Warmerdam, >> warmerdam at pobox.com >> light and sound - activate the windows | http://pobox.com/~warmerdam >> and watch the world go round - Rush | Geospatial Programmer for >> Rent > From gerry.creager at TAMU.EDU Tue May 3 05:54:27 2005 From: gerry.creager at TAMU.EDU (Gerry Creager n5jxs) Date: Tue, 3 May 2005 07:54:27 -0500 Subject: PHP as Apache DSO, status? In-Reply-To: Message-ID: Sorry. Actually, it was a poor attempt at humor. I had NOT seen that when I read the docs, and implemented it. Just went blythely ahead. Sometimes my version of humor's a bit rough. Gerry Hal Mueller wrote: > At 7:42 -0500 5/2/05, Gerry Creager n5jxs wrote: > >> Gregor Mosheh wrote: >> >>> Last I heard, a few months ago, it was unstable to run >>> MapScript with PHP as an Apache DSO. I just wanted to >>> check in and see whether I had missed anything. >> >> >> Geez. If I'd seen this maybe we wouldn't have been running this way for >> the last couple of years! > > > The sarcasm isn't helpful here Gerry. My most recent read of the > documentation gave me the same (non) answer that Gregor reached before > sending his original post. I still don't know, after reading this > thread, whether Mapserver supports running as an Apache DSO or whether > some users have simply gotten lucky. -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From pauljame at GMAIL.COM Tue May 3 06:01:32 2005 From: pauljame at GMAIL.COM (Paul james) Date: Tue, 3 May 2005 10:01:32 -0300 Subject: Zoom to multiple result(queryByAttributes) Message-ID: I got multiple result with queryByAtributes (a path with many lines), and I?d like to zoom at the result... I got the result?s bounds, but when I setExtent with the values, the zoom cut off some lines... With a single result, the zoom works fine... Any idea? Thank you From rtcastro2 at GMAIL.COM Tue May 3 06:09:29 2005 From: rtcastro2 at GMAIL.COM (Rodrigo Tomasi) Date: Tue, 3 May 2005 08:09:29 -0500 Subject: ArcMap to MapFile Message-ID: Hi, Is it possible to export an ArcMap .mxd to a mapfile (.map) ? Is there any utility to do this job ? My mxd has only shapefile layers. I can use MapLab to speed up mapfile generation, but this kind of utility would by great. Thanks in advance, Rodrigo From temiz at DEPREM.GOV.TR Tue May 3 06:22:09 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Tue, 3 May 2005 16:22:09 +0300 Subject: php-mapscript/grass support Message-ID: hello in debian: if I did these: deb http://agrogeomatic.educagri.fr/debian woody main apt-get update ; apt-get install php-mapscript cgi-mapserver php4 and apt-get install libgdal1-grass will it be allright for working on mapscript with grass support ? kind regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From adams at TERRESTRIS.DE Tue May 3 06:28:06 2005 From: adams at TERRESTRIS.DE (Till Adams) Date: Tue, 3 May 2005 15:28:06 +0200 Subject: ArcMap to MapFile In-Reply-To: Message-ID: Rodrigo Tomasi wrote: >Hi, > >Is it possible to export an ArcMap .mxd to a mapfile (.map) ? Is there any >utility to do this job ? My mxd has only shapefile layers. > >I can use MapLab to speed up mapfile generation, but this kind of utility >would by great. > >Thanks in advance, > > Rodrigo > > Dear Rodrigo, we are just in the last work for the release of the (OS-) software "AmeiN!". This is a tool which allows to convert the actual dataframe from arcmap (v9 incl. sp II) - including most of the symbols - into an umn mapserver file. We plan to release the v1.0 by mid of May (I can show it on the OS 05 as well) - look on sourceforge for AveiN! which was the old version for ArcView 3.x and you'll find AmeiN! there by end of next week. It's in german and english. Greetings, Till -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * AmeiN! ArcGIS Map-Export-2-UMN * * AmeiN! Workshop 11. Mai 2005 * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, Paulsen&Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * www.terrestris.de From lists at WEBMAPIT.COM.BR Tue May 3 06:34:58 2005 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Tue, 3 May 2005 10:34:58 -0300 Subject: ArcMap to MapFile In-Reply-To: Message-ID: Hi Rodrigo, I think this kind of tool will be a huge sucess. In fact, I didn't heard about such a tool. "AveIN" can do this for ArcView 3.x projects. And I also heard about "AmeIN" - ( an "AveIN for ArcGIS" ) but don't know how is its current status. In fact, you could also play with QGIS and Thuban ( not today, but MapFiles generations is already in its roadmap ) do create MapFile skeletons. People always ask for ArcGIS because of its nice simbology, I think. But, I think JUMP can also offer very nice simbologies, and in its case, a plugin for JUMP I think may work. best regards. Eduardo Patto Kanegae http://www.webmapit.com.br Skype: eduardopattokanegae MSN: eduardo_patto~at~hotmail.com ICQ: 303747254 Phone: +55(16)9994-2928 Rodrigo Tomasi wrote: >Hi, > >Is it possible to export an ArcMap .mxd to a mapfile (.map) ? Is there any >utility to do this job ? My mxd has only shapefile layers. > >I can use MapLab to speed up mapfile generation, but this kind of utility >would by great. > >Thanks in advance, > > Rodrigo > > > > From BEN at SYNCERA-ITSOLUTIONS.NL Tue May 3 06:37:11 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 3 May 2005 15:37:11 +0200 Subject: ArcMap to MapFile Message-ID: Hi, also gix had plans to do this (ArcGIS version), but I can't find those plans anymore on the site (it was supposed to be sponsored by DM Solutions Group if I recall correctly), so I don't know if those plans ever came to realization: http://gix.sourceforge.net/ Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Till Adams 05/03/05 03:28pm >>> Rodrigo Tomasi wrote: >Hi, > >Is it possible to export an ArcMap .mxd to a mapfile (.map) ? Is there any >utility to do this job ? My mxd has only shapefile layers. > >I can use MapLab to speed up mapfile generation, but this kind of utility >would by great. > >Thanks in advance, > > Rodrigo > > Dear Rodrigo, we are just in the last work for the release of the (OS-) software "AmeiN!". This is a tool which allows to convert the actual dataframe from arcmap (v9 incl. sp II) - including most of the symbols - into an umn mapserver file. We plan to release the v1.0 by mid of May (I can show it on the OS 05 as well) - look on sourceforge for AveiN! which was the old version for ArcView 3.x and you'll find AmeiN! there by end of next week. It's in german and english. Greetings, Till -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * AmeiN! ArcGIS Map-Export-2-UMN * * AmeiN! Workshop 11. Mai 2005 * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, Paulsen&Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * www.terrestris.de From steve.lime at DNR.STATE.MN.US Tue May 3 06:42:41 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 3 May 2005 08:42:41 -0500 Subject: Zoom to multiple result(queryByAttributes) Message-ID: I guess I'd try buffering the result extent a bit. Looks nicer not to have features touching the edge of an image anyway. Just subtract from the min and add to the max... Steve >>> Paul james 05/03/05 8:01 AM >>> I got multiple result with queryByAtributes (a path with many lines), and I?d like to zoom at the result... I got the result?s bounds, but when I setExtent with the values, the zoom cut off some lines... With a single result, the zoom works fine... Any idea? Thank you From sgillies at FRII.COM Tue May 3 06:45:40 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 3 May 2005 07:45:40 -0600 Subject: Installing Python Mapscript on Windows XP In-Reply-To: Message-ID: Good news. You should read about Apache's SetEnv directive. It will help you properly set the PYTHONPATH, PATH, and FWTools environments for use with Apache. cheers, Sean On May 3, 2005, at 6:34 AM, Bas Vanmeulebrouk wrote: > Hi everyone, > > I finally got Pyhton Mapscript up and running. After I had installed > the > FWTools version, I still had the same problem. However, the cgitb tip = > proved > very useful. Now I could see which dll was missing and it was the = > mapscript > module. Apparently, Apache couldn't find it (I think it doesn't = > recognize > the PythonPath environment variable). But it did find the cgitb > module, = > so I > put mapscript.py, _mapscript.pyd and mapscript.pyc in the same > directory = > as > cgitb.py. And now Python Mapscript is working just fine.=20 > > This is what I have done: > - Install Apache HTTP server 1.3 > - Install FWTools 0.9.6=20 > - Configure Apache so that it will run Python scripts as CGI = > (httpd.conf) > - Fiddle around with the path and pythonpath environment variables and > = > dll > names to get Mapscript working from the Python command line > - Copy mapscript.py etc. as explained earlier. > > Maybe I will look into this last step. I don't think it is a very neat > solution, but for now I am just glad evrything is working. Thank you = > very > much for your help! > > Kind regards, > > Bas Vanmeulebrouk.=20 > > -----Original Message----- > From: Sean Gillies [mailto:sgillies at frii.com]=20 > Sent: Friday, April 29, 2005 6:08 PM > To: Bas Vanmeulebrouk > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: Installing Python Mapscript on Windows XP > > > Bas, > > Look at Python's cgitb module. It will allow your CGI script to > return = > > a more informative traceback. > > Another thing to check is that the PATH, PROJ_LIB, and other variables > =20 > are properly set for the Apache user's environment. > > Sean > > > On Apr 29, 2005, at 8:04 AM, Bas Vanmeulebrouk wrote: > >> Hello Howard, >> >> Thank you very much for reaction. I thought I had downloaded the >> Python Mapscript build without SDE and Oracle support, but of course >> I = > >> may be mistaken.=3D20 >> >> I have solved the gdal12.dll problem. And when I run a Python script >> in which I use "import mapscript", everything runs fine. I can create >> = > a >> new >> mapObj and save it to an image. However, if I call this script via the >> Apache webserver, I get the internal server error.=3D20 >> >> I have downloaded the FWTools package and I will try it next week. >> >> Kind regards, >> >> Bas. >> >> -----Original Message----- >> From: Howard Butler [mailto:hobu at iastate.edu]=3D20 >> Sent: Thursday, April 28, 2005 6:16 PM >> To: Bas Vanmeulebrouk; MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: Installing Python Mapscript on Windows XP >> >> >> Bas, >> >> Regarding the SDE depencency in my MapScript builds.... you need to >> be = > >> =3D very=3D20 >> careful to get the exact Python MapScript you need. As you can see >> on = > =20 >> =3D >> my=3D20 >> website, there are *four* Python MapScript builds. At one time, you = > =3D >> must=3D20 >> have chosen either the "SDE" or "Full" build, which both have the =20 >> SDE=3D20 >> dependency. Use the "Normal" release at all times unless you have a = > =3D >> need=3D20 >> (and the dlls) for either SDE or Oracle. >> >> Regarding the extra gdal12.dll's in C:\python23\ and=20 >> C:\python23\dlls... =3D >> >> The Python uninstaller doesn't deal with dlls in the main >> sys.prefix=3D20 directory very well on Windows (especially in an=20 >> uninstall-reinstall=3D20 cycle). I've had to manually delete these = > after an > uninstall of >> Python=3D20 >> MapScript (using the control panel). Python 2.4 (which I don't =20 >> provide=3D20 >> builds for) does better at this, and will uninstall dlls in the = > DLLs=3D20 >> directory. Uninstall all of the mapscripts that you have using the = > =3D >> control=3D20 >> panel and then go into the python23 directory and delete the dlls = > by=3D20 >> hand. This will clean up your Python directory. If you have = > other=3D20 >> gdal12.dlls, you'll either have to move the PATH, clean them up, or >> =20 >> do=3D20 >> something with them as you see fit. >> >> Regarding the issue of not seeing which dll python can't find... >> run=20 >> the =3D >> >> python script using a command window (dos prompt), rather than IDLE=20 >> or=3D20 Activestate. The IDEs swallow the dialog for some reason. >> >> FWTools is more cleanly packaged than my mapscript binaries=3D20 >> . It comes with its own Python >> and=3D20 = > >> everything else you might need. I suggest you try it if you continue >> to =3D >> >> have trouble with my binaries. >> >> Howard >> >> >> At 10:32 AM 4/28/2005, Bas Vanmeulebrouk wrote: >>> Frank, >>> >>> Thank you very much for your reaction. I did rename the one in the >>> windows/system32 directory. However, I didn't notice that there >>> were=3D20 >>> two gdal12.dll's in the Python installation directory: one in the =20 >>> root=3D20 >>> and =3D3D one in the DLLs subdirectory. I have renamed the one in >>> the = > =3D >> DLLs=3D20 >>> =3D3D subdirectory >>> and after that got a different error message (now sde90.dll was =3D3D >>> missing).=3D3D20 >>> >>> This errormessage always appeared, no matter from what location I = > =3D3D >>> started Python. Sde90.dll was on my machine, in the >>> C:\Program=3D20=20 >>> Files\Common\ESRI directory. After I had added this directory to >>> the=3D20 >>> PATH environment variable, Python Mapscript was finally working. =20 >>> But=3D20 >>> does this mean =3D3D Python >>> Mapscript needs some ESRI files? The ones I have came with the =3D3D >>> installation >>> of ESRI MapObjects 2.3.=3D3D20 >>> >>> I want to use Python/Mapscript to generate a map and some HTML which >>> can =3D3D be displayed in webbrowser. So I thought I should get = > a=3D20=20 >>> Python/Mapscript =3D3D script which does this to work as a CGI = > script.=20 >>> I can get Apache to execute a Python CGI script, but when I >>> include=20 >>> the line "import mapscript", I =3D >> get =3D3D >>> an >>> internal server error and the following error messages in the Apache >>> =3D >> =3D3D >>> error >>> log.=3D3D20 >>> >>> Traceback (most recent call last):\n >>> File "c:\\PROGRA~1\\APACHE~1\\apache\\cgi-bin\\HELLO_~1.PY", line >>> 4, =3D3D in ?\n >>> import mapscript\n >>> File "C:\\programs\\python23\\Lib\\site-packages\\mapscript.py", = > =3D >> line =3D3D >>> 4, >>> in ?\n >>> import _mapscript\n >>> ImportError: DLL load failed: The specified module could not be =3D >> found.\n >>> >>> I don't have a clue which dll is missing this time. Anyone? Or is=20 >>> there another way to achieve this? >>> >>> Kind regards, >>> >>> Bas Vanmeulebrouk.=3D3D20 >>> >>> -----Original Message----- >>> From: Frank Warmerdam [mailto:fwarmerdam at gmail.com]=3D3D20 >>> Sent: Thursday, April 28, 2005 2:19 PM >>> To: Bas Vanmeulebrouk >>> Cc: MAPSERVER-USERS at lists.umn.edu >>> Subject: Re: [UMN_MAPSERVER-USERS] Installing Python Mapscript on = > =3D3D >>> Windows XP >>> >>> >>> On 4/28/05, Bas Vanmeulebrouk wrote: >>>> =3D3D20 >>>> Hi list, >>>> =3D3D20 >>>> I have been trying to get Python Mapscript up and running on = > MS=3D3D20 >>>> Windows XP, but I haven't succeeded yet. I have downloaded >>>> the=3D3D20=3D20 >>>> binaries at http://hobu.stat.iastate.edu/mapserver/. When I =3D >> start=3D3D20=3D20 >>>> Python from the directory in which I have installed Python,=3D20 >>>> Mapscript=3D3D20 works fine. However, if I start Python from=20 >>>> another=3D20 directory, I get=3D3D20 the following error message = > when I try >>>> import=3D20 >>>> mapscript at the Python=3D3D20 command line: "The procedure = > entry=3D20 >>>> point=3D3D20 ?SetnextByIndex at OGRLayer@@UAEHJ at Z could not be located >>>> = > in =20 >>>> =3D >> >>>> the dynamic=3D3D20 link library gdal12.dll.". =3D3D20 >>>> I have found four copies of gdal12.dll on my machine. I have =3D >> been=3D3D20 >>>> exeprimenting with the PATH environment variable, I have renamed =3D >> the=3D3D20 >>>> various dll's, but the message stays the same. >>>> =3D3D20 >>>> Does anyone have an idea what might be wrong? >>> >>> Bas,=3D3D20 >>> >>> I am guessing that one of the 4 gdal12.dll's is in =3D >> windows\system32,=3D3D20 >>> right? This location takes precidence over the PATH, but even=20 >>> higher=3D20 precidence is the directory the program is running = > in.=3D3D20 >>> >>> I would suggest you move or rename the version in =3D >> windows\system32.=3D3D20 >>> >>> Best regards, >>> --------------------------------------- >>> +------------------------------- >>> ---------------------------------------+- >>> ---------------------------------------+------ >>> I set the clouds in motion - turn up | Frank Warmerdam, >>> warmerdam at pobox.com >>> light and sound - activate the windows | http://pobox.com/~warmerdam >>> and watch the world go round - Rush | Geospatial Programmer for >>> =20 >>> Rent >> > From mcgrawj at AGR.GC.CA Tue May 3 06:52:10 2005 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Tue, 3 May 2005 09:52:10 -0400 Subject: WMS GetMap not using Lat/Lonprojection Message-ID: Hello Bart, Thank you for responding. I've tried implementing your suggestions. But, have had no luck so far. 1. In my map file, I added a config line within the map object: config PROJ_LIB /usr/local/proj-4.4.5/nad/ And have verified that the epsg data file actually exists there. The NAD83 still does not appear when I try to display the layer in map mode. There is no error or anything, just a blank display as though the contents simply don't fall within the extents of the map (I have triple checked this possibility). 2. I have changed my GetMap request to read (note the srs parameter at the end): http://wms1.agr.gc.ca/cgi-bin/://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map&service=wms&version=1.1.1&request=GetMap&layers=peiLayer&srs=epsg:4267 The WMS GetMap request still seems to be projecting the output. I don't believe it is defaulting to a lat/long of any kind. The attached image (the result of the GetMap request) looks more like an lcc or utm of some kind. Any other ideas? I have to admit I am less concerned about the first problem, as it may just be a bug that has been taken care of in a later version. The WMS GetMap request is a little disconcerting though, particularly now that I am specifically requesting "srs=epsg:4267" and it doesn't appear to be returning it to me in that projection. Cheers, jtm -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Tuesday, May 03, 2005 3:46 AM To: McGraw, Joanne; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS GetMap not using Lat/Lonprojection Hi, 1) can your server access the PROJ library? Is the PROJ_LIB variable set? 2) officially your WMS request is not valid. You always need to specify the reference system you want to use, ie SRS, maybe Mapserver defaults to EPSG:4326 for WMS which explains the reprojection. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "McGraw, Joanne" 05/02/05 09:31pm >>> Hello all, I'm hoping someone can help with two problems I am having, both of which are related to projections. 1. My first problem is a map file I created in which I set the Map object's projection to "init=epsg:4267" (Lat/Long, NAD27) and it contains a layer for a shapefile whose projection is "init=epsg:4269" (Lat/Long, NAD83). When I try to display this layer using map mode with MapServer on my local machine it works, but it will not work on our corporate server. All other layers (that are also Lat/Long, NAD27) in the map file work. I am running MapServer version 4.4.1 for Windows on my local machine, but am running 4.4.0 for Linux on our corporate server. Is this a known problem? And, if so, is there a workaround besides upgrading the 4.4.0 installation to 4.4.1? 2. I created the pei.map file listed below. The map's projection is set to "init=epsg:4267" (Lat/Long, NAD27) and it contains a layer for a shapefile whose projection is also "init=epsg:4267" (Lat/Long, NAD27). This layer also provides WMS support. In a web browser, I use the following URLs to display the data...first using map mode and second using WMS' GetMap capabilities: 1. To display Map mode results (see MapMode.png for image): http://wms1.agr.gc.ca/cgi-bin/://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map&mode=map&layer= peiLayer 2. To display WMS GetMap image (see GetMap.png for image): http://wms1.agr.gc.ca/cgi-bin/://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map&service=wms&version=1.1.1&request=GetMap&layers=peiLayer When I compare the images generated by these two different processes, the one generated for Map mode appears to display in lat/long, however, the WMS GetMap data seems to be getting projected. To what projection, I have no idea but the differences can be seen in the two attached images "MapMode.png" and "GetMap.png." This behaviour occurs on both my 4.4.1 and 4.4.0 servers. Why are the two outputs displaying the data differently? Any pointers that will help with these problems is greatly appreciated. Cheers, jtm map name pei status on size 400 300 extent -64.601900 45.879485 -61.366990 47.179725 units dd # units meters shapepath "../data" imagecolor 255 255 255 imagetype png # NAD27 projection "init=epsg:4267" end # projection outputformat name png driver "GD/PNG" mimetype "image/png" imagemode RGB extension "png" end # outputformat web imagepath "/ms4w/tmp/ms_tmp/" imageurl "/ms_tmp/" metadata "wms_title" "PEI Test Data" "wms_onlineresource" "http://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map" "wms_srs" "EPSG:4267" "wfs_title" "PEI Test Data" "wfs_onlineresource" "http://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map" "wfs_srs" "EPSG:4267" end # metadata end # web layer name peiLayer type polygon status off dump true data pei metadata "wms_title" "Prince Edward Island" "wfs_title" "Prince Edward Island" end # metadata class color -1 -1 -1 outlinecolor 0 0 0 end # class end # peiLayer layer end # map Joanne T. McGraw Spatial Data Visualization Specialist / Sp?cialiste en visualisation des donn?es spatiales Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: (613) 694-2331 Facsimile/T?l?copieur: (613) 759-1937 960 Carling Ave, #1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca From mcgrawj at AGR.GC.CA Tue May 3 06:57:51 2005 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Tue, 3 May 2005 09:57:51 -0400 Subject: WMS GetMap not using Lat/Lonprojection Message-ID: Oops. Forgot the attachment. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of McGraw, Joanne Sent: Tuesday, May 03, 2005 9:52 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS GetMap not using Lat/Lonprojection Hello Bart, Thank you for responding. I've tried implementing your suggestions. But, have had no luck so far. 1. In my map file, I added a config line within the map object: config PROJ_LIB /usr/local/proj-4.4.5/nad/ And have verified that the epsg data file actually exists there. The NAD83 still does not appear when I try to display the layer in map mode. There is no error or anything, just a blank display as though the contents simply don't fall within the extents of the map (I have triple checked this possibility). 2. I have changed my GetMap request to read (note the srs parameter at the end): http://wms1.agr.gc.ca/cgi-bin/://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map&service=wms&version=1.1.1&request=GetMap&layers=peiLayer&srs=epsg:4267 The WMS GetMap request still seems to be projecting the output. I don't believe it is defaulting to a lat/long of any kind. The attached image (the result of the GetMap request) looks more like an lcc or utm of some kind. Any other ideas? I have to admit I am less concerned about the first problem, as it may just be a bug that has been taken care of in a later version. The WMS GetMap request is a little disconcerting though, particularly now that I am specifically requesting "srs=epsg:4267" and it doesn't appear to be returning it to me in that projection. Cheers, jtm -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Tuesday, May 03, 2005 3:46 AM To: McGraw, Joanne; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS GetMap not using Lat/Lonprojection Hi, 1) can your server access the PROJ library? Is the PROJ_LIB variable set? 2) officially your WMS request is not valid. You always need to specify the reference system you want to use, ie SRS, maybe Mapserver defaults to EPSG:4326 for WMS which explains the reprojection. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "McGraw, Joanne" 05/02/05 09:31pm >>> Hello all, I'm hoping someone can help with two problems I am having, both of which are related to projections. 1. My first problem is a map file I created in which I set the Map object's projection to "init=epsg:4267" (Lat/Long, NAD27) and it contains a layer for a shapefile whose projection is "init=epsg:4269" (Lat/Long, NAD83). When I try to display this layer using map mode with MapServer on my local machine it works, but it will not work on our corporate server. All other layers (that are also Lat/Long, NAD27) in the map file work. I am running MapServer version 4.4.1 for Windows on my local machine, but am running 4.4.0 for Linux on our corporate server. Is this a known problem? And, if so, is there a workaround besides upgrading the 4.4.0 installation to 4.4.1? 2. I created the pei.map file listed below. The map's projection is set to "init=epsg:4267" (Lat/Long, NAD27) and it contains a layer for a shapefile whose projection is also "init=epsg:4267" (Lat/Long, NAD27). This layer also provides WMS support. In a web browser, I use the following URLs to display the data...first using map mode and second using WMS' GetMap capabilities: 1. To display Map mode results (see MapMode.png for image): http://wms1.agr.gc.ca/cgi-bin/://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map&mode=map&layer= peiLayer 2. To display WMS GetMap image (see GetMap.png for image): http://wms1.agr.gc.ca/cgi-bin/://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map&service=wms&version=1.1.1&request=GetMap&layers=peiLayer When I compare the images generated by these two different processes, the one generated for Map mode appears to display in lat/long, however, the WMS GetMap data seems to be getting projected. To what projection, I have no idea but the differences can be seen in the two attached images "MapMode.png" and "GetMap.png." This behaviour occurs on both my 4.4.1 and 4.4.0 servers. Why are the two outputs displaying the data differently? Any pointers that will help with these problems is greatly appreciated. Cheers, jtm map name pei status on size 400 300 extent -64.601900 45.879485 -61.366990 47.179725 units dd # units meters shapepath "../data" imagecolor 255 255 255 imagetype png # NAD27 projection "init=epsg:4267" end # projection outputformat name png driver "GD/PNG" mimetype "image/png" imagemode RGB extension "png" end # outputformat web imagepath "/ms4w/tmp/ms_tmp/" imageurl "/ms_tmp/" metadata "wms_title" "PEI Test Data" "wms_onlineresource" "http://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map" "wms_srs" "EPSG:4267" "wfs_title" "PEI Test Data" "wfs_onlineresource" "http://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map" "wfs_srs" "EPSG:4267" end # metadata end # web layer name peiLayer type polygon status off dump true data pei metadata "wms_title" "Prince Edward Island" "wfs_title" "Prince Edward Island" end # metadata class color -1 -1 -1 outlinecolor 0 0 0 end # class end # peiLayer layer end # map Joanne T. McGraw Spatial Data Visualization Specialist / Sp?cialiste en visualisation des donn?es spatiales Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: (613) 694-2331 Facsimile/T?l?copieur: (613) 759-1937 960 Carling Ave, #1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca -------------- next part -------------- A non-text attachment was scrubbed... Name: GetMap.png Type: image/png Size: 5715 bytes Desc: GetMap.png URL: From BEN at SYNCERA-ITSOLUTIONS.NL Tue May 3 07:06:41 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 3 May 2005 16:06:41 +0200 Subject: WMS GetMap not using Lat/Lonprojection Message-ID: Hi, can you post the MAP file on the list? Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "McGraw, Joanne" 05/03/05 03:52pm >>> Hello Bart, Thank you for responding. I've tried implementing your suggestions. But, have had no luck so far. 1. In my map file, I added a config line within the map object: config PROJ_LIB /usr/local/proj-4.4.5/nad/ And have verified that the epsg data file actually exists there. The NAD83 still does not appear when I try to display the layer in map mode. There is no error or anything, just a blank display as though the contents simply don't fall within the extents of the map (I have triple checked this possibility). 2. I have changed my GetMap request to read (note the srs parameter at the end): http://wms1.agr.gc.ca/cgi-bin/://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map&service=wms&version=1.1.1&request=GetMap&layers=peiLayer&srs=epsg:4267 The WMS GetMap request still seems to be projecting the output. I don't believe it is defaulting to a lat/long of any kind. The attached image (the result of the GetMap request) looks more like an lcc or utm of some kind. Any other ideas? I have to admit I am less concerned about the first problem, as it may just be a bug that has been taken care of in a later version. The WMS GetMap request is a little disconcerting though, particularly now that I am specifically requesting "srs=epsg:4267" and it doesn't appear to be returning it to me in that projection. Cheers, jtm -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Tuesday, May 03, 2005 3:46 AM To: McGraw, Joanne; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS GetMap not using Lat/Lonprojection Hi, 1) can your server access the PROJ library? Is the PROJ_LIB variable set? 2) officially your WMS request is not valid. You always need to specify the reference system you want to use, ie SRS, maybe Mapserver defaults to EPSG:4326 for WMS which explains the reprojection. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "McGraw, Joanne" 05/02/05 09:31pm >>> Hello all, I'm hoping someone can help with two problems I am having, both of which are related to projections. 1. My first problem is a map file I created in which I set the Map object's projection to "init=epsg:4267" (Lat/Long, NAD27) and it contains a layer for a shapefile whose projection is "init=epsg:4269" (Lat/Long, NAD83). When I try to display this layer using map mode with MapServer on my local machine it works, but it will not work on our corporate server. All other layers (that are also Lat/Long, NAD27) in the map file work. I am running MapServer version 4.4.1 for Windows on my local machine, but am running 4.4.0 for Linux on our corporate server. Is this a known problem? And, if so, is there a workaround besides upgrading the 4.4.0 installation to 4.4.1? 2. I created the pei.map file listed below. The map's projection is set to "init=epsg:4267" (Lat/Long, NAD27) and it contains a layer for a shapefile whose projection is also "init=epsg:4267" (Lat/Long, NAD27). This layer also provides WMS support. In a web browser, I use the following URLs to display the data...first using map mode and second using WMS' GetMap capabilities: 1. To display Map mode results (see MapMode.png for image): http://wms1.agr.gc.ca/cgi-bin/://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map&mode=map&layer= peiLayer 2. To display WMS GetMap image (see GetMap.png for image): http://wms1.agr.gc.ca/cgi-bin/://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map&service=wms&version=1.1.1&request=GetMap&layers=peiLayer When I compare the images generated by these two different processes, the one generated for Map mode appears to display in lat/long, however, the WMS GetMap data seems to be getting projected. To what projection, I have no idea but the differences can be seen in the two attached images "MapMode.png" and "GetMap.png." This behaviour occurs on both my 4.4.1 and 4.4.0 servers. Why are the two outputs displaying the data differently? Any pointers that will help with these problems is greatly appreciated. Cheers, jtm map name pei status on size 400 300 extent -64.601900 45.879485 -61.366990 47.179725 units dd # units meters shapepath "../data" imagecolor 255 255 255 imagetype png # NAD27 projection "init=epsg:4267" end # projection outputformat name png driver "GD/PNG" mimetype "image/png" imagemode RGB extension "png" end # outputformat web imagepath "/ms4w/tmp/ms_tmp/" imageurl "/ms_tmp/" metadata "wms_title" "PEI Test Data" "wms_onlineresource" "http://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map" "wms_srs" "EPSG:4267" "wfs_title" "PEI Test Data" "wfs_onlineresource" "http://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map" "wfs_srs" "EPSG:4267" end # metadata end # web layer name peiLayer type polygon status off dump true data pei metadata "wms_title" "Prince Edward Island" "wfs_title" "Prince Edward Island" end # metadata class color -1 -1 -1 outlinecolor 0 0 0 end # class end # peiLayer layer end # map Joanne T. McGraw Spatial Data Visualization Specialist / Sp?cialiste en visualisation des donn?es spatiales Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: (613) 694-2331 Facsimile/T?l?copieur: (613) 759-1937 960 Carling Ave, #1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca From mcgrawj at AGR.GC.CA Tue May 3 07:16:54 2005 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Tue, 3 May 2005 10:16:54 -0400 Subject: WMS GetMap not usingLat/Lonprojection Message-ID: No problem; it's attached (if I remember this time...). jtm -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Tuesday, May 03, 2005 10:07 AM To: McGraw, Joanne; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] WMS GetMap not usingLat/Lonprojection Hi, can you post the MAP file on the list? Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "McGraw, Joanne" 05/03/05 03:52pm >>> Hello Bart, Thank you for responding. I've tried implementing your suggestions. But, have had no luck so far. 1. In my map file, I added a config line within the map object: config PROJ_LIB /usr/local/proj-4.4.5/nad/ And have verified that the epsg data file actually exists there. The NAD83 still does not appear when I try to display the layer in map mode. There is no error or anything, just a blank display as though the contents simply don't fall within the extents of the map (I have triple checked this possibility). 2. I have changed my GetMap request to read (note the srs parameter at the end): http://wms1.agr.gc.ca/cgi-bin/://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map&service=wms&version=1.1.1&request=GetMap&layers=peiLayer&srs=epsg:4267 The WMS GetMap request still seems to be projecting the output. I don't believe it is defaulting to a lat/long of any kind. The attached image (the result of the GetMap request) looks more like an lcc or utm of some kind. Any other ideas? I have to admit I am less concerned about the first problem, as it may just be a bug that has been taken care of in a later version. The WMS GetMap request is a little disconcerting though, particularly now that I am specifically requesting "srs=epsg:4267" and it doesn't appear to be returning it to me in that projection. Cheers, jtm -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Tuesday, May 03, 2005 3:46 AM To: McGraw, Joanne; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS GetMap not using Lat/Lonprojection Hi, 1) can your server access the PROJ library? Is the PROJ_LIB variable set? 2) officially your WMS request is not valid. You always need to specify the reference system you want to use, ie SRS, maybe Mapserver defaults to EPSG:4326 for WMS which explains the reprojection. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "McGraw, Joanne" 05/02/05 09:31pm >>> Hello all, I'm hoping someone can help with two problems I am having, both of which are related to projections. 1. My first problem is a map file I created in which I set the Map object's projection to "init=epsg:4267" (Lat/Long, NAD27) and it contains a layer for a shapefile whose projection is "init=epsg:4269" (Lat/Long, NAD83). When I try to display this layer using map mode with MapServer on my local machine it works, but it will not work on our corporate server. All other layers (that are also Lat/Long, NAD27) in the map file work. I am running MapServer version 4.4.1 for Windows on my local machine, but am running 4.4.0 for Linux on our corporate server. Is this a known problem? And, if so, is there a workaround besides upgrading the 4.4.0 installation to 4.4.1? 2. I created the pei.map file listed below. The map's projection is set to "init=epsg:4267" (Lat/Long, NAD27) and it contains a layer for a shapefile whose projection is also "init=epsg:4267" (Lat/Long, NAD27). This layer also provides WMS support. In a web browser, I use the following URLs to display the data...first using map mode and second using WMS' GetMap capabilities: 1. To display Map mode results (see MapMode.png for image): http://wms1.agr.gc.ca/cgi-bin/://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map&mode=map&layer= peiLayer 2. To display WMS GetMap image (see GetMap.png for image): http://wms1.agr.gc.ca/cgi-bin/://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map&service=wms&version=1.1.1&request=GetMap&layers=peiLayer When I compare the images generated by these two different processes, the one generated for Map mode appears to display in lat/long, however, the WMS GetMap data seems to be getting projected. To what projection, I have no idea but the differences can be seen in the two attached images "MapMode.png" and "GetMap.png." This behaviour occurs on both my 4.4.1 and 4.4.0 servers. Why are the two outputs displaying the data differently? Any pointers that will help with these problems is greatly appreciated. Cheers, jtm map name pei status on size 400 300 extent -64.601900 45.879485 -61.366990 47.179725 units dd # units meters shapepath "../data" imagecolor 255 255 255 imagetype png # NAD27 projection "init=epsg:4267" end # projection outputformat name png driver "GD/PNG" mimetype "image/png" imagemode RGB extension "png" end # outputformat web imagepath "/ms4w/tmp/ms_tmp/" imageurl "/ms_tmp/" metadata "wms_title" "PEI Test Data" "wms_onlineresource" "http://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map" "wms_srs" "EPSG:4267" "wfs_title" "PEI Test Data" "wfs_onlineresource" "http://localhost/cgi-bin/mapsrv.exe?map=/ms4w/apps/OWS_TestData/map/pei.map" "wfs_srs" "EPSG:4267" end # metadata end # web layer name peiLayer type polygon status off dump true data pei metadata "wms_title" "Prince Edward Island" "wfs_title" "Prince Edward Island" end # metadata class color -1 -1 -1 outlinecolor 0 0 0 end # class end # peiLayer layer end # map Joanne T. McGraw Spatial Data Visualization Specialist / Sp?cialiste en visualisation des donn?es spatiales Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: (613) 694-2331 Facsimile/T?l?copieur: (613) 759-1937 960 Carling Ave, #1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca -------------- next part -------------- A non-text attachment was scrubbed... Name: pei.map Type: application/octet-stream Size: 4646 bytes Desc: pei.map URL: From rtcastro2 at GMAIL.COM Tue May 3 07:26:31 2005 From: rtcastro2 at GMAIL.COM (Rodrigo Tomasi) Date: Tue, 3 May 2005 11:26:31 -0300 Subject: ArcMap to MapFile In-Reply-To: <42777C66.7000905@terrestris.de> Message-ID: Good news Till !! I?m looking forward for AmeiN! release ! Meanwhile, I?ll try MapLab and manual edit of MapFile. Thanks, Rodrigo ---------------------- 2005/5/3, Till Adams : > Rodrigo Tomasi wrote: > > >Hi, > > > >Is it possible to export an ArcMap .mxd to a mapfile (.map) ? Is there any > >utility to do this job ? My mxd has only shapefile layers. > > > >I can use MapLab to speed up mapfile generation, but this kind of utility > >would by great. > > > >Thanks in advance, > > > > Rodrigo > > > > > Dear Rodrigo, > > we are just in the last work for the release of the (OS-) software > "AmeiN!". This is a tool > which allows to convert the actual dataframe from arcmap (v9 incl. sp > II) - including > most of the symbols - into an umn mapserver file. > > We plan to release the v1.0 by mid of May (I can show it on the OS 05 as > well) - look > on sourceforge for AveiN! which was the old version for ArcView 3.x and > you'll find AmeiN! > there by end of next week. It's in german and english. > > Greetings, Till > > -- > > Mit freundlichen Gr?ssen aus Bonn, > > Till Adams > > ****************************************** > * AmeiN! ArcGIS Map-Export-2-UMN * > * AmeiN! Workshop 11. Mai 2005 * > * http://www.terrestris.de * > ****************************************** > > ------------------------------------------ > > Dipl. Geogr. Till Adams > terrestris, Paulsen&Adams GbR > Siemensstr. 8 * 53121 Bonn > Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 > info at terrestris.de * www.terrestris.de > > From woodbri at SWOODBRIDGE.COM Tue May 3 07:39:36 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 3 May 2005 10:39:36 -0400 Subject: Clipping of symbols at the boundary of maps In-Reply-To: <10505031438.AA1692074414@ingenieurteam2.com> Message-ID: jochen wrote: > Hello list, > how can I control that symbols and labels are drawn, > even if the definition point is not inside the map extent. > You probably need to generate the map at a larger extent, then clip the map back to the pixels you want. This will require a little math and some trial and error to figure out how much more and how to clip it. Mapserver is very efficient at excluding objects that are outside the bounding box of the image you are trying to render. When you zoom in to street level 99.99% of the map objects are out side the image in a US map and you would not want mapserver to look through all those object to see if half dozen more might impact the image. Also for lines the cross the image frame, they are clipped so the label point will move about because of the clipping. What are you trying to do? Generate image tiles the align with one another like google maps? -Steve W. From fwarmerdam at GMAIL.COM Tue May 3 07:50:21 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 3 May 2005 10:50:21 -0400 Subject: WMS GetMap not using Lat/Lonprojection In-Reply-To: Message-ID: On 5/3/05, McGraw, Joanne wrote: > 1. In my map file, I added a config line within the map object: > > config PROJ_LIB /usr/local/proj-4.4.5/nad/ > > And have verified that the epsg data file actually exists there. The NAD83 still does not appear when I try to display the layer in map mode. There is no error or anything, just a blank display as though the contents simply don't fall within the extents of the map (I have triple checked this possibility). Joanne, The critical item for the layer in question is whether the ntv1_can.dat file (or better yet ntv2_0.gsb) exists in the directory /usr/local/proj-4.4.5/nad. This is not installed by default with PROJ.4 - you need to separately download the datum shift files and unpack them before configuring and installing PROJ.4. Assuming you have the ntv1_can.dat file on your development server, you can just copy that one file over to your corporate server if you want. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From chaumic at NETVIGATOR.COM Tue May 3 07:48:01 2005 From: chaumic at NETVIGATOR.COM (Michael) Date: Tue, 3 May 2005 14:48:01 +0000 Subject: pre-process field element in phpMapscript Message-ID: Hello, I would like to pre-process the element of a field using phpMapscript before use it to display as a label. Is there any sample code that showing how to do that ? Thank you. Michael From jochen at INGENIEURTEAM2.COM Tue May 3 08:15:40 2005 From: jochen at INGENIEURTEAM2.COM (Jochen Grefe) Date: Tue, 3 May 2005 10:15:40 -0500 Subject: Clipping of symbols at the boundary of maps Message-ID: Thanks steve, > What are you trying to do? Generate image tiles the align with one > another like google maps? Yes, I am building image tiles to produce large pdf files, since I have some problems I mailed to the list a view weeks ago: ------------------- I have a polygon layer with TRANSPARENCY 50 that lay on top over a raster layer. While it renders as expected to png the polygon are opaque when renderd to pdf. Despite using FORMATOPTION "OUTPUT_TYPE=RASTER" or not. The raster layers are rendered internally to jpeg because of the absence of inmemory opening of png images in former pdflib versions. Since the newest library (6.01, I don't know until wich version it worked) supports this, I tested the rendering to pdf over png. Which give me a lot of better quality as the jpeg pdf but don't helped me with the transpareny issue. -------------------- Do you see a solution concerning the builtin pdf problem? Best regards, Jochen From woklist at CHARTER.NET Tue May 3 08:32:35 2005 From: woklist at CHARTER.NET (William K) Date: Tue, 3 May 2005 10:32:35 -0500 Subject: Mapfile GRID element In-Reply-To: Message-ID: Nuno, it would help if those links worked, or you included a snapshot in the email. I'd like to see if it's the same as my problem. I have a bug open for it: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1049 sumary: at larger zoom scales, the grid lines get off the interval values - instead of 1d30' (for a 30' interval) I get something like 1d29'59". It gets worse the larger the zoom: -------------- next part -------------- A non-text attachment was scrubbed... Name: grid.png Type: image/png Size: 5652 bytes Desc: not available URL: -------------- next part -------------- The heavy grey lines are where the lighter grid lines should be (this is a 7.5 minute grid - USGS topo quads). I'm still waiting for someone to fix this bug. Is this what you're seeing? On May 3, 2005, at 6:06 AM, Nuno Gil wrote: > Dear listers, > Hi am having some troubles in defining a costumised spacing for my > Mapserver grid. I would like to achieve something like this > http://webservices.ionicsoft.com/ionicweb/map/MAPDRESSING? > VERSION=3D1.1.1&R= > EQUEST=3DGetMap&SRS=3DEPSG%3A4326&BBOX=3D-180, > -90,180,90&WIDTH=3D680&HEIGHT= > =3D340&LAYERS=3Dgrid&STYLES=3Dcurrentsrs&FORMAT=3Dimage/ > gif&BGCOLOR=3D0xfff= > fff&TRANSPARENT=3DTRUE&EXCEPTIONS=3Dapplication/vnd.ogc.se_inimage > and till now I've only managed this > http://iceds.ge.ucl.ac.uk/cgi-bin/wms? > map=3Dwms.map&VERSION=3D1.1.1&REQUEST= > =3DGetMap&SRS=3DEPSG%3A4326&BBOX=3D-180, > -90,180,90&WIDTH=3D680&HEIGHT=3D340= > &LAYERS=3Dgrid&STYLES=3D&FORMAT=3Dimage/ > gif&BGCOLOR=3D0xffffff&TRANSPARENT= > =3DTRUE&EXCEPTIONS=3Dapplication/vnd.ogc.se_inimage& > Any help would be appreciated. > Regards, > Nuno > > ----- William Kyngesburye http://www.kyngchaos.com/ "I ache, therefore I am. Or in my case - I am, therefore I ache." - Marvin From mcgrawj at AGR.GC.CA Tue May 3 08:58:10 2005 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Tue, 3 May 2005 11:58:10 -0400 Subject: WMS GetMap not using Lat/Lonprojection Message-ID: Hi Frank, Is simply copying this file enough? Or, do I also need to add some indication that the grid shifts should be used somehow? The reason I ask is that I tried just copying the file and it hasn't had any effect. I was reading the "nadgrids - Grid Based Datum Adjustments" section at http://proj.maptools.org/gen_parms.html and was wondering if I should be creating a new definition (with the +to NAD27 from NAD83) in the epsg file and using that as the projection definition. Is the use of this data file something that has been introduced recently; that is, post-MapServer 4.4.0? Perhaps, it is just not being referred to in the version I have? Cheers, jtm -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] Sent: Tuesday, May 03, 2005 10:50 AM To: McGraw, Joanne Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] WMS GetMap not using Lat/Lonprojection On 5/3/05, McGraw, Joanne wrote: > 1. In my map file, I added a config line within the map object: > > config PROJ_LIB /usr/local/proj-4.4.5/nad/ > > And have verified that the epsg data file actually exists there. The NAD83 still does not appear when I try to display the layer in map mode. There is no error or anything, just a blank display as though the contents simply don't fall within the extents of the map (I have triple checked this possibility). Joanne, The critical item for the layer in question is whether the ntv1_can.dat file (or better yet ntv2_0.gsb) exists in the directory /usr/local/proj-4.4.5/nad. This is not installed by default with PROJ.4 - you need to separately download the datum shift files and unpack them before configuring and installing PROJ.4. Assuming you have the ntv1_can.dat file on your development server, you can just copy that one file over to your corporate server if you want. Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Tue May 3 09:13:31 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 3 May 2005 12:13:31 -0400 Subject: WMS GetMap not using Lat/Lonprojection In-Reply-To: Message-ID: On 5/3/05, McGraw, Joanne wrote: > Hi Frank, > > Is simply copying this file enough? Or, do I also need to add some > indication that the grid shifts should be used somehow? > > The reason I ask is that I tried just copying the file and it hasn't had > any effect. I was reading the "nadgrids - Grid Based Datum Adjustments" > section at http://proj.maptools.org/gen_parms.html and was wondering if > I should be creating a new definition (with the +to NAD27 from NAD83) in > the epsg file and using that as the projection definition. > > Is the use of this data file something that has been introduced > recently; that is, post-MapServer 4.4.0? Perhaps, it is just not being > referred to in the version I have? Joanne, I think just copying it should be fine. Internally +datum=NAD27 is defined as: +nadgrids=@conus, at alaska, at ntv2_0.gsb, at ntv1_can.dat That is, it searches for the conus, alaska, ntv2_0.gsb and then ntv1_can.dat files till it finds a file overlapping the region to be converted. So you shouldn't need to do anything special to use this file. If it still isn't worked, I am somewhat confused. I am assuming that MapServer is able to load the epsg file which is the same directory, so it shouldn't be a permissions problem on the directory path, though you might want to check the permissions on the ntv1_can.dat file itself. My next suggestion would be to test interactively with shp2img. eg. shp2img -m pei.map -o out.png If you set the PROJ_DEBUG environment variable to a value (any value) then you should get detailed reports from the PROJ.4 library on files that it tries to open. This might provide a clue. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From andy.canfield at GMAIL.COM Tue May 3 09:16:49 2005 From: andy.canfield at GMAIL.COM (Andy Canfield) Date: Tue, 3 May 2005 09:16:49 -0700 Subject: Attachments Message-ID: Is posting attachments allowed. I've got some source that I'd like to put out for folks to look at because I think it will be very helpfull but it would need to be attached as a text file or a zip file. Can somebody let me know if posting attachments is ok? Thanks, Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From lluisgm at GMAIL.COM Tue May 3 09:21:11 2005 From: lluisgm at GMAIL.COM (=?ISO-8859-1?Q?Llu=EDs_Garcia_i_Mestres?=) Date: Tue, 3 May 2005 18:21:11 +0200 Subject: Image resolution In-Reply-To: <425ec3b60504190907758b1ced@mail.gmail.com> Message-ID: Hi Jacob, After few days out, I'm working again with my raster files. I don't think I've solved. I'm getting the tif image and the tfw file from grass. I've tried with the png and jpeg (better) but I'm losing image quality. The image in the map file is the same than in the template. Also I have tried with gtiff format but is not displayed in my application, perhaps a jBox disavantge, but is created in the tmp folder. Any suggestion? On 4/19/05, Llu?s Garcia i Mestres wrote: > Thanks Jacob, > > It looks that I get the same quality of image. Therefor I was using > the same image size. With jpg format it seems correct the quality > level. > > Llu?s > > On 4/19/05, Jacob Delfos wrote: > > Llu?s, > > > > If you are using PNG, it is possible you only get 256 colours. Put these > > statements in your mapfile (comment out your existing outputformat and > > imagetype, if any), and check whether it gets any better: > > > > OUTPUTFORMAT > > NAME jpeg > > DRIVER "GD/JPEG" > > MIMETYPE "image/jpeg" > > IMAGEMODE RGB > > EXTENSION "jpg" > > FORMATOPTION "QUALITY=80" > > END > > > > IMAGETYPE jpeg > > > > When I mentioned about changing the image size, I meant in your template. Do > > you have an " > the width of it the same as the mapimage in your mapfile? > > > > Regards, > > > > Jacob > > > > JACOB DELFOS > > SPATIAL INFORMATION ANALYST > > Maunsell Australia Pty Ltd > > 629 Newcastle Street, WA 6007 > > PO Box 81, WA 6902 > > Leederville > > Western Australia > > ABN 20 093 846 925 > > > > Tel + 61 8 9281 6185 > > Fax + 61 8 9281 6297 > > jacob.delfos at maunsell.com > > > > > > > > -----Original Message----- > > From: Llu?s Garcia i Mestres [mailto:lluisgm at gmail.com] > > Sent: 19 April 2005 15:40 > > To: Jacob Delfos > > Cc: MAPSERVER-USERS at lists.umn.edu > > Subject: Re: [UMN_MAPSERVER-USERS] Image resolution > > > > I didn?t change the image size, it's the original from the tfw. My tif > > is a composition of 6 RGB and is displayed as a raster layer in the > > correct position. The resolution of the image and the map is the > > same:72 dpi. > > > > The output format is png, and I think the problem should be there. > > > > Llu?s > > > > > > On 4/19/05, Jacob Delfos wrote: > > > Is your map-image being displayed at its normal resolution, or did you > > > specify a size for the image ( > match > > > your map-image size? > > > Or are you by any chance using GIF as an output format? Or another format > > > that is not rgb? Sometimes using indexed colour (8bit, 256 colours) can > > > create the illusion of reduced resolution, because pixels of similar > > colour > > > get merged. > > > > > > Regards, > > > > > > Jacob > > > > > > > > > > > > -----Original Message----- > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > > Behalf Of Llu?s Garcia i Mestres > > > Sent: 18 April 2005 22:04 > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: [UMN_MAPSERVER-USERS] Image resolution > > > > > > Hi > > > > > > I'm working with a tif file of 0,5 meter per pixel. I don't know why, > > > when I check this tif out of mapserver the quality is greater than > > > when I display it in my mapserver application. I?ve try with different > > > resolution in the map file but the quality is still the same. > > > > > > Thanks > > > > > > Llu?s > > > > > > From fwarmerdam at GMAIL.COM Tue May 3 09:21:35 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 3 May 2005 12:21:35 -0400 Subject: Query on DGN attribute data In-Reply-To: Message-ID: On 5/3/05, Gambin Dejan wrote: > Hi, > > Does anyone know how can I query dgn attribute data. I have successfully > displayed dgn annotations using ANNOTATION type and LABELITEM="Text" in > mapfile but I would like to search for this attribute data and I don't > know how to do it. If I search for a "TEXT" field I get nothing. Do I > have to add another layer of type POINT or something? > > Does anyone has experience in this? Dejan, First, I would suggest you "explore" the file using ogrinfo. Generally speaking the only attribute linkage information that OGR captures is the MSLink and record number for database linkages. DGN Features with more than one linkage end up only presenting the first. If you see what you need in the ogrinfo report, then you can use the attributes in mapserver. If not, you are out of luck. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Tue May 3 09:23:26 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 3 May 2005 12:23:26 -0400 Subject: MapServer & TIFF 24 bits In-Reply-To: Message-ID: On 5/3/05, Virginie Berre wrote: > Hi All ! > > When I try to visualize a tiff (I've read > http://mapserver.gis.umn.edu/doc44/raster-howto.html ) it doesn't work: > nothing is rendered... > > My TIFF is coded in 24 bits. Is it why it doesn't work? MapServer supports > only 16 bits TIFF?? Virginie, Does your mapserver build include GDAL support? If not, you can only display 8bit greyscale or pseudocolored TIFFs. With GDAL support you can also display 24bit TIFFs. You can determine if you have GDAL support by typing: mapserv -v If it reports INPUT=GDAL then you should be good. It is also helpful to include the version information from mapserv in questions to the list such as this one. It helps us all answer in terms of the version and options in your mapserver build. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ARyan at CO.LINN.OR.US Tue May 3 09:45:30 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Tue, 3 May 2005 09:45:30 -0700 Subject: escaping single quotes Message-ID: > -----Original Message----- > From: Paul Scott [mailto:pscott at UWC.AC.ZA] > Sent: Monday, May 02, 2005 4:50 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] escaping single quotes > > > Two other things you could try: > > use htmlspecialchars(); > > or str_replace the "'" with ' > > That will make it look like ' . $gemnaam; > > which will echo to 'genmaan > > --Paul > > >>> Ace Suares 05/02/05 1:30 PM >>> > On Monday 02 May 2005 5:08, Paul Scott wrote: > > One word: > > > > addslashes(); > > > > PHP does it for you with the function addslashes(); '[GEMNAAM]'= > > addslashes('$gemnaam'); > > Tried that, didn't work. A \' is not recognized by mapserver. > Correct me if I am wrong. > > I got the tip from some else (off-list) to us two single > quotes in a row, like '[GEMNAAM]'=''s-Gravenhage' Haven't > tested it yet. > > I would prefer that mapserver/mapscript would honour addslashes(). > > _Ace > > > > > > > > --Paul > > > > >>> Ace Suares 05/02/05 4:53 AM >>> > > > > dear list, > > > > I have the following situation: > > > > 1. a column in my shapefile (.dbf) that is called GEMNAAM > > 2. 482 gemeentes (counties), 3 of them starting with an ' (an > apostroph > > or > > single quote). > > 3. a filter that looks like '[GEMNAAM]'='$gemnaam' > > where $gemnaam iterates over (some of) the 482 gemeentes > > > > The problem seems to be that the single quote in the > $gemnaam is not > > being escaped, and I have no idea how to escape it. > > > > Is there an escape mechanism for single quotes ? > > > > I tried double quotes i.e. '[GEMNAAM]'="$gemnaam" but > apparently to no > > avail. > > > > Much obliged for any hint. (However, that won't bring back > the past 4 > > hours of my life). > > > > _ace > > -- > It's not possible to treat coherently that which is incoherent. > - Date's Incoherence Principle > > Ace Suares' Internet Consultancy > mail: PObox 2599, 4800 CN Breda, The Netherlands > phone: +31 6 244 33 608 (Jan Veuger, support Netherlands) > emergency: +599 786 23 73 > voicemail & fax: +31 848 707 705 > web: http://www.suares.nl email: support at suares.nl > Ace, Have you solved this problem? We might have similar but different problems because I'm using Python mapscript but I found that a field that has any apostrophe in any record in rendered unsearchable no matter what I do. Adam From andy.canfield at GMAIL.COM Tue May 3 10:09:11 2005 From: andy.canfield at GMAIL.COM (Andy Canfield) Date: Tue, 3 May 2005 10:09:11 -0700 Subject: Using Google Maps Message-ID: To all, I have created an example of how to use Google Maps in your own web pages for routing, geocoding, directions etc. I have a sample web page and all the code is within that page. I'm sure once folks see what I'm doing they will be able to add it to their own Mapserver pages fairly easily. I am going to try and add the page to this e-mail as a .zip file. If my gmail strips it out please feel free to e-mail me and I will send you a copy of the zip file from another account. The source will show you how to feed an address to Google Maps and get back the Lat, Lon of that address. It will also show how to feed Google Maps a from and to route request and get back the directions and the polyline coordinates of the route. The source code is intended as example only and I leave it up to you to how you want to add that data to your Mapserver implementations. Google Maps does have restrictions to using their API so you must abide by them if you decide to implement this example. If there are any errors in the source please let me know so I can fix them. So far I have only tested this with Mozilla and IE6. Thank you, Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ExtractGoogleMaps.zip Type: application/zip Size: 2421 bytes Desc: not available URL: From gmanepal at GMAIL.COM Tue May 3 11:10:56 2005 From: gmanepal at GMAIL.COM (Giridhar Manepalli) Date: Tue, 3 May 2005 14:10:56 -0400 Subject: Using Google Maps In-Reply-To: <7425d08705050310091df53e44@mail.gmail.com> Message-ID: Thanks Andy. I liked it. I still have to think about using that somehow in the mapserver context. On 5/3/05, Andy Canfield wrote: > To all, > I have created an example of how to use Google Maps in your own web > pages for routing, geocoding, directions etc. I have a sample web page and > all the code is within that page. I'm sure once folks see what I'm doing > they will be able to add it to their own Mapserver pages fairly easily. I am > going to try and add the page to this e-mail as a .zip file. If my gmail > strips it out please feel free to e-mail me and I will send you a copy of > the zip file from another account. The source will show you how to feed an > address to Google Maps and get back the Lat, Lon of that address. It will > also show how to feed Google Maps a from and to route request and get back > the directions and the polyline coordinates of the route. The source code is > intended as example only and I leave it up to you to how you want to add > that data to your Mapserver implementations. Google Maps does have > restrictions to using their API so you must abide by them if you decide to > implement this example. If there are any errors in the source please let me > know so I can fix them. So far I have only tested this with Mozilla and IE6. > Thank you, > Andy > From sgillies at FRII.COM Tue May 3 11:21:33 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 3 May 2005 12:21:33 -0600 Subject: escaping single quotes In-Reply-To: Message-ID: On May 3, 2005, at 10:45 AM, Ryan, Adam wrote: >> -----Original Message----- >> From: Paul Scott [mailto:pscott at UWC.AC.ZA] >> Sent: Monday, May 02, 2005 4:50 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] escaping single quotes >> >> >> Two other things you could try: >> >> use htmlspecialchars(); >> >> or str_replace the "'" with ' >> >> That will make it look like ' . $gemnaam; >> >> which will echo to 'genmaan >> >> --Paul >> >>>>> Ace Suares 05/02/05 1:30 PM >>> >> On Monday 02 May 2005 5:08, Paul Scott wrote: >>> One word: >>> >>> addslashes(); >>> >>> PHP does it for you with the function addslashes(); '[GEMNAAM]'= >>> addslashes('$gemnaam'); >> >> Tried that, didn't work. A \' is not recognized by mapserver. >> Correct me if I am wrong. >> >> I got the tip from some else (off-list) to us two single >> quotes in a row, like '[GEMNAAM]'=''s-Gravenhage' Haven't >> tested it yet. >> >> I would prefer that mapserver/mapscript would honour addslashes(). >> >> _Ace >> >> >>> >>> >>> --Paul >>> >>>>>> Ace Suares 05/02/05 4:53 AM >>> >>> >>> dear list, >>> >>> I have the following situation: >>> >>> 1. a column in my shapefile (.dbf) that is called GEMNAAM >>> 2. 482 gemeentes (counties), 3 of them starting with an ' (an >> apostroph >>> or >>> single quote). >>> 3. a filter that looks like '[GEMNAAM]'='$gemnaam' >>> where $gemnaam iterates over (some of) the 482 gemeentes >>> >>> The problem seems to be that the single quote in the >> $gemnaam is not >>> being escaped, and I have no idea how to escape it. >>> >>> Is there an escape mechanism for single quotes ? >>> >>> I tried double quotes i.e. '[GEMNAAM]'="$gemnaam" but >> apparently to no >>> avail. >>> >>> Much obliged for any hint. (However, that won't bring back >> the past 4 >>> hours of my life). >>> >>> _ace >> >> -- >> It's not possible to treat coherently that which is incoherent. >> - Date's Incoherence Principle >> >> Ace Suares' Internet Consultancy >> mail: PObox 2599, 4800 CN Breda, The Netherlands >> phone: +31 6 244 33 608 (Jan Veuger, support Netherlands) >> emergency: +599 786 23 73 >> voicemail & fax: +31 848 707 705 >> web: http://www.suares.nl email: support at suares.nl >> > > Ace, > > Have you solved this problem? We might have similar but different > problems > because I'm using Python mapscript but I found that a field that has > any > apostrophe in any record in rendered unsearchable no matter what I do. > > Adam > > Adam, I have a new idea: when you have apostrophes in your records, write your expression using double quotes only, like so qstring = '("[FNAME]" =~ "Foo")' I guessing that MapServer can't properly evaluate expressions in which a single quote appears on the left side as a string-casting operator, and on the right side as a literal value. Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From ortelius at GMAIL.COM Tue May 3 11:31:07 2005 From: ortelius at GMAIL.COM (Jeffrey Johnson) Date: Tue, 3 May 2005 11:31:07 -0700 Subject: Using Google Maps In-Reply-To: <6d675eda05050311105844048c@mail.gmail.com> Message-ID: Has anyone figured out how to use Google Maps as a WMS server. I heard from a classmate that had, but we were unable to find any info online. On 5/3/05, Giridhar Manepalli wrote: > Thanks Andy. I liked it. I still have to think about using that > somehow in the mapserver context. > > On 5/3/05, Andy Canfield wrote: > > To all, > > I have created an example of how to use Google Maps in your own web > > pages for routing, geocoding, directions etc. I have a sample web page and > > all the code is within that page. I'm sure once folks see what I'm doing > > they will be able to add it to their own Mapserver pages fairly easily. I am > > going to try and add the page to this e-mail as a .zip file. If my gmail > > strips it out please feel free to e-mail me and I will send you a copy of > > the zip file from another account. The source will show you how to feed an > > address to Google Maps and get back the Lat, Lon of that address. It will > > also show how to feed Google Maps a from and to route request and get back > > the directions and the polyline coordinates of the route. The source code is > > intended as example only and I leave it up to you to how you want to add > > that data to your Mapserver implementations. Google Maps does have > > restrictions to using their API so you must abide by them if you decide to > > implement this example. If there are any errors in the source please let me > > know so I can fix them. So far I have only tested this with Mozilla and IE6. > > Thank you, > > Andy > > > From giovand at GMAIL.COM Tue May 3 12:09:32 2005 From: giovand at GMAIL.COM (Cristiano Giovando) Date: Tue, 3 May 2005 12:09:32 -0700 Subject: Using Google Maps In-Reply-To: Message-ID: Folks on the WW forum are using this script to proxy GMaps: >= 1) { if ($x & $l) { if ($y & $l) $tid .= 's'; else $tid .= 'r'; } else { if ($y & $l) $tid .= 't'; else $tid .= 'q'; } } header('Location: http://kh.google.com/kh?v=1&t=' . $tid); ?> See the full thread at http://forum.worldwind.arc.nasa.gov/index.php?showtopic=2661&hl=google+maps Let's see who's the first figuring out a WMS! -C On 5/3/05, Jeffrey Johnson wrote: > > Has anyone figured out how to use Google Maps as a WMS server. I heard > from a classmate that had, but we were unable to find any info online. > > > On 5/3/05, Giridhar Manepalli wrote: > > Thanks Andy. I liked it. I still have to think about using that > > somehow in the mapserver context. > > > > On 5/3/05, Andy Canfield wrote: > > > To all, > > > I have created an example of how to use Google Maps in your own web > > > pages for routing, geocoding, directions etc. I have a sample web page > and > > > all the code is within that page. I'm sure once folks see what I'm > doing > > > they will be able to add it to their own Mapserver pages fairly > easily. I am > > > going to try and add the page to this e-mail as a .zip file. If my > gmail > > > strips it out please feel free to e-mail me and I will send you a copy > of > > > the zip file from another account. The source will show you how to > feed an > > > address to Google Maps and get back the Lat, Lon of that address. It > will > > > also show how to feed Google Maps a from and to route request and get > back > > > the directions and the polyline coordinates of the route. The source > code is > > > intended as example only and I leave it up to you to how you want to > add > > > that data to your Mapserver implementations. Google Maps does have > > > restrictions to using their API so you must abide by them if you > decide to > > > implement this example. If there are any errors in the source please > let me > > > know so I can fix them. So far I have only tested this with Mozilla > and IE6. > > > Thank you, > > > Andy > > > > > > -- Cristiano Giovando Department of Geography San Diego State University -------------- next part -------------- An HTML attachment was scrubbed... URL: From juergen.link at BGS-AG.DE Tue May 3 13:08:03 2005 From: juergen.link at BGS-AG.DE (Jürgen Link) Date: Tue, 3 May 2005 22:08:03 +0200 Subject: Antwort: [UMN_MAPSERVER-USERS] own data in mapbender Message-ID: Leopold, not sure that I got your problem right: I assume you fail in loading the capabilities document in mapbender, right? If you examine the http headers from both tomcats, you see that the request to http://www.gis.nrw.de/wms/DGM50?REQUEST=GetCapabilities&VERSION=1.1.0 &SERVICE=WMS is answered with a document of content type "text/xml", while http://deegree.centropemap.multimediaplan.kosnet.com/deegree2/wms/wms?SERVICE=WMS&VERSION=1.1.1 &REQUEST=GetCapabilities results in an "application/vnd.ogc.wms_xml" The latter is most probably not understood by mapbender (you should cross-post this on the mapbender user list). I assume this is due to some misconfiguration of the deegree server. Best regards, J?rgen -- Dr. J?rgen Link BGS Systemplanung AG http://www.bgs-ag.de E-Mail juergen.link at bgs-ag.de Phone: 02241 166-530 Fax: 02241 166-680 Mobile: 0160 97262616 From artur.skalski at ACXIOM.COM Tue May 3 13:10:19 2005 From: artur.skalski at ACXIOM.COM (Artur Skalski) Date: Tue, 3 May 2005 15:10:19 -0500 Subject: dynamicaly change symbol with php_mapscript Message-ID: Hello EveryOne! I'm would like to allow user to chanege the symbol of the point layer, can I do it using php_mapscript without defining another layer in map file,... or is it possible to change the symbol of only selected point using php_mapscript without drawing another point layer defined in map file.? thanks artur From ARyan at CO.LINN.OR.US Tue May 3 13:54:36 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Tue, 3 May 2005 13:54:36 -0700 Subject: escaping single quotes Message-ID: > -----Original Message----- > From: Sean Gillies [mailto:sgillies at frii.com] > > > > On May 3, 2005, at 10:45 AM, Ryan, Adam wrote: > > >> -----Original Message----- > >> From: Paul Scott [mailto:pscott at UWC.AC.ZA] > >> Sent: Monday, May 02, 2005 4:50 AM > >> To: MAPSERVER-USERS at LISTS.UMN.EDU > >> Subject: Re: [UMN_MAPSERVER-USERS] escaping single quotes > >> > >> > >> Two other things you could try: > >> > >> use htmlspecialchars(); > >> > >> or str_replace the "'" with ' > >> > >> That will make it look like ' . $gemnaam; > >> > >> which will echo to 'genmaan > >> > >> --Paul > >> > >>>>> Ace Suares 05/02/05 1:30 PM >>> > >> On Monday 02 May 2005 5:08, Paul Scott wrote: > >>> One word: > >>> > >>> addslashes(); > >>> > >>> PHP does it for you with the function addslashes(); '[GEMNAAM]'= > >>> addslashes('$gemnaam'); > >> > >> Tried that, didn't work. A \' is not recognized by > mapserver. Correct > >> me if I am wrong. > >> > >> I got the tip from some else (off-list) to us two single > quotes in a > >> row, like '[GEMNAAM]'=''s-Gravenhage' Haven't tested it yet. > >> > >> I would prefer that mapserver/mapscript would honour addslashes(). > >> > >> _Ace > >> > >> > >>> > >>> > >>> --Paul > >>> > >>>>>> Ace Suares 05/02/05 4:53 AM >>> > >>> > >>> dear list, > >>> > >>> I have the following situation: > >>> > >>> 1. a column in my shapefile (.dbf) that is called GEMNAAM 2. 482 > >>> gemeentes (counties), 3 of them starting with an ' (an > >> apostroph > >>> or > >>> single quote). > >>> 3. a filter that looks like '[GEMNAAM]'='$gemnaam' > >>> where $gemnaam iterates over (some of) the 482 gemeentes > >>> > >>> The problem seems to be that the single quote in the > >> $gemnaam is not > >>> being escaped, and I have no idea how to escape it. > >>> > >>> Is there an escape mechanism for single quotes ? > >>> > >>> I tried double quotes i.e. '[GEMNAAM]'="$gemnaam" but > >> apparently to no > >>> avail. > >>> > >>> Much obliged for any hint. (However, that won't bring back > >> the past 4 > >>> hours of my life). > >>> > >>> _ace > >> > >> -- > >> It's not possible to treat coherently that which is incoherent. > >> - Date's Incoherence Principle > >> > >> Ace Suares' Internet Consultancy > >> mail: PObox 2599, 4800 CN Breda, The Netherlands > >> phone: +31 6 244 33 608 (Jan Veuger, support Netherlands) > >> emergency: +599 786 23 73 > >> voicemail & fax: +31 848 707 705 > >> web: http://www.suares.nl email: support at suares.nl > >> > > > > Ace, > > > > Have you solved this problem? We might have similar but different > > problems > > because I'm using Python mapscript but I found that a field > that has > > any > > apostrophe in any record in rendered unsearchable no matter > what I do. > > > > Adam > > > > > > Adam, I have a new idea: when you have apostrophes in your records, > write your expression using double quotes only, like so > > qstring = '("[FNAME]" =~ "Foo")' > > I guessing that MapServer can't properly evaluate expressions > in which > a single quote appears on the left side as a string-casting operator, > and on the right side as a literal value. > > Sean > > > -- > Sean Gillies > sgillies at frii dot com > http://zcologia.com > Yes, that does work if there is data with ' but without ". If there are any ", this blows up, in which case you would use all ' in your expression. If there are both ' and " then there is no solution but to edit your data, which stinks, and it must be known ahead of time (or tested for) to check if your data contains either of the offending characters. Plus, searching for text with either is no go; you can't search for O'Conner with the above work around. This is frustrating. I tend to find some work arounds less palatable than others, but then the software is free and thus gripping is, for the most part, kept to oneselve (unless it helps). On a completely different topic, thanks for pointing me towards twisted some time ago. I just looked at it again this weekend and put togther a little server that spits out map images at 80% of the speed it takes mapserv.exe/mode=map. Granted there is no functionality BUT drawing and returning, but that small performance hit I took switching to Python mapscript from mapserv.exe could be eliminated, and then some. Thanks again. Adam From sgillies at FRII.COM Tue May 3 15:43:09 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 3 May 2005 16:43:09 -0600 Subject: escaping single quotes In-Reply-To: Message-ID: On May 3, 2005, at 2:54 PM, Ryan, Adam wrote: >> -----Original Message----- >> From: Sean Gillies [mailto:sgillies at frii.com] >> >> >> Adam, I have a new idea: when you have apostrophes in your records, >> write your expression using double quotes only, like so >> >> qstring = '("[FNAME]" =~ "Foo")' >> >> I guessing that MapServer can't properly evaluate expressions >> in which >> a single quote appears on the left side as a string-casting operator, >> and on the right side as a literal value. >> >> Sean >> >> >> -- >> Sean Gillies >> sgillies at frii dot com >> http://zcologia.com >> > > Yes, that does work if there is data with ' but without ". If there > are any > ", this blows up, in which case you would use all ' in your > expression. If > there are both ' and " then there is no solution but to edit your data, > which stinks, and it must be known ahead of time (or tested for) to > check if > your data contains either of the offending characters. Plus, > searching for > text with either is no go; you can't search for O'Conner with the > above work > around. > > This is frustrating. I tend to find some work arounds less palatable > than > others, but then the software is free and thus gripping is, for the > most > part, kept to oneselve (unless it helps). > > On a completely different topic, thanks for pointing me towards > twisted some > time ago. I just looked at it again this weekend and put togther a > little > server that spits out map images at 80% of the speed it takes > mapserv.exe/mode=map. Granted there is no functionality BUT drawing > and > returning, but that small performance hit I took switching to Python > mapscript from mapserv.exe could be eliminated, and then some. > > Thanks again. > > Adam > > You can search for "O'Conner" qstring = '("[FNAME]" == "O\'Conner")' , but you are right, this is a pain. If only Steve had chosen to signify string casting on the left hand side with a str([FNAME]) instead of "[FNAME]" or '[FNAME]'. My Python cartographic library does not suffer from this problem because it does not use MapServer's mini language for expressions -- it uses Python expressions. PCL, does however, suffer from incompleteness at this stage :) Yeah, Twisted is ideal for specialized web services. This weekend I put together a module and script that implement a very lightweight WFS. Check it out: http://zcologia.com/news/31. During the exercise I finally got a grip on Deferreds, which you would want to use in your own twisted mapserver when it begins to render maps that don't return immediately (due to making WMS or WFS client connections or intensive database queries). I saw that you're coming out to the OSG05 meeting ... it'll be fun to hack together at some GIS problems with Python for an afternoon. cheers, Sean From ace at SUARES.NL Tue May 3 16:44:19 2005 From: ace at SUARES.NL (Ace Suares) Date: Tue, 3 May 2005 19:44:19 -0400 Subject: escaping single quotes In-Reply-To: <8292E3D1E5E2EF4A94C36FE80D2443A83A82B9@linnms,> Message-ID: > Ace, > > Have you solved this problem? We might have similar but different > problems because I'm using Python mapscript but I found that a field > that has any apostrophe in any record in rendered unsearchable no > matter what I do. > > Adam Yeah, I gave the counties other names, i.e. I got rid of the apostroph. Not so nice, but hey. I need to hurry. _Ace -- remember jesus and tequila - The Minutemen Ace Suares' Internet Consultancy mail: PObox 2599, 4800 CN Breda, The Netherlands phone: +31 6 244 33 608 (Jan Veuger, support Netherlands) emergency: +599 786 23 73 voicemail & fax: +31 848 707 705 web: http://www.suares.nl email: support at suares.nl -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From pauljame at GMAIL.COM Tue May 3 16:47:58 2005 From: pauljame at GMAIL.COM (Paul james) Date: Tue, 3 May 2005 20:47:58 -0300 Subject: drawQuery performance... Message-ID: In my project, I build a path with queryByAtributes(about 300 lines in result), and after I draw it with drawQuery... But this function is a bit slow... And I must keep this path selected, so I do the same process for each click in on map (zoom, pan...) . Is this the best way to do it? Thank you... From woodbri at SWOODBRIDGE.COM Tue May 3 18:10:09 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 3 May 2005 21:10:09 -0400 Subject: Minfeaturesize?? Message-ID: Hi all, I thought there was a way to suppress features from being drawn with MINFEATURESIZE, but it only seems to work for labels. Am I missing something? I have a layer with water polygons and they are getting displayed as single pixels and I would like to suppress them. Is there an easy way to do this short of adding an area attribute and filtering based on that? Thanks, -Steve From woodbri at SWOODBRIDGE.COM Tue May 3 20:58:57 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 3 May 2005 23:58:57 -0400 Subject: Using Mapserver to generate google like tiles Message-ID: Hi, Is anyone out there writing a Perl or PHP/mapscript utility to generate google like tiles using mapserver? What are the problems and issues you have run into? What is the status of your work? On the surface it seems pretty straight forward. Just iterate a bounding box for your tile size over your map extents and save the tiles based on row/column index as its name. Do this for each zoom scale you need. You need to deal with labels across tile boundaries. Should this be done using a projection? Which? Projections probably make this more complicated? How? I was thinking that generating BIG image files and then generating tiles from the raster images might be better, because it will reduce the number of tile edge artifacts. I was think that Perl and the ImageMagic might work well for this? Any thoughts? -Steve W. From bob.basques at CI.STPAUL.MN.US Tue May 3 21:10:38 2005 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Tue, 3 May 2005 23:10:38 -0500 Subject: Using Mapserver to generate google like tiles In-Reply-To: Message-ID: Stephen Woodbridge wrote: >Hi, > >Is anyone out there writing a Perl or PHP/mapscript utility to generate >google like tiles using mapserver? What are the problems and issues you >have run into? What is the status of your work? > >On the surface it seems pretty straight forward. Just iterate a bounding >box for your tile size over your map extents and save the tiles based on >row/column index as its name. Do this for each zoom scale you need. > >You need to deal with labels across tile boundaries. >Should this be done using a projection? Which? >Projections probably make this more complicated? How? > > What about makin larger images and then, then use them as a raster source for a new layer from behind MapServer tha would simply cut the larger images into smaller ones. You would need to discard the edge tiles in this method. Another route might be to make the image tiles gernerate larger than the final version, possibly much larger to rid yourself of any label anomolies at the edges. You might only keep the center thrid of the image for the tile for example. I wonder how difficult it would be to generate a large tile and then use this tile a a dynamic layer source for clipping via the MAPserv engine. Interesting Idea, hmmm. .. . . >I was thinking that generating BIG image files and then generating tiles >from the raster images might be better, because it will reduce the >number of tile edge artifacts. I was think that Perl and the ImageMagic >might work well for this? > > Same here. Although I think MapServer has all the required capabilities to do the work for you. You could generate all the images up front, and then run a seperate script on them with MapServ to clip out the center of the tile for edge matching the tiles. I would still be interested in a way to loop the larger tile back behind MapServer as a raster source that could be clipped from via a MapServer CGI request. Maybe all it amounts to is replacing the source file and recalling Mapserver with the same CGI, hmm, this could be a really short PER script. Just send the Source Extentst, the tile size and the Temp location . . . . I think I need to think about this a little . . Dang you, now you got me going . . . . :c) bobb >Any thoughts? > >-Steve W. > > > > From mapserver at SPAM.TRACE.YP.CX Tue May 3 21:27:54 2005 From: mapserver at SPAM.TRACE.YP.CX (Matthew Smith) Date: Tue, 3 May 2005 23:27:54 -0500 Subject: Scalebar Intervals - Defining Numeric Values Message-ID: Hi I am creating a map of fixed extent and scale (layers can be turned on and off). How can I create a scalebar of a fixed length - in km rather than pixels? I want to draw a scalebar 100km long; the one created automatically is 128km long and divided 32,64,96,128km. This will probably look weird to those who are either expecing 10s or at least 25,50,75... From Dejan.Gambin at PULA.HR Tue May 3 23:13:50 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Wed, 4 May 2005 08:13:50 +0200 Subject: Query on DGN attribute data Message-ID: Thanks Frank, ogrinfo -s file_name.dgn elements gives me: INFO: Open of `10-text.dgn' using driver `DGN' successful. Layer name: elements Geometry: Unknown (any) Feature Count: 1242 Extent: (5403842.480000, 4964999.646000) - (5416695.538000, 4976971.721000) Layer SRS WKT: (unknown) Type: Integer (2.0) Level: Integer (2.0) GraphicGroup: Integer (4.0) ColorIndex: Integer (3.0) Weight: Integer (2.0) Style: Integer (1.0) EntityNum: Integer (0.0) MSLink: Integer (0.0) Text: String (0.0) that seems OK and also ogrinfo -al gives me the records with text field filled, for example: OGRFeature(elements):34 Type (Integer) = 17 Level (Integer) = 9 GraphicGroup (Integer) = 0 ColorIndex (Integer) = 0 Weight (Integer) = 0 Style (Integer) = 0 EntityNum (Integer) = (null) MSLink (Integer) = (null) Text (String) = MUKATI Style = LABEL(t:"MUKATI",c:#ffffff,s:15g) POINT (5406547.385 4975870.523) ...so evrything seems OK and I can see the text on my map, the problem is that I can't search for this data. Maybe this has something to do with my interface (I am using p.mapper and PHP/Mapscript) but it seems like it has problems with the field named "TEXT". Is this possible? Any experiences? Regards, Dejan -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] Sent: Tuesday, May 03, 2005 6:22 PM To: Gambin Dejan Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Query on DGN attribute data On 5/3/05, Gambin Dejan wrote: > Hi, > > Does anyone know how can I query dgn attribute data. I have > successfully displayed dgn annotations using ANNOTATION type and > LABELITEM="Text" in mapfile but I would like to search for this > attribute data and I don't know how to do it. If I search for a "TEXT" > field I get nothing. Do I have to add another layer of type POINT or > something? > > Does anyone has experience in this? Dejan, First, I would suggest you "explore" the file using ogrinfo. Generally speaking the only attribute linkage information that OGR captures is the MSLink and record number for database linkages. DGN Features with more than one linkage end up only presenting the first. If you see what you need in the ogrinfo report, then you can use the attributes in mapserver. If not, you are out of luck. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From james at DANISAT.NET Tue May 3 23:54:03 2005 From: james at DANISAT.NET (James Anderson) Date: Wed, 4 May 2005 08:54:03 +0200 Subject: working with filters and expressions Message-ID: Hi all, I have a great problem. I have a shape file layer of some roads. All the different road types are in the same shape file, and Attibute data is used to specify the road type. I have a attribute/column named TYPE. The data here ... eg road types are Paved,Unpaved, Dirt Road, etc Now what I want is to filter out the road types I dont want. For this I was assuming the FILTER paramenter under the layer could work. I have now tried numerous things but nothing much works. I see lots of others having problems with this. Reading posts here I see lots of conflicting info. Some also say you can do the same with the EXPRESSION parameter under your class. Now I am totally confused. I have tired things like FILTER "([TYPE]='Paved' or [TYPE]='Unpaved')" FILTER "([TYPE] eq 'Paved' or [TYPE] eq 'Unpaved')" To try and show only paved and unpaved roads. I get nothing .. not a single thing shows up. Yet if I remove the filter parameter, all the roads types show. So I also tried FILTER "([TYPE]='Paved')" FILTER "([TYPE] eq 'Paved')" FILTER ([TYPE]='Paved') FILTER ([TYPE] eq 'Paved') I get same result .. nothing shows when the filter is present. However, I have managed to get one thing working: FILTERITEM "TYPE" FILTER "Paved" This works in that it shows only paved roads. Yet the moment I try and get it to work on more than one roadtype, it freaks out and shows nothing. I tried doing similar things with the Expression parameter but also with no results. My Layer looks like this: LAYER NAME "tr_ro_final" TYPE line CONNECTIONTYPE OGR CONNECTION "/maps/tr_ro_final.shp" STATUS DEFAULT #FILTER "[TYPE] eq 'Unpaved'" #FILTERITEM "TYPE" #FILTER '!"Dirt Road"' #MINSCALE 3.01 #MAXSCALE 99.01 CLASS #Expression ([TYPE] eq "Unpaved") #COLOR 151 75 0 COLOR 255 0 0 SYMBOL "circle" SIZE 3 END END As you can see I have still left in some of the things I was playing with. Still .. I have not got far. I have not been able to find any proper documentation of using mapserver regex or using the filter parameter properly. My mapserver version: MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Can anyone help me ? I am desperate to finally figure this out once and for all. Thanks, James Anderson. -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.stecco at EMAIL.IT Wed May 4 00:08:37 2005 From: roberto.stecco at EMAIL.IT (Roberto Stecco) Date: Wed, 4 May 2005 09:08:37 +0200 Subject: jpeg quality Message-ID: hi list, I need to use jpeg format images for the output in my map. But the quality of the image is very bad. Can anybody give me any advice to improve it? this is a piece of my mapfile... ... OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" # IMAGEMODE RGB IMAGEMODE RGBA EXTENSION "jpeg" FORMATOPTION "QUALITY = 100" END ... thanks in advance roberto From BEN at SYNCERA-ITSOLUTIONS.NL Wed May 4 00:41:01 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 4 May 2005 09:41:01 +0200 Subject: jpeg quality Message-ID: There was a similar thread about this recently. Check the archives for "raster : bad quality in output" http://lists.umn.edu/cgi-bin/wa?S1=mapserver-users&X=- Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Roberto Stecco 05/04/05 09:08am >>> hi list, I need to use jpeg format images for the output in my map. But the quality of the image is very bad. Can anybody give me any advice to improve it? this is a piece of my mapfile... ... OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" # IMAGEMODE RGB IMAGEMODE RGBA EXTENSION "jpeg" FORMATOPTION "QUALITY = 100" END ... thanks in advance roberto From mapserver at SPAM.TRACE.YP.CX Wed May 4 02:50:52 2005 From: mapserver at SPAM.TRACE.YP.CX (Matthew Smith) Date: Wed, 4 May 2005 04:50:52 -0500 Subject: jpeg quality Message-ID: Bart van den Eijnden wrote: > There was a similar thread about this recently. Check the archives for "raster : bad quality in output" > > http://lists.umn.edu/cgi-bin/wa?S1=mapserver-users&X=- I just followed this up as I was also unimpressed with the JPEG quality (but not half as much as I'm unimpressed by user agents that don't handle PNG ;-) I searched on the words "raster" and "quality", separately and in conjunction in both body and subject and got nothing back - is the search engine broken? Cheers M -- Matthew Smith Kadina Business Consultancy South Australia http://www.kbc.net.au From BEN at SYNCERA-ITSOLUTIONS.NL Wed May 4 02:58:43 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 4 May 2005 11:58:43 +0200 Subject: jpeg quality Message-ID: If I search for raster : bad quality in output I get the correct results. This is the direct link, I don't know if that will work though: http://lists.umn.edu/cgi-bin/wa?A2=ind0504&L=mapserver-users&P=R20888&I=-3&X=4C1F13217D7649BBB9&Y= Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Matthew Smith 05/04/05 11:50am >>> Bart van den Eijnden wrote: > There was a similar thread about this recently. Check the archives for "raster : bad quality in output" > > http://lists.umn.edu/cgi-bin/wa?S1=mapserver-users&X=- I just followed this up as I was also unimpressed with the JPEG quality (but not half as much as I'm unimpressed by user agents that don't handle PNG ;-) I searched on the words "raster" and "quality", separately and in conjunction in both body and subject and got nothing back - is the search engine broken? Cheers M -- Matthew Smith Kadina Business Consultancy South Australia http://www.kbc.net.au From kristjan at TARKVARASTUUDIO.EE Wed May 4 03:10:20 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Wed, 4 May 2005 13:10:20 +0300 Subject: jpeg quality In-Reply-To: Message-ID: Are you using raster or vector input data? If you are using raster maps to generate your jpg output, then the problem might be in the poor resizing quality. I have created one application in wich the raster files were drawn in there own native scale and then rescaled with PHP and then re-readed back to the Mapserver to add some more data from vector layers. The output quality was much better then. Kristjan >>>>Roberto Stecco 05/04/05 09:08am >>> >>>> >>>> >hi list, >I need to use jpeg format images for the output in my map. But the >quality of the image is very bad. >Can anybody give me any advice to improve it? this is a piece of my >mapfile... > > > ... > > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > MIMETYPE "image/jpeg" > # IMAGEMODE RGB > IMAGEMODE RGBA > EXTENSION "jpeg" > FORMATOPTION "QUALITY = 100" > END > > ... > >thanks in advance > >roberto > > From webmaster at 2ID-DESIGN.COM Wed May 4 03:31:01 2005 From: webmaster at 2ID-DESIGN.COM (Stephane Nicolas) Date: Wed, 4 May 2005 05:31:01 -0500 Subject: Line between 2 points Message-ID: Does naybody has an idea about creating a curved line between 2 points? Thnaks in advance for any help or directions given to previously discussed thread. Stephane From kristjan at TARKVARASTUUDIO.EE Wed May 4 03:37:48 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Wed, 4 May 2005 13:37:48 +0300 Subject: dgn, dxf to raster conversion Message-ID: Hi. Does anybody know, is there some open source server side tool for creating raster file from DGN or DXF files? thanks Kristjan From bluetuna_goes_skying at YAHOO.CO.UK Wed May 4 03:49:11 2005 From: bluetuna_goes_skying at YAHOO.CO.UK (=?iso-8859-1?q?jo=FFffffffffffe3o=20Antunes?=) Date: Wed, 4 May 2005 11:49:11 +0100 Subject: OGR connection for LINUX Message-ID: Dear list, I am using a OGR connection to a MySQL database table to create thematic maps based on the values contained in this table. Here goes how it is working now: LAYER NAME mt TYPE POLYGON STATUS ON MAXSCALE 1000000 LABELITEM 'Nomecomune' CONNECTIONTYPE OGR CONNECTION "C:\Programmi\Apache Group\Apache\htdocs\abruzzo\maps\data\comuni_abruzzo_gb_region.shp" DATA "SELECT * FROM comuni_abruzzo_gb_region LEFT JOIN 'ODBC:tuna/caparica at mappa_tem'.mp_ini ON comuni_abruzzo_gb_region.Id = mp_ini.ID" CLASSITEM FIELD CLASS NAME 'mt0' EXPRESSION ([FIELD] < (2)) STYLE OUTLINECOLOR 255 255 255 COLOR 221 250 220 END TEMPLATE void END METADATA "ID_MYSQL" "7" "NICE_NAME" "Mappa Tematica" END END Everything works fine in windows/apache/php/mapserver/mapscript environement... Now the challenge is: I am transfering this system to LINUX environment and as far as could get so far I still have to use an ODBC connection... is this true? I mean beeing in LINUX environment souldn't I be able to make a direct connection between mapserver an MySQL without having to use a windows native technology? I am afraid I might be making things more complex than they could be.. thanks in advance for any tips. Joao Antunes Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pspencer at DMSOLUTIONS.CA Wed May 4 03:52:30 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Wed, 4 May 2005 06:52:30 -0400 Subject: Line between 2 points In-Reply-To: Message-ID: Stephane, to create a curved line between two points, you will need to calculate intermediate points along the curve and add them to your line segment. If you are portraying a straight line (geographic) in a non-geographic projection then the calculations are simply to add intermediate points along the line and mapserver will re-project them appropriately, ending up with a nice curve (depending on the number of points). If you are trying to display a curve in the same projection, you will need some equation to calculate points along the curve. Cheers Paul Stephane Nicolas wrote: > Does naybody has an idea about creating a curved line between 2 points? > Thnaks in advance for any help or directions given to previously discussed > thread. > > Stephane > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From pspencer at DMSOLUTIONS.CA Wed May 4 03:55:04 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Wed, 4 May 2005 06:55:04 -0400 Subject: working with filters and expressions In-Reply-To: <00c501c55076$175051f0$0b220a0a@beast> Message-ID: use CLASSITEM "TYPE" in your LAYER object and use EXPRESSION "Unpaved" in your class. MapServer will only draw features that match a class. You can add multiple classes to draw the features you want and any unmatched features will be ignored (unless you add a class to draw them). Also, mapserver processes classes on a first come-first serve basis so if a feature could fit into more than one class, it will always be drawn in the first class (reading top to bottom in your map file) that it matches. Cheers Paul James Anderson wrote: > > Hi all, > > I have a great problem. > I have a shape file layer of some roads. All the different road types > are in the same shape file, and Attibute data is used to specify the > road type. I have a attribute/column named TYPE. The data here ... eg > road types are Paved,Unpaved, Dirt Road, etc > > Now what I want is to filter out the road types I dont want. For this I > was assuming the FILTER paramenter under the layer could work. > I have now tried numerous things but nothing much works. I see lots of > others having problems with this. Reading posts here I see lots of > conflicting info. Some also say you can do the same with the EXPRESSION > parameter under your class. > Now I am totally confused. I have tired things like > > FILTER "([TYPE]='Paved' or [TYPE]='Unpaved')" > FILTER "([TYPE] eq 'Paved' or [TYPE] eq 'Unpaved')" > > To try and show only paved and unpaved roads. > I get nothing .. not a single thing shows up. Yet if I remove the > filter parameter, all the roads types show. > So I also tried > > FILTER "([TYPE]='Paved')" > FILTER "([TYPE] eq 'Paved')" > FILTER ([TYPE]='Paved') > FILTER ([TYPE] eq 'Paved') > > I get same result .. nothing shows when the filter is present. > However, I have managed to get one thing working: > > FILTERITEM "TYPE" > FILTER "Paved" > > This works in that it shows only paved roads. Yet the moment I try and > get it to work on more than one roadtype, it freaks out and shows > nothing. I tried doing similar things with the Expression parameter but > also with no results. > > My Layer looks like this: > > > LAYER > NAME "tr_ro_final" > TYPE line > CONNECTIONTYPE OGR > CONNECTION "/maps/tr_ro_final.shp" > STATUS DEFAULT > #FILTER "[TYPE] eq 'Unpaved'" > #FILTERITEM "TYPE" > > #FILTER '!"Dirt Road"' > #MINSCALE 3.01 > #MAXSCALE 99.01 > CLASS > #Expression ([TYPE] eq "Unpaved") > #COLOR 151 75 0 > COLOR 255 0 0 > SYMBOL "circle" > SIZE 3 > END > END > As you can see I have still left in some of the things I was playing > with. Still .. I have not got far. I have not been able to find any > proper documentation of using mapserver regex or using the filter > parameter properly. > > My mapserver version: > > MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > Can anyone help me ? I am desperate to finally figure this out once and > for all. > > Thanks, > > James Anderson. > > > > > > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From pspencer at DMSOLUTIONS.CA Wed May 4 03:57:28 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Wed, 4 May 2005 06:57:28 -0400 Subject: Scalebar Intervals - Defining Numeric Values In-Reply-To: Message-ID: Matthew, your assessment is correct, you cannot affect the values that mapserver decides to use for a scale bar. There is a good reason for this. At your particular scale, it may not be possible to use an integral number of pixels to represent 100km (or some sub-division of that). Also, MapServer does make the scale bar fit the requested size (including the labels) so you could try reducing the width in small increments to see if you can get a different result. Cheers Paul Matthew Smith wrote: > Hi > > I am creating a map of fixed extent and scale (layers can be turned on and > off). How can I create a scalebar of a fixed length - in km rather than > pixels? I want to draw a scalebar 100km long; the one created automatically > is 128km long and divided 32,64,96,128km. This will probably look weird to > those who are either expecing 10s or at least 25,50,75... > >>From the documentation > (http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#scalebar) I can't > see any way to do this. > > Current config below. > > Cheers > > M > > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE large > END > outlinecolor 0 0 0 > STYLE 1 > SIZE 450 05 > COLOR 255 255 255 > UNITS kilometers > INTERVALS 4 > STATUS on > END > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From ferencik.ioan at PERSONAL.RO Wed May 4 04:24:31 2005 From: ferencik.ioan at PERSONAL.RO (Ferencik Ioan) Date: Wed, 4 May 2005 14:24:31 +0300 Subject: Chameleon XMLThemeLegend Message-ID: Hi list, I am asking if anyone has or knows where I can find some good documentation regarding Chameleon's XMLThemeLegend widget. I read some XML documentation but i still have problems in creating a legend like that in Hawai demo Tahnks ___________________________ Cv-ul tau ia 500 euro/luna! http://500.myjob.ro From webmaster at 2ID-DESIGN.COM Wed May 4 04:39:03 2005 From: webmaster at 2ID-DESIGN.COM (S.Nicolas - Webmaster) Date: Wed, 4 May 2005 12:39:03 +0100 Subject: Line between 2 points In-Reply-To: <4278A96E.4030702@dmsolutions.ca> Message-ID: Thank you Paul for your suggestion. Unfortunately "equations" are not my best friend. If somebody is willing to help or diirect me to an example, I will extremely appreciate. I am using PHP/Mapscript. St?phane -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Spencer Sent: 04 May 2005 11:53 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Line between 2 points Stephane, to create a curved line between two points, you will need to calculate intermediate points along the curve and add them to your line segment. If you are portraying a straight line (geographic) in a non-geographic projection then the calculations are simply to add intermediate points along the line and mapserver will re-project them appropriately, ending up with a nice curve (depending on the number of points). If you are trying to display a curve in the same projection, you will need some equation to calculate points along the curve. Cheers Paul Stephane Nicolas wrote: > Does naybody has an idea about creating a curved line between 2 points? > Thnaks in advance for any help or directions given to previously > discussed thread. > > Stephane > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.2 - Release Date: 02/05/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.2 - Release Date: 02/05/2005 From BEN at SYNCERA-ITSOLUTIONS.NL Wed May 4 04:31:31 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 4 May 2005 13:31:31 +0200 Subject: Chameleon XMLThemeLegend Message-ID: This would be a question for the Chameleon list not the Mapserver list. http://chameleon.maptools.org/index.phtml?page=mailinglist.html Short answer, Chameleon comes with a sample application called "Sample using XML Theme Legend" which should help you get started. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Ferencik Ioan 05/04/05 01:24pm >>> Hi list, I am asking if anyone has or knows where I can find some good documentation regarding Chameleon's XMLThemeLegend widget. I read some XML documentation but i still have problems in creating a legend like that in Hawai demo Tahnks ___________________________ Cv-ul tau ia 500 euro/luna! http://500.myjob.ro From pauljame at GMAIL.COM Wed May 4 05:50:09 2005 From: pauljame at GMAIL.COM (Paul james) Date: Wed, 4 May 2005 09:50:09 -0300 Subject: drawQuery performance... Message-ID: Anyone could tell me, If I?m doing the right thing? If I need execute drawQuery(so slow) for each iteration with map (to keep path selected) ? thx ----- Original Message ----- From: "Paul james" To: Sent: Tuesday, May 03, 2005 8:47 PM Subject: [UMN_MAPSERVER-USERS] drawQuery performance... In my project, I build a path with queryByAtributes(about 300 lines in result), and after I draw it with drawQuery... But this function is a bit slow... And I must keep this path selected, so I do the same process for each click in on map (zoom, pan...) . Is this the best way to do it? Thank you... From sgillies at FRII.COM Wed May 4 06:11:12 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 4 May 2005 07:11:12 -0600 Subject: working with filters and expressions In-Reply-To: Message-ID: On May 4, 2005, at 12:54 AM, James Anderson wrote: > This is a multi-part message in MIME format. > > ------=_NextPart_000_00C0_01C55086.D2691930 > Content-Type: text/plain; > charset="Windows-1252" > Content-Transfer-Encoding: quoted-printable > > > Hi all, > > I have a great problem. =20 > I have a shape file layer of some roads. All the different road types > = > are in the same shape file, and Attibute data is used to specify the = > road type. I have a attribute/column named TYPE. The data here ... > eg = > road types are Paved,Unpaved, Dirt Road, etc > > Now what I want is to filter out the road types I dont want. For this > I = > was assuming the FILTER paramenter under the layer could work. > I have now tried numerous things but nothing much works. I see lots > of = > others having problems with this. Reading posts here I see lots of = > conflicting info. Some also say you can do the same with the > EXPRESSION = > parameter under your class. > Now I am totally confused. I have tired things like > > FILTER "([TYPE]=3D'Paved' or [TYPE]=3D'Unpaved')" > FILTER "([TYPE] eq 'Paved' or [TYPE] eq 'Unpaved')" > James, In MapServer's expression language, all variables on the left hand side such as [TYPE] are evaluated numerically unless explicitly cast as strings using quotes. The following should work FILTER ("[TYPE]" = "Paved") You would probably benefit from processing your data so that it has integer type attributes to do FILTER ([FTYPE] = 1) # Paved cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From williampaul28 at YAHOO.COM Wed May 4 06:21:34 2005 From: williampaul28 at YAHOO.COM (william paul) Date: Wed, 4 May 2005 06:21:34 -0700 Subject: special fonts Message-ID: Hello I want to use special fonts, like ARIAL Central European or TIMES NEW ROMAN Central European in order to use latin letters Can anyone help me? Thank you William __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From williampaul28 at YAHOO.COM Wed May 4 06:25:28 2005 From: williampaul28 at YAHOO.COM (william paul) Date: Wed, 4 May 2005 06:25:28 -0700 Subject: special fonts 2 Message-ID: Hello I wasn't complete in the previous message. These special letters I want to use them in a query, so the output of a query to be with special letter (latin letters) I want to use special fonts, like ARIAL Central European or TIMES NEW ROMAN Central European in order to use latin letters Can anyone help me? Thank you William __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcgrawj at AGR.GC.CA Wed May 4 06:28:40 2005 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Wed, 4 May 2005 09:28:40 -0400 Subject: WMS GetMap not using Lat/Lonprojection Message-ID: G'day, Frank, I tried your suggestion to use shp2img interactively to see if some clue is provided. One was, but I don't know what to do with it. When I tried: shp2img -m pei.map -o out.png This was the result: msLoadMap(): Unknown identifier. (config):(12) The config line in my map is: config PROJ_LIB /usr/local/proj-4.4.5/nad/ As far as I can tell, that's the correct syntax for config. Uppercase CONFIG makes no difference...I tried. I'll attach my map file again in case there's something before the config line that is actually causing the problem. I can't see anything but I say it's possible because, when the config line failed, I commented it out and tried the shp2img utility again. This time it failed with: msLoadMap(): Unknown identifier. (outputformat):(23) After commenting the outputformat object out, I finally got an out.png, but the fact that both of these common tags were not recognized suggests something odd is going on. Any ideas? jtm -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] Sent: Tuesday, May 03, 2005 12:14 PM To: McGraw, Joanne Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] WMS GetMap not using Lat/Lonprojection On 5/3/05, McGraw, Joanne wrote: > Hi Frank, > > Is simply copying this file enough? Or, do I also need to add some > indication that the grid shifts should be used somehow? > > The reason I ask is that I tried just copying the file and it hasn't had > any effect. I was reading the "nadgrids - Grid Based Datum Adjustments" > section at http://proj.maptools.org/gen_parms.html and was wondering if > I should be creating a new definition (with the +to NAD27 from NAD83) in > the epsg file and using that as the projection definition. > > Is the use of this data file something that has been introduced > recently; that is, post-MapServer 4.4.0? Perhaps, it is just not being > referred to in the version I have? Joanne, I think just copying it should be fine. Internally +datum=NAD27 is defined as: +nadgrids=@conus, at alaska, at ntv2_0.gsb, at ntv1_can.dat That is, it searches for the conus, alaska, ntv2_0.gsb and then ntv1_can.dat files till it finds a file overlapping the region to be converted. So you shouldn't need to do anything special to use this file. If it still isn't worked, I am somewhat confused. I am assuming that MapServer is able to load the epsg file which is the same directory, so it shouldn't be a permissions problem on the directory path, though you might want to check the permissions on the ntv1_can.dat file itself. My next suggestion would be to test interactively with shp2img. eg. shp2img -m pei.map -o out.png If you set the PROJ_DEBUG environment variable to a value (any value) then you should get detailed reports from the PROJ.4 library on files that it tries to open. This might provide a clue. Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent -------------- next part -------------- A non-text attachment was scrubbed... Name: pei.map Type: application/octet-stream Size: 4658 bytes Desc: pei.map URL: From temiz at DEPREM.GOV.TR Wed May 4 06:43:06 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Wed, 4 May 2005 16:43:06 +0300 Subject: installing php-mapscript on debian Message-ID: hello When I intend to use php-mapscript, I am still confusing installing mapserver from debian bin packages. When I did: apt-get install php4-mapscript cgi-mapserver php4 is there any package I have to install ? should I also install php4-cgi ? regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From vberre at GI-PARIS.COM Wed May 4 06:45:46 2005 From: vberre at GI-PARIS.COM (Virginie Berre) Date: Wed, 4 May 2005 08:45:46 -0500 Subject: MapServer & TIFF 24 bits Message-ID: Hi ! I think my problem isn't the TIFF 16 or 24 bits but I don't know why it doesn't work. My configuration is : ./mapserv -v MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My mapfile is : MAP NAME "DEMO" IMAGECOLOR 255 255 255 SHAPEPATH "ParisIGN10M" EXTENT 534000 2346000 691000 2472000 #EXTENT -180 -90 180 90 SIZE 600 400 WEB METADATA "wms_title" "WMS Demo Server" "wms_onlineresource" "http://localhost/cgi-bin/wms?" "wms_srs" "EPSG:27582" END IMAGEPATH '/tmp/' END PROJECTION "init=epsg:27582" END LAYER NAME Paris DATA "2000-0590-0128-75-10M.TIF" STATUS ON TYPE RASTER METADATA "wms_title" "Paris" "wms_onlineresource" "http://localhost/cgi-bin/wms?" END PROJECTION "init=epsg:27591" END END END I don't know if the Projection is right and I don't know how to know it. The error shown in the browser is : Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root at localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. But there's no error in the error log file. I hope someone has the solution !! Thanks ! Virginie From David.Fawcett at STATE.MN.US Wed May 4 07:06:41 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 4 May 2005 09:06:41 -0500 Subject: Scalebar Intervals - Defining Numeric Values Message-ID: Matthew, I may be oversimplifying this. Will your map always be of the same piece of the earth, or of a limited number of locations. If the map is of fixed scale and extent, couldn't you just create your own fixed scale bar image using Gimp and then just place it on your page as an image? David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Paul Spencer Sent: Wednesday, May 04, 2005 5:57 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Scalebar Intervals - Defining Numeric Values Matthew, your assessment is correct, you cannot affect the values that mapserver decides to use for a scale bar. There is a good reason for this. At your particular scale, it may not be possible to use an integral number of pixels to represent 100km (or some sub-division of that). Also, MapServer does make the scale bar fit the requested size (including the labels) so you could try reducing the width in small increments to see if you can get a different result. Cheers Paul Matthew Smith wrote: > Hi > > I am creating a map of fixed extent and scale (layers can be turned on and > off). How can I create a scalebar of a fixed length - in km rather than > pixels? I want to draw a scalebar 100km long; the one created automatically > is 128km long and divided 32,64,96,128km. This will probably look weird to > those who are either expecing 10s or at least 25,50,75... > >>From the documentation > (http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#scalebar) I can't > see any way to do this. > > Current config below. > > Cheers > > M > > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE large > END > outlinecolor 0 0 0 > STYLE 1 > SIZE 450 05 > COLOR 255 255 255 > UNITS kilometers > INTERVALS 4 > STATUS on > END > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From fwarmerdam at GMAIL.COM Wed May 4 07:35:43 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 4 May 2005 10:35:43 -0400 Subject: OGR connection for LINUX In-Reply-To: <20050504104911.85832.qmail@web25710.mail.ukl.yahoo.com> Message-ID: On 5/4/05, jo?ffffffffffe3o Antunes wrote: > Now the challenge is: I am transfering this system to LINUX environment and > as far as could get so far I still have to use an ODBC connection... is this > true? I mean beeing in LINUX environment souldn't I be able to make a direct > connection between mapserver an MySQL without having to use a windows native > technology? > > I am afraid I might be making things more complex than they could be.. > > thanks in advance for any tips. Joao, On Linux (or windows for that matter) you can access MySQL either via ODBC or via a direct MySQL connection depending on how your package is built. The direct MySQL driver is minimally documented at: http://www.gdal.org/ogr/drv_mysql.html I find it easier to build OGR directly against MySQL and use that instead of ODBC on Linux where ODBC can be pretty hairy. Note that in your example you were using a shapefile. That configuration should work fine on Linux too. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Wed May 4 07:45:09 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 4 May 2005 10:45:09 -0400 Subject: MapServer & TIFF 24 bits In-Reply-To: Message-ID: On 5/4/05, Virginie Berre wrote: > I don't know if the Projection is right and I don't know how to know it. Virginie, I don't think the projection is the problem. > The error shown in the browser is : > Internal Server Error This generally means the program crashed. My suggestion is that you review the "debugging MapServer" wiki topic and see if you can find out some more information. http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?DebuggingMapserver The stuff about the DEBUG keyword won't apply in your case since your mapserver was not built with debug output enabled. Mainly I would suggest testing your map with shp2img and see if you get any more useful information with it. If it core dumps it may help to run it in "gdb" if you are familiar with that. You may need to bundle up a your mapfile and dataset and submit this as a bug if you can't find anything else out. The details at the following url may be helpful for that. http://ms.gis.umn.edu/docs/howto/bug_submission Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From BEN at SYNCERA-ITSOLUTIONS.NL Wed May 4 07:49:37 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 4 May 2005 16:49:37 +0200 Subject: OGR connection for LINUX Message-ID: Hi Frank, this thread reminded me of a question I wanted to ask, is there a similar way to connect to DBF files with additional attribute information using OGR? Which works both on Windows and Linux? Or would that require a new driver? Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Frank Warmerdam 05/04/05 04:35pm >>> On 5/4/05, jo?ffffffffffe3o Antunes wrote: > Now the challenge is: I am transfering this system to LINUX environment and > as far as could get so far I still have to use an ODBC connection... is this > true? I mean beeing in LINUX environment souldn't I be able to make a direct > connection between mapserver an MySQL without having to use a windows native > technology? > > I am afraid I might be making things more complex than they could be.. > > thanks in advance for any tips. Joao, On Linux (or windows for that matter) you can access MySQL either via ODBC or via a direct MySQL connection depending on how your package is built. The direct MySQL driver is minimally documented at: http://www.gdal.org/ogr/drv_mysql.html I find it easier to build OGR directly against MySQL and use that instead of ODBC on Linux where ODBC can be pretty hairy. Note that in your example you were using a shapefile. That configuration should work fine on Linux too. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ARyan at CO.LINN.OR.US Wed May 4 08:16:07 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 4 May 2005 08:16:07 -0700 Subject: drawQuery performance... Message-ID: Paul, If I understand correctly, you have a query result that you want to persist in subsequent map.draw() calls. Try using map.saveQuery and loadQuery. You would save to a temporary file after your queryByAtributes and then load prior to each map.draw(). Is that what you're looking for? Adam > -----Original Message----- > From: Paul james [mailto:pauljame at GMAIL.COM] > Sent: Wednesday, May 04, 2005 5:50 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] drawQuery performance... > > > Anyone could tell me, If I?m doing the right thing? > If I need execute drawQuery(so slow) for each iteration with > map (to keep path selected) ? > > thx > > > ----- Original Message ----- > From: "Paul james" > To: > Sent: Tuesday, May 03, 2005 8:47 PM > Subject: [UMN_MAPSERVER-USERS] drawQuery performance... > > > In my project, I build a path with queryByAtributes(about 300 > lines in result), and after I draw it with drawQuery... But > this function is a bit slow... And I must keep this path > selected, so I do the same process for each click in on map > (zoom, pan...) . Is this the best way to do it? > > Thank you... > From fwarmerdam at GMAIL.COM Wed May 4 08:23:27 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 4 May 2005 11:23:27 -0400 Subject: WMS GetMap not using Lat/Lonprojection In-Reply-To: Message-ID: On 5/4/05, McGraw, Joanne wrote: > G'day, Frank, > > I tried your suggestion to use shp2img interactively to see if some clue > is provided. One was, but I don't know what to do with it. > > When I tried: > shp2img -m pei.map -o out.png > > This was the result: > msLoadMap(): Unknown identifier. (config):(12) > > The config line in my map is: > config PROJ_LIB /usr/local/proj-4.4.5/nad/ > > As far as I can tell, that's the correct syntax for config. Uppercase > CONFIG makes no difference...I tried. Joanne, Is there any chance you did this with an older shp2img? You might want to check with "shp2img -v". The CONFIG keyword was new in 4.4.0 as far as I know, but the message seems to suggest the config keyword isn't recognised. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From pauljame at GMAIL.COM Wed May 4 08:26:31 2005 From: pauljame at GMAIL.COM (Paul james) Date: Wed, 4 May 2005 12:26:31 -0300 Subject: drawQuery performance... In-Reply-To: <-8646246009804741272@unknownmsgid> Message-ID: Thank you Ryan... That?s it ! So, I the steps are: - queryByAttributes - saveQuery - drawQuery ... - loadQuery - drawMap ?? thx On 5/4/05, Ryan, Adam wrote: > > Paul, > > If I understand correctly, you have a query result that you want to persist > in subsequent map.draw() calls. Try using map.saveQuery and loadQuery. You > would save to a temporary file after your queryByAtributes and then load > prior to each map.draw(). Is that what you're looking for? > > Adam > > > > -----Original Message----- > > From: Paul james [mailto:pauljame at GMAIL.COM] > > Sent: Wednesday, May 04, 2005 5:50 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] drawQuery performance... > > > > > > Anyone could tell me, If I?m doing the right thing? > > If I need execute drawQuery(so slow) for each iteration with > > map (to keep path selected) ? > > > > thx > > > > > > ----- Original Message ----- > > From: "Paul james" > > To: > > Sent: Tuesday, May 03, 2005 8:47 PM > > Subject: [UMN_MAPSERVER-USERS] drawQuery performance... > > > > > > In my project, I build a path with queryByAtributes(about 300 > > lines in result), and after I draw it with drawQuery... But > > this function is a bit slow... And I must keep this path > > selected, so I do the same process for each click in on map > > (zoom, pan...) . Is this the best way to do it? > > > > Thank you... > > > From ARyan at CO.LINN.OR.US Wed May 4 08:46:43 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 4 May 2005 08:46:43 -0700 Subject: drawQuery performance... Message-ID: Actually your subsequent draw commands may still need to be drawQuery calls if I remember correctly: - queryByAttributes - saveQuery - drawQuery ... - loadQuery - drawQuery Adam > -----Original Message----- > From: Paul james [mailto:pauljame at GMAIL.COM] > Sent: Wednesday, May 04, 2005 8:27 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] drawQuery performance... > > > Thank you Ryan... That?s it ! > > So, I the steps are: > - queryByAttributes > - saveQuery > - drawQuery > ... > - loadQuery > - drawMap > > ?? > > thx > > On 5/4/05, Ryan, Adam wrote: > > > > Paul, > > > > If I understand correctly, you have a query result that you want to > > persist in subsequent map.draw() calls. Try using > map.saveQuery and > > loadQuery. You would save to a temporary file after your > > queryByAtributes and then load prior to each map.draw(). > Is that what > > you're looking for? > > > > Adam > > > > > > > -----Original Message----- > > > From: Paul james [mailto:pauljame at GMAIL.COM] > > > Sent: Wednesday, May 04, 2005 5:50 AM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] drawQuery performance... > > > > > > > > > Anyone could tell me, If I?m doing the right thing? > > > If I need execute drawQuery(so slow) for each iteration with map > > > (to keep path selected) ? > > > > > > thx > > > > > > > > > ----- Original Message ----- > > > From: "Paul james" > > > To: > > > Sent: Tuesday, May 03, 2005 8:47 PM > > > Subject: [UMN_MAPSERVER-USERS] drawQuery performance... > > > > > > > > > In my project, I build a path with queryByAtributes(about > 300 lines > > > in result), and after I draw it with drawQuery... But > this function > > > is a bit slow... And I must keep this path selected, so I do the > > > same process for each click in on map (zoom, pan...) . Is > this the > > > best way to do it? > > > > > > Thank you... > > > > > > From jmckenna at DMSOLUTIONS.CA Wed May 4 08:55:20 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 4 May 2005 11:55:20 -0400 Subject: ArcMap to MapFile In-Reply-To: Message-ID: Bart is correct that we were planning to work with Eduin Carrillo (Qix developer) for an ArcMap-MapServer extension. However things just never panned out on our side, so we're glad to hear that Till (AmeiN!) has a new version coming out...that's great news for everyone. jeff Bart van den Eijnden wrote: > Hi, > > also gix had plans to do this (ArcGIS version), but I can't find those plans anymore on the site (it was supposed to be sponsored by DM Solutions Group if I recall correctly), so I don't know if those plans ever came to realization: > > http://gix.sourceforge.net/ > > Best regards, > Bart > > Bart van den Eijnden > Syncera-ITSolutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>>>Till Adams 05/03/05 03:28pm >>> > > Rodrigo Tomasi wrote: > > >>Hi, >> >>Is it possible to export an ArcMap .mxd to a mapfile (.map) ? Is there any >>utility to do this job ? My mxd has only shapefile layers. >> >>I can use MapLab to speed up mapfile generation, but this kind of utility >>would by great. >> >>Thanks in advance, >> >> Rodrigo >> >> > > Dear Rodrigo, > > we are just in the last work for the release of the (OS-) software > "AmeiN!". This is a tool > which allows to convert the actual dataframe from arcmap (v9 incl. sp > II) - including > most of the symbols - into an umn mapserver file. > > We plan to release the v1.0 by mid of May (I can show it on the OS 05 as > well) - look > on sourceforge for AveiN! which was the old version for ArcView 3.x and > you'll find AmeiN! > there by end of next week. It's in german and english. > > Greetings, Till > > -- > > Mit freundlichen Gr?ssen aus Bonn, > > Till Adams > > ****************************************** > * AmeiN! ArcGIS Map-Export-2-UMN * > * AmeiN! Workshop 11. Mai 2005 * > * http://www.terrestris.de * > ****************************************** > > ------------------------------------------ > > Dipl. Geogr. Till Adams > terrestris, Paulsen&Adams GbR > Siemensstr. 8 * 53121 Bonn > Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 > info at terrestris.de * www.terrestris.de > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From pauljame at GMAIL.COM Wed May 4 08:56:04 2005 From: pauljame at GMAIL.COM (Paul james) Date: Wed, 4 May 2005 12:56:04 -0300 Subject: drawQuery performance... In-Reply-To: <6518106162945499939@unknownmsgid> Message-ID: That?s the point... drawQuery is so slow to large query... On 5/4/05, Ryan, Adam wrote: > > Actually your subsequent draw commands may still need to be drawQuery calls > if I remember correctly: > > - queryByAttributes > - saveQuery > - drawQuery > ... > - loadQuery > - drawQuery > > Adam > > > -----Original Message----- > > From: Paul james [mailto:pauljame at GMAIL.COM] > > Sent: Wednesday, May 04, 2005 8:27 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] drawQuery performance... > > > > > > Thank you Ryan... That?s it ! > > > > So, I the steps are: > > - queryByAttributes > > - saveQuery > > - drawQuery > > ... > > - loadQuery > > - drawMap > > > > ?? > > > > thx > > > > On 5/4/05, Ryan, Adam wrote: > > > > > > Paul, > > > > > > If I understand correctly, you have a query result that you want to > > > persist in subsequent map.draw() calls. Try using > > map.saveQuery and > > > loadQuery. You would save to a temporary file after your > > > queryByAtributes and then load prior to each map.draw(). > > Is that what > > > you're looking for? > > > > > > Adam > > > > > > > > > > -----Original Message----- > > > > From: Paul james [mailto:pauljame at GMAIL.COM] > > > > Sent: Wednesday, May 04, 2005 5:50 AM > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > Subject: Re: [UMN_MAPSERVER-USERS] drawQuery performance... > > > > > > > > > > > > Anyone could tell me, If I?m doing the right thing? > > > > If I need execute drawQuery(so slow) for each iteration with map > > > > (to keep path selected) ? > > > > > > > > thx > > > > > > > > > > > > ----- Original Message ----- > > > > From: "Paul james" > > > > To: > > > > Sent: Tuesday, May 03, 2005 8:47 PM > > > > Subject: [UMN_MAPSERVER-USERS] drawQuery performance... > > > > > > > > > > > > In my project, I build a path with queryByAtributes(about > > 300 lines > > > > in result), and after I draw it with drawQuery... But > > this function > > > > is a bit slow... And I must keep this path selected, so I do the > > > > same process for each click in on map (zoom, pan...) . Is > > this the > > > > best way to do it? > > > > > > > > Thank you... > > > > > > > > > > From fwarmerdam at GMAIL.COM Wed May 4 08:56:39 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 4 May 2005 11:56:39 -0400 Subject: Query on DGN attribute data In-Reply-To: Message-ID: On 5/4/05, Gambin Dejan wrote: > Thanks Frank, > > ogrinfo -s file_name.dgn elements gives me: > > INFO: Open of `10-text.dgn' > using driver `DGN' successful. > > Layer name: elements > Geometry: Unknown (any) > Feature Count: 1242 > Extent: (5403842.480000, 4964999.646000) - (5416695.538000, > 4976971.721000) > Layer SRS WKT: > (unknown) > Type: Integer (2.0) > Level: Integer (2.0) > GraphicGroup: Integer (4.0) > ColorIndex: Integer (3.0) > Weight: Integer (2.0) > Style: Integer (1.0) > EntityNum: Integer (0.0) > MSLink: Integer (0.0) > Text: String (0.0) > > that seems OK and also ogrinfo -al gives me the records with text field > filled, for example: > > OGRFeature(elements):34 > Type (Integer) = 17 > Level (Integer) = 9 > GraphicGroup (Integer) = 0 > ColorIndex (Integer) = 0 > Weight (Integer) = 0 > Style (Integer) = 0 > EntityNum (Integer) = (null) > MSLink (Integer) = (null) > Text (String) = MUKATI > Style = LABEL(t:"MUKATI",c:#ffffff,s:15g) > POINT (5406547.385 4975870.523) > > ...so evrything seems OK and I can see the text on my map, the problem > is that I can't search for this data. Maybe this has something to do > with my interface (I am using p.mapper and PHP/Mapscript) but it seems > like it has problems with the field named "TEXT". Is this possible? Any > experiences? Ganbin, Sorry, matters PHP are not my forte, and I'm not really very good with the query support either. It is possible there are bugs in the OGR query support. If you can boil it down to a straight forward example, you could file a bug report on it, with datasets and map for me to look into. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Wed May 4 09:03:22 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 4 May 2005 12:03:22 -0400 Subject: OGR connection for LINUX In-Reply-To: Message-ID: On 5/4/05, Bart van den Eijnden wrote: > Hi Frank, > > this thread reminded me of a question I wanted to ask, is there a similar way to connect to DBF files with additional attribute information using OGR? Which works both on Windows and Linux? Or would that require a new driver? Bart, OGR's Shapefile driver already supports accessing "bare" .dbf files with no .shp or .shx file. So the shapefile driver is a "free" dbf driver as well. Though limited to the relatively old and simple style of .dbf normally used with shapefiles. DBF files can be access directly by name or as a directory. You can also access DBF files via ODBC of course. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From mcgrawj at AGR.GC.CA Wed May 4 10:04:53 2005 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Wed, 4 May 2005 13:04:53 -0400 Subject: WMS GetMap not using Lat/Lonprojection Message-ID: DOH, That's exactly what I am doing. The shp2img utility I was using was 3.6.3. I find there are a number of versions MapServer on our server. How can I find out which one is actually processing the pages I am requesting? That is, while I was under the impression we are only one version behind on the server, how can I find out for sure? The person who might know this information is out of the office for a few days. Anyone? jtm -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] Sent: Wednesday, May 04, 2005 11:23 AM To: McGraw, Joanne Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] WMS GetMap not using Lat/Lonprojection On 5/4/05, McGraw, Joanne wrote: > G'day, Frank, > > I tried your suggestion to use shp2img interactively to see if some clue > is provided. One was, but I don't know what to do with it. > > When I tried: > shp2img -m pei.map -o out.png > > This was the result: > msLoadMap(): Unknown identifier. (config):(12) > > The config line in my map is: > config PROJ_LIB /usr/local/proj-4.4.5/nad/ > > As far as I can tell, that's the correct syntax for config. Uppercase > CONFIG makes no difference...I tried. Joanne, Is there any chance you did this with an older shp2img? You might want to check with "shp2img -v". The CONFIG keyword was new in 4.4.0 as far as I know, but the message seems to suggest the config keyword isn't recognised. Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From mcgrawj at AGR.GC.CA Wed May 4 10:17:02 2005 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Wed, 4 May 2005 13:17:02 -0400 Subject: WMS GetMap not using Lat/Lonprojection Message-ID: Ah ha! For this application, I am running MapServer 4.4.0-beta2 on the server. I can find no mapserv-utils for that version just yet. I may need to download it. I'll get back to you when I've run the shp2img with a current version. Cheers, jtm -----Original Message----- From: McGraw, Joanne Sent: Wednesday, May 04, 2005 1:05 PM To: 'warmerdam at pobox.com' Cc: MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] WMS GetMap not using Lat/Lonprojection DOH, That's exactly what I am doing. The shp2img utility I was using was 3.6.3. I find there are a number of versions MapServer on our server. How can I find out which one is actually processing the pages I am requesting? That is, while I was under the impression we are only one version behind on the server, how can I find out for sure? The person who might know this information is out of the office for a few days. Anyone? jtm -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] Sent: Wednesday, May 04, 2005 11:23 AM To: McGraw, Joanne Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] WMS GetMap not using Lat/Lonprojection On 5/4/05, McGraw, Joanne wrote: > G'day, Frank, > > I tried your suggestion to use shp2img interactively to see if some clue > is provided. One was, but I don't know what to do with it. > > When I tried: > shp2img -m pei.map -o out.png > > This was the result: > msLoadMap(): Unknown identifier. (config):(12) > > The config line in my map is: > config PROJ_LIB /usr/local/proj-4.4.5/nad/ > > As far as I can tell, that's the correct syntax for config. Uppercase > CONFIG makes no difference...I tried. Joanne, Is there any chance you did this with an older shp2img? You might want to check with "shp2img -v". The CONFIG keyword was new in 4.4.0 as far as I know, but the message seems to suggest the config keyword isn't recognised. Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at 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 at METEOLOGICA.ES Wed May 4 09:43:05 2005 From: mapserver at METEOLOGICA.ES (Paco Regodon) Date: Wed, 4 May 2005 18:43:05 +0200 Subject: Image resolution In-Reply-To: <425ec3b6050419004066cd178c@mail.gmail.com> Message-ID: El Martes, 19 de Abril de 2005 09:40, Llu?s Garcia i Mestres escribi?: > > The output format is png, and I think the problem should be there. Try "IMAGETYPE PNG24". PNG and PNG24 default to interlaced mode, which i don't like, so i use: IMAGETYPE GD-PNG24 OUTPUTFORMAT NAME GD-PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "INTERLACE=OFF" END Non-interlaced images are smaller than interlaced ones. Paco Regod?n Meteologica S.A. From aquiney at REFRACTIONS.NET Wed May 4 10:41:00 2005 From: aquiney at REFRACTIONS.NET (Adam Quiney) Date: Wed, 4 May 2005 10:41:00 -0700 Subject: Railroads Message-ID: Hey all, Over the course of trying to get aesthetically pleasing cartography, I keep running into the same problem - railroads. I've searched on the net multiple times for pleasing solutions, and have come across a few, but inevitably the cross-hatches end up looking ugly and inconsistent. I'm hoping to achieve something that looks similar to that which google is displays (http://maps.google.ca, zoom to Vancouver search for 'Hastings Park Racecourse'). Has anyone had any success trying to mimic this look? --Adam -- Adam Quiney Analyst Refractions Research Inc. From bartvde at XS4ALL.NL Wed May 4 10:50:06 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 4 May 2005 19:50:06 +0200 Subject: Railroads In-Reply-To: <4279092C.8080202@refractions.net> Message-ID: What about the solution in here (I did not look at the Google example though): http://mapserver.gis.umn.edu/doc44/cartographic-symbols.html Best regards, Bart On Wed, 4 May 2005 10:41:00 -0700, Adam Quiney wrote: > Hey all, > > Over the course of trying to get aesthetically pleasing cartography, I > keep running into the same problem - railroads. I've searched on the > net multiple times for pleasing solutions, and have come across a few, > but inevitably the cross-hatches end up looking ugly and inconsistent. > I'm hoping to achieve something that looks similar to that which google > is displays (http://maps.google.ca, zoom to Vancouver search for > 'Hastings Park Racecourse'). Has anyone had any success trying to mimic > this look? > > --Adam > > -- > > Adam Quiney > Analyst > Refractions Research Inc. > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From bartvde at XS4ALL.NL Wed May 4 11:25:16 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 4 May 2005 20:25:16 +0200 Subject: querymap symbology Message-ID: Hi list, I was wondering if the only property which can be set of selected features drawn in a querymap is the color? Is it not possible, to define line width, or eg whether or not labels should be drawn in the selection color as well? Have a selected polygon drawn filled instead of just the outline? I could even image a selection style per layer. Is it possible to do that kind of stuff? If yes then how? Thanks in advance. Best regards, Bart -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From ARyan at CO.LINN.OR.US Wed May 4 11:55:41 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 4 May 2005 11:55:41 -0700 Subject: querymap symbology Message-ID: Bart, One method you might try is to define the layer you want to query twice. So have a 'parcels' layer and a 'q_parcels' layer. The former would be symbolized normally, the later would symbolized as you want the query results to look. Then set the qlayer CGI variable to 'q_parcels', and in your QUERYMAP object set STYLE to selected. But that's just one way. Cheers, Adam > -----Original Message----- > From: Bart van den Eijnden [mailto:bartvde at XS4ALL.NL] > Sent: Wednesday, May 04, 2005 11:25 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] querymap symbology > > > Hi list, > > I was wondering if the only property which can be set of > selected features drawn in a querymap is the color? > > Is it not possible, to define line width, or eg whether or > not labels should be drawn in the selection color as well? > Have a selected polygon drawn filled instead of just the > outline? I could even image a selection style per layer. > > Is it possible to do that kind of stuff? If yes then how? > > Thanks in advance. > > Best regards, > Bart > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > From aaronr at ECOTRUST.ORG Wed May 4 12:18:48 2005 From: aaronr at ECOTRUST.ORG (Aaron Racicot) Date: Wed, 4 May 2005 12:18:48 -0700 Subject: Projections with ARCINFO Grids Message-ID: Hi there, I am having issues with displaying some Arc/Info Binary Grid's. I was hoping that I would not have to explicitly define the projection information for layers that I am dynamically adding to my mapfile since the format they are in has a prj.adf file defining the projection. I am displaying my main map in lat-lon, but have a couple of rasters that are in different projections (such as UTM zone 10N). If I explicitly define the projection in the map file things display fine for the layer: LAYER DATA "siuslaw/data_cd/region/shd90/" METADATA END NAME "siuslaw_data_cd_region_shd90" SIZEUNITS PIXELS STATUS ON TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE RASTER UNITS METERS PROJECTION "proj=utm" "ellps=clrk66" "zone=10" "north" END END When I try to remove the projection definition from the layer and allow GDAL to get the projection info from the ArcInfo Grid itself I loose the layer on the map (I assume it is being assumed to have a lat-lon coordinate system like the main map). When I use gdalinfo to look at the ArcInfo Grid I get the projection info just fine: [aaronr at pearl rip_veg]$ gdalinfo hdr.adf Driver: AIG/Arc/Info Binary Grid Size is 3234, 2364 Coordinate System is: PROJCS["UTM Zone 10, Northern Hemisphere", GEOGCS["NAD27", DATUM["North_American_Datum_1927", SPHEROID["Clarke 1866",6378206.4,294.978698213898, AUTHORITY["EPSG","7008"]], TOWGS84[-3,142,183,0,0,0,0], AUTHORITY["EPSG","6267"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9108"]], AXIS["Lat",NORTH], AXIS["Long",EAST], AUTHORITY["EPSG","4267"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-123], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["METERS",1]] Origin = (408851.852209,4904262.055127) Pixel Size = (25.00000000,-25.00000000) Corner Coordinates: Upper Left ( 408851.852, 4904262.055) (124d 8'32.57"W, 44d17'16.24"N) Lower Left ( 408851.852, 4845162.055) (124d 7'55.95"W, 43d45'21.02"N) Upper Right ( 489701.852, 4904262.055) (123d 7'44.69"W, 44d17'36.55"N) Lower Right ( 489701.852, 4845162.055) (123d 7'40.56"W, 43d45'40.96"N) Center ( 449276.852, 4874712.055) (123d37'58.50"W, 44d 1'32.72"N) Band 1 Block=256x4 Type=Byte, ColorInterp=Undefined Min=1.000 Max=14.000 NoData Value=255 [aaronr at pearl rip_veg]$ Is there a way to get this to work? I just don't want to have to do something silly like parse the gdalinfo output to be able to dynamically know what the ArcInfo Grid projection is. Thanks in advance! Aaron My System: Fedora Core 3 Mapserver 4.4.2 (php Mapscript) GDAL 1.2.5 MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=SDE INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG +----------------------------------------+ | Aaron Racicot? | aaronr at ecotrust.org?? | | GIS Programmer | 503.467.0759????????? | +----------------------------------------+ | e c o t r u s t??????????????????????? | | Jean Vollum Natural Capital Center???? | | 721 NW Ninth Avenue??????????????????? | | Suite 200????????????????????????????? | | Portland, OR 97209??????????????????? ?| | www.ecotrust.org???????????????????????| +----------------------------------------+ From fwarmerdam at GMAIL.COM Wed May 4 12:26:06 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 4 May 2005 15:26:06 -0400 Subject: Projections with ARCINFO Grids In-Reply-To: <4B2557033346D4119363009027CB57CF0281C87F@daryl.ecotrust.org> Message-ID: On 5/4/05, Aaron Racicot wrote: > Hi there, > > I am having issues with displaying some Arc/Info Binary Grid's. I was hoping that I would not have to explicitly define the projection information for layers that I am dynamically adding to my mapfile since the format they are in has a prj.adf file defining the projection. I am displaying my main map in lat-lon, but have a couple of rasters that are in different projections (such as UTM zone 10N). If I explicitly define the projection in the map file things display fine for the layer: Aaron, At one time you could put 'PROJECTION "AUTO" END' in your mapfile to auto-load the projection of a layer from a GDAL file, but I don't think this works anymore. It certainly isn't the default. You can file a bug on this topic if you like. In general MapServer seems to like you to have to regenerate your projection definition even when it could figure it out for you. This is an annoying source of errors and confusion. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From aaronr at ECOTRUST.ORG Wed May 4 12:37:37 2005 From: aaronr at ECOTRUST.ORG (Aaron Racicot) Date: Wed, 4 May 2005 12:37:37 -0700 Subject: Projections with ARCINFO Grids Message-ID: Frank, Thanks for the quick reply... It turns out that 'PROJECTION "AUTO" END' does work and my maps are displaying great. I just hope the functionality stays working in future versions! In the case of my previous example, the new mapfile layer def is: LAYER DATA "siuslaw/data_cd/region/shd90/" METADATA END NAME "siuslaw_data_cd_region_shd90" SIZEUNITS PIXELS STATUS ON TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE RASTER UNITS METERS PROJECTION "AUTO" END END And the resulting mapfile after saving it back out via php_mapscript with the projection filled in automatically by Mapserver: LAYER DATA "siuslaw/data_cd/region/shd90/" METADATA END NAME "siuslaw_data_cd_region_shd90" PROJECTION "proj=utm" "zone=10" "ellps=clrk66" "datum=NAD27" "units=m" "no_defs" END SIZEUNITS PIXELS STATUS ON TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE RASTER UNITS METERS END Thanks again... Aaron -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Wednesday, May 04, 2005 12:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Projections with ARCINFO Grids On 5/4/05, Aaron Racicot wrote: > Hi there, > > I am having issues with displaying some Arc/Info Binary Grid's. I was hoping that I would not have to explicitly define the projection information for layers that I am dynamically adding to my mapfile since the format they are in has a prj.adf file defining the projection. I am displaying my main map in lat-lon, but have a couple of rasters that are in different projections (such as UTM zone 10N). If I explicitly define the projection in the map file things display fine for the layer: Aaron, At one time you could put 'PROJECTION "AUTO" END' in your mapfile to auto-load the projection of a layer from a GDAL file, but I don't think this works anymore. It certainly isn't the default. You can file a bug on this topic if you like. In general MapServer seems to like you to have to regenerate your projection definition even when it could figure it out for you. This is an annoying source of errors and confusion. Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Wed May 4 12:44:05 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 4 May 2005 15:44:05 -0400 Subject: Projections with ARCINFO Grids In-Reply-To: <4B2557033346D4119363009027CB57CF0281C880@daryl.ecotrust.org> Message-ID: On 5/4/05, Aaron Racicot wrote: > Frank, > > Thanks for the quick reply... > > It turns out that 'PROJECTION "AUTO" END' does work and my maps are > displaying great. I just hope the functionality stays working in future > versions! Aaron, Cool. I thought I had tried this recently and found that it wasn't working any more but I could be wrong. > In the case of my previous example, the new mapfile layer def is: > > LAYER > DATA "siuslaw/data_cd/region/shd90/" > METADATA > END > NAME "siuslaw_data_cd_region_shd90" > SIZEUNITS PIXELS > STATUS ON > TOLERANCE 0 > TOLERANCEUNITS PIXELS > TYPE RASTER > UNITS METERS > PROJECTION > "AUTO" > END > END > > And the resulting mapfile after saving it back out via php_mapscript > with the projection filled in automatically by Mapserver: That is funky magic. All hail the saveMap() call! Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From lluisgm at GMAIL.COM Wed May 4 12:52:23 2005 From: lluisgm at GMAIL.COM (=?ISO-8859-1?Q?Llu=EDs_Garcia_i_Mestres?=) Date: Wed, 4 May 2005 21:52:23 +0200 Subject: Image resolution In-Reply-To: <200505041843.05638.mapserver@meteologica.es> Message-ID: Hi Paco, I've tried but looks the same quality. I don't know why if I reduce the resolution using Gimp, the raster image improve the quality in the overview. How is possible this? Llu?s On 5/4/05, Paco Regodon wrote: > El Martes, 19 de Abril de 2005 09:40, Llu?s Garcia i Mestres escribi?: > > > > The output format is png, and I think the problem should be there. > > Try "IMAGETYPE PNG24". > > PNG and PNG24 default to interlaced mode, which i don't like, so i use: > > IMAGETYPE GD-PNG24 > OUTPUTFORMAT > NAME GD-PNG24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > FORMATOPTION "INTERLACE=OFF" > END > > Non-interlaced images are smaller than interlaced ones. > > Paco Regod?n > Meteologica S.A. > From kenlord at GMAIL.COM Wed May 4 13:04:38 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 4 May 2005 13:04:38 -0700 Subject: variable substitution of Tolerance Message-ID: Hi list, I've been trying to modify the TOLERANCE value of a layer in my mapfile, using variable substitution, Windows CGI mapserver: LAYER ... TOLERANCE %myvariable% ... END But it crashes when it hits the first '%', stating its an unknown symbol. Is this parameter untouchable with variable substitution? I haven't had this problem using variable substitution elsewhere in my mapfile, such as modifying connection strings. Thanks, Ken Lord Vancouver BC From gacp at D-KONSTRUKTORS.ORG Wed May 4 19:31:20 2005 From: gacp at D-KONSTRUKTORS.ORG (Gustavo Alcides Concheiro P=?ISO-8859-1?Q?=C3=A9rez?=) Date: Wed, 4 May 2005 21:31:20 -0500 Subject: wrong sized rasters in queries Message-ID: 1. I have a strange problem. Rasters are shown the wrong size but only in queries, and only in the Debian machine, things work fine on the SuSE server. Any advice will be greatly appreciated. 2. Is there a SENSIBLE way to get PHP-MapScript installed. Last time, I had to re-install half the system to get the verdamte thing running, and I only could get it to run on Debian, the LinGIS MapScript (the reason why I installed SuSE on that machine, does not work, and has been reported rotten. Why is this *so* difficult? TIA. -gustavo From steve at STAFF.PIPENETWORKS.COM Wed May 4 22:40:22 2005 From: steve at STAFF.PIPENETWORKS.COM (Stephen Baxter) Date: Thu, 5 May 2005 15:40:22 +1000 Subject: Distance tool in ROSA Message-ID: Hello, I hacked up the output from Gmap Factory to include the Distance Tool. Specificially I changed the following: gmf_apps\project\project.php to include : ----------------------------------------- case "DIST": $cellsize = $oMap->cellsize ; $cellsize2 = $cellsize / 1000 ; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; ECHO ""; echo ""; echo "\n"; echo "n"; break; AND case "DIST": return "DIST"; break; As per http://lists.maptools.org/pipermail/maplab-users/2004-May/001197.html gmf_apps\project\project_contents.php to include : -------------------------------------------------- array_push( $aszROSATools, "DIST" ); But my issue is that when I zoom in on an area of the map it seems to not I even put : $cellsize = $oMap->cellsize ; $cellsize2 = $cellsize / 1000 ; In the 'case "ZOOM_IN":' area in order to get it to recalculate the cellsize but to no avail. If I press the redraw button at the new zoom level it seems to reset it and all goes well, the correct distance is represented by the tool, not the distance at the old resolution. I have also tried forcing a browser reload and that does not seem to fix it. I am not sure if it is related but the 'Zoom to fullest extents' seems to need to be pressed twice as well before it works, in that once you press it the map redraws but to the zoom in area - not to fullest extent. The re-centre tool does seem to fix it though, as does activating the 'i' tool. Any help appreciated. -- Stephen Baxter Technical Director - PIPE Networks Winner Australian Telecommunications Users Group 2005 award for 'Best Communication Solution for Large Business' Peering,IX points and dark fiber in Australia. Largest peering network downunder. phone : 07 3233 9800/ 0417 818 695 fax : 07 3220 1800 web : www.pipenetworks.com From steve at STAFF.PIPENETWORKS.COM Wed May 4 22:47:45 2005 From: steve at STAFF.PIPENETWORKS.COM (Stephen Baxter) Date: Thu, 5 May 2005 15:47:45 +1000 Subject: FW: [UMN_MAPSERVER-USERS] Distance tool in ROSA (missed some info from first post) Message-ID: Hello, I hacked up the output from Gmap Factory to include the Distance Tool. Specificially I changed the following: gmf_apps\project\project.php to include : ----------------------------------------- case "DIST": $cellsize = $oMap->cellsize ; $cellsize2 = $cellsize / 1000 ; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; ECHO ""; echo ""; echo "\n"; echo "n"; break; AND case "DIST": return "DIST"; break; As per http://lists.maptools.org/pipermail/maplab-users/2004-May/001197.html gmf_apps\project\project_contents.php to include : -------------------------------------------------- array_push( $aszROSATools, "DIST" ); But my issue is that when I zoom in on an area of the map it seems to not reset the cellsize to the new value for the new zoom level. I am fairly sure that this is not caused by browser caching issues as I have tried on Exploder and Firefox and they both have the same issues. I even put : $cellsize = $oMap->cellsize ; $cellsize2 = $cellsize / 1000 ; In the 'case "ZOOM_IN":' area in order to get it to recalculate the cellsize but to no avail. If I press the redraw button at the new zoom level it seems to reset it and all goes well, the correct distance is represented by the tool, not the distance at the old resolution. I have also tried forcing a browser reload and that does not seem to fix it. I am not sure if it is related but the 'Zoom to fullest extents' seems to need to be pressed twice as well before it works, in that once you press it the map redraws but to the zoom in area - not to fullest extent. The re-centre tool does seem to fix it though, as does activating the 'i' tool. I am thinking that the web server or similar may be keeping some pesky state somewhere that needs to be dealt with - maybe ! Any help appreciated. -- Stephen Baxter Technical Director - PIPE Networks Winner Australian Telecommunications Users Group 2005 award for 'Best Communication Solution for Large Business' Peering,IX points and dark fiber in Australia. Largest peering network downunder. phone : 07 3233 9800/ 0417 818 695 fax : 07 3220 1800 web : www.pipenetworks.com From aborruso at TIN.IT Thu May 5 00:24:12 2005 From: aborruso at TIN.IT (andy) Date: Thu, 5 May 2005 09:24:12 +0200 Subject: Pan Extent In-Reply-To: <10505031438.AA1692074414@ingenieurteam2.com> Message-ID: Dear all, is it possible in same way to limitate the extent of panning around a map? I do not want that some user can pan in area with no data? Thank you, a From xbobwjones at HOTMAIL.COM Thu May 5 03:04:23 2005 From: xbobwjones at HOTMAIL.COM (Robert Jones) Date: Thu, 5 May 2005 05:04:23 -0500 Subject: International text characters in labels Message-ID: I understand that the font you should use is determined by the character set of the dataset you are trying to label - so if your dataset contains Unicode characters, you should use a font that supports these. Rob >I am too interested on how to show the international characters using >ENCODING parameter in map file. Does the font I am using to display the >labels has to be in Unicode character set? > >Dejan From bluetuna_goes_skying at YAHOO.CO.UK Thu May 5 04:39:47 2005 From: bluetuna_goes_skying at YAHOO.CO.UK (=?iso-8859-1?q?jo=FFffffffffffe3o=20Antunes?=) Date: Thu, 5 May 2005 12:39:47 +0100 Subject: OGR connection for LINUX In-Reply-To: 6667 Message-ID: Thank you Frank for your kind help. I still have some issues though.. I don't understand which syntax I should use.. I am trying something like CONNECTIONTYPE OGR CONNECTION "C:\Programmi\Apache Group\Apache\htdocs\abruzzo\maps\data\comuni_abruzzo_gb.shp" DATA "SELECT * FROM comuni_abruzzo_gb LEFT JOIN 'MYGIS:database=zzzz_abruzzo, tablename=zzz, user=rt, password=rt, port=3306' ON comuni_abruzzo_gb.Id = zzz.ID" But I get this error: Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'comuni'. in c:\programmi\apache group\apache\htdocs\abruzzo\_test_mysql.php on line 117 Warning: [MapServer Error]: msOGRFileOpen(): ExecuteSQL(SELECT * FROM comuni_abruzzo_gb LEFT JOIN 'MYGIS:database=zzzz_abruzzo, tablename=zzz, user=root, password=slbenfica, port=3306' ON comuni_abruzzo_gb.Id = zzz.ID) failed. SELECT from table MYGIS:database=zzzz_abruzzo, tablename=zzz, user=rt, password=rt, port=3306 failed, no such table/featureclass. in c:\programmi\apache group\apache\htdocs\abruzzo\_test_mysql.php on line 117 Fatal error: Call to a member function on a non-object in c:\programmi\apache group\apache\htdocs\abruzzo\_test_mysql.php on line 118 Besides I am just gessing as I don't know the syntax rules.. could you giveme a hand on this or tell me the place where I can find this syntax? Thank you so much Joao Frank Warmerdam wrote: On 5/4/05, jo?ffffffffffe3o Antunes wrote: > Now the challenge is: I am transfering this system to LINUX environment and > as far as could get so far I still have to use an ODBC connection... is this > true? I mean beeing in LINUX environment souldn't I be able to make a direct > connection between mapserver an MySQL without having to use a windows native > technology? > > I am afraid I might be making things more complex than they could be.. > > thanks in advance for any tips. Joao, On Linux (or windows for that matter) you can access MySQL either via ODBC or via a direct MySQL connection depending on how your package is built. The direct MySQL driver is minimally documented at: http://www.gdal.org/ogr/drv_mysql.html I find it easier to build OGR directly against MySQL and use that instead of ODBC on Linux where ODBC can be pretty hairy. Note that in your example you were using a shapefile. That configuration should work fine on Linux too. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent --------------------------------- How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos. Get Yahoo! Photos -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdport at VERITIME.COM Thu May 5 06:04:18 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 5 May 2005 09:04:18 -0400 Subject: Using Google Maps Message-ID: When I tried it, I got Error: Permission denied (line 14, Char 2) if I used IE6, and if I used Firefox I got: Error: uncaught exception: A script from "http://..." was denied UniversalBrowserRead privileges. Tried looking at the code, but my javascript skills need some work :) Also, how legal is using a script like this? I'm especially interested in doing something like this for geocoding, but in their terms and services it says (among other things): No Automated Querying You may not send automated queries of any sort to Google's system without express permission in advance from Google. Note that "sending automated queries" includes, among other things: a.. using any software which sends queries to Google to determine how a website or webpage "ranks" on Google for various queries; b.. "meta-searching" Google; and c.. performing "offline" searches on Google. Now, I know this isn't doing anything with webpage ranks, meta-searching, etc.. but it is still an automated query. Was just curious if there were any legal implications to doing this kind of thing?. Thanks! -Jeff ----- Original Message ----- From: Andy Canfield To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tuesday, May 03, 2005 1:09 PM Subject: [UMN_MAPSERVER-USERS] Using Google Maps To all, I have created an example of how to use Google Maps in your own web pages for routing, geocoding, directions etc. I have a sample web page and all the code is within that page. I'm sure once folks see what I'm doing they will be able to add it to their own Mapserver pages fairly easily. I am going to try and add the page to this e-mail as a .zip file. If my gmail strips it out please feel free to e-mail me and I will send you a copy of the zip file from another account. The source will show you how to feed an address to Google Maps and get back the Lat, Lon of that address. It will also show how to feed Google Maps a from and to route request and get back the directions and the polyline coordinates of the route. The source code is intended as example only and I leave it up to you to how you want to add that data to your Mapserver implementations. Google Maps does have restrictions to using their API so you must abide by them if you decide to implement this example. If there are any errors in the source please let me know so I can fix them. So far I have only tested this with Mozilla and IE6. Thank you, Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Thu May 5 07:13:36 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 5 May 2005 10:13:36 -0400 Subject: OGR connection for LINUX In-Reply-To: <20050505113947.51122.qmail@web25706.mail.ukl.yahoo.com> Message-ID: On 5/5/05, jo?ffffffffffe3o Antunes wrote: > Thank you Frank for your kind help. > > I still have some issues though.. > > I don't understand which syntax I should use.. I am trying something like > > > CONNECTIONTYPE OGR > CONNECTION "C:\Programmi\Apache > Group\Apache\htdocs\abruzzo\maps\data\comuni_abruzzo_gb.shp" > DATA "SELECT * FROM comuni_abruzzo_gb LEFT JOIN > 'MYGIS:database=zzzz_abruzzo, tablename=zzz, user=rt, password=rt, > port=3306' ON comuni_abruzzo_gb.Id = zzz.ID" Joao, Yikes, I completely missed the join in your select. First, is your OGR built with MySQL support? This isn't all that common. Second, the direct MySQL support is done using: MYSQL:database=zzzz_abruzzo,tablename=zzz,user=rt,password=rt,port=3306 (not MYGIS). Also, I suggest removing the space. Phase 1 of constructing such a query would be to try accessing the MySQL database externally with the ogrinfo commandline program. eg. ogrinfo -ro -al -so 'MYSQL:database=zzzz_abruzzo,tablename=zzz,user=rt,password=rt,port=3306' If you don't get a list of tables doing this, then you are likely lacking the driver. You can check for the driver using "ogrinfo --formats". Next, try your full query with ogrinfo and see if it works. eg. ogrinfo -ro "C:\Programmi\Apache\Group\Apache\htdocs\abruzzo\maps\data\comuni_abruzzo_gb.shp" -sql "SELECT * FROM comuni_abruzzo_gb LEFT JOIN MYSQL:database=zzzz_abruzzo, tablename=zzz, user=rt, password=rt, port=3306' ON comuni_abruzzo_gb.Id = zzz.ID" If that works, then transfer the query back into your map. PS. I just read the driver help for the MySQL OGR driver, and I see it said to prefix the datasource name with MYGIS (instead of MYSQL). Sorry about that, it was an error. I have corrected it now. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From cdaily at GMAIL.COM Thu May 5 07:25:18 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 5 May 2005 09:25:18 -0500 Subject: Using Google Maps In-Reply-To: <006e01c55173$05091f60$1bf2fbd0@solo> Message-ID: When that one guy did the craigslist housing google maps overlay (http://paulrademacher.com/housing/), the Google blog gave him some high praises. I haven't seen any efforts at shutting down his project even though he's pulling their map data. As with all such licenses and terms, I think it's basically there in case people start to abuse the service. Might be worth shooting an email to Google to inquire. -Camden On 5/5/05, Jeff Portwine wrote: > > When I tried it, I got > Error: Permission denied (line 14, Char 2) if I used IE6, > and if I used Firefox I got: > Error: uncaught exception: A script from "http://..." was denied > UniversalBrowserRead privileges. > > Tried looking at the code, but my javascript skills need some work :) > > Also, how legal is using a script like this? I'm especially interested in > doing something like this for geocoding, but in their terms and services it > says (among other things): > > No Automated Querying > > You may not send automated queries of any sort to Google's system without > express permission in advance from Google. Note that "sending automated > queries" includes, among other things: > > using any software which sends queries to Google to determine how a website > or webpage "ranks" on Google for various queries; > "meta-searching" Google; and > performing "offline" searches on Google. > Now, I know this isn't doing anything with webpage ranks, meta-searching, > etc.. but it is still an automated query. Was just curious if there were > any legal implications to doing this kind of thing?. > > Thanks! > > -Jeff > > > > ----- Original Message ----- > From: Andy Canfield > To: MAPSERVER-USERS at LISTS.UMN.EDU > Sent: Tuesday, May 03, 2005 1:09 PM > Subject: [UMN_MAPSERVER-USERS] Using Google Maps > > To all, > I have created an example of how to use Google Maps in your own web > pages for routing, geocoding, directions etc. I have a sample web page and > all the code is within that page. I'm sure once folks see what I'm doing > they will be able to add it to their own Mapserver pages fairly easily. I am > going to try and add the page to this e-mail as a .zip file. If my gmail > strips it out please feel free to e-mail me and I will send you a copy of > the zip file from another account. The source will show you how to feed an > address to Google Maps and get back the Lat, Lon of that address. It will > also show how to feed Google Maps a from and to route request and get back > the directions and the polyline coordinates of the route. The source code is > intended as example only and I leave it up to you to how you want to add > that data to your Mapserver implementations. Google Maps does have > restrictions to using their API so you must abide by them if you decide to > implement this example. If there are any errors in the source please let me > know so I can fix them. So far I have only tested this with Mozilla and IE6. > Thank you, > Andy > > From artur.skalski at ACXIOM.COM Thu May 5 07:58:04 2005 From: artur.skalski at ACXIOM.COM (Artur Skalski) Date: Thu, 5 May 2005 09:58:04 -0500 Subject: query by dynamic features Message-ID: Hi list Has someone tryed to do this: to query a polygon layer with dynamicaly created features, not shapes from other shapefile. Let's say that a user draws few points on a map by clicing on it, and those points are dynamicaly created features of some layer, can I do the query based on those features? is it possible using php/mapscirpt? Many thanks for any tip! regards artur From cdaily at GMAIL.COM Thu May 5 08:14:07 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 5 May 2005 10:14:07 -0500 Subject: query by dynamic features In-Reply-To: Message-ID: It's certainly possible, but there is a known (and fixed) bug regarding it. Just search the archives for my name and 'querybypoint' and you'll come across some threads related to it. -Camden Daily Prudential Preferred Properties http://www.prupref.com On 5/5/05, Artur Skalski wrote: > Hi list > > Has someone tryed to do this: to query a polygon layer with dynamicaly > created features, not shapes from other shapefile. > Let's say that a user draws few points on a map by clicing on it, and those > points are dynamicaly created features of some layer, can I do the query > based on those features? is it possible using php/mapscirpt? > > Many thanks for any tip! > > regards > > artur > From stigmata_blackangel at YAHOO.COM Thu May 5 08:22:30 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Thu, 5 May 2005 08:22:30 -0700 Subject: compiled ECW packages? Message-ID: Hi there. I'm glad to say that we just got permission from ER Mapper to include ECW support in HostGIS Linux distributions. Isn't that nice of them? I was wondering if anyone has binary packages of the ECW SDK for Linux 2.4, which would save me a few hours. Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html From jalfarid at GMAIL.COM Thu May 5 08:30:07 2005 From: jalfarid at GMAIL.COM (Farid Vakilzadeh) Date: Thu, 5 May 2005 11:30:07 -0400 Subject: Pixel's information value of raster tiff. Message-ID: Dear all I am using several DEM Tiff files and displaying them by using TILEINDEX in my map file.My problem is that I can get the information of a pixel in DEM raster file except its elevation. Each pixel can be queried and I could get the coordinates of pixels by using variables [mapx],[mapy] in my template file. Also each pixel in DEM file has an elevation value that I don't know how I can get it or by using which variable . I'll appreciate if any one can help me. Farid From fwarmerdam at GMAIL.COM Thu May 5 09:09:45 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 5 May 2005 12:09:45 -0400 Subject: Pixel's information value of raster tiff. In-Reply-To: Message-ID: On 5/5/05, Farid Vakilzadeh wrote: > Dear all > > I am using several DEM Tiff files and displaying them by using > TILEINDEX in my map file.My problem is that I can get the information > of a pixel in DEM raster file except its elevation. Each pixel can be > queried and I could get the coordinates of pixels by using variables > [mapx],[mapy] in my template file. Also each pixel in DEM file has an > elevation value that I don't know how I can get it or by using which > variable . I'll appreciate if any one can help me. Farid, I don't think that [mapx] and [mapy] are part of the query mechanism itself in mapserver. You might want to review the wiki page on the Raster Query mechanism for an idea how to get the underlying raster values back from a DEM. http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RasterQuery Some of it won't make sense unless you are familiar with the general query mechanism in MapServer, so you might want to read up on that too. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From woodbri at SWOODBRIDGE.COM Thu May 5 10:21:51 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 5 May 2005 13:21:51 -0400 Subject: Help: Perl/Mapscript Bug? Message-ID: Hi all, I have run into an interesting but NASTY problem with Perl/Mapscript running in a fcgi process on Linux. Does anyone have any ideas? Is this a bug that has been fixed in a later release? Particulars: Debian Woody and Mapserver 4.01 - yes it is old, but it is a production system and we are concerned about the performance issues are in the later releases. The problem is that this script is running as an apache fcgi process and it is consuming all the system resources. An lsof shows that the shapefiles are not getting closed after each hit. We have tried to close the layer and undef the mapObj, but it does not fix the problem. It seems mapscript is not closing the file handles!!! We are going to try and test this under 4.4.1 and 4.4.2 and see what happens Any ideas? -Steve W. the Perl code is like: sub query { my $latitude = shift; my $longitude = shift; ## create new mapscript objec using appropriate mapfile my $map = new mapscript::mapObj($mapfile); return error("Can not open Mapfile: $mapfile") if not $map; ## get streets layer my $layer = $map->getLayerByName('data'); return error("Can not open Layer: data") if not $layer; $layer->{status} = $mapscript::MS_ON; ## open the layer or the query will fail ## WHY DOES THIS NEED TO BE DONE HERE! $layer->open(); ## build point obj using lat/lon my $point = new mapscript::pointObj(); $point->{y} = $latitude; $point->{x} = $longitude; ## now query the layer object using lat/longs $layer->queryByPoint($map, $point, $mapscript::MS_SINGLE, -1.0); ## reopen layer to get results, ## you can't close it or it will lose the query info $layer->open(); my $res = $layer->getResult(0); ## get shape obj my $shp = new mapscript::shapeObj($layer->{type}); $layer->getShape($shp, $res->{tileindex}, $res->{shapeindex}); my $data; my $polyline = get_shp_xy($shp); ## do stuff with polyline put results into $data ## we tried $layer->close() and undef $map here ## but it did not make a difference return($data); } From sgillies at FRII.COM Thu May 5 10:42:38 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 5 May 2005 11:42:38 -0600 Subject: Help: Perl/Mapscript Bug? In-Reply-To: Message-ID: On May 5, 2005, at 11:21 AM, Stephen Woodbridge wrote: > Hi all, > > I have run into an interesting but NASTY problem with Perl/Mapscript > running in a fcgi process on Linux. > > Does anyone have any ideas? > Is this a bug that has been fixed in a later release? > > Particulars: > > Debian Woody and Mapserver 4.01 - yes it is old, but it is a production > system and we are concerned about the performance issues are in the > later releases. > > The problem is that this script is running as an apache fcgi process > and > it is consuming all the system resources. An lsof shows that the > shapefiles are not getting closed after each hit. We have tried to > close > the layer and undef the mapObj, but it does not fix the problem. It > seems mapscript is not closing the file handles!!! > > We are going to try and test this under 4.4.1 and 4.4.2 and see what > happens > > Any ideas? > -Steve W. > Steve, I don't even keep the 4.0 source around anymore, so I'm looking at 4.2. I don't think maplayer.c had too many changes in between. I suspect your problem is with the multiple calls to layerObj::open(). On the second call, a new shapefileObj will be allocated and the layer's info pointer will be pointed to it, but it doesn't look like the pre-existing one is ever freed. My comments continue below ... > the Perl code is like: > > sub query { > my $latitude = shift; > my $longitude = shift; > > ## create new mapscript objec using appropriate mapfile > my $map = new mapscript::mapObj($mapfile); > return error("Can not open Mapfile: $mapfile") if not $map; > > ## get streets layer > my $layer = $map->getLayerByName('data'); > return error("Can not open Layer: data") if not $layer; > $layer->{status} = $mapscript::MS_ON; > > ## open the layer or the query will fail > ## WHY DOES THIS NEED TO BE DONE HERE! > $layer->open(); > This is not necessary, and is probably the source of the leak. I've never had problems querying a closed layer. > ## build point obj using lat/lon > my $point = new mapscript::pointObj(); > $point->{y} = $latitude; > $point->{x} = $longitude; > > ## now query the layer object using lat/longs > $layer->queryByPoint($map, $point, $mapscript::MS_SINGLE, -1.0); > > ## reopen layer to get results, > ## you can't close it or it will lose the query info > $layer->open(); > my $res = $layer->getResult(0); > Right. Open the layer only to get the results. > ## get shape obj > my $shp = new mapscript::shapeObj($layer->{type}); > $layer->getShape($shp, $res->{tileindex}, $res->{shapeindex}); > > my $data; > my $polyline = get_shp_xy($shp); > > ## do stuff with polyline put results into $data > > ## we tried $layer->close() and undef $map here > ## but it did not make a difference > > return($data); > } > > Hope that helps, -- Sean Gillies sgillies at frii dot com http://zcologia.com From pramsey at REFRACTIONS.NET Thu May 5 10:58:03 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Thu, 5 May 2005 10:58:03 -0700 Subject: Using Mapserver to generate google like tiles In-Reply-To: <42784881.3060908@swoodbridge.com> Message-ID: I think there is a more elegant solution to the "google maps speedup" problem: - The reason google maps is "fast" is because (a) they restrict themselves to fixes scales in their UI and (b) they load in the map in parallel chunks of 128x128 size. So the answer: - Write a google maps style client that forces a limited number of fixed scales, and always generates tiled WMS requests using the same coordinates for each tile. - Place a caching proxy between your Mapserver and the world, and tell your client to always make requests to the caching proxy. Most of the work is doing the fancy google maps style javascript client. Paul Stephen Woodbridge wrote: > Hi, > > Is anyone out there writing a Perl or PHP/mapscript utility to generate > google like tiles using mapserver? What are the problems and issues you > have run into? What is the status of your work? > > On the surface it seems pretty straight forward. Just iterate a bounding > box for your tile size over your map extents and save the tiles based on > row/column index as its name. Do this for each zoom scale you need. > > You need to deal with labels across tile boundaries. > Should this be done using a projection? Which? > Projections probably make this more complicated? How? > > I was thinking that generating BIG image files and then generating tiles > from the raster images might be better, because it will reduce the > number of tile edge artifacts. I was think that Perl and the ImageMagic > might work well for this? > > Any thoughts? > > -Steve W. From fwarmerdam at GMAIL.COM Thu May 5 11:07:04 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 5 May 2005 14:07:04 -0400 Subject: Using Mapserver to generate google like tiles In-Reply-To: <427A5EAB.8040608@refractions.net> Message-ID: On 5/5/05, Paul Ramsey wrote: > I think there is a more elegant solution to the "google maps speedup" > problem: > > - The reason google maps is "fast" is because (a) they restrict > themselves to fixes scales in their UI and (b) they load in the map in > parallel chunks of 128x128 size. > > So the answer: > > - Write a google maps style client that forces a limited number of fixed > scales, and always generates tiled WMS requests using the same > coordinates for each tile. > - Place a caching proxy between your Mapserver and the world, and tell > your client to always make requests to the caching proxy. > > Most of the work is doing the fancy google maps style javascript client. Paul, I like the idea of just using a conventional http proxy caching system. However, I don't think your approach fully addresses the concern of continuity between tiles. Due to the label placement logic of MapServer it is very hard to be sure that multiple "tile" requests by WMS will have compatible label placement which results in chopped off labels, and other anomolies from a straightforward use of mapserver for generating the tiles. I think the idea of generating a much bigger region and either just cutting out the center, or cutting up bigger regions would give much better continuity between tiles. Forgive me if I am stating the obvious. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From woodbri at SWOODBRIDGE.COM Thu May 5 11:55:58 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 5 May 2005 14:55:58 -0400 Subject: Using Mapserver to generate google like tiles In-Reply-To: <931f8ea9050505110730cb7d60@mail.gmail.com> Message-ID: Frank Warmerdam wrote: > On 5/5/05, Paul Ramsey wrote: > >>I think there is a more elegant solution to the "google maps speedup" >>problem: >> >>- The reason google maps is "fast" is because (a) they restrict >>themselves to fixes scales in their UI and (b) they load in the map in >>parallel chunks of 128x128 size. >> >>So the answer: >> >>- Write a google maps style client that forces a limited number of fixed >>scales, and always generates tiled WMS requests using the same >>coordinates for each tile. >>- Place a caching proxy between your Mapserver and the world, and tell >>your client to always make requests to the caching proxy. >> >>Most of the work is doing the fancy google maps style javascript client. > > > Paul, > > I like the idea of just using a conventional http proxy caching system. > However, I don't think your approach fully addresses the concern of > continuity between tiles. Due to the label placement logic of MapServer > it is very hard to be sure that multiple "tile" requests by WMS will have > compatible label placement which results in chopped off labels, and > other anomolies from a straightforward use of mapserver for generating > the tiles. I think the idea of generating a much bigger region and either > just cutting out the center, or cutting up bigger regions would give much > better continuity between tiles. > > Forgive me if I am stating the obvious. Frank, this is exactly my concern. I know for a fact that Google has labels split across tile boundaries. I also restrict my browser client to fixed scales. I think what I want to do is create a Perl/mapscript utility that generates large tiles, like some multiple of the unit tile size and then pass it to Image::Magick and chop it into until tiles. And also detect and eliminate all tiles the are ONLY water. So if my tile is 128x128 then I might want to generate an image of 2048x2048 and chop it into 16x16=256 tiles of 128x128 pixels. And if all label are set to PARTIAL FALSE then the 64 outer edges will not have labels crossing them so it should not be noticeable. My problem(s) with moving forward are: 1) setting up the math and tile names - trivial for DD, needs to be done 2) should I use a projection like equirectangular 3) working in the projection confuses the map for me Any thoughts on this? -Steve Some stats from a www.blogger.com on this are An image of the whole of mainland USA leeched from google maps zoom level 11. 448 tiles leeched and stitched together via perl. the (0,0) tile is located at about the centre of Kansas. Each zoom level increases the resolution by 2 (and hence the number of tiles goes up by 4). Zoom - Number of tiles for mainland USA 13 - 28 12 - 112 11 - 488 8 - 28672 1 - 469762048 (at 1 tile per second, this will take about 14 years to leech off the site. The final image, if I had the time to leech it, would have a resolution of about 7million * 4million pixels) From superbla3000 at GMX.NET Thu May 5 12:39:07 2005 From: superbla3000 at GMX.NET (joerg p) Date: Thu, 5 May 2005 21:39:07 +0200 Subject: mrSid gdal problem Message-ID: hello, I compiled gdal with mrSid support. But now I got the following error: MrSIDRasterBand::IRasterIO(): Failed to load image. scene magni: Unable to access file. GDALRasterIO() failed: drawGDAL() Where should I start to debug? best regards josp From fwarmerdam at GMAIL.COM Thu May 5 13:11:43 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 5 May 2005 16:11:43 -0400 Subject: mrSid gdal problem In-Reply-To: Message-ID: On 5/5/05, joerg p wrote: > hello, > > I compiled gdal with mrSid support. But now I got the following error: > MrSIDRasterBand::IRasterIO(): Failed to load image. scene magni: Unable > to access file. GDALRasterIO() failed: drawGDAL() > > Where should I start to debug? Joerg, This problem was recently identified by Steve Lime and I have fixed it in the GDAL code base. You could grab a recent nightly CVS snapshot of GDAL and rebuild from that. Sorry for the bug ... I wrote the code in one place such that it assumed there was no limit to the number of overviews available. I would add there is another bug also recently fixed in the MrSID code. This bug cause the image to be read at full resolution if the requested window size was larger than 2000000000 (2 gigapixels) due to an unfortunate choice on my part to mulitple xsize * ysize as 32bit integers. So those wanting to do heavy duty work with GDAL on MrSIDs are encouraged to work with the latest code. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From erik1969 at MAILHAVEN.COM Thu May 5 14:27:57 2005 From: erik1969 at MAILHAVEN.COM (erik) Date: Fri, 6 May 2005 04:27:57 +0700 Subject: Oracle and PHP/Mapscript support in Mapserver Message-ID: Hi, Does anyone know where to find a Mapserver Windows binary with Oracle AND MapScript/PHP support? The ms4w package from DM Solutions does not come with Oracle support, except through OGR. There is a windows binary with Oracle support on the Mapserver download pages, but it doesn't have PHP/Mapscript support, aarrgh.. Also, the Hobu's kitchen sink MapServer 4.4.2 only contains Mapscript for Java or Python it seems. Is it true that in order to use the Query functionality in Mapserver I must access Oracle via OGR? What is the performance when using OGR's compared to the "native" link? regards, erik -------------- next part -------------- An HTML attachment was scrubbed... URL: From my_massoo at LYCOS.COM Thu May 5 20:45:45 2005 From: my_massoo at LYCOS.COM (prashant n) Date: Thu, 5 May 2005 19:45:45 -0800 Subject: mapserver error and mysql info Message-ID: hi map users, i have followed the instructions to install the mapserver and did succefully that. if i type ./mapserv now, it throws an error like this.... ./mapserv: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory how to solve this? also I would like to convert the ArcIMS shape files into mysql. i know that one can shp2mysql.pl command but what i would like to do is to create the maps / convert the maps created in ArcIMS suite and import that into mysql. how should i do that? thanks & regards prashant -- _______________________________________________ NEW! Lycos Dating Search. The only place to search multiple dating sites at once. http://datingsearch.lycos.com From neuchi at TCI-COM.BIZ Thu May 5 21:07:21 2005 From: neuchi at TCI-COM.BIZ (Akio Neuchi) Date: Fri, 6 May 2005 13:07:21 +0900 Subject: GIF Raster Image Process Problem {Scanned} In-Reply-To: Message-ID: Dear Zoltan? Sorry for my late reply. We were in long holidays here in Japan. Thank you for your recommendations. In fact, by adjusting World file, the Raster/Vector Images finally so-so well superimposed, except the coordinates of these images are a bit dislocated, depend on the 1st and 4th pixel values on the World file. Though I am adjusting manually those numbers, what is the right formula to get the X and Y pixel dimensions? Thanks again for your help. Akio 0.000038 0.0000000000 0.0000000000 -0.000038 139.738114 35.691990000000004 MAP #file NAME rastest STATUS ON SIZE 600 700 EXTENT 139.5 35.5 140 36 UNITS dd SHAPEPATH "data" FONTSET "./fonts/fonts.lst" IMAGECOLOR 225 240 200 IMAGETYPE GIF # Projection definition, set-upped by PROJ.4 parameters PROJECTION # "init=epsg:26915" "proj=latlong" END # Web interface definition (including WMS enabling metadata) WEB EMPTY "/gistest/empty.html" HEADER decide_route_header.html TEMPLATE decide_route.html FOOTER decide_route_footer.html MINSCALE 0 MAXSCALE 300000000 IMAGEPATH /var/opt/SUNWappserver7/domains/domain1/server1/docroot/gistest/tmp IMAGEURL /gistest/tmp LOG /var/opt/SUNWappserver7/domains/domain1/server1/docroot/gistest/rastest.log # TEMPLATE "decide_route.html" METADATA WMS_TITLE "MapDisplay Demo" WMS_ABSTRACT "Created by AN" WMS_ACCESSCONSTRAINTS none END END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END OUTPUTFORMAT NAME gif MIMETYPE "image/gif" DRIVER "GD/GIF" EXTENSION "gif" # IMAGEMODE RGB IMAGEMODE PC256 TRANSPARENT FALSE # TRANSPARENT TRUE # FORMATOPTION "INTERLACE=OFF" END ### RASTER Layer LAYER NAME "RAS365313" GROUP "B_RASTER" TYPE RASTER DATA "MS12000DEF365313.gif" # STATUS ON STATUS DEFAULT TRANSPARENCY 100 # OFFSITE 125 135 148 PROJECTION "proj=latlong" # "init=epsg:26915" END PROCESSING "LOAD_WHOLE_IMAGE=TRUE" END # here starts Vector Layers # background - Parks LAYER NAME "BARA_PARK_AREA" GROUP "BARA_PARK" TILEINDEX "v_bak_ara_park" STATUS ON MAXSCALE 200000 TYPE POLYGON PROJECTION # "init=epsg:26915" "proj=latlong" END CLASS BACKGROUNDCOLOR 0 220 0 COLOR 150 200 100 # COLOR 154 205 50 END END # background - Sea surface LAYER NAME "BARA_SEA" TILEINDEX "v_bak_ara_sea" STATUS default TYPE POLYGON PROJECTION # "init=epsg:26915" "proj=latlong" END CLASS BACKGROUNDCOLOR 0 255 255 COLOR 100 149 237 END END # background - Rivers LAYER NAME "BLIN_RIVER" TILEINDEX "v_bak_lin_river" STATUS default MAXSCALE 200000 TYPE LINE PROJECTION # "init=epsg:26915" "proj=latlong" END CLASS BACKGROUNDCOLOR 0 255 255 COLOR 100 149 237 END END END # Map File -----Original Message----- From: Siki Zoltan [mailto:siki at agt.bme.hu] Sent: Friday, April 29, 2005 5:31 PM To: Akio Neuchi Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] GIF Raster Image Process Problem {Scanned} Dear Akio, You should define EXTENT, UNITS and SHAPEPATH at separate lines. Do you have world file to your image? Check the extents. Try STATUS DEFAULT. Bye Zoltan From sweykam at TELELINE.ES Fri May 6 00:23:10 2005 From: sweykam at TELELINE.ES (Stefanie Weykam) Date: Fri, 6 May 2005 09:23:10 +0200 Subject: MyGIS and WFS Message-ID: Hi list members, Now that we have our prototype up and running, it's time to make some considerations for the future data incorporations. We are working with MapServer4.4 and MapScript on Windows2000. For now, we have all the spatial data (and all stable attributes) stored in shapefiles and all the survey data in MySQL. Query the data and render maps according to query results will be very important, as well as sharing data with others. I was wondering if we should migrate everything to MySQL as spatial database (tell me somebody that it is easy to compile MapServer with MyGIS support!?). How does this migration affect our WMS/WFS server capabilities? (makes it easier or more complicated?) Are the attribute data ONLY queriable if we have the spatial data in a spatial database? How would you render a polygon layer, having let's say 6 classes representing quantitative data on a colour ramp? I guess, one would first determine MIN and MAX values in a field, then the difference between MAX and MIN, divide this value by 6, create 6 class objects and 6 symbol objects, use 6 class expressions according to the previously determined value ranges and that's it (?). Can such a map be requested by a client? Another problem: The users would like to stick to Access as a database familiar to them. I know that it is possible to transfer locally stored Access tables to MySQL, then set up links in the Access database that point to the tables managed by the MySQL database server, but I have not tried it out. Is this an option or should we rather write an export/import routine? I'm afraid, actualisations will be quite frequent. Any comments would be appreciated, Stefanie Weykam From johan.e.hallgren at WMDATA.SE Fri May 6 00:57:07 2005 From: johan.e.hallgren at WMDATA.SE (Johan Hallgren) Date: Fri, 6 May 2005 02:57:07 -0500 Subject: Problem using Gdal-1.2.6 Message-ID: I have installed MapServer 4.6.0-beta1 and now I will add tiff as supported input format. I downloaded Gdal-1.2.6 and compiled it (the dll and lib was created). I uncommented the GDAL options in nmake.opt GDAL=-DUSE_GDAL GDAL_DIR=C:/SE/GMS/ms/gdal-1.2.6 Then I buildt the mapserver with: nmake /f makefile.vc Then I what supported format I had and found out the following: C:\SE\GMS\ms>mapserv -v MapServer version 4.6.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=FREETYPE INPUT=SHAPEFILE DEBUG=MSDEBUG Checking the formats in Gdal gives: C:\SE\GMS\ms\gdal-1.2.6\apps>gdalinfo --formats Supported Formats: VRT (rw+): Virtual Raster GTiff (rw+): GeoTIFF NITF (rw+): National Imagery Transmission Format HFA (rw+): Erdas Imagine Images (.img) SAR_CEOS (ro): CEOS SAR Image CEOS (ro): CEOS Image ELAS (rw+): ELAS AIG (ro): Arc/Info Binary Grid AAIGrid (rw): Arc/Info ASCII Grid SDTS (ro): SDTS Raster DTED (rw): DTED Elevation Raster PNG (rw): Portable Network Graphics JPEG (rw): JPEG JFIF MEM (rw+): In Memory Raster JDEM (ro): Japanese DEM (.mem) GIF (rw): Graphics Interchange Format (.gif) ESAT (ro): Envisat Image Format BSB (ro): Maptech BSB Nautical Charts XPM (rw): X11 PixMap Format BMP (rw+): MS Windows Device Independent Bitmap AirSAR (ro): AirSAR Polarimetric Image RS2 (ro): RadarSat 2 XML Product PCIDSK (rw+): PCIDSK Database File ILWIS (rw+): ILWIS Raster Map PNM (rw+): Portable Pixmap Format (netpbm) DOQ1 (ro): USGS DOQ (Old Style) DOQ2 (ro): USGS DOQ (New Style) ENVI (rw+): ENVI .hdr Labelled EHdr (rw+): ESRI .hdr Labelled PAux (rw+): PCI .aux Labelled MFF (rw+): Atlantis MFF Raster MFF2 (rw+): Atlantis MFF2 (HKV) Raster FujiBAS (ro): Fuji BAS Scanner Image GSC (ro): GSC Geogrid FAST (ro): EOSAT FAST Format BT (rw+): VTP .bt (Binary Terrain) 1.3 Format LAN (ro): Erdas .LAN/.GIS CPG (ro): Convair PolGASP IDA (rw+): Image Data and Analysis NDF (ro): NLAPS Data Format L1B (ro): NOAA Polar Orbiter Level 1b Data Set FIT (rw): FIT Image USGSDEM (rw): USGS Optional ASCII DEM (and CDED) GXF (ro): GeoSoft Grid Exchange Format It seams that it makes no differense with my GDAL options. I'm using Microsoft Visual C++ .NET Ver 7.1 on Windows XP Any ideas? From siki at AGT.BME.HU Fri May 6 04:18:19 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 6 May 2005 10:18:19 -0100 Subject: mapserver error and mysql info {Scanned} In-Reply-To: <20050506034545.2EE30CA077@ws7-4.us4.outblaze.com> Message-ID: Hi, On Thu, 5 May 2005, prashant n wrote: > hi map users, > > i have followed the instructions to install the mapserver and did succefully that. > > if i type ./mapserv now, it throws an error like this.... > > ./mapserv: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory > > how to solve this? Check the /etc/ls.so.conf file, probably the directory not listed there where libgd is stored. Append the directory of libgd to the list in ld.so.conf and run ldconfig as root. Zoltan From siki at AGT.BME.HU Fri May 6 04:27:05 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 6 May 2005 10:27:05 -0100 Subject: GIF Raster Image Process Problem {Scanned} In-Reply-To: Message-ID: Dear Akio, The formula looks like: X = Ax + By + C and Y = Dx + Ey + F (Affine transformation) The order of the parameters in the world file is: A D B E C F The process to find out the values of the parameters is called georeferencing. There are a loft of programs what can solve the task specifying point on the raster and giving the real co-ordinates for them. Unfortunatelly I use commercial software for this purpose, but I think GRASS can do it. Usually more then the minimal 3 points are used with a least squares estimation. I hope it helps you Zoltan On Fri, 6 May 2005, Akio Neuchi wrote: > Dear Zoltan??? > > Sorry for my late reply. > We were in long holidays here in Japan. > Thank you for your recommendations. > In fact, by adjusting World file, the Raster/Vector Images finally so-so well superimposed, > except the coordinates of these images are a bit dislocated, depend on the 1st and 4th pixel values on the World file. > Though I am adjusting manually those numbers, what is the right formula to get the X and Y pixel dimensions? > Thanks again for your help. > > Akio > > > 0.000038 > 0.0000000000 > 0.0000000000 > -0.000038 > 139.738114 > 35.691990000000004 > > MAP #file > NAME rastest > STATUS ON > SIZE 600 700 > EXTENT 139.5 35.5 140 36 > UNITS dd > SHAPEPATH "data" > FONTSET "./fonts/fonts.lst" > IMAGECOLOR 225 240 200 > IMAGETYPE GIF > > # Projection definition, set-upped by PROJ.4 parameters > PROJECTION > # "init=epsg:26915" > "proj=latlong" > END > > # Web interface definition (including WMS enabling metadata) > WEB > EMPTY "/gistest/empty.html" > HEADER decide_route_header.html > TEMPLATE decide_route.html > FOOTER decide_route_footer.html > MINSCALE 0 > MAXSCALE 300000000 > IMAGEPATH /var/opt/SUNWappserver7/domains/domain1/server1/docroot/gistest/tmp > IMAGEURL /gistest/tmp > LOG /var/opt/SUNWappserver7/domains/domain1/server1/docroot/gistest/rastest.log > # TEMPLATE "decide_route.html" > METADATA > WMS_TITLE "MapDisplay Demo" > WMS_ABSTRACT "Created by AN" > WMS_ACCESSCONSTRAINTS none > END > END > > QUERYMAP > SIZE 200 200 > STATUS ON > STYLE HILITE > COLOR 255 0 0 > END > > OUTPUTFORMAT > NAME gif > MIMETYPE "image/gif" > DRIVER "GD/GIF" > EXTENSION "gif" > # IMAGEMODE RGB > IMAGEMODE PC256 > TRANSPARENT FALSE > # TRANSPARENT TRUE > # FORMATOPTION "INTERLACE=OFF" > END > > ### RASTER Layer > LAYER > NAME "RAS365313" > GROUP "B_RASTER" > TYPE RASTER > DATA "MS12000DEF365313.gif" > # STATUS ON > STATUS DEFAULT > TRANSPARENCY 100 > # OFFSITE 125 135 148 > PROJECTION > "proj=latlong" > # "init=epsg:26915" > END > PROCESSING "LOAD_WHOLE_IMAGE=TRUE" > END > > # here starts Vector Layers > # background - Parks > LAYER > NAME "BARA_PARK_AREA" > GROUP "BARA_PARK" > TILEINDEX "v_bak_ara_park" > STATUS ON > MAXSCALE 200000 > TYPE POLYGON > PROJECTION > # "init=epsg:26915" > "proj=latlong" > END > CLASS > BACKGROUNDCOLOR 0 220 0 > COLOR 150 200 100 > # COLOR 154 205 50 > END > END > > # background - Sea surface > LAYER > NAME "BARA_SEA" > TILEINDEX "v_bak_ara_sea" > STATUS default > TYPE POLYGON > PROJECTION > # "init=epsg:26915" > "proj=latlong" > END > CLASS > BACKGROUNDCOLOR 0 255 255 > COLOR 100 149 237 > END > END > > # background - Rivers > LAYER > NAME "BLIN_RIVER" > TILEINDEX "v_bak_lin_river" > STATUS default > MAXSCALE 200000 > TYPE LINE > PROJECTION > # "init=epsg:26915" > "proj=latlong" > END > CLASS > BACKGROUNDCOLOR 0 255 255 > COLOR 100 149 237 > END > END > END # Map File > > -----Original Message----- > From: Siki Zoltan [mailto:siki at agt.bme.hu] > Sent: Friday, April 29, 2005 5:31 PM > To: Akio Neuchi > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] GIF Raster Image Process Problem {Scanned} > > > Dear Akio, > > You should define EXTENT, UNITS and SHAPEPATH at separate lines. > Do you have world file to your image? Check the extents. > Try STATUS DEFAULT. > > Bye Zoltan > > > From superbla3000 at GMX.NET Fri May 6 02:31:30 2005 From: superbla3000 at GMX.NET (joerg p) Date: Fri, 6 May 2005 11:31:30 +0200 Subject: mrSid gdal problem In-Reply-To: <931f8ea905050513114327469c@mail.gmail.com> Message-ID: Frank Warmerdam wrote: > On 5/5/05, joerg p wrote: > >>hello, >> >>I compiled gdal with mrSid support. But now I got the following error: >>MrSIDRasterBand::IRasterIO(): Failed to load image. scene magni: Unable >>to access file. GDALRasterIO() failed: drawGDAL() >> >>Where should I start to debug? > > > Joerg, > > This problem was recently identified by Steve Lime and I have fixed > it in the GDAL code base. You could grab a recent nightly CVS > snapshot of GDAL and rebuild from that. > > Sorry for the bug ... I wrote the code in one place such that it assumed > there was no limit to the number of overviews available. > > I would add there is another bug also recently fixed in the MrSID code. > This bug cause the image to be read at full resolution if the requested > window size was larger than 2000000000 (2 gigapixels) due to an > unfortunate choice on my part to mulitple xsize * ysize as 32bit integers. > > So those wanting to do heavy duty work with GDAL on MrSIDs are > encouraged to work with the latest code. > > Best regards, hello Frank, i took the nightly CVS, but now I got the following error when I run make: fitsdataset.o fitsdataset.cpp g++ -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr -I../../ogr/ogrsf_frmts -D_REENTRANT -I../../port -c fitsdataset.cpp -fPIC -DPIC -o ../o/.libs/fitsdataset.o fitsdataset.cpp:113: error: syntax error before `{' token fitsdataset.cpp:125: error: syntax error before `)' token fitsdataset.cpp:129: error: syntax error before `public' fitsdataset.cpp:138: error: syntax error before `}' token fitsdataset.cpp:146: error: syntax error before `{' token fitsdataset.cpp:153: error: destructors must be member functions fitsdataset.cpp:155: error: virtual outside class declaration fitsdataset.cpp:156: error: virtual outside class declaration fitsdataset.cpp:157: error: syntax error before `}' token fitsdataset.cpp:164: error: invalid use of undefined type `class FITSRasterBand ' fitsdataset.cpp:111: error: forward declaration of `class FITSRasterBand' fitsdataset.cpp: In constructor `FITSRasterBand::FITSRasterBand(FITSDataset*, int)': fitsdataset.cpp:166: error: invalid use of undefined type `class FITSRasterBand ' fitsdataset.cpp:111: error: forward declaration of `class FITSRasterBand' fitsdataset.cpp:167: error: invalid use of undefined type `class FITSRasterBand ' fitsdataset.cpp:111: error: forward declaration of `class FITSRasterBand' fitsdataset.cpp:168: error: `eDataType' undeclared (first use this function) fitsdataset.cpp:168: error: (Each undeclared identifier is reported only once for each function it appears in.) fitsdataset.cpp:168: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp:169: error: `nBlockXSize' undeclared (first use this function) fitsdataset.cpp:169: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp:170: error: `nBlockYSize' undeclared (first use this function) fitsdataset.cpp: At global scope: fitsdataset.cpp:177: error: invalid use of undefined type `class FITSRasterBand ' fitsdataset.cpp:111: error: forward declaration of `class FITSRasterBand' fitsdataset.cpp: In destructor `FITSRasterBand::~FITSRasterBand()': fitsdataset.cpp:178: error: `FlushCache' undeclared (first use this function) fitsdataset.cpp: At global scope: fitsdataset.cpp:186: error: invalid use of undefined type `class FITSRasterBand ' fitsdataset.cpp:111: error: forward declaration of `class FITSRasterBand' fitsdataset.cpp: In member function `CPLErr FITSRasterBand::IReadBlock(int, int, void*)': fitsdataset.cpp:189: error: `poDS' undeclared (first use this function) fitsdataset.cpp:190: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp:201: error: `nBand' undeclared (first use this function) fitsdataset.cpp:201: error: `nRasterXSize' undeclared (first use this function) fitsdataset.cpp:201: error: `nRasterYSize' undeclared (first use this function) fitsdataset.cpp:207: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp:207: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp:214: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp: At global scope: fitsdataset.cpp:231: error: invalid use of undefined type `class FITSRasterBand ' fitsdataset.cpp:111: error: forward declaration of `class FITSRasterBand' fitsdataset.cpp: In member function `CPLErr FITSRasterBand::IWriteBlock(int, int, void*)': fitsdataset.cpp:234: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp:246: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp:264: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp:265: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp: At global scope: fitsdataset.cpp:299: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp:307: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp: In destructor `FITSDataset::~FITSDataset()': fitsdataset.cpp:311: error: `eAccess' undeclared (first use this function) fitsdataset.cpp:319: error: `GetDescription' undeclared (first use this function) fitsdataset.cpp:321: error: `GetMetadata' undeclared (first use this function) fitsdataset.cpp: At global scope: fitsdataset.cpp:379: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp: In member function `CPLErr FITSDataset::Init(fitsfile*, bool) ': fitsdataset.cpp:447: error: `nBands' undeclared (first use this function) fitsdataset.cpp:503: error: `SetMetadataItem' undeclared (first use this function) fitsdataset.cpp:515: error: syntax error before `(' token fitsdataset.cpp: At global scope: fitsdataset.cpp:526: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp: In member function `GDALDataset* FITSDataset::Open(GDALOpenInfo*)': fitsdataset.cpp:552: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp:553: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp:556: error: `SetDescription' undeclared (first use this function) fitsdataset.cpp:557: error: `Init' undeclared (first use this function) fitsdataset.cpp:558: warning: possible problem detected in invocation of delete operator: fitsdataset.cpp:552: warning: `dataset' has incomplete type fitsdataset.cpp:113: warning: forward declaration of `class FITSDataset' fitsdataset.cpp:558: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined. fitsdataset.cpp:567: error: `TryLoadXML' undeclared (first use this function) fitsdataset.cpp:569: error: cannot convert `FITSDataset*' to `GDALDataset*' in return fitsdataset.cpp: At global scope: fitsdataset.cpp:583: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp: In member function `GDALDataset* FITSDataset::Create(const char*, int, int, int, GDALDataType, char**)': fitsdataset.cpp:639: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp:640: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp:641: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp:642: error: invalid use of undefined type `class FITSDataset' fitsdataset.cpp:113: error: forward declaration of `class FITSDataset' fitsdataset.cpp:643: error: `SetDescription' undeclared (first use this function) fitsdataset.cpp:646: error: `Init' undeclared (first use this function) fitsdataset.cpp:647: warning: possible problem detected in invocation of delete operator: fitsdataset.cpp:586: warning: `dataset' has incomplete type fitsdataset.cpp:113: warning: forward declaration of `class FITSDataset' fitsdataset.cpp:647: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined. fitsdataset.cpp:651: error: cannot convert `FITSDataset*' to `GDALDataset*' in return fitsdataset.cpp: In function `void GDALRegister_FITS()': fitsdataset.cpp:675: error: incomplete type `FITSDataset' does not have member `Open' fitsdataset.cpp:676: error: incomplete type `FITSDataset' does not have member `Create' fitsdataset.cpp: At top level: fitsdataset.cpp:132: warning: `GDALDataset* Open(GDALOpenInfo*)' declared `static' but never defined fitsdataset.cpp:136: warning: `GDALDataset* Create(const char*, int, int, int, GDALDataType, char**)' declared `static' but never defined make[2]: *** [../o/fitsdataset.o] Fehler 1 make[2]: Leaving directory `/home/JP/pakete/gdal/frmts/fits' make[1]: *** [fits-install-obj] Fehler 2 make[1]: Leaving directory `/home/JP/pakete/gdal/frmts' make: *** [frmts-target] Fehler 2 best regards Joerg From fsimon at UNIVALI.BR Fri May 6 04:40:59 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Fri, 6 May 2005 08:40:59 -0300 Subject: Oracle and PHP/Mapscript support in Mapserver In-Reply-To: <00ac01c551b9$4e7f1c80$0100007f@eriknb> Message-ID: Hi Erik, About the Win binaries with Oracle Spatial and PHP support I believe that Bart can help you more than I, here I only use Linux. With 4.4.x version of Mapserver you can use the query functions with native Oracle Spatial support without problems, Arnulf wrote in the list that the native support is more fast than ogr connection. Some improves for Oracle Spatial support is in the cvs version of maporacletial.c, so you can try to use the 4.4 version or 4.6-beta. Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ erik wrote: > Hi, > > Does anyone know where to find a Mapserver Windows binary with Oracle > AND MapScript/PHP support? > The ms4w package from DM Solutions does not come with Oracle support, > except through OGR. There is a windows binary with Oracle support on > the Mapserver download pages, but it doesn't have PHP/Mapscript > support, aarrgh.. Also, the Hobu's kitchen sink MapServer 4.4.2 only > contains Mapscript for Java or Python it seems. > > Is it true that in order to use the Query functionality in Mapserver I > must access Oracle via OGR? What is the performance when using OGR's > compared to the "native" link? > > regards, > erik > From gerard_b_18 at HOTMAIL.COM Fri May 6 04:48:33 2005 From: gerard_b_18 at HOTMAIL.COM (gerard barrington) Date: Fri, 6 May 2005 09:18:33 -0230 Subject: disappearing points In-Reply-To: <42784B3E.3010407@ci.stpaul.mn.us> Message-ID: Hi all, I'm having a bit of trouble with some shapefiles and was hoping someone could offer advice. I'm using mapserver 4.4 to display my point and line shapefiles. The symbol are displayed as images I have specified in a symbol file and the lines simply as black lines. If I zoom in at a close range, the points disappear. The lines remain visible but not the points. Zooming out brings them back again. The minscale and maxscale are not set so all shapes should be displayed at any zoom level. Thanks in advance, Gerard From temiz at DEPREM.GOV.TR Fri May 6 04:52:13 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Fri, 6 May 2005 14:52:13 +0300 Subject: config options Message-ID: hello if I want to compile apache and php from source code for mapserver, what should ./config options be ? regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From temiz at DEPREM.GOV.TR Fri May 6 04:55:28 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Fri, 6 May 2005 14:55:28 +0300 Subject: debian apache packages Message-ID: hello I am confused with the debian apache packages to install mapserver in debian. which apache packages should be installed ? regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From dpinte at ITAE.BE Fri May 6 05:11:21 2005 From: dpinte at ITAE.BE (Didrik Pinte) Date: Fri, 6 May 2005 14:11:21 +0200 Subject: debian apache packages In-Reply-To: <427B5B30.4000902@deprem.gov.tr> Message-ID: Le vendredi 06 mai 2005 ? 14:55 +0300, orkun a ?crit : > hello > > I am confused with the debian apache packages > to install mapserver in debian. > > which apache packages should be installed ? > > regards > > Ahmet Temiz Depending on your needs, you need to choose Apache 1 or 2, if you need Apache 2, install : apache2-mpm-prefork apache2-mpm-prefork apache2-common and it will run perfectly Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From rdmailings at DUIF.NET Fri May 6 05:42:53 2005 From: rdmailings at DUIF.NET (Richard Duivenvoorde) Date: Fri, 6 May 2005 14:42:53 +0200 Subject: ogrinfo show x y columns as strings Message-ID: Hi list, I have the following txt file that I want to use as a virtual datasource: text,x,y test,10,10 test2,11,11 Using a ODBC connection in Windows everything works fine: ogrinfo ODBC:puntenlaagdsn testpoints.txt INFO: Open of `ODBC:puntenlaagdsn' using driver `ODBC' successful. Layer name: testpoints.txt Geometry: Unknown (any) Feature Count: 2 Layer SRS WKT: (unknown) text: String (255.0) x: Integer (10.0) y: Integer (10.0) OGRFeature(testpoints.txt):0 text (String) = test x (Integer) = 10 y (Integer) = 10 OGRFeature(testpoints.txt):1 text (String) = test2 x (Integer) = 11 y (Integer) = 11 But putting everything to linux fails, because ogr(info) (with exactly the same txt file) reports the x y columns as strings, giving a featurecount of zero => no features on the map :-( ogrinfo -ro -al ODBC:@puntenlaagdsn testpoints.txt INFO: Open of `ODBC:@puntenlaagdsn' using driver `ODBC' successful. Layer name: testpoints.txt Geometry: Unknown (any) Feature Count: 0 Layer SRS WKT: (unknown) text: String (255.0) x: String (255.0) y: String (255.0) Does anybody knows what's the problem? Is it an odbc problem? Who is responsible for 'typing' the columns in the txt file? TIA Richard From gerard_b_18 at HOTMAIL.COM Fri May 6 06:03:32 2005 From: gerard_b_18 at HOTMAIL.COM (gerard barrington) Date: Fri, 6 May 2005 10:33:32 -0230 Subject: disappearing points In-Reply-To: Message-ID: Hi again, replying to my own post....fixed the solution. Thanks, Gerard >From: gerard barrington >Reply-To: gerard barrington >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] disappearing points >Date: Fri, 6 May 2005 09:18:33 -0230 > >Hi all, > >I'm having a bit of trouble with some shapefiles and was hoping someone >could offer advice. > >I'm using mapserver 4.4 to display my point and line shapefiles. The symbol >are displayed as images I have specified in a symbol file and the lines >simply as black lines. If I zoom in at a close range, the points disappear. >The lines remain visible but not the points. Zooming out brings them back >again. > >The minscale and maxscale are not set so all shapes should be displayed at >any zoom level. > >Thanks in advance, >Gerard From temiz at DEPREM.GOV.TR Fri May 6 06:25:30 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Fri, 6 May 2005 16:25:30 +0300 Subject: saveWebImage() error in php application Message-ID: *hello I couldn't overcome these problems: Warning*: [MapServer Error]: msDrawMap(): Failed to draw layer named 'fay'. in */var/www/cgi/mapd1.php* on line *402* *Warning*: [MapServer Error]: msSHPOpenFile(): (/var/www/cgi/./kara_fay2) in */var/www/cgi/mapd1.php* on line *402* *Warning*: [MapServer Error]: msSHPOpenFile(): (/usr/local/karabuk_data/kara_fay2) in */var/www/cgi/mapd1.php* on line *402* *Fatal error*: Call to a member function saveWebImage() on a non-object in */var/www/cgi/mapd1.php* on line *403 *what might lead these problems ? thanks in advance Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From temiz at DEPREM.GOV.TR Fri May 6 06:47:22 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Fri, 6 May 2005 16:47:22 +0300 Subject: saveWebImage() error in php application In-Reply-To: <427B7319.1000106@dmsolutions.ca> Message-ID: Paul Spencer wrote: > Ahmet > > the error messages indicate that you have a layer named 'fay' that is > using a shapefile kara_fay2 that it cannot find. > > Make sure this shapefile exists in /usr/local/karabuk_data/kara_fay2 > and that this directory is readable by your apache user. > > If yes to all of these, then perhaps your shapefile is corrupt in some > way. Try opening it in some other way (ogrinfo perhaps?) > > Paul > > orkun wrote: > >> *hello >> >> I couldn't overcome these problems: >> >> Warning*: [MapServer Error]: msDrawMap(): Failed to draw layer named >> 'fay'. in */var/www/cgi/mapd1.php* on line *402* >> >> *Warning*: [MapServer Error]: msSHPOpenFile(): >> (/var/www/cgi/./kara_fay2) in */var/www/cgi/mapd1.php* on line *402* >> >> *Warning*: [MapServer Error]: msSHPOpenFile(): >> (/usr/local/karabuk_data/kara_fay2) in */var/www/cgi/mapd1.php* on line >> *402* >> >> *Fatal error*: Call to a member function saveWebImage() on a non-object >> in */var/www/cgi/mapd1.php* on line *403 >> >> *what might lead these problems ? >> >> thanks in advance >> >> Ahmet Temiz >> >> ______________________________________ >> XamimeLT - installed on mailserver for domain @deprem.gov.tr >> Queries to: postmaster at deprem.gov.tr >> ______________________________________ >> The views and opinions expressed in this e-mail message are the >> sender's own >> and do not necessarily represent the views and the opinions of >> Earthquake Research Dept. >> of General Directorate of Disaster Affairs. >> >> Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal >> olarak T.C. >> B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici >> nitelikte degildir. >> > thank you for your interest I gave permission to local user which I am now working on. But I had changed to www-data and nobody. I made chmod a+x chmod a+r to all file. I could not see the maps. regards ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From pspencer at DMSOLUTIONS.CA Fri May 6 06:37:29 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Fri, 6 May 2005 09:37:29 -0400 Subject: saveWebImage() error in php application In-Reply-To: <427B704A.90108@deprem.gov.tr> Message-ID: Ahmet the error messages indicate that you have a layer named 'fay' that is using a shapefile kara_fay2 that it cannot find. Make sure this shapefile exists in /usr/local/karabuk_data/kara_fay2 and that this directory is readable by your apache user. If yes to all of these, then perhaps your shapefile is corrupt in some way. Try opening it in some other way (ogrinfo perhaps?) Paul orkun wrote: > *hello > > I couldn't overcome these problems: > > Warning*: [MapServer Error]: msDrawMap(): Failed to draw layer named > 'fay'. in */var/www/cgi/mapd1.php* on line *402* > > *Warning*: [MapServer Error]: msSHPOpenFile(): > (/var/www/cgi/./kara_fay2) in */var/www/cgi/mapd1.php* on line *402* > > *Warning*: [MapServer Error]: msSHPOpenFile(): > (/usr/local/karabuk_data/kara_fay2) in */var/www/cgi/mapd1.php* on line > *402* > > *Fatal error*: Call to a member function saveWebImage() on a non-object > in */var/www/cgi/mapd1.php* on line *403 > > *what might lead these problems ? > > thanks in advance > > Ahmet Temiz > > ______________________________________ > XamimeLT - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > ______________________________________ > The views and opinions expressed in this e-mail message are the sender's > own > and do not necessarily represent the views and the opinions of > Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal > olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici > nitelikte degildir. > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From fwarmerdam at GMAIL.COM Fri May 6 06:56:22 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 6 May 2005 09:56:22 -0400 Subject: ogrinfo show x y columns as strings In-Reply-To: <427B664D.7090100@duif.net> Message-ID: On 5/6/05, Richard Duivenvoorde wrote: > But putting everything to linux fails, because ogr(info) (with exactly > the same txt file) reports the x y columns as strings, giving a > featurecount of zero => no features on the map :-( > > ogrinfo -ro -al ODBC:@puntenlaagdsn testpoints.txt > INFO: Open of `ODBC:@puntenlaagdsn' > using driver `ODBC' successful. > > Layer name: testpoints.txt > Geometry: Unknown (any) > Feature Count: 0 > Layer SRS WKT: > (unknown) > text: String (255.0) > x: String (255.0) > y: String (255.0) > > Does anybody knows what's the problem? > > Is it an odbc problem? Richard, I believe this is a flaw with the text file ODBC driver on that comes with unixODBC. We had a number of problems with it on AIX a couple of years ago and came to the conclusion it was not very trustworthy. You might want to try doing dos to unix text conversion on the file, to see if that is at the root of the problem. > Who is responsible for 'typing' the columns in the txt file? The ODBC driver pretty much has to guess in the CSV case since there is no type information in the file. BTW, another alternative with modern GDAL/OGR's is to use the CSV driver. Rename your file testpoints.csv and it should work. warmerda at gdal2200[23]% cat text.csv text,x,y test,10,10 test2,11,11 warmerda at gdal2200[24]% ogrinfo -ro -al text.csv OGR: OGROpen(text.csv) succeeded (0x80c05a8). INFO: Open of `text.csv' using driver `CSV' successful. Layer name: text Geometry: None Feature Count: 2 Layer SRS WKT: (unknown) text: String (0.0) x: String (0.0) y: String (0.0) OGRFeature(text):1 text (String) = test x (String) = 10 y (String) = 10 OGRFeature(text):2 text (String) = test2 x (String) = 11 y (String) = 11 The values do some through as strings, but I don't think that really matters for most purposes. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From woodbri at SWOODBRIDGE.COM Fri May 6 07:01:36 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 6 May 2005 10:01:36 -0400 Subject: Help: Perl/Mapscript Bug? In-Reply-To: Message-ID: Resolution: It looks like there are two problems here. 1) there is a bug in 4.0.1 where the shapefiles are not getting closed. 2) there is a separate bug on 4.0.1 that required the first $layer-open(); because we had the TEMPLATE in the CLASS and not the LAYER. This caused two copies of the shapefiles to get left open on every hit. To further compound this problem, we were running fastcgi, which kept all the file handles open because the process lives beyond the request. I added a TEMPLATE line to the LAYER, and a COLOR to the CLASS and was able to get rid of the first $layer->open(), but I could not get the files to close on 4.0.1. We added $layer->close() to no avail. We upgraded to 4.4.2 and everything is working as expected. Thanks for the help and suggestions, this list really rocks! -Steve W. Sean Gillies wrote: > On May 5, 2005, at 11:21 AM, Stephen Woodbridge wrote: > >> Hi all, >> >> I have run into an interesting but NASTY problem with Perl/Mapscript >> running in a fcgi process on Linux. >> >> Does anyone have any ideas? >> Is this a bug that has been fixed in a later release? >> >> Particulars: >> >> Debian Woody and Mapserver 4.01 - yes it is old, but it is a production >> system and we are concerned about the performance issues are in the >> later releases. >> >> The problem is that this script is running as an apache fcgi process and >> it is consuming all the system resources. An lsof shows that the >> shapefiles are not getting closed after each hit. We have tried to close >> the layer and undef the mapObj, but it does not fix the problem. It >> seems mapscript is not closing the file handles!!! >> >> We are going to try and test this under 4.4.1 and 4.4.2 and see what >> happens >> >> Any ideas? >> -Steve W. >> > > Steve, > > I don't even keep the 4.0 source around anymore, so I'm looking at 4.2. > I don't think maplayer.c had too many changes in between. > > I suspect your problem is with the multiple calls to layerObj::open(). > On the second call, a new shapefileObj will be allocated and the layer's > info pointer will be pointed to it, but it doesn't look like the > pre-existing one is ever freed. My comments continue below ... > > >> the Perl code is like: >> >> sub query { >> my $latitude = shift; >> my $longitude = shift; >> >> ## create new mapscript objec using appropriate mapfile >> my $map = new mapscript::mapObj($mapfile); >> return error("Can not open Mapfile: $mapfile") if not $map; >> >> ## get streets layer >> my $layer = $map->getLayerByName('data'); >> return error("Can not open Layer: data") if not $layer; >> $layer->{status} = $mapscript::MS_ON; >> >> ## open the layer or the query will fail >> ## WHY DOES THIS NEED TO BE DONE HERE! >> $layer->open(); >> > > This is not necessary, and is probably the source of the leak. I've > never had problems querying a closed layer. > >> ## build point obj using lat/lon >> my $point = new mapscript::pointObj(); >> $point->{y} = $latitude; >> $point->{x} = $longitude; >> >> ## now query the layer object using lat/longs >> $layer->queryByPoint($map, $point, $mapscript::MS_SINGLE, -1.0); >> >> ## reopen layer to get results, >> ## you can't close it or it will lose the query info >> $layer->open(); >> my $res = $layer->getResult(0); >> > > Right. Open the layer only to get the results. > > >> ## get shape obj >> my $shp = new mapscript::shapeObj($layer->{type}); >> $layer->getShape($shp, $res->{tileindex}, $res->{shapeindex}); >> >> my $data; >> my $polyline = get_shp_xy($shp); >> >> ## do stuff with polyline put results into $data >> >> ## we tried $layer->close() and undef $map here >> ## but it did not make a difference >> >> return($data); >> } >> >> > > Hope that helps, > > > -- > Sean Gillies > sgillies at frii dot com > http://zcologia.com > > From fwarmerdam at GMAIL.COM Fri May 6 07:35:02 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 6 May 2005 10:35:02 -0400 Subject: Problem using Gdal-1.2.6 In-Reply-To: Message-ID: On 5/6/05, Johan Hallgren wrote: > I have installed MapServer 4.6.0-beta1 and now I will add tiff as > supported input format. I downloaded Gdal-1.2.6 and compiled it (the dll > and lib was created). > > I uncommented the GDAL options in nmake.opt > GDAL=-DUSE_GDAL > GDAL_DIR=C:/SE/GMS/ms/gdal-1.2.6 > > Then I buildt the mapserver with: > nmake /f makefile.vc Johan, I don't believe that the object code depends on nmake.opt, so after changing the configuration in nmake.opt you should generally do "nmake /f makefile.vc clean" before building the software again. The version info from mapserv.exe indicates that GDAL is not yet enabled. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From rdmailings at DUIF.NET Fri May 6 08:33:34 2005 From: rdmailings at DUIF.NET (Richard Duivenvoorde) Date: Fri, 6 May 2005 17:33:34 +0200 Subject: ogrinfo show x y columns as strings In-Reply-To: <931f8ea9050506065641fb951@mail.gmail.com> Message-ID: Frank Warmerdam wrote: > You might want to try doing dos to unix text conversion on the > file, to see if that is at the root of the problem. I tried some fiddling with linefeeds, but did'nt succeed. A textfile (either csv or txt extension) fails to work as a virtual datasource with me. > > BTW, another alternative with modern GDAL/OGR's is to use > the CSV driver. Rename your file testpoints.csv and it should > work. > > warmerda at gdal2200[23]% cat text.csv > text,x,y > test,10,10 > test2,11,11 > warmerda at gdal2200[24]% ogrinfo -ro -al text.csv > OGR: OGROpen(text.csv) succeeded (0x80c05a8). Yep, you are right. OgrInfo (using driver CSV) sees features now, but only when reading it straigt from disk. If I feed it to ogr via a odbc connection (needed for virtual datascources (isn't it???)). It still says 0 features, because it uses the VRT driver. ogrinfo puntenlaag.ovf punten ERROR 4: Update access not supported for VRT datasources. Had to open data source read-only. INFO: Open of `puntenlaag.ovf' using driver `VRT' successful. Layer name: punten Geometry: Point Feature Count: 0 Layer SRS WKT: or ogrinfo ODBC:puntenlaagdsn testpoints.csv INFO: Open of `ODBC:puntenlaagdsn' using driver `ODBC' successful. Layer name: testpoints.csv Geometry: Unknown (any) Feature Count: 0 Layer SRS WKT: Q1: Can I force it(ogr/mapserver) to use the CSV driver? Q2: is there another way/workaround to use textbased files as datasources (on *ix)? To give some context: I want to build a testing webapp where (web)clients can add some points. The points are (sessionbased) put in there own txtfile. So they would see only there own points. It would be easy for me to just delete all textfiles after one or two day. I can off course do it using mysql or another database, but thought txt based would be easy and sufficient. TIA Richard From fwarmerdam at GMAIL.COM Fri May 6 08:45:30 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 6 May 2005 11:45:30 -0400 Subject: ogrinfo show x y columns as strings In-Reply-To: <427B8E4E.6020106@duif.net> Message-ID: On 5/6/05, Richard Duivenvoorde wrote: > Yep, you are right. OgrInfo (using driver CSV) sees features now, but > only when reading it straigt from disk. If I feed it to ogr via a odbc > connection (needed for virtual datascources (isn't it???)). It still > says 0 features, because it uses the VRT driver. Richard, You don't need to use ODBC as the source for VRT datasets. Input from any OGR supportted format is legal. The CSV driver was specifically implemented for lightweight input to the VRT driver on Unix where the ODBC issues are often messy. If you can't get OGR access to your CSV file working through a VRT file email me the .vrt and .csv and I'll take a look. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Fri May 6 10:07:58 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 6 May 2005 13:07:58 -0400 Subject: Raster Legend Entries without Classification Message-ID: Folks, There has been a desire by raster users to be able to have an entry appear in legends for raster layers without having to force the raster layer to be rendered using classification. In the past having a class on the raster would force the raster layer to be rendered using classification rules, instead of it's inherent colors - but a class was the only convenient way to have a layer appear in the legend. After discussion with Steve I have made a change in the GDAL based raster rendering to only use classification rules for rendering if at least one class has a non-NULL expression. So, it should be no problem now to use a dummy class with a KEYIMAGE or other mechanism to get a legend entry for a raster layer without classifying it. This should become widely available in 4.6.0 beta2. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at 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 at XS4ALL.NL Fri May 6 10:11:46 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 6 May 2005 19:11:46 +0200 Subject: Oracle and PHP/Mapscript support in Mapserver In-Reply-To: <427B57CB.1000303@univali.br> Message-ID: Hi Erik, I just re-installed my system so I am not able to help you short-term. Maybe I'll find some time this weekend to create 4.4.2 binaries of mapscript including Oracle support. I'll compile with the Oracle 10g client. Best regards, Bart On Fri, 06 May 2005 13:40:59 +0200, Fernando Simon wrote: > Hi Erik, > About the Win binaries with Oracle Spatial and PHP support I believe > that Bart can help you more than I, here I only use Linux. > With 4.4.x version of Mapserver you can use the query functions with > native Oracle Spatial support without problems, Arnulf wrote in the list > that the native support is more fast than ogr connection. Some improves > for Oracle Spatial support is in the cvs version of maporacletial.c, so > you can try to use the 4.4 version or 4.6-beta. > Thanks. > > ------------------------------------------------------------------------ > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://g10.cttmar.univali.br - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > erik wrote: > >> Hi, >> Does anyone know where to find a Mapserver Windows binary with Oracle >> AND MapScript/PHP support? >> The ms4w package from DM Solutions does not come with Oracle support, >> except through OGR. There is a windows binary with Oracle support on >> the Mapserver download pages, but it doesn't have PHP/Mapscript >> support, aarrgh.. Also, the Hobu's kitchen sink MapServer 4.4.2 only >> contains Mapscript for Java or Python it seems. >> Is it true that in order to use the Query functionality in Mapserver I >> must access Oracle via OGR? What is the performance when using OGR's >> compared to the "native" link? >> regards, >> erik >> > > > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From bartvde at XS4ALL.NL Fri May 6 10:15:16 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 6 May 2005 19:15:16 +0200 Subject: Raster Legend Entries without Classification In-Reply-To: <931f8ea905050610074d551de4@mail.gmail.com> Message-ID: Hi Frank, cool. I had an open bug for this. I will update the bug report with your e-mail. legends for preclassified rasters: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1015 Best regards, Bart On Fri, 06 May 2005 19:07:58 +0200, Frank Warmerdam wrote: > Folks, > > There has been a desire by raster users to be able to have an entry > appear in legends for raster layers without having to force the raster > layer to be rendered using classification. In the past having a class > on the raster would force the raster layer to be rendered using > classification rules, instead of it's inherent colors - but a class > was the only convenient way to have a layer appear in the legend. > > After discussion with Steve I have made a change in the GDAL > based raster rendering to only use classification rules for rendering > if at least one class has a non-NULL expression. So, it should be > no problem now to use a dummy class with a KEYIMAGE or other > mechanism to get a legend entry for a raster layer without classifying > it. > > This should become widely available in 4.6.0 beta2. > > Best regards, -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From bartvde at XS4ALL.NL Fri May 6 10:26:24 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 6 May 2005 19:26:24 +0200 Subject: MyGIS and WFS In-Reply-To: Message-ID: Hi Stephanie, I don't think a lot of Mapserver users are using MyGIS (or I must be mistaken, which is possible ofcourse :) ). And probably not using the WFS interface. I never succeeded in compiling the Perl utility on Windows for loading the shapefiles into MySQL. But probably compiling Mapserver against the MySQL libraries won't be too hard. If I would be in your shoes I would be moving to PostgreSQL/PostGIS. Best regards, Bart On Fri, 06 May 2005 09:23:10 +0200, Stefanie Weykam wrote: > Hi list members, > > Now that we have our prototype up and running, it's time to make some > considerations for the future data incorporations. > We are working with MapServer4.4 and MapScript on Windows2000. For now, > we > have all the spatial data (and all stable attributes) stored in > shapefiles > and all the survey data in MySQL. > > Query the data and render maps according to query results will be very > important, as well as sharing data with others. > > I was wondering if we should migrate everything to MySQL as spatial > database > (tell me somebody that it is easy to compile MapServer with MyGIS > support!?). > > How does this migration affect our WMS/WFS server capabilities? (makes it > easier or more complicated?) > Are the attribute data ONLY queriable if we have the spatial data in a > spatial database? > > How would you render a polygon layer, having let's say 6 classes > representing quantitative data on a colour ramp? > I guess, one would first determine MIN and MAX values in a field, then > the > difference between MAX and MIN, divide this value by 6, create 6 class > objects and 6 symbol objects, use 6 class expressions according to the > previously determined value ranges and that's it (?). Can such a map be > requested by a client? > > Another problem: The users would like to stick to Access as a database > familiar to them. I know that it is possible to transfer locally stored > Access tables to MySQL, then set up links in the Access database that > point > to the tables managed by the MySQL database server, but I have not tried > it > out. Is this an option or should we rather write an export/import > routine? > I'm afraid, actualisations will be quite frequent. > > Any comments would be appreciated, > Stefanie Weykam > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From bfraser at GEOANALYTIC.COM Fri May 6 10:34:48 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 6 May 2005 11:34:48 -0600 Subject: Raster Legend Entries without Classification Message-ID: Frank, This also addresses http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=270 so it should be closed as well. Brent ----- Original Message ----- From: "Frank Warmerdam" To: Sent: Friday, May 06, 2005 11:07 AM Subject: [UMN_MAPSERVER-USERS] Raster Legend Entries without Classification Folks, There has been a desire by raster users to be able to have an entry appear in legends for raster layers without having to force the raster layer to be rendered using classification. In the past having a class on the raster would force the raster layer to be rendered using classification rules, instead of it's inherent colors - but a class was the only convenient way to have a layer appear in the legend. After discussion with Steve I have made a change in the GDAL based raster rendering to only use classification rules for rendering if at least one class has a non-NULL expression. So, it should be no problem now to use a dummy class with a KEYIMAGE or other mechanism to get a legend entry for a raster layer without classifying it. This should become widely available in 4.6.0 beta2. Best regards, -- ---------------------------------------+------------------------------------ -- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From stigmata_blackangel at YAHOO.COM Fri May 6 10:35:23 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Fri, 6 May 2005 10:35:23 -0700 Subject: MyGIS and WFS In-Reply-To: 6667 Message-ID: Bart said: > If I would be in your shoes I would be moving to > PostgreSQL/PostGIS. I agree entirely! MyGIS is comparatively slow and lacks the rich feature set of PostGIS. And, last I heard, support for MySQL 4.1's true spatial stuff isn't forthcoming in MapServer any time soon. > I never succeeded in compiling the Perl utility on > Windows for loading the > shapefiles into MySQL. But probably compiling > Mapserver against the MySQL > libraries won't be too hard. If you mean the shp2mysql.pl program, I posted a fix for this a few months ago to mapserver-dev. I still have that (minor but vital) fix in my mail, if anyone's interested. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From abe.gillespie at GMAIL.COM Fri May 6 10:58:12 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Fri, 6 May 2005 13:58:12 -0400 Subject: Pan Extent In-Reply-To: <427BAC31.6000701@tin.it> Message-ID: There is a way to limit how far one zooms out by MAP::MAXSCALE. But you may be correct in that you can't control panning extents in the map file. Sorry. However, if you know if the most basic scripting, this should be easy to cook up on your own. -Abe On 5/6/05, andy wrote: > Hi abe, > first of all thank you for your time. > Every mapserver applications I have seen do not have pan limits, and all > these application should have EXTENT [minx][miny][maxx][maxy]. > Probably is not possible to limit pan without scripting. > > What do you think? > > Thank you again, > > Andrea > > Abe Gillespie wrote: > > >I believe the min max properties in the map file handle this auto-magically. > > > >-Abe > > > >On 5/5/05, andy wrote: > > > > > >>Dear all, > >>is it possible in same way to limitate the extent of panning around a > >>map? I do not want that some user can pan in area with no data? > >> > >>Thank you, > >> > >>a > >> > >> > >> > > > > > > > > From fwarmerdam at GMAIL.COM Fri May 6 11:00:10 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 6 May 2005 14:00:10 -0400 Subject: Raster Legend Entries without Classification In-Reply-To: <019101c55261$e67aa5b0$160002c0@shark> Message-ID: On 5/6/05, Brent Fraser wrote: > Frank, > > This also addresses > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=270 > > so it should be closed as well. Brent, Done - thanks. That makes 3 bug reports on the same issue. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From kgrootendorst at BAIRD.COM Fri May 6 11:12:26 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Fri, 6 May 2005 13:12:26 -0500 Subject: Landsat is a no show Message-ID: Hi, Trying to add an 8 bit landsat image to my mapfile, but it's showing up as all black. In ArcMap, it's black until I set the symbology to stretched - Histogram Equalize. I can't find any documentation for setting a similar parameter in my map file. Can anybody help me out? Kevin From fwarmerdam at GMAIL.COM Fri May 6 11:19:55 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 6 May 2005 14:19:55 -0400 Subject: Landsat is a no show In-Reply-To: Message-ID: On 5/6/05, Kevin Grootendorst wrote: > Hi, > Trying to add an 8 bit landsat image to my mapfile, but it's showing up as > all black. > In ArcMap, it's black until I set the symbology to stretched - Histogram > Equalize. > > I can't find any documentation for setting a similar parameter in my map > file. > > Can anybody help me out? Kevin, Generally speaking I would suggest pre-stretching 8bit imagery externally with an imaging tool. But if you want, you can force it within MapServer using the SCALE processing option. For instance adding the following line to your raster layer. PROCESSING "SCALE=AUTO" Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From kgrootendorst at BAIRD.COM Fri May 6 11:25:02 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Fri, 6 May 2005 13:25:02 -0500 Subject: Landsat is a no show Message-ID: Thanks - that did the trick. Kevin On Fri, 6 May 2005 14:19:55 -0400, Frank Warmerdam wrote: >On 5/6/05, Kevin Grootendorst wrote: >> Hi, >> Trying to add an 8 bit landsat image to my mapfile, but it's showing up as >> all black. >> In ArcMap, it's black until I set the symbology to stretched - Histogram >> Equalize. >> >> I can't find any documentation for setting a similar parameter in my map >> file. >> >> Can anybody help me out? > >Kevin, > >Generally speaking I would suggest pre-stretching 8bit imagery >externally with an imaging tool. But if you want, you can force it >within MapServer using the SCALE processing option. For instance >adding the following line to your raster layer. > > PROCESSING "SCALE=AUTO" > >Best regards, >-- >---------------------------------------+----------------------------------- --- >I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com >light and sound - activate the windows | http://pobox.com/~warmerdam >and watch the world go round - Rush | Geospatial Programmer for Rent From rdmailings at DUIF.NET Fri May 6 12:29:08 2005 From: rdmailings at DUIF.NET (Richard Duivenvoorde) Date: Fri, 6 May 2005 21:29:08 +0200 Subject: ogrinfo show x y columns as strings In-Reply-To: <931f8ea905050608456ef642af@mail.gmail.com> Message-ID: Frank Warmerdam wrote: > If you can't get OGR access to your CSV file working through a > VRT file email me the .vrt and .csv and I'll take a look. duh, I think I tried all combinations now :-0 all info I could google or find was about ODBC vrt's. IF it's possible maybe it's an idea to put a vrt and csv file in the helpfile of http://www.gdal.org/ogr/drv_vrt.html as an non odbc example? Here is a vrt file: /home/richard/temp/ovr/ testpoints.csv wkbPoint epsg:28992 here is a csv file example: text,x,y test,100000,400000 test2,110000,411000 tried relativeToVRT="1" and relative paths tried CSV:prefix ... tried ../ovr/testpoints.csv What's my problem? TIA Richard From fwarmerdam at GMAIL.COM Fri May 6 12:55:45 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 6 May 2005 15:55:45 -0400 Subject: ogrinfo show x y columns as strings In-Reply-To: <427BC584.3070405@duif.net> Message-ID: On 5/6/05, Richard Duivenvoorde wrote: > duh, I think I tried all combinations now :-0 > > all info I could google or find was about ODBC vrt's. IF it's possible > maybe it's an idea to put a vrt and csv file in the helpfile of > http://www.gdal.org/ogr/drv_vrt.html as an non odbc example? Richard, Try: testpoints.csv testpoints wkbPoint epsg:28992 I generally avoid using the directory name for the datasource as it will only be recognised as a csv datasource if at least half the files in it are .csv files. The above worked fine for me: Had to open data source read-only. INFO: Open of `richards.ovr' using driver `VRT' successful. Layer name: testpoints Geometry: Point Feature Count: 2 Extent: (100000.000000, 400000.000000) - (110000.000000, 411000.000000) Layer SRS WKT: PROJCS["Amersfoort / RD New", GEOGCS["Amersfoort", DATUM["Amersfoort", SPHEROID["Bessel 1841",6377397.155,299.1528128, AUTHORITY["EPSG","7004"]], AUTHORITY["EPSG","6289"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.01745329251994328, AUTHORITY["EPSG","9122"]], AUTHORITY["EPSG","4289"]], PROJECTION["Oblique_Stereographic"], PARAMETER["latitude_of_origin",52.15616055555555], PARAMETER["central_meridian",5.38763888888889], PARAMETER["scale_factor",0.9999079], PARAMETER["false_easting",155000], PARAMETER["false_northing",463000], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","28992"]] text: String (0.0) x: String (0.0) y: String (0.0) OGRFeature(testpoints):1 text (String) = test x (String) = 100000 y (String) = 400000 POINT (100000 400000) OGRFeature(testpoints):2 text (String) = test2 x (String) = 110000 y (String) = 411000 POINT (110000 411000) PS. I have updated the drv_vrt.html to mention that datasources other than odbc are supported. I didn't add any extra examples though. Best regards, Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From bonk at EOSDATA.GSFC.NASA.GOV Fri May 6 13:18:36 2005 From: bonk at EOSDATA.GSFC.NASA.GOV (John Bonk) Date: Fri, 6 May 2005 16:18:36 -0400 Subject: Possible Proxy Server problem Message-ID: We have been having trouble getting our mapserver to retrieve data from remote machines. I suspect the problem may be connecting through our proxy server. We have specified our proxy server in a .dodsrc file, and we have been able to retreive data from a dods server. But we still can't retrieve files from wms servers. Is there something special that has to be done to tell mapserv to go through a proxy when retrieving data from a wms server? The map file is below. It works on another machine that does not have a proxy server. Any help will be appreciated, John MAP IMAGETYPE PNG EXTENT -117.263 30.168 -83.774 51.676 units DD DEBUG ON SIZE 400 300 SHAPEPATH "data" PROJECTION "init=epsg:4326" END CONFIG PROJ_LIB /usr/local/share/proj/ WEB IMAGEPATH '/local/tools/gdaac/TS2/www/workshop/tmp/' IMAGEURL '/TS2/workshop/tmp/' LOG '/local/tools/gdaac/TS2/www/workshop/debug.log' METADATA "wms_title" "WMS Test Demo" "wms_onlineresource" "http://g0dup05u.ecs.nasa.gov/TS2/cgi-bin/mapserv?" "wms_abstract" "Test for mapserver" "ows_schemas_location" "http://ogc.dmsolutions.ca" END END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 50 5 LABEL COLOR 55 55 55 SIZE tiny END STYLE 1 SIZE 100 2 COLOR 0 0 0 UNITS MILES INTERVALS 2 TRANSPARENT TRUE STATUS EMBED END LAYER NAME RTOPO TYPE RASTER units DD OFFSITE 0 0 0 DEBUG ON STATUS DEFAULT PROJECTION "init=epsg:4326" END CONNECTIONTYPE WMS CONNECTION "http://globe.digitalearth.gov/viz-bin/wmt.cgi?" METADATA "wms_request" "GetMap" "wms_name" "RTOPO" "wms_server_version" "1.1.1" "wms_srs" "EPSG:4326" "wms_format" "image/png" END END LAYER # MODIS raster layer begins here METADATA "wms_title" "test layer" END DEBUG ON NAME modis DATA RGB_mosaic_250m.tif EXTENT -13053641.300000 3358256.867 -9325729.471 5752577.812 PROJECTION "proj=eqc" "lat_ts=0.0" "x_0=0.0" "y_0=0.0" END STATUS ON TYPE RASTER END # MODIS raster layer ends here LAYER # States line layer begins here METADATA "wms_title" "test states layer" END DEBUG ON NAME states TYPE POLYGON STATUS ON DATA "statesp020" PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS NAME "states" OUTLINECOLOR 60 60 60 SYMBOL 0 END END # States line layer ends here END # end of map file. ======================================= John Bonk SSAI/NASA GES DISC Phone:(301) 614-5280 Fax: (301) 614-5268 For more information about the NASA GES DISC and its services: http://daac.gsfc.nasa.gov/ From bartvde at XS4ALL.NL Fri May 6 13:19:03 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 6 May 2005 22:19:03 +0200 Subject: Possible Proxy Server problem In-Reply-To: <4.2.0.58.20050506150133.01113968@localhost> Message-ID: Hi John, try specifying http_proxy as an environment variable. If you are using Apache use SetEnv in httpd.conf. See for more information: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=571 Best regards, Bart On Fri, 06 May 2005 22:18:36 +0200, John Bonk wrote: > We have been having trouble getting our mapserver to retrieve data from > remote machines. I suspect the problem may be connecting through our > proxy > server. > > We have specified our proxy server in a .dodsrc file, and we have been > able > to retreive data from a dods server. But we still can't retrieve files > from wms servers. > > Is there something special that has to be done to tell mapserv to go > through a proxy when retrieving data from a wms server? > > The map file is below. It works on another machine that does not have a > proxy server. > > Any help will be appreciated, > John > > MAP > IMAGETYPE PNG > EXTENT -117.263 30.168 -83.774 51.676 > units DD > > DEBUG ON > SIZE 400 300 > SHAPEPATH "data" > > PROJECTION > "init=epsg:4326" > END > > CONFIG PROJ_LIB /usr/local/share/proj/ > > > > WEB > IMAGEPATH '/local/tools/gdaac/TS2/www/workshop/tmp/' > IMAGEURL '/TS2/workshop/tmp/' > LOG '/local/tools/gdaac/TS2/www/workshop/debug.log' > METADATA > "wms_title" "WMS Test Demo" > "wms_onlineresource" > "http://g0dup05u.ecs.nasa.gov/TS2/cgi-bin/mapserv?" > "wms_abstract" "Test for mapserver" > "ows_schemas_location" "http://ogc.dmsolutions.ca" > END > END > > > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 50 5 > LABEL > COLOR 55 55 55 > SIZE tiny > END > STYLE 1 > SIZE 100 2 > COLOR 0 0 0 > UNITS MILES > INTERVALS 2 > TRANSPARENT TRUE > STATUS EMBED > END > > > LAYER > NAME RTOPO > TYPE RASTER > units DD > OFFSITE 0 0 0 > DEBUG ON > STATUS DEFAULT > PROJECTION > "init=epsg:4326" > END > CONNECTIONTYPE WMS > CONNECTION "http://globe.digitalearth.gov/viz-bin/wmt.cgi?" > METADATA > "wms_request" "GetMap" > "wms_name" "RTOPO" > "wms_server_version" "1.1.1" > "wms_srs" "EPSG:4326" > "wms_format" "image/png" > END > END > > > LAYER # MODIS raster layer begins here > METADATA > "wms_title" "test layer" > END > DEBUG ON > NAME modis > DATA RGB_mosaic_250m.tif > EXTENT -13053641.300000 3358256.867 -9325729.471 5752577.812 > PROJECTION > "proj=eqc" > "lat_ts=0.0" > "x_0=0.0" > "y_0=0.0" > END > STATUS ON > TYPE RASTER > END # MODIS raster layer ends here > > LAYER # States line layer begins here > METADATA > "wms_title" "test states layer" > END > DEBUG ON > NAME states > TYPE POLYGON > STATUS ON > DATA "statesp020" > PROJECTION > "proj=latlong" > "ellps=GRS80" > "datum=NAD83" > END > CLASS > NAME "states" > OUTLINECOLOR 60 60 60 > SYMBOL 0 > END > END # States line layer ends here > > END # end of map file. > ======================================= > John Bonk > SSAI/NASA GES DISC > Phone:(301) 614-5280 > Fax: (301) 614-5268 > For more information about > the NASA GES DISC and its services: > http://daac.gsfc.nasa.gov/ > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From bartvde at XS4ALL.NL Fri May 6 13:50:27 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 6 May 2005 22:50:27 +0200 Subject: Oracle and PHP/Mapscript support in Mapserver In-Reply-To: Message-ID: I forgot that for Mapserver OCI queries to work properly, binaries need to be compiled against Visual Studio 7. I don't have access to that anymore. The only binaries I still have are Mapserver 4.5 (CVS version Feb 2005). http://www.xs4all.nl/~bartvde/mapscript45oci.zip It is compiled against Oracle client 10.1.0.2 so you will need that. Please note that the php_mapscript.dll depends on all the dll's in the download, so also libmap.dll. PHP will need to be able to access all those dll's, and additionally oci.dll, which I can't distribute. MapServer version 4.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Let me know how it goes. Best regards, Bart On Fri, 06 May 2005 19:11:46 +0200, Bart van den Eijnden wrote: > Hi Erik, > > I just re-installed my system so I am not able to help you short-term. > Maybe I'll find some time this weekend to create 4.4.2 binaries of > mapscript including Oracle support. I'll compile with the Oracle 10g > client. > > Best regards, > Bart > > On Fri, 06 May 2005 13:40:59 +0200, Fernando Simon > wrote: > >> Hi Erik, >> About the Win binaries with Oracle Spatial and PHP support I >> believe that Bart can help you more than I, here I only use Linux. >> With 4.4.x version of Mapserver you can use the query functions >> with native Oracle Spatial support without problems, Arnulf wrote in >> the list that the native support is more fast than ogr connection. Some >> improves for Oracle Spatial support is in the cvs version of >> maporacletial.c, so you can try to use the 4.4 version or 4.6-beta. >> Thanks. >> >> ------------------------------------------------------------------------ >> Fernando Simon >> Mapserver and Oracle Spatial developer >> G10 - Laboratorio de Computacao Aplicada - Brazil >> http://g10.cttmar.univali.br - UNIVALI/CTTMAR >> ------------------------------------------------------------------------ >> erik wrote: >> >>> Hi, >>> Does anyone know where to find a Mapserver Windows binary with Oracle >>> AND MapScript/PHP support? >>> The ms4w package from DM Solutions does not come with Oracle support, >>> except through OGR. There is a windows binary with Oracle support on >>> the Mapserver download pages, but it doesn't have PHP/Mapscript >>> support, aarrgh.. Also, the Hobu's kitchen sink MapServer 4.4.2 only >>> contains Mapscript for Java or Python it seems. >>> Is it true that in order to use the Query functionality in Mapserver >>> I must access Oracle via OGR? What is the performance when using OGR's >>> compared to the "native" link? >>> regards, >>> erik >>> >> >> >> >> > > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From tkirstine at JDBARNES.COM Fri May 6 14:05:35 2005 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Fri, 6 May 2005 17:05:35 -0400 Subject: Raster DEMs and MapServer Message-ID: I was hoping someone could provide me with some basic info regarding raster dataset. I want to display a regional DEM covering approximatly 270000 sq km with the ability to allow the user to query the elevation in Mapserver. What raster format would be the best allowing me to retain the elevation data but also provide maximum drawing speed. I haven't yet created the dem's (I'll be using ESRI's Spatial Analyst and 3d Analyst)and don't want to waste time producing a product that is useless. Thanks for your time Travis Kirstine From tylermitchell at SHAW.CA Fri May 6 14:46:05 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri, 6 May 2005 14:46:05 -0700 Subject: Raster DEMs and MapServer Message-ID: Travis, I'd highly recommend keeping your data in GeoTIFF format. There are ways to optimise the display in MapServer for TIFF imagery. I find that the overhead involved with decompression some compressed formats, isn't worth it. If you have lots of drive space, stick with TIFF. I can't speak to the querying ability. I don't know the status of it in MapServer at present, but I remember some talk about it. Good luck. Tyler ----- Original Message ----- From: Travis Kirstine GIS Tech Date: Friday, May 6, 2005 2:05 pm Subject: [UMN_MAPSERVER-USERS] Raster DEMs and MapServer > I was hoping someone could provide me with some basic info > regarding raster > dataset. I want to display a regional DEM covering approximatly > 270000 sq km > with the ability to allow the user to query the elevation in > Mapserver.What raster format would be the best allowing me to > retain the elevation > data but also provide maximum drawing speed. I haven't yet > created the > dem's (I'll be using ESRI's Spatial Analyst and 3d Analyst)and > don't want to > waste time producing a product that is useless. > Thanks for your time > Travis Kirstine > From bartvde at XS4ALL.NL Fri May 6 15:09:57 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 7 May 2005 00:09:57 +0200 Subject: Oracle and PHP/Mapscript support in Mapserver In-Reply-To: Message-ID: Okay, talked some more with Fernando. Seems Visual Studio 6 using SP4 and above should also do the trick. I am using SP6 now. Quite some work has been done on Oracle Spatial in Mapserver lately, so the best version to go with is 4.6 beta1. I have put down a binary at: http://www.xs4all.nl/~bartvde/mapscript46beta1oci.zip MapServer version 4.6.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Best regards, Bart On Fri, 06 May 2005 22:50:27 +0200, Bart van den Eijnden wrote: > I forgot that for Mapserver OCI queries to work properly, binaries need > to be compiled against Visual Studio 7. I don't have access to that > anymore. > > The only binaries I still have are Mapserver 4.5 (CVS version Feb 2005). > > http://www.xs4all.nl/~bartvde/mapscript45oci.zip > > It is compiled against Oracle client 10.1.0.2 so you will need that. > Please note that the php_mapscript.dll depends on all the dll's in the > download, so also libmap.dll. PHP will need to be able to access all > those dll's, and additionally oci.dll, which I can't distribute. > > MapServer version 4.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER > INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > DEBUG=MSDEBUG > > Let me know how it goes. > > Best regards, > Bart > > On Fri, 06 May 2005 19:11:46 +0200, Bart van den Eijnden > wrote: > >> Hi Erik, >> >> I just re-installed my system so I am not able to help you short-term. >> Maybe I'll find some time this weekend to create 4.4.2 binaries of >> mapscript including Oracle support. I'll compile with the Oracle 10g >> client. >> >> Best regards, >> Bart >> >> On Fri, 06 May 2005 13:40:59 +0200, Fernando Simon >> wrote: >> >>> Hi Erik, >>> About the Win binaries with Oracle Spatial and PHP support I >>> believe that Bart can help you more than I, here I only use Linux. >>> With 4.4.x version of Mapserver you can use the query functions >>> with native Oracle Spatial support without problems, Arnulf wrote in >>> the list that the native support is more fast than ogr connection. >>> Some improves for Oracle Spatial support is in the cvs version of >>> maporacletial.c, so you can try to use the 4.4 version or 4.6-beta. >>> Thanks. >>> >>> ------------------------------------------------------------------------ >>> Fernando Simon >>> Mapserver and Oracle Spatial developer >>> G10 - Laboratorio de Computacao Aplicada - Brazil >>> http://g10.cttmar.univali.br - UNIVALI/CTTMAR >>> ------------------------------------------------------------------------ >>> erik wrote: >>> >>>> Hi, >>>> Does anyone know where to find a Mapserver Windows binary with >>>> Oracle AND MapScript/PHP support? >>>> The ms4w package from DM Solutions does not come with Oracle support, >>>> except through OGR. There is a windows binary with Oracle support on >>>> the Mapserver download pages, but it doesn't have PHP/Mapscript >>>> support, aarrgh.. Also, the Hobu's kitchen sink MapServer 4.4.2 only >>>> contains Mapscript for Java or Python it seems. >>>> Is it true that in order to use the Query functionality in Mapserver >>>> I must access Oracle via OGR? What is the performance when using >>>> OGR's compared to the "native" link? >>>> regards, >>>> erik >>>> >>> >>> >>> >>> >> >> >> > > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From bonk at EOSDATA.GSFC.NASA.GOV Fri May 6 15:34:56 2005 From: bonk at EOSDATA.GSFC.NASA.GOV (John Bonk) Date: Fri, 6 May 2005 18:34:56 -0400 Subject: Possible Proxy Server problem In-Reply-To: Message-ID: Bart, Setting http_proxy in the environment didn't work. I'll see if I can get someone with permission to change the httpd.conf. I'm not entirely sure the fire wall is to blame. All I know is that the map file works on a machine without a fire wall. Thank you for the response, John At 22:19 2005-05-06 +0200, Bart van den Eijnden wrote: >Hi John, > >try specifying http_proxy as an environment variable. If you are using >Apache use SetEnv in httpd.conf. > >See for more information: > >http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=571 > >Best regards, >Bart > >On Fri, 06 May 2005 22:18:36 +0200, John Bonk >wrote: > >>We have been having trouble getting our mapserver to retrieve data from >>remote machines. I suspect the problem may be connecting through our >>proxy >>server. >> >>We have specified our proxy server in a .dodsrc file, and we have been >>able >>to retreive data from a dods server. But we still can't retrieve files >>from wms servers. >> >>Is there something special that has to be done to tell mapserv to go >>through a proxy when retrieving data from a wms server? >> >>The map file is below. It works on another machine that does not have a >>proxy server. >> >>Any help will be appreciated, >>John >> >>MAP >> IMAGETYPE PNG >> EXTENT -117.263 30.168 -83.774 51.676 >> units DD >> >> DEBUG ON >> SIZE 400 300 >> SHAPEPATH "data" >> >> PROJECTION >> "init=epsg:4326" >> END >> >> CONFIG PROJ_LIB /usr/local/share/proj/ >> >> >> >> WEB >> IMAGEPATH '/local/tools/gdaac/TS2/www/workshop/tmp/' >> IMAGEURL '/TS2/workshop/tmp/' >> LOG '/local/tools/gdaac/TS2/www/workshop/debug.log' >> METADATA >> "wms_title" "WMS Test Demo" >> "wms_onlineresource" >>"http://g0dup05u.ecs.nasa.gov/TS2/cgi-bin/mapserv?" >> "wms_abstract" "Test for mapserver" >> "ows_schemas_location" "http://ogc.dmsolutions.ca" >> END >> END >> >> >> >> # >> # Start of scalebar >> # >> SCALEBAR >> IMAGECOLOR 255 50 5 >> LABEL >> COLOR 55 55 55 >> SIZE tiny >> END >> STYLE 1 >> SIZE 100 2 >> COLOR 0 0 0 >> UNITS MILES >> INTERVALS 2 >> TRANSPARENT TRUE >> STATUS EMBED >> END >> >> >> LAYER >> NAME RTOPO >> TYPE RASTER >> units DD >> OFFSITE 0 0 0 >> DEBUG ON >> STATUS DEFAULT >> PROJECTION >> "init=epsg:4326" >> END >> CONNECTIONTYPE WMS >> CONNECTION "http://globe.digitalearth.gov/viz-bin/wmt.cgi?" >> METADATA >> "wms_request" "GetMap" >> "wms_name" "RTOPO" >> "wms_server_version" "1.1.1" >> "wms_srs" "EPSG:4326" >> "wms_format" "image/png" >> END >> END >> >> >> LAYER # MODIS raster layer begins here >> METADATA >> "wms_title" "test layer" >> END >> DEBUG ON >> NAME modis >> DATA RGB_mosaic_250m.tif >> EXTENT -13053641.300000 3358256.867 -9325729.471 5752577.812 >> PROJECTION >> "proj=eqc" >> "lat_ts=0.0" >> "x_0=0.0" >> "y_0=0.0" >> END >> STATUS ON >> TYPE RASTER >> END # MODIS raster layer ends here >> >> LAYER # States line layer begins here >> METADATA >> "wms_title" "test states layer" >> END >> DEBUG ON >> NAME states >> TYPE POLYGON >> STATUS ON >> DATA "statesp020" >> PROJECTION >> "proj=latlong" >> "ellps=GRS80" >> "datum=NAD83" >> END >> CLASS >> NAME "states" >> OUTLINECOLOR 60 60 60 >> SYMBOL 0 >> END >> END # States line layer ends here >> >>END # end of map file. >>======================================= >>John Bonk >>SSAI/NASA GES DISC >>Phone:(301) 614-5280 >>Fax: (301) 614-5268 >>For more information about >>the NASA GES DISC and its services: >>http://daac.gsfc.nasa.gov/ > > > >-- >Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ======================================= John Bonk SSAI/NASA GES DISC Phone:(301) 614-5280 Fax: (301) 614-5268 For more information about the NASA GES DISC and its services: http://daac.gsfc.nasa.gov/ From ujunge at PMCENTRAL.COM Fri May 6 12:08:27 2005 From: ujunge at PMCENTRAL.COM (Uwe Junge) Date: Fri, 6 May 2005 21:08:27 +0200 Subject: queryByShape on PostGIS-Layer segfault in php-mapscript Message-ID: I have a similar Problem to the one posted on Sat, 18 May 2002 17:35:25 -0400 by ([mapserver-users] querybyshape on postgis layer segfault in php mapscript ): When executing queryByShape on PostGis-Layer i receive the following errors: 1) A windows-message "The .. in 0x00d3bac5 points to memory in 0xffff. Unable to Read from memory " (original message was not in english) 2) followed by "The CGI application misbehaved by not returning a complete set of HTTP headers." *** Map-File: *** LAYER TYPE POLYGON CONNECTION "user=postgres password=xxxx dbname=dcmms host=localhost port=5432" CONNECTIONTYPE POSTGIS DATA "the_geom from county" ... END LAYER TYPE POINT CONNECTION "user=postgres password=xxxx dbname=dcmms host=localhost port=5432" CONNECTIONTYPE POSTGIS DATA "the_geom from netbts" ... END *** The PostGis-Table includes an indexed oid. *** *** Configuration: *** - php4.3.11 (cgi-mode) - mapserver-4.4.2-win32-php4.3.11.zip - postgresql-8.0.2.zip - postgis-setup-1.0.0-1.exe When using the original Shape Files (DATA "county.shp" and DATA "netbts.shp") as the Layer-Data instead, everything works. Also, when using either queryByPoint or queryByRect, everything works. Any help would be most appreciated. Uwe From rdmailings at DUIF.NET Fri May 6 20:59:52 2005 From: rdmailings at DUIF.NET (Richard Duivenvoorde) Date: Sat, 7 May 2005 05:59:52 +0200 Subject: ogrinfo show x y columns as strings In-Reply-To: <931f8ea905050612557778c5ee@mail.gmail.com> Message-ID: Frank Warmerdam wrote: > Richard, > > Try: THANKS!! > PS. I have updated the drv_vrt.html to mention that datasources other > than odbc are supported. I didn't add any extra examples though. For simple souls like me examples are very descriptive (specially if there are little quircks like "more then x% of files should be .csv" ;-). Hopefully this thread comes up now when other souls are searching for non-odbc examples (hum, shouldnt' I avoid the word odbc here; so people can google/or search for 'NOT containing odbc'...) Again, Thanks for your time. I owe you a beer/wine/coffee when you're in Haarlem, The Netherlands! Richard From bartvde at XS4ALL.NL Sat May 7 02:41:14 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 7 May 2005 11:41:14 +0200 Subject: Possible Proxy Server problem In-Reply-To: <4.2.0.58.20050506182849.01b9fbb0@localhost> Message-ID: Hi John, For Microsoft IIS an environment variable works. For Apache you need to use SetEnv in httpd.conf. Your problem does sound like a proxy problem to me. Let us know after httpd.conf gets changed. Best regards, Bart On Sat, 07 May 2005 00:34:56 +0200, John Bonk wrote: > Bart, > > Setting http_proxy in the environment didn't work. I'll see if I can get > someone with permission to change the httpd.conf. > > I'm not entirely sure the fire wall is to blame. All I know is that the > map file works on a machine without a fire wall. > > Thank you for the response, > John > > > At 22:19 2005-05-06 +0200, Bart van den Eijnden wrote: >> Hi John, >> >> try specifying http_proxy as an environment variable. If you are using >> Apache use SetEnv in httpd.conf. >> >> See for more information: >> >> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=571 >> >> Best regards, >> Bart >> >> On Fri, 06 May 2005 22:18:36 +0200, John Bonk >> >> wrote: >> >>> We have been having trouble getting our mapserver to retrieve data from >>> remote machines. I suspect the problem may be connecting through our >>> proxy >>> server. >>> >>> We have specified our proxy server in a .dodsrc file, and we have been >>> able >>> to retreive data from a dods server. But we still can't retrieve files >>> from wms servers. >>> >>> Is there something special that has to be done to tell mapserv to go >>> through a proxy when retrieving data from a wms server? >>> >>> The map file is below. It works on another machine that does not have >>> a >>> proxy server. >>> >>> Any help will be appreciated, >>> John >>> >>> MAP >>> IMAGETYPE PNG >>> EXTENT -117.263 30.168 -83.774 51.676 >>> units DD >>> >>> DEBUG ON >>> SIZE 400 300 >>> SHAPEPATH "data" >>> >>> PROJECTION >>> "init=epsg:4326" >>> END >>> >>> CONFIG PROJ_LIB /usr/local/share/proj/ >>> >>> >>> >>> WEB >>> IMAGEPATH '/local/tools/gdaac/TS2/www/workshop/tmp/' >>> IMAGEURL '/TS2/workshop/tmp/' >>> LOG '/local/tools/gdaac/TS2/www/workshop/debug.log' >>> METADATA >>> "wms_title" "WMS Test Demo" >>> "wms_onlineresource" >>> "http://g0dup05u.ecs.nasa.gov/TS2/cgi-bin/mapserv?" >>> "wms_abstract" "Test for mapserver" >>> "ows_schemas_location" "http://ogc.dmsolutions.ca" >>> END >>> END >>> >>> >>> >>> # >>> # Start of scalebar >>> # >>> SCALEBAR >>> IMAGECOLOR 255 50 5 >>> LABEL >>> COLOR 55 55 55 >>> SIZE tiny >>> END >>> STYLE 1 >>> SIZE 100 2 >>> COLOR 0 0 0 >>> UNITS MILES >>> INTERVALS 2 >>> TRANSPARENT TRUE >>> STATUS EMBED >>> END >>> >>> >>> LAYER >>> NAME RTOPO >>> TYPE RASTER >>> units DD >>> OFFSITE 0 0 0 >>> DEBUG ON >>> STATUS DEFAULT >>> PROJECTION >>> "init=epsg:4326" >>> END >>> CONNECTIONTYPE WMS >>> CONNECTION "http://globe.digitalearth.gov/viz-bin/wmt.cgi?" >>> METADATA >>> "wms_request" "GetMap" >>> "wms_name" "RTOPO" >>> "wms_server_version" "1.1.1" >>> "wms_srs" "EPSG:4326" >>> "wms_format" "image/png" >>> END >>> END >>> >>> >>> LAYER # MODIS raster layer begins here >>> METADATA >>> "wms_title" "test layer" >>> END >>> DEBUG ON >>> NAME modis >>> DATA RGB_mosaic_250m.tif >>> EXTENT -13053641.300000 3358256.867 -9325729.471 5752577.812 >>> PROJECTION >>> "proj=eqc" >>> "lat_ts=0.0" >>> "x_0=0.0" >>> "y_0=0.0" >>> END >>> STATUS ON >>> TYPE RASTER >>> END # MODIS raster layer ends here >>> >>> LAYER # States line layer begins here >>> METADATA >>> "wms_title" "test states layer" >>> END >>> DEBUG ON >>> NAME states >>> TYPE POLYGON >>> STATUS ON >>> DATA "statesp020" >>> PROJECTION >>> "proj=latlong" >>> "ellps=GRS80" >>> "datum=NAD83" >>> END >>> CLASS >>> NAME "states" >>> OUTLINECOLOR 60 60 60 >>> SYMBOL 0 >>> END >>> END # States line layer ends here >>> >>> END # end of map file. >>> ======================================= >>> John Bonk >>> SSAI/NASA GES DISC >>> Phone:(301) 614-5280 >>> Fax: (301) 614-5268 >>> For more information about >>> the NASA GES DISC and its services: >>> http://daac.gsfc.nasa.gov/ >> >> >> >> -- >> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > > ======================================= > John Bonk > SSAI/NASA GES DISC > Phone:(301) 614-5280 > Fax: (301) 614-5268 > For more information about > the NASA GES DISC and its services: > http://daac.gsfc.nasa.gov/ > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From bartvde at XS4ALL.NL Sat May 7 03:00:04 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 7 May 2005 12:00:04 +0200 Subject: queryByShape on PostGIS-Layer segfault in php-mapscript In-Reply-To: <427BC0AB.103@pmcentral.com> Message-ID: Hi Uwe, are you able to try with 4.6 beta1? Maybe you even need to update mapquery.c from current CVS. I had a few querybyshape crashes also with 4.4.2, some of them were solved, but not all of them. They disappeared magically when I moved to 4.6 beta1 and got a fix for bug 1335. This might or might not be related: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1335 Assefa: "There was a missing call to msInitShape in function msQueryByShape. I have corrected this the cvs head." Best regards, Bart On Fri, 06 May 2005 21:08:27 +0200, Uwe Junge wrote: > I have a similar Problem to the one posted on Sat, 18 May 2002 17:35:25 > -0400 by > ([mapserver-users] querybyshape on postgis layer segfault in php > mapscript ): > > > When executing queryByShape on PostGis-Layer i receive the following > errors: > > > 1) A windows-message > "The .. in 0x00d3bac5 points to memory in 0xffff. Unable to Read from > memory " > (original message was not in english) > 2) followed by > "The CGI application misbehaved by not returning a complete set of > HTTP headers." > > > *** Map-File: *** > > LAYER > TYPE POLYGON > CONNECTION "user=postgres password=xxxx dbname=dcmms host=localhost > port=5432" > CONNECTIONTYPE POSTGIS > DATA "the_geom from county" > ... > END > > > LAYER > TYPE POINT > CONNECTION "user=postgres password=xxxx dbname=dcmms host=localhost > port=5432" > CONNECTIONTYPE POSTGIS > DATA "the_geom from netbts" > ... > END > > > *** The PostGis-Table includes an indexed oid. *** > > *** Configuration: *** > - php4.3.11 (cgi-mode) > - mapserver-4.4.2-win32-php4.3.11.zip > - postgresql-8.0.2.zip > - postgis-setup-1.0.0-1.exe > > > When using the original Shape Files (DATA "county.shp" and DATA > "netbts.shp") > as the Layer-Data instead, everything works. > Also, when using either queryByPoint or queryByRect, everything works. > > > Any help would be most appreciated. > > Uwe > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From woodbri at SWOODBRIDGE.COM Sat May 7 07:53:31 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 7 May 2005 10:53:31 -0400 Subject: Generating Google Tiles With mapserver Message-ID: Hi all, I posted about generating google-like tiles using mapserver earlier. I took it to the next step of writing a perl/mapscript script to compute the cellsize for each zoom scale and used that to compute the number of tiles I would need to generate to cover my map extents. I thought I would share the results with you. You can probably save maybe 20-30% on the number of tiles if you can recognize all water only tiles and eliminate them, but this leaves you with 70-80% of what looks like infinity for most of us. Scale Num Tiles ---------- ----------- 50000000 256 4000000 3072 1000000 40960 500000 150784 150000 1634816 50000 14586880 15000 161796096 10000 363410944 5000 1453643776 2700 4984920576 ---------- ----------- Total Tiles 6980188160 Approx. Disk Space (assume 3K per tile) = 21,443,138,027,520 SOoooo, it requires about 7 Billion 128x128 tiles and assuming that the average tile size is about 3K (the smallest tile that I have seen google return) it requires 21 Tera bytes of disk space. It gets worse! If you assume you can generate 1000 tiles minute (16+/sec) then: 6,980,188,160 / 1000 tiles/min / 60 min/hr / 24 hr/day / 365 day/yr = 13.3 yrs 1,000 tiles/min = 13.3 yr = 4847 days 10,000 tiles/min = 1.33 yr = 485 days 100,000 tiles/min = 0.13 yr = 49 days The only way to do the higher generation rates is in a highly distributed environment or you run into I/O bottle necks both reading and writing data. Oh yeah, I only used 10 zoom scales above, Google has 15, so you do the math :) An alternative to pre generating the tiles, is generating them on the fly as they are need and caching them, then removing the least used ones over time. This is a much more complicated scenario and requires a lot of additional code to manage them. Also you can not just generate a single tile as needed because of the way mapserver handles dynamic placement of labels. You would need to generate a "super" tile of say 8x8 or 16x16 tiles and chop it into the standard tiles. I looked at generating a 16x16 super tile at 2048x2048 pixels that would get chopped into 256 tiles for pre-generation, but 6x6 tiles (768x768 pixels) might be better for dynamic generation. You would have to find the sweet spot where the super tile is large enough to minimize labeling issues and small enough the it generates and chops quickly. -Steve W. From saintsjd at YAHOO.COM Sat May 7 08:43:08 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Sat, 7 May 2005 08:43:08 -0700 Subject: A demo of Generating Google Tiles With mapserver In-Reply-To: 6667 Message-ID: I have implemented a demo using python mapscript and mapserver that gives very basic functionality simillar to google maps. I do not pre-render maps at the various scales. mapscale are rendered on the fly and the indiviual tile images are sent directly to the user - never saved on disk. I know this will cause problems for labeling, but there may be a way around this with some DHTML tricks. Please remember that this demo is running off of my desktop computer over a wifi connection. performance may be very slow and my poor desktop might crash with too many hits. I offer only a proof of concept and welcome coments from the list. Right now the demo only works in Mozilla Firefox (on Win, Linux and OsX). If you zoom in far enough on the washington DC map you will see aerial photos. Click the "START HERE" button to start the app. http://216.15.56.185:8080/jons/indon/client/test.xul Thanks JOn --- Stephen Woodbridge wrote: > Hi all, > > I posted about generating google-like tiles using > mapserver earlier. I > took it to the next step of writing a perl/mapscript > script to compute > the cellsize for each zoom scale and used that to > compute the number of > tiles I would need to generate to cover my map > extents. I thought I > would share the results with you. You can probably > save maybe 20-30% on > the number of tiles if you can recognize all water > only tiles and > eliminate them, but this leaves you with 70-80% of > what looks like > infinity for most of us. > > Scale Num Tiles > ---------- ----------- > 50000000 256 > 4000000 3072 > 1000000 40960 > 500000 150784 > 150000 1634816 > 50000 14586880 > 15000 161796096 > 10000 363410944 > 5000 1453643776 > 2700 4984920576 > ---------- ----------- > Total Tiles 6980188160 > Approx. Disk Space (assume 3K per tile) = > 21,443,138,027,520 > > SOoooo, it requires about 7 Billion 128x128 tiles > and assuming that the > average tile size is about 3K (the smallest tile > that I have seen google > return) it requires 21 Tera bytes of disk space. It > gets worse! > > If you assume you can generate 1000 tiles minute > (16+/sec) then: > > 6,980,188,160 / 1000 tiles/min / 60 min/hr / 24 > hr/day / 365 day/yr = > 13.3 yrs > > 1,000 tiles/min = 13.3 yr = 4847 days > 10,000 tiles/min = 1.33 yr = 485 days > 100,000 tiles/min = 0.13 yr = 49 days > > The only way to do the higher generation rates is in > a highly > distributed environment or you run into I/O bottle > necks both reading > and writing data. > > Oh yeah, I only used 10 zoom scales above, Google > has 15, so you do the > math :) > > An alternative to pre generating the tiles, is > generating them on the > fly as they are need and caching them, then removing > the least used ones > over time. This is a much more complicated scenario > and requires a lot > of additional code to manage them. Also you can not > just generate a > single tile as needed because of the way mapserver > handles dynamic > placement of labels. You would need to generate a > "super" tile of say > 8x8 or 16x16 tiles and chop it into the standard > tiles. I looked at > generating a 16x16 super tile at 2048x2048 pixels > that would get chopped > into 256 tiles for pre-generation, but 6x6 tiles > (768x768 pixels) might > be better for dynamic generation. You would have to > find the sweet spot > where the super tile is large enough to minimize > labeling issues and > small enough the it generates and chops quickly. > > -Steve W. > From gmanepal at GMAIL.COM Sat May 7 08:55:08 2005 From: gmanepal at GMAIL.COM (Giridhar Manepalli) Date: Sat, 7 May 2005 11:55:08 -0400 Subject: disappearing points In-Reply-To: Message-ID: Hello Gerard, What was the problem? If you can let us know the way you dealth for the points to display, that would be helpful. Thanks, Giridhar On 5/6/05, gerard barrington wrote: > Hi again, > replying to my own post....fixed the solution. > > Thanks, > Gerard > > >From: gerard barrington > >Reply-To: gerard barrington > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: [UMN_MAPSERVER-USERS] disappearing points > >Date: Fri, 6 May 2005 09:18:33 -0230 > > > >Hi all, > > > >I'm having a bit of trouble with some shapefiles and was hoping someone > >could offer advice. > > > >I'm using mapserver 4.4 to display my point and line shapefiles. The symbol > >are displayed as images I have specified in a symbol file and the lines > >simply as black lines. If I zoom in at a close range, the points disappear. > >The lines remain visible but not the points. Zooming out brings them back > >again. > > > >The minscale and maxscale are not set so all shapes should be displayed at > >any zoom level. > > > >Thanks in advance, > >Gerard > From p.weber at UCL.AC.UK Sat May 7 09:01:33 2005 From: p.weber at UCL.AC.UK (Patrick Weber) Date: Sat, 7 May 2005 17:01:33 +0100 Subject: A demo of Generating Google Tiles With mapserver In-Reply-To: <20050507154308.94235.qmail@web53901.mail.yahoo.com> Message-ID: Great it works perfect with my PC , running firefox. Amazing and its quite fast. The Washington DC example could use some labels I want to find the White House !!! Hope you can share your implementation with the mailing list soon, this has great potential ! Jon Saints wrote: > I have implemented a demo using python mapscript and > mapserver that gives very basic functionality simillar > to google maps. > > I do not pre-render maps at the various scales. > mapscale are rendered on the fly and the indiviual > tile images are sent directly to the user - never > saved on disk. I know this will cause problems for > labeling, but there may be a way around this with some > DHTML tricks. > > Please remember that this demo is running off of my > desktop computer over a wifi connection. performance > may be very slow and my poor desktop might crash with > too many hits. I offer only a proof of concept and > welcome coments from the list. > > Right now the demo only works in Mozilla Firefox (on > Win, Linux and OsX). If you zoom in far enough on the > washington DC map you will see aerial photos. > > > Click the "START HERE" button to start the app. > http://216.15.56.185:8080/jons/indon/client/test.xul > > Thanks > JOn > > > > > > > > --- Stephen Woodbridge > wrote: > >>Hi all, >> >>I posted about generating google-like tiles using >>mapserver earlier. I >>took it to the next step of writing a perl/mapscript >>script to compute >>the cellsize for each zoom scale and used that to >>compute the number of >>tiles I would need to generate to cover my map >>extents. I thought I >>would share the results with you. You can probably >>save maybe 20-30% on >>the number of tiles if you can recognize all water >>only tiles and >>eliminate them, but this leaves you with 70-80% of >>what looks like >>infinity for most of us. >> >> Scale Num Tiles >> ---------- ----------- >> 50000000 256 >> 4000000 3072 >> 1000000 40960 >> 500000 150784 >> 150000 1634816 >> 50000 14586880 >> 15000 161796096 >> 10000 363410944 >> 5000 1453643776 >> 2700 4984920576 >> ---------- ----------- >> Total Tiles 6980188160 >> Approx. Disk Space (assume 3K per tile) = >>21,443,138,027,520 >> >>SOoooo, it requires about 7 Billion 128x128 tiles >>and assuming that the >>average tile size is about 3K (the smallest tile >>that I have seen google >>return) it requires 21 Tera bytes of disk space. It >>gets worse! >> >>If you assume you can generate 1000 tiles minute >>(16+/sec) then: >> >>6,980,188,160 / 1000 tiles/min / 60 min/hr / 24 >>hr/day / 365 day/yr = >>13.3 yrs >> >> 1,000 tiles/min = 13.3 yr = 4847 days >> 10,000 tiles/min = 1.33 yr = 485 days >>100,000 tiles/min = 0.13 yr = 49 days >> >>The only way to do the higher generation rates is in >>a highly >>distributed environment or you run into I/O bottle >>necks both reading >>and writing data. >> >>Oh yeah, I only used 10 zoom scales above, Google >>has 15, so you do the >>math :) >> >>An alternative to pre generating the tiles, is >>generating them on the >>fly as they are need and caching them, then removing >>the least used ones >>over time. This is a much more complicated scenario >>and requires a lot >>of additional code to manage them. Also you can not >>just generate a >>single tile as needed because of the way mapserver >>handles dynamic >>placement of labels. You would need to generate a >>"super" tile of say >>8x8 or 16x16 tiles and chop it into the standard >>tiles. I looked at >>generating a 16x16 super tile at 2048x2048 pixels >>that would get chopped >>into 256 tiles for pre-generation, but 6x6 tiles >>(768x768 pixels) might >>be better for dynamic generation. You would have to >>find the sweet spot >>where the super tile is large enough to minimize >>labeling issues and >>small enough the it generates and chops quickly. >> >>-Steve W. >> -- ________________________________________ Patrick Weber | p.weber at ucl.ac.uk Research Associate Centre for Advanced Spatial Analysis http://www.casa.ucl.ac.uk/ University College London ________________________________________ From saintsjd at YAHOO.COM Sat May 7 09:14:30 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Sat, 7 May 2005 09:14:30 -0700 Subject: A demo of Generating Google Tiles With mapserver In-Reply-To: <427CE65D.1030109@ucl.ac.uk> Message-ID: I will be sharing everything. --- Patrick Weber wrote: > Great it works perfect with my PC , running firefox. > Amazing and its > quite fast. The Washington DC example could use some > labels I want to > find the White House !!! > > Hope you can share your implementation with the > mailing list soon, this > has great potential ! > > > Jon Saints wrote: > > I have implemented a demo using python mapscript > and > > mapserver that gives very basic functionality > simillar > > to google maps. > > > > I do not pre-render maps at the various scales. > > mapscale are rendered on the fly and the indiviual > > tile images are sent directly to the user - never > > saved on disk. I know this will cause problems > for > > labeling, but there may be a way around this with > some > > DHTML tricks. > > > > Please remember that this demo is running off of > my > > desktop computer over a wifi connection. > performance > > may be very slow and my poor desktop might crash > with > > too many hits. I offer only a proof of concept and > > welcome coments from the list. > > > > Right now the demo only works in Mozilla Firefox > (on > > Win, Linux and OsX). If you zoom in far enough on > the > > washington DC map you will see aerial photos. > > > > > > Click the "START HERE" button to start the app. > > > http://216.15.56.185:8080/jons/indon/client/test.xul > > > > Thanks > > JOn > > > > > > > > > > > > > > > > --- Stephen Woodbridge > > wrote: > > > >>Hi all, > >> > >>I posted about generating google-like tiles using > >>mapserver earlier. I > >>took it to the next step of writing a > perl/mapscript > >>script to compute > >>the cellsize for each zoom scale and used that to > >>compute the number of > >>tiles I would need to generate to cover my map > >>extents. I thought I > >>would share the results with you. You can probably > >>save maybe 20-30% on > >>the number of tiles if you can recognize all water > >>only tiles and > >>eliminate them, but this leaves you with 70-80% of > >>what looks like > >>infinity for most of us. > >> > >> Scale Num Tiles > >> ---------- ----------- > >> 50000000 256 > >> 4000000 3072 > >> 1000000 40960 > >> 500000 150784 > >> 150000 1634816 > >> 50000 14586880 > >> 15000 161796096 > >> 10000 363410944 > >> 5000 1453643776 > >> 2700 4984920576 > >> ---------- ----------- > >> Total Tiles 6980188160 > >> Approx. Disk Space (assume 3K per tile) = > >>21,443,138,027,520 > >> > >>SOoooo, it requires about 7 Billion 128x128 tiles > >>and assuming that the > >>average tile size is about 3K (the smallest tile > >>that I have seen google > >>return) it requires 21 Tera bytes of disk space. > It > >>gets worse! > >> > >>If you assume you can generate 1000 tiles minute > >>(16+/sec) then: > >> > >>6,980,188,160 / 1000 tiles/min / 60 min/hr / 24 > >>hr/day / 365 day/yr = > >>13.3 yrs > >> > >> 1,000 tiles/min = 13.3 yr = 4847 days > >> 10,000 tiles/min = 1.33 yr = 485 days > >>100,000 tiles/min = 0.13 yr = 49 days > >> > >>The only way to do the higher generation rates is > in > >>a highly > >>distributed environment or you run into I/O bottle > >>necks both reading > >>and writing data. > >> > >>Oh yeah, I only used 10 zoom scales above, Google > >>has 15, so you do the > >>math :) > >> > >>An alternative to pre generating the tiles, is > >>generating them on the > >>fly as they are need and caching them, then > removing > >>the least used ones > >>over time. This is a much more complicated > scenario > >>and requires a lot > >>of additional code to manage them. Also you can > not > >>just generate a > >>single tile as needed because of the way mapserver > >>handles dynamic > >>placement of labels. You would need to generate a > >>"super" tile of say > >>8x8 or 16x16 tiles and chop it into the standard > >>tiles. I looked at > >>generating a 16x16 super tile at 2048x2048 pixels > >>that would get chopped > >>into 256 tiles for pre-generation, but 6x6 tiles > >>(768x768 pixels) might > >>be better for dynamic generation. You would have > to > >>find the sweet spot > >>where the super tile is large enough to minimize > >>labeling issues and > >>small enough the it generates and chops quickly. > >> > >>-Steve W. > >> > > -- > ________________________________________ > > Patrick Weber | p.weber at ucl.ac.uk > > Research Associate > > Centre for Advanced Spatial Analysis > http://www.casa.ucl.ac.uk/ > > University College London > ________________________________________ > From woodbri at SWOODBRIDGE.COM Sat May 7 09:18:07 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 7 May 2005 12:18:07 -0400 Subject: A demo of Generating Google Tiles With mapserver In-Reply-To: <20050507154308.94235.qmail@web53901.mail.yahoo.com> Message-ID: Jon, Very nice demo and performace is very good also. I would be interested in converting it to perl/mapscript and help to improve it. -Steve W. Jon Saints wrote: > I have implemented a demo using python mapscript and > mapserver that gives very basic functionality simillar > to google maps. > > I do not pre-render maps at the various scales. > mapscale are rendered on the fly and the indiviual > tile images are sent directly to the user - never > saved on disk. I know this will cause problems for > labeling, but there may be a way around this with some > DHTML tricks. > > Please remember that this demo is running off of my > desktop computer over a wifi connection. performance > may be very slow and my poor desktop might crash with > too many hits. I offer only a proof of concept and > welcome coments from the list. > > Right now the demo only works in Mozilla Firefox (on > Win, Linux and OsX). If you zoom in far enough on the > washington DC map you will see aerial photos. > > > Click the "START HERE" button to start the app. > http://216.15.56.185:8080/jons/indon/client/test.xul > > Thanks > JOn > > > > > > > > --- Stephen Woodbridge > wrote: > >>Hi all, >> >>I posted about generating google-like tiles using >>mapserver earlier. I >>took it to the next step of writing a perl/mapscript >>script to compute >>the cellsize for each zoom scale and used that to >>compute the number of >>tiles I would need to generate to cover my map >>extents. I thought I >>would share the results with you. You can probably >>save maybe 20-30% on >>the number of tiles if you can recognize all water >>only tiles and >>eliminate them, but this leaves you with 70-80% of >>what looks like >>infinity for most of us. >> >> Scale Num Tiles >> ---------- ----------- >> 50000000 256 >> 4000000 3072 >> 1000000 40960 >> 500000 150784 >> 150000 1634816 >> 50000 14586880 >> 15000 161796096 >> 10000 363410944 >> 5000 1453643776 >> 2700 4984920576 >> ---------- ----------- >> Total Tiles 6980188160 >> Approx. Disk Space (assume 3K per tile) = >>21,443,138,027,520 >> >>SOoooo, it requires about 7 Billion 128x128 tiles >>and assuming that the >>average tile size is about 3K (the smallest tile >>that I have seen google >>return) it requires 21 Tera bytes of disk space. It >>gets worse! >> >>If you assume you can generate 1000 tiles minute >>(16+/sec) then: >> >>6,980,188,160 / 1000 tiles/min / 60 min/hr / 24 >>hr/day / 365 day/yr = >>13.3 yrs >> >> 1,000 tiles/min = 13.3 yr = 4847 days >> 10,000 tiles/min = 1.33 yr = 485 days >>100,000 tiles/min = 0.13 yr = 49 days >> >>The only way to do the higher generation rates is in >>a highly >>distributed environment or you run into I/O bottle >>necks both reading >>and writing data. >> >>Oh yeah, I only used 10 zoom scales above, Google >>has 15, so you do the >>math :) >> >>An alternative to pre generating the tiles, is >>generating them on the >>fly as they are need and caching them, then removing >>the least used ones >>over time. This is a much more complicated scenario >>and requires a lot >>of additional code to manage them. Also you can not >>just generate a >>single tile as needed because of the way mapserver >>handles dynamic >>placement of labels. You would need to generate a >>"super" tile of say >>8x8 or 16x16 tiles and chop it into the standard >>tiles. I looked at >>generating a 16x16 super tile at 2048x2048 pixels >>that would get chopped >>into 256 tiles for pre-generation, but 6x6 tiles >>(768x768 pixels) might >>be better for dynamic generation. You would have to >>find the sweet spot >>where the super tile is large enough to minimize >>labeling issues and >>small enough the it generates and chops quickly. >> >>-Steve W. >> > > From sgillies at FRII.COM Sat May 7 09:24:47 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Sat, 7 May 2005 10:24:47 -0600 Subject: A demo of Generating Google Tiles With mapserver In-Reply-To: Message-ID: Steve, Don't you mean "help to obfuscate it"? :) Sweet work, Jon! Yves Moisan and I need to talk to you about whether we can use this code in our Plone mapping product. cheers, Sean On May 7, 2005, at 10:18 AM, Stephen Woodbridge wrote: > Jon, > > Very nice demo and performace is very good also. I would be interested > in converting it to perl/mapscript and help to improve it. > > -Steve W. > > Jon Saints wrote: >> I have implemented a demo using python mapscript and >> mapserver that gives very basic functionality simillar >> to google maps. >> >> I do not pre-render maps at the various scales. >> mapscale are rendered on the fly and the indiviual >> tile images are sent directly to the user - never >> saved on disk. I know this will cause problems for >> labeling, but there may be a way around this with some >> DHTML tricks. >> >> Please remember that this demo is running off of my >> desktop computer over a wifi connection. performance >> may be very slow and my poor desktop might crash with >> too many hits. I offer only a proof of concept and >> welcome coments from the list. >> >> Right now the demo only works in Mozilla Firefox (on >> Win, Linux and OsX). If you zoom in far enough on the >> washington DC map you will see aerial photos. >> >> >> Click the "START HERE" button to start the app. >> http://216.15.56.185:8080/jons/indon/client/test.xul >> >> Thanks >> JOn >> >> >> >> >> >> >> >> --- Stephen Woodbridge >> wrote: >> >>> Hi all, >>> >>> I posted about generating google-like tiles using >>> mapserver earlier. I >>> took it to the next step of writing a perl/mapscript >>> script to compute >>> the cellsize for each zoom scale and used that to >>> compute the number of >>> tiles I would need to generate to cover my map >>> extents. I thought I >>> would share the results with you. You can probably >>> save maybe 20-30% on >>> the number of tiles if you can recognize all water >>> only tiles and >>> eliminate them, but this leaves you with 70-80% of >>> what looks like >>> infinity for most of us. >>> >>> Scale Num Tiles >>> ---------- ----------- >>> 50000000 256 >>> 4000000 3072 >>> 1000000 40960 >>> 500000 150784 >>> 150000 1634816 >>> 50000 14586880 >>> 15000 161796096 >>> 10000 363410944 >>> 5000 1453643776 >>> 2700 4984920576 >>> ---------- ----------- >>> Total Tiles 6980188160 >>> Approx. Disk Space (assume 3K per tile) = >>> 21,443,138,027,520 >>> >>> SOoooo, it requires about 7 Billion 128x128 tiles >>> and assuming that the >>> average tile size is about 3K (the smallest tile >>> that I have seen google >>> return) it requires 21 Tera bytes of disk space. It >>> gets worse! >>> >>> If you assume you can generate 1000 tiles minute >>> (16+/sec) then: >>> >>> 6,980,188,160 / 1000 tiles/min / 60 min/hr / 24 >>> hr/day / 365 day/yr = >>> 13.3 yrs >>> >>> 1,000 tiles/min = 13.3 yr = 4847 days >>> 10,000 tiles/min = 1.33 yr = 485 days >>> 100,000 tiles/min = 0.13 yr = 49 days >>> >>> The only way to do the higher generation rates is in >>> a highly >>> distributed environment or you run into I/O bottle >>> necks both reading >>> and writing data. >>> >>> Oh yeah, I only used 10 zoom scales above, Google >>> has 15, so you do the >>> math :) >>> >>> An alternative to pre generating the tiles, is >>> generating them on the >>> fly as they are need and caching them, then removing >>> the least used ones >>> over time. This is a much more complicated scenario >>> and requires a lot >>> of additional code to manage them. Also you can not >>> just generate a >>> single tile as needed because of the way mapserver >>> handles dynamic >>> placement of labels. You would need to generate a >>> "super" tile of say >>> 8x8 or 16x16 tiles and chop it into the standard >>> tiles. I looked at >>> generating a 16x16 super tile at 2048x2048 pixels >>> that would get chopped >>> into 256 tiles for pre-generation, but 6x6 tiles >>> (768x768 pixels) might >>> be better for dynamic generation. You would have to >>> find the sweet spot >>> where the super tile is large enough to minimize >>> labeling issues and >>> small enough the it generates and chops quickly. >>> >>> -Steve W. >>> >> >> > From woodbri at SWOODBRIDGE.COM Sat May 7 09:32:29 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 7 May 2005 12:32:29 -0400 Subject: A demo of Generating Google Tiles With mapserver In-Reply-To: <2209122c29469f04bb96bc3084c120ee@frii.com> Message-ID: Sean, Yeah, that is exactly what I meant! :) Jon has done an great job of getting something working, while I have only generated a lot of really BIG numbers. I'd rather be putting my time to adding features to the cool work Jon has done instead following in his foot steps and probably not doing it as well. -Steve Sean Gillies wrote: > Steve, > > Don't you mean "help to obfuscate it"? :) > > Sweet work, Jon! Yves Moisan and I need to talk to you about whether > we can use this code in our Plone mapping product. > > cheers, > Sean > > > On May 7, 2005, at 10:18 AM, Stephen Woodbridge wrote: > >> Jon, >> >> Very nice demo and performace is very good also. I would be interested >> in converting it to perl/mapscript and help to improve it. >> >> -Steve W. >> >> Jon Saints wrote: >> >>> I have implemented a demo using python mapscript and >>> mapserver that gives very basic functionality simillar >>> to google maps. >>> >>> I do not pre-render maps at the various scales. >>> mapscale are rendered on the fly and the indiviual >>> tile images are sent directly to the user - never >>> saved on disk. I know this will cause problems for >>> labeling, but there may be a way around this with some >>> DHTML tricks. >>> >>> Please remember that this demo is running off of my >>> desktop computer over a wifi connection. performance >>> may be very slow and my poor desktop might crash with >>> too many hits. I offer only a proof of concept and >>> welcome coments from the list. >>> >>> Right now the demo only works in Mozilla Firefox (on >>> Win, Linux and OsX). If you zoom in far enough on the >>> washington DC map you will see aerial photos. >>> >>> >>> Click the "START HERE" button to start the app. >>> http://216.15.56.185:8080/jons/indon/client/test.xul >>> >>> Thanks >>> JOn >>> >>> >>> >>> >>> >>> >>> >>> --- Stephen Woodbridge >>> wrote: >>> >>>> Hi all, >>>> >>>> I posted about generating google-like tiles using >>>> mapserver earlier. I >>>> took it to the next step of writing a perl/mapscript >>>> script to compute >>>> the cellsize for each zoom scale and used that to >>>> compute the number of >>>> tiles I would need to generate to cover my map >>>> extents. I thought I >>>> would share the results with you. You can probably >>>> save maybe 20-30% on >>>> the number of tiles if you can recognize all water >>>> only tiles and >>>> eliminate them, but this leaves you with 70-80% of >>>> what looks like >>>> infinity for most of us. >>>> >>>> Scale Num Tiles >>>> ---------- ----------- >>>> 50000000 256 >>>> 4000000 3072 >>>> 1000000 40960 >>>> 500000 150784 >>>> 150000 1634816 >>>> 50000 14586880 >>>> 15000 161796096 >>>> 10000 363410944 >>>> 5000 1453643776 >>>> 2700 4984920576 >>>> ---------- ----------- >>>> Total Tiles 6980188160 >>>> Approx. Disk Space (assume 3K per tile) = >>>> 21,443,138,027,520 >>>> >>>> SOoooo, it requires about 7 Billion 128x128 tiles >>>> and assuming that the >>>> average tile size is about 3K (the smallest tile >>>> that I have seen google >>>> return) it requires 21 Tera bytes of disk space. It >>>> gets worse! >>>> >>>> If you assume you can generate 1000 tiles minute >>>> (16+/sec) then: >>>> >>>> 6,980,188,160 / 1000 tiles/min / 60 min/hr / 24 >>>> hr/day / 365 day/yr = >>>> 13.3 yrs >>>> >>>> 1,000 tiles/min = 13.3 yr = 4847 days >>>> 10,000 tiles/min = 1.33 yr = 485 days >>>> 100,000 tiles/min = 0.13 yr = 49 days >>>> >>>> The only way to do the higher generation rates is in >>>> a highly >>>> distributed environment or you run into I/O bottle >>>> necks both reading >>>> and writing data. >>>> >>>> Oh yeah, I only used 10 zoom scales above, Google >>>> has 15, so you do the >>>> math :) >>>> >>>> An alternative to pre generating the tiles, is >>>> generating them on the >>>> fly as they are need and caching them, then removing >>>> the least used ones >>>> over time. This is a much more complicated scenario >>>> and requires a lot >>>> of additional code to manage them. Also you can not >>>> just generate a >>>> single tile as needed because of the way mapserver >>>> handles dynamic >>>> placement of labels. You would need to generate a >>>> "super" tile of say >>>> 8x8 or 16x16 tiles and chop it into the standard >>>> tiles. I looked at >>>> generating a 16x16 super tile at 2048x2048 pixels >>>> that would get chopped >>>> into 256 tiles for pre-generation, but 6x6 tiles >>>> (768x768 pixels) might >>>> be better for dynamic generation. You would have to >>>> find the sweet spot >>>> where the super tile is large enough to minimize >>>> labeling issues and >>>> small enough the it generates and chops quickly. >>>> >>>> -Steve W. >>>> >>> >>> >> > From woodbri at SWOODBRIDGE.COM Sat May 7 09:34:49 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 7 May 2005 12:34:49 -0400 Subject: Minfeaturesize?? In-Reply-To: <427820F1.50803@swoodbridge.com> Message-ID: I still haven't not figure out a way to solve this issue. What are other people doing about this? -Steve Stephen Woodbridge wrote: > Hi all, > > I thought there was a way to suppress features from being drawn with > MINFEATURESIZE, but it only seems to work for labels. Am I missing > something? > > I have a layer with water polygons and they are getting displayed as > single pixels and I would like to suppress them. Is there an easy way to > do this short of adding an area attribute and filtering based on that? > > Thanks, > -Steve > From ujunge at PMCENTRAL.COM Sat May 7 03:43:06 2005 From: ujunge at PMCENTRAL.COM (Uwe Junge) Date: Sat, 7 May 2005 12:43:06 +0200 Subject: queryByShape on PostGIS-Layer segfault in php-mapscript Message-ID: Thank You very much Bart. Unfortunatly, I rely at this time completely on the binary package made available at maptools.org; the latest version there is mapserver-4.5-win32-php4.3.7.zip built on March-15. So let's wait ... The function to do queries-by-shape are essential to our application. Yesterday, I tried PostGis 1.0.0 and was really pleased (see further down) . Currently, all the data, including dynamically generated data, are sourced as shapefiles in a multi-server arrangement. The overhead to distribute dynamically generated data to serveral servers is quit significant at this time. Of course, additional functionality can be developed around the application when using PostGis as an additional source, in partiular when it comes - to large Attribut-Datasets (for example Census SF1 & SF3 with about 16K Attributes) that needs to be sourced for thematic maps, - or when using serveral mapservers in parallel with dynamic content stored on one single PostGis-Server. Developing a separate, scripted direct search on PostGis on the back-end is not an option, since the overhead to append the results one-by-one to the mapserver-query-result-set (*.qyr), on which the application relies, is way to much. Just for interest, let me summarize my experience with mapserver: I made several attempts to build php_mapscript.dll from the sources with ms vc, together with postgres/postgis on cygwin, spend a lot of time and never got it working. So i focus on application development instead an use the binary packages for the installations. Fortunatly, i found yesterday the brand new installers for postgres 80 and postgis; - it took me 4 hours to install, to write a script and to import 1Gig worth of Tiger-shape files and geocoded database content. I'm **very** pleased about the speed of mapserver in conjunction with postgis, there is only a relatively small rendering-time difference (varying between 0..30%) for the colocated, postgres server out-of-the-box compared to reading the indexed shape files (tiles) directly ! The PostGis-Team did a great job with their new Version 1.0.0. Also, i'm **very** pleased about the very small foot-print of php_mapscript compared to other GIS-servers. Map-File and Layer-Managment are anyway custom, so these additional capabilities of 'competing products' are of no use (for us) anyway. To my surprise, rendering time (ca 30 Gig of mapdata browsed) on my new notebook (mobile Athlon 3700+,1Gig Ram with a 7.200 rpm HD on USB2.0) was significantly faster compared to development- or the production server (Dual Xeon 2.4-2.8GHz, 4Gig RAM, SCSI Raid10 15K rpm HD) !!!!!! Of course I know when more user simultaniously access the services, this situation will change. But the lesson learned for mapserver is to spend the money for the processors and not for the disks. Last year we also made an attempt to to use Linux (32bit) for the mapservers, apart from getting php_mapscript working, rendering was significantly slower compared to W2K on the same hardware. But that should change when using 64bit versions and hardware. Uwe Junge CTO PMCentral Systems, Inc. 4201 Pinefield Court Fairfax, VA 22033 From sgillies at FRII.COM Sat May 7 09:40:11 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Sat, 7 May 2005 10:40:11 -0600 Subject: A demo of Generating Google Tiles With mapserver In-Reply-To: Message-ID: Thanks for being a good sport about my Python vs Perl joke :) I'm sure there would be a lot of javascript that could be shared regardless of the mapscripting language. Sean On May 7, 2005, at 10:32 AM, Stephen Woodbridge wrote: > Sean, > > Yeah, that is exactly what I meant! :) Jon has done an great job of > getting something working, while I have only generated a lot of really > BIG numbers. I'd rather be putting my time to adding features to the > cool work Jon has done instead following in his foot steps and probably > not doing it as well. > > -Steve > > Sean Gillies wrote: >> Steve, >> >> Don't you mean "help to obfuscate it"? :) >> >> Sweet work, Jon! Yves Moisan and I need to talk to you about whether >> we can use this code in our Plone mapping product. >> >> cheers, >> Sean >> >> >> On May 7, 2005, at 10:18 AM, Stephen Woodbridge wrote: >> >>> Jon, >>> >>> Very nice demo and performace is very good also. I would be >>> interested >>> in converting it to perl/mapscript and help to improve it. >>> >>> -Steve W. >>> >>> Jon Saints wrote: >>> >>>> I have implemented a demo using python mapscript and >>>> mapserver that gives very basic functionality simillar >>>> to google maps. >>>> >>>> I do not pre-render maps at the various scales. >>>> mapscale are rendered on the fly and the indiviual >>>> tile images are sent directly to the user - never >>>> saved on disk. I know this will cause problems for >>>> labeling, but there may be a way around this with some >>>> DHTML tricks. >>>> >>>> Please remember that this demo is running off of my >>>> desktop computer over a wifi connection. performance >>>> may be very slow and my poor desktop might crash with >>>> too many hits. I offer only a proof of concept and >>>> welcome coments from the list. >>>> >>>> Right now the demo only works in Mozilla Firefox (on >>>> Win, Linux and OsX). If you zoom in far enough on the >>>> washington DC map you will see aerial photos. >>>> >>>> >>>> Click the "START HERE" button to start the app. >>>> http://216.15.56.185:8080/jons/indon/client/test.xul >>>> >>>> Thanks >>>> JOn From sgillies at FRII.COM Sat May 7 09:43:39 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Sat, 7 May 2005 10:43:39 -0600 Subject: Minfeaturesize?? In-Reply-To: Message-ID: Steve, Yeah, it's for labels only. You'll need an area attribute. In several apps I've sorted water bodies, parks, etc by area and then use the maxfeatures directive to render just the first N (ie largest) features within a map view. Works great. If you have a RDBMS backend, you can have it order and limit for you. cheers, Sean On May 7, 2005, at 10:34 AM, Stephen Woodbridge wrote: > I still haven't not figure out a way to solve this issue. What are > other > people doing about this? > > -Steve > > Stephen Woodbridge wrote: >> Hi all, >> >> I thought there was a way to suppress features from being drawn with >> MINFEATURESIZE, but it only seems to work for labels. Am I missing >> something? >> >> I have a layer with water polygons and they are getting displayed as >> single pixels and I would like to suppress them. Is there an easy way >> to >> do this short of adding an area attribute and filtering based on that? >> >> Thanks, >> -Steve >> > > -- Sean Gillies sgillies at frii dot com http://zcologia.com From saintsjd at YAHOO.COM Sat May 7 10:19:03 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Sat, 7 May 2005 10:19:03 -0700 Subject: A demo of Generating Google Tiles With mapserver In-Reply-To: 6667 Message-ID: True the server side could be implemented in any language that talks mapscript and xml. The front end is an simple xmlHTTPrequest javascript client. As far as labeling I would like to generate label points for polygons and render the labels as DHTML on the client side. I wanted to say a special thanks to Sean Gillies and all others for their work creating and documenting mapscript. Jon --- Sean Gillies wrote: > Thanks for being a good sport about my Python vs > Perl joke :) > > I'm sure there would be a lot of javascript that > could be shared > regardless of the mapscripting language. > > Sean > > On May 7, 2005, at 10:32 AM, Stephen Woodbridge > wrote: > > > Sean, > > > > Yeah, that is exactly what I meant! :) Jon has > done an great job of > > getting something working, while I have only > generated a lot of really > > BIG numbers. I'd rather be putting my time to > adding features to the > > cool work Jon has done instead following in his > foot steps and probably > > not doing it as well. > > > > -Steve > > > > Sean Gillies wrote: > >> Steve, > >> > >> Don't you mean "help to obfuscate it"? :) > >> > >> Sweet work, Jon! Yves Moisan and I need to talk > to you about whether > >> we can use this code in our Plone mapping > product. > >> > >> cheers, > >> Sean > >> > >> > >> On May 7, 2005, at 10:18 AM, Stephen Woodbridge > wrote: > >> > >>> Jon, > >>> > >>> Very nice demo and performace is very good also. > I would be > >>> interested > >>> in converting it to perl/mapscript and help to > improve it. > >>> > >>> -Steve W. > >>> > >>> Jon Saints wrote: > >>> > >>>> I have implemented a demo using python > mapscript and > >>>> mapserver that gives very basic functionality > simillar > >>>> to google maps. > >>>> > >>>> I do not pre-render maps at the various scales. > >>>> mapscale are rendered on the fly and the > indiviual > >>>> tile images are sent directly to the user - > never > >>>> saved on disk. I know this will cause problems > for > >>>> labeling, but there may be a way around this > with some > >>>> DHTML tricks. > >>>> > >>>> Please remember that this demo is running off > of my > >>>> desktop computer over a wifi connection. > performance > >>>> may be very slow and my poor desktop might > crash with > >>>> too many hits. I offer only a proof of concept > and > >>>> welcome coments from the list. > >>>> > >>>> Right now the demo only works in Mozilla > Firefox (on > >>>> Win, Linux and OsX). If you zoom in far enough > on the > >>>> washington DC map you will see aerial photos. > >>>> > >>>> > >>>> Click the "START HERE" button to start the app. > >>>> > http://216.15.56.185:8080/jons/indon/client/test.xul > >>>> > >>>> Thanks > >>>> JOn > From schuyler at NOCAT.NET Sat May 7 10:33:51 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Sat, 7 May 2005 10:33:51 -0700 Subject: A demo of Generating Google Tiles With mapserver In-Reply-To: <20050507171903.69972.qmail@web53902.mail.yahoo.com> Message-ID: Jon, One thing I noticed is that at certain scales your map tiles appear to overlap somewhat. I had this problem with my first essays at this when Google Maps came out. I suspected at the time that it was because my map was unprojected - what are your tiles projected in? I have been working on an Ajax front-end with a Python MapScript backend. http://geocoder.us/surfer/docs/ I will be releasing this the source code to this very shortly. Adding tiling is on my to-do list (as is drag-to-pan). Recommendations and tips are welcome. SDE * On 7-May-2005 at 10:19AM PDT, Jon Saints said: > True the server side could be implemented in any > language that talks mapscript and xml. > > The front end is an simple xmlHTTPrequest javascript > client. > > As far as labeling I would like to generate label > points for polygons and render the labels as DHTML on > the client side. > > I wanted to say a special thanks to Sean Gillies and > all others for their work creating and documenting > mapscript. > > Jon > > > > --- Sean Gillies wrote: > > Thanks for being a good sport about my Python vs > > Perl joke :) > > > > I'm sure there would be a lot of javascript that > > could be shared > > regardless of the mapscripting language. > > > > Sean > > > > On May 7, 2005, at 10:32 AM, Stephen Woodbridge > > wrote: > > > > > Sean, > > > > > > Yeah, that is exactly what I meant! :) Jon has > > done an great job of > > > getting something working, while I have only > > generated a lot of really > > > BIG numbers. I'd rather be putting my time to > > adding features to the > > > cool work Jon has done instead following in his > > foot steps and probably > > > not doing it as well. > > > > > > -Steve > > > > > > Sean Gillies wrote: > > >> Steve, > > >> > > >> Don't you mean "help to obfuscate it"? :) > > >> > > >> Sweet work, Jon! Yves Moisan and I need to talk > > to you about whether > > >> we can use this code in our Plone mapping > > product. > > >> > > >> cheers, > > >> Sean > > >> > > >> > > >> On May 7, 2005, at 10:18 AM, Stephen Woodbridge > > wrote: > > >> > > >>> Jon, > > >>> > > >>> Very nice demo and performace is very good also. > > I would be > > >>> interested > > >>> in converting it to perl/mapscript and help to > > improve it. > > >>> > > >>> -Steve W. > > >>> > > >>> Jon Saints wrote: > > >>> > > >>>> I have implemented a demo using python > > mapscript and > > >>>> mapserver that gives very basic functionality > > simillar > > >>>> to google maps. > > >>>> > > >>>> I do not pre-render maps at the various scales. > > >>>> mapscale are rendered on the fly and the > > indiviual > > >>>> tile images are sent directly to the user - > > never > > >>>> saved on disk. I know this will cause problems > > for > > >>>> labeling, but there may be a way around this > > with some > > >>>> DHTML tricks. > > >>>> > > >>>> Please remember that this demo is running off > > of my > > >>>> desktop computer over a wifi connection. > > performance > > >>>> may be very slow and my poor desktop might > > crash with > > >>>> too many hits. I offer only a proof of concept > > and > > >>>> welcome coments from the list. > > >>>> > > >>>> Right now the demo only works in Mozilla > > Firefox (on > > >>>> Win, Linux and OsX). If you zoom in far enough > > on the > > >>>> washington DC map you will see aerial photos. > > >>>> > > >>>> > > >>>> Click the "START HERE" button to start the app. > > >>>> > > http://216.15.56.185:8080/jons/indon/client/test.xul > > >>>> > > >>>> Thanks > > >>>> JOn > > From woodbri at SWOODBRIDGE.COM Sat May 7 11:30:55 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 7 May 2005 14:30:55 -0400 Subject: Minfeaturesize?? In-Reply-To: Message-ID: Ok, I have opened an enhancement request to add this to mapserver. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1340 Thanks, -Steve Sean Gillies wrote: > Steve, > > Yeah, it's for labels only. You'll need an area attribute. In several > apps I've sorted water bodies, parks, etc by area and then use the > maxfeatures directive to render just the first N (ie largest) features > within a map view. Works great. If you have a RDBMS backend, you can > have it order and limit for you. > > cheers, > Sean > > On May 7, 2005, at 10:34 AM, Stephen Woodbridge wrote: > >> I still haven't not figure out a way to solve this issue. What are >> other >> people doing about this? >> >> -Steve >> >> Stephen Woodbridge wrote: >> >>> Hi all, >>> >>> I thought there was a way to suppress features from being drawn with >>> MINFEATURESIZE, but it only seems to work for labels. Am I missing >>> something? >>> >>> I have a layer with water polygons and they are getting displayed as >>> single pixels and I would like to suppress them. Is there an easy way >>> to >>> do this short of adding an area attribute and filtering based on that? >>> >>> Thanks, >>> -Steve >>> >> >> > -- > Sean Gillies > sgillies at frii dot com > http://zcologia.com > From ujunge at PMCENTRAL.COM Sat May 7 05:54:50 2005 From: ujunge at PMCENTRAL.COM (Uwe Junge) Date: Sat, 7 May 2005 14:54:50 +0200 Subject: queryByShape on PostGIS-Layer segfault in php-mapscript In-Reply-To: Message-ID: Hi Bart, i just copied the dll's and tested queryByShape It works !!! Thank you so much for your support. I really appreciate the manner, how You spend personal time and efforts to help out. Hopefully i have some time in the future to contribute my knowledge to the list as well. Uwe Bart van den Eijnden wrote: > Hi Uwe, > > I am attaching the binaries as a zip to this e-mail. > > Please note that the php mapscript extension is dependent on > libmap.dll, this is different from the builds from maptools.org. Make > sure php can find all the dll's. > > Let me know how it goes. > > Best regards, > Bart > > On Sat, 07 May 2005 13:30:11 +0200, Uwe Junge > wrote: > >> Bart, >> that would be great ! >> >> the make i have is from mapserver-4.4.2-win32-php4.3.11.zip: >> >> MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >> OUTPUT=WBMP OUTPUT=PDF >> OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >> SUPPORTS=WMS_CLI >> ENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER >> INPUT=EPPL7 INPU >> T=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> Thank you very much again >> >> >> Uwe >> >>> Hi Uwe, >>> >>> I can send you a test binary off-list. If the problem still occurs, >>> it would be wise to report a bug so hopefully the fix will make it >>> into 4.6 final. >>> >>> Best regards, >>> Bart >>> >>> On Sat, 07 May 2005 12:43:06 +0200, Uwe Junge >>> wrote: >>> >>>> Thank You very much Bart. >>>> >>>> Unfortunatly, I rely at this time completely on the binary package >>>> made available >>>> at maptools.org; the latest version there is >>>> mapserver-4.5-win32-php4.3.7.zip >>>> built on March-15. So let's wait ... >>>> >>>> The function to do queries-by-shape are essential to our application. >>>> Yesterday, I tried PostGis 1.0.0 and was really pleased (see >>>> further down) . >>>> Currently, all the data, including dynamically generated data, >>>> are sourced as shapefiles >>>> in a multi-server arrangement. The overhead to distribute >>>> dynamically generated data to serveral servers is quit >>>> significant at this time. >>>> >>>> Of course, additional functionality can be developed around the >>>> application >>>> when using PostGis as an additional source, in partiular when it comes >>>> - to large Attribut-Datasets (for example Census SF1 & SF3 with >>>> about 16K Attributes) that needs to be sourced for thematic maps, >>>> - or when using serveral mapservers in parallel with dynamic >>>> content stored on one single PostGis-Server. >>>> Developing a separate, scripted direct search on PostGis on the >>>> back-end is not an option, >>>> since the overhead to append the results one-by-one to the >>>> mapserver-query-result-set (*.qyr), on which the application >>>> relies, is way to much. >>>> >>>> Just for interest, let me summarize my experience with mapserver: >>>> >>>> I made several attempts to build php_mapscript.dll from the >>>> sources with ms vc, together with >>>> postgres/postgis on cygwin, spend a lot of time and never got it >>>> working. >>>> So i focus on application development instead an use the binary >>>> packages for the installations. >>>> Fortunatly, i found yesterday the brand new installers for >>>> postgres 80 and postgis; >>>> - it took me 4 hours to install, to write a script and to import >>>> 1Gig worth of Tiger-shape files and >>>> geocoded database content. >>>> I'm **very** pleased about the speed of mapserver in conjunction >>>> with postgis, >>>> there is only a relatively small rendering-time difference >>>> (varying between 0..30%) >>>> for the colocated, postgres server out-of-the-box compared to >>>> reading the indexed shape files (tiles) directly ! >>>> The PostGis-Team did a great job with their new Version 1.0.0. >>>> >>>> Also, i'm **very** pleased about the very small foot-print of >>>> php_mapscript compared to other >>>> GIS-servers. Map-File and Layer-Managment are anyway custom, so >>>> these additional >>>> capabilities of 'competing products' are of no use (for us) anyway. >>>> >>>> To my surprise, rendering time (ca 30 Gig of mapdata browsed) on my >>>> new >>>> notebook (mobile Athlon 3700+,1Gig Ram with a 7.200 rpm HD on USB2.0) >>>> was significantly faster compared to development- or the >>>> production server >>>> (Dual Xeon 2.4-2.8GHz, 4Gig RAM, SCSI Raid10 15K rpm HD) !!!!!! >>>> Of course I know when more user simultaniously access the >>>> services, this situation will change. >>>> But the lesson learned for mapserver is to spend the money for >>>> the processors and not for the disks. >>>> >>>> Last year we also made an attempt to to use Linux (32bit) for the >>>> mapservers, apart from getting >>>> php_mapscript working, rendering was significantly slower compared >>>> to W2K on the same hardware. >>>> But that should change when using 64bit versions and hardware. >>>> >>>> >>>> >>>> >>>> Uwe Junge >>>> CTO PMCentral Systems, Inc. >>>> 4201 Pinefield Court >>>> Fairfax, VA 22033 >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >> >> > > > From elshayal at SMARTWEBONLINE.COM Sat May 7 16:39:11 2005 From: elshayal at SMARTWEBONLINE.COM (Mohamed Elshayal) Date: Sun, 8 May 2005 02:39:11 +0300 Subject: Independent of any commercial GIS software package "http://www.smartwebonline.com" Message-ID: Dear Sirs, If this software is useful for you, or If you would like to thank us for our programming efforts, or If you have any questions or suggestions to improve this software, please contact us at ( elshayal at smartwebonline.com or elshayal at tedata.net.eg ) It is an almost First Egyptian GIS software? which completely developed by Egyptian developers team and independent of any commercial GIS software package. ElshayalSmart beta 1.15 2.88 MB's ( 04 May. 2005 ) now available at http://www.smartwebonline.com download page Current features View shape maps, add layers, delete layers, swap layers, layers properties, zoom in, zoom out, pan, identify, Selection, Data base table, Query builder, Create network, Shortest path, Printing, Save as GIF, Save map and chatting You might need to restart your computer after setup N.B. - 3D Maps within 2 weeks - GIS Chatting within 6 weeks (private tracking system - 2 PC's or more) - Buffering within 12 weeks Maps 1 - San Diego California , USA Maps 21.6 MB's 2 - Etowah Alabama , USA Maps 4.0 MB's 3 - San Francesco within 1 week N.B. - Starting from Beta 1.15, enclosed in the maps please find a map file *.mam with full color selection. - More Maps will be available soon. Thank you in Advance Awaiting for your reply and your suggestions Mohamed Elshayal elshayal at smartwebonline.com or elshayal at tedata.net.eg http://www.smartwebonline.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From fishingwind at HOTMAIL.COM Sat May 7 22:21:46 2005 From: fishingwind at HOTMAIL.COM (Joe H. Semon) Date: Sun, 8 May 2005 00:21:46 -0500 Subject: Mapserver4.4.2 CGI version: ?Premature end of script headers: mapserv Message-ID: Hi, all I've been compiling Mapserver 4.4.2 under a linux box these days. When using the php_mapscript, I can draw the map successfully. While using the CGI version, I always get the same problem: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, xxx at xxx.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/2.0.53 (Unix) PHP/4.3.10 Resin/3.0.12 Server at 127.0.0.1 Port 80 And in /usr/local/apache2/logs/error.log I find this: "Premature end of script headers: mapserv, referer: http://127.0.0.1/mapserver/mi.html" Sounds to be bad configuration of Apache? but I just can't figure out where I could be wrong. Could someone help me? Any idea will be appreciated! Thanks very much!! Info about my mapserver: [root at Semon root]#/usr/local/apache2/cgi-bin/mapserv -v MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG [root at Semon cgi-bin]# ldd mapserv libgd.so.2 => /usr/lib/libgd.so.2 (0x4002c000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40079000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40096000) libpng.so.3 => /usr/lib/libpng.so.3 (0x400ff000) libz.so.1 => /usr/lib/libz.so.1 (0x40128000) libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40139000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40149000) libiconv.so.2 => /usr/lib/libiconv.so.2 (0x40228000) libproj.so.0 => /usr/lib/libproj.so.0 (0x402ff000) libgdal.so.1 => /usr/lib/libgdal.so.1 (0x40333000) libming.so => /usr/lib/libming.so (0x4060d000) libpq.so.4 => /usr/lib/libpq.so.4 (0x4064a000) libgeos.so.2 => /usr/lib/libgeos.so.2 (0x40662000) libpthread.so.0 => /lib/tls/libpthread.so.0 (0x40758000) libm.so.6 => /lib/tls/libm.so.6 (0x40765000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40787000) libc.so.6 => /lib/tls/libc.so.6 (0x42000000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x4083a000) libpng12.so.0 => /usr/local/lib/libpng12.so.0 (0x40860000) libdl.so.2 => /lib/libdl.so.2 (0x40889000) libjasper-1.701.so.1 => /usr/lib/libjasper-1.701.so.1 (0x4088c000) libungif.so.4 => /usr/lib/libungif.so.4 (0x408d5000) libgeotiff.so => /usr/lib/libgeotiff.so (0x408dd000) libtiff.so.3 => /usr/lib/libtiff.so.3 (0x408fe000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4094a000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x40952000) libresolv.so.2 => /lib/libresolv.so.2 (0x4097f000) libnsl.so.1 => /lib/libnsl.so.1 (0x40991000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) libexpat.so.0 => /usr/lib/libexpat.so.0 (0x409a6000) Here is my WWW document architecture: /home/www ---mapserver ---mi.html ---mi38017.map ---map.php ... My template HTML file: MapServer Mi38017 Demo

MapServer Mi38017 Demo



Regards Semon From fishingwind at HOTMAIL.COM Sun May 8 00:59:41 2005 From: fishingwind at HOTMAIL.COM (Joe H. Semon) Date: Sun, 8 May 2005 02:59:41 -0500 Subject: Mapserver4.4.2 CGI version: ?Premature end of script headers: mapserv Message-ID: Debug shp2img: (gdb) file shp2img Reading symbols from shp2img...done. (gdb) break fopen Breakpoint 1 at 0x804f2b4 (gdb) run -m mi38017.map -o 1.png Starting program: /home/www/mapserver/shp2img -m mi38017.map -o 1.png [New Thread 1083995360 (LWP 13888)] [Switching to Thread 1083995360 (LWP 13888)] Breakpoint 1, 0x0804f2b4 in fopen () (gdb) next Single stepping until exit from function fopen, which has no line number information. Warning: Cannot insert breakpoint 0. Error accessing memory address 0x9b0: ???? ?/????????????. (gdb) bt #0 0x0804df44 in _init () #1 0x0805b3dc in msLoadMap (filename=0xbffffa00 "mi38017.map", new_mappath=0x0) at mapfile.c:4413 #2 0x0804fdb8 in main (argc=5, argv=0xbffff8a4) at shp2img.c:89 #3 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6 (gdb) next Single stepping until exit from function _init, which has no line number information. Program received signal SIGSEGV, Segmentation fault. 0x0805a857 in loadMapInternal (filename=0xbffffa00 "mi38017.map", new_mappath=0x0) at mapfile.c:4178 4178 if((msyyin = fopen(filename,"r")) == NULL) { (gdb) kill Kill the program being debugged? (y or n) y (gdb) Seems it occurs an error when opening the .map file. From phleum at HOT.EE Sun May 8 07:10:37 2005 From: phleum at HOT.EE (Markus Untera) Date: Sun, 8 May 2005 09:10:37 -0500 Subject: Label and symbol question Message-ID: Hi! Is there any possibility to avoid symbols and labels (streetnames) colision? Can Mapserver place labels considering with symbols? At the moment sometimes streetnames roll over symbols. Thnx From chaumic at NETVIGATOR.COM Sun May 8 07:15:26 2005 From: chaumic at NETVIGATOR.COM (Michael) Date: Sun, 8 May 2005 14:15:26 +0000 Subject: Mapscript-using getshape() Message-ID: Hello, I'm new to MapServer and phpMapScript. I have the followings code trying to access the field value of a layer. #------------------- $myLayer = $gpoMap->getLayerByName("MooringBuoy"); $myLayer->Open(); $myShape = $myLayer->getShape(-1,5); $Result = $MyShape->values["keyword"]; print_r($Result); $myLayer->Close(); #------------------ However, the print_r function didn't print anything. Anything wrong with my code ? Thank. Michael From covariance at SHAW.CA Sun May 8 08:41:59 2005 From: covariance at SHAW.CA (Bob Bruce) Date: Sun, 8 May 2005 10:41:59 -0500 Subject: Changing the imagepath in PHP? Message-ID: Is is possible to have the map images redirected by changing the imagepath and imageurl ? And is it possible to do this in Windows? In my web page I have the following lines: $map->web->imagepath = "C:/Apache/htdocs/Mpages/MuralMaps/"; $map->web->imageurl = "/Mpages/MuralMaps/"; In my .map file I have the following lines: WEB IMAGEPATH "c:/Apache/htdocs/temp/" IMAGEURL "/temp/" MAXSCALE 228000 MINSCALE 200 END after running the php code the image stays in the location named in the .map file and doesn't get redirected to the location set in the php code. I am running PHP 4.3.11 and PHP MapScript version 4.5 on Windows 2000 PRO. Am I doing something wrong? thanks, Bob Bruce, Winnipeg, Manitoba From bartvde at XS4ALL.NL Sun May 8 08:48:07 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sun, 8 May 2005 17:48:07 +0200 Subject: Changing the imagepath in PHP? In-Reply-To: Message-ID: Bob, you need to use the set function to change attributes: $map->web->set("imagepath", "C:/Apache/htdocs/Mpages/MuralMaps/"); $map->web->set("imageurl", "/Mpages/MuralMaps/"); Best regards, Bart On Sun, 08 May 2005 17:41:59 +0200, Bob Bruce wrote: > Is is possible to have the map images redirected by changing the > imagepath > and imageurl ? And is it possible to do this in Windows? > > In my web page I have the following lines: > > $map->web->imagepath = "C:/Apache/htdocs/Mpages/MuralMaps/"; > $map->web->imageurl = "/Mpages/MuralMaps/"; > > In my .map file I have the following lines: > > WEB > IMAGEPATH "c:/Apache/htdocs/temp/" > IMAGEURL "/temp/" > MAXSCALE 228000 > MINSCALE 200 > END > > after running the php code the image stays in the location named in the > .map > file and doesn't get redirected to the location set in the php code. > > I am running PHP 4.3.11 and PHP MapScript version 4.5 on Windows 2000 > PRO. > > Am I doing something wrong? > > thanks, > Bob Bruce, Winnipeg, Manitoba > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From dpinte at ITAE.BE Sun May 8 14:10:53 2005 From: dpinte at ITAE.BE (Didrik Pinte) Date: Sun, 8 May 2005 23:10:53 +0200 Subject: mapserver and postgis Message-ID: Message also posted to the Debian-GIS mailing list Hi, I'm running the mapserver Sarge package with the latest Postgis package from Debian-GIS. I'm having problem using booleans as EXPRESSION in my .map file. Mapserver does not seem to succeed in the expression evaluation. I do not see any point when using EXPRESSION. Here is the mapserver class : CLASS NAME "test" EXPRESSION ([moved] = 't') COLOR 255 0 0 OUTLINECOLOR 255 0 0 SIZE 10 SYMBOL "circle" END And here is the table definition : CREATE TABLE mapping ( id varchar(50) NOT NULL, moved bool DEFAULT false, cartopoint geometry, CONSTRAINT id PRIMARY KEY (id), CONSTRAINT enforce_dims_cartopoint CHECK (ndims(cartopoint) = 2), CONSTRAINT enforce_geotype_cartopoint CHECK (geometrytype(cartopoint) = 'POINT'::text OR cartopoint IS NULL), CONSTRAINT enforce_srid_cartopoint CHECK (srid(cartopoint) = 4326) ) How can I make that work ? I tried to use the text(bool) function inside Postgres and that works perfectly well : select text(moved) from tblgeomapping where text(moved)='t'; Any help is welcome. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From pcreso at PCRESO.COM Sun May 8 14:49:27 2005 From: pcreso at PCRESO.COM (Brent Wood) Date: Sun, 8 May 2005 14:49:27 -0700 Subject: Fwd: six OpenGIS® Specifications - now adopted (fwd) Message-ID: May be of interest to some people here (if you haven't alread heard).... Brent Wood > Subject: six OpenGIS? Specifications - now adopted (fwd) > > Subject: [ISO-8859-1] six OpenGIS? Specifications - now adopted > > Wayland, MA, May 05, 2005 - The Open Geospatial > Consortium (OGC) announces that the OGC membership has > adopted six OpenGIS? Specifications. Each of the newly > adopted specifications enhances the existing open body of > knowledge and furthers the OGC vision of a world where > geographic data and services are easily shareable via the variety > of networks and devices available today and into the future. All > of the newly adopted specifications are or will soon be available > online at http://www.opengeospatial.org/specs/?page=specs. > > The Web Map Context Documents Implementation > Specification 1.1 (WMC) defines how a map created using > geospatial data from one or more map servers can be described > in a portable document and shared with other software > packages. This description is known as a "Web Map Context > Document," or simply a "context." Currently, context > documents are primarily designed for use with Web Map > Services, but extensibility is envisioned for binding to other > services. > > A context document includes information about the server(s) > providing layer(s) in the overall map, the bounding box and map > projection shared by all the maps, and sufficient operational > metadata for client software to reproduce the map. The > document may also include ancillary metadata used to annotate > or describe the maps and their provenance for the benefit of > human viewers. The document is structured using eXtensible > Markup Language (XML). > > The Filter Encoding Implementation Specification 1.1 (FES) > defines an XML encoding to express a combined spatial and > attribute query for retrieving features from one or more > geospatial databases. The goal, typically, is to operate on just > those objects by, for example, rendering them in a different > color or saving them to another format. > > The expressions are built on the BNF definition (Backus-Naur > Form, a method of defining a syntax) described in the Catalog > Services Specification. FES was originally part of the Web > Feature Service Specification, but was separated since it is > applicable to other types of services including Web Map > Service, Web Coverage Service and others. > > The Geographic Objects-1 Application Implementation > Specification (GO-1) allows developers to define an > interoperable geospatial application once, and then build that > application for use on multiple development platform, such as > C++ or Java. The packages support a small set of geometries > (points, lines and other shapes needed in mapping), graphics > that can be used to visualize the geometries, the ability to work > with hardware like displays, mice and keyboards and other > necessary components. Once developers create software that > adheres to this specification, they will be able to draw maps > with detailed symbols, support changing data on maps and offer > animation on any development platform. > > The high-level interface models allow developers to take > advantage of the valuable components on any development > platform or distributed computing platform. GO-1 sponsors and > supporters from the public and private sectors sought these > models because they allow straightforward reuse of existing > capabilities for new projects, an important goal of software > systems development because it saves time and money. > > The OpenGIS Location Services: Core Services Implementation > Specification 1.1 (OpenLS) enhances six interfaces for location > based services applications including geocoding, routing, > directory (yellow pages), and location gateway. This version of > the specification updates version 1.0 based on the OpenLS > 1/1.1 testbed initiatives, held between 2001 and 2002, and > reflects lessons learned and the results of these efforts. It also > includes enhancements and fixes made subsequent to the testbed > efforts by an ad hoc work group. > > The Web Feature Service Implementation Specification 1.1 > (WFS) defines and updates interfaces for data access and > manipulation operations on geographic features. Via these > interfaces, a Web user or service can combine, use and manage > geodata. WFS operations include: deleting a feature instance, > updating a feature instance, locking a feature instance and > retrieving or querying features based on spatial and non-spatial > constraints. This revision provides updates based on several > change requests. > > The OGC Web Services Common Implementation Specification > 1.0 specifies best practices for common definitions that are or > will be used within OGC Web Service (OWS) interface > Implementation Specifications. This specification will act as a > base on which each such Implementation Specification will be > built. > > The OGC is an international voluntary consensus standards > organization of more than 270 companies, government agencies > and universities participating in a consensus process to develop > publicly available geoprocessing interface specifications. OGC's > Specifications support interoperable solutions that "geo-enable" > the Web, wireless and location-based services, and mainstream > IT. Visit the OGC website at http://www.opengeospatial.org > [http://www.opengeospatial.org/]. > > > From miked at JAMAGINATION.COM Sun May 8 17:03:23 2005 From: miked at JAMAGINATION.COM (Mike Dee) Date: Sun, 8 May 2005 19:03:23 -0500 Subject: newb - calc'ing geotiff world file internals Message-ID: All, First time dipping my toe in the GIS world after many years of wanting to get into it. Finally have a project that I can leverage with mapserver and I'm immediately in over my head on trying to figure out what goes into the TFW file. I'm attempting to create a raster tile index with the images within http://www.fs.fed.us/r5/stanislaus/maps/emigrant/ -- I've made a similar layout of the larger images at http://www.snfv.org/forum/schedule/em_map_big.html that I'm actually going to be using the images from, the first link shows how the images are already laid out in a tile like setting. I've spent a couple of days digging around thru google trying to figure out what the values inside the TFW file would equate to but I'm stumped. How would I figure out what the pixel width is for X & Y? are the last 2 coords in UTM? I've read the HOWTO at http://mapserver.gis.umn.edu/doc44/raster-howto.html but it doesn't go into much detail, seems like it assumes that you know the values prior to writing the TFW file. I've also read thru the geotiff spec at http://www.remotesensing.org/geotiff/spec/contents.html too but it didn't help me either. The project I'm starting would create a layer(s) on this map that would show issues in the wilderness area such as wet trails, heavy mosquitos, trails under repair, etc. Thanks in advance Mike From ed at TOPOZONE.COM Sun May 8 18:32:41 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sun, 8 May 2005 21:32:41 -0400 Subject: newb - calc'ing geotiff world file internals Message-ID: Mike - The values in a world file are in the units of the map projection. Not all maps use the UTM projection, so the units are not always UTM units. The source map appears to be a standard scan of the printed map which uses (see lower right corner) a "Polyconic Projection" in the NAD27 datum. You need to find out the details of that polyconic projection in order to understand the units. If you don't know the mathematical parameters of the map projection, you're not going to get very far (at least not accurately). Someone on the list may know the parameters used for this FS map - it's probably pretty straightforward. You can relax things a bit if you're simply trying to display the data. If you don't really care about coordinates, AND if you don't intend to integrate other data sets with this one, you can just make things up. You can put pixel coordinates in the world file. The last two lines are the X and Y coordinates of the upper-left pixel. If you make your units pixels, with the usual Y-value decreasing as you go down, then the world file for the top-left image would be: 1.0 0.0 0.0 -1.0 0.0 0.0 Meaning each pixel is 1x1 "units" and the top left is at (0,0). If the upper-left tile is 673 pixels wide and 795 pixels high, then the next tile to the right would have the world file: 1.0 0.0 0.0 -1.0 673.0 0.0 That is, exactly the same but with the X starting point 673 units to the right. The tile below it would be: 1.0 0.0 0.0 -1.0 0.0 -795.0 Because you're moving down in the Y coordinate to negative numbers. This sort of world file will work fine for displaying those tiles. If you need real geographic coordinates, you'll need to figure out the map projection. By the way, since these are JPEG images, the standard world file extension is JGW, not TFW. I would highly recommend that you convert your images to TIFF and use TFW files; JPEG is a very poor choice for geospatial data, and your performance will suffer. TIFF is much better for this purpose. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mike Dee Sent: Sunday, May 08, 2005 8:03 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] newb - calc'ing geotiff world file internals All, First time dipping my toe in the GIS world after many years of wanting to get into it. Finally have a project that I can leverage with mapserver and I'm immediately in over my head on trying to figure out what goes into the TFW file. I'm attempting to create a raster tile index with the images within http://www.fs.fed.us/r5/stanislaus/maps/emigrant/ -- I've made a similar layout of the larger images at http://www.snfv.org/forum/schedule/em_map_big.html that I'm actually going to be using the images from, the first link shows how the images are already laid out in a tile like setting. I've spent a couple of days digging around thru google trying to figure out what the values inside the TFW file would equate to but I'm stumped. How would I figure out what the pixel width is for X & Y? are the last 2 coords in UTM? I've read the HOWTO at http://mapserver.gis.umn.edu/doc44/raster-howto.html but it doesn't go into much detail, seems like it assumes that you know the values prior to writing the TFW file. I've also read thru the geotiff spec at http://www.remotesensing.org/geotiff/spec/contents.html too but it didn't help me either. The project I'm starting would create a layer(s) on this map that would show issues in the wilderness area such as wet trails, heavy mosquitos, trails under repair, etc. Thanks in advance Mike From bill at BINKO.NET Sun May 8 20:04:41 2005 From: bill at BINKO.NET (Bill Binko) Date: Sun, 8 May 2005 23:04:41 -0400 Subject: Standard Classes/Styles for GNIS data? Message-ID: Hi everyone I just added the GNIS "names" data to many of my maps here. I was wondering if anyone had any classes/style setup for them, or perhaps any guidelines. The dataset is kindof a mismash of items (Schools, Islands, Streams, 'PPL's), and just figuring out what's in there will be a challenge, let alone setting up classes/styles/symbols for all of them. They do a great job of "grounding" the maps: users can tell where they are by the well known names. However, it's a bit daunting since the dataset only describes the "DESIG" as "Designation of the feature (PPL = Populated Place)". Also, since the data comes at the county level, I can't just do a select distinct DESIG from it to see what they are (at least not until I setup a virtual dataset that merges them-- a new attempt for me). Anyway, the data seems so standard that I thought I might get some advice from the list. Thanks Bill From miked at JAMAGINATION.COM Sun May 8 20:56:28 2005 From: miked at JAMAGINATION.COM (Mike D'Ambrogia) Date: Sun, 8 May 2005 20:56:28 -0700 Subject: newb - calc'ing geotiff world file internals In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8188477@ptolemy.topozone.com> Message-ID: Ed, Thanks for the response Was thinking about this while driving around awhile ago, if I know the UTM or lat/long of each corner of each image couldn't I determine the distance across the map in meters or feet and then divide that by 673 to get pixel X value? And then do the same for the top to bottom of each image and divide by 795 to come up with a pixel Y unit value? >>You can relax things a bit if you're simply trying to display the data. If you >>don't really care about coordinates, AND if you don't intend to integrate other >>data sets with this one, you can just make things up. I do want to map data to coordinates, but I think I'll roll right now with your logic below just to see if I can get the raster data into the system and have it display correctly. Something to build on in the meanwhile Thanks for the reply Mike From miked at JAMAGINATION.COM Sun May 8 21:23:02 2005 From: miked at JAMAGINATION.COM (Mike D'Ambrogia) Date: Sun, 8 May 2005 21:23:02 -0700 Subject: newb - calc'ing geotiff world file internals In-Reply-To: <000001c5544b$15118fc0$1e01a8c0@tportable> Message-ID: You know, I could just get std USGS topo maps of the same area and build the tiles off the topo maps, would that make the projection calc easier? Mike -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mike D'Ambrogia Sent: Sunday, May 08, 2005 8:56 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] newb - calc'ing geotiff world file internals Ed, Thanks for the response Was thinking about this while driving around awhile ago, if I know the UTM or lat/long of each corner of each image couldn't I determine the distance across the map in meters or feet and then divide that by 673 to get pixel X value? And then do the same for the top to bottom of each image and divide by 795 to come up with a pixel Y unit value? >>You can relax things a bit if you're simply trying to display the data. If you >>don't really care about coordinates, AND if you don't intend to integrate other >>data sets with this one, you can just make things up. I do want to map data to coordinates, but I think I'll roll right now with your logic below just to see if I can get the raster data into the system and have it display correctly. Something to build on in the meanwhile Thanks for the reply Mike From dylan at MAPSERVER.CO.ZA Mon May 9 00:35:30 2005 From: dylan at MAPSERVER.CO.ZA (Dylan Rawlins) Date: Mon, 9 May 2005 02:35:30 -0500 Subject: SDE support in PHP Mapscript Message-ID: Does anyone have a compiled windows binary for php mapscript with SDE support? Alternatively, any advice on compiling - I am particularly interested in Raster support in SDE. Many thanks Dylan From holl at GDF-HANNOVER.DE Mon May 9 01:46:53 2005 From: holl at GDF-HANNOVER.DE (Stephan Holl) Date: Mon, 9 May 2005 10:46:53 +0200 Subject: getShape w/ OGR and MapInfo Tabs Message-ID: dear list, trying on the chameleon-list I was directed to this list with more mapserver-gurus subscribed :-) My problem: Using getShape () (php-mapscript) from Mapinfo-Tabs does not fill up my boundary array. it does not retrieve any bounds for the object: $oLayer->open(); $oShape = $oLayer->getShape($nTile, 0 ); $aszAttributes['name'] = $oLayer->name; $aszAttributes['index'] = $oLayer->index; $oRect = $oShape->bounds; $aszAttributes['minx'] = $oRect->minx; $aszAttributes['miny'] = $oRect->miny; $aszAttributes['maxx'] = $oRect->maxx; $aszAttributes['maxy'] = $oRect->maxy; $oRect is alway empty when I try this on TAB-Files connected through OGR. Using Shapes /PostGIS everything is fine. My Mapfile-Snippet. TYPE POLYGON STATUS ON CONNECTIONTYPE OGR # CONNECTION "/data/seen_tab/seen.tab" CLASS NAME "Binnenseen" ... Versions: /usr/lib/cgi-bin/mapserv -v MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Mapscript: ($Revision: 1.220.2.2 $ $Date: 2004/12/19 22:17:59 $) php: PHP Version 4.3.9 I couldn`t find similar problems at google. Can anybody give some hints?! TIA Stephan -- GDF Hannover - Solutions for spatial data analysis and remote sensing Hannover Office (TCH) - Vahrenwalder Stra?e 7 - D-30165 Hannover Internet: www.gdf-hannover.de - Email: holl at gdf-hannover.de Phone : ++49-(0)511-9357560 - Fax: ++49-(0)511-9357100 From aborruso at TIN.IT Mon May 9 02:36:30 2005 From: aborruso at TIN.IT (andy) Date: Mon, 9 May 2005 11:36:30 +0200 Subject: Feature request: delimit pan extent Message-ID: Dear mapserver developers, I would like to have in mapserver "delimit pan extent" feature without using scripting. Often I make webmap for small area terrains, and if you pan again and again you will go in uniform background area, because you will not find any more features. I know that a normal user will understand that he is at the end of the map, but I would like to have the possibility to set these properties. Thank you for all your great work, Andrea From BEN at SYNCERA-ITSOLUTIONS.NL Mon May 9 04:13:44 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 9 May 2005 13:13:44 +0200 Subject: WFS: nested DWithin query possible? Message-ID: Hi list, can Mapserver handle a nested DWithin query, like the following (simplified) GetFeature request: Geometry.....25 Geometry.....0.01 What I am trying to do is find all features that are within a certain buffer of a polygon (25 meters in the above example), but NOT inside the polygon. Any thoughts appreciated on how to achieve this. Thanks in advance. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From temiz at DEPREM.GOV.TR Mon May 9 04:25:10 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Mon, 9 May 2005 14:25:10 +0300 Subject: can not open shape file Message-ID: *hello I could not solve this problem. Warning*: [MapServer Error]: msSHPOpenFile(): (/var/www/cgi/./kara_ilce2) in */var/www/cgi/mapd1.php* on line *404* *Warning*: [MapServer Error]: msSHPOpenFile(): (/var/www/cgi/././karabuk_data/kara_ilce2) in */var/www/cgi/mapd1.php* on line *404* *Fatal error*: Call to a member function saveWebImage() on a non-object in */var/www/cgi/mapd1.php* on line *406 What might the possible solutions ? regards Ahmet Temiz * ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From ed at TOPOZONE.COM Mon May 9 05:07:22 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 9 May 2005 08:07:22 -0400 Subject: newb - calc'ing geotiff world file internals Message-ID: Mike - Your first email suggested a calculation based on coordinates of the image corners. That will require you to understand the details of the projection, as I mentioned in my first email. Getting UTM coordinates of the corners of a map that's not in UTM projection won't help you project it correctly. If by "standard USGS topo maps" you mean USGS DRG scanned map images, you may have an easier job of it. Unfortunately, California did their own thing in creating the scanned DRGs. It's the ONLY state where the standard DRG map projection is NOT UTM. It's an Albers projection created just for the purpose. And then California stopped dealing with the updates, so any updated DRGs were produced by the USGS in their UTM standard, so you may actually end up with a mix of map types. There are several firms (TopoZone is one) who sell "standardized" topographic maps, so you can get a single, seamless, UTM-projected image of the area you want. You may not be able to get the exact same map image you're using now, so you should look around and decide whether that alternative is useful to you. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mike D'Ambrogia Sent: Monday, May 09, 2005 12:23 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] newb - calc'ing geotiff world file internals You know, I could just get std USGS topo maps of the same area and build the tiles off the topo maps, would that make the projection calc easier? Mike -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mike D'Ambrogia Sent: Sunday, May 08, 2005 8:56 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] newb - calc'ing geotiff world file internals Ed, Thanks for the response Was thinking about this while driving around awhile ago, if I know the UTM or lat/long of each corner of each image couldn't I determine the distance across the map in meters or feet and then divide that by 673 to get pixel X value? And then do the same for the top to bottom of each image and divide by 795 to come up with a pixel Y unit value? >>You can relax things a bit if you're simply trying to display the data. If you >>don't really care about coordinates, AND if you don't intend to integrate other >>data sets with this one, you can just make things up. I do want to map data to coordinates, but I think I'll roll right now with your logic below just to see if I can get the raster data into the system and have it display correctly. Something to build on in the meanwhile Thanks for the reply Mike From BEN at SYNCERA-ITSOLUTIONS.NL Mon May 9 05:32:52 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 9 May 2005 14:32:52 +0200 Subject: dealing with mixed geometry datasets Message-ID: Hi list, does anybody have some best practices for dealing with mixed geometry datasets within Mapserver? For instance Mapinfo files which contain both points and polygons. Is it possible to do an OGR query based on geometry type and use 2 layers in the MAP file? Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From andrea.edwards at NULC.AC.UK Mon May 9 05:25:40 2005 From: andrea.edwards at NULC.AC.UK (Andrea Edwards) Date: Mon, 9 May 2005 07:25:40 -0500 Subject: Position an image on a map at a lat/lon coordinate Message-ID: Hello I am very new to mapserver and I am struggling to get to grips with it. I have managed to create a map that I can pan and zoom which is a start. Now I need to be able to position a graphic on the map at a specific lat/lon coordinate. Please can you tell me how I go about doing this. I have tried to find examples that do this but with no success. Can I do this using the basic features of mapserver or do I need to use mapscript to do this? Thanks very much in advance for your help Andrea From temiz at DEPREM.GOV.TR Mon May 9 05:55:57 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Mon, 9 May 2005 15:55:57 +0300 Subject: getting shapepath with php-mapscript Message-ID: hello using php-mapscript, how can I get shapepath and change it dynamically ? regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From woodbri at SWOODBRIDGE.COM Mon May 9 05:56:09 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 9 May 2005 08:56:09 -0400 Subject: Position an image on a map at a lat/lon coordinate In-Reply-To: Message-ID: Andrea, Start by looking for examples of placing a points on maps. There has been a lot of discussion on how to create a virtual data source like mysql and to draw points on the map. Some people have then used image maps of these points and DHTML to popup images when the mouse rolls over the point. Alternatively, you can create symbols out of you image files, and place them on the map using the same technique as place the points above. You will probably want to create a template layer in your mapfile, then use mapscript or cgi parameters to set the location in lat/long and the symbol image path. -Steve W. Andrea Edwards wrote: > Hello > > I am very new to mapserver and I am struggling to get to grips with it. > > I have managed to create a map that I can pan and zoom which is a start. > > Now I need to be able to position a graphic on the map at a specific > lat/lon coordinate. > > Please can you tell me how I go about doing this. I have tried to find > examples that do this but with no success. > > Can I do this using the basic features of mapserver or do I need to use > mapscript to do this? > > Thanks very much in advance for your help > Andrea > From gerard_b_18 at HOTMAIL.COM Mon May 9 06:50:08 2005 From: gerard_b_18 at HOTMAIL.COM (gerard barrington) Date: Mon, 9 May 2005 11:20:08 -0230 Subject: line thickness with circle In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8188479@ptolemy.topozone.com> Message-ID: Dear list, I am having a problem getting my line thickness adjusted to any size other thanone pixel. In my symbol file, I have the following symbol: SYMBOL NAME 'circle' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END and in my map file I have a shapefile of type line that references this symbol: LAYER NAME "layer" TYPE LINE TILEINDEX "C:\layer.shp" STATUS ON CLASS STYLE SYMBOL circle SIZE 9 END END END However, this gives me this error: getSymbol(): Symbol definition error. Parsing error near (circle):(line 56) Commenting out "SYMBOL circle" displays a single pixel line Thanks for any advice, Gerard From fwarmerdam at GMAIL.COM Mon May 9 06:57:12 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 9 May 2005 09:57:12 -0400 Subject: dealing with mixed geometry datasets In-Reply-To: Message-ID: On 5/9/05, Bart van den Eijnden wrote: > Hi list, > > does anybody have some best practices for dealing with mixed geometry datasets within Mapserver? Bart, The best practice is to pre-split them into separate files! > For instance Mapinfo files which contain both points and polygons. > > Is it possible to do an OGR query based on geometry type and use 2 layers in the MAP file? There is no mechanism currently for querying based on geometry type in MapServer or OGR. I briefly looked into adding some sort of capability to do this in OGR but it seems pretty involved. It could be hacked into the OGR connector for MapServer pretty easiliy though. Something along the lines of a PROCESSING directive that only works for connection type OGR. You might want to file an enhancement request to this effect. Keep in mind that it wouldn't be terrible efficient since it would need to scan the source layer once for each map layer, just discarding features with the wrong geometry type once they have been read. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From geoffrey.rowland at NOAA.GOV Mon May 9 07:01:04 2005 From: geoffrey.rowland at NOAA.GOV (Geoff Rowland) Date: Mon, 9 May 2005 10:01:04 -0400 Subject: Pulling points from MySQL using php/phpmapscript - SWF output Message-ID: Hi, I am storing points + location info in a table in MySQL. I can pull the points from MySQL using PHP, and then draw the points on a map. Works great. However, I want to associate some information with those points (location name, and some other info). I am outputting the maps to SWF format. I would like the associated information in the MySQL database to show up when someone clicks on the point (or just passes the mouse over the point). What is the best way to go about doing this? -- Geoffrey Rowland Technical Officer Climate Information Project NOAA Research Office of Global Programs http://www.cip.ogp.noaa.gov Contractor, RGII Technologies, Inc., a Computer Horizons Company http://www.rg2.com Phone: 301-427-2344 Fax : 301-427-2082 geoffrey.rowland at noaa.gov From saintsjd at YAHOO.COM Mon May 9 07:01:19 2005 From: saintsjd at YAHOO.COM (Jon Saints) Date: Mon, 9 May 2005 07:01:19 -0700 Subject: Download tile mapping example Message-ID: Here is link to all the code in the tile mapping example I posted this weekend to the list. Please let me know if you have questions. I have increasingly less time to keep working on the project, so I just want to get the code out there and hope that it proves useful to someone. Please note that the GPL Lisence applies to all code: http://ituprising.com/tilemap.tar.gz All feedback welcome Thanks Jon From taatuut at PLANET.NL Mon May 9 07:02:12 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Mon, 9 May 2005 16:02:12 +0200 Subject: dealing with mixed geometry datasets Message-ID: Hello Frank, Last year I already filed an enhancement request for this specific issue in Bugzilla under number 1129. Best regards, Emil ----- Oorspronkelijk bericht ----- Van: Frank Warmerdam Datum: maandag, mei 9, 2005 3:57 pm Onderwerp: Re: [UMN_MAPSERVER-USERS] dealing with mixed geometry datasets > On 5/9/05, Bart van den Eijnden wrote: > > Hi list, > > > > does anybody have some best practices for dealing with mixed > geometry datasets within Mapserver? > > Bart, > > The best practice is to pre-split them into separate files! > > > For instance Mapinfo files which contain both points and polygons. > > > > Is it possible to do an OGR query based on geometry type and use > 2 layers in the MAP file? > > There is no mechanism currently for querying based on geometry > type in MapServer or OGR. I briefly looked into adding some sort > of capability to do this in OGR but it seems pretty involved. It > couldbe hacked into the OGR connector for MapServer pretty easiliy > though. Something along the lines of a PROCESSING directive > that only works for connection type OGR. > > You might want to file an enhancement request to this effect. > Keep in mind that it wouldn't be terrible efficient since it would > need to scan the source layer once for each map layer, just > discarding features with the wrong geometry type once they have > been read. > > Best regards, > -- > ---------------------------------------+--------------------------- > ----------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.comlight and sound - activate the windows | > http://pobox.com/~warmerdamand watch the world go round - Rush > | Geospatial Programmer for Rent > From lfilak at MEDINACO.ORG Mon May 9 07:05:21 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 9 May 2005 10:05:21 -0400 Subject: line thickness with circle Message-ID: The following message was sent by gerard barrington on Mon, 9 May 2005 11:20:08 -0230. > Dear list, > > I am having a problem getting my line thickness adjusted to any size other > thanone pixel. > In my symbol file, I have the following symbol: > > SYMBOL > NAME 'circle' > TYPE ELLIPSE > FILLED TRUE > POINTS > 1 1 > END > END > > and in my map file I have a shapefile of type line that references this > symbol: > > LAYER > NAME "layer" > TYPE LINE > TILEINDEX "C:\layer.shp" > STATUS ON > CLASS > STYLE > SYMBOL circle > SIZE 9 > END > END > END > > However, this gives me this error: > > getSymbol(): Symbol definition error. Parsing error near (circle):(line 56) > > > Commenting out "SYMBOL circle" displays a single pixel line > > Thanks for any advice, Gerard, Could it be a parsing error somewhere above the 'circle' definition (line 56 points to several symbols above) OR is 'circle' a reserved name? What if you change the symbol name or move the definition to the top? Lowell From jdport at VERITIME.COM Mon May 9 07:12:05 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Mon, 9 May 2005 10:12:05 -0400 Subject: line thickness with circle Message-ID: Not sure if it makes a difference but you could try putting quotes around 'circle'. -Jeff ----- Original Message ----- From: "gerard barrington" To: Sent: Monday, May 09, 2005 9:50 AM Subject: [UMN_MAPSERVER-USERS] line thickness with circle > Dear list, > > I am having a problem getting my line thickness adjusted to any size other > thanone pixel. > In my symbol file, I have the following symbol: > > SYMBOL > NAME 'circle' > TYPE ELLIPSE > FILLED TRUE > POINTS > 1 1 > END > END > > and in my map file I have a shapefile of type line that references this > symbol: > > LAYER > NAME "layer" > TYPE LINE > TILEINDEX "C:\layer.shp" > STATUS ON > CLASS > STYLE > SYMBOL circle > SIZE 9 > END > END > END > > However, this gives me this error: > > getSymbol(): Symbol definition error. Parsing error near (circle):(line > 56) > > > Commenting out "SYMBOL circle" displays a single pixel line > > Thanks for any advice, > > Gerard > From zak4ms at GMAIL.COM Mon May 9 07:11:05 2005 From: zak4ms at GMAIL.COM (Zak James) Date: Mon, 9 May 2005 10:11:05 -0400 Subject: Does map Lab Maplab 2.2 and SDE In-Reply-To: <51F638951BDDE34388E870A8FB3687C702F1E5C0@MTOSRAMS02> Message-ID: Hi Mike, Unfortunately, we don't have an SDE license so we can't test this, but SDE connections should work fine from maplab assuming your mapserver has support compiled in. You will have to look at the Mapserver documentation and user-list archives for details on what is required in an SDE layer. Also, Jeff can better comment on this, but I don't think ms4w includes SDE support so you may have to create your own binaries to handle this. zak On 4/26/05, Micallef, Michael (MTO) wrote: > Does maplab 2.2 support SDE as included in the maplab_ms4w-2.2 install? > > If so, what does the layer reference look like? > > What all is required in adding an SDE layer to a map file? > > I have tried adding an SDE layer several times. I get an error message in > Map Browser that SDE is not supported? > > Mike Micallef > -- Zak James Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca From gis at SCHNEGG.NET Mon May 9 07:21:10 2005 From: gis at SCHNEGG.NET (Frank Rittinger) Date: Mon, 9 May 2005 16:21:10 +0200 Subject: dealing with mixed geometry datasets In-Reply-To: Message-ID: Hello Bart, Bart van den Eijnden wrote: > Hi list, > > does anybody have some best practices for dealing with mixed geometry datasets within Mapserver? > > For instance Mapinfo files which contain both points and polygons. > > Is it possible to do an OGR query based on geometry type and use 2 layers in the MAP file? > that?s what we do: add a column in Mapinfo with the geometry type, define two layers (or more, depending on the number of geometry types) in the mapfile and use a filteritem to distinguish between the different geometry types. Best regards, Frank -- Frank Rittinger TERRAPLAN Geographische Informationssysteme Gewerbestr. 33 79227 Schallstadt Germany Tel.: 07664-505315 Fax.: 07664-505321 http://www.terraplan.com From lfilak at MEDINACO.ORG Mon May 9 07:25:40 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 9 May 2005 10:25:40 -0400 Subject: line thickness with circle Message-ID: The following message was sent by Jeff Portwine on Mon, 9 May 2005 10:12:05 -0400. > Not sure if it makes a difference but you could try putting quotes around > 'circle'. > > -Jeff > > > > ----- Original Message ----- > From: "gerard barrington" > To: > Sent: Monday, May 09, 2005 9:50 AM > Subject: [UMN_MAPSERVER-USERS] line thickness with circle > > > > Dear list, > > > > I am having a problem getting my line thickness adjusted to any size other > > thanone pixel. > > In my symbol file, I have the following symbol: > > > > SYMBOL > > NAME 'circle' > > TYPE ELLIPSE > > FILLED TRUE > > POINTS > > 1 1 > > END > > END > > > > and in my map file I have a shapefile of type line that references this > > symbol: > > > > LAYER > > NAME "layer" > > TYPE LINE > > TILEINDEX "C:\layer.shp" > > STATUS ON > > CLASS > > STYLE > > SYMBOL circle > > SIZE 9 > > END > > END > > END > > > > However, this gives me this error: > > > > getSymbol(): Symbol definition error. Parsing error near (circle):(line > > 56) > > > > > > Commenting out "SYMBOL circle" displays a single pixel line > > > > Thanks for any advice, Gerard, Jeff's probably right. I misinterpreted the parse error to be the wrong file. Lowell From e.witteveen at HAWARIT.COM Mon May 9 07:43:22 2005 From: e.witteveen at HAWARIT.COM (Eduard Witteveen) Date: Mon, 9 May 2005 09:43:22 -0500 Subject: Determine the current viewport(imgext) in map mode Message-ID: Hello, Currently i'm working on my own viewer to view a map(based upon a url). I use mapserver only to generate the map image(mapserver has to functionate stateless). When my viewer starts the image will be shown from the location: http://localhost/cgi-bin/mapserv.exe?mode=map&map=/ms4w/apps/test.map In order to perform a zoom(i want to stay in the map mode), i need to know the current viewport. How can i query this? (i need to know the current imgext parameters, so i can determine the new zoom in my code) I know that i could hardcode the imgext parameters in my application, but i'd rather query this from the mapserver. -- Ing. Eduard Yeb Witteveen Software Engineer Hawar Information Technology bv lid Dijkoraad Groep De Wymerts 7 8701 WT Bolsward Tel: +31 (0)515 570333 Fax: +31 (0)515 570335 http://www.hawarit.com/ nl_NL fy_NL en_US From fwarmerdam at GMAIL.COM Mon May 9 08:20:04 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 9 May 2005 11:20:04 -0400 Subject: getShape w/ OGR and MapInfo Tabs In-Reply-To: <20050509104653.481ee52d@localhost> Message-ID: On 5/9/05, Stephan Holl wrote: > dear list, > > trying on the chameleon-list I was directed to this list with more > mapserver-gurus subscribed :-) > My problem: > Using getShape () (php-mapscript) from Mapinfo-Tabs does not > fill up my boundary array. > > it does not retrieve any bounds for the object: > $oLayer->open(); > $oShape = $oLayer->getShape($nTile, 0 ); > $aszAttributes['name'] = $oLayer->name; > $aszAttributes['index'] = $oLayer->index; > $oRect = $oShape->bounds; > $aszAttributes['minx'] = $oRect->minx; > $aszAttributes['miny'] = $oRect->miny; > $aszAttributes['maxx'] = $oRect->maxx; > $aszAttributes['maxy'] = $oRect->maxy; > > $oRect is alway empty when I try this on TAB-Files connected through > OGR. Using Shapes /PostGIS everything is fine. Stephan, I looked through mapogr.cpp and there is no obvios reasons why shapeObj's read through OGR would not have their bounds set properly. When you say that the extents are set fine with shapefiles or PostGIS do you mean accessing the shapefiles or PostGIS through OGR or using the direct support for these types in MapServer? I would suggest that you submit a bug report via bugzilla including the a sample data file, and a minimal script demonstrating your problem. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From temiz at DEPREM.GOV.TR Mon May 9 08:32:07 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Mon, 9 May 2005 18:32:07 +0300 Subject: php-mapscript can not read shape files Message-ID: hello php-mapscript can not read shape files how can I make sure whether it's configuration is correct to read shape files ? regards Ahmet ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From gerard_b_18 at HOTMAIL.COM Mon May 9 09:51:16 2005 From: gerard_b_18 at HOTMAIL.COM (gerard barrington) Date: Mon, 9 May 2005 14:21:16 -0230 Subject: line thickness with circle In-Reply-To: Message-ID: Pierre, I thought I had tried that, but I guess not - it worked! I really like this type of problem - a simple easy solution :) Thanks very much.... Gerard >From: Pierre GIRAUD >Reply-To: Pierre GIRAUD >To: gerard barrington >Subject: Re: [UMN_MAPSERVER-USERS] line thickness with circle >Date: Mon, 9 May 2005 15:56:48 +0200 > >Just try to quote your symbol name : > >STYLE > SYMBOL "circle" > SIZE 9 >END > >Pierre > > >On 5/9/05, gerard barrington wrote: > > Dear list, > > > > I am having a problem getting my line thickness adjusted to any size >other > > thanone pixel. > > In my symbol file, I have the following symbol: > > > > SYMBOL > > NAME 'circle' > > TYPE ELLIPSE > > FILLED TRUE > > POINTS > > 1 1 > > END > > END > > > > and in my map file I have a shapefile of type line that references this > > symbol: > > > > LAYER > > NAME "layer" > > TYPE LINE > > TILEINDEX "C:\layer.shp" > > STATUS ON > > CLASS > > STYLE > > SYMBOL circle > > SIZE 9 > > END > > END > > END > > > > However, this gives me this error: > > > > getSymbol(): Symbol definition error. Parsing error near (circle):(line >56) > > > > Commenting out "SYMBOL circle" displays a single pixel line > > > > Thanks for any advice, > > > > Gerard > > From dpinte at ITAE.BE Mon May 9 10:13:12 2005 From: dpinte at ITAE.BE (Didrik Pinte) Date: Mon, 9 May 2005 19:13:12 +0200 Subject: mapserver and postgis In-Reply-To: <1115586654.31678.0.camel@geru-itea> Message-ID: Le dimanche 08 mai 2005 ? 23:10 +0200, Didrik Pinte a ?crit : > Here is the mapserver class : > > CLASS > NAME "test" > EXPRESSION ([moved] = 't') > COLOR 255 0 0 > OUTLINECOLOR 255 0 0 > SIZE 10 > SYMBOL "circle" > END > How can I make that work ? Here is the solution EXPRESSION ('[moved]' = 't') Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From mike.and.kerry at GMAIL.COM Mon May 9 10:24:50 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Mon, 9 May 2005 09:24:50 -0800 Subject: Download tile mapping example In-Reply-To: <20050509140119.45916.qmail@web53909.mail.yahoo.com> Message-ID: Any ideas about what would be requried to adapt this to IIS? The only test server I have available at work is a win2003 box :-( If anyone has a publicly available version up and running I would love to see it. Thanks for the code, looking foreward to setting it up on my OS X box at home. On 5/9/05, Jon Saints wrote: > Here is link to all the code in the tile mapping > example I posted this weekend to the list. > > Please let me know if you have questions. I have > increasingly less time to keep working on the project, > so I just want to get the code out there and hope that > it proves useful to someone. > > Please note that the GPL Lisence applies to all code: > http://ituprising.com/tilemap.tar.gz > > All feedback welcome > Thanks > Jon > From sgillies at FRII.COM Mon May 9 10:28:59 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 9 May 2005 11:28:59 -0600 Subject: Download tile mapping example In-Reply-To: Message-ID: On May 9, 2005, at 8:01 AM, Jon Saints wrote: > Here is link to all the code in the tile mapping > example I posted this weekend to the list. > > Please let me know if you have questions. I have > increasingly less time to keep working on the project, > so I just want to get the code out there and hope that > it proves useful to someone. > > Please note that the GPL Lisence applies to all code: > http://ituprising.com/tilemap.tar.gz > > All feedback welcome > Thanks > Jon > > mod_python ... sweet :) Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From bobbyfung at HOTMAIL.COM Mon May 9 11:37:10 2005 From: bobbyfung at HOTMAIL.COM (Libo Feng) Date: Mon, 9 May 2005 13:37:10 -0500 Subject: How to enable SLD in Mapserver? Message-ID: Hello, I tried to enalbe SLD on my Mapserver but I can't make it work. The following is the parameters that I used to configure the Makefile: ./configure --without-tiff --without-eppl --with-threads --with-proj --with-gdal=/usr/local/bin/gdal-config --with-ogr --with-gd=/usr/local --with-freetype=/usr/bin --with-ming --with-wmsclient --with-wfs --with-wfsclient The mapserv CGI works all right but it just won't take my SLD script. I tested with the mapfile, sld scipt and shape files from the "MapServer OGC Web Services Workshop" (http://devgeo.cciw.ca/ms_ogc_workshop/index.html) and it doesn't work either. So I think it's my CGI's problem. Am I missing anything? I appreciate any help! Thanks. From Tom.Kralidis at EC.GC.CA Mon May 9 11:45:55 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 9 May 2005 14:45:55 -0400 Subject: How to enable SLD in Mapserver? Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Libo Feng > Sent: Monday, 09 May, 2005 14:37 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] How to enable SLD in Mapserver? > > > Hello, > > I tried to enalbe SLD on my Mapserver but I can't make it > work. The following is the parameters that I used to > configure the Makefile: > > ./configure --without-tiff --without-eppl --with-threads > --with-proj --with-gdal=/usr/local/bin/gdal-config --with-ogr > --with-gd=/usr/local --with-freetype=/usr/bin --with-ming > --with-wmsclient --with-wfs --with-wfsclient > > > The mapserv CGI works all right but it just won't take my SLD > script. I tested with the mapfile, sld scipt and shape files > from the "MapServer OGC Web Services Workshop" > (http://devgeo.cciw.ca/ms_ogc_workshop/index.html) > and it doesn't work either. So I think it's my CGI's problem. > Am I missing anything? > What sort of problems are you running into? How is it not taking your SLD? ..Tom > > I appreciate any help! Thanks. > From holl at GDF-HANNOVER.DE Mon May 9 11:49:32 2005 From: holl at GDF-HANNOVER.DE (Stephan Holl) Date: Mon, 9 May 2005 20:49:32 +0200 Subject: getShape w/ OGR and MapInfo Tabs In-Reply-To: <931f8ea90505090820d6187eb@mail.gmail.com> Message-ID: Hello Frank, thanks for looking into this. On Mon, 9 May 2005 11:20:04 -0400 Frank Warmerdam wrote: > I looked through mapogr.cpp and there is no obvios reasons > why shapeObj's read through OGR would not have their > bounds set properly. When you say that the extents > are set fine with shapefiles or PostGIS do you mean accessing > the shapefiles or PostGIS through OGR or using the direct support > for these types in MapServer? No. I think I am using direct connections for both PostGIS and shape. I will try if using an OGR-Shape-Connection will give correct shapeObj- >bounds. If not, I come back to you and probably fill a bug report. > > I would suggest that you submit a bug report via bugzilla > including the a sample data file, and a minimal script demonstrating > your problem. Best Stephan -- GDF Hannover - Solutions for spatial data analysis and remote sensing Hannover Office (TCH) - Vahrenwalder Stra?e 7 - D-30165 Hannover Internet: www.gdf-hannover.de - Email: holl at gdf-hannover.de Phone : ++49-(0)511-9357560 - Fax: ++49-(0)511-9357100 From bobbyfung at HOTMAIL.COM Mon May 9 12:01:35 2005 From: bobbyfung at HOTMAIL.COM (Bobby Fung) Date: Mon, 9 May 2005 16:01:35 -0300 Subject: How to enable SLD in Mapserver? Message-ID: The problem is that the map I got from mapserver throught WMS looks the same as I didn't included the SLD parameter. And I am sure that the SLD script and the mapfile is correct since I took them directly from "MapServer OGC Web Services Workshop". I have attached the mapfile and sld file to this email anyway. Thanks! ----- Original Message ----- From: "Kralidis,Tom [Burlington]" To: "Libo Feng" ; Sent: Monday, May 09, 2005 3:45 PM Subject: RE: [UMN_MAPSERVER-USERS] How to enable SLD in Mapserver? > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Libo Feng > Sent: Monday, 09 May, 2005 14:37 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] How to enable SLD in Mapserver? > > > Hello, > > I tried to enalbe SLD on my Mapserver but I can't make it > work. The following is the parameters that I used to > configure the Makefile: > > ./configure --without-tiff --without-eppl --with-threads > --with-proj --with-gdal=/usr/local/bin/gdal-config --with-ogr > --with-gd=/usr/local --with-freetype=/usr/bin --with-ming > --with-wmsclient --with-wfs --with-wfsclient > > > The mapserv CGI works all right but it just won't take my SLD > script. I tested with the mapfile, sld scipt and shape files > from the "MapServer OGC Web Services Workshop" > (http://devgeo.cciw.ca/ms_ogc_workshop/index.html) > and it doesn't work either. So I think it's my CGI's problem. > Am I missing anything? > What sort of problems are you running into? How is it not taking your SLD? .Tom > > I appreciate any help! Thanks. > -------------- next part -------------- A non-text attachment was scrubbed... Name: config.map Type: application/octet-stream Size: 20127 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: rivers.sld Type: application/octet-stream Size: 1654 bytes Desc: not available URL: From bobbyfung at HOTMAIL.COM Mon May 9 12:04:32 2005 From: bobbyfung at HOTMAIL.COM (Bobby Fung) Date: Mon, 9 May 2005 16:04:32 -0300 Subject: How to enable SLD in Mapserver? Message-ID: This is the url with sld parameter: http://192.168.3.102/cgi-bin/mapserv?map=/var/www/html/mapserver/service/config.map&version=1.1.1&service=WMS&request=GetMap&srs=EPSG:4326&bbox=-180,-90,180,90&format=image/png&layers=land_shallow_topo_2048,rivers&styles=,&transparent=true&width=500&height=300&sld=http://192.168.3.102/mapserver/sld/rivers.sld And this is the url without sld: http://192.168.3.102/cgi-bin/mapserv?map=/var/www/html/mapserver/service/config.map&version=1.1.1&service=WMS&request=GetMap&srs=EPSG:4326&bbox=-180,-90,180,90&format=image/png&layers=land_shallow_topo_2048,rivers&styles=,&transparent=true&width=500&height=300 I got exactly a same image from these two url.... ----- Original Message ----- From: "Bobby Fung" To: "Kralidis,Tom [Burlington]" ; Sent: Monday, May 09, 2005 4:01 PM Subject: Re: [UMN_MAPSERVER-USERS] How to enable SLD in Mapserver? > The problem is that the map I got from mapserver throught WMS looks the > same > as I didn't included the SLD parameter. And I am sure that the SLD script > and the mapfile is correct since I took them directly from "MapServer OGC > Web Services Workshop". > > I have attached the mapfile and sld file to this email anyway. > > Thanks! > > ----- Original Message ----- > From: "Kralidis,Tom [Burlington]" > To: "Libo Feng" ; > Sent: Monday, May 09, 2005 3:45 PM > Subject: RE: [UMN_MAPSERVER-USERS] How to enable SLD in Mapserver? > > > > >> -----Original Message----- >> From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Libo Feng >> Sent: Monday, 09 May, 2005 14:37 >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] How to enable SLD in Mapserver? >> >> >> Hello, >> >> I tried to enalbe SLD on my Mapserver but I can't make it >> work. The following is the parameters that I used to >> configure the Makefile: >> >> ./configure --without-tiff --without-eppl --with-threads >> --with-proj --with-gdal=/usr/local/bin/gdal-config --with-ogr >> --with-gd=/usr/local --with-freetype=/usr/bin --with-ming >> --with-wmsclient --with-wfs --with-wfsclient >> >> >> The mapserv CGI works all right but it just won't take my SLD >> script. I tested with the mapfile, sld scipt and shape files >> from the "MapServer OGC Web Services Workshop" >> (http://devgeo.cciw.ca/ms_ogc_workshop/index.html) >> and it doesn't work either. So I think it's my CGI's problem. >> Am I missing anything? >> > > What sort of problems are you running into? How is it not taking your > SLD? > > ..Tom > > >> >> I appreciate any help! Thanks. >> > From Tom.Kralidis at EC.GC.CA Mon May 9 12:11:34 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 9 May 2005 15:11:34 -0400 Subject: How to enable SLD in Mapserver? Message-ID: When you do a ./mapserv -v, what is your output? ..Tom > -----Original Message----- > From: Bobby Fung [mailto:bobbyfung at hotmail.com] > Sent: Monday, 09 May, 2005 15:05 > To: Bobby Fung; Kralidis,Tom [Burlington]; > MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] How to enable SLD in Mapserver? > > > This is the url with sld parameter: > http://192.168.3.102/cgi-bin/mapserv?map=/var/www/html/mapserv > er/service/config.map&version=1.1.1&service=WMS&request=GetMap > &srs=EPSG:4326&bbox=-180,-90,180,90&format=image/png&layers=la > nd_shallow_topo_2048,rivers&styles=,&transparent=true&width=50 > 0&height=300&sld=http://192.168.3.102/mapserver/sld/rivers.sld > > And this is the url without sld: > > http://192.168.3.102/cgi-bin/mapserv?map=/var/www/html/mapserv > er/service/config.map&version=1.1.1&service=WMS&request=GetMap > &srs=EPSG:4326&bbox=-180,-90,180,90&format=image/png&layers=la > nd_shallow_topo_2048,rivers&styles=,&transparent=true&width=50 > 0&height=300 > > > I got exactly a same image from these two url.... > > > > ----- Original Message ----- > From: "Bobby Fung" > To: "Kralidis,Tom [Burlington]" ; > > Sent: Monday, May 09, 2005 4:01 PM > Subject: Re: [UMN_MAPSERVER-USERS] How to enable SLD in Mapserver? > > > > The problem is that the map I got from mapserver throught WMS looks > > the > > same > > as I didn't included the SLD parameter. And I am sure that > the SLD script > > and the mapfile is correct since I took them directly from > "MapServer OGC > > Web Services Workshop". > > > > I have attached the mapfile and sld file to this email anyway. > > > > Thanks! > > > > ----- Original Message ----- > > From: "Kralidis,Tom [Burlington]" > > To: "Libo Feng" ; > > > Sent: Monday, May 09, 2005 3:45 PM > > Subject: RE: [UMN_MAPSERVER-USERS] How to enable SLD in Mapserver? > > > > > > > > > >> -----Original Message----- > >> From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > >> On Behalf Of Libo Feng > >> Sent: Monday, 09 May, 2005 14:37 > >> To: MAPSERVER-USERS at LISTS.UMN.EDU > >> Subject: [UMN_MAPSERVER-USERS] How to enable SLD in Mapserver? > >> > >> > >> Hello, > >> > >> I tried to enalbe SLD on my Mapserver but I can't make it > work. The > >> following is the parameters that I used to configure the Makefile: > >> > >> ./configure --without-tiff --without-eppl --with-threads > --with-proj > >> --with-gdal=/usr/local/bin/gdal-config --with-ogr > >> --with-gd=/usr/local --with-freetype=/usr/bin --with-ming > >> --with-wmsclient --with-wfs --with-wfsclient > >> > >> > >> The mapserv CGI works all right but it just won't take my > SLD script. > >> I tested with the mapfile, sld scipt and shape files from the > >> "MapServer OGC Web Services Workshop" > >> (http://devgeo.cciw.ca/ms_ogc_workshop/index.html) > >> and it doesn't work either. So I think it's my CGI's problem. Am I > >> missing anything? > >> > > > > What sort of problems are you running into? How is it not > taking your > > SLD? > > > > ..Tom > > > > > >> > >> I appreciate any help! Thanks. > >> > > > From bobbyfung at HOTMAIL.COM Mon May 9 12:23:36 2005 From: bobbyfung at HOTMAIL.COM (Bobby Fung) Date: Mon, 9 May 2005 16:23:36 -0300 Subject: How to enable SLD in Mapserver? Message-ID: MapServer version 4.4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks! ----- Original Message ----- From: "Kralidis,Tom [Burlington]" To: "Bobby Fung" ; Sent: Monday, May 09, 2005 4:11 PM Subject: RE: [UMN_MAPSERVER-USERS] How to enable SLD in Mapserver? When you do a ./mapserv -v, what is your output? .Tom > -----Original Message----- > From: Bobby Fung [mailto:bobbyfung at hotmail.com] > Sent: Monday, 09 May, 2005 15:05 > To: Bobby Fung; Kralidis,Tom [Burlington]; > MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] How to enable SLD in Mapserver? > > > This is the url with sld parameter: > http://192.168.3.102/cgi-bin/mapserv?map=/var/www/html/mapserv > er/service/config.map&version=1.1.1&service=WMS&request=GetMap > &srs=EPSG:4326&bbox=-180,-90,180,90&format=image/png&layers=la > nd_shallow_topo_2048,rivers&styles=,&transparent=true&width=50 > 0&height=300&sld=http://192.168.3.102/mapserver/sld/rivers.sld > > And this is the url without sld: > > http://192.168.3.102/cgi-bin/mapserv?map=/var/www/html/mapserv > er/service/config.map&version=1.1.1&service=WMS&request=GetMap > &srs=EPSG:4326&bbox=-180,-90,180,90&format=image/png&layers=la > nd_shallow_topo_2048,rivers&styles=,&transparent=true&width=50 > 0&height=300 > > > I got exactly a same image from these two url.... > > > > ----- Original Message ----- > From: "Bobby Fung" > To: "Kralidis,Tom [Burlington]" ; > > Sent: Monday, May 09, 2005 4:01 PM > Subject: Re: [UMN_MAPSERVER-USERS] How to enable SLD in Mapserver? > > > > The problem is that the map I got from mapserver throught WMS looks > > the > > same > > as I didn't included the SLD parameter. And I am sure that > the SLD script > > and the mapfile is correct since I took them directly from > "MapServer OGC > > Web Services Workshop". > > > > I have attached the mapfile and sld file to this email anyway. > > > > Thanks! > > > > ----- Original Message ----- > > From: "Kralidis,Tom [Burlington]" > > To: "Libo Feng" ; > > > Sent: Monday, May 09, 2005 3:45 PM > > Subject: RE: [UMN_MAPSERVER-USERS] How to enable SLD in Mapserver? > > > > > > > > > >> -----Original Message----- > >> From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > >> On Behalf Of Libo Feng > >> Sent: Monday, 09 May, 2005 14:37 > >> To: MAPSERVER-USERS at LISTS.UMN.EDU > >> Subject: [UMN_MAPSERVER-USERS] How to enable SLD in Mapserver? > >> > >> > >> Hello, > >> > >> I tried to enalbe SLD on my Mapserver but I can't make it > work. The > >> following is the parameters that I used to configure the Makefile: > >> > >> ./configure --without-tiff --without-eppl --with-threads > --with-proj > >> --with-gdal=/usr/local/bin/gdal-config --with-ogr > >> --with-gd=/usr/local --with-freetype=/usr/bin --with-ming > >> --with-wmsclient --with-wfs --with-wfsclient > >> > >> > >> The mapserv CGI works all right but it just won't take my > SLD script. > >> I tested with the mapfile, sld scipt and shape files from the > >> "MapServer OGC Web Services Workshop" > >> (http://devgeo.cciw.ca/ms_ogc_workshop/index.html) > >> and it doesn't work either. So I think it's my CGI's problem. Am I > >> missing anything? > >> > > > > What sort of problems are you running into? How is it not > taking your > > SLD? > > > > ..Tom > > > > > >> > >> I appreciate any help! Thanks. > >> > > > From holl at GDF-HANNOVER.DE Mon May 9 12:32:22 2005 From: holl at GDF-HANNOVER.DE (Stephan Holl) Date: Mon, 9 May 2005 21:32:22 +0200 Subject: getShape w/ OGR and MapInfo Tabs In-Reply-To: <931f8ea90505090820d6187eb@mail.gmail.com> Message-ID: Hello Frank, On Mon, 9 May 2005 11:20:04 -0400 Frank Warmerdam wrote: [...] > > Stephan, > > I looked through mapogr.cpp and there is no obvios reasons > why shapeObj's read through OGR would not have their > bounds set properly. When you say that the extents > are set fine with shapefiles or PostGIS do you mean accessing > the shapefiles or PostGIS through OGR or using the direct support > for these types in MapServer? > > I would suggest that you submit a bug report via bugzilla > including the a sample data file, and a minimal script demonstrating > your problem. I have created a sample dataset with a small snippet and both mapinfo- tabs and shapedata, it is located here: http://www.gdf-hannover.de/holl/tmp/example_mapinfo_problem.tar.gz Perhaps you can have a look at it and point me to a solution for the problem. the mapinfo-tab-files were created with ogr2ogr from the shape-file. I would really like to have this working, because I do not want to convert all mapinfo-tabs to shape... Thank you for your help Best Stephan -- GDF Hannover - Solutions for spatial data analysis and remote sensing Hannover Office (TCH) - Vahrenwalder Stra?e 7 - D-30165 Hannover Internet: www.gdf-hannover.de - Email: holl at gdf-hannover.de Phone : ++49-(0)511-9357560 - Fax: ++49-(0)511-9357100 From lluisgm at GMAIL.COM Mon May 9 12:43:55 2005 From: lluisgm at GMAIL.COM (=?ISO-8859-1?Q?Llu=EDs_Garcia_i_Mestres?=) Date: Mon, 9 May 2005 21:43:55 +0200 Subject: itemquery Message-ID: Hi list, I'm trying to implement the itemquery option shown in mapserver test suite. As I could read in old messages, the filter option isn't needed anymore and now requires the qlayer, qitem and qstring. I can display the item query also with a query map, but my problem is to adjust the qstring in order to select the item from a text list. I can just display the item query if I write the exact item that I want in the qstring. This is the html from where I want to launch the itemquery. As you see I must specify in the qstring the item, how can I get the item from the text options? Item query     >>>  Arees de les parcel?les


Selecciona una parcel?la:

My map file is # Caracter?stiques map NAME colza STATUS ON SIZE 500 400 SYMBOLSET /var/www/html/mapserver/dades/santguim/map-script/marker.sym EXTENT 363469 4.60971e+06 371839 4.61674e+06 UNITS meters IMAGECOLOR 219 238 238 IMAGETYPE png # Inici web WEB IMAGEPATH /var/www/html/mapserver/tmp/ IMAGEURL "/mapserver/tmp/" END # Mapa per a consultes QUERYMAP COLOR 255 255 0 SIZE 500 400 STATUS ON STYLE HILITE END # Capes vectorials LAYER NAME parcela TYPE POLYGON STATUS DEFAULT DATA /var/www/html/mapserver/dades/santguim/shp/parcela.shp CLASS COLOR 212 212 212 OUTLINECOLOR 0 0 0 TEMPLATE /var/www/html/mapserver/dades/santguim/templates/parcela-itemquery.html END END END The attribute template is query map Thanks Llu?s From fwarmerdam at GMAIL.COM Mon May 9 13:46:28 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 9 May 2005 16:46:28 -0400 Subject: getShape w/ OGR and MapInfo Tabs In-Reply-To: <20050509213222.2c11de6d@localhost> Message-ID: On 5/9/05, Stephan Holl wrote: > I have created a sample dataset with a small snippet and both mapinfo- > tabs and shapedata, it is located here: > > http://www.gdf-hannover.de/holl/tmp/example_mapinfo_problem.tar.gz > > Perhaps you can have a look at it and point me to a solution for the > problem. Stephan, The problem with your script is that you are passing "0" for the "shapeid". For TAB files the feature ids are assigned sequentially starting at 1, so in this case your getShape() isn't finding any shape. Specific OGR drivers use different schemes for how to assign shapids. For Shapefiles they start at zero. for mapinfo files they start at 1. For DGN files they are "sparse" and indicate the sequential element in the file corresponding to the feature (not all elements count as features though). So, what you need is a way to fetch the first shape without assumption about what feature id that might be. That is fairly straight forward if you use a query on the layer to get a list of shapeid's. There may be other sensible means too, that I am not familiar with. In summary, there is no apparent bug, just confusion about legal fetching mechanisms. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From matt at MSILEADS.COM Mon May 9 15:18:46 2005 From: matt at MSILEADS.COM (Matthew Roberson) Date: Mon, 9 May 2005 17:18:46 -0500 Subject: Projection and EXTENTS Message-ID: I am trying to create a projection a map of the state of Missouri that was created by the US Census Bureau(zt29_d00.shp). I used ogrinfo to get the following information about the EXTENT: [imac-dev03:~/Documents] matthewr% ogrinfo -so zt29_d00.shp zt29_d00 INFO: Open of `zt29_d00.shp' using driver `ESRI Shapefile' successful. Layer name: zt29_d00 Geometry: Polygon Feature Count: 1341 Extent: (-95.774704, 35.995683) - (-89.098843, 40.613640) Layer SRS WKT: (unknown) AREA: Real (20.5) PERIMETER: Real (20.5) ZT29_D00_: Integer (11.0) ZT29_D00_I: Integer (11.0) ZCTA: String (5.0) NAME: String (90.0) LSAD: String (2.0) LSAD_TRANS: String (50.0) Then, I used proj4 to find lat long values for the a Lambert Azimuthal Equal Area projection. [imac-dev03:~/Documents] matthewr% proj +proj=laea +ellps=clrk66 +R_A -95.774704 35.995683 -7567149.62 5525023.18 -89.098843 40.613640 -6798293.00 5830370.88 When I use these values with MapServer to make a map, nothing shows up. Am I missing something. Should I post this question in this list or in the MapServer User's group? Any help would be appreciated. Below is copy of my map file also, MAP NAME MO IMAGETYPE GIF SIZE 6000 6000 IMAGECOLOR 240 240 240 SHAPEPATH "/Library/WebServer/Documents/data" FONTSET "/Library/fonts/fonts.list" EXTENT -7567149.62 5525023.18 -6798293.00 5830370.88 UNITS METERS WEB IMAGEPATH "/Library/WebServer/Documents/test/" IMAGEURL "/test/" END PROJECTION "init=epsg:26797" END LEGEND STATUS EMBED POSITION UR END SCALEBAR TRANSPARENT ON BACKGROUNDCOLOR 254 254 254 STATUS EMBED POSITION LR STYLE 1 END LAYER NAME "MO zip code boundaries" DATA "zt29_d00" STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:26797" END LABELITEM "ZCTA" CLASS COLOR 254 0 0 LABEL COLOR 60 60 60 SHADOWCOLOR 218 218 218 SHADOWSIZE 1 1 TYPE TRUETYPE FONT arialhb SIZE 10 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 5 BUFFER 4 END OUTLINECOLOR 60 60 60 SYMBOL 0 END END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 10 680 END TEXT 'Made with Mapserver.' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 0 0 0 END END END END Thanks, Matt From steve.lime at DNR.STATE.MN.US Mon May 9 15:52:19 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 9 May 2005 17:52:19 -0500 Subject: line thickness with circle Message-ID: FYI The reason the error appeared is that 'circle' is a MapServer keyword... Steve >>> gerard barrington 5/9/2005 11:51:16 AM >>> Pierre, I thought I had tried that, but I guess not - it worked! I really like this type of problem - a simple easy solution :) Thanks very much.... Gerard >From: Pierre GIRAUD >Reply-To: Pierre GIRAUD >To: gerard barrington >Subject: Re: [UMN_MAPSERVER-USERS] line thickness with circle >Date: Mon, 9 May 2005 15:56:48 +0200 > >Just try to quote your symbol name : > >STYLE > SYMBOL "circle" > SIZE 9 >END > >Pierre > > >On 5/9/05, gerard barrington wrote: > > Dear list, > > > > I am having a problem getting my line thickness adjusted to any size >other > > thanone pixel. > > In my symbol file, I have the following symbol: > > > > SYMBOL > > NAME 'circle' > > TYPE ELLIPSE > > FILLED TRUE > > POINTS > > 1 1 > > END > > END > > > > and in my map file I have a shapefile of type line that references this > > symbol: > > > > LAYER > > NAME "layer" > > TYPE LINE > > TILEINDEX "C:\layer.shp" > > STATUS ON > > CLASS > > STYLE > > SYMBOL circle > > SIZE 9 > > END > > END > > END > > > > However, this gives me this error: > > > > getSymbol(): Symbol definition error. Parsing error near (circle):(line >56) > > > > Commenting out "SYMBOL circle" displays a single pixel line > > > > Thanks for any advice, > > > > Gerard > > From tylermitchell at SHAW.CA Mon May 9 21:42:39 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 9 May 2005 21:42:39 -0700 Subject: Book about Distributed GIS In-Reply-To: <117a01c54f1f$f1c076b0$160002c0@shark> Message-ID: For what it's worth. My book will be out mid-June and covers MapServer, GDAL/OGR, PostGIS and more. See: http://www.oreilly.com/catalog/webmapping/ Tyler On May 2, 2005 07:05 am, Brent Fraser wrote: > Raphael, > > Two books that cover Internet GIS are > > "GIS ONLINE" by Brandon Plewe, OnWord Press ISBN 1-56690-137-5 (1997) > "Internet GIS" Zhong-Ren Peng, Wiley & Sons ISBN 0-471-35923-8 (2003) > > Brent Fraser > > > ----- Original Message ----- > From: "Raphael Teixeira" > To: > Sent: Monday, May 02, 2005 7:17 AM > Subject: [UMN_MAPSERVER-USERS] Book about Distributed GIS > > > Hi All, > > I'm working on my dissertation about Distributed GIS and I'd like > to know a name of a good book that cover this subject. > > Best regards > -- > Raphael da Silva Teixeira From holl at GDF-HANNOVER.DE Mon May 9 23:00:12 2005 From: holl at GDF-HANNOVER.DE (Stephan Holl) Date: Tue, 10 May 2005 08:00:12 +0200 Subject: getShape w/ OGR and MapInfo Tabs In-Reply-To: <931f8ea9050509134662fb9a12@mail.gmail.com> Message-ID: Hello Frank, On Mon, 9 May 2005 16:46:28 -0400 Frank Warmerdam wrote: > On 5/9/05, Stephan Holl wrote: > > I have created a sample dataset with a small snippet and both > > mapinfo- tabs and shapedata, it is located here: > > > > http://www.gdf-hannover.de/holl/tmp/example_mapinfo_problem.tar.gz > > > > Perhaps you can have a look at it and point me to a solution for the > > problem. > > Stephan, > > The problem with your script is that you are passing "0" for the > "shapeid". For TAB files the feature ids are assigned sequentially > starting at 1, so in this case your getShape() isn't finding any > shape. > Specific OGR drivers use different schemes for how to assign > shapids. For Shapefiles they start at zero. for mapinfo files they > start at 1. For DGN files they are "sparse" and indicate the > sequential element in the file corresponding to the feature (not all > elements count as features though). > > So, what you need is a way to fetch the first shape without assumption > about what feature id that might be. That is fairly straight forward > if you use a query on the layer to get a list of shapeid's. There > may be other sensible means too, that I am not familiar with. > > In summary, there is no apparent bug, just confusion about legal > fetching mechanisms. I see. THanks for pointing this out. I will check how I can adopt my script knowing this information now! Thanks for your help best Stephan -- GDF Hannover - Solutions for spatial data analysis and remote sensing Hannover Office (TCH) - Vahrenwalder Stra?e 7 - D-30165 Hannover Internet: www.gdf-hannover.de - Email: holl at gdf-hannover.de Phone : ++49-(0)511-9357560 - Fax: ++49-(0)511-9357100 From bill at BINKO.NET Mon May 9 23:10:32 2005 From: bill at BINKO.NET (Bill Binko) Date: Tue, 10 May 2005 02:10:32 -0400 Subject: Book about Distributed GIS In-Reply-To: <200505092142.39198.tylermitchell@shaw.ca> Message-ID: I look forward to that: I am using Safari to get at Mapping Hacks by Schuyler Erle, Rich Gibson, Jo Walsh et al (with a forward by Frank). It's not out yet in stores, but Safari members can get to it at: http://safari.oreilly.com/0596007035 Bill On Mon, 9 May 2005, Tyler Mitchell wrote: > For what it's worth. My book will be out mid-June and covers MapServer, > GDAL/OGR, PostGIS and more. > > See: http://www.oreilly.com/catalog/webmapping/ > > Tyler > > On May 2, 2005 07:05 am, Brent Fraser wrote: > > Raphael, > > > > Two books that cover Internet GIS are > > > > "GIS ONLINE" by Brandon Plewe, OnWord Press ISBN 1-56690-137-5 (1997) > > "Internet GIS" Zhong-Ren Peng, Wiley & Sons ISBN 0-471-35923-8 (2003) > > > > Brent Fraser > > > > > > ----- Original Message ----- > > From: "Raphael Teixeira" > > To: > > Sent: Monday, May 02, 2005 7:17 AM > > Subject: [UMN_MAPSERVER-USERS] Book about Distributed GIS > > > > > > Hi All, > > > > I'm working on my dissertation about Distributed GIS and I'd like > > to know a name of a good book that cover this subject. > > > > Best regards > > -- > > Raphael da Silva Teixeira > > From janeks.kamerovskis at SILVA.LV Mon May 9 23:15:42 2005 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Tue, 10 May 2005 09:15:42 +0300 Subject: Rebol mapserver client Message-ID: Hi, Rebol (www.rebol.com) or to be more exact Rebol/View is very suitable for making Mapserver client apps, also available as IE browser plugin. I wrote an example in Rebol that uses tutorial example data from: http://terrasip.gis.umn.edu/cgi-bin/mapserv40?map=/data/projects/tutorial/ex ample2-1.map&mode=browse Example in plugin mode could be found at: http://www.rebol.org/cgi-bin/cgiwrap/rebol/run-plugin.r?script-name=cl4mapse rv.r Or downloaded from: http://www.rebol.org/cgi-bin/cgiwrap/rebol/download-a-script.r?script-name=c l4mapserv.r This way is more suitable for those, that have no Win IE, but then you should download Rebol/View (avalable for many platforms) - to run script. Also a question: Did I understand right, that in case when mapext variable and also image map coordinates is calculated at the client side, than to get accurate image map coordinates client should take care about maintaining the same proportions between image size and mapext size? brgds Janeks From BEN at SYNCERA-ITSOLUTIONS.NL Tue May 10 00:11:27 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 10 May 2005 09:11:27 +0200 Subject: Projection and EXTENTS Message-ID: Hi, I am no projection expert but I can imagine your shapefile isn't in EPSG 26797 (or did convert your shapefile to that projection). The LAYER PROJECTION should have the source projection of the data in it, the MAP PROJECTION should contain the target projection you want. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Matthew Roberson 05/10/05 12:18am >>> I am trying to create a projection a map of the state of Missouri that was created by the US Census Bureau(zt29_d00.shp). I used ogrinfo to get the following information about the EXTENT: [imac-dev03:~/Documents] matthewr% ogrinfo -so zt29_d00.shp zt29_d00 INFO: Open of `zt29_d00.shp' using driver `ESRI Shapefile' successful. Layer name: zt29_d00 Geometry: Polygon Feature Count: 1341 Extent: (-95.774704, 35.995683) - (-89.098843, 40.613640) Layer SRS WKT: (unknown) AREA: Real (20.5) PERIMETER: Real (20.5) ZT29_D00_: Integer (11.0) ZT29_D00_I: Integer (11.0) ZCTA: String (5.0) NAME: String (90.0) LSAD: String (2.0) LSAD_TRANS: String (50.0) Then, I used proj4 to find lat long values for the a Lambert Azimuthal Equal Area projection. [imac-dev03:~/Documents] matthewr% proj +proj=laea +ellps=clrk66 +R_A -95.774704 35.995683 -7567149.62 5525023.18 -89.098843 40.613640 -6798293.00 5830370.88 When I use these values with MapServer to make a map, nothing shows up. Am I missing something. Should I post this question in this list or in the MapServer User's group? Any help would be appreciated. Below is copy of my map file also, MAP NAME MO IMAGETYPE GIF SIZE 6000 6000 IMAGECOLOR 240 240 240 SHAPEPATH "/Library/WebServer/Documents/data" FONTSET "/Library/fonts/fonts.list" EXTENT -7567149.62 5525023.18 -6798293.00 5830370.88 UNITS METERS WEB IMAGEPATH "/Library/WebServer/Documents/test/" IMAGEURL "/test/" END PROJECTION "init=epsg:26797" END LEGEND STATUS EMBED POSITION UR END SCALEBAR TRANSPARENT ON BACKGROUNDCOLOR 254 254 254 STATUS EMBED POSITION LR STYLE 1 END LAYER NAME "MO zip code boundaries" DATA "zt29_d00" STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:26797" END LABELITEM "ZCTA" CLASS COLOR 254 0 0 LABEL COLOR 60 60 60 SHADOWCOLOR 218 218 218 SHADOWSIZE 1 1 TYPE TRUETYPE FONT arialhb SIZE 10 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 5 BUFFER 4 END OUTLINECOLOR 60 60 60 SYMBOL 0 END END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 10 680 END TEXT 'Made with Mapserver.' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 0 0 0 END END END END Thanks, Matt From sweykam at TELELINE.ES Tue May 10 00:27:10 2005 From: sweykam at TELELINE.ES (Stefanie Weykam) Date: Tue, 10 May 2005 09:27:10 +0200 Subject: PostGIS pre-instalation considerations (was MyGIS and WFS) Message-ID: Thanks, Frank, Bart and Arnulf! Sounds convincing, I think I will give PostGIS a try. But - how am I going to explain this to the data providers?! Are there possibilities to build a bridge between Access and PostgreSQL? I am afraid, the workload of putting it all together has to be done by many volunteers (who are not necessarily used to work with relational databases). So we thought it was a good idea to have Access in between. Additionally, the data will also be updated quite frequently. Any suggestion on how to make things easy for these people (without doing it all myself for the next few years)?? Perhaps somebody on this list has solved a similar situation? Should be quite common, I guess. Stefanie From BEN at SYNCERA-ITSOLUTIONS.NL Tue May 10 00:32:55 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 10 May 2005 09:32:55 +0200 Subject: PostGIS pre-instalation considerations (was MyGIS and WFS) Message-ID: Hi Stefanie, there are probably some thoughts in the following article: http://www.greenleaftech.net/articles/msaccesspostgres/document_view Will the data providers have access to the main database? Then you could use ODBC and use Access as the frontend to the PostgreSQL database to get them to fill the database. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Stefanie Weykam 05/10/05 09:27am >>> Thanks, Frank, Bart and Arnulf! Sounds convincing, I think I will give PostGIS a try. But - how am I going to explain this to the data providers?! Are there possibilities to build a bridge between Access and PostgreSQL? I am afraid, the workload of putting it all together has to be done by many volunteers (who are not necessarily used to work with relational databases).. So we thought it was a good idea to have Access in between. Additionally, the data will also be updated quite frequently. Any suggestion on how to make things easy for these people (without doing it all myself for the next few years)?? Perhaps somebody on this list has solved a similar situation? Should be quite common, I guess. Stefanie From taatuut at PLANET.NL Tue May 10 00:50:36 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Tue, 10 May 2005 09:50:36 +0200 Subject: Python MapScript module cannot be found? In-Reply-To: Message-ID: Hello, I'm trying to use Python MapScript. I have installed the Windows binaries supplied by Howard (mapscript-4.5.win32-py2.3-full.exe from 9-5-2005) on a Windows XP Pro (IIS 5.1) system with Python 2.3.5. Python scripts do run under IIS but when trying to access the Python Mapscript module I get the following error: File "C:\Python23\lib\site-packages\mapscript.py", line 4, in ? import _mapscript ImportError: DLL load failed: The specified module could not be found. The problem seems to be in the 'import _mapscript' part. The file _mapscript.pyd is located in C:\Python23\lib\site-packages\, together with mapscript.py and other files. What can be the reason for not finding the module? As test I've tried renaming the file (to _mapscript.dll and _mapscript) without succes. The files in C:\Python23 and ub folders are given the needed Windows IUSR rights. Regards, Emil From bvanmeul at EBE.UCT.AC.ZA Tue May 10 02:42:52 2005 From: bvanmeul at EBE.UCT.AC.ZA (Bas Vanmeulebrouk) Date: Tue, 10 May 2005 11:42:52 +0200 Subject: Python MapScript module cannot be found? In-Reply-To: Message-ID: Hello Emil, I had the same problem, but then with Python Mapscript and an Apache webserver. I have posted about it on this list. The problem is probably caused by some environment variables which are not recognized by your webserver (path and/or pythonpath). I have solved the problem by copying the mapscript.py and _mapscript.pyd to a directory which contains other Python modules of which I am sure they are running correct (/Lib. I haven't had the time to look into a better solution yet. Kind regards, Bas Vanmeulebrouk. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Emil Zegers Sent: Tuesday, May 10, 2005 9:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Python MapScript module cannot be found? Hello, I'm trying to use Python MapScript. I have installed the Windows binaries supplied by Howard (mapscript-4.5.win32-py2.3-full.exe from 9-5-2005) on a Windows XP Pro (IIS 5.1) system with Python 2.3.5. Python scripts do run under IIS but when trying to access the Python Mapscript module I get the following error: File "C:\Python23\lib\site-packages\mapscript.py", line 4, in ? import _mapscript ImportError: DLL load failed: The specified module could not be found. The problem seems to be in the 'import _mapscript' part. The file _mapscript.pyd is located in C:\Python23\lib\site-packages\, together with mapscript.py and other files. What can be the reason for not finding the module? As test I've tried renaming the file (to _mapscript.dll and _mapscript) without succes. The files in C:\Python23 and ub folders are given the needed Windows IUSR rights. Regards, Emil From nbarker at RSINC.COM Tue May 10 03:23:24 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Tue, 10 May 2005 11:23:24 +0100 Subject: WCS died! Message-ID: Hi, I had a working WCS yesterday, but have been doing low level access to Mapserver using sockets and sending the http requests and now the getCapabilities, and describeCoverage work, but the getCoverageFails with an empty file being returned. I appreciate this isn't much information, but to go from a working system to a non working system after making socket calls with IDL is odd. Is there a way to use the mapserv executable to execute a getCoverage request outside of Apache so that I can debug the response? Many thanks, Norman Barker From saso.celarc at HERMES-PLUS.SI Tue May 10 03:50:08 2005 From: saso.celarc at HERMES-PLUS.SI (Sa=?ISO-8859-1?Q?=9Ao?= Celarc) Date: Tue, 10 May 2005 05:50:08 -0500 Subject: JavaMapScript Demo Message-ID: General question: Where to start automation of MapServer using Java on Windows/Apache/Tomcat. I succesfully installed Mapserver, conncteed it to Oracle, SDE, make all examples in Workshop and tutorial? Other questions: -Where can be some usefull demo/documentation with source code of using JavaMapScript can be found? -What is difference between using SWIGMapScript(with Java) and JavaMapScript. Regards, Saso From BEN at SYNCERA-ITSOLUTIONS.NL Tue May 10 04:17:29 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 10 May 2005 13:17:29 +0200 Subject: JavaMapScript Demo Message-ID: Hi Saso, Umberto Nicoletti maintains some Java Mapscript resources at: http://www.unicolet.org/mapserver/compile.html http://www.unicolet.org/mapserver/tomcat.pdf AFAIK there is no difference between SWIGMapScript(with Java) and JavaMapScript, it's the same thing. For class references etc. check other SWIG Mapscript documentation, like Python Mapscript, and try to convert the examples to Java. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Sa?o Celarc 05/10/05 12:50pm >>> General question: Where to start automation of MapServer using Java on Windows/Apache/Tomcat. I succesfully installed Mapserver, conncteed it to Oracle, SDE, make all examples in Workshop and tutorial? Other questions: -Where can be some usefull demo/documentation with source code of using JavaMapScript can be found? -What is difference between using SWIGMapScript(with Java) and JavaMapScript. Regards, Saso From taatuut at PLANET.NL Tue May 10 04:21:47 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Tue, 10 May 2005 13:21:47 +0200 Subject: Python MapScript module cannot be found? In-Reply-To: <000501c55544$a2f92060$cf1d9e89@GISLAB6> Message-ID: Hello Bas, Thanks for your reply. Moving/copying the files to other locations didn't solve the problem. I checked the PYTHONPATH (both the reg key and the environment variable) to be sure C:\Python23\lib\site-packages is included and it is. Then I tried 'import _mapscript' from the Python prompt. Now I get a error message 'The procedure entry point ... could not be located in the dynamic link library NCSEcw.dll'. It appears to me I need a specific version of the NCS dll's but I don't know which one (the NCS dll's were not included in the MapScript installer, I tried with the NCS dll's found in http://hobu.stat.iastate.edu/mapserver/build_output/sean with no succes). Maybe I can find more info in the build log files on Howard's site but I welcome tips on this. Regards, Emil -----Original Message----- From: Bas Vanmeulebrouk [mailto:bvanmeul at ebe.uct.ac.za] Sent: dinsdag 10 mei 2005 11:43 To: 'Emil Zegers'; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Python MapScript module cannot be found? Hello Emil, I had the same problem, but then with Python Mapscript and an Apache webserver. I have posted about it on this list. The problem is probably caused by some environment variables which are not recognized by your webserver (path and/or pythonpath). I have solved the problem by copying the mapscript.py and _mapscript.pyd to a directory which contains other Python modules of which I am sure they are running correct (/Lib. I haven't had the time to look into a better solution yet. Kind regards, Bas Vanmeulebrouk. From nbarker at RSINC.COM Tue May 10 03:47:16 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Tue, 10 May 2005 11:47:16 +0100 Subject: WCS died! Message-ID: Many, many apologies, running df showed one of the disks to be 100% full. My stupid error of the day. Norman -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Norman Barker Sent: Tuesday, May 10, 2005 11:23 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] WCS died! Hi, I had a working WCS yesterday, but have been doing low level access to Mapserver using sockets and sending the http requests and now the getCapabilities, and describeCoverage work, but the getCoverageFails with an empty file being returned. I appreciate this isn't much information, but to go from a working system to a non working system after making socket calls with IDL is odd. Is there a way to use the mapserv executable to execute a getCoverage request outside of Apache so that I can debug the response? Many thanks, Norman Barker From bvanmeul at EBE.UCT.AC.ZA Tue May 10 05:18:01 2005 From: bvanmeul at EBE.UCT.AC.ZA (Bas Vanmeulebrouk) Date: Tue, 10 May 2005 14:18:01 +0200 Subject: Python MapScript module cannot be found? In-Reply-To: Message-ID: Hello Emil, I have had this dll problem as well, amongst others with gdal12.dll, nscecw.dll and ncsutil.dll. On my machine, it was caused be the fact that I had more versions of the same dll. I searched my harddrive for these dll's and renamed the ones which didn't come with Python Mapscript to make sure that Python Mapscript was using the correct ones. After that, Python Mapscript was working fine from the Python prompt. Kind regards, Bas. -----Original Message----- From: Emil Zegers [mailto:taatuut at planet.nl] Sent: Tuesday, May 10, 2005 1:22 PM To: Bas Vanmeulebrouk; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Python MapScript module cannot be found? Hello Bas, Thanks for your reply. Moving/copying the files to other locations didn't solve the problem. I checked the PYTHONPATH (both the reg key and the environment variable) to be sure C:\Python23\lib\site-packages is included and it is. Then I tried 'import _mapscript' from the Python prompt. Now I get a error message 'The procedure entry point ... could not be located in the dynamic link library NCSEcw.dll'. It appears to me I need a specific version of the NCS dll's but I don't know which one (the NCS dll's were not included in the MapScript installer, I tried with the NCS dll's found in http://hobu.stat.iastate.edu/mapserver/build_output/sean with no succes). Maybe I can find more info in the build log files on Howard's site but I welcome tips on this. Regards, Emil -----Original Message----- From: Bas Vanmeulebrouk [mailto:bvanmeul at ebe.uct.ac.za] Sent: dinsdag 10 mei 2005 11:43 To: 'Emil Zegers'; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Python MapScript module cannot be found? Hello Emil, I had the same problem, but then with Python Mapscript and an Apache webserver. I have posted about it on this list. The problem is probably caused by some environment variables which are not recognized by your webserver (path and/or pythonpath). I have solved the problem by copying the mapscript.py and _mapscript.pyd to a directory which contains other Python modules of which I am sure they are running correct (/Lib. I haven't had the time to look into a better solution yet. Kind regards, Bas Vanmeulebrouk. From neuchi at TCI-COM.BIZ Tue May 10 05:52:32 2005 From: neuchi at TCI-COM.BIZ (Akio Neuchi) Date: Tue, 10 May 2005 21:52:32 +0900 Subject: GIF Raster Image Process Problem {Scanned} In-Reply-To: Message-ID: Dear Zoltan, Thanks for your tips. Now I am facing another problem. Tile indexing various gif images -- around 800 per district ( in Japan there are around 10 districts in sum), to a single shp using GDALtindex. Though I am thinking for writing a program to generate the same number of world files, it would be very helpful if there is a free program to do the job. Do you have any idea? Thanks again, Akio -----Original Message----- From: Siki Zoltan [mailto:siki at agt.bme.hu] Sent: Friday, May 06, 2005 8:27 PM To: Akio Neuchi Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] GIF Raster Image Process Problem {Scanned} Dear Akio, The formula looks like: X = Ax + By + C and Y = Dx + Ey + F (Affine transformation) The order of the parameters in the world file is: A D B E C F The process to find out the values of the parameters is called georeferencing. There are a loft of programs what can solve the task specifying point on the raster and giving the real co-ordinates for them. Unfortunatelly I use commercial software for this purpose, but I think GRASS can do it. Usually more then the minimal 3 points are used with a least squares estimation. I hope it helps you Zoltan On Fri, 6 May 2005, Akio Neuchi wrote: > Dear Zoltan??? > > Sorry for my late reply. > We were in long holidays here in Japan. > Thank you for your recommendations. > In fact, by adjusting World file, the Raster/Vector Images finally so-so well superimposed, > except the coordinates of these images are a bit dislocated, depend on the 1st and 4th pixel values on the World file. > Though I am adjusting manually those numbers, what is the right formula to get the X and Y pixel dimensions? > Thanks again for your help. > > Akio > > > 0.000038 > 0.0000000000 > 0.0000000000 > -0.000038 > 139.738114 > 35.691990000000004 > > MAP #file > NAME rastest > STATUS ON > SIZE 600 700 > EXTENT 139.5 35.5 140 36 > UNITS dd > SHAPEPATH "data" > FONTSET "./fonts/fonts.lst" > IMAGECOLOR 225 240 200 > IMAGETYPE GIF > > # Projection definition, set-upped by PROJ.4 parameters > PROJECTION > # "init=epsg:26915" > "proj=latlong" > END > > # Web interface definition (including WMS enabling metadata) > WEB > EMPTY "/gistest/empty.html" > HEADER decide_route_header.html > TEMPLATE decide_route.html > FOOTER decide_route_footer.html > MINSCALE 0 > MAXSCALE 300000000 > IMAGEPATH /var/opt/SUNWappserver7/domains/domain1/server1/docroot/gistest/tmp > IMAGEURL /gistest/tmp > LOG /var/opt/SUNWappserver7/domains/domain1/server1/docroot/gistest/rastest.log > # TEMPLATE "decide_route.html" > METADATA > WMS_TITLE "MapDisplay Demo" > WMS_ABSTRACT "Created by AN" > WMS_ACCESSCONSTRAINTS none > END > END > > QUERYMAP > SIZE 200 200 > STATUS ON > STYLE HILITE > COLOR 255 0 0 > END > > OUTPUTFORMAT > NAME gif > MIMETYPE "image/gif" > DRIVER "GD/GIF" > EXTENSION "gif" > # IMAGEMODE RGB > IMAGEMODE PC256 > TRANSPARENT FALSE > # TRANSPARENT TRUE > # FORMATOPTION "INTERLACE=OFF" > END > > ### RASTER Layer > LAYER > NAME "RAS365313" > GROUP "B_RASTER" > TYPE RASTER > DATA "MS12000DEF365313.gif" > # STATUS ON > STATUS DEFAULT > TRANSPARENCY 100 > # OFFSITE 125 135 148 > PROJECTION > "proj=latlong" > # "init=epsg:26915" > END > PROCESSING "LOAD_WHOLE_IMAGE=TRUE" > END > > # here starts Vector Layers > # background - Parks > LAYER > NAME "BARA_PARK_AREA" > GROUP "BARA_PARK" > TILEINDEX "v_bak_ara_park" > STATUS ON > MAXSCALE 200000 > TYPE POLYGON > PROJECTION > # "init=epsg:26915" > "proj=latlong" > END > CLASS > BACKGROUNDCOLOR 0 220 0 > COLOR 150 200 100 > # COLOR 154 205 50 > END > END > > # background - Sea surface > LAYER > NAME "BARA_SEA" > TILEINDEX "v_bak_ara_sea" > STATUS default > TYPE POLYGON > PROJECTION > # "init=epsg:26915" > "proj=latlong" > END > CLASS > BACKGROUNDCOLOR 0 255 255 > COLOR 100 149 237 > END > END > > # background - Rivers > LAYER > NAME "BLIN_RIVER" > TILEINDEX "v_bak_lin_river" > STATUS default > MAXSCALE 200000 > TYPE LINE > PROJECTION > # "init=epsg:26915" > "proj=latlong" > END > CLASS > BACKGROUNDCOLOR 0 255 255 > COLOR 100 149 237 > END > END > END # Map File > > -----Original Message----- > From: Siki Zoltan [mailto:siki at agt.bme.hu] > Sent: Friday, April 29, 2005 5:31 PM > To: Akio Neuchi > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] GIF Raster Image Process Problem {Scanned} > > > Dear Akio, > > You should define EXTENT, UNITS and SHAPEPATH at separate lines. > Do you have world file to your image? Check the extents. > Try STATUS DEFAULT. > > Bye Zoltan > > > From sgillies at FRII.COM Tue May 10 06:33:59 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 10 May 2005 07:33:59 -0600 Subject: Python MapScript module cannot be found? In-Reply-To: Message-ID: Emil, I think Bas is right. Once you get the outdated DLLs out of your system directory (or path) the _mapscript module should load properly. cheers, Sean On May 10, 2005, at 6:18 AM, Bas Vanmeulebrouk wrote: > Hello Emil, > > I have had this dll problem as well, amongst others with gdal12.dll, > nscecw.dll and ncsutil.dll. On my machine, it was caused be the fact = > that I > had more versions of the same dll. I searched my harddrive for these = > dll's > and renamed the ones which didn't come with Python Mapscript to make = > sure > that Python Mapscript was using the correct ones. After that, Python > Mapscript was working fine from the Python prompt.=20 > > Kind regards, > > Bas. > > -----Original Message----- > From: Emil Zegers [mailto:taatuut at planet.nl]=20 > Sent: Tuesday, May 10, 2005 1:22 PM > To: Bas Vanmeulebrouk; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] Python MapScript module cannot be = > found? > > > Hello Bas, > > Thanks for your reply. > > Moving/copying the files to other locations didn't solve the problem. > > I checked the PYTHONPATH (both the reg key and the environment > variable) = > to > be sure C:\Python23\lib\site-packages is included and it is. > > Then I tried 'import _mapscript' from the Python prompt. > > Now I get a error message 'The procedure entry point ... could not be > located in the dynamic link library NCSEcw.dll'. > > It appears to me I need a specific version of the NCS dll's but I > don't = > know > which one (the NCS dll's were not included in the MapScript installer, > I > tried with the NCS dll's found in > http://hobu.stat.iastate.edu/mapserver/build_output/sean with no = > succes). > > Maybe I can find more info in the build log files on Howard's site but > I > welcome tips on this. > > Regards, > > Emil > > > -----Original Message----- > From: Bas Vanmeulebrouk [mailto:bvanmeul at ebe.uct.ac.za] > Sent: dinsdag 10 mei 2005 11:43 > To: 'Emil Zegers'; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] Python MapScript module cannot be = > found? > > > Hello Emil, > > I had the same problem, but then with Python Mapscript and an Apache > webserver. I have posted about it on this list. The problem is probably > caused by some environment variables which are not recognized by your > webserver (path and/or pythonpath). I have solved the problem by > copying = > the > mapscript.py and _mapscript.pyd to a directory which contains other = > Python > modules of which I am sure they are running correct ( dir>/Lib. I haven't had the time to look into a better solution yet. > > Kind regards, > > Bas Vanmeulebrouk. > From taatuut at PLANET.NL Tue May 10 06:48:45 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Tue, 10 May 2005 15:48:45 +0200 Subject: Python MapScript module cannot be found? In-Reply-To: <39f53dae270c74b9c1b3b04e8c5cff33@frii.com> Message-ID: Hello Sean, I tried that by renaming/moving the wrong version NCS dll's that were in the path. But I don't know what set of NCS dll's should be used with the Python MapScript binaries I downloaded... I tried several (the NCS dll's found on Howard's site, the dll's that come with MapServer binaries) but so far no luck. Is there a way to determine what version is needed? Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Sean Gillies Sent: dinsdag 10 mei 2005 15:34 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Python MapScript module cannot be found? Emil, I think Bas is right. Once you get the outdated DLLs out of your system directory (or path) the _mapscript module should load properly. cheers, Sean From hobu at IASTATE.EDU Tue May 10 07:06:35 2005 From: hobu at IASTATE.EDU (Howard Butler) Date: Tue, 10 May 2005 09:06:35 -0500 Subject: Python MapScript module cannot be found? In-Reply-To: Message-ID: Emil, Find all of the libmap.dll and gdal.dll in c:\python23 and c:\python23\dlls and delete them. Ensure that you don't have another GDAL with ECW support somewhere else on your system. The Python Mapscript installer is pretty dumb and doesn't clean up after itself properly. Uninstall Python Mapscript using Windows add/remove programs. Install 4.4.2 MapScript which is located at http://hobu.stat.iastate.edu/mapserver/mapserver/build_output/4_4_2/debug/python.zip This MapScript does not have ECW or MrSID support (I am no longer distributing those due to licensing constraints). Refer to the message I sent Bas last week for more information. Howard At 3:48 PM +0200 5/10/05, Emil Zegers wrote: >Hello Sean, > >I tried that by renaming/moving the wrong version NCS dll's that were in the >path. > >But I don't know what set of NCS dll's should be used with the Python >MapScript binaries I downloaded... > >I tried several (the NCS dll's found on Howard's site, the dll's that come >with MapServer binaries) but so far no luck. > >Is there a way to determine what version is needed? > >Regards, > >Emil > > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On >Behalf Of Sean Gillies >Sent: dinsdag 10 mei 2005 15:34 >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Python MapScript module cannot be >found? > > >Emil, > >I think Bas is right. Once you get the outdated DLLs out of your >system directory (or path) the _mapscript module should load properly. > >cheers, >Sean From taatuut at PLANET.NL Tue May 10 08:08:59 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Tue, 10 May 2005 17:08:59 +0200 Subject: Python MapScript module cannot be found? In-Reply-To: Message-ID: Hello Howard, I followed your advice but that MapScript version complained about needing sde90.dll so I used the version from http://hobu.stat.iastate.edu/mapserver/mapserver/build_output/4_4_2/none/pyt hon.zip On the Python command line I can now do 'import _mapscript' without errors but when using it via IIS I keep getting: import _mapscript ImportError: DLL load failed: the specific module could not be found Maybe I'm still missing something obvious or maybe it related to the fact I'm using Python MapScript with IIS. Anyway, thanks so far for the feedback and hints, I really appreciate it (this goes for Bas too). Regards, Emil -----Original Message----- From: Howard Butler [mailto:hobu at iastate.edu] Sent: dinsdag 10 mei 2005 16:07 To: Emil Zegers; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: Python MapScript module cannot be found? Emil, Find all of the libmap.dll and gdal.dll in c:\python23 and c:\python23\dlls and delete them. Ensure that you don't have another GDAL with ECW support somewhere else on your system. The Python Mapscript installer is pretty dumb and doesn't clean up after itself properly. Uninstall Python Mapscript using Windows add/remove programs. Install 4.4.2 MapScript which is located at http://hobu.stat.iastate.edu/mapserver/mapserver/build_output/4_4_2/debug/py thon.zip This MapScript does not have ECW or MrSID support (I am no longer distributing those due to licensing constraints). Refer to the message I sent Bas last week for more information. Howard From andrea.edwards at NULC.AC.UK Tue May 10 07:47:01 2005 From: andrea.edwards at NULC.AC.UK (Andrea Edwards) Date: Tue, 10 May 2005 15:47:01 +0100 Subject: using asp and mapserver to put an image at a lat/lon coordinate Message-ID: Hello I am new to mapserver and I am really struggling. Any help would be greatly valued. I want to use mapserver for an internet mapping application but I do not want to use php or perl. I would prefer to use asp. However, this precludes my use of mapscript. For my application I need to be able to access some gps coordinates from a database and then position a graphic on top of the map at this coordinate. I have only a basic knowledge of mapserver. I believe that I can dynamically change map file parameters via a form or url. In theory therefore I can create a get request in my asp code and send this to mapserver using an asp component such asphttp (I have seen this discussed in the archives). I believe that to add an image to a map I have to use a symbol and set its type to pixmap. However, I cannot see any parameters for specifying the location of the image in the map in (x,y) coordinates. Am I on the right track? Please can you tell me how I specify the location of the image. I want to know if it's possible to access the mapserver c api directly from asp. I have seen a resource called VisualBasic.Net GIS which accesses mapserver so it must be possible though I expect its not a trivial task. Whilst this library is very useful it does not seem to have any features for positioning graphics at a certain coordinate. I guess I am hoping there is an asp equivalent of mapscript somewhere that I can use or buy. I have used aspmap which I think is very good. However, I would really like to use mapserver because I would really like to make use of its ability to return flash vector files. That way I can do all my zooming and panning on the client in flash (one day when I know how) Thank you very much. Please help!! andrea From sgillies at FRII.COM Tue May 10 08:57:02 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 10 May 2005 09:57:02 -0600 Subject: Python MapScript module cannot be found? In-Reply-To: Message-ID: Emil, Make sure that all environment variables, including PATH, are properly set for the IIS user. Sean On May 10, 2005, at 9:08 AM, Emil Zegers wrote: > Hello Howard, > > I followed your advice but that MapScript version complained about > needing > sde90.dll so I used the version from > http://hobu.stat.iastate.edu/mapserver/mapserver/build_output/4_4_2/ > none/pyt > hon.zip > > On the Python command line I can now do 'import _mapscript' without > errors > but when using it via IIS I keep getting: > > import _mapscript > ImportError: DLL load failed: the specific module could not be found > > Maybe I'm still missing something obvious or maybe it related to the > fact > I'm using Python MapScript with IIS. > > Anyway, thanks so far for the feedback and hints, I really appreciate > it > (this goes for Bas too). > > Regards, > > Emil > > > -----Original Message----- > From: Howard Butler [mailto:hobu at iastate.edu] > Sent: dinsdag 10 mei 2005 16:07 > To: Emil Zegers; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: Python MapScript module cannot be found? > > > Emil, > > Find all of the libmap.dll and gdal.dll in c:\python23 and > c:\python23\dlls and delete them. Ensure that you don't have another > GDAL with ECW support somewhere else on your system. The Python > Mapscript installer is pretty dumb and doesn't clean up after itself > properly. Uninstall Python Mapscript using Windows add/remove > programs. > > Install 4.4.2 MapScript which is located at > http://hobu.stat.iastate.edu/mapserver/mapserver/build_output/4_4_2/ > debug/py > thon.zip > This MapScript does not have ECW or MrSID support (I am no longer > distributing those due to licensing constraints). > > Refer to the message I sent Bas last week for more information. > > Howard > From steve.lime at DNR.STATE.MN.US Tue May 10 10:00:01 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 10 May 2005 12:00:01 -0500 Subject: Minfeaturesize?? Message-ID: Note that you can use the sortshp utility in MapServer to order features by size assuming you have an attribute that stores area. This is a bit more high performance than the MINFEATURESIZE approach since not all features need be processed. I do like the idea though and would like to get in place by the 4.6 release... Steve >>> Stephen Woodbridge 5/7/2005 1:30:55 PM >>> Ok, I have opened an enhancement request to add this to mapserver. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1340 Thanks, -Steve Sean Gillies wrote: > Steve, > > Yeah, it's for labels only. You'll need an area attribute. In several > apps I've sorted water bodies, parks, etc by area and then use the > maxfeatures directive to render just the first N (ie largest) features > within a map view. Works great. If you have a RDBMS backend, you can > have it order and limit for you. > > cheers, > Sean > > On May 7, 2005, at 10:34 AM, Stephen Woodbridge wrote: > >> I still haven't not figure out a way to solve this issue. What are >> other >> people doing about this? >> >> -Steve >> >> Stephen Woodbridge wrote: >> >>> Hi all, >>> >>> I thought there was a way to suppress features from being drawn with >>> MINFEATURESIZE, but it only seems to work for labels. Am I missing >>> something? >>> >>> I have a layer with water polygons and they are getting displayed as >>> single pixels and I would like to suppress them. Is there an easy way >>> to >>> do this short of adding an area attribute and filtering based on that? >>> >>> Thanks, >>> -Steve >>> >> >> > -- > Sean Gillies > sgillies at frii dot com > http://zcologia.com > From kgrootendorst at BAIRD.COM Tue May 10 10:10:23 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Tue, 10 May 2005 12:10:23 -0500 Subject: Ontario Prov./Municipal WMS data Message-ID: Could anyone point me to any servers that are providing WMS for Provincial/Municipal data for Ontario? I'm mainly interested in base data sets. Is there a compiled list of WMS servers out there somewhere? Thanks, Kevin From woodbri at SWOODBRIDGE.COM Tue May 10 10:34:08 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 10 May 2005 13:34:08 -0400 Subject: Minfeaturesize?? In-Reply-To: Message-ID: Steve, That would be really great to have in 4.6. I am also thinking about adding an area attribute to my tiger2shape translator or a utility to compute the area from a shape and add it to the attributes. But I think having this feature makes it much friendlier for people that don't have the attribute column to start with to get a better looking map. Thank you for your support, -Steve W. Steve Lime wrote: > Note that you can use the sortshp utility in MapServer to order > features > by size assuming you have an attribute that stores area. This is a bit > more > high performance than the MINFEATURESIZE approach since not all > features > need be processed. I do like the idea though and would like to get in > place > by the 4.6 release... > > Steve > > >>>>Stephen Woodbridge 5/7/2005 1:30:55 PM >>>> > > Ok, I have opened an enhancement request to add this to mapserver. > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1340 > > Thanks, > -Steve > > > Sean Gillies wrote: > >>Steve, >> >>Yeah, it's for labels only. You'll need an area attribute. In > > several > >>apps I've sorted water bodies, parks, etc by area and then use the >>maxfeatures directive to render just the first N (ie largest) > > features > >>within a map view. Works great. If you have a RDBMS backend, you > > can > >>have it order and limit for you. >> >>cheers, >>Sean >> >>On May 7, 2005, at 10:34 AM, Stephen Woodbridge wrote: >> >> >>>I still haven't not figure out a way to solve this issue. What are >>>other >>>people doing about this? >>> >>>-Steve >>> >>>Stephen Woodbridge wrote: >>> >>> >>>>Hi all, >>>> >>>>I thought there was a way to suppress features from being drawn > > with > >>>>MINFEATURESIZE, but it only seems to work for labels. Am I missing >>>>something? >>>> >>>>I have a layer with water polygons and they are getting displayed > > as > >>>>single pixels and I would like to suppress them. Is there an easy > > way > >>>>to >>>>do this short of adding an area attribute and filtering based on > > that? > >>>>Thanks, >>>> -Steve >>>> >>> >>> >>-- >>Sean Gillies >>sgillies at frii dot com >>http://zcologia.com >> > > From sgillies at FRII.COM Tue May 10 10:54:31 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 10 May 2005 11:54:31 -0600 Subject: Minfeaturesize?? In-Reply-To: Message-ID: Steve W, There's a freeze on new features for 4.6. Sean On May 10, 2005, at 11:34 AM, Stephen Woodbridge wrote: > Steve, > > That would be really great to have in 4.6. I am also thinking about > adding an area attribute to my tiger2shape translator or a utility to > compute the area from a shape and add it to the attributes. But I think > having this feature makes it much friendlier for people that don't have > the attribute column to start with to get a better looking map. > > Thank you for your support, > -Steve W. > > Steve Lime wrote: >> Note that you can use the sortshp utility in MapServer to order >> features >> by size assuming you have an attribute that stores area. This is a bit >> more >> high performance than the MINFEATURESIZE approach since not all >> features >> need be processed. I do like the idea though and would like to get in >> place >> by the 4.6 release... >> >> Steve >> >> >>>>> Stephen Woodbridge 5/7/2005 1:30:55 PM >>>>> >> >> Ok, I have opened an enhancement request to add this to mapserver. >> >> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1340 >> >> Thanks, >> -Steve >> >> >> Sean Gillies wrote: >> >>> Steve, >>> >>> Yeah, it's for labels only. You'll need an area attribute. In >> >> several >> >>> apps I've sorted water bodies, parks, etc by area and then use the >>> maxfeatures directive to render just the first N (ie largest) >> >> features >> >>> within a map view. Works great. If you have a RDBMS backend, you >> >> can >> >>> have it order and limit for you. >>> >>> cheers, >>> Sean >>> >>> On May 7, 2005, at 10:34 AM, Stephen Woodbridge wrote: >>> >>> >>>> I still haven't not figure out a way to solve this issue. What are >>>> other >>>> people doing about this? >>>> >>>> -Steve >>>> >>>> Stephen Woodbridge wrote: >>>> >>>> >>>>> Hi all, >>>>> >>>>> I thought there was a way to suppress features from being drawn >> >> with >> >>>>> MINFEATURESIZE, but it only seems to work for labels. Am I missing >>>>> something? >>>>> >>>>> I have a layer with water polygons and they are getting displayed >> >> as >> >>>>> single pixels and I would like to suppress them. Is there an easy >> >> way >> >>>>> to >>>>> do this short of adding an area attribute and filtering based on >> >> that? >> >>>>> Thanks, >>>>> -Steve >>>>> >>>> >>>> >>> -- >>> Sean Gillies >>> sgillies at frii dot com >>> http://zcologia.com >>> >> >> > From siki at AGT.BME.HU Tue May 10 14:02:22 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 10 May 2005 20:02:22 -0100 Subject: GIF Raster Image Process Problem {Scanned} In-Reply-To: Message-ID: Dear Akio, I do not know any free tool to do the task direcly. Recently I have faced to the same trouble. The name of the raster files contained a row and a column number. I wrote a simple program to do the task, I attache the c source. An other possible solution to draw the border of the images in a polygon shape file, add the name of the corresponding raster file as an attribute to the polygon and write a "simple program" using shapelib ... I hope it helps you Zoltan On Tue, 10 May 2005, Akio Neuchi wrote: > Dear Zoltan, > > Thanks for your tips. > Now I am facing another problem. > Tile indexing various gif images -- around 800 per district ( in Japan there > are around 10 districts in sum), > to a single shp using GDALtindex. > Though I am thinking for writing a program to generate the same number of > world files, > it would be very helpful if there is a free program to do the job. > Do you have any idea? > Thanks again, > > Akio > > -----Original Message----- > From: Siki Zoltan [mailto:siki at agt.bme.hu] > Sent: Friday, May 06, 2005 8:27 PM > To: Akio Neuchi > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] GIF Raster Image Process Problem > {Scanned} > > > Dear Akio, > > The formula looks like: > X = Ax + By + C and Y = Dx + Ey + F (Affine transformation) > The order of the parameters in the world file is: > A > D > B > E > C > F > > The process to find out the values of the parameters is called > georeferencing. There are a loft of programs what can solve the task > specifying point on the raster and giving the real co-ordinates for them. > Unfortunatelly I use commercial software for this purpose, but I think > GRASS can do it. > Usually more then the minimal 3 points are used with a least squares > estimation. > > I hope it helps you > > Zoltan > > On Fri, 6 May 2005, Akio Neuchi wrote: > > > Dear Zoltan??? > > > > Sorry for my late reply. > > We were in long holidays here in Japan. > > Thank you for your recommendations. > > In fact, by adjusting World file, the Raster/Vector Images finally so-so > well superimposed, > > except the coordinates of these images are a bit dislocated, depend on the > 1st and 4th pixel values on the World file. > > Though I am adjusting manually those numbers, what is the right formula to > get the X and Y pixel dimensions? > > Thanks again for your help. > > > > Akio > > > > > > 0.000038 > > 0.0000000000 > > 0.0000000000 > > -0.000038 > > 139.738114 > > 35.691990000000004 > > > > MAP #file > > NAME rastest > > STATUS ON > > SIZE 600 700 > > EXTENT 139.5 35.5 140 36 > > UNITS dd > > SHAPEPATH "data" > > FONTSET "./fonts/fonts.lst" > > IMAGECOLOR 225 240 200 > > IMAGETYPE GIF > > > > # Projection definition, set-upped by PROJ.4 parameters > > PROJECTION > > # "init=epsg:26915" > > "proj=latlong" > > END > > > > # Web interface definition (including WMS enabling metadata) > > WEB > > EMPTY "/gistest/empty.html" > > HEADER decide_route_header.html > > TEMPLATE decide_route.html > > FOOTER decide_route_footer.html > > MINSCALE 0 > > MAXSCALE 300000000 > > IMAGEPATH > /var/opt/SUNWappserver7/domains/domain1/server1/docroot/gistest/tmp > > IMAGEURL /gistest/tmp > > LOG > /var/opt/SUNWappserver7/domains/domain1/server1/docroot/gistest/rastest.log > > # TEMPLATE "decide_route.html" > > METADATA > > WMS_TITLE "MapDisplay Demo" > > WMS_ABSTRACT "Created by AN" > > WMS_ACCESSCONSTRAINTS none > > END > > END > > > > QUERYMAP > > SIZE 200 200 > > STATUS ON > > STYLE HILITE > > COLOR 255 0 0 > > END > > > > OUTPUTFORMAT > > NAME gif > > MIMETYPE "image/gif" > > DRIVER "GD/GIF" > > EXTENSION "gif" > > # IMAGEMODE RGB > > IMAGEMODE PC256 > > TRANSPARENT FALSE > > # TRANSPARENT TRUE > > # FORMATOPTION "INTERLACE=OFF" > > END > > > > ### RASTER Layer > > LAYER > > NAME "RAS365313" > > GROUP "B_RASTER" > > TYPE RASTER > > DATA "MS12000DEF365313.gif" > > # STATUS ON > > STATUS DEFAULT > > TRANSPARENCY 100 > > # OFFSITE 125 135 148 > > PROJECTION > > "proj=latlong" > > # "init=epsg:26915" > > END > > PROCESSING "LOAD_WHOLE_IMAGE=TRUE" > > END > > > > # here starts Vector Layers > > # background - Parks > > LAYER > > NAME "BARA_PARK_AREA" > > GROUP "BARA_PARK" > > TILEINDEX "v_bak_ara_park" > > STATUS ON > > MAXSCALE 200000 > > TYPE POLYGON > > PROJECTION > > # "init=epsg:26915" > > "proj=latlong" > > END > > CLASS > > BACKGROUNDCOLOR 0 220 0 > > COLOR 150 200 100 > > # COLOR 154 205 50 > > END > > END > > > > # background - Sea surface > > LAYER > > NAME "BARA_SEA" > > TILEINDEX "v_bak_ara_sea" > > STATUS default > > TYPE POLYGON > > PROJECTION > > # "init=epsg:26915" > > "proj=latlong" > > END > > CLASS > > BACKGROUNDCOLOR 0 255 255 > > COLOR 100 149 237 > > END > > END > > > > # background - Rivers > > LAYER > > NAME "BLIN_RIVER" > > TILEINDEX "v_bak_lin_river" > > STATUS default > > MAXSCALE 200000 > > TYPE LINE > > PROJECTION > > # "init=epsg:26915" > > "proj=latlong" > > END > > CLASS > > BACKGROUNDCOLOR 0 255 255 > > COLOR 100 149 237 > > END > > END > > END # Map File > > > > -----Original Message----- > > From: Siki Zoltan [mailto:siki at agt.bme.hu] > > Sent: Friday, April 29, 2005 5:31 PM > > To: Akio Neuchi > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] GIF Raster Image Process Problem > {Scanned} > > > > > > Dear Akio, > > > > You should define EXTENT, UNITS and SHAPEPATH at separate lines. > > Do you have world file to your image? Check the extents. > > Try STATUS DEFAULT. > > > > Bye Zoltan > > > > > > > -------------- next part -------------- #include #include #include #include char *strup (char *str) { char *p = str; while (*p) *p++ = (char) toupper(*p); return str; } int main (int argc, char *argv[]) { // create world files int i, row, col; long x, y; FILE *fp; char name[100], oname[10], ext[4]; char *p, *q; double width, height; if (argc < 4) { fprintf (stderr, "usage: tfw width height files\n"); fprintf (stderr, " width - image width in pixels\n"); fprintf (stderr, " height - image height in pixels\n"); fprintf (stderr, " files - name/pattern of one or more files\n"); return -1; } /* sizes */ width = 750.0 / atof (argv[1]); // replace the real width 750 height = 500.0 / atof (argv[2]); // replace the real height 500 for (i = 3; i < argc; i++) { strcpy (name, argv[i]); fprintf (stderr, "%s\n", name); p = &(name[strlen(name)-4]); strup (p); if (strcmp (p, ".TIF") && strcmp (p, ".JPG") && strcmp (p, ".GIF") && strcmp (p, ".PCX") && strcmp (p, ".BMP") && strcmp (p, ".TGA") && strcmp (p, ".BIL")) { fprintf (stderr, "unsupported raster format: %s\n", name); continue; } else { q = &(name[strlen(name)-8]); strncpy(oname, q, 4); oname[4] = '\0'; if (strcmp (p, ".TIF") == 0) strcat (oname, ".tfw"); else if (strcmp (p, ".JPG") == 0) strcat (oname, ".jgw"); else if (strcmp (p, ".GIF") == 0) strcat (oname, ".gfw"); else if (strcmp (p, ".PCX") == 0) strcat (oname, ".pxw"); else if (strcmp (p, ".BMP") == 0) strcat (oname, ".bpw"); else if (strcmp (p, ".BIL") == 0) strcat (oname, ".blw"); else exit (-1); fp = fopen (oname, "wt"); // calculating coordinates from row and column number row = (q[0] - '0') *10 + (q[1] - '0') - 44; col = (q[2] - '0') *10 + (q[3] - '0') - 24; x = 642750L + (long) col * 750L; // change the constants! y = 233500L - (long) row * 500L; fprintf (fp, "%.8lf\n", width); fprintf (fp, "0.0\n"); fprintf (fp, "0.0\n"); fprintf (fp, "%.8lf\n", height); fprintf (fp, "%ld\n", x); fprintf (fp, "%ld\n", y-500L); fclose (fp); } } return 0; } From taatuut at PLANET.NL Tue May 10 14:30:01 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Tue, 10 May 2005 23:30:01 +0200 Subject: Python MapScript module still not found (today's summary) In-Reply-To: Message-ID: Hello, After fiddling around some more I finally leave this case unresolved for today. I switched to ActiveState ActivePython instead of using the binaries from www.python.org and reinstalled Python MapScript, no change. Tried a lot of different mappings in IIS for .py files: c:\python23\python.exe --> nothing works, time-out for all .py files c:\python23\python.exe -u "%s" "%s" --> works for .py scripts, import DLL gives 'not found' c:\python23\python.exe "%s" --> works for .py scripts, import DLL gives 'not found' c:\python23\python.exe "%s" "%s" --> works for .py scripts, import DLL gives 'not found' Any ideas on what mapping to use and how this influences importing dll's will be appreciated. So now under IIS I can run .py scripts under IIS and I can import modules (eg. importing os works fine) but I still have this problem with importing MapScript. Importing MapScript from the Python command line works fine. Could it be it has something to do with the naming of the MapScript files? There's a _mapscript.pyd and mapscript.py, mapscript.pyc and mapscript.pyo after installing. For os module there is no .pyd, just the py, pyc and pyo (just a guess, I'm no Python expert) On a Python mail list I also found some similair info about importing problems under IIS and not with command line. They suspected the way the files were installed may be (part of) the reason. I've installed everything with administrator rights and have granted IUR and IWAM all needed rights. Switching to Apache might be a really easy solution for this but I would like to have this working with IIS. Regards, Emil From pramsey at REFRACTIONS.NET Tue May 10 17:27:22 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 10 May 2005 17:27:22 -0700 Subject: GetLegendGraphic Message-ID: On my 4.4.2 version of Mapserver, GetLegendGraphic does not seem to respect HEIGHT and WIDTH parameters. It also is insisting on adding a textual label to the legend graphic. In the 4.2 version running the DM Solutions GMap, GetLegendGraphic returns perfect little legend graphics. What is different / changed? Special configuration required to get good legend graphics? Thanks, Paul From my_massoo at LYCOS.COM Tue May 10 22:33:41 2005 From: my_massoo at LYCOS.COM (Prashant N) Date: Wed, 11 May 2005 00:33:41 -0500 Subject: mapserver error and mysql info {Scanned} Message-ID: hi, I dont have any file called ls.so.conf in /etc/ directory... but i have the libgd.so.2 in the following directories /usr/local/lib/libgd.so.2.0.0 /usr/local/lib/libgd.so.2 /home/jboss/mapserver/gd-2.0.33/.libs/libgd.so.2.0.0 /home/jboss/mapserver/gd-2.0.33/.libs/libgd.so.2 and the search for libgd directories like this /usr/lib/libgdbm.so.2.0.0 /usr/lib/libgdbm.so.2 /usr/lib/libgdk-x11-2.0.so.0.200.4 /usr/lib/libgdk-x11-2.0.so.0 /usr/lib/libgdk_pixbuf-2.0.so.0.200.4 /usr/lib/libgdk_pixbuf-2.0.so.0 /usr/lib/libgdk_pixbuf_xlib-2.0.so.0.200.4 /usr/lib/libgdk_pixbuf_xlib-2.0.so.0 /usr/lib/libgdk-1.2.so.0.9.1 /usr/lib/libgdk-1.2.so.0 /usr/lib/libgdk_imlib.so.1.9.13 /usr/lib/libgdk_imlib.so.1 /usr/lib/libgd.so.1.8 /usr/lib/libgd.so.1 /usr/lib/libgd.so.1.8.4 /usr/lib/libgdbm.a /usr/lib/libgdbm.la /usr/lib/libgdbm.so /usr/local/lib/libgd.so.2.0.0 /usr/local/lib/libgd.so.2 /usr/local/lib/libgd.so /usr/local/lib/libgd.la /usr/local/lib/libgd.a /usr/local/lib/libgdal.so.1 /usr/local/lib/libgdal.so.1.7.0 /usr/local/lib/libgdal.so /usr/local/lib/libgdal.la /usr/local/lib/libgdal.a /home/jboss/mapserver/gd-2.0.33/.libs/libgd.so.2.0.0 /home/jboss/mapserver/gd-2.0.33/.libs/libgd.so.2 /home/jboss/mapserver/gd-2.0.33/.libs/libgd.so /home/jboss/mapserver/gd-2.0.33/.libs/libgd.a /home/jboss/mapserver/gd-2.0.33/.libs/libgd.lai /home/jboss/mapserver/gd-2.0.33/.libs/libgd.la /home/jboss/mapserver/gd-2.0.33/libgd.la /home/jboss/mapserver/gdal-1.2.6/debian/libgdal-doc.files /home/jboss/mapserver/gdal-1.2.6/debian/libgdal1-dev.files /home/jboss/mapserver/gdal-1.2.6/debian/libgdal1-dev.substvar /home/jboss/mapserver/gdal-1.2.6/debian/libgdal1.docs /home/jboss/mapserver/gdal-1.2.6/debian/libgdal1.files /home/jboss/mapserver/gdal-1.2.6/.libs/libgdal.so.1.7.0 /home/jboss/mapserver/gdal-1.2.6/.libs/libgdal.so.1 /home/jboss/mapserver/gdal-1.2.6/.libs/libgdal.so /home/jboss/mapserver/gdal-1.2.6/.libs/libgdal.a /home/jboss/mapserver/gdal-1.2.6/.libs/libgdal.lai /home/jboss/mapserver/gdal-1.2.6/.libs/libgdal.la /home/jboss/mapserver/gdal-1.2.6/libgdal.la i also added the following line in /etc/ld.so.conf /usr/local/lib/libgd.so.2 & rebooted the linux system, but the error remains please guide prashant From BEN at SYNCERA-ITSOLUTIONS.NL Wed May 11 00:14:39 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 11 May 2005 09:14:39 +0200 Subject: GetLegendGraphic Message-ID: Paul, this was a change indeed. It has to do with the fact whether or not your specify a Rule in the GetLegendGraphic request. In 4.2 it would always come back with the last Rule/Class if you did not specify the Rule. In 4.4.2 we changed this to have GetLegendGraphic without a Rule specified return a full legend. The spec says the following: "In the case that a style has multiple rules but no specific rule is selected,then the map server is obligated to produce a graphic that is representative of all of the rules of the style". On Cubewerx's advice we added labels to it since otherwise the rules cannot be distinguished from each other. For details there is a bug report explaining everything: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=653 Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Paul Ramsey 05/11/05 02:27am >>> On my 4.4.2 version of Mapserver, GetLegendGraphic does not seem to respect HEIGHT and WIDTH parameters. It also is insisting on adding a textual label to the legend graphic. In the 4.2 version running the DM Solutions GMap, GetLegendGraphic returns perfect little legend graphics. What is different / changed? Special configuration required to get good legend graphics? Thanks, Paul From adams at TERRESTRIS.DE Wed May 11 02:18:45 2005 From: adams at TERRESTRIS.DE (Till Adams) Date: Wed, 11 May 2005 11:18:45 +0200 Subject: ArcGIS UMN Extension Message-ID: Dear list, last week there was a discussion about an export tool for ArcGIS, which converts ArcMap-dataframes to UMN Mapfiles (WMS-Capable). As already announced, we have just uploaded the ArcGIS extension "AmeiN!" to sourceforge (look for the AveiN-Project). Due to the fact, that ArcGIS is proprietary we have released AmeiN 1.0 under the LGPL, so feel free to improve the software -- unfortunately we had to use VB ... ;-) You may also download AmeiN! from http://www.terrestris.de/hp/en/downloads.php Greetings from Germany - looking forward to see lots of you on the OS05! Till ------------------------------------------ Dipl. Geogr. Till Adams terrestris, Paulsen&Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * www.terrestris.de From stefano.bonnin at COMAI.TO Wed May 11 02:27:03 2005 From: stefano.bonnin at COMAI.TO (Stefano B.) Date: Wed, 11 May 2005 11:27:03 +0200 Subject: Note about (PHP/Mapscript) Documentation Message-ID: Hi all, this morning I noticed that the layerObj "transparency" member is not documented. RedS. -------------- next part -------------- An HTML attachment was scrubbed... URL: From BEN at SYNCERA-ITSOLUTIONS.NL Wed May 11 02:58:55 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 11 May 2005 11:58:55 +0200 Subject: Note about (PHP/Mapscript) Documentation Message-ID: Hi, you're right. Best thing to do in this type of case is report a bug in bugzilla for the Mapserver documentation category, otherwise people will forget about it. I have just done that for you: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1348 Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "Stefano B." 05/11/05 11:27am >>> Hi all, this morning I noticed that the layerObj "transparency" member is not documented. RedS. From Joe.Beales at NORTECHONLINE.CO.UK Wed May 11 03:41:14 2005 From: Joe.Beales at NORTECHONLINE.CO.UK (Beales, Joe) Date: Wed, 11 May 2005 11:41:14 +0100 Subject: Help needed with using .tab files with MapServer Message-ID: Hi, I'm new to MapServer and I'm having problems in producing a map from Mapinfo files. I've got Mapserver 4.5 installed (with ogr support) on apache 2 under Windows XP Pro. (I've downloaded some tutorials and got them producing the correct results.) I've searched the mail list archive and seen some people have had the same problem but I can't find a definitive answer. I've used ogrinfo to try and get the correct extent and units. Below is the Map file I'm using, I am missing something? I've tried various projections but they don't seem to make a difference. I've also tried referencing a non-existent .TAB file in the CONNECTION parameter and don't receive any errors is that normal? All I get is a blank gif. MAP DEBUG ON NAME "Testing" EXTENT 57.308593 -20.525013 57.806386 -19.981773 UNITS DD SHAPEPATH "C:/Program Files/Apache Group/Apache/htdocs/maur/" IMAGETYPE PNG IMAGECOLOR 255 255 200 STATUS ON SIZE 400 400 PROJECTION #"init=epsg:4326" "proj=latlong" "ellps=WGS84" END WEB LOG "C:\mapserv_err.txt" TEMPLATE "printable.html" IMAGEPATH "C:/Program Files/Apache Group/Apache2/htdocs/tmp/" IMAGEURL "/tmp/" END LAYER NAME "Districts" DEBUG ON TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "C:/Program Files/Apache Group/Apache2/htdocs/maur/District.TAB" #DATA "District" STATUS ON PROJECTION #"init=epsg:4326" "proj=latlong" "ellps=WGS84" END #STYLEITEM "AUTO" CLASS OUTLINECOLOR 0 0 0 COLOR 128 128 128 END END END Part Results from ogrinfo: Layer name: District Geometry: Polygon Feature Count: 9 Extent: (57.308593, -20.525013) - (57.806386, -19.981773) Layer SRS WKT: GEOGCS["unnamed", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563], TOWGS84[0,0,0,0,0,0,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]] Also can anyone point me in the direction of any online resources intended for peole just getting started with MapServer? Regards, Joe Beales. -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Wed May 11 06:55:55 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 11 May 2005 12:55:55 -0100 Subject: Help needed with using .tab files with MapServer {Scanned} {Scanned} In-Reply-To: <7016DB62DABA324AA8481B642F92AA2F062940@server.nortechonline.net> Message-ID: Hi Joe, First of all try STATUS DEFAULT in the layer section. Second remove any projection parameter from your map file. It should work, I use MapInfo tabs a lot in mapserver Bye Zoltan On Wed, 11 May 2005, Beales, Joe wrote: > Hi, > > I'm new to MapServer and I'm having problems in producing a map from > Mapinfo files. > I've got Mapserver 4.5 installed (with ogr support) on apache 2 under > Windows XP Pro. (I've downloaded some tutorials and got them producing > the correct results.) > I've searched the mail list archive and seen some people have had the > same problem but I can't find a definitive answer. > > I've used ogrinfo to try and get the correct extent and units. > Below is the Map file I'm using, I am missing something? > I've tried various projections but they don't seem to make a difference. > I've also tried referencing a non-existent .TAB file in the CONNECTION > parameter and don't receive any errors is that normal? > All I get is a blank gif. > > MAP > DEBUG ON > NAME "Testing" > EXTENT 57.308593 -20.525013 57.806386 -19.981773 > UNITS DD > SHAPEPATH "C:/Program Files/Apache Group/Apache/htdocs/maur/" > IMAGETYPE PNG > IMAGECOLOR 255 255 200 > STATUS ON > SIZE 400 400 > > PROJECTION > #"init=epsg:4326" > "proj=latlong" > "ellps=WGS84" > END > > WEB > LOG "C:\mapserv_err.txt" > TEMPLATE "printable.html" > IMAGEPATH "C:/Program Files/Apache Group/Apache2/htdocs/tmp/" > IMAGEURL "/tmp/" > END > > LAYER > NAME "Districts" > DEBUG ON > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "C:/Program Files/Apache > Group/Apache2/htdocs/maur/District.TAB" > #DATA "District" > STATUS ON > > PROJECTION > #"init=epsg:4326" > "proj=latlong" > "ellps=WGS84" > END > #STYLEITEM "AUTO" > CLASS > OUTLINECOLOR 0 0 0 > COLOR 128 128 128 > END > END > END > > Part Results from ogrinfo: > > Layer name: District > Geometry: Polygon > Feature Count: 9 > Extent: (57.308593, -20.525013) - (57.806386, -19.981773) > Layer SRS WKT: > GEOGCS["unnamed", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.257223563], > TOWGS84[0,0,0,0,0,0,0]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433]] > > > Also can anyone point me in the direction of any online resources > intended for peole just getting started with MapServer? > Regards, > > Joe Beales. > > From saburq at GMAIL.COM Wed May 11 04:33:12 2005 From: saburq at GMAIL.COM (Shoaib Burq) Date: Wed, 11 May 2005 08:33:12 -0300 Subject: Suggestions for Data-Serving & UI Message-ID: Hi All, I am fairly new to mapserver but I was thinking of using it along with a complementry back end, like PostGIS to perform the job assigned to me: to improve the following user interface. Plus allow flexible updates and expansion of data's spatial coverage and streamline the data processing: http://woodmans.omg.unb.ca/~camp2005/ As seen, currently, the data is split up into mapsheets (size is arbitrarily, i think). This is fine if you have to do it once but as the data comes from high resolution multibeam sonar it results in strips of raster geotiff/ArcGRID ASCII data. Each strip corresponds to a line over the target. Currently we are splitting and mosaiking the line based on which mapsheet they fall under. There is a 2" overlap. A real mess! There are 2 main raster data products: Backscatter and Bathy. Plus the metadata. The initial data-set will be ~100GB but if this work reasonably well we may later want to serve all our data (100's of Gig) using Mapserver, provided updataing is easy and performance doesn't degrade. My dream would be to seamlessly download data products from regions based on the user's bounding-box-query from a mouse drag or entered co-ordinates. Do you think mapserver or other OSS technologies today are up to the task? If so are there any demos out there? If not what's missing? I'll keep this short and provide more info as needed. Thanks heaps Shoaib From Joe.Beales at NORTECHONLINE.CO.UK Wed May 11 05:14:01 2005 From: Joe.Beales at NORTECHONLINE.CO.UK (Beales, Joe) Date: Wed, 11 May 2005 13:14:01 +0100 Subject: Help needed with using .tab files with MapServer {Scanned} {Scanned} Message-ID: Hi Zoltan, At Last, I've got my map! Thanks! But I don't understand, what is the difference between STATUS DEFAULT and STATUS ON? Many thanks, Joe -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Siki Zoltan Sent: 11 May 2005 14:56 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Help needed with using .tab files with MapServer {Scanned} {Scanned} Hi Joe, First of all try STATUS DEFAULT in the layer section. Second remove any projection parameter from your map file. It should work, I use MapInfo tabs a lot in mapserver Bye Zoltan On Wed, 11 May 2005, Beales, Joe wrote: > Hi, > > I'm new to MapServer and I'm having problems in producing a map from > Mapinfo files. > I've got Mapserver 4.5 installed (with ogr support) on apache 2 under > Windows XP Pro. (I've downloaded some tutorials and got them producing > the correct results.) I've searched the mail list archive and seen > some people have had the same problem but I can't find a definitive > answer. > > I've used ogrinfo to try and get the correct extent and units. > Below is the Map file I'm using, I am missing something? > I've tried various projections but they don't seem to make a difference. > I've also tried referencing a non-existent .TAB file in the CONNECTION > parameter and don't receive any errors is that normal? > All I get is a blank gif. > > MAP > DEBUG ON > NAME "Testing" > EXTENT 57.308593 -20.525013 57.806386 -19.981773 > UNITS DD > SHAPEPATH "C:/Program Files/Apache Group/Apache/htdocs/maur/" > IMAGETYPE PNG > IMAGECOLOR 255 255 200 > STATUS ON > SIZE 400 400 > > PROJECTION > #"init=epsg:4326" > "proj=latlong" > "ellps=WGS84" > END > > WEB > LOG "C:\mapserv_err.txt" > TEMPLATE "printable.html" > IMAGEPATH "C:/Program Files/Apache Group/Apache2/htdocs/tmp/" > IMAGEURL "/tmp/" > END > > LAYER > NAME "Districts" > DEBUG ON > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "C:/Program Files/Apache > Group/Apache2/htdocs/maur/District.TAB" > #DATA "District" > STATUS ON > > PROJECTION > #"init=epsg:4326" > "proj=latlong" > "ellps=WGS84" > END > #STYLEITEM "AUTO" > CLASS > OUTLINECOLOR 0 0 0 > COLOR 128 128 128 > END > END > END > > Part Results from ogrinfo: > > Layer name: District > Geometry: Polygon > Feature Count: 9 > Extent: (57.308593, -20.525013) - (57.806386, -19.981773) Layer SRS > WKT: > GEOGCS["unnamed", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.257223563], > TOWGS84[0,0,0,0,0,0,0]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433]] > > > Also can anyone point me in the direction of any online resources > intended for peole just getting started with MapServer? > Regards, > > Joe Beales. > > From BEN at SYNCERA-ITSOLUTIONS.NL Wed May 11 05:43:05 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 11 May 2005 14:43:05 +0200 Subject: WFS and namespaces Message-ID: Hi list, I am wondering about the following. I have defined a namespace for my Mapserver WFS in the MAP file: wfs_namespace_prefix "stragisweb" wfs_namespace_uri "http://www.syncera.nl/stragisweb" But the DescribeFeatureType response does *NOT* use this namespace in the element names. The GML output of a GetFeature request does use the namespace. But then again it is not possible to query using the namespace, eg doing a PropertyIsEqualTo on stragisweb:GEMCOD doesn't work, I have to use GEMCOD in the Filter for ogc:PropertyName. Is this behaviour correct? Or should the namespace defined be used in all modes of operation? I am using Mapserver 4.6 beta1. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From jmckenna at DMSOLUTIONS.CA Wed May 11 05:46:16 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 11 May 2005 08:46:16 -0400 Subject: ArcGIS UMN Extension In-Reply-To: <4281CDF5.1040200@terrestris.de> Message-ID: Great Till. Hey I've only got access to an old Arc 8.3, will this extension work with that version? thanks. jeff Till Adams wrote: > Dear list, > > last week there was a discussion about an export tool for ArcGIS, which > converts ArcMap-dataframes to UMN Mapfiles (WMS-Capable). As already > announced, we have just uploaded the ArcGIS extension "AmeiN!" to > sourceforge (look for the AveiN-Project). > > Due to the fact, that ArcGIS is proprietary we have released AmeiN 1.0 > under the LGPL, so feel free to improve the software -- unfortunately we > had to use VB ... ;-) > > You may also download AmeiN! from > http://www.terrestris.de/hp/en/downloads.php > > Greetings from Germany - looking forward to see lots of you on the OS05! > > Till > > ------------------------------------------ > > Dipl. Geogr. Till Adams > terrestris, Paulsen&Adams GbR > Siemensstr. 8 * 53121 Bonn > Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 > info at terrestris.de * www.terrestris.de > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From philippe.gondek at GMAIL.COM Wed May 11 05:43:42 2005 From: philippe.gondek at GMAIL.COM (Philippe Gondek) Date: Wed, 11 May 2005 14:43:42 +0200 Subject: PHP/Mapscript + Postgis Message-ID: Hi, I'm a beginner with mapscript... I try to draw a map with php/mapscript with data comming from postgis. I tried several ways, the problem is the construction of my layer... I try like this ----------------------------------------------------------------------------------------- $map = ms_newMapObj($Nom_Mapfile); $map->setextent($xmin,$ymin,$xmax,$ymax); $map->web->set("imagepath",$mapserver_imagepath); $map->web->set("imageurl",$mapserver_imageurl); $map->set("width",$longueur_image_mapfile); $map->set("height",$hauteur_image_mapfile); // Ajout d'une couche $layer = ms_newLayerObj($map); with this mapfile MAP NAME MAMAPAMOI EXTENT 0 0 1 1 SIZE 1 1 IMAGECOLOR 255 255 255 IMAGETYPE PNG END ----------------------------------------------------------------------------------------- and like this ----------------------------------------------------------------------------------------- $map = ms_newMapObj("miam.map"); $map->setextent($xmin,$ymin,$xmax,$ymax); $map->web->set("imagepath",$mapserver_imagepath); $map->web->set("imageurl",$mapserver_imageurl); $map->set("width",$longueur_image_mapfile); $map->set("height",$hauteur_image_mapfile); // Ajout d'une couche $layer = $map->getLayerByName(REGIONS); MAP NAME MAMAPAMOI EXTENT 0 0 1 1 SIZE 1 1 IMAGECOLOR 255 255 255 IMAGETYPE PNG LAYER NAME REGIONS TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "host=localhost port=5432 dbname=lemiam user=phil password=1707loulou442" DATA "the_geom from regions" END END ----------------------------------------------------------------------------------------- Each time, I have an >>Internal Server Error >>The server encountered an internal error or misconfiguration and was unable to >>complete your request. >>Please contact the server administrator, root at localhost and inform them of the >>time the error occurred, and anything you might have done that may have >>caused the error. >>More information about this error may be available in the server error log. I don't understand why because I can completely read the script http://localhost/phpinfo_mapscript.phtml Do you already have a problem like this one??? From David.Fawcett at STATE.MN.US Wed May 11 06:06:18 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 11 May 2005 08:06:18 -0500 Subject: Help needed with using .tab files with MapServer {Scanned} {Scanned} Message-ID: Status DEFAULT will display your layer Status ON makes the layer available for display (and query), but you need to explicitly include the layer name in the URL to make the layer display e.g. '&layer=roads' David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Beales, Joe Sent: Wednesday, May 11, 2005 7:14 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Help needed with using .tab files with MapServer {Scanned} {Scanned} Hi Zoltan, At Last, I've got my map! Thanks! But I don't understand, what is the difference between STATUS DEFAULT and STATUS ON? Many thanks, Joe -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Siki Zoltan Sent: 11 May 2005 14:56 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Help needed with using .tab files with MapServer {Scanned} {Scanned} Hi Joe, First of all try STATUS DEFAULT in the layer section. Second remove any projection parameter from your map file. It should work, I use MapInfo tabs a lot in mapserver Bye Zoltan On Wed, 11 May 2005, Beales, Joe wrote: > Hi, > > I'm new to MapServer and I'm having problems in producing a map from > Mapinfo files. > I've got Mapserver 4.5 installed (with ogr support) on apache 2 under > Windows XP Pro. (I've downloaded some tutorials and got them producing > the correct results.) I've searched the mail list archive and seen > some people have had the same problem but I can't find a definitive > answer. > > I've used ogrinfo to try and get the correct extent and units. > Below is the Map file I'm using, I am missing something? > I've tried various projections but they don't seem to make a difference. > I've also tried referencing a non-existent .TAB file in the CONNECTION > parameter and don't receive any errors is that normal? > All I get is a blank gif. > > MAP > DEBUG ON > NAME "Testing" > EXTENT 57.308593 -20.525013 57.806386 -19.981773 > UNITS DD > SHAPEPATH "C:/Program Files/Apache Group/Apache/htdocs/maur/" > IMAGETYPE PNG > IMAGECOLOR 255 255 200 > STATUS ON > SIZE 400 400 > > PROJECTION > #"init=epsg:4326" > "proj=latlong" > "ellps=WGS84" > END > > WEB > LOG "C:\mapserv_err.txt" > TEMPLATE "printable.html" > IMAGEPATH "C:/Program Files/Apache Group/Apache2/htdocs/tmp/" > IMAGEURL "/tmp/" > END > > LAYER > NAME "Districts" > DEBUG ON > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "C:/Program Files/Apache > Group/Apache2/htdocs/maur/District.TAB" > #DATA "District" > STATUS ON > > PROJECTION > #"init=epsg:4326" > "proj=latlong" > "ellps=WGS84" > END > #STYLEITEM "AUTO" > CLASS > OUTLINECOLOR 0 0 0 > COLOR 128 128 128 > END > END > END > > Part Results from ogrinfo: > > Layer name: District > Geometry: Polygon > Feature Count: 9 > Extent: (57.308593, -20.525013) - (57.806386, -19.981773) Layer SRS > WKT: > GEOGCS["unnamed", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.257223563], > TOWGS84[0,0,0,0,0,0,0]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433]] > > > Also can anyone point me in the direction of any online resources > intended for peole just getting started with MapServer? > Regards, > > Joe Beales. > > From rod.ferreira at BRTURBO.COM.BR Wed May 11 06:07:32 2005 From: rod.ferreira at BRTURBO.COM.BR (Rodrigo (BRTurbo)) Date: Wed, 11 May 2005 09:07:32 -0400 Subject: Mapserver presentations Message-ID: Hi. Have anyone some presentations of mapserver. I need do show de features of this webmapping to my clients. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Wed May 11 06:40:31 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 11 May 2005 09:40:31 -0400 Subject: Suggestions for Data-Serving & UI In-Reply-To: Message-ID: On 5/11/05, Shoaib Burq wrote: > Do you think mapserver or other OSS technologies today are up to the > task? If so are there any demos out there? If not what's missing? > > I'll keep this short and provide more info as needed. Shoaib, I do think you can manage your study area as a single file per data layer using available free software. My suggestion would be that you use Imagine format (HFA driver in GDAL) for your datasets. This is a tiled format that supports various pixel types, and handles large files gracefully. GeoTIFF will be somewhat inappropriate for this use since it supports datasets only up to 4GB. I'm not sure how you are currently rectifying the strips of data you get. The gdalwarp utility can handle reprojection or polynomial warping based on control points, and could gracefully warp directly into your large working image for updates. As long as you build overviews (which you would need to refresh after any updates to the base image) with gdaladdo, the resulting big imagine file should work fine in MapServer with good performance. For preparing custom data extracts, you will likely need to do a bit of customization. I imagine one of the existing JavaScript client setups can be modified to allow dragging out a request rectangle to send back to the server for extracts. It may be difficult to use mapserver to do the actual extracts if you want people to be able to pull out very large regions, since MapServer assembles the whole image to be returned in RAM. Instead it might be more suitable to have a custom cgi script that would invoke gdal_translate or gdalwarp to extract a selected subregion at a desired resolution and output format. All, in all, it is a doable arrangement though it will require some custom scripting work (server and client side). I would add that working with 100GB files can be a bit tedious - though potentially less tedious than many medium sized files. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From woodbri at SWOODBRIDGE.COM Wed May 11 06:42:14 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 11 May 2005 09:42:14 -0400 Subject: Suggestions for Data-Serving & UI In-Reply-To: Message-ID: Shoaib, Topozone.com is serving 10+ TB of raster data using mapserver. So this is definitely doable. Among data Topozone has are seamless coverage of the whole US in USGS digital othro quarter quad (DOQQ). Where there is overlap, the last data tiled takes priority in the image. Or you can be smart about how you build the tileindexes like putting the newest data last in the tileindex so it is drawn last giving it priority in appearance. Ed McNierney can probably add much more detail. One of the important details is how the data inside the GeoTIFF is organized as this will greatly impact performance. In fact you might want to scan the list archives for articles postted by "McNierney" Regards, -Steve W. http://imaptools.com/ Shoaib Burq wrote: > Hi All, > > I am fairly new to mapserver but I was thinking of using it along with > a complementry back end, like PostGIS to perform the job assigned to > me: > > to improve the following user interface. Plus allow flexible updates > and expansion of data's spatial coverage and streamline the data > processing: > > http://woodmans.omg.unb.ca/~camp2005/ > > As seen, currently, the data is split up into mapsheets (size is > arbitrarily, i think). This is fine if you have to do it once but as > the data comes from high resolution multibeam sonar it results in > strips of raster geotiff/ArcGRID ASCII data. Each strip corresponds to > a line over the target. Currently we are splitting and mosaiking the > line based on which mapsheet they fall under. There is a 2" overlap. A > real mess! > > There are 2 main raster data products: Backscatter and Bathy. Plus the metadata. > > The initial data-set will be ~100GB but if this work reasonably well > we may later want to serve all our data (100's of Gig) using > Mapserver, provided updataing is easy and performance doesn't degrade. > > My dream would be to seamlessly download data products from regions > based on the user's bounding-box-query from a mouse drag or entered > co-ordinates. > > Do you think mapserver or other OSS technologies today are up to the > task? If so are there any demos out there? If not what's missing? > > I'll keep this short and provide more info as needed. > > Thanks heaps > Shoaib > From jdport at VERITIME.COM Wed May 11 06:41:51 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 11 May 2005 09:41:51 -0400 Subject: PHP/Mapscript + Postgis Message-ID: Do you have any error messages showing up in your web server error logs? -Jeff ----- Original Message ----- From: "Philippe Gondek" To: Sent: Wednesday, May 11, 2005 8:43 AM Subject: [UMN_MAPSERVER-USERS] PHP/Mapscript + Postgis Hi, I'm a beginner with mapscript... I try to draw a map with php/mapscript with data comming from postgis. I tried several ways, the problem is the construction of my layer... I try like this ----------------------------------------------------------------------------------------- $map = ms_newMapObj($Nom_Mapfile); $map->setextent($xmin,$ymin,$xmax,$ymax); $map->web->set("imagepath",$mapserver_imagepath); $map->web->set("imageurl",$mapserver_imageurl); $map->set("width",$longueur_image_mapfile); $map->set("height",$hauteur_image_mapfile); // Ajout d'une couche $layer = ms_newLayerObj($map); with this mapfile MAP NAME MAMAPAMOI EXTENT 0 0 1 1 SIZE 1 1 IMAGECOLOR 255 255 255 IMAGETYPE PNG END ----------------------------------------------------------------------------------------- and like this ----------------------------------------------------------------------------------------- $map = ms_newMapObj("miam.map"); $map->setextent($xmin,$ymin,$xmax,$ymax); $map->web->set("imagepath",$mapserver_imagepath); $map->web->set("imageurl",$mapserver_imageurl); $map->set("width",$longueur_image_mapfile); $map->set("height",$hauteur_image_mapfile); // Ajout d'une couche $layer = $map->getLayerByName(REGIONS); MAP NAME MAMAPAMOI EXTENT 0 0 1 1 SIZE 1 1 IMAGECOLOR 255 255 255 IMAGETYPE PNG LAYER NAME REGIONS TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "host=localhost port=5432 dbname=lemiam user=phil password=1707loulou442" DATA "the_geom from regions" END END ----------------------------------------------------------------------------------------- Each time, I have an >>Internal Server Error >>The server encountered an internal error or misconfiguration and was unable to >>complete your request. >>Please contact the server administrator, root at localhost and inform them of the >>time the error occurred, and anything you might have done that may have >>caused the error. >>More information about this error may be available in the server error >>log. I don't understand why because I can completely read the script http://localhost/phpinfo_mapscript.phtml Do you already have a problem like this one??? From adams at TERRESTRIS.DE Wed May 11 06:44:36 2005 From: adams at TERRESTRIS.DE (Till Adams) Date: Wed, 11 May 2005 15:44:36 +0200 Subject: ArcGIS UMN Extension In-Reply-To: <4281FE98.3090900@dmsolutions.ca> Message-ID: Jeff McKenna wrote: > Great Till. Hey I've only got access to an old Arc 8.3, will this > extension work with that version? > > thanks. > > > jeff Jeff, I'm very sorry, but the company with the big four letters (the GIS "world market leader") changed the object model from 8.3 to 9 ... Our first develops of AmeiN! were based on an 8.3 version, but the donating customers of the AmeiN! project wanted us to switch to version 9. So we also had to update from 8.3 to 9 (costs of about 1000 Euros -( ) So we had to go on ArcGIS 9 and we couldn't handle two versions for 8 and 9. Unfortunately we also have to rely on the update system of ESRI that every customer pays evrey year for his update service ... I can deliver an older version which should be the last 8.3 based version for testing purpose - just replace this dll with the one installed in the amein program folder. I'm not sure if it works ... For all 8.x uswers: I put this Dll on sourceforge (as v8_3_ameindll.zip), but it does not have the full functionality. Cheers, Till -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * AmeiN! ArcGIS Map-Export-2-UMN * * AmeiN! Workshop 11. Mai 2005 * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, Paulsen&Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * www.terrestris.de From philippe.gondek at GMAIL.COM Wed May 11 06:51:17 2005 From: philippe.gondek at GMAIL.COM (Philippe Gondek) Date: Wed, 11 May 2005 15:51:17 +0200 Subject: PHP/Mapscript + layer Message-ID: Hi, I have a problem. I can create a map with $map = ms_newMapObj("miam.map"); But when I try to call $layer = ms_newLayerObj($map); or $layer = $map->getLayerByName(REGIONS); I have an Internal Server Error 500 in my Web Browser And in the log of Apache I have: [Wed May 11 15:21:01 2005] [error] [client 127.0.0.1] Premature end of script headers: php-cgi I can view the variables of $map... Can you help me??? From lingner.mail at GMX.NET Wed May 11 07:06:04 2005 From: lingner.mail at GMX.NET (lars lingner) Date: Wed, 11 May 2005 16:06:04 +0200 Subject: ArcGIS UMN Extension In-Reply-To: <42820C44.2020302@terrestris.de> Message-ID: Hello... I also have the 8.3 version of ArcGis (I double checked this :)). But it seems that I successfully installed the AmeiN! extension. I could enable the extension in ArcMap and I was able to create a .map-file based on my layers. Well I had no time to test the mapfile but I took a look on it, and it looked ok. Are there any features which are not working with the "old" 8.3 or is it the whole extension which shuldn?t work? Maybe its just a matter of the config? Its a great extension which makes the creating of mapfiles very handy. Well done, good job!! lars lingner Till Adams schrieb: > Jeff McKenna wrote: > >> Great Till. Hey I've only got access to an old Arc 8.3, will this >> extension work with that version? >> >> thanks. >> >> >> jeff > > > Jeff, I'm very sorry, but the company with the big four letters (the GIS > "world market leader") changed > the object model from 8.3 to 9 ... Our first develops of AmeiN! were > based on an 8.3 version, but the > donating customers of the AmeiN! project wanted us to switch to version 9. > > So we also had to update from 8.3 to 9 (costs of about 1000 Euros -( ) > So we had to go on ArcGIS 9 and > we couldn't handle two versions for 8 and 9. Unfortunately we also have > to rely on the update system of > ESRI that every customer pays evrey year for his update service ... I > can deliver an older version which > should be the last 8.3 based version for testing purpose - just replace > this dll with the one installed in > the amein program folder. I'm not sure if it works ... > > For all 8.x uswers: I put this Dll on sourceforge (as > v8_3_ameindll.zip), but it does not have the full functionality. > > Cheers, Till > > -- > > Mit freundlichen Gr?ssen aus Bonn, > > Till Adams > > ****************************************** > * AmeiN! ArcGIS Map-Export-2-UMN * > * AmeiN! Workshop 11. Mai 2005 * > * http://www.terrestris.de * > ****************************************** > > ------------------------------------------ > > Dipl. Geogr. Till Adams > terrestris, Paulsen&Adams GbR > Siemensstr. 8 * 53121 Bonn > Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 > info at terrestris.de * www.terrestris.de > > From jdport at VERITIME.COM Wed May 11 07:25:56 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 11 May 2005 10:25:56 -0400 Subject: PHP/Mapscript + layer Message-ID: are you running mapscript in windows or linux/unix? I've had the "premature end of script headers" error a few times in both of them. In windows the cause was missing or incorrect DLL's, or my DLL's were in the wrong place. I can't remember what the issue was under linux. -Jeff ----- Original Message ----- From: "Philippe Gondek" To: Sent: Wednesday, May 11, 2005 9:51 AM Subject: [UMN_MAPSERVER-USERS] PHP/Mapscript + layer Hi, I have a problem. I can create a map with $map = ms_newMapObj("miam.map"); But when I try to call $layer = ms_newLayerObj($map); or $layer = $map->getLayerByName(REGIONS); I have an Internal Server Error 500 in my Web Browser And in the log of Apache I have: [Wed May 11 15:21:01 2005] [error] [client 127.0.0.1] Premature end of script headers: php-cgi I can view the variables of $map... Can you help me??? From daniel.faivre at CAMPTOCAMP.COM Wed May 11 07:51:50 2005 From: daniel.faivre at CAMPTOCAMP.COM (Daniel) Date: Wed, 11 May 2005 16:51:50 +0200 Subject: Upper/lower case mismatch for PostGIS layers Message-ID: Hello, I encounter a problem with a PostGIS layer defined with: DATA "geom from user_FT000001.annuaire" Mapserver send the request to PostGIS with the schema name in lowercase (user_ft000001). But I need to have it in uppercase to comply with the externally defined database structure ... Is there a way to have this working without writing a full "select from" clause ? Daniel FAIVRE -------------- next part -------------- A non-text attachment was scrubbed... Name: daniel.faivre.vcf Type: text/x-vcard Size: 382 bytes Desc: not available URL: From juergen.link at BGS-AG.DE Wed May 11 07:56:16 2005 From: juergen.link at BGS-AG.DE (Jürgen Link) Date: Wed, 11 May 2005 16:56:16 +0200 Subject: Whitespaces in GML output of WFS request Message-ID: The GML output of a wfs GetFeature request seems to be pretty-printed (look here for example: http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WFS&VERSION=1.0.0 &REQUEST=getfeature&TYPENAME=park). The element is followed by a line feed, several tabs and spaces. What is quite convenient for a reader's eye means, that most tools (OpenEV_FW, deegreeViewer, Jump ...) run into error when parsing the XML document. Is there any way to switch off pretty printing (most people will not want to read XML)? Did anybody else work around the problem differently?? Cheers, J?rgen -- Dr. J?rgen Link BGS Systemplanung AG http://www.bgs-ag.de E-Mail juergen.link at bgs-ag.de Phone: 02241 166-530 Fax: 02241 166-680 Mobile: 0160 97262616 From dpinte at ITAE.BE Wed May 11 07:56:38 2005 From: dpinte at ITAE.BE (Didrik Pinte) Date: Wed, 11 May 2005 16:56:38 +0200 Subject: Upper/lower case mismatch for PostGIS layers In-Reply-To: <42821C06.3060402@camptocamp.com> Message-ID: Le mercredi 11 mai 2005 ? 16:51 +0200, Daniel a ?crit : > Hello, > > I encounter a problem with a PostGIS layer defined with: > > DATA "geom from user_FT000001.annuaire" > > Mapserver send the request to PostGIS with the schema name in lowercase > (user_ft000001). > But I need to have it in uppercase to comply with the externally defined > database structure ... > > Is there a way to have this working without writing a full "select from" > clause ? > > Daniel FAIVRE Under postgresql, to have uppercase table or field names, you need to quote them ... Did you test it quoting the schema name ? Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From daniel.faivre at CAMPTOCAMP.COM Wed May 11 08:16:23 2005 From: daniel.faivre at CAMPTOCAMP.COM (Daniel) Date: Wed, 11 May 2005 17:16:23 +0200 Subject: Upper/lower case mismatch for PostGIS layers In-Reply-To: <1115823398.20886.7.camel@geru-itea> Message-ID: Didrik Pinte wrote: >Le mercredi 11 mai 2005 ? 16:51 +0200, Daniel a ?crit : > > >>Hello, >> >>I encounter a problem with a PostGIS layer defined with: >> >>DATA "geom from user_FT000001.annuaire" >> >>Mapserver send the request to PostGIS with the schema name in lowercase >>(user_ft000001). >>But I need to have it in uppercase to comply with the externally defined >>database structure ... >> >>Is there a way to have this working without writing a full "select from" >>clause ? >> >>Daniel FAIVRE >> >> > >Under postgresql, to have uppercase table or field names, you need to >quote them ... > >Did you test it quoting the schema name ? > >Didrik > > Yes: it result in a crash ... -------------- next part -------------- A non-text attachment was scrubbed... Name: daniel.faivre.vcf Type: text/x-vcard Size: 382 bytes Desc: not available URL: From kgrootendorst at BAIRD.COM Wed May 11 08:42:56 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Wed, 11 May 2005 10:42:56 -0500 Subject: FW: [UMN_MAPSERVER-USERS] Distance tool in ROSA (missed some info from first post) Message-ID: Steve, Did you come across a solution to your problem? I'm having a similar situation, where the distances being measured are way off (eg. a 3km feature is measured as being 1.7km) Kevin On Thu, 5 May 2005 15:47:45 +1000, Stephen Baxter wrote: > > >Hello, > >I hacked up the output from Gmap Factory to include the Distance Tool. >Specificially I changed the following: > >gmf_apps\project\project.php to include : >----------------------------------------- > >case "DIST": >$cellsize = $oMap->cellsize ; >$cellsize2 = $cellsize / 1000 ; >echo ""value=\"./images/icon_dist1.gif\">\n"; >echo ""value=\"./images/icon_dist2.gif\">\n"; >echo ""value=\"Measure Distance\">\n"; >echo ""value=\"dist\">\n"; >echo ""value=\"ROSA_CMD\">\n"; >ECHO ""; >echo ""; >echo ""value=\"ruler\">\n"; >echo ""value=\"Approximative distance: %s Kms\">n"; > >break; > >AND > >case "DIST": >return "DIST"; >break; > >As per >http://lists.maptools.org/pipermail/maplab-users/2004-May/001197.html > > >gmf_apps\project\project_contents.php to include : >-------------------------------------------------- > >array_push( $aszROSATools, "DIST" ); > > >But my issue is that when I zoom in on an area of the map it seems >to not reset the cellsize to the new value for the new zoom level. >I am fairly sure that this is not caused by browser caching issues >as I have tried on Exploder and Firefox and they both have the same >issues. > >I even put : > >$cellsize = $oMap->cellsize ; >$cellsize2 = $cellsize / 1000 ; > >In the 'case "ZOOM_IN":' area in order to get it to recalculate the >cellsize but to no avail. > >If I press the redraw button at the new zoom level it seems to reset it >and all goes well, the correct distance is represented by the tool, not >the distance at the old resolution. I have also tried forcing a browser >reload and that does not seem to fix it. > >I am not sure if it is related but the 'Zoom to fullest extents' seems >to need to be pressed twice as well before it works, in that once you >press it the map redraws but to the zoom in area - not to fullest >extent. > >The re-centre tool does seem to fix it though, as does activating the >'i' tool. > >I am thinking that the web server or similar may be keeping some pesky >state somewhere that needs to be dealt with - maybe ! > >Any help appreciated. > > > >-- >Stephen Baxter >Technical Director - PIPE Networks > >Winner Australian Telecommunications Users Group 2005 award for >'Best Communication Solution for Large Business' > >Peering,IX points and dark fiber in Australia. >Largest peering network downunder. > >phone : 07 3233 9800/ 0417 818 695 >fax : 07 3220 1800 >web : www.pipenetworks.com > > From sgillies at FRII.COM Wed May 11 09:19:54 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 11 May 2005 10:19:54 -0600 Subject: Python MapScript module still not found (today's summary) In-Reply-To: Message-ID: Emil, I'm sorry, but I don't have any experience with Python as a CGI on IIS. I'm cc'ing Adam Ryan directly on this because I think he has the know-how. Sean On May 10, 2005, at 3:30 PM, Emil Zegers wrote: > Hello, > > After fiddling around some more I finally leave this case unresolved > for > today. > > I switched to ActiveState ActivePython instead of using the binaries > from > www.python.org and reinstalled Python MapScript, no change. > > Tried a lot of different mappings in IIS for .py files: > > c:\python23\python.exe --> nothing works, time-out for all .py files > c:\python23\python.exe -u "%s" "%s" --> works for .py scripts, import > DLL > gives 'not found' > c:\python23\python.exe "%s" --> works for .py scripts, import DLL > gives 'not > found' > c:\python23\python.exe "%s" "%s" --> works for .py scripts, import DLL > gives > 'not found' > > Any ideas on what mapping to use and how this influences importing > dll's > will be appreciated. > > So now under IIS I can run .py scripts under IIS and I can import > modules > (eg. importing os works fine) but I still have this problem with > importing > MapScript. > > Importing MapScript from the Python command line works fine. > > Could it be it has something to do with the naming of the MapScript > files? > There's a _mapscript.pyd and mapscript.py, mapscript.pyc and > mapscript.pyo > after installing. > > For os module there is no .pyd, just the py, pyc and pyo (just a > guess, I'm > no Python expert) > > On a Python mail list I also found some similair info about importing > problems under IIS and not with command line. They suspected the way > the > files were installed may be (part of) the reason. I've installed > everything > with administrator rights and have granted IUR and IWAM all needed > rights. > > Switching to Apache might be a really easy solution for this but I > would > like to have this working with IIS. > > Regards, > > Emil > From ARyan at CO.LINN.OR.US Wed May 11 09:31:13 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 11 May 2005 09:31:13 -0700 Subject: Python MapScript module still not found (today's summary) Message-ID: Emil, et al. I'm unsing Apache on my desktop but I could try your setup pn my laptop. Give me a few minutes... Adam > -----Original Message----- > From: Sean Gillies [mailto:sgillies at frii.com] > Sent: Wednesday, May 11, 2005 9:20 AM > To: Emil Zegers > Cc: Mapserver ML; Adam Ryan > Subject: Re: Python MapScript module still not found (today's summary) > > > Emil, > > I'm sorry, but I don't have any experience with Python as a > CGI on IIS. > I'm cc'ing Adam Ryan directly on this because I think he has the > know-how. > > Sean > > > On May 10, 2005, at 3:30 PM, Emil Zegers wrote: > > > Hello, > > > > After fiddling around some more I finally leave this case unresolved > > for > > today. > > > > I switched to ActiveState ActivePython instead of using the binaries > > from > > www.python.org and reinstalled Python MapScript, no change. > > > > Tried a lot of different mappings in IIS for .py files: > > > > c:\python23\python.exe --> nothing works, time-out for all > .py files > > c:\python23\python.exe -u "%s" "%s" --> works for .py > scripts, import > > DLL gives 'not found' > > c:\python23\python.exe "%s" --> works for .py scripts, import DLL > > gives 'not > > found' > > c:\python23\python.exe "%s" "%s" --> works for .py scripts, > import DLL > > gives > > 'not found' > > > > Any ideas on what mapping to use and how this influences importing > > dll's > > will be appreciated. > > > > So now under IIS I can run .py scripts under IIS and I can import > > modules > > (eg. importing os works fine) but I still have this problem with > > importing > > MapScript. > > > > Importing MapScript from the Python command line works fine. > > > > Could it be it has something to do with the naming of the MapScript > > files? > > There's a _mapscript.pyd and mapscript.py, mapscript.pyc and > > mapscript.pyo > > after installing. > > > > For os module there is no .pyd, just the py, pyc and pyo (just a > > guess, I'm > > no Python expert) > > > > On a Python mail list I also found some similair info about > importing > > problems under IIS and not with command line. They > suspected the way > > the files were installed may be (part of) the reason. I've installed > > everything > > with administrator rights and have granted IUR and IWAM all needed > > rights. > > > > Switching to Apache might be a really easy solution for this but I > > would > > like to have this working with IIS. > > > > Regards, > > > > Emil > > > From Tom.Kralidis at EC.GC.CA Wed May 11 09:36:58 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 11 May 2005 12:36:58 -0400 Subject: Whitespaces in GML output of WFS request Message-ID: This is a good point. XML is neat because it doesn't matter how you space/tab elements, but the values inside those elements should be tight. We have much middleware with $string =~ s/^\s+// and $string =~ /\s+$// type routines to strip leading and trailing spaces. Cheers ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of J?rgen Link > Sent: Wednesday, 11 May, 2005 10:56 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Whitespaces in GML output of > WFS request > > > The GML output of a wfs GetFeature request seems to be > pretty-printed (look here for example: > http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WFS&VERS > ION=1.0.0 > &REQUEST=getfeature&TYPENAME=park). > The element is followed by a line feed, > several tabs and spaces. What is quite convenient for a > reader's eye means, that most tools (OpenEV_FW, > deegreeViewer, Jump ...) run into error when parsing the XML document. > > Is there any way to switch off pretty printing (most people > will not want to read XML)? Did anybody else work around the > problem differently?? > > Cheers, > J?rgen > -- > Dr. J?rgen Link > BGS Systemplanung AG > http://www.bgs-ag.de > E-Mail juergen.link at bgs-ag.de > Phone: 02241 166-530 > Fax: 02241 166-680 > Mobile: 0160 97262616 > From matt at MSILEADS.COM Wed May 11 09:41:03 2005 From: matt at MSILEADS.COM (Matthew Roberson) Date: Wed, 11 May 2005 11:41:03 -0500 Subject: Projection and EXTENTS In-Reply-To: Message-ID: Bart, I'm not a projection expert either (obviously). I didn't convert my shapefile to that projection, and it's quite possible that EPSG 26797 is not correct for my map. I will look into that. Thanks for your help. Matt On May 10, 2005, at 2:11 AM, Bart van den Eijnden wrote: > Hi, > > I am no projection expert but I can imagine your shapefile isn't in > EPSG 26797 (or did convert your shapefile to that projection). The > LAYER PROJECTION should have the source projection of the data in it, > the MAP PROJECTION should contain the target projection you want. > > Best regards, > Bart > > Bart van den Eijnden > Syncera-ITSolutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > >>>> Matthew Roberson 05/10/05 12:18am >>> > I am trying to create a projection a map of the state of Missouri that > was created by the US Census Bureau(zt29_d00.shp). > > I used ogrinfo to get the following information about the EXTENT: > > [imac-dev03:~/Documents] matthewr% ogrinfo -so zt29_d00.shp zt29_d00 > INFO: Open of `zt29_d00.shp' > using driver `ESRI Shapefile' successful. > > Layer name: zt29_d00 > Geometry: Polygon > Feature Count: 1341 > Extent: (-95.774704, 35.995683) - (-89.098843, 40.613640) > Layer SRS WKT: > (unknown) > AREA: Real (20.5) > PERIMETER: Real (20.5) > ZT29_D00_: Integer (11.0) > ZT29_D00_I: Integer (11.0) > ZCTA: String (5.0) > NAME: String (90.0) > LSAD: String (2.0) > LSAD_TRANS: String (50.0) > > Then, I used proj4 to find lat long values for the a Lambert Azimuthal > Equal Area projection. > > [imac-dev03:~/Documents] matthewr% proj +proj=laea +ellps=clrk66 +R_A > -95.774704 35.995683 > -7567149.62 5525023.18 > -89.098843 40.613640 > -6798293.00 5830370.88 > > When I use these values with MapServer to make a map, nothing shows up. > Am I missing something. Should I post this question in this list or > in the MapServer User's group? Any help would be appreciated. > > Below is copy of my map file also, > > MAP > NAME MO > IMAGETYPE GIF > SIZE 6000 6000 > IMAGECOLOR 240 240 240 > SHAPEPATH "/Library/WebServer/Documents/data" > FONTSET "/Library/fonts/fonts.list" > EXTENT -7567149.62 5525023.18 -6798293.00 5830370.88 > UNITS METERS > WEB > IMAGEPATH "/Library/WebServer/Documents/test/" > IMAGEURL "/test/" > END > > PROJECTION > "init=epsg:26797" > END > > LEGEND > STATUS EMBED > POSITION UR > END > > SCALEBAR > TRANSPARENT ON > BACKGROUNDCOLOR 254 254 254 > STATUS EMBED > POSITION LR > STYLE 1 > END > > LAYER > NAME "MO zip code boundaries" > DATA "zt29_d00" > STATUS DEFAULT > TYPE POLYGON > PROJECTION > "init=epsg:26797" > END > LABELITEM "ZCTA" > CLASS > COLOR 254 0 0 > LABEL > COLOR 60 60 60 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 1 1 > TYPE TRUETYPE > FONT arialhb > SIZE 10 > ANTIALIAS TRUE > POSITION CL > PARTIALS FALSE > MINDISTANCE 5 > BUFFER 4 > END > OUTLINECOLOR 60 60 60 > SYMBOL 0 > END > END > > LAYER > NAME "credits" > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > POINTS > 10 680 > END > TEXT 'Made with Mapserver.' > END > CLASS > LABEL > TYPE BITMAP > POSITION CR > COLOR 0 0 0 > END > END > END > > > END > > > Thanks, > > Matt > From jkuhlman at CO.MACON.IL.US Wed May 11 09:43:54 2005 From: jkuhlman at CO.MACON.IL.US (Jason Kuhlman) Date: Wed, 11 May 2005 11:43:54 -0500 Subject: BigAPache.org Install Message-ID: I just ran across this install package at www.BigApache.org including Apache, Tomcat, php, MySQL and perl and was wondering if anyone has tried to install mapserver on top if it? Thanks Jason Kuhlman From steve.lime at DNR.STATE.MN.US Wed May 11 10:41:08 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 11 May 2005 12:41:08 -0500 Subject: Whitespaces in GML output of WFS request Message-ID: Please file a bug and we'll get the GML coordinate output cleaned up before beta 3... Steve >>> "Kralidis,Tom [Burlington]" 5/11/2005 11:36:58 AM >>> This is a good point. XML is neat because it doesn't matter how you space/tab elements, but the values inside those elements should be tight. We have much middleware with $string =~ s/^\s+// and $string =~ /\s+$// type routines to strip leading and trailing spaces. Cheers ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of J?rgen Link > Sent: Wednesday, 11 May, 2005 10:56 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Whitespaces in GML output of > WFS request > > > The GML output of a wfs GetFeature request seems to be > pretty-printed (look here for example: > http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WFS&VERS > ION=1.0.0 > &REQUEST=getfeature&TYPENAME=park). > The element is followed by a line feed, > several tabs and spaces. What is quite convenient for a > reader's eye means, that most tools (OpenEV_FW, > deegreeViewer, Jump ...) run into error when parsing the XML document. > > Is there any way to switch off pretty printing (most people > will not want to read XML)? Did anybody else work around the > problem differently?? > > Cheers, > J?rgen > -- > Dr. J?rgen Link > BGS Systemplanung AG > http://www.bgs-ag.de > E-Mail juergen.link at bgs-ag.de > Phone: 02241 166-530 > Fax: 02241 166-680 > Mobile: 0160 97262616 > From fwarmerdam at GMAIL.COM Wed May 11 10:48:20 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 11 May 2005 13:48:20 -0400 Subject: Whitespaces in GML output of WFS request In-Reply-To: Message-ID: On 5/11/05, J?rgen Link wrote: > The GML output of a wfs GetFeature request seems to be pretty-printed > (look here for example: > http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WFS&VERSION=1.0.0 > &REQUEST=getfeature&TYPENAME=park). > The element is followed by a line feed, several tabs and > spaces. > What is quite convenient for a reader's eye means, that most tools > (OpenEV_FW, deegreeViewer, Jump ...) run into error when parsing the XML > document. > > Is there any way to switch off pretty printing (most people will not want > to read XML)? > Did anybody else work around the problem differently?? J?rgen, A decent case can be made to support turning off the pretty printing, but the problem with newlines and tabs inside the has already been fixed in 4.6 (and perhaps 4.4.2?). It is a violation of the specification. I would add that rather than working on removing the pretty printing for performance, we would be better off looking at supporting gzipping of the return results for a much bigger performance gain. Best regards, ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ARyan at CO.LINN.OR.US Wed May 11 11:15:01 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 11 May 2005 11:15:01 -0700 Subject: Python MapScript module still not found (today's summary) Message-ID: I tried Emil's setup and ran into the same problems. I downloaded from: http://hobu.stat.iastate.edu/mapserver/build_output/5_11_2005 Two flavors: none.exe and full.exe I could not import _mapscript on either. Running dependency walker I found files could not be found by libmap.ddl: Both flavors could not find: LTI_DSDK_DLL.DLL NCSECW.DLL NCSUTIL.DLL OCI.DLL And full.exe could not find these and: SDE90.DLL So, I pulled LTI_DSDK_DLL.DLL off of http://hobu.stat.iastate.edu/mapserver/build_output/sean_2003 Then I pulled the ECW SDK Dlls from Frank's Tools. But I don't have SDE, and isn't the OCI.dll for the Oracle client? Should that be referenced in the libmap.dll from none.exe? I haven't searched around for OCI.dll. Shall I? Cheers, Adam > -----Original Message----- > From: Sean Gillies [mailto:sgillies at frii.com] > Sent: Wednesday, May 11, 2005 9:20 AM > To: Emil Zegers > Cc: Mapserver ML; Adam Ryan > Subject: Re: Python MapScript module still not found (today's summary) > > > Emil, > > I'm sorry, but I don't have any experience with Python as a > CGI on IIS. > I'm cc'ing Adam Ryan directly on this because I think he has the > know-how. > > Sean > > > On May 10, 2005, at 3:30 PM, Emil Zegers wrote: > > > Hello, > > > > After fiddling around some more I finally leave this case unresolved > > for > > today. > > > > I switched to ActiveState ActivePython instead of using the binaries > > from > > www.python.org and reinstalled Python MapScript, no change. > > > > Tried a lot of different mappings in IIS for .py files: > > > > c:\python23\python.exe --> nothing works, time-out for all > .py files > > c:\python23\python.exe -u "%s" "%s" --> works for .py > scripts, import > > DLL gives 'not found' > > c:\python23\python.exe "%s" --> works for .py scripts, import DLL > > gives 'not > > found' > > c:\python23\python.exe "%s" "%s" --> works for .py scripts, > import DLL > > gives > > 'not found' > > > > Any ideas on what mapping to use and how this influences importing > > dll's > > will be appreciated. > > > > So now under IIS I can run .py scripts under IIS and I can import > > modules > > (eg. importing os works fine) but I still have this problem with > > importing > > MapScript. > > > > Importing MapScript from the Python command line works fine. > > > > Could it be it has something to do with the naming of the MapScript > > files? > > There's a _mapscript.pyd and mapscript.py, mapscript.pyc and > > mapscript.pyo > > after installing. > > > > For os module there is no .pyd, just the py, pyc and pyo (just a > > guess, I'm > > no Python expert) > > > > On a Python mail list I also found some similair info about > importing > > problems under IIS and not with command line. They > suspected the way > > the files were installed may be (part of) the reason. I've installed > > everything > > with administrator rights and have granted IUR and IWAM all needed > > rights. > > > > Switching to Apache might be a really easy solution for this but I > > would > > like to have this working with IIS. > > > > Regards, > > > > Emil > > > From pramsey at REFRACTIONS.NET Wed May 11 11:27:06 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 11 May 2005 11:27:06 -0700 Subject: Whitespaces in GML output of WFS request In-Reply-To: <931f8ea9050511104823a3aa34@mail.gmail.com> Message-ID: Frank Warmerdam wrote: > I would add that rather than working on removing the pretty printing > for performance, we would be better off looking at supporting gzipping > of the return results for a much bigger performance gain. This should be a function of your HTTP server: LoadModule deflate_module modules/mod_deflate.so DeflateCompressionLevel 9 DeflateMemLevel 9 DeflateBufferSize 16384 # Insert filter SetOutputFilter DEFLATE # Netscape 4.x has some problems... BrowserMatch ^Mozilla/4 gzip-only-text/html # Netscape 4.06-4.08 have some more problems BrowserMatch ^Mozilla/4\.0[678] no-gzip # MSIE masquerades as Netscape, but it is fine BrowserMatch \bMSIE !no-gzip !gzip-only-text/html # Don't compress images SetEnvIfNoCase Request_URI \ \.(?:gif|jpe?g|msi|jar|bz2|exe|png|pdf|zip|gz)$ no-gzip dont-vary # Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary From raphael.teixeira at GMAIL.COM Wed May 11 12:02:55 2005 From: raphael.teixeira at GMAIL.COM (Raphael Teixeira) Date: Wed, 11 May 2005 19:02:55 +0000 Subject: Java Mapscript Message-ID: Hello All, Does anybody have already used Java mapscript to develop any application?? Can anybody send me an example or tutorial?? Thank's -- Raphael da Silva Teixeira Sun Certified Programmer for the Java 2 Plataform 1.4 Sun Certified Web Component Developer for the Java 2 Platform, Enterprise Edition From BEN at SYNCERA-ITSOLUTIONS.NL Wed May 11 13:04:52 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 11 May 2005 22:04:52 +0200 Subject: WFS and namespaces Message-ID: Steve, this has been around for a while, but I am just running into it now. Okay, I have opened up 2 bugs for this: namespace not used in DescribeFeatureType (1349) http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1349 Cannot query for propertyname using namespace (1350) http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1350 Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "Steve Lime" 05/11/05 21:22 PM >>> Bart: Is this new behavior or something that's been around for awhile. If the latter then I'll defer to Assefa and Dan. Sounds like this is been around awhile since I haven't touched the schema generator- yet. Seems to me that the schema should match the output GML- that's the point of generating schema, so what you do one place you should do in the other. Similarly the transformation support I added should also be part of schema generation. Steve >>> Bart van den Eijnden 5/11/2005 7:43:05 AM >>> Hi list, I am wondering about the following. I have defined a namespace for my Mapserver WFS in the MAP file: wfs_namespace_prefix "stragisweb" wfs_namespace_uri "http://www.syncera.nl/stragisweb" But the DescribeFeatureType response does *NOT* use this namespace in the element names. The GML output of a GetFeature request does use the namespace. But then again it is not possible to query using the namespace, eg doing a PropertyIsEqualTo on stragisweb:GEMCOD doesn't work, I have to use GEMCOD in the Filter for ogc:PropertyName. Is this behaviour correct? Or should the namespace defined be used in all modes of operation? I am using Mapserver 4.6 beta1. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl From ARyan at CO.LINN.OR.US Wed May 11 14:04:09 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 11 May 2005 14:04:09 -0700 Subject: Python MapScript module still not found (today's summary) Message-ID: Just an update. I pulled an OCI.dll off the Oracle site and that seems to work but I'm stuck on the ECW SDK dlls. I can't seem to find acceptable versions. Adam > -----Original Message----- > From: Ryan, Adam [mailto:ARyan at CO.LINN.OR.US] > Sent: Wednesday, May 11, 2005 11:15 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Python MapScript module > still not found (today's summary) > > > I tried Emil's setup and ran into the same problems. > > I downloaded from: > http://hobu.stat.iastate.edu/mapserver/build_output/5_11_2005 > > Two flavors: none.exe and full.exe > > I could not import _mapscript on either. Running dependency > walker I found files could not be found by libmap.ddl: > > Both flavors could not find: > > LTI_DSDK_DLL.DLL > NCSECW.DLL > NCSUTIL.DLL > OCI.DLL > > And full.exe could not find these and: > > SDE90.DLL > > So, I pulled LTI_DSDK_DLL.DLL off of > http://hobu.stat.iastate.edu/mapserver/build_output/sean_2003 > > Then I pulled the ECW SDK Dlls from Frank's Tools. > > But I don't have SDE, and isn't the OCI.dll for the Oracle > client? Should that be referenced in the libmap.dll from none.exe? > > I haven't searched around for OCI.dll. Shall I? > > Cheers, > > Adam > > > -----Original Message----- > > From: Sean Gillies [mailto:sgillies at frii.com] > > Sent: Wednesday, May 11, 2005 9:20 AM > > To: Emil Zegers > > Cc: Mapserver ML; Adam Ryan > > Subject: Re: Python MapScript module still not found > (today's summary) > > > > > > Emil, > > > > I'm sorry, but I don't have any experience with Python as a CGI on > > IIS. > > I'm cc'ing Adam Ryan directly on this because I think he has the > > know-how. > > > > Sean > > > > > > On May 10, 2005, at 3:30 PM, Emil Zegers wrote: > > > > > Hello, > > > > > > After fiddling around some more I finally leave this case > unresolved > > > for today. > > > > > > I switched to ActiveState ActivePython instead of using > the binaries > > > from www.python.org and reinstalled Python MapScript, no change. > > > > > > Tried a lot of different mappings in IIS for .py files: > > > > > > c:\python23\python.exe --> nothing works, time-out for all > > .py files > > > c:\python23\python.exe -u "%s" "%s" --> works for .py > > scripts, import > > > DLL gives 'not found' > > > c:\python23\python.exe "%s" --> works for .py scripts, import DLL > > > gives 'not found' > > > c:\python23\python.exe "%s" "%s" --> works for .py scripts, > > import DLL > > > gives > > > 'not found' > > > > > > Any ideas on what mapping to use and how this influences > importing > > > dll's will be appreciated. > > > > > > So now under IIS I can run .py scripts under IIS and I can import > > > modules (eg. importing os works fine) but I still have > this problem > > > with importing > > > MapScript. > > > > > > Importing MapScript from the Python command line works fine. > > > > > > Could it be it has something to do with the naming of the > MapScript > > > files? There's a _mapscript.pyd and mapscript.py, > mapscript.pyc and > > > mapscript.pyo > > > after installing. > > > > > > For os module there is no .pyd, just the py, pyc and pyo (just a > > > guess, I'm no Python expert) > > > > > > On a Python mail list I also found some similair info about > > importing > > > problems under IIS and not with command line. They > > suspected the way > > > the files were installed may be (part of) the reason. > I've installed > > > everything with administrator rights and have granted IUR > and IWAM > > > all needed rights. > > > > > > Switching to Apache might be a really easy solution for > this but I > > > would like to have this working with IIS. > > > > > > Regards, > > > > > > Emil > > > > > > From hobu at IASTATE.EDU Wed May 11 14:11:08 2005 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 11 May 2005 16:11:08 -0500 Subject: Python MapScript module still not found (today's summary) In-Reply-To: Message-ID: Adam, The problem with my nightlies is that the GDAL used to make these has ECW and MrSID and OCI (all of which I don't distribute). Please use the 4.4.2 "None" package on http://hobu.stat.iastate.edu/mapserver/ and let me know how it goes. thanks Howard At 04:04 PM 5/11/2005, Ryan, Adam wrote: >Just an update. I pulled an OCI.dll off the Oracle site and that seems to >work but I'm stuck on the ECW SDK dlls. I can't seem to find acceptable >versions. > >Adam > > > -----Original Message----- > > From: Ryan, Adam [mailto:ARyan at CO.LINN.OR.US] > > Sent: Wednesday, May 11, 2005 11:15 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Python MapScript module > > still not found (today's summary) > > > > > > I tried Emil's setup and ran into the same problems. > > > > I downloaded from: > > http://hobu.stat.iastate.edu/mapserver/build_output/5_11_2005 > > > > Two flavors: none.exe and full.exe > > > > I could not import _mapscript on either. Running dependency > > walker I found files could not be found by libmap.ddl: > > > > Both flavors could not find: > > > > LTI_DSDK_DLL.DLL > > NCSECW.DLL > > NCSUTIL.DLL > > OCI.DLL > > > > And full.exe could not find these and: > > > > SDE90.DLL > > > > So, I pulled LTI_DSDK_DLL.DLL off of > > http://hobu.stat.iastate.edu/mapserver/build_output/sean_2003 > > > > Then I pulled the ECW SDK Dlls from Frank's Tools. > > > > But I don't have SDE, and isn't the OCI.dll for the Oracle > > client? Should that be referenced in the libmap.dll from none.exe? > > > > I haven't searched around for OCI.dll. Shall I? > > > > Cheers, > > > > Adam > > > > > -----Original Message----- > > > From: Sean Gillies [mailto:sgillies at frii.com] > > > Sent: Wednesday, May 11, 2005 9:20 AM > > > To: Emil Zegers > > > Cc: Mapserver ML; Adam Ryan > > > Subject: Re: Python MapScript module still not found > > (today's summary) > > > > > > > > > Emil, > > > > > > I'm sorry, but I don't have any experience with Python as a CGI on > > > IIS. > > > I'm cc'ing Adam Ryan directly on this because I think he has the > > > know-how. > > > > > > Sean > > > > > > > > > On May 10, 2005, at 3:30 PM, Emil Zegers wrote: > > > > > > > Hello, > > > > > > > > After fiddling around some more I finally leave this case > > unresolved > > > > for today. > > > > > > > > I switched to ActiveState ActivePython instead of using > > the binaries > > > > from www.python.org and reinstalled Python MapScript, no change. > > > > > > > > Tried a lot of different mappings in IIS for .py files: > > > > > > > > c:\python23\python.exe --> nothing works, time-out for all > > > .py files > > > > c:\python23\python.exe -u "%s" "%s" --> works for .py > > > scripts, import > > > > DLL gives 'not found' > > > > c:\python23\python.exe "%s" --> works for .py scripts, import DLL > > > > gives 'not found' > > > > c:\python23\python.exe "%s" "%s" --> works for .py scripts, > > > import DLL > > > > gives > > > > 'not found' > > > > > > > > Any ideas on what mapping to use and how this influences > > importing > > > > dll's will be appreciated. > > > > > > > > So now under IIS I can run .py scripts under IIS and I can import > > > > modules (eg. importing os works fine) but I still have > > this problem > > > > with importing > > > > MapScript. > > > > > > > > Importing MapScript from the Python command line works fine. > > > > > > > > Could it be it has something to do with the naming of the > > MapScript > > > > files? There's a _mapscript.pyd and mapscript.py, > > mapscript.pyc and > > > > mapscript.pyo > > > > after installing. > > > > > > > > For os module there is no .pyd, just the py, pyc and pyo (just a > > > > guess, I'm no Python expert) > > > > > > > > On a Python mail list I also found some similair info about > > > importing > > > > problems under IIS and not with command line. They > > > suspected the way > > > > the files were installed may be (part of) the reason. > > I've installed > > > > everything with administrator rights and have granted IUR > > and IWAM > > > > all needed rights. > > > > > > > > Switching to Apache might be a really easy solution for > > this but I > > > > would like to have this working with IIS. > > > > > > > > Regards, > > > > > > > > Emil > > > > > > > > > From joe at OTSYS.COM Wed May 11 14:38:25 2005 From: joe at OTSYS.COM (Joseph Bussell) Date: Wed, 11 May 2005 14:38:25 -0700 Subject: in-process vs. over the wire map generation for simple GUI app Message-ID: Greetings Listers, What would folks use when an application must produce maps as a side effect? Would you go for an in-process map generation method? If so, what would you use? Alternatively, would you use a mapserver backend that the local process would communicate with? Any thoughts would be appreciated. Cordially, Joe Bussell On Time Systems From ARyan at CO.LINN.OR.US Wed May 11 14:56:43 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 11 May 2005 14:56:43 -0700 Subject: Python MapScript module still not found (today's summary) Message-ID: Yea I never had a problem with 4.4.2. Works like a charm. Emil? Adam > -----Original Message----- > From: Howard Butler [mailto:hobu at iastate.edu] > Sent: Wednesday, May 11, 2005 2:11 PM > To: Ryan, Adam; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [SPAM] - Re: Python MapScript module still not found > (today's summary) - Bayesian Filter detected spam > > > Adam, > > The problem with my nightlies is that the GDAL used to make > these has ECW > and MrSID and OCI (all of which I don't distribute). Please > use the 4.4.2 > "None" package on http://hobu.stat.iastate.edu/mapserver/ and > let me know > how it goes. > > thanks > > Howard > > At 04:04 PM 5/11/2005, Ryan, Adam wrote: > >Just an update. I pulled an OCI.dll off the Oracle site and > that seems > >to work but I'm stuck on the ECW SDK dlls. I can't seem to find > >acceptable versions. > > > >Adam > > > > > -----Original Message----- > > > From: Ryan, Adam [mailto:ARyan at CO.LINN.OR.US] > > > Sent: Wednesday, May 11, 2005 11:15 AM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] Python MapScript > module still not > > > found (today's summary) > > > > > > > > > I tried Emil's setup and ran into the same problems. > > > > > > I downloaded from: > > > http://hobu.stat.iastate.edu/mapserver/build_output/5_11_2005 > > > > > > Two flavors: none.exe and full.exe > > > > > > I could not import _mapscript on either. Running > dependency walker > > > I found files could not be found by libmap.ddl: > > > > > > Both flavors could not find: > > > > > > LTI_DSDK_DLL.DLL > > > NCSECW.DLL > > > NCSUTIL.DLL > > > OCI.DLL > > > > > > And full.exe could not find these and: > > > > > > SDE90.DLL > > > > > > So, I pulled LTI_DSDK_DLL.DLL off of > > > http://hobu.stat.iastate.edu/mapserver/build_output/sean_2003 > > > > > > Then I pulled the ECW SDK Dlls from Frank's Tools. > > > > > > But I don't have SDE, and isn't the OCI.dll for the > Oracle client? > > > Should that be referenced in the libmap.dll from none.exe? > > > > > > I haven't searched around for OCI.dll. Shall I? > > > > > > Cheers, > > > > > > Adam > > > > > > > -----Original Message----- > > > > From: Sean Gillies [mailto:sgillies at frii.com] > > > > Sent: Wednesday, May 11, 2005 9:20 AM > > > > To: Emil Zegers > > > > Cc: Mapserver ML; Adam Ryan > > > > Subject: Re: Python MapScript module still not found > > > (today's summary) > > > > > > > > > > > > Emil, > > > > > > > > I'm sorry, but I don't have any experience with Python > as a CGI on > > > > IIS. > > > > I'm cc'ing Adam Ryan directly on this because I think > he has the > > > > know-how. > > > > > > > > Sean > > > > > > > > > > > > On May 10, 2005, at 3:30 PM, Emil Zegers wrote: > > > > > > > > > Hello, > > > > > > > > > > After fiddling around some more I finally leave this case > > > unresolved > > > > > for today. > > > > > > > > > > I switched to ActiveState ActivePython instead of using > > > the binaries > > > > > from www.python.org and reinstalled Python MapScript, > no change. > > > > > > > > > > Tried a lot of different mappings in IIS for .py files: > > > > > > > > > > c:\python23\python.exe --> nothing works, time-out for all > > > > .py files > > > > > c:\python23\python.exe -u "%s" "%s" --> works for .py > > > > scripts, import > > > > > DLL gives 'not found' > > > > > c:\python23\python.exe "%s" --> works for .py scripts, import > > > > > DLL gives 'not found' c:\python23\python.exe "%s" > "%s" --> works > > > > > for .py scripts, > > > > import DLL > > > > > gives > > > > > 'not found' > > > > > > > > > > Any ideas on what mapping to use and how this influences > > > importing > > > > > dll's will be appreciated. > > > > > > > > > > So now under IIS I can run .py scripts under IIS and I can > > > > > import modules (eg. importing os works fine) but I still have > > > this problem > > > > > with importing > > > > > MapScript. > > > > > > > > > > Importing MapScript from the Python command line works fine. > > > > > > > > > > Could it be it has something to do with the naming of the > > > MapScript > > > > > files? There's a _mapscript.pyd and mapscript.py, > > > mapscript.pyc and > > > > > mapscript.pyo > > > > > after installing. > > > > > > > > > > For os module there is no .pyd, just the py, pyc and > pyo (just a > > > > > guess, I'm no Python expert) > > > > > > > > > > On a Python mail list I also found some similair info about > > > > importing > > > > > problems under IIS and not with command line. They > > > > suspected the way > > > > > the files were installed may be (part of) the reason. > > > I've installed > > > > > everything with administrator rights and have granted IUR > > > and IWAM > > > > > all needed rights. > > > > > > > > > > Switching to Apache might be a really easy solution for > > > this but I > > > > > would like to have this working with IIS. > > > > > > > > > > Regards, > > > > > > > > > > Emil > > > > > > > > > > > > > From woodbri at SWOODBRIDGE.COM Wed May 11 15:06:33 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 11 May 2005 18:06:33 -0400 Subject: in-process vs. over the wire map generation for simple GUI app In-Reply-To: <42827B51.6040605@otsys.com> Message-ID: Joe, I think there are a lot a variables that need to be considered, like performance, tolerance to wire outages, etc. In general, I would try to keep things modular and general unless there is an over-riding need to do otherwise. If you don't need in-process generation there are a lot of benefits for doing it over the wire even if the wire is to the same processor. Once you define an API, you can change one module without change all the modules. You would end up using less memory when you were not generating maps which might be needed for other processes. If there are ever multiple clients like in a workgroup then setting up a single server to service them all keeps disk/hardware requires lower. In general, don't build monoliths :) they tend to be big and hard to maintain. My 2 cents, -Steve W. Joseph Bussell wrote: > Greetings Listers, > What would folks use when an application must produce maps as a side > effect? Would you go for an in-process map generation method? If so, > what would you use? Alternatively, would you use a mapserver backend > that the local process would communicate with? Any thoughts would be > appreciated. > > Cordially, > > Joe Bussell > On Time Systems > From william.hamouz at PHOENIX.GOV Wed May 11 16:29:02 2005 From: william.hamouz at PHOENIX.GOV (William Hamouz) Date: Wed, 11 May 2005 18:29:02 -0500 Subject: Projection Problem Message-ID: Hi, I am new to projections in mapserver and a seem to have something that is not working right and I am not sure why. I have striped my example down to a simple mapfile that has two layers in it. The ogrinfo for the hospitals layer, which is in a shape file is as follows: INFO: Open of `c:\geodata\hospitals.shp' using driver `ESRI Shapefile' successful. Layer name: hospitals Geometry: Point Feature Count: 24 Extent: (561477.687637, 835697.374886) - (729085.875185, 970068.499747) Layer SRS WKT: PROJCS["NAD_1983_HARN_StatePlane_Arizona_Central_FIPS_0202_IntlFeet", GEOGCS["GCS_North_American_1983_HARN", DATUM["NAD83_High_Accuracy_Regional_Network", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["False_Easting",700000.0], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-111.9166666666667], PARAMETER["Scale_Factor",0.9999], PARAMETER["Latitude_Of_Origin",31.0], UNIT["Foot",0.3048]] OBJECTID: Integer (10.0) AREA: Real (19.8) PERIMETER: Real (19.8) HOSP83_: Integer (10.0) HOSP83_ID: Integer (10.0) TYPE: String (11.0) NAME: String (30.0) ADDRESS: String (30.0) CITY: String (30.0) PHONE: String (8.0) PRJ_NAME: String (120.0) PRJ_NOTES: String (200.0) DQ_NOTES: String (80.0) POLYGONID: Integer (10.0) SCALE: Real (19.8) ANGLE: Integer (10.0) The second layer is a virtual spatial data layer populated from an access data base. The defintion of the incidents.ovf file is as follows: ODBC:UNITSTATUS Incidents wkbPoint WGS84 and the orginfo for the incidents layer is as follows: Had to open data source read-only. INFO: Open of `c:\firewire\common\pfdmapcontrol\incidents.ovf' using driver `VRT' successful. Layer name: Incidents Geometry: Point Feature Count: 23 Extent: (33.233066, -112.296726) - (33.643355, -111.835448) Layer SRS WKT: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9108"]], AXIS["Lat",NORTH], AXIS["Long",EAST], AUTHORITY["EPSG","4326"]] Disp_Type: String (50.0) Run_no: String (50.0) Address: String (90.0) Add_Info: String (50.0) Nature: String (50.0) Nature_Disc: String (50.0) Resp_Type: String (50.0) Supp_Txt: String (150.0) Units: String (0.0) Time: String (19.0) Date: String (19.0) X_Streets: String (125.0) Lat: String (50.0) Long: String (50.0) Inc_Type: String (50.0) Alarm_Lvl: String (50.0) Channel: String (50.0) The map that I am trying to display uses the following mapfile: MAP NAME PFD STATUS ON SIZE 800 500 IMAGETYPE PNG IMAGECOLOR 240 240 240 SHAPEPATH "C:\GeoData" FONTSET "C:\FireWire\Common\PFDMAPControl\fonts.list" EXTENT 576763.692274 832325 697309.177972 1064098 UNITS FEET WEB TEMPLATE "PFDMAPImg.html" IMAGEPATH "C:\FireWire\Images\MapFiles\" IMAGEURL "/Images/MapFiles/" END SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END PROJECTION proj=tmerc lat_0=31.000000000 lon_0=-111.916666667 x_0=700000 y_0=0.0 k=0.999900 ellps=GRS80 datum=NAD83 to_meter=0.3048006096 no_defs END LAYER NAME "hospitals" TYPE POINT STATUS ON DATA "hospitals" CLASS NAME "hospitals" COLOR 0 0 255 SIZE 14 SYMBOL 'circle' END END LAYER NAME "incidents" TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "incidents.ovf" DATA "incidents" PROJECTION proj=latlong ellps=GRS80 datum=WGS84 END CLASS NAME "incidents" COLOR 255 0 0 SIZE 14 SYMBOL 'circle' END END END END Basically what happens is I do not believe the incidents layer is projecting correctly because it does not end up in the same general vacinity with the hospitals layer. To the best of my limited knowledge, I think I have all the files configured correctly. I know that I am getting the incident data back becuase it renders, just not in the write place. Thank You in advance for any help. Sincerely, Will Hamouz Phoenix Fire Department From dmorissette at DMSOLUTIONS.CA Wed May 11 19:38:57 2005 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 11 May 2005 22:38:57 -0400 Subject: MapServer 4.6.0-beta2 released Message-ID: Hi, MapServer 4.6.0-beta2 is now available for download on the MapServer website (http://mapserver.gis.umn.edu/dload.html). This is the second beta in our plan for a MapServer 4.6.0 release early June, just in time for MUM3. Once again, we invite experienced users to contribute to the release process by testing the betas with their applications and reporting any issues via bugzilla. The list of fixes since beta1 is included below. Daniel ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Version 4.6.0-beta2 (2005-05-11) -------------------------------- - Bug 179 : add a small buffer around the cliping rectangle to avoid lines around the edges. - Finished code to convert back and forth between GEOS geometries. Buffer and convex hull operations are exposed in mapscript. - fontset.fonts hash now exposed in mapscript (bug 1345). - Bug 1336 : Retreive distance value for DWithin filter request done with line and polygon shapes/ - Bug 985 / 1015: Don't render raster layers as classified if none of the classes has an expression set (gdal renderer only). - Bug 1344: Fixed several issues in writing of inline SYMBOLS when saving mapfile (missing quotes around CHARACTER and other string members of SYMBOL object, check for NULLs, and write correct identifiers for POSITION, LINECAP and LINEJOIN). From fwarmerdam at GMAIL.COM Wed May 11 19:44:21 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 11 May 2005 22:44:21 -0400 Subject: Projection Problem In-Reply-To: Message-ID: On 5/11/05, William Hamouz wrote: > > > ODBC:UNITSTATUS > Incidents > wkbPoint > WGS84 > y="Long"/> > > Will, I didn't look over your whole configuration carefully, but I suspect your problem is in using Lat for "x" and Long for "y". Assuming that Lat is latitude and Long is longitude you should have x="Long", y="Lat". Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From covariance at SHAW.CA Wed May 11 20:19:19 2005 From: covariance at SHAW.CA (Bob Bruce) Date: Wed, 11 May 2005 22:19:19 -0500 Subject: Warnings with UNIX build - undefined functions Message-ID: I am trying to build MapScript on a Debian UNIX system and am getting an module that crashes when I am trying to create imagemaps. And it is weird because the same source code works fine on my Windows 2000 Pro system. So I have closely scrutinized the build messages on the UNIX system and see some warnings that I'm not getting on my Windows system, these are: mapwms.c: In function `msWMSGetStyles': mapwms.c:2762: warning: implicit declaration of function `msSLDGenerateSLD' mapwms.c:2762: warning: assignment makes pointer from integer without a cast mapscript_i.c: In function `mapObj_applySLD': mapscript_i.c:381: warning: implicit declaration of function `msSLDApplySLD' mapscript_i.c: In function `mapObj_applySLDURL': mapscript_i.c:385: warning: implicit declaration of function `msSLDApplySLDURL' mapscript_i.c: In function `mapObj_generateSLD': mapscript_i.c:390: warning: implicit declaration of function `msSLDGenerateSLD' mapscript_i.c:390: warning: return makes pointer from integer without a cast mapscript_i.c: In function `layerObj_generateSLD': mapscript_i.c:589: warning: return makes pointer from integer without a cast these functions are defined in the file: php_mapscript.h and in this file the following statements enclose the definition of these functions: #ifndef _PHP_MAPSCRIPT_H_INCLUDED_ #define _PHP_MAPSCRIPT_H_INCLUDED_ #endif /* _PHP_MAPSCRIPT_H_INCLUDED_ */ I cannot find the value _PHP_MAPSCRIPT_H_INCLUDED_ defined anywhere and I am mistified as to why these function definitions don't seem to be reached. Do you have any ideas? thanks, Bob Bruce, Winnipeg, Manitoba From covariance at SHAW.CA Wed May 11 20:36:01 2005 From: covariance at SHAW.CA (Bob Bruce) Date: Wed, 11 May 2005 22:36:01 -0500 Subject: Warnings with UNIX build - undefined functions Message-ID: I should have mentioned that my configure command is: ./configure --with-php=/usr/local/php/include/php --with-php-regex-dir=/usr/src/php-4.3.11 --with-proj=../proj-4.4.9 --with-wfsclient --with-ogr=../gdal-1.2.6 --with-gdal=../gdal-1.2.6 sorry about that. Bob Bruce On Wed, 11 May 2005 22:19:19 -0500, Bob Bruce wrote: >I am trying to build MapScript on a Debian UNIX system and am getting an >module that crashes when I am trying to create imagemaps. And it is weird >because the same source code works fine on my Windows 2000 Pro system. > >So I have closely scrutinized the build messages on the UNIX system and see >some warnings that I'm not getting on my Windows system, these are: > >mapwms.c: In function `msWMSGetStyles': >mapwms.c:2762: warning: implicit declaration of function `msSLDGenerateSLD' >mapwms.c:2762: warning: assignment makes pointer from integer without a cast > >mapscript_i.c: In function `mapObj_applySLD': >mapscript_i.c:381: warning: implicit declaration of function `msSLDApplySLD' >mapscript_i.c: In function `mapObj_applySLDURL': >mapscript_i.c:385: warning: implicit declaration of function `msSLDApplySLDURL' >mapscript_i.c: In function `mapObj_generateSLD': >mapscript_i.c:390: warning: implicit declaration of function `msSLDGenerateSLD' >mapscript_i.c:390: warning: return makes pointer from integer without a cast >mapscript_i.c: In function `layerObj_generateSLD': >mapscript_i.c:589: warning: return makes pointer from integer without a cast > >these functions are defined in the file: php_mapscript.h >and in this file the following statements enclose the definition of these >functions: > >#ifndef _PHP_MAPSCRIPT_H_INCLUDED_ >#define _PHP_MAPSCRIPT_H_INCLUDED_ > >#endif /* _PHP_MAPSCRIPT_H_INCLUDED_ */ > >I cannot find the value _PHP_MAPSCRIPT_H_INCLUDED_ defined anywhere and I am >mistified as to why these function definitions don't seem to be reached. Do >you have any ideas? > >thanks, > Bob Bruce, Winnipeg, Manitoba From jacob.delfos at MAUNSELL.COM Wed May 11 21:00:54 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Thu, 12 May 2005 12:00:54 +0800 Subject: Mapserver 4.6 beta2 link error Message-ID: Hi All, I'm trying to compile mapserver 4.6 beta2, but am running into these errors (as I did in beta1) : mapogcsld.obj : error LNK2019: unresolved external symbol _msOWSLookupMetadata referenced in function _msSLDApplySLD mapogcsld.obj : error LNK2019: unresolved external symbol _msOWSGetSchemasLocation referenced in function _msSLDGenerate Does anyone know what this is caused by, and how I can get around it? I'm compiling with php 4.3.11, proj 4.4.9, gdal from CVS of 13 april. regards, Jacob JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, WA 6007 PO Box 81, WA 6902 Leederville Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From d.huisman at INGBCC.NL Wed May 11 22:38:13 2005 From: d.huisman at INGBCC.NL (Dirk-Jan Huisman) Date: Thu, 12 May 2005 07:38:13 +0200 Subject: FW: [UMN_MAPSERVER-USERS] Distance tool in ROSA (missed some info from first post) Message-ID: Hi, I use this code outside the case "DIST". Every time the map is drawed I calculate the cellsize. And it works fine. // set the cellsize of the map $minimumX = $oMap->extent->minx; $maximumX = $oMap->extent->maxx; $realcoordinates = $maximumX - $minimumX ; $pixelsize = $realcoordinates / MAP_WIDTH ; $pixelsize = $pixelsize / 1000 ; Regards, Dirk -----Oorspronkelijk bericht----- Van: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] Verzonden: woensdag 11 mei 2005 17:43 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] FW: [UMN_MAPSERVER-USERS] Distance tool in ROSA (missed some info from first post) Steve, Did you come across a solution to your problem? I'm having a similar situation, where the distances being measured are way off (eg. a 3km feature is measured as being 1.7km) Kevin On Thu, 5 May 2005 15:47:45 +1000, Stephen Baxter wrote: > > >Hello, > >I hacked up the output from Gmap Factory to include the Distance Tool. >Specificially I changed the following: > >gmf_apps\project\project.php to include : >----------------------------------------- > >case "DIST": >$cellsize = $oMap->cellsize ; >$cellsize2 = $cellsize / 1000 ; >echo ""value=\"./images/icon_dist1.gif\">\n"; >echo ""value=\"./images/icon_dist2.gif\">\n"; >echo ""value=\"Measure Distance\">\n"; >echo ""value=\"dist\">\n"; >echo ""value=\"ROSA_CMD\">\n"; >ECHO ""; >echo ""; >echo ""value=\"ruler\">\n"; >echo ""value=\"Approximative distance: %s Kms\">n"; > >break; > >AND > >case "DIST": >return "DIST"; >break; > >As per >http://lists.maptools.org/pipermail/maplab-users/2004-May/001197.html > > >gmf_apps\project\project_contents.php to include : >-------------------------------------------------- > >array_push( $aszROSATools, "DIST" ); > > >But my issue is that when I zoom in on an area of the map it seems >to not reset the cellsize to the new value for the new zoom level. >I am fairly sure that this is not caused by browser caching issues >as I have tried on Exploder and Firefox and they both have the same >issues. > >I even put : > >$cellsize = $oMap->cellsize ; >$cellsize2 = $cellsize / 1000 ; > >In the 'case "ZOOM_IN":' area in order to get it to recalculate the >cellsize but to no avail. > >If I press the redraw button at the new zoom level it seems to reset it >and all goes well, the correct distance is represented by the tool, not >the distance at the old resolution. I have also tried forcing a browser >reload and that does not seem to fix it. > >I am not sure if it is related but the 'Zoom to fullest extents' seems >to need to be pressed twice as well before it works, in that once you >press it the map redraws but to the zoom in area - not to fullest >extent. > >The re-centre tool does seem to fix it though, as does activating the >'i' tool. > >I am thinking that the web server or similar may be keeping some pesky >state somewhere that needs to be dealt with - maybe ! > >Any help appreciated. > > > >-- >Stephen Baxter >Technical Director - PIPE Networks > >Winner Australian Telecommunications Users Group 2005 award for >'Best Communication Solution for Large Business' > >Peering,IX points and dark fiber in Australia. >Largest peering network downunder. > >phone : 07 3233 9800/ 0417 818 695 >fax : 07 3220 1800 >web : www.pipenetworks.com > > ------------------------------------------------------------------------------ Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ------------------------------------------------------------------------------ Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ------------------------------------------------------------------------------ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ------------------------------------------------------------------------------ From jacob.delfos at MAUNSELL.COM Wed May 11 23:26:58 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Thu, 12 May 2005 14:26:58 +0800 Subject: Mapserver 4.6 beta2 link error - fixed Message-ID: Sorry about that. I didn't realise that I didn't have WMS enabled. Enabling it makes everything compile happily. Jacob JACOB DELFOS SPATIAL INFORMATION ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, WA 6007 PO Box 81, WA 6902 Leederville Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From adams at TERRESTRIS.DE Wed May 11 23:28:07 2005 From: adams at TERRESTRIS.DE (Till Adams) Date: Thu, 12 May 2005 08:28:07 +0200 Subject: ArcGIS UMN Extension In-Reply-To: <4282114C.5020704@gmx.net> Message-ID: Lars, first - thank you for the folwers .... I'll pass most of them to our developper. Well, most of the functionality is also in the 8.3 dll, but maybe there are some bugs because it is not tested that much as the "official" release" - and what definitely is not working is the creation of hatched symbols for polygon layers. Greetings from Bonn, Till -- Mit freundlichen Gr??ssen aus Bonn, Till Adams ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From dpinte at ITAE.BE Thu May 12 00:32:03 2005 From: dpinte at ITAE.BE (Didrik Pinte) Date: Thu, 12 May 2005 09:32:03 +0200 Subject: Upper/lower case mismatch for PostGIS layers In-Reply-To: <428221C7.5030709@camptocamp.com> Message-ID: Le mercredi 11 mai 2005 ? 17:16 +0200, Daniel a ?crit : > >> > >> > > > >Under postgresql, to have uppercase table or field names, you need to > >quote them ... > > > >Did you test it quoting the schema name ? > > > >Didrik > > > > > Yes: it result in a crash ... Hi Daniel, I think it would be very intersting to post this on the postgis mailing list (very active). If you're not member and don't want to, I can post this for you. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From gosia.rainer at T-ONLINE.DE Thu May 12 02:45:19 2005 From: gosia.rainer at T-ONLINE.DE (Rainer Spittel) Date: Thu, 12 May 2005 04:45:19 -0500 Subject: Precompiled binaries for mapscript c#? Message-ID: Hi folk, I would like to test the mapscript c# combination and tried to compile the mapserver. I think I am totally wrong, because I use a Linux server and I try to get windows binaries... I get compiler errors when I try to compile the csharp extension on my fedora 3 server: /usr/local/bin/swig -csharp -o mapscript_wrap.c ../mapscript.i gcc -fpic -c -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_TTF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DGD_HAS_GDIMAGEGIFPTR mapscript_wrap.c gcc -fpic -shared mapscript_wrap.o -o libmapscript.so -L../.. -lmap -lgd -L/usr/local/lib -lgd -ljpeg -lttf -lpng -lz -ltiff -ljpeg -lpng -lz -ljpeg -lm mcs /t:library /out:mapscript_csharp.dll *.cs /bin/sh: mcs: command not found make: *** [mapscript_csharp] Error 127 And I am sure that this won't create the .net library for windows... ;-) Are precompiled binaries for windows available, similar to the ms4w project? Is a HowTo introduction available? This libraries are required to compile the csharp api? Thanks Rainer From johan.e.hallgren at WMDATA.SE Thu May 12 03:43:56 2005 From: johan.e.hallgren at WMDATA.SE (Johan Hallgren) Date: Thu, 12 May 2005 05:43:56 -0500 Subject: Number of records Message-ID: How can I return the total number och records in a layer. I have the following lines in my code and I want to go throu all records in the layer. How can I get the number of records so I can bild my for (...) loop. mapObj m_obj = new mapObj(m_StrMapFile); layerObj oLayerObj = m_obj.getLayerByName(strName); I have tryed the following but I think it's waste of resources oLayerObj.queryByRect(m_obj, oLayerObj.getExtent()); resultCacheObj oResultCacheObj = oLayerObj.getResults(); oLayerObj.open(); if (oResultCacheObj.numresults > 0) {} Any proposals? Regards Johan From davidtecher at YAHOO.FR Thu May 12 03:41:47 2005 From: davidtecher at YAHOO.FR (Jean David TECHER) Date: Thu, 12 May 2005 12:41:47 +0200 Subject: Precompiled binaries for mapscript c#? Message-ID: D?but du message r?exp?di? : R?envoy?-De: G?rald Fenoy De: G?rald Fenoy Date: 12 mai 2005 12:10:10 GMT+02:00 R?envoy?-?: Rainer Spittel ?: mapserver-users at lists.umn.edu Objet: R?p : [UMN_MAPSERVER-USERS] Precompiled binaries for mapscript c#? Hi alone, as I've done for c# support, you could compile it on a linux box (as all the good things ;c) ). BUT in order to do that what is the requierment ? You need to have mono on your fc3. If you have also a gentoo box (which is the greater distro ... I think) I've made an ebuild for it you could find on the gentoo bugzilla or from this page : http://www.01map.net/gentoo/ . For fc3 rpms you could use our installer (in french only for the moment, if you would like to translate it in english I'll be happy ;) ) but it include a mapserver without the c# support, so I'm not sure you enjoy this rpm :/ We've also made an installer which is freely available on our web server here : http://www.01map.net/redhat (as the rpms). For more informations you could just read the ebuild here : http://www.01map.net/gentoo/sci-geosciences/mapserver/mapserver-4.4.2.ebuild. In this ebuild you could see all the configuration options and more, how I compile the mapscript c# support and its requierments (just remplace in your mind mono by c# and you have the solution). Hope that help. Have a nice day. Cordialy. Le 12 mai 05, ? 11:45, Rainer Spittel a ?crit : Hi folk, I would like to test the mapscript c# combination and tried to compile the mapserver. I think I am totally wrong, because I use a Linux server and I try to get windows binaries... I get compiler errors when I try to compile the csharp extension on my fedora 3 server: /usr/local/bin/swig -csharp -o mapscript_wrap.c ../mapscript.i gcc -fpic -c -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_TTF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DGD_HAS_GDIMAGEGIFPTR mapscript_wrap.c gcc -fpic -shared mapscript_wrap.o -o libmapscript.so -L../.. -lmap -lgd -L/usr/local/lib -lgd -ljpeg -lttf -lpng -lz -ltiff -ljpeg -lpng -lz -ljpeg -lm mcs /t:library /out:mapscript_csharp.dll *.cs /bin/sh: mcs: command not found make: *** [mapscript_csharp] Error 127 And I am sure that this won't create the .net library for windows... ;-) Are precompiled binaries for windows available, similar to the ms4w project? Is a HowTo introduction available? This libraries are required to compile the csharp api? Thanks Rainer G?rald Fenoy !! GIS for gentoo'er !! G?rald Fenoy !! GIS for gentoo'er !! --------------------------------------------------------------- TECHER Jean David 01MAP e-mail: david at 01map.net T?l: 04 67 45 60 27 Entreprise: http://www.01map.net Perso: http://techer.pascal.free.fr/postgis/ --------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidtecher at YAHOO.FR Thu May 12 03:54:05 2005 From: davidtecher at YAHOO.FR (Jean David TECHER) Date: Thu, 12 May 2005 12:54:05 +0200 Subject: Precompiled binaries for mapscript c# Message-ID: Hi alone, as I've done for c# support, you could compile it on a linux box (as all the good things ;c) ). BUT in order to do that what is the requierment ? You need to have mono on your fc3. If you have also a gentoo box (which is the greater distro ... I think) I've made an ebuild for it you could find on the gentoo bugzilla or from this page : http://www.01map.net/gentoo/ . For fc3 rpms you could use our installer (in french only for the moment, if you would like to translate it in english I'll be happy ;) ) but it include a mapserver without the c# support, so I'm not sure you enjoy this rpm :/ We've also made an installer which is freely available on our web server here : http://www.01map.net/redhat (as the rpms). For more informations you could just read the ebuild here : http://www.01map.net/gentoo/sci-geosciences/mapserver/mapserver-4.4.2.ebuild. In this ebuild you could see all the configuration options and more, how I compile the mapscript c# support and its requierments (just remplace in your mind mono by c# and you have the solution). Hope that help. Have a nice day. Cordialy. Le 12 mai 05, ? 11:45, Rainer Spittel a ?crit : Hi folk, I would like to test the mapscript c# combination and tried to compile the mapserver. I think I am totally wrong, because I use a Linux server and I try to get windows binaries... I get compiler errors when I try to compile the csharp extension on my fedora 3 server: /usr/local/bin/swig -csharp -o mapscript_wrap.c ../mapscript.i gcc -fpic -c -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_TTF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DGD_HAS_GDIMAGEGIFPTR mapscript_wrap.c gcc -fpic -shared mapscript_wrap.o -o libmapscript.so -L../.. -lmap -lgd -L/usr/local/lib -lgd -ljpeg -lttf -lpng -lz -ltiff -ljpeg -lpng -lz -ljpeg -lm mcs /t:library /out:mapscript_csharp.dll *.cs /bin/sh: mcs: command not found make: *** [mapscript_csharp] Error 127 And I am sure that this won't create the .net library for windows... ;-) Are precompiled binaries for windows available, similar to the ms4w project? Is a HowTo introduction available? This libraries are required to compile the csharp api? Thanks Rainer G?rald Fenoy !! GIS for gentoo'er !! G?rald Fenoy !! GIS for gentoo'er !! --------------------------------------------------------------- TECHER Jean David 01MAP e-mail: david at 01map.net T?l: 04 67 45 60 27 Entreprise: http://www.01map.net Perso: http://techer.pascal.free.fr/postgis/ --------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at MEDINACO.ORG Thu May 12 05:02:18 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Thu, 12 May 2005 08:02:18 -0400 Subject: Number of records Message-ID: The following message was sent by Johan Hallgren on Thu, 12 May 2005 05:43:56 -0500. > How can I return the total number och records in a layer. > > I have the following lines in my code and I want to go throu all records > in the layer. How can I get the number of records so I can bild my for > (...) loop. > > mapObj m_obj = new mapObj(m_StrMapFile); > layerObj oLayerObj = m_obj.getLayerByName(strName); > > I have tryed the following but I think it's waste of resources > oLayerObj.queryByRect(m_obj, oLayerObj.getExtent()); > resultCacheObj oResultCacheObj = oLayerObj.getResults(); > oLayerObj.open(); > if (oResultCacheObj.numresults > 0) > {} > > Any proposals? Johan, shapefileObj->{numshapes} will also return the number of records if the layer is based on a shapefile. HTH Lowell From daniel.faivre at CAMPTOCAMP.COM Thu May 12 05:22:07 2005 From: daniel.faivre at CAMPTOCAMP.COM (Daniel) Date: Thu, 12 May 2005 14:22:07 +0200 Subject: BUG with PostGis layers Message-ID: Hello, I've posted a message about upper/lower case mismatch with postgis layers: Mapserver crash with DATA 'geom from "user_FT000001"."annuaire"' or DATA 'geom from user_FT000001.annuaire The reproted error is: Postgresql reports the error as 'ERROR: schema "user_ft000001" does not exist On postgis-users list, strtk said: I posted a patch about 3 years ago for mapserver support of MiXeD case identifiers... I'm off now ;) Send a mail to mapserver developers. Is it a code regression ? Or a lack of support for schemas ? Thanks, dF -------------- next part -------------- A non-text attachment was scrubbed... Name: daniel.faivre.vcf Type: text/x-vcard Size: 382 bytes Desc: not available URL: From vincedacol at FREE.FR Thu May 12 05:43:08 2005 From: vincedacol at FREE.FR (Vincent Da-Col) Date: Thu, 12 May 2005 14:43:08 +0200 Subject: GetMap and browse Message-ID: Hello, I have applie a Getmap request on a Map file. All is OK, my map appear on the sceen. But when I try to post on the screen this same map with a simple "browse" mode, nothing appear. The Getcapabilities work fine, with no warning. In copy, my mapfile: MAP NAME Europe_France_WGS84 EXTENT -34.5523788 26.2114230 72.2516881 83.340374 #EXTENT -180 -180 180 180 #EXTENT -760555 -1058700 4505870 3245049 #EXTENT -5140.02940964483 1562890.02666348 1250740.05344726 2734710.03129094 IMAGETYPE gif SIZE 800 600 SHAPEPATH "./data" IMAGECOLOR 200 255 255 PROJECTION "init=epsg:4326" END DEBUG ON OUTPUTFORMAT NAME gif MIMETYPE "image/gif" DRIVER "GD/GIF" EXTENSION "gif" IMAGEMODE PC256 TRANSPARENT FALSE END ####### ##WEB## ####### WEB log "/tmp/Europe_WGS84.log" IMAGEPATH "./tmp/" TEMPLATE 'Donnees_test_WMS_WFS_template.html' IMAGEURL "http://10.133.110.29/WMS/Europe_WGS84/tmp/" METADATA "wms_title" "Europe_France_WGS84" "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/WMS/Europe_WGS84/test3.map&" #"wms_srs" "epsg:4326" END END ########## ##Europe## ########## LAYER NAME "Europe_WGS84" DATA "Europe_region" STATUS ON TYPE POLYGON METADATA "wms_title" "Europe_WGS84" #"wms_srs" "epsg:4326" END CLASS COLOR 241 231 193 OUTLINECOLOR 32 32 32 END PROJECTION #"init=epsg:4326" #"init=epsg:2383" END END ########## ##France## ########## LAYER NAME "France_WGS84" DATA "France_region" STATUS ON TYPE POLYGON METADATA "wms_title" "France_WGS84" #"wms_srs" "epsg:4326" END CLASS COLOR 241 0 193 END PROJECTION #"init=epsg:4326" END END END Thanks for the help, Vincent Da-Col From BEN at SYNCERA-ITSOLUTIONS.NL Thu May 12 06:16:31 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Thu, 12 May 2005 15:16:31 +0200 Subject: GetMap and browse Message-ID: What is your exact mode=browse request? Are you using layers=...... ? Only layers with STATUS DEFAULT appear in the image when you don't specify them as a layer in the layers parameter. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Vincent Da-Col 05/12/05 02:43pm >>> Hello, I have applie a Getmap request on a Map file. All is OK, my map appear on the sceen. But when I try to post on the screen this same map with a simple "browse" mode, nothing appear. The Getcapabilities work fine, with no warning. In copy, my mapfile: MAP NAME Europe_France_WGS84 EXTENT -34.5523788 26.2114230 72.2516881 83.340374 #EXTENT -180 -180 180 180 #EXTENT -760555 -1058700 4505870 3245049 #EXTENT -5140.02940964483 1562890.02666348 1250740.05344726 2734710.03129094 IMAGETYPE gif SIZE 800 600 SHAPEPATH "./data" IMAGECOLOR 200 255 255 PROJECTION "init=epsg:4326" END DEBUG ON OUTPUTFORMAT NAME gif MIMETYPE "image/gif" DRIVER "GD/GIF" EXTENSION "gif" IMAGEMODE PC256 TRANSPARENT FALSE END ####### ##WEB## ####### WEB log "/tmp/Europe_WGS84.log" IMAGEPATH "./tmp/" TEMPLATE 'Donnees_test_WMS_WFS_template.html' IMAGEURL "http://10.133.110.29/WMS/Europe_WGS84/tmp/" METADATA "wms_title" "Europe_France_WGS84" "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/WMS/Europe_WGS84/test3.map&" #"wms_srs" "epsg:4326" END END ########## ##Europe## ########## LAYER NAME "Europe_WGS84" DATA "Europe_region" STATUS ON TYPE POLYGON METADATA "wms_title" "Europe_WGS84" #"wms_srs" "epsg:4326" END CLASS COLOR 241 231 193 OUTLINECOLOR 32 32 32 END PROJECTION #"init=epsg:4326" #"init=epsg:2383" END END ########## ##France## ########## LAYER NAME "France_WGS84" DATA "France_region" STATUS ON TYPE POLYGON METADATA "wms_title" "France_WGS84" #"wms_srs" "epsg:4326" END CLASS COLOR 241 0 193 END PROJECTION #"init=epsg:4326" END END END Thanks for the help, Vincent Da-Col From kgrootendorst at BAIRD.COM Thu May 12 06:51:06 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Thu, 12 May 2005 09:51:06 -0400 Subject: Distance tool in ROSA (missed some info from first post) In-Reply-To: Message-ID: Dirk, Works great now - thanks. Kevin ______________________________ "Dirk-Jan Huisman" 05/12/2005 01:35 AM To "Kevin Grootendorst" cc Subject RE: [UMN_MAPSERVER-USERS] FW: [UMN_MAPSERVER-USERS] Distance tool in ROSA (missed some info from first post) Hi, I use this code outside the case "DIST". Every time the map is drawed I calculate the cellsize. And it works fine. // set the cellsize of the map $minimumX = $oMap->extent->minx; $maximumX = $oMap->extent->maxx; $realcoordinates = $maximumX - $minimumX ; $pixelsize = $realcoordinates / MAP_WIDTH ; $pixelsize = $pixelsize / 1000 ; Regards, Dirk -----Oorspronkelijk bericht----- Van: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] Verzonden: woensdag 11 mei 2005 17:43 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] FW: [UMN_MAPSERVER-USERS] Distance tool in ROSA (missed some info from first post) Steve, Did you come across a solution to your problem? I'm having a similar situation, where the distances being measured are way off (eg. a 3km feature is measured as being 1.7km) Kevin On Thu, 5 May 2005 15:47:45 +1000, Stephen Baxter wrote: > > >Hello, > >I hacked up the output from Gmap Factory to include the Distance Tool. >Specificially I changed the following: > >gmf_apps\project\project.php to include : >----------------------------------------- > >case "DIST": >$cellsize = $oMap->cellsize ; >$cellsize2 = $cellsize / 1000 ; >echo ""value=\"./images/icon_dist1.gif\">\n"; >echo ""value=\"./images/icon_dist2.gif\">\n"; >echo ""value=\"Measure Distance\">\n"; >echo ""value=\"dist\">\n"; >echo ""value=\"ROSA_CMD\">\n"; >ECHO ""; >echo ""; >echo ""value=\"ruler\">\n"; >echo ""value=\"Approximative distance: %s Kms\">n"; > >break; > >AND > >case "DIST": >return "DIST"; >break; > >As per >http://lists.maptools.org/pipermail/maplab-users/2004-May/001197.html > > >gmf_apps\project\project_contents.php to include : >-------------------------------------------------- > >array_push( $aszROSATools, "DIST" ); > > >But my issue is that when I zoom in on an area of the map it seems >to not reset the cellsize to the new value for the new zoom level. >I am fairly sure that this is not caused by browser caching issues >as I have tried on Exploder and Firefox and they both have the same >issues. > >I even put : > >$cellsize = $oMap->cellsize ; >$cellsize2 = $cellsize / 1000 ; > >In the 'case "ZOOM_IN":' area in order to get it to recalculate the >cellsize but to no avail. > >If I press the redraw button at the new zoom level it seems to reset it >and all goes well, the correct distance is represented by the tool, not >the distance at the old resolution. I have also tried forcing a browser >reload and that does not seem to fix it. > >I am not sure if it is related but the 'Zoom to fullest extents' seems >to need to be pressed twice as well before it works, in that once you >press it the map redraws but to the zoom in area - not to fullest >extent. > >The re-centre tool does seem to fix it though, as does activating the >'i' tool. > >I am thinking that the web server or similar may be keeping some pesky >state somewhere that needs to be dealt with - maybe ! > >Any help appreciated. > > > >-- >Stephen Baxter >Technical Director - PIPE Networks > >Winner Australian Telecommunications Users Group 2005 award for >'Best Communication Solution for Large Business' > >Peering,IX points and dark fiber in Australia. >Largest peering network downunder. > >phone : 07 3233 9800/ 0417 818 695 >fax : 07 3220 1800 >web : www.pipenetworks.com > > ------------------------------------------------------------------------------ Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ------------------------------------------------------------------------------ Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ------------------------------------------------------------------------------ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ------------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From nbarker at RSINC.COM Thu May 12 07:23:40 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Thu, 12 May 2005 15:23:40 +0100 Subject: WCS sampling error Message-ID: Hi, I am using the WCS to serve geotiff files, it seems that if the values of RESX and RESY are not equal to the base resolution of the tiff image in the getCoverage request then the request fails with a black image being returned to the user. So, if resx, resy are 1.125 say then it works fine, but then another file having a resolution value of 1.21211211.. reported by the geotiff file (so resolution to a few more than 2 decimal places) causes the resampling to occur and the image to be blank. Do I have to truncate my values of resx, resy when I export to geotiff to put the files in the WCS? This resampling will happen when I make other requests, will it also fail (I remember making reprojection requests with DEMs and this happened), any advice would be appreciated. Many thanks, Norman Barker From fwarmerdam at GMAIL.COM Thu May 12 07:32:38 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 12 May 2005 10:32:38 -0400 Subject: WCS sampling error In-Reply-To: Message-ID: On 5/12/05, Norman Barker wrote: > Hi, > > I am using the WCS to serve geotiff files, it seems that if the values of RESX and RESY are not equal to the base > resolution of the tiff image in the getCoverage request then the request fails with a black image being returned to the > user. > > So, if resx, resy are 1.125 say then it works fine, but then another file having a resolution value of 1.21211211.. reported by the geotiff file (so resolution to a few more than 2 decimal places) causes the resampling to occur and the image to be blank. > > Do I have to truncate my values of resx, resy when I export to geotiff to put the files in the WCS? This resampling will > happen when I make other requests, will it also fail (I remember making reprojection requests with DEMs and this happened), > any advice would be appreciated. Norman, I think this is the same as the following bug, which I have been meaning to revisit. your note gives me a big clue as to what is going wrong. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1183 Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ed at TOPOZONE.COM Thu May 12 07:41:10 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 12 May 2005 10:41:10 -0400 Subject: using asp and mapserver to put an image at a lat/lon coordinate Message-ID: Andrea - Welcome to the list! Part of the problem is that you're asking a very long list of questions - that makes it harder for anyone to pick up the ball and respond. I know you have looked at the archives and seen my postings on ASP usage. Please read them carefully, as there's a lot there and some code samples, too. You are on the right track in thinking about using ASP code to generate MapServer HTTP requests, then directing those requests to MapServer and retrieving the results. This is not the same as "ASP MapScript" - it has some advantages and disadvantages. The chief advantage is that you are insulated from errors due to improper use of MapScript. MapServer HTTP GET requests are handled "correctly" and you don't have to worry about using objects properly, forgetting to do intermediate steps, etc. That's also the chief disadvantage - you don't get any flexibility or control over and above what the MapServer CGI offers. Remember that MapServer offers two different HTTP GET interfaces - the "classic" CGI interface and the OGC WMS interface. Each has its advantages, and one or the other may be more suitable for your application. In either case, you can create an ASP page that issues an HTTP request and retrieves the output image. Your specific question about adding an image needs a bit more information. If your image is a logo or graphic or copyright message that goes in a fixed location, you can do that - there are plenty of references to that topic in the archives. If you're adding a symbol at a geographic location, you can do that, too. Both are mentioned in the documentation - look for the use of querystring parameters to override settings in the MAP file. Don't get your ASP work confused with basic MapServer functionality. If you look for "how do I add a symbol at a fixed location using ASP" you won't find it. But you can find out how to add a symbol using the CGI interface, and you can retrieve that image using ASP. It's best to get something partially working and then post your code and MAP file with a question. It is MUCH easier for people to answer questions by correcting or modifying an example, rather than asking them to start from scratch. Please get some basic map up and running and send us an example. If you can post it on a publicly accessible server so we can look at the output, that's even better. Thanks! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Andrea Edwards Sent: Tuesday, May 10, 2005 10:47 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] using asp and mapserver to put an image at a lat/lon coordinate Hello I am new to mapserver and I am really struggling. Any help would be greatly valued. I want to use mapserver for an internet mapping application but I do not want to use php or perl. I would prefer to use asp. However, this precludes my use of mapscript. For my application I need to be able to access some gps coordinates from a database and then position a graphic on top of the map at this coordinate. I have only a basic knowledge of mapserver. I believe that I can dynamically change map file parameters via a form or url. In theory therefore I can create a get request in my asp code and send this to mapserver using an asp component such asphttp (I have seen this discussed in the archives). I believe that to add an image to a map I have to use a symbol and set its type to pixmap. However, I cannot see any parameters for specifying the location of the image in the map in (x,y) coordinates. Am I on the right track? Please can you tell me how I specify the location of the image. I want to know if it's possible to access the mapserver c api directly from asp. I have seen a resource called VisualBasic.Net GIS which accesses mapserver so it must be possible though I expect its not a trivial task. Whilst this library is very useful it does not seem to have any features for positioning graphics at a certain coordinate. I guess I am hoping there is an asp equivalent of mapscript somewhere that I can use or buy. I have used aspmap which I think is very good. However, I would really like to use mapserver because I would really like to make use of its ability to return flash vector files. That way I can do all my zooming and panning on the client in flash (one day when I know how) Thank you very much. Please help!! andrea From thugsmash at GMAIL.COM Thu May 12 07:33:26 2005 From: thugsmash at GMAIL.COM (Rusty Moorman) Date: Thu, 12 May 2005 09:33:26 -0500 Subject: Labels that follow streets - like Google maps Message-ID: My company would also be extremely interested in improved street labeling, especially after seeing the outstanding quality of Google's street maps. Rusty Moorman Morley and Associates, Inc. From philippe.gondek at GMAIL.COM Thu May 12 07:51:18 2005 From: philippe.gondek at GMAIL.COM (Philippe Gondek) Date: Thu, 12 May 2005 16:51:18 +0200 Subject: PHP/Mapscript + Postgis -verry long-time Message-ID: Here is my script, name");//////////////////////////////////////////////////////// $map->setextent($xmin,$ymin,$xmax,$ymax); $map->web->set("imagepath",$mapserver_imagepath); $map->web->set("imageurl",$mapserver_imageurl); $map->set("width",$longueur_image_mapfile); $map->set("height",$hauteur_image_mapfile); // Ajout d'une couche $layer = ms_newLayerObj($map); // Nom de la couche conforme a celui de la base de donnees $layer->set("name",$base_de_donnees); $layer->set("status",MS_DEFAULT); // Connexion a la base de donnees PostGIS $layer->set("connectiontype",MS_POSTGIS); $layer->set("connection","user=".$utilisateur." dbname=".$base_de_donnees." host=".$hote); // Requete spatiale utilisee $layer->set("data","the_geom from regions"); // Precision sur le type de donnee spatiale a prendre en compte: //LINE, POINT... $layer->set("type",$type_donnee_geometrique_pour_mapserver); // Nom de la colonne de donnees attributaires a afficher $layer->set("labelitem",$mapserver_labelitem); // Ajout de la class $class = ms_newClassObj($layer); // Ajout du Label $label = $class->label; // Precision sur l'affichage de la donnee de type attributaire // la couleur, la taille de la donnee ... $label->set("position",MS_CC); $label->color->setRGB(0,0,0); $label->outlinecolor->setRGB(255,255,255); $label->shadowcolor->setRGB(255,255,255); $label->backgroundcolor->setRGB(255,255,255); $label->backgroundshadowcolor->setRGB(255,255,255); // Ajout du style $style = ms_newStyleObj($class); // Precision sur l'affichage des donn?es spatiales // couleur de bourdure en code 128 0 0 pour RGB $style->set("size",4); $style->outlinecolor->setRGB(128,0,0); // Utilisation de PhpMapScript // pour generer l'image associee a la mapfile au format PNG $image = $map->draw(); $image_url = $image->saveWebImage(MS_PNG,1,1,0); // Fermeture de la connexion a PostgreSQL pg_close($db_handle); ?> /> but here is what i have like error : Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/localhost/htdocs/miam/monscript.php on line 135 What must I do??? From william.hamouz at PHOENIX.GOV Thu May 12 07:59:56 2005 From: william.hamouz at PHOENIX.GOV (William Hamouz) Date: Thu, 12 May 2005 09:59:56 -0500 Subject: Projection Problem Message-ID: Frank, Thank you for the second set of eyes, it always amazing that the problems that you bang you head up against the wall for always seem to be a simple problem. Switching Lat and Long worked. I did have one more problem the x_0 was set to 700000 which is in feet and it needed to be in meters (213360.42672). Again thank you for your help. From vincedacol at FREE.FR Thu May 12 08:05:30 2005 From: vincedacol at FREE.FR (Vincent Da-Col) Date: Thu, 12 May 2005 17:05:30 +0200 Subject: WFS server and HTTP request error Message-ID: Hello, I have a little probleme with my WFS server. He give me an HTTP request error. msHTTPExecuteRequests(): HTTP request error. Can't open output file ./tmp\753f5d66a153201bdf13aeff161f8b23.tmp.gml. So it seem that mapserver couldn't find my *.temp.gml file. I have scan my computer and this file doesn't appear. An other strange think is the "road" to this temp file. In my mapfile I have define the temp directorie like this: WEB log "./tmp/Europe_Client_WFS.log" IMAGEPATH "./tmp/" TEMPLATE 'Donnees_test_WMS_WFS_template2.html' IMAGEURL "http://localhost/WFS/Europe_Client_WFS/tmp/" END So I don't undestand why there is a "\" in the road to my temp gml file. Maybe someone have encounter the same problem??? Thank for the help, Vincent Da-Col From bfraser at GEOANALYTIC.COM Thu May 12 08:17:09 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 12 May 2005 09:17:09 -0600 Subject: using asp and mapserver to put an image at a lat/lon coordinate Message-ID: Andrea, I thought I would add a couple of comments to Ed's reply. Ed is correct: you don't need to use ASP to show points on a Mapserver graphic; just use the standard CGI or WMS interface. One way is load the points into a mapserver-supported database like PostgreSQL/PostGIS. We used this method a couple of years ago to track ships. Their positions were uploaded into the PostGIS database every 1/2 hour. MapServer was configured to access the ship's location table as a point layer and display a ship symbol (We used a TrueType font with glyphs editted to represent the 8 cardinal directions). If you don't like the choices for the mapserver-supported databases, you might be able to use an OGR type CONNECTION to connect to MS Access or some other ODBC compliant database, although I haven't tried this myself. Brent Fraser ----- Original Message ----- From: "Andrea Edwards" To: Sent: Tuesday, May 10, 2005 8:47 AM Subject: [UMN_MAPSERVER-USERS] using asp and mapserver to put an image at a lat/lon coordinate Hello I am new to mapserver and I am really struggling. Any help would be greatly valued. I want to use mapserver for an internet mapping application but I do not want to use php or perl. I would prefer to use asp. However, this precludes my use of mapscript. For my application I need to be able to access some gps coordinates from a database and then position a graphic on top of the map at this coordinate. I have only a basic knowledge of mapserver. I believe that I can dynamically change map file parameters via a form or url. In theory therefore I can create a get request in my asp code and send this to mapserver using an asp component such asphttp (I have seen this discussed in the archives). I believe that to add an image to a map I have to use a symbol and set its type to pixmap. However, I cannot see any parameters for specifying the location of the image in the map in (x,y) coordinates. Am I on the right track? Please can you tell me how I specify the location of the image. I want to know if it's possible to access the mapserver c api directly from asp. I have seen a resource called VisualBasic.Net GIS which accesses mapserver so it must be possible though I expect its not a trivial task. Whilst this library is very useful it does not seem to have any features for positioning graphics at a certain coordinate. I guess I am hoping there is an asp equivalent of mapscript somewhere that I can use or buy. I have used aspmap which I think is very good. However, I would really like to use mapserver because I would really like to make use of its ability to return flash vector files. That way I can do all my zooming and panning on the client in flash (one day when I know how) Thank you very much. Please help!! andrea From nbarker at RSINC.COM Thu May 12 09:44:14 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Thu, 12 May 2005 17:44:14 +0100 Subject: WCS sampling error Message-ID: -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] Sent: Thursday, May 12, 2005 3:33 PM To: Norman Barker Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] WCS sampling error On 5/12/05, Norman Barker wrote: > Hi, > > I am using the WCS to serve geotiff files, it seems that if the values of RESX and RESY are not equal to the base > resolution of the tiff image in the getCoverage request then the request fails with a black image being returned to the > user. > > So, if resx, resy are 1.125 say then it works fine, but then another file having a resolution value of 1.21211211.. reported by the geotiff file (so resolution to a few more than 2 decimal places) causes the resampling to occur and the image to be blank. > > Do I have to truncate my values of resx, resy when I export to geotiff to put the files in the WCS? This resampling will > happen when I make other requests, will it also fail (I remember making reprojection requests with DEMs and this happened), > any advice would be appreciated. Norman, I think this is the same as the following bug, which I have been meaning to revisit. your note gives me a big clue as to what is going wrong. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1183 Best regards, -- Hi Frank, thanks for the reply, is there any work around for this at the moment, or can you give me an indication of how we could fix it? I will fix my files to have a fixed number of decimal points but eventually it would be cool to be able to make requests at different resolutions. Many thanks, Norman Barker From fwarmerdam at GMAIL.COM Thu May 12 09:47:58 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 12 May 2005 12:47:58 -0400 Subject: WCS sampling error In-Reply-To: Message-ID: On 5/12/05, Norman Barker wrote: > > Hi Frank, > > thanks for the reply, is there any work around for this at the moment, or can you give me an indication of how we could fix it? I will fix my files to have a fixed number of decimal points but > eventually it would be cool to be able to make requests at different resolutions. Norman, I have pasted up the bug report in my list-of-things-to-do-today area, so there is a respectable chance I will know more about this problem soon, but for now I can't suggest any workarounds. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From buysse at SOCSCI.UMN.EDU Thu May 12 09:49:55 2005 From: buysse at SOCSCI.UMN.EDU (Joshua Buysse) Date: Thu, 12 May 2005 11:49:55 -0500 Subject: Problems building PHP/Mapscript on Redhat Enterprise 4 Message-ID: I'm having some trouble getting PHP Mapscript to work correctly on RHEL 4. I'm using the stock PHP, and some modified versions of the mappinghacks.com SRPM packages. I've tried 4.4.2, 4.6.0-beta1 and 4.6.0-beta2. Some problem with all versions. With an extremely simple example (hello.phtml from http://www.mobilegeographics.com/mapserver/), it fails with both the Apache DSO and the CGI versions of PHP. Get a segfault from it, and at a glance, it looks like php3_map_ms_new is passing bogus arguments to mapObj_new. I'm not a C programmer typically -- only in emergencies, and I've never dealt with the PHP API. Anybody have any ideas what's going on? Here's the offending PHP code: Here's the GDB output and backtrace: (gdb) run hello.php Starting program: /usr/bin/php hello.php (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[Thread debugging using libthread_db enabled] [New Thread -1208023360 (LWP 21889)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1208023360 (LWP 21889)] 0x01034b29 in msLoadMap (filename=0x927f214 "", new_mappath=0x0) at mapfile.c:4178 4178 if((msyyin = fopen(filename,"r")) == NULL) { (gdb) bt #0 0x01034b29 in msLoadMap (filename=0x927f214 "", new_mappath=0x0) at mapfile.c:4178 #1 0x0101175f in mapObj_new (filename=0x40080000
, new_path=0x927f214 "") at mapscript_i.c:100 #2 0x010061b6 in php3_ms_map_new (ht=0, return_value=0x927f1d4, this_ptr=0x0, return_value_used=1) at php_mapscript.c:1729 #3 0x0815fdb6 in execute () #4 0x0814e909 in zend_execute_scripts () #5 0x0812410d in php_execute_script () #6 0x08168213 in main () Last, here's the configure line used (sorry about the excess -- RPM adds a few things): ./configure --host=i686-redhat-linux-gnu --build=i686-redhat-linux-gnu --target=i386-redhat-linux --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --with-gd --with-gdal=/usr/bin/gdal-config --with-ogr=/usr/bin/gdal-config --with-postgis=pg_config --with-geos --with-proj --with-wcs --with-wfs --with-wfsclient --with-wmsclient --with-curl-config=curl-config --with-php=/usr/include/php --with-xpm=/usr/X11R6/lib --enable-debug --with-php-regex-dir=/usr/include/php/regex Thanks to anyone who's read this far. -- Josh Buysse, System Administrator CLA-OIT, Division of Research Computing Services University of Minnesota "Democracy should not be for export only." -- Jesse Jackson http://www.suntimes.com/output/jesse/cst-edt-jesse30.html From torsten.foy at UNI-ROSTOCK.DE Thu May 12 09:57:10 2005 From: torsten.foy at UNI-ROSTOCK.DE (Torsten Foy) Date: Thu, 12 May 2005 18:57:10 +0200 Subject: double quotes in expression Message-ID: Dear mailinglist, I'd like to qurey some data with an expression in the classobject of the map-file. The qurey is a string that contains double quotes. I can't modify this string because it is the definition of a marker symbol out of MapInfo stored in Oracle. I got no other attribute for the query. How can I tell the Mapserver to extract the features to be draw with this marker? The strings to search for looks like this: Symbol (12, 1, "ESRI IGL Font20", 1) The Expression for a string-query starts and ends with double quotes, so that the whole expression would look like this: EXPRESSION "Symbol (12, 1, "ESRI IGL Font20", 1)" The start and the end quotes are writen to the map-file by the setexpression function of PHP-MapScript. So ich can't change them. If anyone knows a solution for this problem I would be very happy to participate. Thanks a lot Torsten ---------------------------------------------------------- Dipl.-Geogr. Torsten Foy Universit?t Rostock Agrar- und Umweltwissenschaftliche Fakult?t Institut f?r Management l?ndlicher R?ume Professur f?r Geod?sie und Geoinformatik Justus-von-Liebig-Weg 6 18059 Rostock Tel.: 0381 - 498 2025 Fax.: 0381 - 498 2188 e-mail: torsten.foy at auf.uni-rostock.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From pscott at UWC.AC.ZA Thu May 12 10:22:35 2005 From: pscott at UWC.AC.ZA (Paul Scott) Date: Thu, 12 May 2005 19:22:35 +0200 Subject: double quotes in expression Message-ID: Symbol (12, 1, "ESRI IGL Font20", 1) The Expression for a string-query starts and ends with double quotes, so that the whole expression would look like this: EXPRESSION "Symbol (12, 1, "ESRI IGL Font20", 1)" You can try using something like addslashes() in PHP or escaping the quotes manually. $expression = addslashes(Symbol (12, 1, "ESRI IGL Font20", 1)); or (12,1,\"ESRI IGL Font20\",1) --Paul From raphael.teixeira at GMAIL.COM Thu May 12 14:47:13 2005 From: raphael.teixeira at GMAIL.COM (Raphael Teixeira) Date: Thu, 12 May 2005 18:47:13 -0300 Subject: Mapserver: Open Source Gis Development Message-ID: Hi All, Does anybody have this book => Mapserver: Open Source Gis Development ?? Can anyone tell me if it is good or not?? Thanks -- Raphael da Silva Teixeira From hobu at IASTATE.EDU Thu May 12 14:53:23 2005 From: hobu at IASTATE.EDU (Howard Butler) Date: Thu, 12 May 2005 16:53:23 -0500 Subject: Mapserver: Open Source Gis Development In-Reply-To: Message-ID: Raphael, This book is not available yet. It will likely be out by the end of the summer, if not sooner. Howard At 04:47 PM 5/12/2005, Raphael Teixeira wrote: >Hi All, > > Does anybody have this book =3D> Mapserver: Open Source Gis Development = >?? > Can anyone tell me if it is good or not?? > >Thanks > >--=20 >Raphael da Silva Teixeira From Troy.Johnson at SDL.USU.EDU Thu May 12 15:02:58 2005 From: Troy.Johnson at SDL.USU.EDU (Troy R. Johnson) Date: Thu, 12 May 2005 16:02:58 -0600 Subject: queryByAttribute problem Message-ID: Hi all, question: I have queryByAttribute partially working, but have run into a problem: I am querying the state boundary shape file as provided in the mapscript example files (statesp020). For some reason when I query on the name of a state, I only get valid results when the state has a single entry in the shape file. For example Idaho, Utah, New Mexico work fine, but Florida, Alaska don't. Here is the PHP code I'm using: //$search_term = "Idaho"; $search_term = "Florida"; $myLayer = $map->getLayerByName("US state boundaries"); $myLayer->queryByAttributes('STATE', '/'.$search_term.'/', MS_MULTIPLE); $numberofresults = $myLayer->getNumResults(); Like I mentioned above, Idaho works, $numberofresults is equal to 1. For Florida $numberofresulsts is equal to 0. Any ideas? My Map file contains: LAYER NAME "US state boundaries" TYPE LINE STATUS ON DATA "statesp020" TEMPLATE "dummy1" ## added to make layer query work PROJECTION "proj=latlong" END CLASS OUTLINECOLOR 230 230 230 SYMBOL 0 END END Thanks for you help. Troy From wouter.schaubroeck at GMAIL.COM Thu May 12 15:10:24 2005 From: wouter.schaubroeck at GMAIL.COM (Wouter Schaubroeck) Date: Fri, 13 May 2005 00:10:24 +0200 Subject: Mapserver: Open Source Gis Development In-Reply-To: Message-ID: Raphael, I don't think you can read it allready, because it's not published yet... :) I think it's comming out somewhere in July (http://www.bookpool.com/sm/1590594908). Grtz Wouter Raphael Teixeira wrote: >Hi All, > > Does anybody have this book => Mapserver: Open Source Gis Development ?? > Can anyone tell me if it is good or not?? > >Thanks > > > From steve.lime at DNR.STATE.MN.US Thu May 12 15:30:59 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 12 May 2005 17:30:59 -0500 Subject: double quotes in expression Message-ID: You could: 1) Write your expression like so using single quotes: EXPRESSION 'Symbol (12, 1, "ESRI IGL Font20", 1)' 2) Perhaps consider looking for sub-strings with regular expressions? Depends on how the values differ though from symbol to symbol (that is is the 12, the 1, the "ESRI IGL Font20" or the 1 really important): EXPRESSION /ESRI IGL FONT 20/ Steve >>> Torsten Foy 5/12/2005 11:57:10 AM >>> Dear mailinglist, I'd like to qurey some data with an expression in the classobject of the map-file. The qurey is a string that contains double quotes. I can't modify this string because it is the definition of a marker symbol out of MapInfo stored in Oracle. I got no other attribute for the query. How can I tell the Mapserver to extract the features to be draw with this marker? The strings to search for looks like this: Symbol (12, 1, "ESRI IGL Font20", 1) The Expression for a string-query starts and ends with double quotes, so that the whole expression would look like this: EXPRESSION "Symbol (12, 1, "ESRI IGL Font20", 1)" The start and the end quotes are writen to the map-file by the setexpression function of PHP-MapScript. So ich can't change them. If anyone knows a solution for this problem I would be very happy to participate. Thanks a lot Torsten ---------------------------------------------------------- Dipl.-Geogr. Torsten Foy Universit?t Rostock Agrar- und Umweltwissenschaftliche Fakult?t Institut f?r Management l?ndlicher R?ume Professur f?r Geod?sie und Geoinformatik Justus-von-Liebig-Weg 6 18059 Rostock Tel.: 0381 - 498 2025 Fax.: 0381 - 498 2188 e-mail: torsten.foy at auf.uni-rostock.de From thomaschesky at YAHOO.COM Thu May 12 15:46:58 2005 From: thomaschesky at YAHOO.COM (Thomas Chesky) Date: Thu, 12 May 2005 15:46:58 -0700 Subject: Census 2000 demographics thematic maps Message-ID: Hello, Does anybody have full US coverage mapfile for producing census demographics thematic maps, similar to what can be found at http://factfinder.census.gov using "Census 2000 Summary File 1 (SF 1) 100-Percent Data" and SF3 I am willing to pay for development and deployment of such application so if there are any free or pay solutions out there please drop me reply. Thanks Thomas __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill at BINKO.NET Thu May 12 15:48:28 2005 From: bill at BINKO.NET (Bill Binko) Date: Thu, 12 May 2005 18:48:28 -0400 Subject: double quotes in expression In-Reply-To: Message-ID: On Thu, 12 May 2005, Steve Lime wrote: > You could: > > 1) Write your expression like so using single quotes: > > EXPRESSION 'Symbol (12, 1, "ESRI IGL Font20", 1)' > > 2) Perhaps consider looking for sub-strings with regular expressions? Depends on how the values differ though from symbol to symbol (that is is the 12, the 1, the "ESRI IGL Font20" or the 1 really important): > > EXPRESSION /ESRI IGL FONT 20/ > > Steve Steve, Is there an escape character in Mapserver strings? For example, does \" mean a literal quotation mark? I can imagine times where the switch to single quotes won't help, for example, someone with polycap tablenames in a PostGIS connection (note the other running thread on this and the postgis-users board). DATA "geom from (SELECT geom, oid from \"PolyCapTableName\" where feature = 'FooBar') as foo using unique oid using SRID 123" Since 'FooBar' needs the single quotes for PostGIS, using single quotes for the whole thing won't work. Looking at the code, it looks like something could be done in maplexer.c or mapfile.c to perform that escape on reading the strings. It might help solve alot of these issues. Just a thought Bill From mleon at SCIENTIFICINFORMATICS.COM Thu May 12 16:13:06 2005 From: mleon at SCIENTIFICINFORMATICS.COM (Mauricio Leon) Date: Thu, 12 May 2005 18:13:06 -0500 Subject: label display Message-ID: Mapserver enthusiasts When displaying road names, the name of every road is displayed as many times (almost) as there are entries in the .dbf file for that road. I need to display the road name only once. Is there any method to make mapserver display the entire road while printing the corresponding label once? Many, many thanks Mauricio. From bill at BINKO.NET Thu May 12 16:16:00 2005 From: bill at BINKO.NET (Bill Binko) Date: Thu, 12 May 2005 19:16:00 -0400 Subject: Compass Rose? Message-ID: Hello everyone, Has anyone come up with a good way to add a compass rose to a map with Mapserver? I'm ready for someone to say, "you idiot: it's right here", but I'm missing it. Basically, I've got a compass rose that I'd like to serve two purposes: branding the image, and serving as a "North is up" true compass rose. Thanks Bill From ARyan at CO.LINN.OR.US Thu May 12 16:33:15 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Thu, 12 May 2005 16:33:15 -0700 Subject: Compass Rose? Message-ID: That begs the question, can I use esri_40.ttf (ESRI North, True Type Font) with a Mapserver application? Adam > -----Original Message----- > From: Bill Binko [mailto:bill at BINKO.NET] > Sent: Thursday, May 12, 2005 4:16 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Compass Rose? > > > Hello everyone, > > Has anyone come up with a good way to add a compass rose to a > map with Mapserver? I'm ready for someone to say, "you > idiot: it's right here", but I'm missing it. > > Basically, I've got a compass rose that I'd like to serve two > purposes: branding the image, and serving as a "North is up" > true compass rose. > > Thanks > Bill > From mleon at SCIENTIFICINFORMATICS.COM Thu May 12 16:38:30 2005 From: mleon at SCIENTIFICINFORMATICS.COM (Mauricio Leon) Date: Thu, 12 May 2005 16:38:30 -0700 Subject: label display In-Reply-To: Message-ID: Nevermind... MINDISTANCE [integer] Minimum distance between duplicate labels. Given in pixels. -----Original Message----- From: Mauricio Leon [mailto:mleon at SCIENTIFICINFORMATICS.COM] Sent: Thursday, May 12, 2005 4:13 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Mauricio Leon Subject: label display Mapserver enthusiasts When displaying road names, the name of every road is displayed as many times (almost) as there are entries in the .dbf file for that road. I need to display the road name only once. Is there any method to make mapserver display the entire road while printing the corresponding label once? Many, many thanks Mauricio. From vincedacol at FREE.FR Fri May 13 01:13:21 2005 From: vincedacol at FREE.FR (Vincent Da-Col) Date: Fri, 13 May 2005 10:13:21 +0200 Subject: Mapserver extent and projection Message-ID: Hello, I'm really new to the world of mapserver. I work on it since 2 week. I like working on this great programme, but I have a little probleme with the extent and different projections. I have 2 layers: - one in Lambert II projection (EXTENT -760555 -1058700 4505870 3245049) - the other in WGS84 projection (EXTENT -34.5523788 26.2114230 72.2516881 83.340374) So How could I dislay the two layers together in mapserver? Must I reproject one layer in arcgis, or is it possible directly with mapserver? Thank for the help, Vincent Da-Col From BEN at SYNCERA-ITSOLUTIONS.NL Fri May 13 01:23:44 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri, 13 May 2005 10:23:44 +0200 Subject: Mapserver extent and projection Message-ID: Hi, it is possible with Mapserver to do reprojection. Use a PROJECTION object in your MAP object for the output map projection that you want. Use a PROJECTION object for every LAYER stating the source projection of the layer. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Vincent Da-Col 05/13/05 10:13am >>> Hello, I'm really new to the world of mapserver. I work on it since 2 week. I like working on this great programme, but I have a little probleme with the extent and different projections. I have 2 layers: - one in Lambert II projection (EXTENT -760555 -1058700 4505870 3245049) - the other in WGS84 projection (EXTENT -34.5523788 26.2114230 72.2516881 83.340374) So How could I dislay the two layers together in mapserver? Must I reproject one layer in arcgis, or is it possible directly with mapserver? Thank for the help, Vincent Da-Col From philippe.gondek at GMAIL.COM Fri May 13 02:04:06 2005 From: philippe.gondek at GMAIL.COM (Philippe Gondek) Date: Fri, 13 May 2005 11:04:06 +0200 Subject: A long time to render a white picture with PHP/Mapscript... Message-ID: Hi, Here is my script : name");//////////////////////////////////////////////////////// $map->setextent($xmin,$ymin,$xmax,$ymax); $map->web->set("imagepath",$mapserver_imagepath); $map->web->set("imageurl",$mapserver_imageurl); $map->set("width",$longueur_image_mapfile); $map->set("height",$hauteur_image_mapfile); // Ajout d'une couche $layer = ms_newLayerObj($map); // Nom de la couche conforme a celui de la base de donnees $layer->set("name",$base_de_donnees); $layer->set("status",MS_ON); // Connexion a la base de donnees PostGIS $layer->set("connectiontype",MS_POSTGIS); $layer->set("connection","host=localhost port=5432 dbname=lemiam user=phil password=1707loulou442"); // Requete spatiale utilisee $layer->set("data","the_geom from regions"); // Precision sur le type de donnee spatiale a prendre en compte: //LINE, POINT... $layer->set("type",$type_donnee_geometrique_pour_mapserver); // Nom de la colonne de donnees attributaires a afficher $layer->set("labelitem",$mapserver_labelitem); // Ajout de la class $class = ms_newClassObj($layer); // Ajout du Label $label = $class->label; // Precision sur l'affichage de la donnee de type attributaire // la couleur, la taille de la donnee ... $label->set("position",MS_CC); $label->color->setRGB(0,0,0); $label->outlinecolor->setRGB(255,255,255); $label->shadowcolor->setRGB(255,255,255); $label->backgroundcolor->setRGB(255,255,255); $label->backgroundshadowcolor->setRGB(255,255,255); // Ajout du style $style = ms_newStyleObj($class); // Precision sur l'affichage des donn?es spatiales // couleur de bourdure en code 128 0 0 pour RGB $style->set("size",4); $style->outlinecolor->setRGB(128,0,0); // Utilisation de PhpMapScript // pour generer l'image associee a la mapfile au format PNG $image = $map->draw(); $image_url = $image->saveWebImage(MS_PNG,1,1,0); // Fermeture de la connexion a PostgreSQL pg_close($db_handle); ?> /> I dont know why but the picture I render is white and it takes a long time... Approximately 2 minutes... Is there a reason??? From BEN at SYNCERA-ITSOLUTIONS.NL Fri May 13 02:09:08 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri, 13 May 2005 11:09:08 +0200 Subject: A long time to render a white picture with PHP/Mapscript... Message-ID: Do you have a spatial index on your PostGIS table and is it being used? Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Philippe Gondek 05/13/05 11:04am >>> Hi, Here is my script : name");//////////////////////////////////////////////////////// $map->setextent($xmin,$ymin,$xmax,$ymax); $map->web->set("imagepath",$mapserver_imagepath); $map->web->set("imageurl",$mapserver_imageurl); $map->set("width",$longueur_image_mapfile); $map->set("height",$hauteur_image_mapfile); // Ajout d'une couche $layer = ms_newLayerObj($map); // Nom de la couche conforme a celui de la base de donnees $layer->set("name",$base_de_donnees); $layer->set("status",MS_ON); // Connexion a la base de donnees PostGIS $layer->set("connectiontype",MS_POSTGIS); $layer->set("connection","host=localhost port=5432 dbname=lemiam user=phil password=1707loulou442"); // Requete spatiale utilisee $layer->set("data","the_geom from regions"); // Precision sur le type de donnee spatiale a prendre en compte: //LINE, POINT... $layer->set("type",$type_donnee_geometrique_pour_mapserver); // Nom de la colonne de donnees attributaires a afficher $layer->set("labelitem",$mapserver_labelitem); // Ajout de la class $class = ms_newClassObj($layer); // Ajout du Label $label = $class->label; // Precision sur l'affichage de la donnee de type attributaire // la couleur, la taille de la donnee ... $label->set("position",MS_CC); $label->color->setRGB(0,0,0); $label->outlinecolor->setRGB(255,255,255); $label->shadowcolor->setRGB(255,255,255); $label->backgroundcolor->setRGB(255,255,255); $label->backgroundshadowcolor->setRGB(255,255,255); // Ajout du style $style = ms_newStyleObj($class); // Precision sur l'affichage des donn?es spatiales // couleur de bourdure en code 128 0 0 pour RGB $style->set("size",4); $style->outlinecolor->setRGB(128,0,0); // Utilisation de PhpMapScript // pour generer l'image associee a la mapfile au format PNG $image = $map->draw(); $image_url = $image->saveWebImage(MS_PNG,1,1,0); // Fermeture de la connexion a PostgreSQL pg_close($db_handle); ?> /> I dont know why but the picture I render is white and it takes a long time... Approximately 2 minutes... Is there a reason??? From philippe.gondek at GMAIL.COM Fri May 13 02:40:27 2005 From: philippe.gondek at GMAIL.COM (Philippe Gondek) Date: Fri, 13 May 2005 11:40:27 +0200 Subject: Problem of rights??? Message-ID: Hi, I can see my rendered picture in my web browser, but if I want to see it from another computer, the picture is rendered but it is not possible to see in the web browser... From BEN at SYNCERA-ITSOLUTIONS.NL Fri May 13 02:42:01 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri, 13 May 2005 11:42:01 +0200 Subject: Problem of rights??? Message-ID: If you look at the properties of the image, what URL does it reference? Maybe localhost? Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Philippe Gondek 05/13/05 11:40am >>> Hi, I can see my rendered picture in my web browser, but if I want to see it from another computer, the picture is rendered but it is not possible to see in the web browser... From neuchi at TCI-COM.BIZ Fri May 13 03:03:13 2005 From: neuchi at TCI-COM.BIZ (Akio Neuchi) Date: Fri, 13 May 2005 19:03:13 +0900 Subject: About ShapeTree and Raster TileIndex In-Reply-To: Message-ID: Hello to all, I just made a *.qix file from *.shp file for Raster TileIndex images -- around 800 gif images, and tested with and without shape tree. The result was there is no difference in processing speed. The procedure was, gdaltindex MSRAS_12000.shp MSRAS_12000/*.gif, shptree MSRAS_12000.shp, and I got MSRAS_12000.qix. (Under MSRAS_12000 directory there are 800 gif and wld files.) I wonder if I am following the right procedure, and if so, why there is no difference on the processing. In addition, I have around 100 of Vector TileIndex shape directories, and If ShapeTree really works, I am planning to build *.qix for each Vector shapes. My OUTPUTFORMAT amd Raster layer are like these: OUTPUTFORMAT NAME gif MIMETYPE "image/gif" DRIVER "GD/GIF" EXTENSION "gif" IMAGEMODE RGB # IMAGEMODE PC256 TRANSPARENT FALSE FORMATOPTION "INTERLACE=OFF" END ### RASTER Layer LAYER NAME "MSRAS_12000" GROUP "B_RASTER" TILEINDEX "MSRAS_12000.qix" # TILEINDEX "MSRAS_12000.shp" TILEITEM "Location" TYPE RASTER # STATUS ON STATUS DEFAULT MINSCALE 50 MAXSCALE 5000000 PROJECTION "proj=latlong" # "init=epsg:26915" END END Thank you for your suggestions. Akio From BEN at SYNCERA-ITSOLUTIONS.NL Fri May 13 03:44:35 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri, 13 May 2005 12:44:35 +0200 Subject: About ShapeTree and Raster TileIndex Message-ID: Hi, can you try (without the .shp extension): TILEINDEX "MSRAS_12000" Btw, the quadtree index only makes a difference if you zoom in, not when you view the whole layer. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Akio Neuchi 05/13/05 12:03pm >>> Hello to all, I just made a *.qix file from *.shp file for Raster TileIndex images -- around 800 gif images, and tested with and without shape tree. The result was there is no difference in processing speed. The procedure was, gdaltindex MSRAS_12000.shp MSRAS_12000/*.gif, shptree MSRAS_12000.shp, and I got MSRAS_12000.qix. (Under MSRAS_12000 directory there are 800 gif and wld files.) I wonder if I am following the right procedure, and if so, why there is no difference on the processing. In addition, I have around 100 of Vector TileIndex shape directories, and If ShapeTree really works, I am planning to build *.qix for each Vector shapes. My OUTPUTFORMAT amd Raster layer are like these: OUTPUTFORMAT NAME gif MIMETYPE "image/gif" DRIVER "GD/GIF" EXTENSION "gif" IMAGEMODE RGB # IMAGEMODE PC256 TRANSPARENT FALSE FORMATOPTION "INTERLACE=OFF" END ### RASTER Layer LAYER NAME "MSRAS_12000" GROUP "B_RASTER" TILEINDEX "MSRAS_12000.qix" # TILEINDEX "MSRAS_12000.shp" TILEITEM "Location" TYPE RASTER # STATUS ON STATUS DEFAULT MINSCALE 50 MAXSCALE 5000000 PROJECTION "proj=latlong" # "init=epsg:26915" END END Thank you for your suggestions. Akio From nbarker at RSINC.COM Fri May 13 04:31:51 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Fri, 13 May 2005 12:31:51 +0100 Subject: Mapserver response Message-ID: Hi, what is the condition that cause MapServer to either retrieve the file and send it back to the user, or to resample the file? Looking at the socket if MapServer doesn't really do anything to the file then the response (tiff in my case) is sent back as text, but if it does do anything then the response is sent back with a GET header and content-type set, and the reponse-body. My reason for asking is find some way of getting the data back unaltered as work around to a bug with resampling. I guess the response mechanism in MapServer is the same for the WMS and WCS. Many thanks, Norman Barker From lfilak at MEDINACO.ORG Fri May 13 05:32:27 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 13 May 2005 08:32:27 -0400 Subject: label display Message-ID: It's not automatic, but we ended up creating a 'route' based on the roadname from township line to township line The following message was sent by Mauricio Leon on Thu, 12 May 2005 18:13:06 -0500. > Mapserver enthusiasts > > When displaying road names, the name of every road is displayed as many > times (almost) as there are entries in the .dbf file for that road. I need > to display the road name only once. Is there any method to make mapserver > display the entire road while printing the corresponding label once? > > Many, many thanks Mauricio. Have you already tried adjusting the minfeaturesize & mindistance? It's not automatic, but we ended up creating a 'route' based on the roadname from township line to township line for our commercial software to label things correctly when zoomed out and we use that same route to create the line shapefile for mapserver. Lowell From lfilak at MEDINACO.ORG Fri May 13 05:36:31 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 13 May 2005 08:36:31 -0400 Subject: double quotes in expression Message-ID: The following message was sent by Bill Binko on Thu, 12 May 2005 18:48:28 -0400. > On Thu, 12 May 2005, Steve Lime wrote: > > > You could: > > > > 1) Write your expression like so using single quotes: > > > > EXPRESSION 'Symbol (12, 1, "ESRI IGL Font20", 1)' > > > > 2) Perhaps consider looking for sub-strings with regular expressions? Depends on how the values differ though from symbol to symbol (that is is the 12, the 1, the "ESRI IGL Font20" or the 1 really important): > > > > EXPRESSION /ESRI IGL FONT 20/ > > > > Steve > > > Steve, > > Is there an escape character in Mapserver strings? For example, does \" > mean a literal quotation mark? > > I can imagine times where the switch to single quotes won't help, for > example, someone with polycap tablenames in a PostGIS connection (note the > other running thread on this and the postgis-users board). > > DATA "geom from (SELECT geom, oid from \"PolyCapTableName\" where feature > = 'FooBar') as foo using unique oid using SRID 123" > > Since 'FooBar' needs the single quotes for PostGIS, using single quotes > for the whole thing won't work. > > Looking at the code, it looks like something could be done in maplexer.c > or mapfile.c to perform that escape on reading the strings. It might help > solve alot of these issues. > > Just a thought Bill, Look for 'escaping single quotes' (subject) in the May list archives. It doesn't appear that a fix is simple. HTH Lowell From fwarmerdam at GMAIL.COM Fri May 13 06:09:58 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 13 May 2005 09:09:58 -0400 Subject: Mapserver response In-Reply-To: Message-ID: On 5/13/05, Norman Barker wrote: > Hi, > > what is the condition that cause MapServer to either retrieve the file and send it back to the user, or to resample the file? Looking at the socket if MapServer doesn't really do anything to the file then the response (tiff in my case) is sent back as text, but if it does do anything then the response is sent back with a GET header and content-type set, and the reponse-body. Norman, First, in normal use MapServer never sends back source raster files unaltered. Even if you are serving from a jpeg file, and request the image at exactly full resolution, you still won't get the original file. Instead it will be decompressed, resampled (even if only 1:1 nearest neighbour), rendered in memory and then written out and recompressed to JPEG to be returned to the client. Perhaps you are wondering when the simple "zoom" resampling is used as opposed to the more generic warper resampling used for reprojection (and odd pixel aspect ratios)? These are certainly quite distinct modes. The warper resampling kicks in when the layer and map projections differ or if the requested result will have non-square pixels. > My reason for asking is find some way of getting the data back unaltered as work around to a bug with resampling. Is this the problem in bug report 1183? > I guess the response mechanism in MapServer is the same for the WMS and WCS. Essentially, yes. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Fri May 13 06:17:20 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 13 May 2005 09:17:20 -0400 Subject: About ShapeTree and Raster TileIndex In-Reply-To: Message-ID: On 5/13/05, Akio Neuchi wrote: > Hello to all, > > I just made a *.qix file from *.shp file for Raster TileIndex images -- > around 800 gif images, > and tested with and without shape tree. The result was there is no > difference in processing speed. Akio, Well, first, scanning 800 polygon records isn't going to take a significant amount of time anyways, so adding a spatial index to the tile index isn't likely to gain you much. If you rendering requests are slow it is likely due to factors other than scanning the tileindex itself. I would add that if map views end up intersecting multiple gif images (or if the gif images are large) performance will suck. Gif images are effectively "stream compressed" so to pull out an overview, or a small section of a gif you essentially end up having to decompress all or most of the gif file. This makes gif a pretty poor format for "geospatial databases". > In addition, I have around 100 of Vector TileIndex shape directories, > and If ShapeTree really works, I am planning to build *.qix for each Vector > shapes. Spatial indexes on your vector tiles will make a substantial diffference if your tiles contain alot of features, but typical renders only require a small number of the features from one or a few tiles. If the tiles are quite small and your map views fairly broad, such that typically most or all of the features from a tile are rendered, then spatial indices won't help much. You really need to think about what are typical requests for your use pattern, and what would be making them slow before you can plan an effective optimization strategy. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From nbarker at RSINC.COM Fri May 13 06:50:52 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Fri, 13 May 2005 14:50:52 +0100 Subject: Mapserver response Message-ID: -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] Sent: Fri 5/13/2005 2:09 PM To: Norman Barker Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Mapserver response On 5/13/05, Norman Barker wrote: > Hi, > > what is the condition that cause MapServer to either retrieve the file and send it back to the user, or to resample the file? Looking at the socket if MapServer doesn't really do anything to the file then the response (tiff in my case) is sent back as text, but if it does do anything then the response is sent back with a GET header and content-type set, and the reponse-body. Norman, First, in normal use MapServer never sends back source raster files unaltered. Even if you are serving from a jpeg file, and request the image at exactly full resolution, you still won't get the original file. Instead it will be decompressed, resampled (even if only 1:1 nearest neighbour), rendered in memory and then written out and recompressed to JPEG to be returned to the client. Perhaps you are wondering when the simple "zoom" resampling is used as opposed to the more generic warper resampling used for reprojection (and odd pixel aspect ratios)? These are certainly quite distinct modes. The warper resampling kicks in when the layer and map projections differ or if the requested result will have non-square pixels. > My reason for asking is find some way of getting the data back unaltered as work around to a bug with resampling. Is this the problem in bug report 1183? > I guess the response mechanism in MapServer is the same for the WMS and WCS. Essentially, yes. Best regards, -- Thanks Frank, I was trying to find a way to force a file through MapServer WCS because of bug 1183, it works with some files (with square resolution), but not others hence the question. Would there be a way to specify a 'RAW' extension to MapServer WCS to retrieve the base file unaltered? I am thinking in particular of retrieving data with custom geotiff tags, or say a Jpeg2000 file with custom XML inside it? Any thing we can do to help with the WCS resolution/reprojection bug please let us know. Many thanks, Norman Barker -------------- next part -------------- An HTML attachment was scrubbed... URL: From philippe.gondek at GMAIL.COM Fri May 13 06:52:12 2005 From: philippe.gondek at GMAIL.COM (Philippe Gondek) Date: Fri, 13 May 2005 15:52:12 +0200 Subject: scalebar.??? Message-ID: Hi, I really enjoy mapserver PHP/Mapscript, I find it verry powerfull. The speed is incredible... I begin now to try to have a powerfull interface on my web page... I trued to show a scalebar, but the unit is not Km and the ratio is not good!!! How to do to have always a scalbar wwith the good ratio??? Is the projection important??? Thank you... Ph. Gondek From fwarmerdam at GMAIL.COM Fri May 13 07:07:40 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 13 May 2005 10:07:40 -0400 Subject: Mapserver response In-Reply-To: Message-ID: On 5/13/05, Norman Barker wrote: > Thanks Frank, > > I was trying to find a way to force a file through MapServer WCS because of bug 1183, it works with some > files (with square resolution), but not others hence the question. > > Would there be a way to specify a 'RAW' extension to MapServer WCS to retrieve the base file unaltered? I am thinking in particular of retrieving data with custom geotiff tags, or say a Jpeg2000 file with custom XML inside it? Norman, I don't forsee supporting a raw mode which literally returns the original file since it is quite out-of-band for mapserver. However, I have been thinking that for WCS mode it would be nice if we could have some way of returning various kinds of metadata associated with the source file when serving via WCS. This would likely only make sense for layers that are not tileindexed. Perhaps a PROCESSING directive on the layer that would indicate what sorts of metadata to carry over to the result file. Of course, it would at best likely be constrained by the metadata model of GDAL. I have no concrete plans to add such a feature but I think it is worth further discussion about the sorts of things we would want to carry over. > Any thing we can do to help with the WCS resolution/reprojection bug please let us know. I dug into and closed the bug yesterday. Perhaps it was using an old email address for you, so you didn't get the notification? The overall result was that you were missing a PROJECTION block on your raster layer, so anything going through the warp/resampler was just not acting. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From nbarker at RSINC.COM Fri May 13 08:20:25 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Fri, 13 May 2005 16:20:25 +0100 Subject: Mapserver response Message-ID: -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] Sent: Fri 5/13/2005 3:07 PM To: Norman Barker Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Mapserver response On 5/13/05, Norman Barker wrote: > Thanks Frank, > > I was trying to find a way to force a file through MapServer WCS because of bug 1183, it works with some > files (with square resolution), but not others hence the question. > > Would there be a way to specify a 'RAW' extension to MapServer WCS to retrieve the base file unaltered? I am thinking in particular of retrieving data with custom geotiff tags, or say a Jpeg2000 file with custom XML inside it? Norman, I don't forsee supporting a raw mode which literally returns the original file since it is quite out-of-band for mapserver. However, I have been thinking that for WCS mode it would be nice if we could have some way of returning various kinds of metadata associated with the source file when serving via WCS. This would likely only make sense for layers that are not tileindexed. Perhaps a PROCESSING directive on the layer that would indicate what sorts of metadata to carry over to the result file. Of course, it would at best likely be constrained by the metadata model of GDAL. I have no concrete plans to add such a feature but I think it is worth further discussion about the sorts of things we would want to carry over. > Any thing we can do to help with the WCS resolution/reprojection bug please let us know. I dug into and closed the bug yesterday. Perhaps it was using an old email address for you, so you didn't get the notification? The overall result was that you were missing a PROJECTION block on your raster layer, so anything going through the warp/resampler was just not acting. Hi Frank, A Processing directive would be a really cool idea! I can see that we could preserve metadata in JPEG2000 that way, and also allow custom tags. Could it be opened up to include hooks to image processing as well? Then you would have remote subsetting and processing in one (or perhaps I am getting carried away!! :-)) Many thanks for closing the bug, I have moved jobs to RSI hence the change in email. I am using the FWTools version of MapServer but I will take the nightly source and build it asap. Many thanks, Norman Barker -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Fri May 13 08:39:26 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 13 May 2005 11:39:26 -0400 Subject: Mapserver response In-Reply-To: Message-ID: On 5/13/05, Norman Barker wrote: > Hi Frank, > > A Processing directive would be a really cool idea! I can see that we could preserve metadata in JPEG2000 > that way, and also allow custom tags. Norman, Yes indeed. But we would likely need to figure out what makes sense to copy. Some specialized metadata (georeferencing, coordinate system, color table, color interpretation) is already set by MapServer according to the outputformat. But at the very least, it would be nice to support copying generic metadata as per the GDAL model of it. As for copying metadata in a very literal form (without it being morphed into GDAL organization in between) - I think that would be more problematic. > Could it be opened up to include hooks to image processing as well? > Then you would have remote subsetting and processing in one (or perhaps I am getting carried away!! :-)) Well, I don't see that as related to the processing option. I am generally not keen to build generic image processing directly into MapServer. I have thought to extending GDAL's VRT format to support performing some kinds of image processing. It already does simple coefficient window filtering for instance. This would potentially give a mechanism to provide image processing, but it would be invisible to MapServer. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From a.olita at IMC-IT.ORG Fri May 13 08:17:32 2005 From: a.olita at IMC-IT.ORG (Antonio) Date: Fri, 13 May 2005 17:17:32 +0200 Subject: run with firefox Message-ID: I have successful installed the last version of mapserver on my SuSE9.1/Apache2 system. I have a problem when attempt to use the index.html file of the demo "whorkshop" with my Firefox browser. The page is loaded correctly but when i click on "initialize", after the modification of the fields requested inside the "index.html" file, my browser try to download my mapserver file instead running the program. Why? Do you have any Ideas? Thanks, Antonio From siki at AGT.BME.HU Fri May 13 13:55:27 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 13 May 2005 19:55:27 -0100 Subject: Help needed with using .tab files with MapServer {Scanned} {Scanned} {Scanned} In-Reply-To: <7016DB62DABA324AA8481B642F92AA2F062945@server.nortechonline.net> Message-ID: Hi, STATUS DEFAULT means always on STATUS ON means it can be turnd on/off using layer parameter for cgi mapserver It is a bit confusing :) Bye Zoltan On Wed, 11 May 2005, Beales, Joe wrote: > Hi Zoltan, > > At Last, I've got my map! Thanks! > But I don't understand, what is the difference between STATUS DEFAULT > and STATUS ON? > > Many thanks, > > Joe > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Siki Zoltan > Sent: 11 May 2005 14:56 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Help needed with using .tab files > with MapServer {Scanned} {Scanned} > > Hi Joe, > > First of all try STATUS DEFAULT in the layer section. > Second remove any projection parameter from your map file. > It should work, I use MapInfo tabs a lot in mapserver > > Bye > Zoltan > > On Wed, 11 May 2005, Beales, Joe wrote: > > > Hi, > > > > I'm new to MapServer and I'm having problems in producing a map from > > Mapinfo files. > > I've got Mapserver 4.5 installed (with ogr support) on apache 2 under > > Windows XP Pro. (I've downloaded some tutorials and got them producing > > > the correct results.) I've searched the mail list archive and seen > > some people have had the same problem but I can't find a definitive > > answer. > > > > I've used ogrinfo to try and get the correct extent and units. > > Below is the Map file I'm using, I am missing something? > > I've tried various projections but they don't seem to make a > difference. > > I've also tried referencing a non-existent .TAB file in the CONNECTION > > > parameter and don't receive any errors is that normal? > > All I get is a blank gif. > > > > MAP > > DEBUG ON > > NAME "Testing" > > EXTENT 57.308593 -20.525013 57.806386 -19.981773 > > UNITS DD > > SHAPEPATH "C:/Program Files/Apache Group/Apache/htdocs/maur/" > > IMAGETYPE PNG > > IMAGECOLOR 255 255 200 > > STATUS ON > > SIZE 400 400 > > > > PROJECTION > > #"init=epsg:4326" > > "proj=latlong" > > "ellps=WGS84" > > END > > > > WEB > > LOG "C:\mapserv_err.txt" > > TEMPLATE "printable.html" > > IMAGEPATH "C:/Program Files/Apache Group/Apache2/htdocs/tmp/" > > IMAGEURL "/tmp/" > > END > > > > LAYER > > NAME "Districts" > > DEBUG ON > > TYPE POLYGON > > CONNECTIONTYPE OGR > > CONNECTION "C:/Program Files/Apache > > Group/Apache2/htdocs/maur/District.TAB" > > #DATA "District" > > STATUS ON > > > > PROJECTION > > #"init=epsg:4326" > > "proj=latlong" > > "ellps=WGS84" > > END > > #STYLEITEM "AUTO" > > CLASS > > OUTLINECOLOR 0 0 0 > > COLOR 128 128 128 > > END > > END > > END > > > > Part Results from ogrinfo: > > > > Layer name: District > > Geometry: Polygon > > Feature Count: 9 > > Extent: (57.308593, -20.525013) - (57.806386, -19.981773) Layer SRS > > WKT: > > GEOGCS["unnamed", > > DATUM["WGS_1984", > > SPHEROID["WGS 84",6378137,298.257223563], > > TOWGS84[0,0,0,0,0,0,0]], > > PRIMEM["Greenwich",0], > > UNIT["degree",0.0174532925199433]] > > > > > > Also can anyone point me in the direction of any online resources > > intended for peole just getting started with MapServer? > > Regards, > > > > Joe Beales. > > > > > From siki at AGT.BME.HU Fri May 13 14:21:06 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 13 May 2005 20:21:06 -0100 Subject: About ShapeTree and Raster TileIndex {Scanned} In-Reply-To: Message-ID: Dear Akio, TILEINDEX should refere to the shape file crreated by gdaltindex I have read a thread on the list, do not append extension to the name of the shape because it will search for name.shp.qix file as spatial index. To tell you the truth I have no check the performance yet. Zoltan On Fri, 13 May 2005, Akio Neuchi wrote: > > Hello to all, > > I just made a *.qix file from *.shp file for Raster TileIndex images -- > around 800 gif images, > and tested with and without shape tree. The result was there is no > difference in processing speed. > > The procedure was, > gdaltindex MSRAS_12000.shp MSRAS_12000/*.gif, > shptree MSRAS_12000.shp, > and I got MSRAS_12000.qix. > (Under MSRAS_12000 directory there are 800 gif and wld files.) > > I wonder if I am following the right procedure, and if so, > why there is no difference on the processing. > > In addition, I have around 100 of Vector TileIndex shape directories, > and If ShapeTree really works, I am planning to build *.qix for each Vector > shapes. > > My OUTPUTFORMAT amd Raster layer are like these: > > OUTPUTFORMAT > NAME gif > MIMETYPE "image/gif" > DRIVER "GD/GIF" > EXTENSION "gif" > IMAGEMODE RGB > # IMAGEMODE PC256 > TRANSPARENT FALSE > FORMATOPTION "INTERLACE=OFF" > END > > ### RASTER Layer > LAYER > NAME "MSRAS_12000" > GROUP "B_RASTER" > TILEINDEX "MSRAS_12000.qix" > # TILEINDEX "MSRAS_12000.shp" > TILEITEM "Location" > TYPE RASTER > # STATUS ON > STATUS DEFAULT > MINSCALE 50 > MAXSCALE 5000000 > PROJECTION > "proj=latlong" > # "init=epsg:26915" > END > END > > Thank you for your suggestions. > Akio > > > From gerry.creager at TAMU.EDU Fri May 13 12:07:21 2005 From: gerry.creager at TAMU.EDU (Gerry Creager n5jxs) Date: Fri, 13 May 2005 14:07:21 -0500 Subject: error text... Message-ID: I've a map that trys to load a couple of shapefiles and a raster or 2. if one or more of these are not present, it gives a set of text which is useful to me in identifying the error... but routine users are perplexed or annoyed when they encounter this. The shapefiles are snagged every 5 min; same frequency for the radar generation. Is there a way to hide the error code from the wewb page? Thanks, gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From David.Fawcett at STATE.MN.US Fri May 13 12:13:00 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 13 May 2005 14:13:00 -0500 Subject: error text... Message-ID: Gerry, Are you using ERROR in the WEB object to call an error page? http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#web I guess that what you probably really want to do is ignore the error as long as some of the layers show up. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Gerry Creager n5jxs Sent: Friday, May 13, 2005 2:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] error text... I've a map that trys to load a couple of shapefiles and a raster or 2. if one or more of these are not present, it gives a set of text which is useful to me in identifying the error... but routine users are perplexed or annoyed when they encounter this. The shapefiles are snagged every 5 min; same frequency for the radar generation. Is there a way to hide the error code from the wewb page? Thanks, gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From gerry.creager at TAMU.EDU Fri May 13 12:44:14 2005 From: gerry.creager at TAMU.EDU (Gerry Creager n5jxs) Date: Fri, 13 May 2005 14:44:14 -0500 Subject: error text... In-Reply-To: Message-ID: Duh! (please note sound of boot hitting head) I'll make that delta to the pages now... Thanks! Fawcett, David wrote: > Gerry, > > Are you using ERROR in the WEB object to call an error page? > > http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#web > > I guess that what you probably really want to do is ignore the error as long as some of the layers show up. > > David. > > David Fawcett > Minnesota Office of Environmental Assistance > david.fawcett at moea.state.mn.us > 651.215.0200 > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Gerry Creager n5jxs > Sent: Friday, May 13, 2005 2:07 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] error text... > > > I've a map that trys to load a couple of shapefiles and a raster or 2. > if one or more of these are not present, it gives a set of text which is > useful to me in identifying the error... but routine users are perplexed > or annoyed when they encounter this. > > The shapefiles are snagged every 5 min; same frequency for the radar > generation. > > Is there a way to hide the error code from the wewb page? > > Thanks, gerry > -- > Gerry Creager -- gerry.creager at tamu.edu > Texas Mesonet -- AATLT, Texas A&M University > Cell: 979.229.5301 Office: 979.458.4020 > FAX: 979.847.8578 Pager: 979.228.0173 > Office: 903A Eller Bldg, TAMU, College Station, TX 77843 > -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From dhjr at HDDESIGN.COM Fri May 13 15:11:44 2005 From: dhjr at HDDESIGN.COM (David Huttleston Jr) Date: Fri, 13 May 2005 17:11:44 -0500 Subject: Python test failure on Mac Message-ID: Hello All, I'm in the process of porting Mapserver and some of it's supporting libraries to Mac OS X. The results of which will be released as part of the DarwinPort project for others to download and build. I've bumped into a byte order error on the MapCloningTestCase. I haven't seen anything on google or the archives so I thought I'd ask the list before I get ugly with this. I know others have used MapServer on a Mac, has anyone else seen this before? % python runalltests.py -v check attributes of a cloned class ... ok testConstructorNoArg (classtest.ClassObjTestCase) ... ok testConstructorWithArg (classtest.ClassObjTestCase) ... ok MapCloningTestCase.testClonedLayers: the layers of a cloned map equal the original ... ERROR 1: CPLVerifyConfiguration(): byte order set wrong. Note that I'm running Tiger, and used the default gcc 4.0. % uname -a Darwin Thebes.local 8.0.0 Darwin Kernel Version 8.0.0: Sat Mar 26 14:15:22 PST 2005; root:xnu-792.obj~1/RELEASE_PPC Power Macintosh powerpc % gcc --version powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple Computer, Inc. build 4061) Thanks for your time, Dave From sgillies at FRII.COM Fri May 13 15:54:35 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 13 May 2005 16:54:35 -0600 Subject: Python test failure on Mac In-Reply-To: Message-ID: On May 13, 2005, at 4:11 PM, David Huttleston Jr wrote: > Hello All, > > I'm in the process of porting Mapserver and some of it's supporting > libraries to Mac OS X. The results of which will be released as part > of the DarwinPort project for others to download and build. > > I've bumped into a byte order error on the MapCloningTestCase. I > haven't seen anything on google or the archives so I thought I'd ask > the list before I get ugly with this. I know others have used > MapServer on a Mac, has anyone else seen this before? > > % python runalltests.py -v > check attributes of a cloned class ... ok > testConstructorNoArg (classtest.ClassObjTestCase) ... ok > testConstructorWithArg (classtest.ClassObjTestCase) ... ok > MapCloningTestCase.testClonedLayers: the layers of a cloned map equal > the original ... ERROR 1: CPLVerifyConfiguration(): byte order set > wrong. > Never seen that before, and haven't heard anything from other OS X (10.3) mapscript users. Looks like a GDAL error. MapCloningTestCase.testClonedLayers doesn't even render an image, so I'm not sure where it comes into play. Maybe there's an assert somewhere? You forgot to tell us the most important information: which mapserver and GDAL versions are you building? Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From ltiu at ALUMNI.SFU.CA Fri May 13 16:03:25 2005 From: ltiu at ALUMNI.SFU.CA (Lyndon Tiu) Date: Fri, 13 May 2005 16:03:25 -0700 Subject: How do I delist myself form this email list? Message-ID: An embedded and charset-unspecified text was scrubbed... Name: not available URL: From spencer.cox at TESERA.COM Fri May 13 16:06:09 2005 From: spencer.cox at TESERA.COM (Spencer Cox) Date: Fri, 13 May 2005 17:06:09 -0600 Subject: Premature end of script headers: mapserv.exe Message-ID: I am trying to add Mapserver to a web server running Apache/2.0.54 (Win32) PHP/5.0.4. I've tried a few binary builds and they seem to result in the same internal server error message. I am able to access mapserv.exe -v with the command line and the version information looks correct. When I try and access it through a web browser the internal server error comes up. It writes the following to my Apache error logs: [Fri May 13 16:51:19 2005] [error] [client 127.0.0.1] Premature end of script headers: mapserv.exe [Fri May 13 16:51:19 2005] [error] [client 127.0.0.1] File does not exist: D:/Server/Website/favicon.ico Anyone have any recommendations on what to do or where to look. Is there any detailed documentation on configuring Mapserver for Apache? I've added the dll directory to the system PATH and created a variable for the Proj. I haven't been able to add the PHP extension php_mapscript_45.dll (when I try it says the specified module cannot be found) even though its with the other php extensions, and referred to correctly in the php.ini file...Maybe this relates to the problem. I've pretty much exhausted my limited knowledge trying different things. If anyone has any suggestions of things to try, or relevant documentation I thank you in advance! Have a good one! -- Spencer Cox - GIS Specialist Tesera Systems Inc. Tel: (403) 932-0440 Mailing Address: Box 1078, Cochrane AB, T4C 1B1 Street Address: 126A River Avenue, Cochrane AB T4C 2C2 Web: www.tesera.com From mike.and.kerry at GMAIL.COM Fri May 13 16:44:48 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Fri, 13 May 2005 15:44:48 -0800 Subject: DHTML reference image with out position:absolute Message-ID: Has anyone figured out how to capture coordinates from a reference map in a DHTML interface without using position:absolute? I am designing an interface in which requires nesting the reference map inside other divs and the absolue positioning is throwing everything off. If I change the positioning to float:center I can line everything up all right, but then I loose the click-to-pan functionality. Thanks -Mike From jkim at SCIENCES.SDSU.EDU Fri May 13 18:32:41 2005 From: jkim at SCIENCES.SDSU.EDU (John Kim) Date: Fri, 13 May 2005 18:32:41 -0700 Subject: How To Read Arc Grid Directly? Message-ID: I've seen people mention that you can read ArcInfo grids directly with GDAL, but I have not seen any documentation or examples. Can someone direct me to some, or outline how it is done? I assume you just compose your .map file in some way that refers to arc grids. I'm a new to MapServer, and am running MapServer with MapScript (and GDAL) on Win2K. Thanks. John -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Sat May 14 02:00:24 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 14 May 2005 11:00:24 +0200 Subject: How To Read Arc Grid Directly? In-Reply-To: <072301c55824$d4f944e0$efebbf82@JOHNKIM> Message-ID: Hi John, just reference the grid in the DATA statement of your LAYER, eg: LAYER NAME "ahn_100" DATA "c:\data\ahn_100\geogegevens\landsdekkend\ahn_100\w001001.adf" STATUS ON TYPE RASTER END Best regards, Bart On Sat, 14 May 2005 03:32:41 +0200, John Kim wrote: > I've seen people mention that you can read ArcInfo grids directly with > GDAL, but I have not seen any documentation or examples. Can someone > direct me to some, or outline how it is done? I assume you just compose > your .map file in some way that refers to arc grids. > > I'm a new to MapServer, and am running MapServer with MapScript (and > GDAL) on Win2K. > > Thanks. > > John -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From bartvde at XS4ALL.NL Sat May 14 02:06:31 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 14 May 2005 11:06:31 +0200 Subject: Premature end of script headers: mapserv.exe In-Reply-To: <428532E1.7020605@tesera.com> Message-ID: Does it work when you put the dll's next to the Mapserver CGI? Otherwise try setting the environment variables through SetEnv in httpd.conf. You can also have a look at MS4W: http://www.maptools.org/ms4w/index.phtml Best regards, Bart On Sat, 14 May 2005 01:06:09 +0200, Spencer Cox wrote: > I am trying to add Mapserver to a web server running Apache/2.0.54 > (Win32) PHP/5.0.4. I've tried a few binary builds and they seem to > result in the same internal server error message. I am able to access > mapserv.exe -v with the command line and the version information looks > correct. When I try and access it through a web browser the internal > server error comes up. It writes the following to my Apache error logs: > > [Fri May 13 16:51:19 2005] [error] [client 127.0.0.1] Premature end of > script headers: mapserv.exe > [Fri May 13 16:51:19 2005] [error] [client 127.0.0.1] File does not > exist: D:/Server/Website/favicon.ico > > Anyone have any recommendations on what to do or where to look. Is > there any detailed documentation on configuring Mapserver for Apache? > I've added the dll directory to the system PATH and created a variable > for the Proj. I haven't been able to add the PHP extension > php_mapscript_45.dll (when I try it says the specified module cannot be > found) even though its with the other php extensions, and referred to > correctly in the php.ini file...Maybe this relates to the problem. > > I've pretty much exhausted my limited knowledge trying different > things. If anyone has any suggestions of things to try, or relevant > documentation I thank you in advance! > > Have a good one! > > -- > Spencer Cox - GIS Specialist > Tesera Systems Inc. > Tel: (403) 932-0440 > Mailing Address: Box 1078, Cochrane AB, T4C 1B1 > Street Address: 126A River Avenue, Cochrane AB T4C 2C2 > Web: www.tesera.com > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From bartvde at XS4ALL.NL Sat May 14 02:07:46 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 14 May 2005 11:07:46 +0200 Subject: How do I delist myself form this email list? In-Reply-To: <200505132303.j4DN3PCk010990@rm-rstar.sfu.ca> Message-ID: Just go to the admin page at: http://lists.umn.edu/archives/mapserver-users.html Click on "Join or leave the list" and follow the instructions. Best regards, Bart On Sat, 14 May 2005 01:03:25 +0200, Lyndon Tiu wrote: > There doesn't seem to be instructions at the bottom of the emails. > Thanks for any tips. > > -- > Lyndon Tiu > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From martymoloney at SATDS.NET Sat May 14 04:14:24 2005 From: martymoloney at SATDS.NET (Marty Moloney) Date: Sat, 14 May 2005 06:14:24 -0500 Subject: message from Listserv rated as SPAM by Spamassasin Message-ID: Hi There, just though I'd post this - it may be helpful if someone can modify the email settins for this listserv based on the informaton herein. I was expecting to receive my usual message from the MapServer listserv but didn't because Spamassasin (a very common SPAM utility) detected the message as SPAM. Spamassasin uses rules/points, which it scores based on based on the message content to decide what is/is not SPAM. My host has set Spamassasin so that if a message gets more than 5 "points" then it is not sent through to me. Maybe other people are also missing out on their MapServer messages becuase of this. I have copied the analysis from Spamassis below. Perhaps the simplest thing to do would be to 1. make the emails text/html and not html only. 2. use some lower-case characters in the "from" address. here are the scores... 1.0 FROM_NO_LOWER From address has no lower-case characters 2.2 BIZ_TLD URI: Contains an URL in the BIZ top-level domain 0.5 HTML_60_70 BODY: Message is 60% to 70% HTML 0.0 HTML_MESSAGE BODY: HTML included in message 1.0 HTML_TAG_EXIST_TBODY BODY: HTML has "tbody" tag 1.2 MIME_HTML_ONLY BODY: Message only has text/html MIME parts 0.0 HTML_MIME_NO_HTML_TAG HTML-only message, but there is no HTML Yours truly, Marty From ed at TOPOZONE.COM Sat May 14 05:42:54 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sat, 14 May 2005 08:42:54 -0400 Subject: message from Listserv rated as SPAM by Spamassasin Message-ID: Marty - Or you could ask your ISP to fix their SPAM settings..... Are the scores listed below supposed to be the scores you're getting from a MapServer message? By far the largest "penalty" appears to be saying that the message came from a .BIZ TLD address - and that's not correct for a message from mapserver-users at lists.umn.edu - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Marty Moloney Sent: Saturday, May 14, 2005 7:14 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] message from Listserv rated as SPAM by Spamassasin Hi There, just though I'd post this - it may be helpful if someone can modify the email settins for this listserv based on the informaton herein. I was expecting to receive my usual message from the MapServer listserv but didn't because Spamassasin (a very common SPAM utility) detected the message as SPAM. Spamassasin uses rules/points, which it scores based on based on the message content to decide what is/is not SPAM. My host has set Spamassasin so that if a message gets more than 5 "points" then it is not sent through to me. Maybe other people are also missing out on their MapServer messages becuase of this. I have copied the analysis from Spamassis below. Perhaps the simplest thing to do would be to 1. make the emails text/html and not html only. 2. use some lower-case characters in the "from" address. here are the scores... 1.0 FROM_NO_LOWER From address has no lower-case characters 2.2 BIZ_TLD URI: Contains an URL in the BIZ top-level domain 0.5 HTML_60_70 BODY: Message is 60% to 70% HTML 0.0 HTML_MESSAGE BODY: HTML included in message 1.0 HTML_TAG_EXIST_TBODY BODY: HTML has "tbody" tag 1.2 MIME_HTML_ONLY BODY: Message only has text/html MIME parts 0.0 HTML_MIME_NO_HTML_TAG HTML-only message, but there is no HTML Yours truly, Marty From dhjr at HDDESIGN.COM Sat May 14 10:03:48 2005 From: dhjr at HDDESIGN.COM (David Huttleston Jr) Date: Sat, 14 May 2005 12:03:48 -0500 Subject: Python test failure on Mac In-Reply-To: Message-ID: On Fri, May 13, 2005 at 04:54:35PM -0600, Sean Gillies wrote: > > On May 13, 2005, at 4:11 PM, David Huttleston Jr wrote: > > > >Hello All, > > > >I'm in the process of porting Mapserver and some of it's supporting > >libraries to Mac OS X. The results of which will be released as part > >of the DarwinPort project for others to download and build. > > > >I've bumped into a byte order error on the MapCloningTestCase. I > >haven't seen anything on google or the archives so I thought I'd ask > >the list before I get ugly with this. I know others have used > >MapServer on a Mac, has anyone else seen this before? > > > >% python runalltests.py -v > >check attributes of a cloned class ... ok > >testConstructorNoArg (classtest.ClassObjTestCase) ... ok > >testConstructorWithArg (classtest.ClassObjTestCase) ... ok > >MapCloningTestCase.testClonedLayers: the layers of a cloned map equal > >the original ... ERROR 1: CPLVerifyConfiguration(): byte order set > >wrong. > > Never seen that before, and haven't heard anything from other OS X > (10.3) mapscript users. Looks like a GDAL error. > MapCloningTestCase.testClonedLayers doesn't even render an image, so > I'm not sure where it comes into play. Maybe there's an assert > somewhere? Yes, it looks assertion-like. Here is what I found in the gdal source code, at line 405 of cpl_conv.cpp void CPLVerifyConfiguration() { /* -------------------------------------------------------------------- */ /* Verify data types. */ /* -------------------------------------------------------------------- */ CPLAssert( sizeof(GInt32) == 4 ); CPLAssert( sizeof(GInt16) == 2 ); CPLAssert( sizeof(GByte) == 1 ); if( sizeof(GInt32) != 4 ) CPLError( CE_Fatal, CPLE_AppDefined, "sizeof(GInt32) == %d ... yow!\n", sizeof(GInt32) ); /* -------------------------------------------------------------------- */ /* Verify byte order */ /* -------------------------------------------------------------------- */ GInt32 nTest; nTest = 1; #ifdef CPL_LSB if( ((GByte *) &nTest)[0] != 1 ) #endif #ifdef CPL_MSB if( ((GByte *) &nTest)[3] != 1 ) #endif CPLError( CE_Fatal, CPLE_AppDefined, "CPLVerifyConfiguration(): byte order set wrong.\n" ); } > You forgot to tell us the most important information: which mapserver > and GDAL versions are you building? Oops. Here's the libraries related to gdal and mapserver: mapserver 4.4.1 gdal 1.1.9_1 jpeg 6b_0 libgeotiff 1.2.1_0 libpng 1.2.8_1 proj 4.4.7_0 tiff 3.7.1_0 zlib 1.2.2_1 It seems odd that this hasn't been hit before. So, I'm suspicious now of how gdal was built. :-/ Is there a good way to test gdal? Thanks for the help, Sean. Dave From sgillies at FRII.COM Sat May 14 10:12:41 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Sat, 14 May 2005 11:12:41 -0600 Subject: Python test failure on Mac In-Reply-To: Message-ID: On May 14, 2005, at 11:03 AM, David Huttleston Jr wrote: > On Fri, May 13, 2005 at 04:54:35PM -0600, Sean Gillies wrote: >> >> On May 13, 2005, at 4:11 PM, David Huttleston Jr wrote: >>> >>> Hello All, >>> >>> I'm in the process of porting Mapserver and some of it's supporting >>> libraries to Mac OS X. The results of which will be released as part >>> of the DarwinPort project for others to download and build. >>> >>> I've bumped into a byte order error on the MapCloningTestCase. I >>> haven't seen anything on google or the archives so I thought I'd ask >>> the list before I get ugly with this. I know others have used >>> MapServer on a Mac, has anyone else seen this before? >>> >>> % python runalltests.py -v >>> check attributes of a cloned class ... ok >>> testConstructorNoArg (classtest.ClassObjTestCase) ... ok >>> testConstructorWithArg (classtest.ClassObjTestCase) ... ok >>> MapCloningTestCase.testClonedLayers: the layers of a cloned map equal >>> the original ... ERROR 1: CPLVerifyConfiguration(): byte order set >>> wrong. >> >> Never seen that before, and haven't heard anything from other OS X >> (10.3) mapscript users. Looks like a GDAL error. >> MapCloningTestCase.testClonedLayers doesn't even render an image, so >> I'm not sure where it comes into play. Maybe there's an assert >> somewhere? > > Yes, it looks assertion-like. Here is what I found in the gdal source > code, at line 405 of cpl_conv.cpp > > void CPLVerifyConfiguration() > { > /* > -------------------------------------------------------------------- > */ > /* Verify data types. > */ > /* > -------------------------------------------------------------------- > */ > CPLAssert( sizeof(GInt32) == 4 ); > CPLAssert( sizeof(GInt16) == 2 ); > CPLAssert( sizeof(GByte) == 1 ); > > if( sizeof(GInt32) != 4 ) > CPLError( CE_Fatal, CPLE_AppDefined, > "sizeof(GInt32) == %d ... yow!\n", > sizeof(GInt32) ); > > /* > -------------------------------------------------------------------- > */ > /* Verify byte order > */ > /* > -------------------------------------------------------------------- > */ > GInt32 nTest; > > nTest = 1; > > #ifdef CPL_LSB > if( ((GByte *) &nTest)[0] != 1 ) > #endif > #ifdef CPL_MSB > if( ((GByte *) &nTest)[3] != 1 ) > #endif > CPLError( CE_Fatal, CPLE_AppDefined, > "CPLVerifyConfiguration(): byte order set wrong.\n" > ); > } > >> You forgot to tell us the most important information: which mapserver >> and GDAL versions are you building? > > Oops. Here's the libraries related to gdal and mapserver: > > mapserver 4.4.1 > gdal 1.1.9_1 > jpeg 6b_0 > libgeotiff 1.2.1_0 > libpng 1.2.8_1 > proj 4.4.7_0 > tiff 3.7.1_0 > zlib 1.2.2_1 > > It seems odd that this hasn't been hit before. So, I'm suspicious now > of how gdal was built. :-/ Is there a good way to test gdal? > > Thanks for the help, Sean. > > Dave Dave, Norman Vine has confirmed that this is a GDAL bug that was only very recently fixed. The fix might be present in the latest GDAL release. Check the change log to find out for sure. At any rate, you should really be using a newer GDAL. I'd also recommend MapServer from the CVS head of the 4.4 branch. There have been some important fixes since 4.4.1. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From dhjr at HDDESIGN.COM Sat May 14 10:16:16 2005 From: dhjr at HDDESIGN.COM (David Huttleston Jr) Date: Sat, 14 May 2005 12:16:16 -0500 Subject: Python test failure on Mac In-Reply-To: Message-ID: On Sat, May 14, 2005 at 11:12:41AM -0600, Sean Gillies wrote: > On May 14, 2005, at 11:03 AM, David Huttleston Jr wrote: > > >On Fri, May 13, 2005 at 04:54:35PM -0600, Sean Gillies wrote: > >> > >>On May 13, 2005, at 4:11 PM, David Huttleston Jr wrote: > >>> > >>>Hello All, > >>> > >>>I'm in the process of porting Mapserver and some of it's supporting > >>>libraries to Mac OS X. The results of which will be released as part > >>>of the DarwinPort project for others to download and build. > >>> > >>>I've bumped into a byte order error on the MapCloningTestCase. I > >>>haven't seen anything on google or the archives so I thought I'd ask > >>>the list before I get ugly with this. I know others have used > >>>MapServer on a Mac, has anyone else seen this before? > >>> > >>>% python runalltests.py -v > >>>check attributes of a cloned class ... ok > >>>testConstructorNoArg (classtest.ClassObjTestCase) ... ok > >>>testConstructorWithArg (classtest.ClassObjTestCase) ... ok > >>>MapCloningTestCase.testClonedLayers: the layers of a cloned map equal > >>>the original ... ERROR 1: CPLVerifyConfiguration(): byte order set > >>>wrong. > >> > >>Never seen that before, and haven't heard anything from other OS X > >>(10.3) mapscript users. Looks like a GDAL error. > >>MapCloningTestCase.testClonedLayers doesn't even render an image, so > >>I'm not sure where it comes into play. Maybe there's an assert > >>somewhere? > > > >Yes, it looks assertion-like. Here is what I found in the gdal source > >code, at line 405 of cpl_conv.cpp > > > >void CPLVerifyConfiguration() > >{ > >/* > >-------------------------------------------------------------------- > >*/ > >/* Verify data types. > > */ > >/* > >-------------------------------------------------------------------- > >*/ > > CPLAssert( sizeof(GInt32) == 4 ); > > CPLAssert( sizeof(GInt16) == 2 ); > > CPLAssert( sizeof(GByte) == 1 ); > > > > if( sizeof(GInt32) != 4 ) > > CPLError( CE_Fatal, CPLE_AppDefined, > > "sizeof(GInt32) == %d ... yow!\n", > > sizeof(GInt32) ); > > > >/* > >-------------------------------------------------------------------- > >*/ > >/* Verify byte order > > */ > >/* > >-------------------------------------------------------------------- > >*/ > > GInt32 nTest; > > > > nTest = 1; > > > >#ifdef CPL_LSB > > if( ((GByte *) &nTest)[0] != 1 ) > >#endif > >#ifdef CPL_MSB > > if( ((GByte *) &nTest)[3] != 1 ) > >#endif > > CPLError( CE_Fatal, CPLE_AppDefined, > > "CPLVerifyConfiguration(): byte order set wrong.\n" > >); > >} > > > >>You forgot to tell us the most important information: which mapserver > >>and GDAL versions are you building? > > > >Oops. Here's the libraries related to gdal and mapserver: > > > > mapserver 4.4.1 > > gdal 1.1.9_1 > > jpeg 6b_0 > > libgeotiff 1.2.1_0 > > libpng 1.2.8_1 > > proj 4.4.7_0 > > tiff 3.7.1_0 > > zlib 1.2.2_1 > > > >It seems odd that this hasn't been hit before. So, I'm suspicious now > >of how gdal was built. :-/ Is there a good way to test gdal? > > Norman Vine has confirmed that this is a GDAL bug that was only very > recently fixed. The fix might be present in the latest GDAL release. > Check the change log to find out for sure. At any rate, you should > really be using a newer GDAL. I'd also recommend MapServer from the > CVS head of the 4.4 branch. There have been some important fixes since > 4.4.1. Excellent, I will try the newer code for both gdal and mapserver. Thank you very much, Sean. For the info and the blinding speed of your response. :-) Dave From abe.gillespie at GMAIL.COM Sat May 14 13:15:43 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Sat, 14 May 2005 16:15:43 -0400 Subject: How do I delist myself form this email list? In-Reply-To: Message-ID: You forgot this step: Pray it works. ;) On 5/14/05, Bart van den Eijnden wrote: > Just go to the admin page at: > > http://lists.umn.edu/archives/mapserver-users.html > > Click on "Join or leave the list" and follow the instructions. > > Best regards, > Bart > > On Sat, 14 May 2005 01:03:25 +0200, Lyndon Tiu wrote: > > > There doesn't seem to be instructions at the bottom of the emails. > > Thanks for any tips. > > > > -- > > Lyndon Tiu > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > From vortex25 at GMX.DE Sun May 15 13:54:07 2005 From: vortex25 at GMX.DE (Vortex) Date: Sun, 15 May 2005 22:54:07 +0200 Subject: PHP/Mapscript and gdal, segfault? Message-ID: Hello! I'm using PHP/Mapscript for a while. It works perfectly until now although php is running as an apache dso. I know that this is discouraged, but a few people already mentioned that it works. Now i have discovered that all input formats using the gdal library (or at least geotiff) causes a segfault. Can anybody confirm this? It would be a pitty if i switch to php running as cgi although this problem could be fixed easy and maybe isn't related to the php dso at all. thank you! Klaus -- ====================================================== " WWW: http://db0fhn.efi.fh-nuernberg.de/~dg1nav?vo " LOCAL: klaus at castle.kwsnet " EMAIL: vortex25 at gmx.de " AX.25: dg1nav at db0fhn.#bay.deu.eu From gmanepal at GMAIL.COM Sun May 15 14:05:06 2005 From: gmanepal at GMAIL.COM (Giridhar Manepalli) Date: Sun, 15 May 2005 17:05:06 -0400 Subject: Changing color of a layer php/mapscript Message-ID: Hello Everyone, In version 4.4 of Mapserver, can anyone tell me how to change the color of a layer using php/mapscript? There is no variable pertaining to 'color' in the php class 'classObj'. Any help in this regard is invaluable to me. Thanks, Giridhar From rhysi at OMNILINK.COM.AU Sun May 15 19:30:47 2005 From: rhysi at OMNILINK.COM.AU (Rhys Ickeringill) Date: Mon, 16 May 2005 12:30:47 +1000 Subject: queryByAttributes issue Message-ID: Hi list, I'm attempting to do a pretty basic attribute search on a layer and am getting MapServer crashes. I'll take a guess that I'm giving the queryByAttributes method invalid input, but the MapServer process dies silently, giving me no hint of what I could be doing wrong. Hence I would greatly appreciate some feedback from more experienced MapServer users as to what (if any) mistakes I've made. Data config: ~~~~~~~~~ Postgres 7.4.7 PostGIS 1.0.0 PostGIS table 'parks' : CREATE TABLE parks ( ogc_fid integer NOT NULL, wkb_geometry geometry, name character(50) ) System Config: ~~~~~~~~~~~ Linux (Slackware 10.1) Apache 1.3.33 PHP 4.3.10 (running as Apache DSO) MapServer 4.4.1 (runninng as PHP module) My map file looks like this: MAP "Map" # # Other layer definitions & map properties # LAYER NAME "Parks" TYPE polygon CONNECTIONTYPE postgis CONNECTION "dbname=mapdata" DATA "wkb_geometry from parks using unique ogc_fid" TEMPLATE "stub" STATUS ON PROJECTION "prog=longlat" "ellips=GRS80" END CLASS NAME "Parks" COLOR 0 160 0 END END # # Other layer definitions... # END The relevant code looks like this: ... if( array_key_exists('FID', $_REQUEST ) ){ $layer = $map->getLayerByName( 'Parks' ); // always succeeds $fid = $_REQUEST['FID']; $qryResult = $layer->queryByAttributes( 'ogc_fid', $fid , MS_SINGLE ) // PHP processing dies here if( $qryResult === MS_SUCCESS ){ // do stuff to highlight result and alter map extent (yet to be tested - never gets that far) ... I know it is the queryByAttributes() call which is causing the problem - if I comment out the queryByAttributes() call, I get a pefectly drawn map with the default [mapfile defined] extents. The only information I have as to what is going wrong is found in the Apache error log: *** glibc detected *** double free or corruption (!prev): 0x[some memory address] *** [some timstamp] [notice] child pid 1234 exit signal Aborted (6) Am I doing something wrong, or shall I take this over to MAPSERVER-DEV ? Thanks for your thoughts Rhys From bartvde at XS4ALL.NL Mon May 16 02:23:33 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 16 May 2005 11:23:33 +0200 Subject: Changing color of a layer php/mapscript In-Reply-To: <6d675eda05051514058b274e4@mail.gmail.com> Message-ID: Hi, you need to set the Color of the StyleObj. A StyleObj is associated with a ClassObj. // create a new style obj of have one ready in your MAP file $this->oStyle = ms_newStyleObj( $this->oClass ); // set the color of the style object $this->oStyle->color->setRGB(0,0,0); Best regards, Bart On Sun, 15 May 2005 23:05:06 +0200, Giridhar Manepalli wrote: > Hello Everyone, > In version 4.4 of Mapserver, > can anyone tell me how to change the color of a layer using > php/mapscript? There is no variable pertaining to 'color' in the php > class 'classObj'. Any help in this regard is invaluable to me. > > Thanks, > Giridhar > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From lfilak at MEDINACO.ORG Mon May 16 06:00:51 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 16 May 2005 09:00:51 -0400 Subject: message from Listserv rated as SPAM by Spamassasin Message-ID: The following message was sent by Marty Moloney on Sat, 14 May 2005 06:14:24 -0500. > Hi There, > > just though I'd post this - it may be helpful if someone can modify the > email settins for this listserv based on the informaton herein. > > I was expecting to receive my usual message from the MapServer listserv but > didn't because Spamassasin (a very common SPAM utility) detected the > message as SPAM. > > Spamassasin uses rules/points, which it scores based on based on the > message content to decide what is/is not SPAM. My host has set Spamassasin > so that if a message gets more than 5 "points" then it is not sent through > to me. Maybe other people are also missing out on their MapServer messages > becuase of this. > > I have copied the analysis from Spamassis below. Perhaps the simplest > thing to do would be to > > 1. make the emails text/html and not html only. > 2. use some lower-case characters in the "from" address. > > here are the scores... > > 1.0 FROM_NO_LOWER From address has no lower-case characters > 2.2 BIZ_TLD URI: Contains an URL in the BIZ top-level domain > 0.5 HTML_60_70 BODY: Message is 60% to 70% HTML > 0.0 HTML_MESSAGE BODY: HTML included in message > 1.0 HTML_TAG_EXIST_TBODY BODY: HTML has "tbody" tag > 1.2 MIME_HTML_ONLY BODY: Message only has text/html MIME parts > 0.0 HTML_MIME_NO_HTML_TAG HTML-only message, but there is no HTML > > Yours truly, Marty, Just whitelist MAPSERVER-USERS at LISTS.UMN.EDU (possibly added to /etc/amavisd.conf under "whitelist_sender" or "Email Sender Block/Accept" on a Barracuda). HTH Lowell From vortex25 at GMX.DE Mon May 16 06:05:18 2005 From: vortex25 at GMX.DE (Vortex) Date: Mon, 16 May 2005 15:05:18 +0200 Subject: PHP/Mapscript and gdal, segfault, solved! In-Reply-To: <20050515225407.1a2c26bf.vortex25@gmx.de> Message-ID: On Sun, 15 May 2005 22:54:07 +0200 Vortex wrote: > I'm using PHP/Mapscript for a while. It works perfectly > until now although php is running as an apache dso. > I know that this is discouraged, but a few people > already mentioned that it works. > > Now i have discovered that all input formats using > the gdal library (or at least geotiff) causes a segfault. The segmentation fault was apparently caused by a conflict between the libtiff linked by libphp5.so and php_mapscript.so/libgdal. After recompiling php without tiff support everything works well. -- ====================================================== " WWW: http://db0fhn.efi.fh-nuernberg.de/~dg1nav?vo " LOCAL: klaus at castle.kwsnet " EMAIL: vortex25 at gmx.de " AX.25: dg1nav at db0fhn.#bay.deu.eu From neuchi at TCI-COM.BIZ Mon May 16 06:19:33 2005 From: neuchi at TCI-COM.BIZ (Akio Neuchi) Date: Mon, 16 May 2005 22:19:33 +0900 Subject: About ShapeTree and Raster TileIndex In-Reply-To: <931f8ea90505130617484bcee8@mail.gmail.com> Message-ID: Frank, I see what you mean. The volume and size do matter. By the way, instead of Gif, how would be Tiff or GeoTiff? People told me Tiffs are bigger and less efficient to render map images. And what is good using GeoTiff instead of just Tiff? Best regards, Akio -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] Sent: Friday, May 13, 2005 10:17 PM To: Akio Neuchi Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] About ShapeTree and Raster TileIndex On 5/13/05, Akio Neuchi wrote: > Hello to all, > > I just made a *.qix file from *.shp file for Raster TileIndex images -- > around 800 gif images, > and tested with and without shape tree. The result was there is no > difference in processing speed. Akio, Well, first, scanning 800 polygon records isn't going to take a significant amount of time anyways, so adding a spatial index to the tile index isn't likely to gain you much. If you rendering requests are slow it is likely due to factors other than scanning the tileindex itself. I would add that if map views end up intersecting multiple gif images (or if the gif images are large) performance will suck. Gif images are effectively "stream compressed" so to pull out an overview, or a small section of a gif you essentially end up having to decompress all or most of the gif file. This makes gif a pretty poor format for "geospatial databases". > In addition, I have around 100 of Vector TileIndex shape directories, > and If ShapeTree really works, I am planning to build *.qix for each Vector > shapes. Spatial indexes on your vector tiles will make a substantial diffference if your tiles contain alot of features, but typical renders only require a small number of the features from one or a few tiles. If the tiles are quite small and your map views fairly broad, such that typically most or all of the features from a tile are rendered, then spatial indices won't help much. You really need to think about what are typical requests for your use pattern, and what would be making them slow before you can plan an effective optimization strategy. Best regards, -- ---------------------------------------+------------------------------------ -- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From neuchi at TCI-COM.BIZ Mon May 16 06:19:32 2005 From: neuchi at TCI-COM.BIZ (Akio Neuchi) Date: Mon, 16 May 2005 22:19:32 +0900 Subject: About ShapeTree and Raster TileIndex In-Reply-To: Message-ID: Hi Bart, to test whether the map file looks .qix or directly to .shp, I put the extention. TILEINDEX "MSRAS_12000.qix" # TILEINDEX "MSRAS_12000.shp" Do you think without the extention, the system see .qix file first? Best regards, Akio -----Original Message----- From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] Sent: Friday, May 13, 2005 7:45 PM To: MAPSERVER-USERS at LISTS.UMN.EDU; neuchi at TCI-COM.BIZ Subject: Re: [UMN_MAPSERVER-USERS] About ShapeTree and Raster TileIndex Hi, can you try (without the .shp extension): TILEINDEX "MSRAS_12000" Btw, the quadtree index only makes a difference if you zoom in, not when you view the whole layer. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Akio Neuchi 05/13/05 12:03pm >>> Hello to all, I just made a *.qix file from *.shp file for Raster TileIndex images -- around 800 gif images, and tested with and without shape tree. The result was there is no difference in processing speed. The procedure was, gdaltindex MSRAS_12000.shp MSRAS_12000/*.gif, shptree MSRAS_12000.shp, and I got MSRAS_12000.qix. (Under MSRAS_12000 directory there are 800 gif and wld files.) I wonder if I am following the right procedure, and if so, why there is no difference on the processing. In addition, I have around 100 of Vector TileIndex shape directories, and If ShapeTree really works, I am planning to build *.qix for each Vector shapes. My OUTPUTFORMAT amd Raster layer are like these: OUTPUTFORMAT NAME gif MIMETYPE "image/gif" DRIVER "GD/GIF" EXTENSION "gif" IMAGEMODE RGB # IMAGEMODE PC256 TRANSPARENT FALSE FORMATOPTION "INTERLACE=OFF" END ### RASTER Layer LAYER NAME "MSRAS_12000" GROUP "B_RASTER" TILEINDEX "MSRAS_12000.qix" # TILEINDEX "MSRAS_12000.shp" TILEITEM "Location" TYPE RASTER # STATUS ON STATUS DEFAULT MINSCALE 50 MAXSCALE 5000000 PROJECTION "proj=latlong" # "init=epsg:26915" END END Thank you for your suggestions. Akio From bartvde at XS4ALL.NL Mon May 16 06:40:20 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 16 May 2005 15:40:20 +0200 Subject: About ShapeTree and Raster TileIndex In-Reply-To: Message-ID: You should not use the qix entension directly in the TILEINDEX. Mapserver will handle that part for you behind the scenes. Use TILEINDEX "MSRAS_12000.shp" Or: TILEINDEX "MSRAS_12000" My experience is that Mapserver only finds the qix file (and uses it) in the latter case. Best regards, Bart On Mon, 16 May 2005 15:19:32 +0200, Akio Neuchi wrote: > Hi Bart, > > to test whether the map file looks .qix or directly to .shp, > I put the extention. > TILEINDEX "MSRAS_12000.qix" > # TILEINDEX "MSRAS_12000.shp" > Do you think without the extention, the system see .qix file first? > > Best regards, > Akio > > -----Original Message----- > From: Bart van den Eijnden [mailto:BEN at Syncera-ITSolutions.NL] > Sent: Friday, May 13, 2005 7:45 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU; neuchi at TCI-COM.BIZ > Subject: Re: [UMN_MAPSERVER-USERS] About ShapeTree and Raster TileIndex > > > Hi, > > can you try (without the .shp extension): > > TILEINDEX "MSRAS_12000" > > Btw, the quadtree index only makes a difference if you zoom in, not when > you > view the whole layer. > > Best regards, > Bart > > Bart van den Eijnden > Syncera-ITSolutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > >>>> Akio Neuchi 05/13/05 12:03pm >>> > Hello to all, > > I just made a *.qix file from *.shp file for Raster TileIndex images -- > around 800 gif images, > and tested with and without shape tree. The result was there is no > difference in processing speed. > > The procedure was, > gdaltindex MSRAS_12000.shp MSRAS_12000/*.gif, > shptree MSRAS_12000.shp, > and I got MSRAS_12000.qix. > (Under MSRAS_12000 directory there are 800 gif and wld files.) > > I wonder if I am following the right procedure, and if so, > why there is no difference on the processing. > > In addition, I have around 100 of Vector TileIndex shape directories, > and If ShapeTree really works, I am planning to build *.qix for each > Vector > shapes. > > My OUTPUTFORMAT amd Raster layer are like these: > > OUTPUTFORMAT > NAME gif > MIMETYPE "image/gif" > DRIVER "GD/GIF" > EXTENSION "gif" > IMAGEMODE RGB > # IMAGEMODE PC256 > TRANSPARENT FALSE > FORMATOPTION "INTERLACE=OFF" > END > > ### RASTER Layer > LAYER > NAME "MSRAS_12000" > GROUP "B_RASTER" > TILEINDEX "MSRAS_12000.qix" > # TILEINDEX "MSRAS_12000.shp" > TILEITEM "Location" > TYPE RASTER > # STATUS ON > STATUS DEFAULT > MINSCALE 50 > MAXSCALE 5000000 > PROJECTION > "proj=latlong" > # "init=epsg:26915" > END > END > > Thank you for your suggestions. > Akio > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From fwarmerdam at GMAIL.COM Mon May 16 07:16:20 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 16 May 2005 10:16:20 -0400 Subject: PHP/Mapscript and gdal, segfault? In-Reply-To: <20050515225407.1a2c26bf.vortex25@gmx.de> Message-ID: On 5/15/05, Vortex wrote: > Hello! > > I'm using PHP/Mapscript for a while. It works perfectly > until now although php is running as an apache dso. > I know that this is discouraged, but a few people > already mentioned that it works. > > Now i have discovered that all input formats using > the gdal library (or at least geotiff) causes a segfault. > Can anybody confirm this? > > It would be a pitty if i switch to php running as cgi > although this problem could be fixed easy and maybe > isn't related to the php dso at all. Klaus, I am not aware of any specific incompatibility between GDAL and use of PHP MapScript as a dso. You might want to try with non-GeoTIFF files that still go through GDAL and/or try with the cgi version to help determine the boundary of the problem. I *suspect* there is a conflicting libtiff in use which can cause all sorts of pain. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From cdaily at GMAIL.COM Mon May 16 07:17:14 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Mon, 16 May 2005 09:17:14 -0500 Subject: DHTML reference image with out position:absolute In-Reply-To: <631c85c105051316441a9016eb@mail.gmail.com> Message-ID: So, for example, you just need to find out the exact (x, y) coordinates of an element on your page? You could do it using javascript: mapElem = document.getElementById("yourMapId"); mapMinX = findPosX(mapElem); mapMinY = findPosY(mapElem); // find how many pixels an element is from the left of the screen // by recursively traversing up the tree and summing the offsets function findPosX(elem) { var left = 0; if (elem.offsetParent) { while (elem.offsetParent) { left += elem.offsetLeft elem = elem.offsetParent; } } else if (elem.x) { left += elem.x; } return left; } // find how many pixels an element is from the top of the screen // by recursively traversing up the tree and summing the offsets function findPosY(elem) { var top = 0; if (elem.offsetParent) { while (elem.offsetParent) { top += elem.offsetTop elem = elem.offsetParent; } } else if (elem.y) { top += elem.y; } return top; } Camden Daily Prudential Preferred Properties http://www.prupref.com From phill.watson at SCISYS.CO.UK Mon May 16 07:18:11 2005 From: phill.watson at SCISYS.CO.UK (Phill W) Date: Mon, 16 May 2005 09:18:11 -0500 Subject: bug in msquery.c msQueryByShape() Message-ID: Hi, First of all. Thanks to all for the effort put into MapServer. I've been attempting to get "imgshape" nquery working with PostGIS tables and come across a bug I thought I would share with whoever's listening. I wasn't sure where to post this, so here it is. The bug definitely affects postGIS layers, but may affect others. Within the function msQueryByShape() a local shapeObj is used to iterate the results of the search. This should be initialised (cleared) before the loop. The postGis driver calls msAddLine during its processing of msLayerNextShape(), and this attempts to free the reference pointed to be shape->line. The snippet of msQueryByShape() to change below: lp->resultcache = (resultCacheObj *)malloc(sizeof(resultCacheObj)); // allocate and initialize the result cache lp->resultcache->results = NULL; lp->resultcache->numresults = lp->resultcache->cachesize = 0; lp->resultcache->bounds.minx = lp->resultcache->bounds.miny = lp- >resultcache->bounds.maxx = lp->resultcache->bounds.maxy = -1; msInitShape(&shape); // initialise shape object while((status = msLayerNextShape(lp, &shape)) == MS_SUCCESS) { // step through the shapes shape.classindex = msShapeGetClass(lp, &shape, map->scale); Thanks again, Phill From bartvde at XS4ALL.NL Mon May 16 07:33:02 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 16 May 2005 16:33:02 +0200 Subject: bug in msquery.c msQueryByShape() In-Reply-To: Message-ID: Hi Phil, this has already been fixed recently by Assefa. See: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1335 Best regards, Bart On Mon, 16 May 2005 16:18:11 +0200, Phill W wrote: > Hi, > > First of all. Thanks to all for the effort put into MapServer. > > I've been attempting to get "imgshape" nquery working with PostGIS tables > and come across a bug I thought I would share with whoever's listening. I > wasn't sure where to post this, so here it is. > > The bug definitely affects postGIS layers, but may affect others. > > Within the function msQueryByShape() a local shapeObj is used to iterate > the results of the search. This should be initialised (cleared) before > the > loop. The postGis driver calls msAddLine during its processing of > msLayerNextShape(), and this attempts to free the reference pointed to be > shape->line. > > The snippet of msQueryByShape() to change below: > > lp->resultcache = (resultCacheObj *)malloc(sizeof(resultCacheObj)); // > allocate and initialize the result cache > lp->resultcache->results = NULL; > lp->resultcache->numresults = lp->resultcache->cachesize = 0; > lp->resultcache->bounds.minx = lp->resultcache->bounds.miny = lp- >> resultcache->bounds.maxx = lp->resultcache->bounds.maxy = -1; > > msInitShape(&shape); // initialise shape object > while((status = msLayerNextShape(lp, &shape)) == MS_SUCCESS) { // step > through the shapes > shape.classindex = msShapeGetClass(lp, &shape, map->scale); > > > Thanks again, > Phill > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From fwarmerdam at GMAIL.COM Mon May 16 07:59:21 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 16 May 2005 10:59:21 -0400 Subject: About ShapeTree and Raster TileIndex In-Reply-To: Message-ID: On 5/16/05, Akio Neuchi wrote: > Frank, > > I see what you mean. The volume and size do matter. > By the way, instead of Gif, how would be Tiff or GeoTiff? > People told me Tiffs are bigger and less efficient to render map images. > And what is good using GeoTiff instead of just Tiff? Akio, If space is significant, you might consider creating a tiled and deflate compressed GeoTIFF file. The tiling ensures that only local data needs to be decompressed to satisfy requests. The deflate compression provides similar (or better) compression than you would normally get with gif. However, there have been some problems with building overviews on compressed TIFF files lately, so that might not be such a great idea. GeoTIFFs are TIFFs with coordinate system and georeferencing information in them. For your purposes TIFF + world file would likely be fine. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From d.lowe at RL.AC.UK Mon May 16 08:07:22 2005 From: d.lowe at RL.AC.UK (Dominic Lowe) Date: Mon, 16 May 2005 16:07:22 +0100 Subject: Colour Raster Message-ID: Hi, I've got a single band raster file that contains no colour information (netCDF). By default Mapserver WMS displays it as a greyscale image. Is there any quick way to make it display in an arbitrary "colourscale". (Like a chloropeth map.) I don't want to have to specify colors for specific pixel values or ranges. Thanks, Dominic From phill.watson at SCISYS.CO.UK Mon May 16 08:23:19 2005 From: phill.watson at SCISYS.CO.UK (Phill W) Date: Mon, 16 May 2005 10:23:19 -0500 Subject: translating imgshape to mapshape Message-ID: Hi, Could someone please help? Having submitted an "nquery" using an "imgshape" in screen co-ordinates, I need to retrieve the same shape in map co-ordinates. Do you know how this could be done using the CGI / template interface. Regards, Phill From rick at INNIS.CA Mon May 16 09:01:54 2005 From: rick at INNIS.CA (Rick Innis) Date: Mon, 16 May 2005 12:01:54 -0400 Subject: Image transparency via SWIG API Message-ID: I'm writing an application which loads a point layer from a Postgis table and displays little flag icons at the relevant points. I haven't been able to work out how to get MapServer to respect the transparency of the images. The flags appear surrounded by a white square. If I load the same layer via a mapfile, everything works fine - the images are displayed without the white square. Would appreciate any insight anyone has on what might be going on. FWIW, I'm working with MapServer 4.4.1, Postgres 8.0.1, PostGIS RC6, and the Java API bindings. Thanks, --Rick. From williampaul28 at YAHOO.COM Mon May 16 09:17:24 2005 From: williampaul28 at YAHOO.COM (william paul) Date: Mon, 16 May 2005 09:17:24 -0700 Subject: config.js Message-ID: Hello Does any one has the source for config.js from Mapserver Test Suite (http://maps.dnr.state.mn.us/mapserver_demos/tests40/) or something similar for Item/Value query? Thank you in advance William --------------------------------- Do you Yahoo!? Yahoo! Mail - You care about security. So do we. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Mon May 16 09:19:53 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 16 May 2005 18:19:53 +0200 Subject: config.js In-Reply-To: <20050516161724.40022.qmail@web51803.mail.yahoo.com> Message-ID: Hi William, the source is right there: http://maps.dnr.state.mn.us/mapserver_demos/tests40/config.js var mapserv = '/cgi-bin/mapserv36'; var root = '/usr/local/www/docs/mapserver_demos/tests36'; var htmlroot = '/mapserver_demos/tests36'; var imagepath = '/usr/local/www/docs/tmp/'; var imageurl = '/tmp/'; Best regards, Bart On Mon, 16 May 2005 18:17:24 +0200, william paul wrote: > Hello > Does any one has the source for config.js from Mapserver Test Suite > (http://maps.dnr.state.mn.us/mapserver_demos/tests40/) or something > similar for Item/Value query? > > Thank you in advance > > > William > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail - You care about security. So do we. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From bernardosk at GMAIL.COM Mon May 16 09:22:34 2005 From: bernardosk at GMAIL.COM (Bernardo Rocha) Date: Mon, 16 May 2005 13:22:34 -0300 Subject: PHP/MapScript - Reference Message-ID: Someone could help me drawing a reference map? I simple tried it: $ref = $map->drawReferenceMap(); $image = $ref->saveWebImage(MS_PNG,1,1,0); and it doesn?t works! What shoul I do? Any examples? Thanks! Bernardo M. Rocha PLANGEO - Planejamento e Geotecnologia Ltda. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Mon May 16 09:43:58 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 16 May 2005 12:43:58 -0400 Subject: Image transparency via SWIG API In-Reply-To: Message-ID: On 5/16/05, Rick Innis wrote: > I'm writing an application which loads a point layer from a Postgis > table and displays little flag icons at the relevant points. > > I haven't been able to work out how to get MapServer to respect the > transparency of the images. The flags appear surrounded by a white > square. > > If I load the same layer via a mapfile, everything works fine - the > images are displayed without the white square. > > Would appreciate any insight anyone has on what might be going on. > > FWIW, I'm working with MapServer 4.4.1, Postgres 8.0.1, PostGIS RC6, > and the Java API bindings. Rick, I *think* Sean made some improvements with regard to transparency and raster symbols in 4.4.2. You might want to upgrade and try again. If the flags are actually raster layers then that would bounce the issue into my court. Best regards, ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From David.Robnett at NOAA.GOV Mon May 16 09:43:45 2005 From: David.Robnett at NOAA.GOV (David Robnett) Date: Mon, 16 May 2005 10:43:45 -0600 Subject: Label Coloring Message-ID: Hi list, I am trying to map data from a csv file using php mapscript. I would like be able to color the label text based on values within the csv file. I have previously used expressions in the class object and a classitem to do this with spatial data and was hoping there is a similar method for the csv file. I get the data plotted by creating line objects and adding them as a feature to the layer but coloring them according to different values has me stumped. My only thought so far has been to create different layers with each one having a single class and label object with the color set to my specs. This seems like it is very inefficient and non-extensible way to do this. Any hints or pointers in the right direction would be appreciated. Thanks, Dave From steve.lime at DNR.STATE.MN.US Mon May 16 10:14:18 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 16 May 2005 12:14:18 -0500 Subject: double quotes in expression Message-ID: Hi Bill: No, there's no escaping there at the moment. Never got around to extending the regular expressions in maplexer.l to handle them. Just not been a priority. That's probably because I'm not aware of a single instance where that was a limitation. Doesn't mean that it can never happen, as your example shows. Steve >>> Bill Binko 5/12/2005 5:48:28 PM >>> On Thu, 12 May 2005, Steve Lime wrote: > You could: > > 1) Write your expression like so using single quotes: > > EXPRESSION 'Symbol (12, 1, "ESRI IGL Font20", 1)' > > 2) Perhaps consider looking for sub-strings with regular expressions? Depends on how the values differ though from symbol to symbol (that is is the 12, the 1, the "ESRI IGL Font20" or the 1 really important): > > EXPRESSION /ESRI IGL FONT 20/ > > Steve Steve, Is there an escape character in Mapserver strings? For example, does \" mean a literal quotation mark? I can imagine times where the switch to single quotes won't help, for example, someone with polycap tablenames in a PostGIS connection (note the other running thread on this and the postgis-users board). DATA "geom from (SELECT geom, oid from \"PolyCapTableName\" where feature = 'FooBar') as foo using unique oid using SRID 123" Since 'FooBar' needs the single quotes for PostGIS, using single quotes for the whole thing won't work. Looking at the code, it looks like something could be done in maplexer.c or mapfile.c to perform that escape on reading the strings. It might help solve alot of these issues. Just a thought Bill From ctimoteo at GMAIL.COM Mon May 16 10:44:08 2005 From: ctimoteo at GMAIL.COM (=?ISO-8859-1?Q?Carlos_Tim=F3teo?=) Date: Mon, 16 May 2005 18:44:08 +0100 Subject: 3D LINE STRING / LINE STRING shapfiles Message-ID: i am working with a couple of ESRI shapefiles. the geometry type of all the files is 3D LINE STRING SHAPE and LINE STRING (tool ogrinfo) i search in the mailing list and i not found any question about this. mapserver can handle with this types ?? i only see support for LINE,POINT,POLYGON etc in the case of 3D LINE STRING, maplab preview doesn't show anything, in the case of LINE STRING it shows the (road's) lines but query doesn't work at all. is this a mapserver support fail or a maplab error ?? From bartvde at XS4ALL.NL Mon May 16 11:01:38 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 16 May 2005 20:01:38 +0200 Subject: 3D LINE STRING / LINE STRING shapfiles In-Reply-To: Message-ID: Hi, Support was added in version 4.4 if I remember correctly. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=869 It was already possible to use them through OGR before that. Just use TYPE LINE in your MAP file. Best regards, Bart On Mon, 16 May 2005 19:44:08 +0200, Carlos Tim?teo wrote: > i am working with a couple of ESRI shapefiles. > > the geometry type of all the files is 3D LINE STRING SHAPE and LINE > STRING (tool ogrinfo) > > i search in the mailing list and i not found any question about this. > > mapserver can handle with this types ?? > > i only see support for LINE,POINT,POLYGON etc > > in the case of 3D LINE STRING, maplab preview doesn't show anything, > > in the case of LINE STRING it shows the (road's) lines but query > doesn't work at all. > > is this a mapserver support fail or a maplab error ?? > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From ryant at CS.UTAH.EDU Mon May 16 11:45:30 2005 From: ryant at CS.UTAH.EDU (Ryan D Taylor) Date: Mon, 16 May 2005 12:45:30 -0600 Subject: map files for tiger line data Message-ID: Hi, Does anybody have any .MAP files that they've used for displaying tiger line data that they would like to share? Ideally, I'd like to have something that looks like the maps that mapquest generates or like Stephen Woodbridge's Tiger/Line Data Browser at: http://imaptools.com/tiger/ Another thing that I'm wondering is: will I need any data in addition to the tiger data to be able to generate a nice-looking map like Stephen's? Thanks, Ryan T. From woodbri at SWOODBRIDGE.COM Mon May 16 12:13:35 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 16 May 2005 15:13:35 -0400 Subject: map files for tiger line data In-Reply-To: Message-ID: Ryan, Thank you for the comments on my maps. You might be interested in looking at http://imaptools.com/~woodbri/ which is a new interface I am working on that has multiple map styles that you can switch on the fly. I have been adding more styles as I have time. I am happy to help people when if they get stuck on any specific rendering issues. Just post to the list. 99% of the data is extracted from the Tigerline files. I have a few miscellaneous data layers that I have collected elsewhere as downloads like: Canada and Mexico reference layers, placenames data layer, zipcode polygons (you can get then from the census site). There might be one or two other layers, but 99% is just the Tigerline data converted to shapefiles. For some of the data layers I have post processed the data, like for highways I scan the road names can extract route type and number and populate attributes to make rendering easier. You can do this with Perl or PHP mapscript and some regular expressions. -Steve http:/imaptools.com/ Ryan D Taylor wrote: > Hi, > > Does anybody have any .MAP files that they've used for displaying tiger > line data that they would like to share? Ideally, I'd like to have > something that looks like the maps that mapquest generates or like > Stephen Woodbridge's Tiger/Line Data Browser at: > > http://imaptools.com/tiger/ > > Another thing that I'm wondering is: will I need any data in addition to > the tiger data to be able to generate a nice-looking map like Stephen's? > > Thanks, > > Ryan T. > From sgillies at FRII.COM Mon May 16 13:02:35 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 16 May 2005 14:02:35 -0600 Subject: Image transparency via SWIG API In-Reply-To: Message-ID: On May 16, 2005, at 10:01 AM, Rick Innis wrote: > I'm writing an application which loads a point layer from a Postgis > table and displays little flag icons at the relevant points. > > I haven't been able to work out how to get MapServer to respect the > transparency of the images. The flags appear surrounded by a white > square. > > If I load the same layer via a mapfile, everything works fine - the > images are displayed without the white square. > > Would appreciate any insight anyone has on what might be going on. > > FWIW, I'm working with MapServer 4.4.1, Postgres 8.0.1, PostGIS RC6, > and the Java API bindings. > > Thanks, > > --Rick. > Rick, you say everything works fine when you load the same layer via a mapfile ... so why not do that? I'm going to need more details on your use before I can be of any help such as how you are styling and rendering the points, and perhaps the relevant portion of the mapfile that works. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From aaronr at ECOTRUST.ORG Mon May 16 13:51:52 2005 From: aaronr at ECOTRUST.ORG (Aaron Racicot) Date: Mon, 16 May 2005 13:51:52 -0700 Subject: PHP/MapScript - Reference Message-ID: Bernardo, You need a reference map definition in your mapfile that points to the reference image. This can be done statically in your mapfile or you need to create one in php-mapscript as a referenceMapObj embedded in the mapObj. Here is an example of a definition in a mapfile: # # Start of reference map # REFERENCE IMAGE "/var/www/html/apps/siuslaw_epa/data/ref/blue_marble_us_200_150.gif" EXTENT -170 10 -64 90 SIZE 200 150 STATUS OFF MINBOXSIZE 1 MAXBOXSIZE 200 COLOR -1 -1 -1 OUTLINECOLOR 255 255 255 MARKERSIZE 10 MARKER 'star' END In this example I then do the following in php-mapscript: $img_ref = $oMap->drawReferenceMap(); $url_ref = $img_ref->saveWebImage(); Hope this helps... and try reading up on the php-mapscript class reference: http://mapserver.gis.umn.edu/doc44/phpmapscript-class-guide.html Aaron +----------------------------------------+ | Aaron Racicot | aaronr at ecotrust.org | | GIS Programmer | 503.467.0759 | +----------------------------------------+ | e c o t r u s t | | Jean Vollum Natural Capital Center | | 721 NW Ninth Avenue | | Suite 200 | | Portland, OR 97209 | | www.ecotrust.org | +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bernardo Rocha Sent: Monday, May 16, 2005 9:23 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] PHP/MapScript - Reference Someone could help me drawing a reference map? I simple tried it: $ref = $map->drawReferenceMap(); $image = $ref->saveWebImage(MS_PNG,1,1,0); and it doesn?t works! What shoul I do? Any examples? Thanks! Bernardo M. Rocha PLANGEO - Planejamento e Geotecnologia Ltda. From dejan.gambin at PULA.HR Mon May 16 14:06:09 2005 From: dejan.gambin at PULA.HR (Dejan Gambin) Date: Mon, 16 May 2005 23:06:09 +0200 Subject: Display progress bar while waiting for data Message-ID: Hi, Is it possible to create some kind of progress bar while waiting for raster data to be displayed. I have some raster data in GeoTIFF format that some users with a slow connection must wait for. I am wondering if I can show them a progress bar indicating "estimated" time they have to wait so they know and they can wait or cancel the process. Does anyone have a suggestion on what is the best way to inform users? thanks very much dejan From Steven_Gertz at CITYSEARCH.COM Mon May 16 14:22:29 2005 From: Steven_Gertz at CITYSEARCH.COM (Steve Gertz) Date: Mon, 16 May 2005 14:22:29 -0700 Subject: Creating shaded zip code maps (newbie) Message-ID: All, This is my first time dipping my toe into the GIS world, after a couple of years of working on problems that dealt with geography. I'm finally getting the chance to visualize our data. I'm tring to create a highlighted view zip codes, based on the number of ad impressions we have for each zip code. I'd want to do some number crunching and shade each zip code (or other geographical shape) between white and some solid (with gray for no data). I've got the 5 digit Zip code tablulation areas from the census. From there things get more tricky. I think I want a raster image for each scale of the map, but I can't find any interfaces that allow making the raster files easy in perl. I can't seem to find anything that will link the raster and geographic data together. Does anyone have advice for solving this type of problem? Seems this would be a great FAQ to add to the mapserver / gdal / grass / et al websites. Thanks in advance, Steve From bill at BINKO.NET Mon May 16 15:03:48 2005 From: bill at BINKO.NET (Bill Binko) Date: Mon, 16 May 2005 18:03:48 -0400 Subject: Creating shaded zip code maps (newbie) In-Reply-To: <42890F15.9090502@citysearch.com> Message-ID: On Mon, 16 May 2005, Steve Gertz wrote: > I'm tring to create a highlighted view zip codes, based on the number of > ad impressions we have for each zip code. I'd want to do some number > crunching and shade each zip code (or other geographical shape) between > white and some solid (with gray for no data). this is very doable. The most recent CVS has some added features for this, but even out of the box 4.4 can do this for you. > > I've got the 5 digit Zip code tablulation areas from the census. From > there things get more tricky. I think I want a raster image for each > scale of the map, but I can't find any interfaces that allow making the > raster files easy in perl. I can't seem to find anything that will link > the raster and geographic data together. Your easiest solution would be to use ESRI Shapefiles for the zipcodes. Once you have those (they are vector datasets), you can link in your data via several methods (mapscript or postGIS come to mind). > Does anyone have advice for solving this type of problem? Seems this > would be a great FAQ to add to the mapserver / gdal / grass / et al > websites. I have recently done exactly this with census blocks recently. Here's the process I took: 1) Got the census block shapefiles (from FGDL.org in my case since I just needed florida). You'd need zipcode shapefiles (they're available) 2) Loaded the files into postGIS using shp2pgsql (making sure I set the SRID right). 3) Setup my other data (traffic counts from BTS) in another Postgresql table indexed by census block id 4) Added a layer to my map that used PostGIS and performed the query and join that I wanted. 5) Created Styles/Classes that displayed the ranges I wanted based on the attributes I joined to. I used the Gradient/ColorRange code I contributed, but it isn't needed: you can just define classes for each range of data that you want a different color (0.0->0.25, 0.25->0.5, etc) Once I had exactly what I wanted, I actually exported the things that were static back out to shapefiles using pgsql2shp. This let my static stuff be loaded faster. This is very doable, and in fact, it is incredible what you can do with just these tools. I'm sure those with more experience can give you better paths to take, but this one works for me. Bill From rick at INNIS.CA Mon May 16 17:54:07 2005 From: rick at INNIS.CA (Rick Innis) Date: Mon, 16 May 2005 20:54:07 -0400 Subject: Image transparency via SWIG API In-Reply-To: <11eaf6670067a244bb2c53d6e9e0df17@frii.com> Message-ID: > Rick, you say everything works fine when you load the same layer via a > mapfile ... so why not do that? The application allows each user, or group of users, to view different data layers superimposed on the same base map. This is running as a web service, so we don't want to have to manage potentially hundreds or thousands of maps that differ only in one or two layers. > I'm going to need more details on your > use before I can be of any help such as how you are styling and > rendering the points, and perhaps the relevant portion of the mapfile > that works. OK, and thanks. In reverse order, then, here's the mapfile fragment: LAYER NAME user_data STATUS on CONNECTION "user=XXXX password=YYYY dbname=ZZZZ host=localhost port=5432" CONNECTIONTYPE postgis DATA "the_geom from j_random_table" TYPE point CLASS NAME "pins" STYLE BACKGROUNDCOLOR 0 255 0 COLOR 0 255 0 SYMBOL ../../Image/Pin/pin_black_map.gif END END END And the code: // Corresponds to the LAYER statement above layerObj l = new layerObj(map); l.setType(MS_LAYER_TYPE.MS_LAYER_POINT); l.setConnectiontype(MS_CONNECTION_TYPE.MS_POSTGIS); l.setConnection(connectionString); l.setData(geomString); l.setStatus(mapscriptConstants.MS_ON); l.setName("data_layer"); // corresponds to CLASS statement classObj c = l.getClass(0); // paranoia? if (c == null) c = new classObj(l); // this seems to be needed in the API version of this c.setStatus(mapscriptConstants.MS_ON); // create a symbolObj and insert it into the map's symbol set symbolObj so = new symbolObj("pin",pinPath); symbolSetObj ss = map.getSymbolset(); ss.appendSymbol(so); // create a style object to attach the symbol to styleObj style = new styleObj(c); style.setSymbol(1); style.setSymbolname("pin"); I've also attached the resulting map, though I'm not sure if the list will strip it or not. Thanks for any insight you can provide. In my perfect world the solution is something simple, even if not obvious :-) --Rick. -------------- next part -------------- A non-text attachment was scrubbed... Name: map9561.png Type: image/png Size: 5209 bytes Desc: not available URL: From rick at INNIS.CA Mon May 16 17:54:38 2005 From: rick at INNIS.CA (Rick Innis) Date: Mon, 16 May 2005 20:54:38 -0400 Subject: Image transparency via SWIG API In-Reply-To: <931f8ea90505160943259ef06a@mail.gmail.com> Message-ID: > I *think* Sean made some improvements with regard to > transparency and raster symbols in 4.4.2. You might want to > upgrade and try again. Thanks, Frank. I'll check that out and see what happens. --Rick. From gmanepal at GMAIL.COM Mon May 16 19:26:19 2005 From: gmanepal at GMAIL.COM (Giridhar Manepalli) Date: Mon, 16 May 2005 22:26:19 -0400 Subject: Changing color of a layer php/mapscript In-Reply-To: Message-ID: Thanks a lot! I got it working now. From the mapscript API, it looks like we have to define STYLE for any color attributes and should not embed COLOR directly into the CLASS. But, anyway I got it! Thanks, Giridhar On 5/16/05, Bart van den Eijnden wrote: > Hi, > > you need to set the Color of the StyleObj. A StyleObj is associated with a > ClassObj. > > // create a new style obj of have one ready in your MAP file > $this->oStyle = ms_newStyleObj( $this->oClass ); > // set the color of the style object > $this->oStyle->color->setRGB(0,0,0); > > Best regards, > Bart > > On Sun, 15 May 2005 23:05:06 +0200, Giridhar Manepalli > wrote: > > > Hello Everyone, > > In version 4.4 of Mapserver, > > can anyone tell me how to change the color of a layer using > > php/mapscript? There is no variable pertaining to 'color' in the php > > class 'classObj'. Any help in this regard is invaluable to me. > > > > Thanks, > > Giridhar > > > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > From sgillies at FRII.COM Mon May 16 19:31:32 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 16 May 2005 20:31:32 -0600 Subject: Image transparency via SWIG API In-Reply-To: Message-ID: On May 16, 2005, at 6:54 PM, Rick Innis wrote: > --Apple-Mail-6-545094000 > Content-Transfer-Encoding: 7bit > Content-Type: text/plain; > charset=US-ASCII; > format=flowed > > >> Rick, you say everything works fine when you load the same layer via a >> mapfile ... so why not do that? > > The application allows each user, or group of users, to view different > data layers superimposed on the same base map. This is running as a web > service, so we don't want to have to manage potentially hundreds or > thousands of maps that differ only in one or two layers. > >> I'm going to need more details on your >> use before I can be of any help such as how you are styling and >> rendering the points, and perhaps the relevant portion of the mapfile >> that works. > > OK, and thanks. In reverse order, then, here's the mapfile fragment: > > LAYER > NAME user_data > STATUS on > CONNECTION "user=XXXX password=YYYY dbname=ZZZZ > host=localhost port=5432" > CONNECTIONTYPE postgis > DATA "the_geom from j_random_table" > TYPE point > CLASS > NAME "pins" > STYLE > BACKGROUNDCOLOR 0 255 0 > COLOR 0 255 0 > SYMBOL > ../../Image/Pin/pin_black_map.gif > END > END > END > > And the code: > > // Corresponds to the LAYER statement above > layerObj l = new layerObj(map); > l.setType(MS_LAYER_TYPE.MS_LAYER_POINT); > l.setConnectiontype(MS_CONNECTION_TYPE.MS_POSTGIS); > l.setConnection(connectionString); > l.setData(geomString); > l.setStatus(mapscriptConstants.MS_ON); > l.setName("data_layer"); > > // corresponds to CLASS statement > classObj c = l.getClass(0); > // paranoia? > if (c == null) > c = new classObj(l); > // this seems to be needed in the API version of this > c.setStatus(mapscriptConstants.MS_ON); > > // create a symbolObj and insert it into the map's symbol set > symbolObj so = new symbolObj("pin",pinPath); > symbolSetObj ss = map.getSymbolset(); > ss.appendSymbol(so); > // create a style object to attach the symbol to > styleObj style = new styleObj(c); > style.setSymbol(1); > style.setSymbolname("pin"); > > I've also attached the resulting map, though I'm not sure if the list > will strip it or not. > > Thanks for any insight you can provide. In my perfect world the > solution is something simple, even if not obvious :-) > > --Rick. > Rick, My recommendation is to include your "pin" symbol in your base map file instead of adding it through mapscript. Load up the base map file, then add your new layer, set the style symbol to the index of the pin symbol and you should be good to go. Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From taatuut at PLANET.NL Mon May 16 23:01:52 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Tue, 17 May 2005 08:01:52 +0200 Subject: Python MapScript module working In-Reply-To: <0IGC00CXDIAY8C@po08.wxs.nl> Message-ID: Hello, I've been away for a few days hence the late reply. Python MapScript is running fine now on my system. First I also installed Python and the "None" package on a Windows 2000 system, works at once. Then on the XP machine where I had problems before it also works now (nothing was changed except a few reboots). Thanks for all the advice. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Ryan, Adam Sent: woensdag 11 mei 2005 23:57 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Python MapScript module still not found (today's summary) Yea I never had a problem with 4.4.2. Works like a charm. Emil? Adam > -----Original Message----- > From: Howard Butler [mailto:hobu at iastate.edu] > Sent: Wednesday, May 11, 2005 2:11 PM > To: Ryan, Adam; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [SPAM] - Re: Python MapScript module still not found > (today's summary) - Bayesian Filter detected spam > > > Adam, > > The problem with my nightlies is that the GDAL used to make > these has ECW > and MrSID and OCI (all of which I don't distribute). Please > use the 4.4.2 > "None" package on http://hobu.stat.iastate.edu/mapserver/ and > let me know > how it goes. > > thanks > > Howard > > At 04:04 PM 5/11/2005, Ryan, Adam wrote: > >Just an update. I pulled an OCI.dll off the Oracle site and > that seems > >to work but I'm stuck on the ECW SDK dlls. I can't seem to find > >acceptable versions. > > > >Adam > > > > > -----Original Message----- > > > From: Ryan, Adam [mailto:ARyan at CO.LINN.OR.US] > > > Sent: Wednesday, May 11, 2005 11:15 AM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] Python MapScript > module still not > > > found (today's summary) > > > > > > > > > I tried Emil's setup and ran into the same problems. > > > > > > I downloaded from: > > > http://hobu.stat.iastate.edu/mapserver/build_output/5_11_2005 > > > > > > Two flavors: none.exe and full.exe > > > > > > I could not import _mapscript on either. Running > dependency walker > > > I found files could not be found by libmap.ddl: > > > > > > Both flavors could not find: > > > > > > LTI_DSDK_DLL.DLL > > > NCSECW.DLL > > > NCSUTIL.DLL > > > OCI.DLL > > > > > > And full.exe could not find these and: > > > > > > SDE90.DLL > > > > > > So, I pulled LTI_DSDK_DLL.DLL off of > > > http://hobu.stat.iastate.edu/mapserver/build_output/sean_2003 > > > > > > Then I pulled the ECW SDK Dlls from Frank's Tools. > > > > > > But I don't have SDE, and isn't the OCI.dll for the > Oracle client? > > > Should that be referenced in the libmap.dll from none.exe? > > > > > > I haven't searched around for OCI.dll. Shall I? > > > > > > Cheers, > > > > > > Adam > > > > > > > -----Original Message----- > > > > From: Sean Gillies [mailto:sgillies at frii.com] > > > > Sent: Wednesday, May 11, 2005 9:20 AM > > > > To: Emil Zegers > > > > Cc: Mapserver ML; Adam Ryan > > > > Subject: Re: Python MapScript module still not found > > > (today's summary) > > > > > > > > > > > > Emil, > > > > > > > > I'm sorry, but I don't have any experience with Python > as a CGI on > > > > IIS. > > > > I'm cc'ing Adam Ryan directly on this because I think > he has the > > > > know-how. > > > > > > > > Sean > > > > > > > > > > > > On May 10, 2005, at 3:30 PM, Emil Zegers wrote: > > > > > > > > > Hello, > > > > > > > > > > After fiddling around some more I finally leave this case > > > unresolved > > > > > for today. > > > > > > > > > > I switched to ActiveState ActivePython instead of using > > > the binaries > > > > > from www.python.org and reinstalled Python MapScript, > no change. > > > > > > > > > > Tried a lot of different mappings in IIS for .py files: > > > > > > > > > > c:\python23\python.exe --> nothing works, time-out for all > > > > .py files > > > > > c:\python23\python.exe -u "%s" "%s" --> works for .py > > > > scripts, import > > > > > DLL gives 'not found' > > > > > c:\python23\python.exe "%s" --> works for .py scripts, import > > > > > DLL gives 'not found' c:\python23\python.exe "%s" > "%s" --> works > > > > > for .py scripts, > > > > import DLL > > > > > gives > > > > > 'not found' > > > > > > > > > > Any ideas on what mapping to use and how this influences > > > importing > > > > > dll's will be appreciated. > > > > > > > > > > So now under IIS I can run .py scripts under IIS and I can > > > > > import modules (eg. importing os works fine) but I still have > > > this problem > > > > > with importing > > > > > MapScript. > > > > > > > > > > Importing MapScript from the Python command line works fine. > > > > > > > > > > Could it be it has something to do with the naming of the > > > MapScript > > > > > files? There's a _mapscript.pyd and mapscript.py, > > > mapscript.pyc and > > > > > mapscript.pyo > > > > > after installing. > > > > > > > > > > For os module there is no .pyd, just the py, pyc and > pyo (just a > > > > > guess, I'm no Python expert) > > > > > > > > > > On a Python mail list I also found some similair info about > > > > importing > > > > > problems under IIS and not with command line. They > > > > suspected the way > > > > > the files were installed may be (part of) the reason. > > > I've installed > > > > > everything with administrator rights and have granted IUR > > > and IWAM > > > > > all needed rights. > > > > > > > > > > Switching to Apache might be a really easy solution for > > > this but I > > > > > would like to have this working with IIS. > > > > > > > > > > Regards, > > > > > > > > > > Emil > > > > > > > > > > > > > From mjuvrud at AKEVA.COM Mon May 16 23:50:30 2005 From: mjuvrud at AKEVA.COM (Mike Juvrud) Date: Tue, 17 May 2005 01:50:30 -0500 Subject: Mapserver presentations Message-ID: A powerpoint MapServer presentation has been posted to a local GIS usergroup forum (Pine to Prairie, Minnesota, USA) and is available for download. You can find the presentation here: http://gis.pinetoprairie.org/phpBB2/viewtopic.php?t=391 (The file is titled "MapServer_04-28-05-IMapSeminar2.ppt") The direct download for the MapServer presentation should be the following link: http://gis.pinetoprairie.org/phpBB2/download.php?id=204 Presentations for other GIS web mapping software are also available for download at the same link. Presentations available for download include UMN MapServer, AutoDesk MapGuide, Manifold, and ArcIMS. From nbarker at RSINC.COM Tue May 17 00:14:34 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Tue, 17 May 2005 08:14:34 +0100 Subject: Display progress bar while waiting for data Message-ID: -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Dejan Gambin Sent: Monday, May 16, 2005 10:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Hi, Is it possible to create some kind of progress bar while waiting for raster data to be displayed. I have some raster data in GeoTIFF format that some users with a slow connection must wait for. I am wondering if I can show them a progress bar indicating "estimated" time they have to wait so they know and they can wait or cancel the process. Does anyone have a suggestion on what is the best way to inform users? thanks very much dejan Having been spending some time looking at the socket connection between a client and Mapserver I don't think this is possible because the content-length attribute in the http response isn't set, so when you read the data you read until an EOF exception. It is only possible to show a busy icon, and the number of bytes currently downloaded, something Firefox does when it downloads from MapServer to. I will gladly be corrected though! Norman Barker From mapserver at HOTMAIL.COM Tue May 17 01:03:14 2005 From: mapserver at HOTMAIL.COM (SUBSCRIBE MAPSERVER-USERS Nuri) Date: Tue, 17 May 2005 03:03:14 -0500 Subject: shape editor Message-ID: I need to create my own shapes with my own mapes but I can't find an appropiate programme. Does someone know an easy way to create them? I'm using Windows XP with IIS. Thank you From BEN at SYNCERA-ITSOLUTIONS.NL Tue May 17 01:53:19 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 17 May 2005 10:53:19 +0200 Subject: Changing color of a layer php/mapscript Message-ID: Hi, FYI, in Mapserver 4.0 things were changed. A CLASS object got the possibility to have 1 or more STYLE objects (to make more advanced styling possible). Previously one would just set the COLOR of a CLASS. So STYLES is the > 4.0 way to go. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Giridhar Manepalli 05/17/05 04:26am >>> Thanks a lot! I got it working now. From the mapscript API, it looks like we have to define STYLE for any color attributes and should not embed COLOR directly into the CLASS. But, anyway I got it! Thanks, Giridhar On 5/16/05, Bart van den Eijnden wrote: > Hi, > > you need to set the Color of the StyleObj. A StyleObj is associated with a > ClassObj. > > // create a new style obj of have one ready in your MAP file > $this->oStyle = ms_newStyleObj( $this->oClass ); > // set the color of the style object > $this->oStyle->color->setRGB(0,0,0); > > Best regards, > Bart > > On Sun, 15 May 2005 23:05:06 +0200, Giridhar Manepalli > wrote: > > > Hello Everyone, > > In version 4.4 of Mapserver, > > can anyone tell me how to change the color of a layer using > > php/mapscript? There is no variable pertaining to 'color' in the php > > class 'classObj'. Any help in this regard is invaluable to me. > > > > Thanks, > > Giridhar > > > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > From pscott at UWC.AC.ZA Tue May 17 05:23:49 2005 From: pscott at UWC.AC.ZA (Paul Scott) Date: Tue, 17 May 2005 13:23:49 +0100 Subject: Python Mapscript Message-ID: Hi all, I have decided to try my hand at a little Python Mapscript, after using PHP Mapscript for about 3 years, but am having some trouble building it. I executed python setup.py build as per the wiki instructions, but received a ld error: /usr/bin/ld: cannot find -lmap and then gcc exits. Am I missing a library or something? Mapserver is v 4.4.1 on RH9 (shrike)... Alternatively is there a pre-built python mapscript somewhere that I can use? I just want to try my hand at it for now... --Paul From Tom.Kralidis at EC.GC.CA Tue May 17 04:43:59 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 17 May 2005 07:43:59 -0400 Subject: JOIN object and WMS/WFS Message-ID: Hi, I have a .shp/.shx/.dbf combo which I have publised as a layer/featuretype for OGC:WMS/OGC:WFS. I have an additional .dbf file which I'd like to join to the layer. However when I issue a WMS GetFeatureInfo WFS DescribeFeatureType I can't see the data from the seperate .dbf file. Any suggestions? Below is my mapfile layer def: Thanks in advance ..Tom LAYER NAME "popplace_pt" STATUS ON DATA "data/popplace_pt" TYPE POINT DUMP TRUE HEADER "templates/popplace_pt_query_header.html" TEMPLATE "templates/popplace_pt_query_body.html" TOLERANCE 30 JOIN NAME "POPNAMEJOIN" FROM "POPNAME" TO "POPNAME" TABLE "/usr/local/wwwsites/apache/devgeo.cciw.ca/apps/mapserv/services/kyw/dat a/table1.dbf" TYPE MULTIPLE TEMPLATE "templates/popplace_pt_join_query_body.html" END METADATA "ows_title" "Populated Places" "ows_abstract" "Populated Places" "ows_keywordlist" "environment,air pollution,acid rain,climate,greenhouse effect,ecosystems,environment i mpact assessment,emergency preparedness,pollution,biological diversity,environmental protection,water,wildli fe,weather,waste,environmental management,environmental technology,recycling,climate change,environmental em ergency,pollution prevention,sustainable development,science and technology,environmental action,smog,ozone, ec,cise,ogc,cgdi" "wms_opaque" "0" "ows_metadataurl_type" "FGDC" "wms_metadataurl_format" "text/html" "ows_metadataurl_href" "http://www.environmentandresources.ca/" "wms_dataurl_format" "text/html" "wms_dataurl_href" "http://www.environmentandresources.ca/" "wfs_metadataurl_format" "TXT" "gml_include_items" "all" END PROJECTION "init=epsg:42304" END LABELITEM "REAL_NAME" CLASS NAME "Populated Places" SYMBOL 'circle' SIZE 3 COLOR 0 255 0 LABEL ANTIALIAS TRUE COLOR 255 0 0 POSITION ur SIZE LARGE END END END From xbobwjones at HOTMAIL.COM Tue May 17 05:32:32 2005 From: xbobwjones at HOTMAIL.COM (Robert Jones) Date: Tue, 17 May 2005 07:32:32 -0500 Subject: International text characters Message-ID: Hi I posted a couple of weeks ago and have not been able to solve my problem with international text characters not displaying properly.. I am using a shapefile with text fields encoded in LATIN1, and am almost certain that the truetype font I am using to label supports these characters. Can anyone help? I stuck.. I'm thinking it must have something to do with either the font, libiconv, or ms4w - which I used to set up mapserver. Has anyone else experienced similar problems with ms4w? I am setting up the the layer as follows: #Towns layer LAYER NAME "bart_caps2" GROUP "twn" STATUS ON DATA "twn_p" TYPE POINT CLASSITEM "CODE" UNITS METERS SIZEUNITS PIXELS MINSCALE 0 MAXSCALE 58936139 LABELITEM "COMMENT" LABELCACHE ON POSTLABELCACHE FALSE TOLERANCE 0 TOLERANCEUNITS PIXELS TRANSPARENCY 100 METADATA "Description" "bart_twn" END #end metadata PROJECTION "init=epsg:4326" END #end projection CLASS NAME "bart_twn" EXPRESSION ([CODE] > 70 AND [CODE] < 72) LABEL TYPE TRUETYPE FONT ARIAL ENCODING LATIN1 SIZE 10 POSITION AUTO OFFSET 0 0 COLOR 1 1 1 OUTLINECOLOR 255 255 255 PARTIALS TRUE FORCE FALSE END STYLE SYMBOL 7 COLOR 255 0 0 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 SIZE 6 ANTIALIAS FALSE END #end style END #end class END #END LAYER Thanks Rob From janeks.kamerovskis at SILVA.LV Tue May 17 06:35:01 2005 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Tue, 17 May 2005 16:35:01 +0300 Subject: International text characters In-Reply-To: Message-ID: I faced with similar problems in Latvian, when using shape files. I had problem to show right language specific simbols in labels on map. The problem for Latvian language is that there is multiple encodings. I solved that problem by using an older RimFonts, that have different encoding. And I did it just by dummy testing, because I know that something similar happens with ArcView 3.x Probably some light could ge Googling for Font encoding on mapserver site. But regarding language specific things, there are just few lines in docs. Would be good to see some where what mapserver is doing when are outputing on picture string that f.ex is in LatinX. Janeks > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Robert Jones > Sent: Tuesday, May 17, 2005 3:33 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] International text characters > > > Hi > > I posted a couple of weeks ago and have not been able to solve my problem > with international text characters not displaying properly.. > > I am using a shapefile with text fields encoded in LATIN1, and am almost > certain that the truetype font I am using to label supports these > characters. > > Can anyone help? I stuck.. > > I'm thinking it must have something to do with either the font, > libiconv, or > ms4w - which I used to set up mapserver. Has anyone else experienced > similar problems with ms4w? > > I am setting up the the layer as follows: > > #Towns layer > LAYER > NAME "bart_caps2" > GROUP "twn" > STATUS ON > DATA "twn_p" > TYPE POINT > CLASSITEM "CODE" > UNITS METERS > SIZEUNITS PIXELS > MINSCALE 0 > MAXSCALE 58936139 > LABELITEM "COMMENT" > LABELCACHE ON > POSTLABELCACHE FALSE > TOLERANCE 0 > TOLERANCEUNITS PIXELS > TRANSPARENCY 100 > METADATA > "Description" "bart_twn" > END > #end metadata > PROJECTION > "init=epsg:4326" > END > #end projection > CLASS > NAME "bart_twn" > EXPRESSION ([CODE] > 70 AND [CODE] < 72) > LABEL > TYPE TRUETYPE > FONT ARIAL > ENCODING LATIN1 > SIZE 10 > POSITION AUTO > OFFSET 0 0 > COLOR 1 1 1 > OUTLINECOLOR 255 255 255 > PARTIALS TRUE > FORCE FALSE > END > STYLE > SYMBOL 7 > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > BACKGROUNDCOLOR 0 0 0 > SIZE 6 > ANTIALIAS FALSE > END > #end style > END > #end class > END > #END LAYER > > > Thanks > Rob From fwarmerdam at GMAIL.COM Tue May 17 06:48:27 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 17 May 2005 09:48:27 -0400 Subject: Python Mapscript In-Reply-To: <1116332629.6491.13.camel@localhost> Message-ID: On 5/17/05, Paul Scott wrote: > Hi all, > > I have decided to try my hand at a little Python Mapscript, after using > PHP Mapscript for about 3 years, but am having some trouble building it. > > I executed python setup.py build as per the wiki instructions, but > received a ld error: > > /usr/bin/ld: cannot find -lmap > > and then gcc exits. Paul, Have you already built mapserver? Do you have a libmap.a in the main mapserver directory? > Am I missing a library or something? > > Mapserver is v 4.4.1 on RH9 (shrike)... > > Alternatively is there a pre-built python mapscript somewhere that I can > use? I just want to try my hand at it for now... You can grab the FWTools build which includes python mapscript and gdal python bindings. It does not include PHP. http://fwtools.maptools.org/ Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From robe.dnd at CITYOFBOSTON.GOV Tue May 17 06:48:25 2005 From: robe.dnd at CITYOFBOSTON.GOV (Obe, Regina DND\MIS) Date: Tue, 17 May 2005 09:48:25 -0400 Subject: Display progress bar while waiting for data Message-ID: You should take a look at some applications that do it like for example USGS MapSurfer. http://cortez.gps.caltech.edu/mapsurfer/mapsurfer/index.html The general principal that that uses I think is to load the map in a separate hidden frame and then once that pages is fully loaded passes the image reference etc. to the viewing frame using some javascript tricks. The viewing frame in the meantime just shows an animated "Loading ..." gif. The whole interface is fairly slick so may be more than what you are looking for. I'm not sure if there is an easier way to do this without using hidden frames or a java applet. -----Original Message----- From: Dejan Gambin [mailto:dejan.gambin at PULA.HR] Sent: Monday, May 16, 2005 5:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Hi, Is it possible to create some kind of progress bar while waiting for raster data to be displayed. I have some raster data in GeoTIFF format that some users with a slow connection must wait for. I am wondering if I can show them a progress bar indicating "estimated" time they have to wait so they know and they can wait or cancel the process. Does anyone have a suggestion on what is the best way to inform users? thanks very much dejan From fwarmerdam at GMAIL.COM Tue May 17 06:52:34 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 17 May 2005 09:52:34 -0400 Subject: shape editor In-Reply-To: Message-ID: On 5/17/05, SUBSCRIBE MAPSERVER-USERS Nuri wrote: > I need to create my own shapes with my own mapes but I can't find an > appropiate programme. Does someone know an easy way to create them? > > I'm using Windows XP with IIS. Nuri, I would encourage you to be more specific about what you want to accomplish. Are you digitizing shapes over an image? Do you need snapping or other advanced editing features? The obvious solution to creating shapefiles is to use ArcView or ArcGIS. You could also use OpenEV but it can be somewhat clumsy for some sorts of vector editing operations, and lacks things like snapping. I am assuming you want a desktop editing application. Perhaps you meant a web based editing solution through mapserver? If so, I suggest you make that clearer. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ctimoteo at GMAIL.COM Tue May 17 06:55:38 2005 From: ctimoteo at GMAIL.COM (Carlos Tim=?ISO-8859-1?Q?=F3teo?=) Date: Tue, 17 May 2005 08:55:38 -0500 Subject: 3D LINE STRING / LINE STRING shapfiles Message-ID: i am using ms4w v0.9 under Windows XP the ms4w 1.0.3 doesn't work in my win system. the mapserver version is 4.2 i, that's the problem. later i will try to complete my linux (debian) setup. i have some problems in maplab configuration, etc. thank you From fwarmerdam at GMAIL.COM Tue May 17 06:57:35 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 17 May 2005 09:57:35 -0400 Subject: Display progress bar while waiting for data In-Reply-To: Message-ID: On 5/17/05, Norman Barker wrote: > Having been spending some time looking at the socket connection between a client and > Mapserver I don't think this is possible because the content-length attribute in the > http response isn't set, so when you read the data you read until an EOF exception. > > It is only possible to show a busy icon, and the number of bytes currently downloaded, something > Firefox does when it downloads from MapServer to. > > I will gladly be corrected though! Norman, For at least some return data types it might be practical to embed the content type in the return image header from MapServer. For instance, any "gdal" based output formats are first spooled to disk and then returned to the web connection so we could include content-length. However, the client side would still have no information to report to the user until the head arrived. For the whole time that mapserver is rendering the image, there would be no progress information on the client side. Overall, I am dubious about the practically of meaningful progress information. The only case it would help is big return images over slow links where the image transmission is the bulk of the time. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From mario.basa at GMAIL.COM Tue May 17 07:04:08 2005 From: mario.basa at GMAIL.COM (Mario Basa) Date: Tue, 17 May 2005 23:04:08 +0900 Subject: International text characters In-Reply-To: Message-ID: Hello, The first thing that usually has to be done when encountering problems with international text characters is to check if the character encoding used is supported by iconv. You can check it here: http://www.gnu.org/software/libiconv/ If it is, then it is just a matter of finding the right font set that can handle the i18n text, which you most probably have in your computer already. regards mario yokohama,japan. On 5/17/05, Robert Jones wrote: > Hi > > I posted a couple of weeks ago and have not been able to solve my problem > with international text characters not displaying properly.. > > I am using a shapefile with text fields encoded in LATIN1, and am almost > certain that the truetype font I am using to label supports these characters. > > Can anyone help? I stuck.. > > I'm thinking it must have something to do with either the font, libiconv, or > ms4w - which I used to set up mapserver. Has anyone else experienced > similar problems with ms4w? > > I am setting up the the layer as follows: > > #Towns layer > LAYER > NAME "bart_caps2" > GROUP "twn" > STATUS ON > DATA "twn_p" > TYPE POINT > CLASSITEM "CODE" > UNITS METERS > SIZEUNITS PIXELS > MINSCALE 0 > MAXSCALE 58936139 > LABELITEM "COMMENT" > LABELCACHE ON > POSTLABELCACHE FALSE > TOLERANCE 0 > TOLERANCEUNITS PIXELS > TRANSPARENCY 100 > METADATA > "Description" "bart_twn" > END > #end metadata > PROJECTION > "init=epsg:4326" > END > #end projection > CLASS > NAME "bart_twn" > EXPRESSION ([CODE] > 70 AND [CODE] < 72) > LABEL > TYPE TRUETYPE > FONT ARIAL > ENCODING LATIN1 > SIZE 10 > POSITION AUTO > OFFSET 0 0 > COLOR 1 1 1 > OUTLINECOLOR 255 255 255 > PARTIALS TRUE > FORCE FALSE > END > STYLE > SYMBOL 7 > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > BACKGROUNDCOLOR 0 0 0 > SIZE 6 > ANTIALIAS FALSE > END > #end style > END > #end class > END > #END LAYER > > Thanks > Rob > From woodbri at SWOODBRIDGE.COM Tue May 17 08:00:07 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 17 May 2005 11:00:07 -0400 Subject: Creating shaded zip code maps (newbie) In-Reply-To: <42890F15.9090502@citysearch.com> Message-ID: Steve, Bill Binko's advice is good. I also just did this using PostGIS and it was very straight forward. Setting up PostGIS is pretty easy, but learn Postgres was a little tricky with only a MySQL background, but it all came together. I used the Census zcta5 polygons and loaded them into PostGIS all my other reference data was in shapefiles and mapserver handled it all with easy. Other have done similar things using MySQL, and/or GDAL, but I think PostGIS is worth the extra effort to learn it and set it up as it has lots of other cool features and is a more scalable solution. I'm joining the polygons with Census Summary File information and data similar to ad impressions. http://imaptools.com/test/postgis-maps.php -Steve W. Steve Gertz wrote: > All, > > This is my first time dipping my toe into the GIS world, after a couple > of years of working on problems that dealt with geography. I'm finally > getting the chance to visualize our data. > > I'm tring to create a highlighted view zip codes, based on the number of > ad impressions we have for each zip code. I'd want to do some number > crunching and shade each zip code (or other geographical shape) between > white and some solid (with gray for no data). > > I've got the 5 digit Zip code tablulation areas from the census. From > there things get more tricky. I think I want a raster image for each > scale of the map, but I can't find any interfaces that allow making the > raster files easy in perl. I can't seem to find anything that will link > the raster and geographic data together. > > Does anyone have advice for solving this type of problem? Seems this > would be a great FAQ to add to the mapserver / gdal / grass / et al > websites. > > Thanks in advance, > Steve > From artur.skalski at ACXIOM.COM Tue May 17 08:01:51 2005 From: artur.skalski at ACXIOM.COM (Artur Skalski) Date: Tue, 17 May 2005 10:01:51 -0500 Subject: don't reload/refresh ite after clicking on map Message-ID: Hi All! I've based my mapserver on gmap aplication which is using php/mapscript as you all know. My wuestion i simple: can I force somehow my application not to refresh the site or reload it when i click on the map, simply to do nothing when i click on my map, for now whatever i do, when i click on the map i get the page reloaded, can i swicht this reloading off somehow? many thanks for any tips Artur From helmster_99 at YAHOO.COM Tue May 17 08:15:57 2005 From: helmster_99 at YAHOO.COM (Chris Helm) Date: Tue, 17 May 2005 08:15:57 -0700 Subject: Raster Issues in MapServer 4.4.1 In-Reply-To: 6667 Message-ID: I have a few strange Raster situations I wanted to share with the list. 1. I have a few rasters (Geotiffs) I use as backgrounds for vector data and they're appearing on opposite sides of my map, very distorted. When I zoom to Alaska images from Sweden can be seen, and when I zoom to Sweden the image from Alaska appears. The Sweden images also can seen, distorted, in Siberia. Has anyone seen this behaviour previously? 2. When querying my data at a very 'zoomed in' extent (and other times) the query map that is being generated displays all rasters as if you were zoomed to the full extent of the application. Plus I use a tiled global MODIS background image that draws only the section that I'm zoomed into to, but at full extent. These are quite strange issues, and they didn't begin to happen until I upgraded my MapServer version. I've posted screenshots of the raster problems at: http://yama.colorado.edu:8080/~chelm/raster_issue/ Thanks, Chris __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail From mikesaunt at GMAIL.COM Tue May 17 08:16:26 2005 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Tue, 17 May 2005 16:16:26 +0100 Subject: MapScript with C# Message-ID: Hi All I thought I'd send out an exploratory email with regards to MapScript in C#. I'm a developer in the UK and having come from a commercial mapping background mainly MapInfo with a bit of ESRI, Oracle etc thrown in. It is my first exploration into Open Source Mapping and once having a version compiled and running (with help from others on this list) I have found it quite simple to set up and pass around from machine to machine i.e. No massive sets of overheads with COM registration etc just a few dll's. I have taken this step as I wanted to learn MapScript in an environment that I am familiar with i.e. .NET. The only 'issue' comes down to the compilation process and the building of SWIG interface. I have recieved some binaries and source from different members of the group and this has been excellent and has got me up and running. I was wondering if anyone has plans to compile windows binaries and SWIG Interfaces etc on a regular basis. If not then would anyone find it beneficial if these were done for them? My longer term plans are to develop on Linux with one of the flavours i.e. Python, Perl or PHP but at present am not sure which will be best suited. Regarding the three environments PHP, Perl or Python I was wondering about the following: Which environment is best supported with MapScript or are they all as good as each other? Am I correct in assuming that PHP MapScript is different to that of Perl / Python and therefore the SWIG C# version? Which environment best supports the creation of standard Web services (not WMS / WMF but vanilla web services) ? Are there many developers using MapServer and / or MapScript in the C# environment? What have the experiences been like? Are there many developers in the UK using MapServer and / or MapScript ? What have the experiences been like with large datasets such as Mastermap etc? Apologies for the long email with so many questions but after having dipped my toe in with MapServer I feel like jumping right in! Many Thanks in advance Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucamarle at GMAIL.COM Tue May 17 08:22:44 2005 From: lucamarle at GMAIL.COM (luca marletta) Date: Tue, 17 May 2005 17:22:44 +0200 Subject: Problem with a set of tiff Message-ID: Hi List, I got this problem with a set of tiff that I received. I cannot easly open with common application (gimp and other) and made a tileindex shp, mapserver blows off the cpu. With an old set similar I didn't trouble. The dimension in px of this new one is double but it seems not this the problem I can open them in Qgis but mapserver don't like them at all. here some info from these tiff file TIFF Directory at offset 0x8 Subfile Type: multi-page document (2 = 0x2) Image Width: 20000 Image Length: 12500 Resolution: 0, 0 pixels/inch Bits/Sample: 1 Compression Scheme: CCITT Group 3 Photometric Interpretation: min-is-white FillOrder: msb-to-lsb Artist: "1996-98 AccuSoft Inc., All rights reserved" Date & Time: "2004: 1:29 10:10:58" Orientation: row 0 top, col 0 lhs Samples/Pixel: 1 Rows/Strip: 12500 Planar Configuration: single image plane Page Number: 0-1 Software: ImageGear Version: 7.01.002 Group 3 Options: (0 = 0x0) can some one help me? if you get the problem in which way can I convert them? thanks a lot luca -- luca marletta icq: 70590647 From yogid at O2.PL Tue May 17 08:27:52 2005 From: yogid at O2.PL (Yogid) Date: Tue, 17 May 2005 17:27:52 +0200 Subject: shape editor In-Reply-To: <931f8ea905051706521b8dac8c@mail.gmail.com> Message-ID: Witaj Frank, W Twoim li?cie datowanym 17 maja 2005 (15:52:34) mo?na przeczyta?: FW> On 5/17/05, SUBSCRIBE MAPSERVER-USERS Nuri wrote: >> I need to create my own shapes with my own mapes but I can't find an >> appropiate programme. Does someone know an easy way to create them? >> >> I'm using Windows XP with IIS. FW> Nuri, FW> I would encourage you to be more specific about what you want to FW> accomplish. Are you digitizing shapes over an image? Do you FW> need snapping or other advanced editing features? FW> The obvious solution to creating shapefiles is to use ArcView or FW> ArcGIS. You could also use OpenEV but it can be somewhat FW> clumsy for some sorts of vector editing operations, and lacks things FW> like snapping. FW> I am assuming you want a desktop editing application. Perhaps you FW> meant a web based editing solution through mapserver? If so, I FW> suggest you make that clearer. FW> Best regards, I make my all map by Wintopo! -- Pozdrowienia, Yogid mailto:yogid at o2.pl From ealpert at DIGITALGLOBE.COM Tue May 17 08:48:23 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 17 May 2005 09:48:23 -0600 Subject: shape editor Message-ID: If I don't have access to ArcMap or MapInfo I create/manipulate geometries in postgis and use pgsql2shp to dump them to shapefiles. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of SUBSCRIBE MAPSERVER-USERS Nuri Sent: Tuesday, May 17, 2005 2:03 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] shape editor I need to create my own shapes with my own mapes but I can't find an appropiate programme. Does someone know an easy way to create them? I'm using Windows XP with IIS. Thank you From ed at TOPOZONE.COM Tue May 17 09:35:28 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 17 May 2005 12:35:28 -0400 Subject: Display progress bar while waiting for data Message-ID: Dejan - I'll second Frank's scepticism here. Most of the "Image Loading" animations you see on mapping sites are just that - animations. They're standalone animated GIFs and the like which cause pixels to twinkle on the user's screen but which have no relationship to the actual progress of the application. The server could burst into flames and the "Image Loading" graphic would keep dancing. The site Regina mentions falls into this category. IMHO, these kinds of graphics are primarily used to try to cover up slow map servers, and not to give users meaningful progress feedback. I think by far the best feedback mechanism for image load time is the map image itself. If you simply display the image in a format that browsers can easily render incrementally, then the user can see the image begin to appear and will get a good feel for how long it will take just by watching it. JPEG is NOT a good choice for this, but GIF and PNG images should render properly on most browsers. For example, look at this image: http://www.topozone.com/images/MtMonadnockTopo.gif Over a slow connection. You should see the large map image load incrementally, so you know things are working. If the image were smaller and in a frame (to define the final output size) it would be relatively easy to assess how much progress is being made. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dejan Gambin Sent: Monday, May 16, 2005 5:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Hi, Is it possible to create some kind of progress bar while waiting for raster data to be displayed. I have some raster data in GeoTIFF format that some users with a slow connection must wait for. I am wondering if I can show them a progress bar indicating "estimated" time they have to wait so they know and they can wait or cancel the process. Does anyone have a suggestion on what is the best way to inform users? thanks very much dejan From sgillies at FRII.COM Tue May 17 09:36:34 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 17 May 2005 10:36:34 -0600 Subject: MapScript with C# In-Reply-To: Message-ID: Comments below ... On May 17, 2005, at 9:16 AM, Mike Saunt wrote: > ------=_Part_2791_24165453.1116342986046 > Content-Type: text/plain; charset=ISO-8859-1 > Content-Transfer-Encoding: quoted-printable > Content-Disposition: inline > > Hi All > > I thought I'd send out an exploratory email with regards to MapScript > in C#= > .=20 > I'm a developer in the UK and having come from a commercial mapping=20 > background mainly MapInfo with a bit of ESRI, Oracle etc thrown in. It > is m= > y=20 > first exploration into Open Source Mapping and once having a version=20 > compiled and running (with help from others on this list) I have found > it= > =20 > quite simple to set up and pass around from machine to machine i.e. > No=20 > massive sets of overheads with COM registration etc just a few dll's. > > I have taken this step as I wanted to learn MapScript in an > environment tha= > t=20 > I am familiar with i.e. .NET. The only 'issue' comes down to the > compilatio= > n=20 > process and the building of SWIG interface. I have recieved some > binaries= > =20 > and source from different members of the group and this has been > excellent= > =20 > and has got me up and running.=20 > > I was wondering if anyone has plans to compile windows binaries and > SWIG=20 > Interfaces etc on a regular basis. If not then would anyone find it=20 > beneficial if these were done for them? > For C#? Other than the dot net gis project, no, and I'm not sure of the status there. I haven't heard from them in a while. Both Frank Warmerdam and Howard Butler are distributing Python mapscript for win32. Frank's FWTools also includes GDAL/OGR, and OpenEV. I believe there are PHP binaries at maptools.org. > My longer term plans are to develop on Linux with one of the flavours > i.e.= > =20 > Python, Perl or PHP but at present am not sure which will be best > suited. > > Regarding the three environments PHP, Perl or Python I was wondering > about= > =20 > the following: > > Which environment is best supported with MapScript or are they all as > good= > =20 > as each other?=20 > > Am I correct in assuming that PHP MapScript is different to that of > Perl /= > =20 > Python and therefore the SWIG C# version? > > Which environment best supports the creation of standard Web services > (not= > =20 > WMS / WMF but vanilla web services) ? > Unless you have an existing mod_perl powered web site into which you must integrate mapping there is, frankly, no reason to go with the Perl mapscript. I apologize to all my Perl using friends and colleagues out there, but that's just the way it is. The Python mapscript is the most robust, fully featured, and best supported of the SWIG mapscript flavors. Choosing between PHP and Python mapscript is mostly a matter of the framework of your existing site, and a choice of which higher-level frameworks you would like to use in the future. If you go the PHP route, you will be able to try out DM Solutions' Chameleon software (at maptools.org) which has a lot of users, good support, lots of features. If you go with Python, you will be able to use the ZCO/PrimaGIS solution for Zope and Plone (http://primagis.technocore.fi/). Python is also a much richer environment for GIS programming (GDAL/OGR, Numeric, etc). Vanilla web services? Python has great XML tools, but the SOAP stuff isn't very advanced -- mainly because SOAP (IMO) just isn't very useful. Here's a link: http://www-106.ibm.com/developerworks/webservices/library/ws-pyth5/. Python's SOAP might be better now. I don't know anything about PHP web services, but I'm sure they have something. > Are there many developers using MapServer and / or MapScript in the > C#=20 > environment? What have the experiences been like? > > Are there many developers in the UK using MapServer and / or MapScript > ?=20 > What have the experiences been like with large datasets such as > Mastermap= > =20 > etc? > > Apologies for the long email with so many questions but after having > dipped= > =20 > my toe in with MapServer I feel like jumping right in! > > Many Thanks in advance > Mike Hope this helps, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From rick at INNIS.CA Tue May 17 09:39:10 2005 From: rick at INNIS.CA (Rick Innis) Date: Tue, 17 May 2005 12:39:10 -0400 Subject: Image transparency via SWIG API In-Reply-To: Message-ID: > My recommendation is to include your "pin" symbol in your base map file > instead of adding it through mapscript. That works. Not sure it's our ideal solution, but it moves us forward. Many thanks, --Rick. From nbarker at RSINC.COM Tue May 17 09:54:59 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Tue, 17 May 2005 17:54:59 +0100 Subject: specifying path relative to SHAPEPATH Message-ID: Hi, within my MAP object I have specified a SHAPEPATH '/var/www/html/wcs/' and then within my layer object I have DATA 'test/Pressure/dbIndex' however this fails, but works if I have SHAPEPATH '/var/www/html/wcs/test/Pressure' and DATA as 'dbIndex' Can I specify relative directories and shape filename to shapepath with the DATA tag? Many thanks, Norman Barker -------------- next part -------------- An HTML attachment was scrubbed... URL: From abe.gillespie at GMAIL.COM Tue May 17 09:58:44 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Tue, 17 May 2005 12:58:44 -0400 Subject: MapScript with C# In-Reply-To: <855ac1957fefb51f51cff93446e88368@frii.com> Message-ID: I'd like to add to this discussion by asking another question: What's the status with multithreading in the C# MapScript dll? Has that been worked out? If so, is there any documentation of it? Thanks. -Abe On 5/17/05, Sean Gillies wrote: > Comments below ... > > On May 17, 2005, at 9:16 AM, Mike Saunt wrote: > > > ------=_Part_2791_24165453.1116342986046 > > Content-Type: text/plain; charset=ISO-8859-1 > > Content-Transfer-Encoding: quoted-printable > > Content-Disposition: inline > > > > Hi All > > > > I thought I'd send out an exploratory email with regards to MapScript > > in C#= > > .=20 > > I'm a developer in the UK and having come from a commercial mapping=20 > > background mainly MapInfo with a bit of ESRI, Oracle etc thrown in. It > > is m= > > y=20 > > first exploration into Open Source Mapping and once having a version=20 > > compiled and running (with help from others on this list) I have found > > it= > > =20 > > quite simple to set up and pass around from machine to machine i.e. > > No=20 > > massive sets of overheads with COM registration etc just a few dll's. > > > > I have taken this step as I wanted to learn MapScript in an > > environment tha= > > t=20 > > I am familiar with i.e. .NET. The only 'issue' comes down to the > > compilatio= > > n=20 > > process and the building of SWIG interface. I have recieved some > > binaries= > > =20 > > and source from different members of the group and this has been > > excellent= > > =20 > > and has got me up and running.=20 > > > > I was wondering if anyone has plans to compile windows binaries and > > SWIG=20 > > Interfaces etc on a regular basis. If not then would anyone find it=20 > > beneficial if these were done for them? > > > > For C#? Other than the dot net gis project, no, and I'm not sure of > the status there. I haven't heard from them in a while. Both Frank > Warmerdam and Howard Butler are distributing Python mapscript for > win32. Frank's FWTools also includes GDAL/OGR, and OpenEV. I believe > there are PHP binaries at maptools.org. > > > My longer term plans are to develop on Linux with one of the flavours > > i.e.= > > =20 > > Python, Perl or PHP but at present am not sure which will be best > > suited. > > > > Regarding the three environments PHP, Perl or Python I was wondering > > about= > > =20 > > the following: > > > > Which environment is best supported with MapScript or are they all as > > good= > > =20 > > as each other?=20 > > > > Am I correct in assuming that PHP MapScript is different to that of > > Perl /= > > =20 > > Python and therefore the SWIG C# version? > > > > Which environment best supports the creation of standard Web services > > (not= > > =20 > > WMS / WMF but vanilla web services) ? > > > > Unless you have an existing mod_perl powered web site into which you > must integrate mapping there is, frankly, no reason to go with the Perl > mapscript. I apologize to all my Perl using friends and colleagues out > there, but that's just the way it is. The Python mapscript is the most > robust, fully featured, and best supported of the SWIG mapscript > flavors. > > Choosing between PHP and Python mapscript is mostly a matter of the > framework of your existing site, and a choice of which higher-level > frameworks you would like to use in the future. If you go the PHP > route, you will be able to try out DM Solutions' Chameleon software (at > maptools.org) which has a lot of users, good support, lots of features. > If you go with Python, you will be able to use the ZCO/PrimaGIS > solution for Zope and Plone (http://primagis.technocore.fi/). Python > is also a much richer environment for GIS programming (GDAL/OGR, > Numeric, etc). > > Vanilla web services? Python has great XML tools, but the SOAP stuff > isn't very advanced -- mainly because SOAP (IMO) just isn't very > useful. Here's a link: > http://www-106.ibm.com/developerworks/webservices/library/ws-pyth5/. > Python's SOAP might be better now. I don't know anything about PHP web > services, but I'm sure they have something. > > > Are there many developers using MapServer and / or MapScript in the > > C#=20 > > environment? What have the experiences been like? > > > > Are there many developers in the UK using MapServer and / or MapScript > > ?=20 > > What have the experiences been like with large datasets such as > > Mastermap= > > =20 > > etc? > > > > Apologies for the long email with so many questions but after having > > dipped= > > =20 > > my toe in with MapServer I feel like jumping right in! > > > > Many Thanks in advance > > Mike > > Hope this helps, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://zcologia.com > From abe.gillespie at GMAIL.COM Tue May 17 10:01:47 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Tue, 17 May 2005 13:01:47 -0400 Subject: specifying path relative to SHAPEPATH In-Reply-To: Message-ID: I'm not sure what the implications of directory privileges are ... but could it be possible the webserver has access to /var/www/html/wcs/test/Pressure and not /var/www/html/wcs/test ? -Abe On 5/17/05, Norman Barker wrote: > > Hi, > > within my MAP object I have specified a > > SHAPEPATH '/var/www/html/wcs/' > > and then within my layer object I have > DATA 'test/Pressure/dbIndex' > > however this fails, but works if I have > SHAPEPATH '/var/www/html/wcs/test/Pressure' and DATA as > 'dbIndex' > > Can I specify relative directories and shape filename to shapepath with the > DATA tag? > > Many thanks, > > Norman Barker From craig.miller at SPATIALMINDS.COM Tue May 17 10:21:03 2005 From: craig.miller at SPATIALMINDS.COM (Craig Miller) Date: Tue, 17 May 2005 10:21:03 -0700 Subject: shape editor In-Reply-To: Message-ID: fGIS, qGIS, and Global Mapper (commercial, but cheap) all have varying degrees of support for editing shape files. --Craig -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of SUBSCRIBE MAPSERVER-USERS Nuri Sent: Tuesday, May 17, 2005 1:03 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] shape editor I need to create my own shapes with my own mapes but I can't find an appropiate programme. Does someone know an easy way to create them? I'm using Windows XP with IIS. Thank you From fwarmerdam at GMAIL.COM Tue May 17 10:47:28 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 17 May 2005 13:47:28 -0400 Subject: Raster Issues in MapServer 4.4.1 In-Reply-To: <20050517151558.64214.qmail@web50710.mail.yahoo.com> Message-ID: On 5/17/05, Chris Helm wrote: > I have a few strange Raster situations I wanted to > share with the list. > > 1. I have a few rasters (Geotiffs) I use as > backgrounds for vector data and they're appearing on > opposite sides of my map, very distorted. When I zoom > to Alaska images from Sweden can be seen, and when I > zoom to Sweden the image from Alaska appears. The > Sweden images also can seen, distorted, in Siberia. > > Has anyone seen this behaviour previously? Chris, Based on a quick inspection this seems to be a reprojection "wrap around" issue. Is it possible for you to prepare a mapfile and one raster image that demonstrate this problem with shp2img or a direct mapserv invocation? If so, I can dig into the problem in more detail. > 2. When querying my data at a very 'zoomed in' extent > (and other times) the query map that is being > generated displays all rasters as if you were zoomed > to the full extent of the application. Plus I use a > tiled global MODIS background image that draws only > the section that I'm zoomed into to, but at full > extent. This is a bit odd. I would once again guess at it being reprojection related, but it does not seem consistent with the wraparound problem. Once again an isolated reproduable example would be helpful. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From abe.gillespie at GMAIL.COM Tue May 17 10:50:07 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Tue, 17 May 2005 13:50:07 -0400 Subject: shape editor In-Reply-To: Message-ID: Don't forget uDig and JUMP. Both free. -Abe On 5/17/05, Craig Miller wrote: > fGIS, qGIS, and Global Mapper (commercial, but cheap) all have varying > degrees of support for editing shape files. > > --Craig > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of SUBSCRIBE MAPSERVER-USERS Nuri > Sent: Tuesday, May 17, 2005 1:03 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] shape editor > > I need to create my own shapes with my own mapes but I can't find an > appropiate programme. Does someone know an easy way to create them? > > I'm using Windows XP with IIS. > > Thank you > From sgillies at FRII.COM Tue May 17 10:52:03 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 17 May 2005 11:52:03 -0600 Subject: MapScript with C# In-Reply-To: Message-ID: On May 17, 2005, at 10:58 AM, Abe Gillespie wrote: > I'd like to add to this discussion by asking another question: > > What's the status with multithreading in the C# MapScript dll? Has > that been worked out? If so, is there any documentation of it? > > Thanks. > -Abe > There was an important bug fix http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1319 made to the heads of the 4.4 and 4.6 branches. I'm not sure there will be a 4.4.3 release, but you can get the fix from a nightly 4.4 build. Read my article about MapServer thread safety. As far as I know, the situation remains the same: http://zcologia.com/news/24 Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From fwarmerdam at GMAIL.COM Tue May 17 11:04:29 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 17 May 2005 14:04:29 -0400 Subject: Problem with a set of tiff In-Reply-To: <8b502010505170822338ac50@mail.gmail.com> Message-ID: On 5/17/05, luca marletta wrote: > TIFF Directory at offset 0x8 > Subfile Type: multi-page document (2 = 0x2) > Image Width: 20000 Image Length: 12500 > Resolution: 0, 0 pixels/inch > Bits/Sample: 1 > Compression Scheme: CCITT Group 3 > Photometric Interpretation: min-is-white > FillOrder: msb-to-lsb > Artist: "1996-98 AccuSoft Inc., All rights reserved" > Date & Time: "2004: 1:29 10:10:58" > Orientation: row 0 top, col 0 lhs > Samples/Pixel: 1 > Rows/Strip: 12500 > Planar Configuration: single image plane > Page Number: 0-1 > Software: ImageGear Version: 7.01.002 > Group 3 Options: (0 = 0x0) > > can some one help me? if you get the problem in which way can I convert them? Luca, In theory these files should be treated as 8bit images with a 2 color color table (and values that are either 0 or 1). In MapServer this should come through as a pseudocolored image. Of course, you need your mapserver build with GDAL support. The libtiff based TIFF support in mapserver will not support 1 bit files. Note that it is a pretty big image, and compressed, so access to it from GDAL or mapserver is not likely to be very efficient. If you just can't get it working, it is presumably due to something peculiar with the build of GDAL used in your mapserver. Note that I believe QGIS uses GDAL for tiff access, much like MapServer does. Best regards,. -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From sysadmin at SATSHOT.COM Tue May 17 11:39:41 2005 From: sysadmin at SATSHOT.COM (Avi A Blackmore) Date: Tue, 17 May 2005 13:39:41 -0500 Subject: Scale and extents: relationship? Message-ID: Hi, folks. This question may sound rather peculiar, but I'm wondering about the relationship between map extents and the scale of the map. Specifically, how can I convert between the scale value of MINSCALE (or MAXSCALE) and map extents? I ask this because, in my PHP Mapscript application, I have zooming to queried features implemented in terms of zooming to a box around the extents of the feature; I want to ensure that this doesn't enable anyone to zoom in closer than MINSCALE, but the way that I do this (by calculating the length of one side of the feature's bounding box, and ensuring the "zoom-to" bounding box is larger than a minimum) requires that I know what the minimum length is, in map coordinates. In my current app, I was able to calculate this "minimum delta" by eyeballing the extents of the box at maximum zoom in the mapfile I'm testing with, but that's hardly general enough to work with different mapfiles, as I need to do. So I'm hoping to find out how I can convert between the two units. Any help would be much appreciated. -- Avi Blackmore System Administrator/Software Analyst Agri ImaGIS Technologies, Inc. From pscott at UWC.AC.ZA Tue May 17 09:21:13 2005 From: pscott at UWC.AC.ZA (Paul Scott) Date: Tue, 17 May 2005 18:21:13 +0200 Subject: Python Mapscript Message-ID: Thanks! I'll go and get FWTools, and give it a shot! Appreciate the help! --Paul >>> Frank Warmerdam 05/17/05 3:48 PM >>> On 5/17/05, Paul Scott wrote: > Hi all, > > I have decided to try my hand at a little Python Mapscript, after using > PHP Mapscript for about 3 years, but am having some trouble building it. > > I executed python setup.py build as per the wiki instructions, but > received a ld error: > > /usr/bin/ld: cannot find -lmap > > and then gcc exits. Paul, Have you already built mapserver? Do you have a libmap.a in the main mapserver directory? > Am I missing a library or something? > > Mapserver is v 4.4.1 on RH9 (shrike)... > > Alternatively is there a pre-built python mapscript somewhere that I can > use? I just want to try my hand at it for now... You can grab the FWTools build which includes python mapscript and gdal python bindings. It does not include PHP. http://fwtools.maptools.org/ Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jkim at SCIENCES.SDSU.EDU Tue May 17 12:03:54 2005 From: jkim at SCIENCES.SDSU.EDU (John Kim) Date: Tue, 17 May 2005 12:03:54 -0700 Subject: Need tutorial on PHPMapScript Message-ID: Hi, I couldn't find any tutorials on PHPMapScript beyond drawing a simple map. Could someone outline for me (or point me to a tutorial on) how to: - Let user zoom/pan on a map - Link a URL to a polygon - Color a raster map I saw tutorials on doing this within MapServer but I'm not sure how to do the same in PHPMapScript. I'm trying to let users pan/zoom/identify a watershed map with topography (raster) shown behind it. So far I do everything in my .map file, not in PHP. Thanks. John -------------- next part -------------- An HTML attachment was scrubbed... URL: From helmster_99 at YAHOO.COM Tue May 17 12:24:11 2005 From: helmster_99 at YAHOO.COM (Chris Helm) Date: Tue, 17 May 2005 12:24:11 -0700 Subject: Raster Issues in MapServer 4.4.1 In-Reply-To: 6667 Message-ID: Frank, I've created a site where you can see the problem occurring with the Alaskan image showing up distorted in Sweden. The mapfile is very simple, it has two layers, the raster, and countries. http://glims.colorado.edu/~chelm/glacierdata/ thanks, Chris --- Frank Warmerdam wrote: > On 5/17/05, Chris Helm > wrote: > > I have a few strange Raster situations I wanted to > > share with the list. > > > > 1. I have a few rasters (Geotiffs) I use as > > backgrounds for vector data and they're appearing > on > > opposite sides of my map, very distorted. When I > zoom > > to Alaska images from Sweden can be seen, and when > I > > zoom to Sweden the image from Alaska appears. The > > Sweden images also can seen, distorted, in > Siberia. > > > > Has anyone seen this behaviour previously? > > Chris, > > Based on a quick inspection this seems to be a > reprojection > "wrap around" issue. Is it possible for you to > prepare a > mapfile and one raster image that demonstrate this > problem > with shp2img or a direct mapserv invocation? If so, > I can > dig into the problem in more detail. > > > 2. When querying my data at a very 'zoomed in' > extent > > (and other times) the query map that is being > > generated displays all rasters as if you were > zoomed > > to the full extent of the application. Plus I use > a > > tiled global MODIS background image that draws > only > > the section that I'm zoomed into to, but at full > > extent. > > This is a bit odd. I would once again guess at it > being > reprojection related, but it does not seem > consistent with > the wraparound problem. Once again an isolated > reproduable example would be helpful. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank > Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | > http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial > Programmer for Rent > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From bartvde at XS4ALL.NL Tue May 17 12:38:12 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 17 May 2005 21:38:12 +0200 Subject: Need tutorial on PHPMapScript In-Reply-To: <019f01c55b13$2ed4a040$efebbf82@JOHNKIM> Message-ID: Hi, there is a workshop from the MUM2 conference: http://www.omsug.ca/osgis2004/proceedings.html PHP Mapscript - Daniel Morissette & Assefa Yewondwossen [ppt] [sxi] [workshop application & data] Also, you could look at Chameleon which has a lot of PHP/Mapscript code in it. http://www.maptools.org/chameleon Best regards, Bart On Tue, 17 May 2005 21:03:54 +0200, John Kim wrote: > Hi, > > I couldn't find any tutorials on PHPMapScript beyond drawing a simple > map. Could someone outline for me (or point me to a tutorial on) how to: > > - Let user zoom/pan on a map > - Link a URL to a polygon > - Color a raster map > > I saw tutorials on doing this within MapServer but I'm not sure how to > do the same in PHPMapScript. I'm trying to let users pan/zoom/identify a > watershed map with topography (raster) shown behind it. So far I do > everything in my .map file, not in PHP. > > Thanks. > > John -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From fwarmerdam at GMAIL.COM Tue May 17 12:42:48 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 17 May 2005 15:42:48 -0400 Subject: Raster Issues in MapServer 4.4.1 In-Reply-To: <20050517192411.87618.qmail@web50708.mail.yahoo.com> Message-ID: On 5/17/05, Chris Helm wrote: > Frank, > > I've created a site where you can see the problem > occurring with the Alaskan image showing up distorted > in Sweden. The mapfile is very simple, it has two > layers, the raster, and countries. > > http://glims.colorado.edu/~chelm/glacierdata/ Chris, I certainly see the problem occuring. To follow up on this, I need a mapfile a raster data file that demonstrates the problem (that I can download and run). It should have preset map extents for sweden, and no external dependencies other than the raster file. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From helmster_99 at YAHOO.COM Tue May 17 12:52:48 2005 From: helmster_99 at YAHOO.COM (Chris Helm) Date: Tue, 17 May 2005 12:52:48 -0700 Subject: Raster Issues in MapServer 4.4.1 In-Reply-To: 6667 Message-ID: Frank, I've placed a simple mapfile and the tif in a directory at: http://glims.colorado.edu/~chelm/glacierdata/example/ Thanks for the help! Chris --- Frank Warmerdam wrote: > On 5/17/05, Chris Helm > wrote: > > Frank, > > > > I've created a site where you can see the problem > > occurring with the Alaskan image showing up > distorted > > in Sweden. The mapfile is very simple, it has two > > layers, the raster, and countries. > > > > http://glims.colorado.edu/~chelm/glacierdata/ > > Chris, > > I certainly see the problem occuring. To follow up > on > this, I need a mapfile a raster data file that > demonstrates > the problem (that I can download and run). It > should > have preset map extents for sweden, and no external > dependencies other than the raster file. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank > Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | > http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial > Programmer for Rent > __________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail From steve.lime at DNR.STATE.MN.US Tue May 17 14:22:00 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 17 May 2005 16:22:00 -0500 Subject: JOIN object and WMS/WFS Message-ID: This is most likely a problem with the WMS/WFS implementations in that they are not doing any joins before returning features via the OGJ interfaces. Joins for normal MapServer queries are handled in the templating code which is why it was probably missed. I can guarantee there is no support for joins in schema production either. Supporting one-to-one joins should not be difficult, one-to-many joins will be more complicated. This could have implications for the underlying C APIs (and consequently MapScript) as well if one were to generalize support for joins a bit. I sound like a broken record, but please file a bug... Steve >>> "Kralidis,Tom [Burlington]" 5/17/2005 6:43:59 AM >>> Hi, I have a .shp/.shx/.dbf combo which I have publised as a layer/featuretype for OGC:WMS/OGC:WFS. I have an additional .dbf file which I'd like to join to the layer. However when I issue a WMS GetFeatureInfo WFS DescribeFeatureType I can't see the data from the seperate .dbf file. Any suggestions? Below is my mapfile layer def: Thanks in advance ..Tom LAYER NAME "popplace_pt" STATUS ON DATA "data/popplace_pt" TYPE POINT DUMP TRUE HEADER "templates/popplace_pt_query_header.html" TEMPLATE "templates/popplace_pt_query_body.html" TOLERANCE 30 JOIN NAME "POPNAMEJOIN" FROM "POPNAME" TO "POPNAME" TABLE "/usr/local/wwwsites/apache/devgeo.cciw.ca/apps/mapserv/services/kyw/dat a/table1.dbf" TYPE MULTIPLE TEMPLATE "templates/popplace_pt_join_query_body.html" END METADATA "ows_title" "Populated Places" "ows_abstract" "Populated Places" "ows_keywordlist" "environment,air pollution,acid rain,climate,greenhouse effect,ecosystems,environment i mpact assessment,emergency preparedness,pollution,biological diversity,environmental protection,water,wildli fe,weather,waste,environmental management,environmental technology,recycling,climate change,environmental em ergency,pollution prevention,sustainable development,science and technology,environmental action,smog,ozone, ec,cise,ogc,cgdi" "wms_opaque" "0" "ows_metadataurl_type" "FGDC" "wms_metadataurl_format" "text/html" "ows_metadataurl_href" "http://www.environmentandresources.ca/" "wms_dataurl_format" "text/html" "wms_dataurl_href" "http://www.environmentandresources.ca/" "wfs_metadataurl_format" "TXT" "gml_include_items" "all" END PROJECTION "init=epsg:42304" END LABELITEM "REAL_NAME" CLASS NAME "Populated Places" SYMBOL 'circle' SIZE 3 COLOR 0 255 0 LABEL ANTIALIAS TRUE COLOR 255 0 0 POSITION ur SIZE LARGE END END END From pspencer at DMSOLUTIONS.CA Tue May 17 14:27:32 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Tue, 17 May 2005 17:27:32 -0400 Subject: ka-Map: new open source project Message-ID: ka-Map: new open source project =============================== http://ka-Map.maptools.org/ DM Solutions Group is pleased to annouce the release of a new MapTools open source project aimed at the growing interest in highly interactive, javascript mapping applications based on MapServer. Here are some details ... ka-Map provides many of the features that one should expect in a state-of-the-art web-mapping application. Features include: * tile-based continuous panning * no page reloading * keymap, legend and scalebar * zoom in/zoom out * keyboard navigation * sliding effects for panning on double click (ok, that one's for fun!) We have also implemented some advanced features that are more in tune with the MapServer community's needs: * configuration can include multiple map files with different extents, image formats, and scales for each map file. Client side interface can include the ability to change between map files * ability to have layer visibility controls by drawing each GROUP as a separate HTML layer on the client side * ability to use HTML legend template to build more advanced layer controls * flexible tile caching system * separation of the javascript logic from the HTML page to provide an API with which to build your applications ka-Map is built on AJAX principles and uses the XmlHttpRequest object to communicate with the server, providing a much more responsive user interface. The server side is implemented using PHP/MapScript (what else!) but could easily be replaced with anything that would spit out the equivalent javascript in response to the various requests. ka-Map uses cached tiles generated on demand by drawing much larger map images and slicing them up. The caching mechanism is currently quite simplistic and could not handle large data projects, but it is definitely sufficient for getting started. There are issues with this kind of tile generation, but it is almost essential for performance given the current state of the art. ka-Map is aiming to be an API for developing mapping applications. As such, we are hoping it will be picked up by, and integrated into, some of the other open source projects such as MapBender, ZMapServer, GeoServer, and (of course) Chameleon. The home of ka-Map is: http://ka-Map.maptools.org Downloads and CVS are not quite ready, but you can try out the interface by visiting our first public site based on this technology (basic features only in this one): http://maps.dmsolutions.ca/ Subscribe to the user list to find out when downloads and CVS access are available, and also to participate in the ongoing development and testing of this new technology. http://lists.maptools.org/mailman/listinfo/ka-map-users We are hoping this project will engage the MapServer community's interest and gain momentum from user contributions. Please join up and start contributing if you are interested in this technology! Sincerely, Paul -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From bill at BINKO.NET Tue May 17 14:51:15 2005 From: bill at BINKO.NET (Bill Binko) Date: Tue, 17 May 2005 17:51:15 -0400 Subject: ka-Map: new open source project In-Reply-To: <428A61C4.4060508@dmsolutions.ca> Message-ID: So, I already have a suggestion :) Could you hookup the zoomin/zoomout to the mouse wheel? See this site for a cross-platform approach (that works on very modern Firefox, and all IE 6+) http://www.gtalbot.org/Bugzilla/Bug111647.html Bill On Tue, 17 May 2005, Paul Spencer wrote: > ka-Map: new open source project > =============================== > > http://ka-Map.maptools.org/ > > DM Solutions Group is pleased to annouce the release of a new MapTools > open source project aimed at the growing interest in highly interactive, > javascript mapping applications based on MapServer. Here are some > details ... > > ka-Map provides many of the features that one should expect in a > state-of-the-art web-mapping application. > > Features include: > > * tile-based continuous panning > > * no page reloading > > * keymap, legend and scalebar > > * zoom in/zoom out > > * keyboard navigation > > * sliding effects for panning on double click (ok, that one's for fun!) > > We have also implemented some advanced features that are more in tune > with the MapServer community's needs: > > * configuration can include multiple map files with different extents, > image formats, and scales for each map file. Client side interface can > include the ability to change between map files > > * ability to have layer visibility controls by drawing each GROUP as a > separate HTML layer on the client side > > * ability to use HTML legend template to build more advanced layer controls > > * flexible tile caching system > > * separation of the javascript logic from the HTML page to provide an > API with which to build your applications > > ka-Map is built on AJAX principles and uses the XmlHttpRequest object to > communicate with the server, providing a much more responsive user > interface. The server side is implemented using PHP/MapScript (what > else!) but could easily be replaced with anything that would spit out > the equivalent javascript in response to the various requests. > > ka-Map uses cached tiles generated on demand by drawing much larger map > images and slicing them up. The caching mechanism is currently quite > simplistic and could not handle large data projects, but it is > definitely sufficient for getting started. There are issues with this > kind of tile generation, but it is almost essential for performance > given the current state of the art. > > ka-Map is aiming to be an API for developing mapping applications. As > such, we are hoping it will be picked up by, and integrated into, some > of the other open source projects such as MapBender, ZMapServer, > GeoServer, and (of course) Chameleon. > > The home of ka-Map is: > > http://ka-Map.maptools.org > > Downloads and CVS are not quite ready, but you can try out the interface > by visiting our first public site based on this technology (basic > features only in this one): > > http://maps.dmsolutions.ca/ > > Subscribe to the user list to find out when downloads and CVS access are > available, and also to participate in the ongoing development and > testing of this new technology. > > http://lists.maptools.org/mailman/listinfo/ka-map-users > > We are hoping this project will engage the MapServer community's > interest and gain momentum from user contributions. Please join up and > start contributing if you are interested in this technology! > > Sincerely, > > Paul > -- > +-----------------------------------------------------------------+ > |Paul Spencer pspencer at dmsolutions.ca | > +-----------------------------------------------------------------+ > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > +-----------------------------------------------------------------+ > > From fwarmerdam at GMAIL.COM Tue May 17 15:01:33 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Tue, 17 May 2005 18:01:33 -0400 Subject: Raster Issues in MapServer 4.4.1 In-Reply-To: <20050517195249.60515.qmail@web50710.mail.yahoo.com> Message-ID: On 5/17/05, Chris Helm wrote: > Frank, > I've placed a simple mapfile and the tif in a > directory at: > http://glims.colorado.edu/~chelm/glacierdata/example/ Chris, OK, the problem is that PROJ.4 maps some location on the other side of the globe into the UTM 8 zone you are using. This does seem to be some sort of wrap around instability issue. warmerda at gdal2200[305]% proj +proj=utm +zone=8 +ellps=WGS84 5 60 -339686.29 7396243.98 10 60 -1313079.75 5684270.49 0 60 512501.80 8653308.24 warmerda at gdal2200[306]% proj -I +proj=utm +zone=8 +ellps=WGS84 512501.80 8653308.24 134d27'48.133"W 77d57'14.884"N -1313079.75 5684270.49 159d42'17.209"W 48d35'37.222"N What we can see from the above is that some locations such as 10E,60N map to locations fairly near the UTM 8 zone, even though when you convert that location back to UTM you get a completely different longitude 10E,60N -> -1313079.75E 5684270.49N -> 159d42'17.209"W 48d35'37.222"N I'm not exactly sure what to do about this. One possible approach is to make the UTM (really transverse mercator) fail in cases where the foward and reverse projections are so divergent. Would you mind filing a formal bug against PROJ.4 for the above "proj" level issue? Then I can take it up on the proj.4 mailing list for possible resolution. In general the problem is that the math for some projections becomes very unstable or at least weird when you get far from the region of validity and you can get the odd world-wrapping-around sorts of issues. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From pspencer at DMSOLUTIONS.CA Tue May 17 17:12:59 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Tue, 17 May 2005 20:12:59 -0400 Subject: ka-Map: new open source project In-Reply-To: Message-ID: Nice idea. I tried the sample and it didn't work for me in firefox 1.0.4 ... a bit disappointing! If you would like to see this in ka-Map anyway you need to: 1. file an enhancement bug in www.maptools.org/bugzilla using the ka-Map product and core component. 2. probably try to implement it yourself once the source is available and then supply a diff/patch/instructions on how to do it ... its likely not difficult to implement so I would encourage this to be a contribution :) Cheers Paul Bill Binko wrote: > So, I already have a suggestion :) > > Could you hookup the zoomin/zoomout to the mouse wheel? > > See this site for a cross-platform approach (that works on very modern > Firefox, and all IE 6+) > > http://www.gtalbot.org/Bugzilla/Bug111647.html > > Bill > > On Tue, 17 May 2005, Paul Spencer wrote: > > >>ka-Map: new open source project >>=============================== >> >>http://ka-Map.maptools.org/ >> >>DM Solutions Group is pleased to annouce the release of a new MapTools >>open source project aimed at the growing interest in highly interactive, >>javascript mapping applications based on MapServer. Here are some >>details ... >> >>ka-Map provides many of the features that one should expect in a >>state-of-the-art web-mapping application. >> >>Features include: >> >>* tile-based continuous panning >> >>* no page reloading >> >>* keymap, legend and scalebar >> >>* zoom in/zoom out >> >>* keyboard navigation >> >>* sliding effects for panning on double click (ok, that one's for fun!) >> >>We have also implemented some advanced features that are more in tune >>with the MapServer community's needs: >> >>* configuration can include multiple map files with different extents, >>image formats, and scales for each map file. Client side interface can >>include the ability to change between map files >> >>* ability to have layer visibility controls by drawing each GROUP as a >>separate HTML layer on the client side >> >>* ability to use HTML legend template to build more advanced layer controls >> >>* flexible tile caching system >> >>* separation of the javascript logic from the HTML page to provide an >>API with which to build your applications >> >>ka-Map is built on AJAX principles and uses the XmlHttpRequest object to >>communicate with the server, providing a much more responsive user >>interface. The server side is implemented using PHP/MapScript (what >>else!) but could easily be replaced with anything that would spit out >>the equivalent javascript in response to the various requests. >> >>ka-Map uses cached tiles generated on demand by drawing much larger map >>images and slicing them up. The caching mechanism is currently quite >>simplistic and could not handle large data projects, but it is >>definitely sufficient for getting started. There are issues with this >>kind of tile generation, but it is almost essential for performance >>given the current state of the art. >> >>ka-Map is aiming to be an API for developing mapping applications. As >>such, we are hoping it will be picked up by, and integrated into, some >>of the other open source projects such as MapBender, ZMapServer, >>GeoServer, and (of course) Chameleon. >> >>The home of ka-Map is: >> >>http://ka-Map.maptools.org >> >>Downloads and CVS are not quite ready, but you can try out the interface >>by visiting our first public site based on this technology (basic >>features only in this one): >> >>http://maps.dmsolutions.ca/ >> >>Subscribe to the user list to find out when downloads and CVS access are >>available, and also to participate in the ongoing development and >>testing of this new technology. >> >>http://lists.maptools.org/mailman/listinfo/ka-map-users >> >>We are hoping this project will engage the MapServer community's >>interest and gain momentum from user contributions. Please join up and >>start contributing if you are interested in this technology! >> >>Sincerely, >> >>Paul >>-- >>+-----------------------------------------------------------------+ >>|Paul Spencer pspencer at dmsolutions.ca | >>+-----------------------------------------------------------------+ >>|Applications & Software Development | >>|DM Solutions Group Inc http://www.dmsolutions.ca/| >>+-----------------------------------------------------------------+ >> >> > > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From bill at BINKO.NET Tue May 17 18:54:13 2005 From: bill at BINKO.NET (Bill Binko) Date: Tue, 17 May 2005 21:54:13 -0400 Subject: ka-Map: new open source project In-Reply-To: <428A888B.50803@dmsolutions.ca> Message-ID: Here's a link about what versions of Mozilla et. al it should work with: https://bugzilla.mozilla.org/show_bug.cgi?id=111647 I was disappointed as well. :( Bill On Tue, 17 May 2005, Paul Spencer wrote: > Nice idea. I tried the sample and it didn't work for me in firefox > 1.0.4 ... a bit disappointing! > > If you would like to see this in ka-Map anyway you need to: > > 1. file an enhancement bug in www.maptools.org/bugzilla using the ka-Map > product and core component. > > 2. probably try to implement it yourself once the source is available > and then supply a diff/patch/instructions on how to do it ... its likely > not difficult to implement so I would encourage this to be a contribution :) > > Cheers > > Paul > > Bill Binko wrote: > > So, I already have a suggestion :) > > > > Could you hookup the zoomin/zoomout to the mouse wheel? > > > > See this site for a cross-platform approach (that works on very modern > > Firefox, and all IE 6+) > > > > http://www.gtalbot.org/Bugzilla/Bug111647.html > > > > Bill > > > > On Tue, 17 May 2005, Paul Spencer wrote: > > > > > >>ka-Map: new open source project > >>=============================== > >> > >>http://ka-Map.maptools.org/ > >> > >>DM Solutions Group is pleased to annouce the release of a new MapTools > >>open source project aimed at the growing interest in highly interactive, > >>javascript mapping applications based on MapServer. Here are some > >>details ... > >> > >>ka-Map provides many of the features that one should expect in a > >>state-of-the-art web-mapping application. > >> > >>Features include: > >> > >>* tile-based continuous panning > >> > >>* no page reloading > >> > >>* keymap, legend and scalebar > >> > >>* zoom in/zoom out > >> > >>* keyboard navigation > >> > >>* sliding effects for panning on double click (ok, that one's for fun!) > >> > >>We have also implemented some advanced features that are more in tune > >>with the MapServer community's needs: > >> > >>* configuration can include multiple map files with different extents, > >>image formats, and scales for each map file. Client side interface can > >>include the ability to change between map files > >> > >>* ability to have layer visibility controls by drawing each GROUP as a > >>separate HTML layer on the client side > >> > >>* ability to use HTML legend template to build more advanced layer controls > >> > >>* flexible tile caching system > >> > >>* separation of the javascript logic from the HTML page to provide an > >>API with which to build your applications > >> > >>ka-Map is built on AJAX principles and uses the XmlHttpRequest object to > >>communicate with the server, providing a much more responsive user > >>interface. The server side is implemented using PHP/MapScript (what > >>else!) but could easily be replaced with anything that would spit out > >>the equivalent javascript in response to the various requests. > >> > >>ka-Map uses cached tiles generated on demand by drawing much larger map > >>images and slicing them up. The caching mechanism is currently quite > >>simplistic and could not handle large data projects, but it is > >>definitely sufficient for getting started. There are issues with this > >>kind of tile generation, but it is almost essential for performance > >>given the current state of the art. > >> > >>ka-Map is aiming to be an API for developing mapping applications. As > >>such, we are hoping it will be picked up by, and integrated into, some > >>of the other open source projects such as MapBender, ZMapServer, > >>GeoServer, and (of course) Chameleon. > >> > >>The home of ka-Map is: > >> > >>http://ka-Map.maptools.org > >> > >>Downloads and CVS are not quite ready, but you can try out the interface > >>by visiting our first public site based on this technology (basic > >>features only in this one): > >> > >>http://maps.dmsolutions.ca/ > >> > >>Subscribe to the user list to find out when downloads and CVS access are > >>available, and also to participate in the ongoing development and > >>testing of this new technology. > >> > >>http://lists.maptools.org/mailman/listinfo/ka-map-users > >> > >>We are hoping this project will engage the MapServer community's > >>interest and gain momentum from user contributions. Please join up and > >>start contributing if you are interested in this technology! > >> > >>Sincerely, > >> > >>Paul > >>-- > >>+-----------------------------------------------------------------+ > >>|Paul Spencer pspencer at dmsolutions.ca | > >>+-----------------------------------------------------------------+ > >>|Applications & Software Development | > >>|DM Solutions Group Inc http://www.dmsolutions.ca/| > >>+-----------------------------------------------------------------+ > >> > >> > > > > > > From bob.basques at CI.STPAUL.MN.US Tue May 17 20:59:30 2005 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Tue, 17 May 2005 22:59:30 -0500 Subject: ka-Map: new open source project In-Reply-To: Message-ID: Paul, One thing I noticed, is that the zoomin/out functions seem like they should paint the tiles from the center, outwards. The User focus is usually centered on a view for example. Would need a whole different algorithm for the tile painting though. :c) Another thought, did you try the same thing with interlaced images? More from a speed of navigation perspective than anything else. I suppose they would hurt overall performance in the end though. bobb Paul Spencer wrote: >ka-Map: new open source project >=============================== > >http://ka-Map.maptools.org/ > >DM Solutions Group is pleased to annouce the release of a new MapTools >open source project aimed at the growing interest in highly interactive, >javascript mapping applications based on MapServer. Here are some >details ... > >ka-Map provides many of the features that one should expect in a >state-of-the-art web-mapping application. > >Features include: > >* tile-based continuous panning > >* no page reloading > >* keymap, legend and scalebar > >* zoom in/zoom out > >* keyboard navigation > >* sliding effects for panning on double click (ok, that one's for fun!) > >We have also implemented some advanced features that are more in tune >with the MapServer community's needs: > >* configuration can include multiple map files with different extents, >image formats, and scales for each map file. Client side interface can >include the ability to change between map files > >* ability to have layer visibility controls by drawing each GROUP as a >separate HTML layer on the client side > >* ability to use HTML legend template to build more advanced layer controls > >* flexible tile caching system > >* separation of the javascript logic from the HTML page to provide an >API with which to build your applications > >ka-Map is built on AJAX principles and uses the XmlHttpRequest object to >communicate with the server, providing a much more responsive user >interface. The server side is implemented using PHP/MapScript (what >else!) but could easily be replaced with anything that would spit out >the equivalent javascript in response to the various requests. > >ka-Map uses cached tiles generated on demand by drawing much larger map >images and slicing them up. The caching mechanism is currently quite >simplistic and could not handle large data projects, but it is >definitely sufficient for getting started. There are issues with this >kind of tile generation, but it is almost essential for performance >given the current state of the art. > >ka-Map is aiming to be an API for developing mapping applications. As >such, we are hoping it will be picked up by, and integrated into, some >of the other open source projects such as MapBender, ZMapServer, >GeoServer, and (of course) Chameleon. > >The home of ka-Map is: > >http://ka-Map.maptools.org > >Downloads and CVS are not quite ready, but you can try out the interface >by visiting our first public site based on this technology (basic >features only in this one): > >http://maps.dmsolutions.ca/ > >Subscribe to the user list to find out when downloads and CVS access are >available, and also to participate in the ongoing development and >testing of this new technology. > >http://lists.maptools.org/mailman/listinfo/ka-map-users > >We are hoping this project will engage the MapServer community's >interest and gain momentum from user contributions. Please join up and >start contributing if you are interested in this technology! > >Sincerely, > >Paul >-- >+-----------------------------------------------------------------+ >|Paul Spencer pspencer at dmsolutions.ca | >+-----------------------------------------------------------------+ >|Applications & Software Development | >|DM Solutions Group Inc http://www.dmsolutions.ca/| >+-----------------------------------------------------------------+ > > > > From yamajue at HOTMAIL.CO.JP Tue May 17 20:54:54 2005 From: yamajue at HOTMAIL.CO.JP (Sano Junya) Date: Wed, 18 May 2005 03:54:54 +0000 Subject: Error "ap is undefined.: Unable to access file. adLabelString()" Message-ID: Dear MapServer experts, Has anyone seen the following error message? ap is undefined.: Unable to access file. adLabelString() We have installed MapServer 4.4.2 on RedHat Enterprise WS and are trying to run mapserv as CGI. The Google search didn't give us any useful information and we are desparate... Any help will be sincerely appreciated. Junya _________________________________________________________________ $BF|K\9qFb:GBg5i (B570 $BK|%f!<%6!<$N (BMSN Hotmail https://registernet.passport.net/reg.srf?id=2&lc=1041 From philippe.gondek at GMAIL.COM Wed May 18 05:25:00 2005 From: philippe.gondek at GMAIL.COM (Philippe Gondek) Date: Wed, 18 May 2005 14:25:00 +0200 Subject: Problem with the Height and Width of my scalebar... Message-ID: Hi List, I try to render a scalebar and to show it. I work with PHP/Mapscript and here is the way I do; $map->scalebar->set("units",MS_KILOMETERS); $map->scalebar->set("style",0); $map->scalebar->set("intervals",5); $map->scalebar->set("height",40); $image2=$map->drawScaleBar(); $ScaleBar_url = $image2->saveWebImage(); ?> />
/> How must I do to have the real units. I have kilometers on my scalebar but it is too small to match with reality!!! From gtaylo2 at CLEMSON.EDU Wed May 18 06:33:36 2005 From: gtaylo2 at CLEMSON.EDU (Greg Taylor) Date: Wed, 18 May 2005 09:33:36 -0400 Subject: File Size/Format Problem? Message-ID: Greetings, I'm working on adding a raster layer to an existing map that consists of a line layer (shape file). The problem is, when I try to add the layer listed below, I get a blank white map for output when the layer is selected: LAYER NAME "clemsongeo" DATA "graphics/camp_tif.tif" TYPE RASTER STATUS DEFAULT END I looked in the tmp images directory and there are a bunch of different empty .png's with varying sizes so it looks like it's at least attempting to use the raster file I've given it. We had figured this may be due to the raster file's massive size (250 meg) but I couldn't find anything on size limitations within the documentation. Does anyone have any idea what may be causing this? Furthermore, does Mapserver support .SID files? I saw a listing of supported files but some of the terminology used is foreign to me (as is GIS for the most part). Thanks in advance! From janeks.kamerovskis at SILVA.LV Wed May 18 06:50:54 2005 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Wed, 18 May 2005 16:50:54 +0300 Subject: International text characters In-Reply-To: <8efeb4a8050517075776094285@mail.gmail.com> Message-ID: Thanks for answer! Probably dummy question: How to get to know what kind of encoding have f.ex. an *.dbf file of shapefiles? brgds Janeks > -----Original Message----- > From: Mario Basa [mailto:mario.basa at gmail.com] > Sent: Tuesday, May 17, 2005 5:57 PM > To: Janeks Kamerovskis > Subject: Re: [UMN_MAPSERVER-USERS] International text characters > > > Hello Jaeks, > > Basically, that is what the "ENCODING" parameter of Mapserver does: > convert the i18n text into UTF-8 using libiconv. If you did convert > the text into UTF-8 already, you don't have to place the "ENCODING" > parameter anymore in your Layer definition. > > Really hope this helps. > > mario. > > > > On 5/17/05, Janeks Kamerovskis wrote: > > > > Then what you will tell regarding this situation: > > > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0404/msg0 > 0162.html > > > > brgds > > Janeks > > > > > -----Original Message----- > > > From: UMN MapServer Users List > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mario Basa > > > Sent: Tuesday, May 17, 2005 5:04 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] International text characters > > > > > > > > > Hello, > > > > > > The first thing that usually has to be done when encountering problems > > > with international text characters is to check if the character > > > encoding used is supported by iconv. You can check it here: > > > > > > http://www.gnu.org/software/libiconv/ > > > > > > If it is, then it is just a matter of finding the right font set that > > > can handle the i18n text, which you most probably have in your > > > computer already. > > > > > > regards > > > > > > mario > > > yokohama,japan. > > > > > > > > > On 5/17/05, Robert Jones wrote: > > > > Hi > > > > > > > > I posted a couple of weeks ago and have not been able to solve > > > my problem > > > > with international text characters not displaying properly.. > > > > > > > > I am using a shapefile with text fields encoded in LATIN1, > and am almost > > > > certain that the truetype font I am using to label supports > > > these characters. > > > > > > > > Can anyone help? I stuck.. > > > > > > > > I'm thinking it must have something to do with either the font, > > > libiconv, or > > > > ms4w - which I used to set up mapserver. Has anyone else > experienced > > > > similar problems with ms4w? > > > > > > > > I am setting up the the layer as follows: > > > > > > > > #Towns layer > > > > LAYER > > > > NAME "bart_caps2" > > > > GROUP "twn" > > > > STATUS ON > > > > DATA "twn_p" > > > > TYPE POINT > > > > CLASSITEM "CODE" > > > > UNITS METERS > > > > SIZEUNITS PIXELS > > > > MINSCALE 0 > > > > MAXSCALE 58936139 > > > > LABELITEM "COMMENT" > > > > LABELCACHE ON > > > > POSTLABELCACHE FALSE > > > > TOLERANCE 0 > > > > TOLERANCEUNITS PIXELS > > > > TRANSPARENCY 100 > > > > METADATA > > > > "Description" "bart_twn" > > > > END > > > > #end metadata > > > > PROJECTION > > > > "init=epsg:4326" > > > > END > > > > #end projection > > > > CLASS > > > > NAME "bart_twn" > > > > EXPRESSION ([CODE] > 70 AND [CODE] < 72) > > > > LABEL > > > > TYPE TRUETYPE > > > > FONT ARIAL > > > > ENCODING LATIN1 > > > > SIZE 10 > > > > POSITION AUTO > > > > OFFSET 0 0 > > > > COLOR 1 1 1 > > > > OUTLINECOLOR 255 255 255 > > > > PARTIALS TRUE > > > > FORCE FALSE > > > > END > > > > STYLE > > > > SYMBOL 7 > > > > COLOR 255 0 0 > > > > OUTLINECOLOR 0 0 0 > > > > BACKGROUNDCOLOR 0 0 0 > > > > SIZE 6 > > > > ANTIALIAS FALSE > > > > END > > > > #end style > > > > END > > > > #end class > > > > END > > > > #END LAYER > > > > > > > > Thanks > > > > Rob > > > > > > > > From vberre at GI-PARIS.COM Wed May 18 06:57:41 2005 From: vberre at GI-PARIS.COM (Virginie Berre) Date: Wed, 18 May 2005 08:57:41 -0500 Subject: URGENT ANSWER NEEDED ! SLD and WMS Message-ID: Hi All! I want to know some things: Is it possible to specify a url or to define a style in the GepMap Request? http://localhost:80/cgi-bin/wms?request=GetMap ..SLD=http://url/style.sld... Or http://localhost:80/cgi-bin /wms?request=GetMap ..SLD_BODY= Is it possible to define more than 1 style for a layer? A default style (in the layer config in the mapfile) and another newstyle (where define it??) called as: http://localhost:80/cgi-bin /wms?request=GetMap ..layers=layername&styles=newstyle... ?? Thanks! Best regards, Virginie Berre G?n?rale d'Infographie ZA Les Erables - B?timent 4 66, route de Sartrouville - F-78232 - LE PECQ cedex T?l : (33) (0)1.30.15.40.50 - Fax : (33) (0)1.30.15.40.60 mailto:vberre at gi-paris.com http://www.generale-infographie.fr/ From BEN at SYNCERA-ITSOLUTIONS.NL Wed May 18 07:00:23 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 18 May 2005 16:00:23 +0200 Subject: URGENT ANSWER NEEDED ! SLD and WMS Message-ID: Hi, Answer to your first question is: yes it is possible to use SLD or SLD_BODY. Answer to your second question is: no it is not possible to use named styles. You can only define the default (or empty) style. See: http://mapserver.gis.umn.edu/doc44/sld-howto.html Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Virginie Berre 05/18/05 03:57pm >>> Hi All! I want to know some things: Is it possible to specify a url or to define a style in the GepMap Request? http://localhost:80/cgi-bin/wms?request=GetMap?..SLD=http://url/style..sld... Or http://localhost:80/cgi-bin /wms?request=GetMap?..SLD_BODY=?? Is it possible to define more than 1 style for a layer? A default style (in the layer config in the mapfile) and another newstyle (where define it??) called as: http://localhost:80/cgi-bin /wms?request=GetMap?..layers=layername&styles=newstyle... ?? Thanks! Best regards, Virginie Berre G*n*rale d'Infographie ZA Les Erables - B*timent 4 66, route de Sartrouville - F-78232 - LE PECQ cedex T*l : (33) (0)1.30.15.40.50 - Fax : (33) (0)1.30.15.40.60 mailto:vberre at gi-paris.com http://www.generale-infographie.fr/ From davidtecher at YAHOO.FR Wed May 18 07:07:05 2005 From: davidtecher at YAHOO.FR (Jean David TECHER) Date: Wed, 18 May 2005 16:07:05 +0200 Subject: OutputFormat ImageMap, PostGIS and SymbolHref Message-ID: Hi I have a mapfile in imagemap outputformat with a layer with a PostGIS layer I use mapserver cvs OUTPUTFORMAT NAME "imagemap" MIMETYPE "imagemap" DRIVER "imagemap" EXTENSION "html" IMAGEMODE "PC256" TRANSPARENT FALSE FORMATOPTION "SYMBOLHREF=javascript:affichage_popup('./info.php?uid=%s&dept=21','popup1') " FORMATOPTION "POLYHREF=#" END The imagemap works fine on a postgis layer with type polygon but doesn't to work for type point I means that from the '%s' gave me only the layer's name (baigande21) ...I got from FormatOption affichage_popup('./info.php?uid=baignade21&dept=21','popup1')" Is it possible to get something like affichage_popup('./info.php?uid=0&dept=21','popup1')" affichage_popup('./info.php?uid=1&dept=21','popup1')" affichage_popup('./info.php?uid=2&dept=21','popup1')" and so on Or did I have to modify mapserver/mapimagemap.c???? LAYER CLASSITEM "gid" CONNECTION "user=postgres dbname=bourgogne_baignade host=localhost" CONNECTIONTYPE POSTGIS DATA "centroid(the_geom) from (select * from baignade21 ) as foo using unique gid using SRID=27582" METADATA "QUERY_FIELDS" "gid" "TABLE" "baignade21" END NAME "baignade21" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCEUNITS PIXELS TYPE POINT UNITS METERS CLASS LABEL SIZE MEDIUM TYPE BITMAP BACKGROUNDCOLOR 255 255 255 BACKGROUNDSHADOWCOLOR 255 255 255 BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 OUTLINECOLOR 255 255 255 PARTIALS TRUE POSITION CC SHADOWCOLOR 255 255 255 END METADATA END STYLE ANGLE 360 COLOR 0 0 255 SIZE 12 SYMBOL 3 END END END I --------------------------------------------------------------- TECHER Jean David 01MAP e-mail: david at 01map.net T?l: 04 67 45 60 27 Entreprise: http://www.01map.net Perso: http://techer.pascal.free.fr/postgis/ ----------------------------------------------------------- From antonioolita at LIBERO.IT Wed May 18 08:59:06 2005 From: antonioolita at LIBERO.IT (antonioolita@libero.it) Date: Wed, 18 May 2005 17:59:06 +0200 Subject: index.html cinfiguration Message-ID: Dear mapserver-support, I have successfully installed mapserver 4.4.2 in my pc Linux cicciu 2.6.5-7.151-default #1 Fri Mar 18 11:31:21 UTC 2005 i686 athlon i386 GNU/Linux I have downloaded to workshop.zip to test my mapserver, but maybe I dont have well configured the index.html file. Both via Mozilla firefox and konqueror dont read correctly the information in the map file and or in the index.html file. I paste here the lines i have changed in the index.html file .......................snip.............................................
........................................snip............................................................. Moreover Firefox or mozzilla attempt to download the mapserv file!!!! What i wrong? I'm not exepert in web-server and in html language. Thanks BEst regards Antonio ____________________________________________________________ 6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero! Scaricalo su INTERNET GRATIS 6X http://www.libero.it From brauplists at GMAIL.COM Wed May 18 09:14:59 2005 From: brauplists at GMAIL.COM (Bruce Raup) Date: Wed, 18 May 2005 10:14:59 -0600 Subject: Raster Issues in MapServer 4.4.1 In-Reply-To: <1464295a0505180913497de39b@mail.gmail.com> Message-ID: Frank, As a co-worker of Chris's, I've been following this conversation closely. It seems to me that proj is behaving reasonably already: you give it nonsensical input, it gives you nonsensical output. That is, if you give it lon/lat coordinates in Sweden and try to project them to UTM zone 8 (Alaska, central meridian -135), you should expect weird results. I think the problem is that mapserver is giving proj nonsensical input. The mapfile contains this layer for one of the Alaska images: LAYER NAME "taku_L7" GROUP RASTERS TYPE RASTER STATUS OFF DATA p058r019_7t20010815_z08_421RGB.tif MAXSCALE 22331381.8 PROJECTION "proj=utm" "ellps=WGS84" "zone=8" "north" "no_defs" END END The projection is specified as Zone 8. Yet, when you zoom into Sweden, Mapserver thinks it needs to display the zone 8 image anyway. Or maybe it does the reprojection before deciding whether to display or not? If that's what's going on, then it seems that you could fix it either by doing what you suggested (having proj fail in such cases, in which case mapserver could be made to ignore that layer), or have mapserver pay attention to the location of the zones of the layers relative to the map extents. Bruce -- Bruce Raup http://cires.colorado.edu/~braup/ -- Bruce Raup http://cires.colorado.edu/~braup/ From jdport at VERITIME.COM Wed May 18 10:21:14 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 18 May 2005 13:21:14 -0400 Subject: ka-Map: new open source project Message-ID: Wow, that's really impressive. I can't wait until this becomes available for download and I can start learning how to make my application look like that! Nice job... -Jeff ----- Original Message ----- From: "Paul Spencer" To: Sent: Tuesday, May 17, 2005 5:27 PM Subject: [UMN_MAPSERVER-USERS] ka-Map: new open source project > ka-Map: new open source project > =============================== > > http://ka-Map.maptools.org/ > > DM Solutions Group is pleased to annouce the release of a new MapTools > open source project aimed at the growing interest in highly interactive, > javascript mapping applications based on MapServer. Here are some > details ... > > ka-Map provides many of the features that one should expect in a > state-of-the-art web-mapping application. > > Features include: > > * tile-based continuous panning > > * no page reloading > > * keymap, legend and scalebar > > * zoom in/zoom out > > * keyboard navigation > > * sliding effects for panning on double click (ok, that one's for fun!) > > We have also implemented some advanced features that are more in tune > with the MapServer community's needs: > > * configuration can include multiple map files with different extents, > image formats, and scales for each map file. Client side interface can > include the ability to change between map files > > * ability to have layer visibility controls by drawing each GROUP as a > separate HTML layer on the client side > > * ability to use HTML legend template to build more advanced layer > controls > > * flexible tile caching system > > * separation of the javascript logic from the HTML page to provide an > API with which to build your applications > > ka-Map is built on AJAX principles and uses the XmlHttpRequest object to > communicate with the server, providing a much more responsive user > interface. The server side is implemented using PHP/MapScript (what > else!) but could easily be replaced with anything that would spit out > the equivalent javascript in response to the various requests. > > ka-Map uses cached tiles generated on demand by drawing much larger map > images and slicing them up. The caching mechanism is currently quite > simplistic and could not handle large data projects, but it is > definitely sufficient for getting started. There are issues with this > kind of tile generation, but it is almost essential for performance > given the current state of the art. > > ka-Map is aiming to be an API for developing mapping applications. As > such, we are hoping it will be picked up by, and integrated into, some > of the other open source projects such as MapBender, ZMapServer, > GeoServer, and (of course) Chameleon. > > The home of ka-Map is: > > http://ka-Map.maptools.org > > Downloads and CVS are not quite ready, but you can try out the interface > by visiting our first public site based on this technology (basic > features only in this one): > > http://maps.dmsolutions.ca/ > > Subscribe to the user list to find out when downloads and CVS access are > available, and also to participate in the ongoing development and > testing of this new technology. > > http://lists.maptools.org/mailman/listinfo/ka-map-users > > We are hoping this project will engage the MapServer community's > interest and gain momentum from user contributions. Please join up and > start contributing if you are interested in this technology! > > Sincerely, > > Paul > -- > +-----------------------------------------------------------------+ > |Paul Spencer pspencer at dmsolutions.ca | > +-----------------------------------------------------------------+ > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > +-----------------------------------------------------------------+ > From ARyan at CO.LINN.OR.US Wed May 18 10:59:55 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 18 May 2005 10:59:55 -0700 Subject: SWIG Mapscript: Checking for label object Message-ID: Mapscripters, Labels are drawn for a class with as little as 'LABEL END' in the map file. That's pretty cool. But how can I tell, using mapscript, if such a label is defined? classObj.label returns an object regardless. Hints? Adam From maphew at GMAIL.COM Wed May 18 11:03:25 2005 From: maphew at GMAIL.COM (Matt Wilkie) Date: Wed, 18 May 2005 11:03:25 -0700 Subject: ka-Map: new open source project In-Reply-To: <428A61C4.4060508@dmsolutions.ca> Message-ID: Great work Paul! I've been out of the Mapserver universe for a couple of years and it's really wonderful to see how things have really moved along. I'm looking forward to getting my hands dirty again. :) -matt From gmanepal at GMAIL.COM Wed May 18 12:15:04 2005 From: gmanepal at GMAIL.COM (Giridhar Manepalli) Date: Wed, 18 May 2005 15:15:04 -0400 Subject: Retrieve all points from a Layer with 'POINT' Geometry Message-ID: Hello All, Did anyone try getting all the lat and long from a POINT Layer? By using Mapserver, Mapscript or any 3rd party tools. I want to try displaying them on the client side, possibly with all the attributes the shapefile contains. Other way: I remember someone achieving this. But, I dont know how. The only thing I remember is, he used GML for transferrring the lat-long and attributes. I really appreciate if anyone can point me in the right direction. Best Regards, Giridhar From varun00157 at YAHOO.COM Wed May 18 12:49:30 2005 From: varun00157 at YAHOO.COM (Sri Varun Muthyala) Date: Wed, 18 May 2005 14:49:30 -0500 Subject: help with map server installation. Message-ID: hello every one I am a summer intern at Great Lakes Environmental Research lab i need to install Map Server on UNIX system but iam totally confused about how to start off. when i went through various tutorials i could not understand what other supporting software that i need to install and if any one has a detailed description of step by step procedures please send me an email at varun00157 at yahoo.com i would really appreciate some one helping me to install the software. thanks best regards varun From sgillies at FRII.COM Wed May 18 13:23:49 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 18 May 2005 14:23:49 -0600 Subject: SWIG Mapscript: Checking for label object In-Reply-To: Message-ID: On May 18, 2005, at 11:59 AM, Ryan, Adam wrote: > Mapscripters, > > Labels are drawn for a class with as little as 'LABEL END' in the map > file. > That's pretty cool. > > But how can I tell, using mapscript, if such a label is defined? > classObj.label returns an object regardless. > > Hints? > > Adam > Adam, That's right, all classObjs have a default label. Whether or not a class is labeled depends on the parent layer's labelitem. Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From chodgson at REFRACTIONS.NET Wed May 18 13:49:40 2005 From: chodgson at REFRACTIONS.NET (Chris Hodgson) Date: Wed, 18 May 2005 13:49:40 -0700 Subject: WCS Server Problems Message-ID: I am trying to setup a WMS/WCS server using mapserver, and right now I am getting a segfault if I ask for any significantly sized map. Very small maps seem to come out ok (ie. only a few meters wide and/or only a few pixels wide). Following is a (long but hopefully complete) description of my situation: I'm running on Fedora Core 1 Linux, with gdal-1.2.0 and proj-4.4.8 and I have mapserver 4.4.1, freshly compiled: MapServer version 4.4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My mapfile is fairly simple, it looks like this: MAP NAME BC_DEM EXTENT 250000 250000 1900000 1900000 SIZE 550 550 SHAPEPATH "/home/chodgson/mapfiles/wcs/" UNITS meters IMAGECOLOR 0 0 0 IMAGETYPE gtiff PROJECTION "init=epsg:3005" END DEBUG ON CONFIG CPL_DEBUG "ON" WEB METADATA "ows_name" "BC_DEM" "ows_title" "British Columbia DEM" "ows_label" "British Columbia DEM" "ows_onlineresource" "http://kraken/mapserv/mapserv?map=/home/chodgson/mapfiles/wcs.map&" "ows_srs" "EPSG:4269 EPSG:3005" end END LAYER NAME "DEM" DATA "test.tif" TYPE RASTER STATUS ON DEBUG ON DUMP true METADATA "ows_name" "DEM" "ows_title" "DEM" "ows_label" "DEM" "wcs_rangeset_name" "height" "wcs_rangeset_label" "height in meters" "wcs_formats" "gtiff" "wcs_nativeformat" "gtiff" END PROJECTION "init=epsg:3005" END END END The single image (test.tif) that I have looks like this in gdalinfo: Driver: GTiff/GeoTIFF Size is 1024, 1024 Coordinate System is: PROJCS["unnamed", GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.2572221010042, AUTHORITY["EPSG","7019"]], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich",0], UNIT["degree (supplier to define representation)",0.01745329251994328], AUTHORITY["EPSG","4269"]], PROJECTION["Albers_Conic_Equal_Area"], PARAMETER["standard_parallel_1",58.50000000000006], PARAMETER["standard_parallel_2",50.00000000000005], PARAMETER["latitude_of_center",45.00000000000004], PARAMETER["longitude_of_center",-126], PARAMETER["false_easting",1000000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]]] Origin = (250000.000000,1900000.000000) Pixel Size = (1611.32812500,-1611.32812500) Corner Coordinates: Upper Left ( 250000.000, 1900000.000) (140d 2'58.91"W, 61d24'47.84"N) Lower Left ( 250000.000, 250000.000) (135d48'24.81"W, 46d47'34.56"N) Upper Right ( 1900000.000, 1900000.000) (109d14'9.65"W, 61d 7'15.25"N) Lower Right ( 1900000.000, 250000.000) (114d15'52.42"W, 46d35'14.50"N) Center ( 1075000.000, 1075000.000) (124d50'3.47"W, 54d40'11.64"N) Band 1 Block=1024x8 Type=Byte, ColorInterp=Gray When I query my server like this (yah, it's a WMS request but the same happens with a similar wcs request): http://kraken/mapserv/mapserv_wcs?map=/home/chodgson/mapfiles/wcs.map&version=1.1.0&request=getmap&layers=DEM&service=WMS&srs=epsg:3005&bbox=250000,250000,350000,350000&height=10&width=10&format=gtiff I get a segfault - ie. it shows up in the browser as a 500 error, in the apache log as an "unexpected end of headers", and segfaults on the command-line. This request however, succeeds (notice the one-meter sized bbox): http://kraken/mapserv/mapserv_wcs?map=/home/chodgson/mapfiles/wcs.map&version=1.1.0&request=getmap&layers=DEM&service=WMS&srs=epsg:3005&bbox=250000,250000,250001,250001&height=10&width=10&format=gtiff The only debug output I'm getting is: GDAL: GDALOpen(/home/chodgson/mapfiles/wcs/test.tif) succeeds as GTiff. Can anyone help me out here? Sorry, it's on an internal server so those urls aren't internet accessible. Thanks, Chris From pspencer at DMSOLUTIONS.CA Wed May 18 14:01:08 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Wed, 18 May 2005 17:01:08 -0400 Subject: help with map server installation. In-Reply-To: Message-ID: try http://www.maptools.org/fgs/ Sri Varun Muthyala wrote: > hello every one > > I am a summer intern at Great Lakes Environmental Research lab i need to > install Map Server on UNIX system but iam totally confused about how to > start off. when i went through various tutorials i could not understand what > other supporting software that i need to install and if any one has a > detailed description of step by step procedures please send me an email at > varun00157 at yahoo.com > > i would really appreciate some one helping me to install the software. > > thanks > > best regards > > varun > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From Jeroen.Ticheler at FAO.ORG Wed May 18 14:09:01 2005 From: Jeroen.Ticheler at FAO.ORG (Jeroen Ticheler) Date: Wed, 18 May 2005 23:09:01 +0200 Subject: SLD and other configuration export from ArcMap Message-ID: Hi all, Sorry for cross postings. I have a fairly successful tool that allows one to export an ArcMap project to an ArcIMS AXL configuration file ( http:// arcscripts.esri.com/details.asp?dbid=12766 ) . What I would really like to do with this tool is to allow it to export configuration files for other map servers. All it needs is XSLT's to transform the AXL into those files needed, it would basically be a last additional step in the process after creating the AXL as a DOM document. My idea is that it would create SLD files, but eventually also create full XML documents that contain the metadata as it was described in ArcCatalog and all configuration details needed for a layer or set of layers. Such a document can than be inserted into GeoNetwork where it can be accessed by GeoServer, MapServer etc.. through WCAS 2. The map servers can than convert the information into their respective configuration files and start the services from there. There is for sure some work to be done to reach that stage, but simply generating SLD, .map files etc could be a first step. I have the source code of the application available for those interested in implementing this. It is located at https:// sourceforge.net/projects/arcmaptools/ Unfortunately due to time constraints I have not been able to do much on the application for a long time, but it runs just fine in ArcMap 8 and 9. There is one shortcoming to the tool, related to the complexity of the label rendering in ArcMap and the difference in approach taken by ArcIMS. Not sure if that would be a severe limitation at this stage. Someone might want to take it up to also add that part :-) If you are interested in contributing to this, I am looking forward to your reply! Greetings, Jeroen From sroberts at UCAR.EDU Wed May 18 16:44:31 2005 From: sroberts at UCAR.EDU (Steve Roberts) Date: Wed, 18 May 2005 18:44:31 -0500 Subject: Problem with Graticule and polar stereographic projection Message-ID: Hello, I am having problems with using a graticule on a polar stereographic projection. When the map is centered near the north pole all the lat/lon lines disappear from the center of the image. You can find an example at: http://www.joss.ucar.edu/cgi-bin/catalog/mapserv?mode=map&layer=GRID&map=/web/catalog/bug/grid_test.map I'm also seeing spurious straight line segments that parallel the latitude lines. This site is using mapserver-4.2.3 on SunOS 5.9 sparc SUNW,Ultra-6. However I see the same problem with mapserver-4.4.2 on linux Mandrake 10.1. Any help in solving this problem would be greatly appreciated. Below is the sample grid_test.map file. Thanks, Steve --------------begin grid_test.map--------------------------------- MAP NAME test STATUS ON SIZE 600 600 EXTENT -1000000 -1100000 900000 1000000 UNITS meters IMAGECOLOR 255 255 255 OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END PROJECTION "proj=stere" "ellps=WGS84" "datum=WGS84" "lat_0=90" "lat_ts=67.5" "lon_0=-155" "units=m" END LAYER NAME "GRID" TRANSPARENCY 30 PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END TYPE LINE STATUS OFF CLASS COLOR 0 0 0 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 0 OUTLINECOLOR 255 255 255 END END GRID LABELFORMAT "DDMMSS" END END END ---------------end grid_test.map--------------------------- From wildrov at BELLSOUTH.NET Wed May 18 20:16:07 2005 From: wildrov at BELLSOUTH.NET (Dave Tee) Date: Wed, 18 May 2005 22:16:07 -0500 Subject: Easy $100.00 for the working example Message-ID: Greetings All, I have been banging my head againest the desk now for 2 weeks and all I have is a lot of frustrution to show for it. I am sure for some one that knows what they are doing....it is a pretty easy task. I feel pretty sure that after seeing a working example I will pick right up on it.....but I can not seem to get there. So I am offering $100.00 paypal to the first one that gives me a working example of an GeoTiff and a raster with Lat and long display. I will supply both shots. I can supply lat and long of the corners for both. I can supply m/pixel for both. To take the money I need a working example of both with Lat and Long displayed from the mouse over. Payment is yours as soon as I have it running on my server. (Happily I might add!!!) All I need is a method of contact. Dave From sgillies at FRII.COM Wed May 18 20:38:25 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 18 May 2005 21:38:25 -0600 Subject: Problem with Graticule and polar stereographic projection In-Reply-To: Message-ID: On May 18, 2005, at 5:44 PM, Steve Roberts wrote: > Hello, > > I am having problems with using a graticule on a polar stereographic > projection. When the map is centered near the north pole all the > lat/lon > lines disappear from the center of the image. You can find an example > at: > > http://www.joss.ucar.edu/cgi-bin/catalog/mapserv? > mode=map&layer=GRID&map=/web/catalog/bug/grid_test.map > > > I'm also seeing spurious straight line segments that parallel the > latitude > lines. This site is using mapserver-4.2.3 on SunOS 5.9 sparc > SUNW,Ultra-6. > However I see the same problem with mapserver-4.4.2 on linux Mandrake > 10.1. > Any help in solving this problem would be greatly appreciated. Below > is the > sample grid_test.map file. > > Thanks, > Steve > Steve, I'm having more success with my own graticule shapefile than with MapServer's built-in grid, and I also take care to not extend my meridians all the way to the pole. Here's a polar stereographic example: http://zcologia.com/files/stars_stere.png cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From rhysi at OMNILINK.COM.AU Wed May 18 22:19:49 2005 From: rhysi at OMNILINK.COM.AU (Rhys Ickeringill) Date: Thu, 19 May 2005 15:19:49 +1000 Subject: using LoadQuery( ) via MapScript Message-ID: Hello again list Quick question: how can I make use of LoadQuery( )? What does it do? The only examples I can find are all of the form: map.loadQuery( filename ) map.drawQuery( ) Is this all you can do with loadQuery( )? Can I access information such as what layer(s) the query related to? Can I somehow get it populate the ResultCacheMember object of the layer(s) in which the (saved) query results were located? Thanks - Rhys From p.weber at UCL.AC.UK Thu May 19 01:35:53 2005 From: p.weber at UCL.AC.UK (Patrick Weber) Date: Thu, 19 May 2005 09:35:53 +0100 Subject: Course for Mapserver beginners Message-ID: Dear all Do any of you of courses that are organised as a introduction into Mapserver and teach you all the basics to create interactive web based mapping solutions ? -- ________________________________________ Patrick Weber | p.weber at ucl.ac.uk Research Associate Centre for Advanced Spatial Analysis http://www.casa.ucl.ac.uk/ University College London ________________________________________ From philippe.gondek at GMAIL.COM Thu May 19 02:27:04 2005 From: philippe.gondek at GMAIL.COM (Philippe Gondek) Date: Thu, 19 May 2005 11:27:04 +0200 Subject: FATAL ERROR WITH REFERENCEMAPOBJECT Message-ID: Fatal error: [MapServer Error]: msImageLoadGD(): (/var/www/htdocs/miam/regions.png) in /var/www/localhost/htdocs/miam/monscript.php on line 157 That's the error... And that is th e way I do : $mapref=$map->reference; $mapref->set("image","/var/www/htdocs/miam/regions.png"); $mapref->extent->minx = $xmin; $mapref->extent->miny = $ymin; $mapref->extent->maxx = $xmax; $mapref->extent->maxy = $ymax; - - - $image3=$map->drawReferenceMap(); $ScaleBar_url = $image3->saveWebImage(); Am I wrong ??? Thank you... From oubinny at HOTMAIL.COM Thu May 19 02:44:40 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Thu, 19 May 2005 04:44:40 -0500 Subject: Get attribute values from MapInfo files Message-ID: Hello, I would like to get some attributes values from MapInfo files with phpMapscript. My Purpose is to get infomation about layers in my map. I know that easy for shapefiles. can you help me ? Thanks Mehdi From arnulf.christl at CCGIS.DE Thu May 19 03:49:05 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Thu, 19 May 2005 12:49:05 +0200 Subject: Course for Mapserver beginners In-Reply-To: <428C4FE9.4070306@ucl.ac.uk> Message-ID: Patrick Weber wrote: > Dear all > > Do any of you of courses that are organised as a introduction into > Mapserver and teach you all the basics to create interactive web based > mapping solutions ? > > > -- > ________________________________________ > > Patrick Weber | p.weber at ucl.ac.uk > > Research Associate > > Centre for Advanced Spatial Analysis > http://www.casa.ucl.ac.uk/ > > University College London > ________________________________________ Hi, the Geo-Consortium has PostgreSQL/PostGIS, MapServer, Mapbender, AMeiN!, OGC and general SDI development in their curricula. We are planning to internationalize training as we receive more and more requests from all over the world. We currently have a fixed timetable for courses in Germany only. CCGIS already for years gives trainings, consulting and talks anywhere. If you get together enough people to pay our horrendous checks you can get us for a single day or full week to do anything you like. Well - almost anything... :-) Best, Arnulf Christl. -- -------------------------- Arnulf B. Christl -------------------------- http://wms1.ccgis.de/ewiki -------------------------- http://www.ccgis.org http://www.mapbender.org http://www.geo-consortium.de -------------------------- From oubinny at HOTMAIL.COM Thu May 19 04:41:22 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Thu, 19 May 2005 06:41:22 -0500 Subject: Get attribute values from MapInfo files Message-ID: I know how to use the mapfile. Can i use getShape() and others methodes about shapfiles with Mapinfo files ? From jmckenna at DMSOLUTIONS.CA Thu May 19 05:50:15 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Thu, 19 May 2005 08:50:15 -0400 Subject: Course for Mapserver beginners In-Reply-To: <428C4FE9.4070306@ucl.ac.uk> Message-ID: the mapserver meeting next month in the U.S. has several workshops geared for that (http://mapserver.gis.umn.edu/mum/mtg2005.html) but spaces are filling. Also you can still download the workshops and data from last year's meeting and complete them on your own: http://www.omsug.ca/osgis2004/proceedings.html jeff Patrick Weber wrote: > Dear all > > Do any of you of courses that are organised as a introduction into > Mapserver and teach you all the basics to create interactive web based > mapping solutions ? > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From philippe.gondek at GMAIL.COM Thu May 19 05:56:19 2005 From: philippe.gondek at GMAIL.COM (Philippe Gondek) Date: Thu, 19 May 2005 14:56:19 +0200 Subject: Separate HTML from the PHP code Message-ID: Hi list, I have made any tests with PHP/Mapscript, and I want now to begin with a good base. I read it's better to separate HTML from the PHP code. But I don't know how. Must I have the fucntion in my .php file and call this fucntion in my .phtml file with the tags ??? Can I have a little example with one function... Thank you... From bluecarto at GMAIL.COM Thu May 19 06:22:49 2005 From: bluecarto at GMAIL.COM (Pierre GIRAUD) Date: Thu, 19 May 2005 15:22:49 +0200 Subject: Separate HTML from the PHP code In-Reply-To: Message-ID: You'll have to use what is called "templates". To be simple, a template is a HTML like file in which some variable parts are parsed by a php code. Smarty, phpLib or EasyTemplate (http://et.geomaticien.com/) are some template engines. You'll find more information and examples on each documentation. The best reason to use templates (seperate HTML from the php code) is to get the design and the programming code well seperated. That way you will easily be able to confide the look of your website to a designer that don't understand anything to php coding. Regards Pierre GIRAUD On 5/19/05, Philippe Gondek wrote: > Hi list, > > I have made any tests with PHP/Mapscript, and I want now to begin with > a good base. I read it's better to separate HTML from the PHP code. > But I don't know how. > > Must I have the fucntion in my .php file and call this fucntion in my > .phtml file with the tags ??? > > Can I have a little example with one function... > > Thank you... > From pspencer at DMSOLUTIONS.CA Thu May 19 06:30:13 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Thu, 19 May 2005 09:30:13 -0400 Subject: Separate HTML from the PHP code In-Reply-To: Message-ID: And that, in effect, is what Chameleon does for mapserver. Application design can be accomplished (and is on a daily basis) by web-savvy developers with no php knowledge, while the functionality is controlled by php-mapscript developers with no design sense ;) http://chameleon.maptools.org/ Cheers Paul Pierre GIRAUD wrote: > You'll have to use what is called "templates". > To be simple, a template is a HTML like file in which some variable > parts are parsed by a php code. > > Smarty, phpLib or EasyTemplate (http://et.geomaticien.com/) are some > template engines. > You'll find more information and examples on each documentation. > > The best reason to use templates (seperate HTML from the php code) is > to get the design and the programming code well seperated. That way > you will easily be able to confide the look of your website to a > designer that don't understand anything to php coding. > > Regards > > Pierre GIRAUD > > On 5/19/05, Philippe Gondek wrote: > >>Hi list, >> >>I have made any tests with PHP/Mapscript, and I want now to begin with >>a good base. I read it's better to separate HTML from the PHP code. >>But I don't know how. >> >>Must I have the fucntion in my .php file and call this fucntion in my >>.phtml file with the tags ??? >> >>Can I have a little example with one function... >> >>Thank you... >> > > > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From mweinelt at PLANIGLOBE.COM Thu May 19 07:03:24 2005 From: mweinelt at PLANIGLOBE.COM (Martin Weinelt) Date: Thu, 19 May 2005 16:03:24 +0200 Subject: Problem with Graticule and polar stereographic projection Message-ID: On Thursday 19 May 2005 01:44, Steve Roberts wrote: > Hello, > > I am having problems with using a graticule on a polar stereographic > projection. When the map is centered near the north pole all the lat/lon > lines disappear from the center of the image. You can find an example at: > > http://www.joss.ucar.edu/cgi-bin/catalog/mapserv?mode=map&layer=GRID&map=/web/catalog/bug/grid_test.map > > > I'm also seeing spurious straight line segments that parallel the latitude > lines. This site is using mapserver-4.2.3 on SunOS 5.9 sparc SUNW,Ultra-6. > However I see the same problem with mapserver-4.4.2 on linux Mandrake 10.1. > Any help in solving this problem would be greatly appreciated. Below is the > sample grid_test.map file. > > Thanks, > Steve Steve, I am struggling with a related problem for quite a while now (since 3.6). ? Reprojecting lat/lon-data such as shapefiles or WFS-data to areas around the poles result in unpredictable rendering by mapserver. In our case it is Lambert Azimuthal Equal Area in polar aspect, but I remember some postings regarding Orthographic as well. Graticule layers do not work as expected for these projections as well and look similar to your example. Parts of the data (or graticule) get 'clipped' by Mapserver for specific map extents. When zooming to smaller areas data and graticule show up. But with mapextents including the pole(s) things get messed up. I guess reprojecting itself is not the problem because I can use Proj-based utilities to project my data in advance and they show up just fine. I have the impression that mapserver - before rendering - decides which features fall outside the mapextent, discards these features and at this stage is not always right. Just a guess. Cheers, Martin From fwarmerdam at GMAIL.COM Thu May 19 07:12:37 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 19 May 2005 10:12:37 -0400 Subject: Problem with Graticule and polar stereographic projection In-Reply-To: <200505191603.24926.mweinelt@planiglobe.com> Message-ID: Steve / Martin, One problem with the automatic graticule generation is that it produces a single polyline for each complete gridline. If mapserver fails to reproject any single point on the polyline, then the whole polyline is discarded since it cannot be reliably rendered. This means, for instance, that if you show a pole, and for reasons of the math the polar location is not reprojectable, then the whole line of longitude will be discarded. In the past, I have created actual graticule shapefiles using many small line segments. That way you just lose a wee bit of the graticule near the pole or on the fringes of the reprojectable region. I implemented a mkgraticule.py script in GDAL for doing this, if you would like to try it (gdal/pymod/mkgraticule.py in the source tree). Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From d.lowe at RL.AC.UK Thu May 19 07:31:16 2005 From: d.lowe at RL.AC.UK (Dominic Lowe) Date: Thu, 19 May 2005 15:31:16 +0100 Subject: Blank Geotiff Message-ID: I've just set up a mapserver WCS that doesn't seem to want to serve GeoTiffs... The WCS is working fine for png/jpeg but whenever I request a Geotiff I just get back a blank (grey..) screen. 0kb are returned. However I am sure the GDAL GTiff driver is being recognised as there is no error message. i.e. If I request a "png" I get an image. If I request a "geotiff" I get a null grey screen. If I request a "banana" I get an error message. I've configured GDAL with --with-libtiff=internal and --with-geotiff=internal. Mapserver is configured --without-tiff (so it will use the GDAL drivers). However I have also tried to compile GDAL with external libtiff and libgeotiff libraries but it doesn't seem to make any difference to the result.. Output format is declared as: OUTPUTFORMAT NAME Geotiff DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE BYTE EXTENSION "tif" END Any thoughts? Regards Dominic From nbarker at RSINC.COM Thu May 19 07:43:08 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Thu, 19 May 2005 15:43:08 +0100 Subject: Blank Geotiff Message-ID: -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Dominic Lowe Sent: Thursday, May 19, 2005 3:31 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Blank Geotiff I've just set up a mapserver WCS that doesn't seem to want to serve GeoTiffs... The WCS is working fine for png/jpeg but whenever I request a Geotiff I just get back a blank (grey..) screen. 0kb are returned. However I am sure the GDAL GTiff driver is being recognised as there is no error message. i.e. If I request a "png" I get an image. If I request a "geotiff" I get a null grey screen. If I request a "banana" I get an error message. I've configured GDAL with --with-libtiff=internal and --with-geotiff=internal. Mapserver is configured --without-tiff (so it will use the GDAL drivers). However I have also tried to compile GDAL with external libtiff and libgeotiff libraries but it doesn't seem to make any difference to the result.. Output format is declared as: OUTPUTFORMAT NAME Geotiff DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE BYTE EXTENSION "tif" END Any thoughts? Regards Dominic Hi Dominic, I think you definition should be OUTPUTFORMAT NAME Geotiff DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE FLOAT32 EXTENSION "tif" END since your data is floating point if I remember correctly. Norman Barker Drop me an email, or phone if you have any problems. From ARyan at CO.LINN.OR.US Thu May 19 07:43:38 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Thu, 19 May 2005 07:43:38 -0700 Subject: using LoadQuery( ) via MapScript Message-ID: Adam Ryan GIS Analyst Linn County GIS Department County Courthouse / Room 25 300 SW Fourth Ave. Albany, OR 97321 541.812.8760 aryan at co.linn.or.us > -----Original Message----- > From: Rhys Ickeringill [mailto:rhysi at OMNILINK.COM.AU] > Sent: Wednesday, May 18, 2005 10:20 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] using LoadQuery( ) via MapScript > > > Hello again list > > Quick question: how can I make use of LoadQuery( )? What does > it do? The only examples I can find are all of the form: > > map.loadQuery( filename ) > map.drawQuery( ) > > Is this all you can do with loadQuery( )? Can I access > information such as what layer(s) the query related to? Can I > somehow get it populate the ResultCacheMember object of the > layer(s) in which the (saved) query results were located? > > Thanks > > - Rhys > Rhys, Don't forget saveQuery! With mapObj.saveQuery() you can save a small qry file to disk which is basically a list of record numbers associated with all the current resultCacheObjs. In another session you can reload that query 'state' into your map by using mapObj.loadQuery(). You would have to pass the filename to the user and get it back, obviously, for this to work. What I do is generate a random number, say foo, and generate a file called "temp/qf" + str(foo) + ".qry", but only send foo. Keep in mind that save and load work on the mapObj level, so it will save (and load) the cache for all layers that have one. Also, it uses the layer index value, so the layers and the order of the layers in the map needs to be the same between the load and save. DrawQuery is only related to the others in that you can only visialize your query stat by calling a drawQuery() as opposed to draw(). Hope it helps, Adam From mweinelt at PLANIGLOBE.COM Thu May 19 07:45:53 2005 From: mweinelt at PLANIGLOBE.COM (Martin Weinelt) Date: Thu, 19 May 2005 16:45:53 +0200 Subject: Problem with Graticule and polar stereographic projection In-Reply-To: <931f8ea9050519071267833bc4@mail.gmail.com> Message-ID: On Thursday 19 May 2005 16:12, Frank Warmerdam wrote: > Steve / Martin, > > One problem with the automatic graticule generation is that it produces > a single polyline for each complete gridline. If mapserver fails to > reproject any single point on the polyline, then the whole polyline is > discarded since it cannot be reliably rendered. This means, for instance, > that if you show a pole, and for reasons of the math the polar location > is not reprojectable, then the whole line of longitude will be discarded. > > In the past, I have created actual graticule shapefiles using many small > line segments. That way you just lose a wee bit of the graticule near > the pole or on the fringes of the reprojectable region. > > I implemented a mkgraticule.py script in GDAL for doing this, if you > would like to try it (gdal/pymod/mkgraticule.py in the source tree). Frank, I am using your your utility apps really a lot. They save me countless hours of quirky aml scripting. Thanks! But although we can do with workarounds or pre-projected data for the graticule problem, this is not the case with data dynamically retrieved from a data base or a WFS. Mapserver has strong evangelists in the academic realm but these institutions do have a demand for world mapping applications and data-base based mapserver installations. The issue of reprojecting for world maps in different aspects - imho - will come up regularly. Cheers, Martin From fwarmerdam at GMAIL.COM Thu May 19 08:02:35 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 19 May 2005 11:02:35 -0400 Subject: WCS Server Problems In-Reply-To: <428BAA64.3060202@refractions.net> Message-ID: On 5/18/05, Chris Hodgson wrote: > I am trying to setup a WMS/WCS server using mapserver, and right now I > am getting a segfault if I ask for any significantly sized map. Very > small maps seem to come out ok (ie. only a few meters wide and/or only a > few pixels wide). Chris, I haven't tried to reproduce your problem, but I would strongly encourage you to update to MapServer 4.6 beta for WCS serving. A number of bugs have been fixed in the 4.6 stream. Sorry for the non-answer. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From gtaylo2 at CLEMSON.EDU Thu May 19 08:26:20 2005 From: gtaylo2 at CLEMSON.EDU (Greg Taylor) Date: Thu, 19 May 2005 11:26:20 -0400 Subject: Maximum Raster Image Size? Message-ID: I was wondering what the maximum raster file size is for adding a layer to be displayed. I have a 260+ Meg file that we want to put a label shapefile layer on top of. Currently I'm getting a blank white image back when I add the layer with the .tif and we're wondering if it's because of the size. Will mapserver handle 200+ meg raster files? It's not important that the whole thing is shown at once but we'd like to be able to display some chunks. From ed at TOPOZONE.COM Thu May 19 08:50:31 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 19 May 2005 11:50:31 -0400 Subject: Maximum Raster Image Size? Message-ID: Greg - As I mentioned yesterday, there is nothing at all unusual about TIFF images of that size. I use tens of thousands of 100MB - 500MB TIFF images in MapServer every day. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Greg Taylor Sent: Thursday, May 19, 2005 11:26 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Maximum Raster Image Size? I was wondering what the maximum raster file size is for adding a layer to be displayed. I have a 260+ Meg file that we want to put a label shapefile layer on top of. Currently I'm getting a blank white image back when I add the layer with the .tif and we're wondering if it's because of the size. Will mapserver handle 200+ meg raster files? It's not important that the whole thing is shown at once but we'd like to be able to display some chunks. From ed at TOPOZONE.COM Thu May 19 08:54:43 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 19 May 2005 11:54:43 -0400 Subject: Easy $100.00 for the working example Message-ID: Dave - Instead of $100, why don't you give us a little more information? You say you have a "GeoTIFF and a raster" as if they were two different things. Do you have two images? If so, you have two rasters - what file format is used by each (GeoTIFF is a file format - are they BOTH GeoTIFF?). If they are both GeoTIFF, can you run the "listgeo" tool on each and post the output? Thanks. Please realize that a mouseover coordinate display is a DHTML implementation that runs in the client browser. Although such front ends are common with MapServer applications, they're a separate issue from MapServer itself. You should treat your project as two separate pieces - the image display and the coordinate display parts. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dave Tee Sent: Wednesday, May 18, 2005 11:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Easy $100.00 for the working example Greetings All, I have been banging my head againest the desk now for 2 weeks and all I have is a lot of frustrution to show for it. I am sure for some one that knows what they are doing....it is a pretty easy task. I feel pretty sure that after seeing a working example I will pick right up on it.....but I can not seem to get there. So I am offering $100.00 paypal to the first one that gives me a working example of an GeoTiff and a raster with Lat and long display. I will supply both shots. I can supply lat and long of the corners for both. I can supply m/pixel for both. To take the money I need a working example of both with Lat and Long displayed from the mouse over. Payment is yours as soon as I have it running on my server. (Happily I might add!!!) All I need is a method of contact. Dave From Debbie.Pagurek at EC.GC.CA Thu May 19 08:48:01 2005 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Thu, 19 May 2005 11:48:01 -0400 Subject: Windows binaries for 4.6beta2? Message-ID: I've looked around but can't seem to find the windows binaries for Mapserver 4.6beta2. Are they available somewhere? Thanks, D. Pagurek From logicalgenetics at GMAIL.COM Thu May 19 09:02:32 2005 From: logicalgenetics at GMAIL.COM (Dan Taylor) Date: Thu, 19 May 2005 17:02:32 +0100 Subject: Problems installing PHP Mapscript - HELP! Message-ID: Hi, I am currently trying to install php mapscript on a Fedora 2 machine. I have done the following... ./configure --with-ogr --with-gdal --with-jpeg --with-proj --with-php=/usr/include/php/ make su cp -f mapserv /var/www/cgi-bin/mapserv40 cp -f mapscript/php3/php_mapscript.so /usr/lib/php4/ And used the following PHP snippet to test it... The output of phpinfo() is displayed correctly, but the php_mapscript module is not loaded. I can confirm this by adding... extension_loaded("php_mapscript") ... to the script. I'm using PHP version 4.3.10-2.4. I haven't observed any errors when compiling mapserver using the commands above. I've also restarted httpd several times using "service httpd restart". Here's the output: http://213.210.59.141/php-mapserver-test.php What have I forgotten? Cheers, Dan -- Dan Taylor Software Development Engineer, JTL Systems Ltd PhD Student, Reading University, UK http://www.logicalgenetics.com From assefa at DMSOLUTIONS.CA Thu May 19 09:13:11 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 19 May 2005 12:13:11 -0400 Subject: Windows binaries for 4.6beta2? In-Reply-To: <3F34A5A15450C74C813BA20E31DBB45195863B@ncrx3.ncr.int.ec.gc.ca> Message-ID: Debbie, I will put one later today on maptools.org. Later, Pagurek,Debbie [NCR] wrote: > I've looked around but can't seem to find the windows binaries for > Mapserver 4.6beta2. Are they available somewhere? > > Thanks, > D. Pagurek > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From logicalgenetics at GMAIL.COM Thu May 19 09:27:43 2005 From: logicalgenetics at GMAIL.COM (Dan Taylor) Date: Thu, 19 May 2005 17:27:43 +0100 Subject: Problems installing PHP Mapscript - HELP! In-Reply-To: <830dd37405051909024ca26091@mail.gmail.com> Message-ID: Editted /etc/php.ini and turned on error reporting. This gave me the error... Warning: dl(): Unable to load dynamic library '/usr/lib/php4/php_mapscript.so' - libgdal.so.1: cannot open shared object file: No such file or directory in /var/www/html/php-mapserver-test.php on line 11 ...which at least let me know what was happening. Running the command... ln -s /usr/local/lib/libgdal.so.1.7.0 /usr/lib/libgdal.so.1 ...solved the problem. Phew! Dan -- Dan Taylor Software Development Engineer, JTL Systems Ltd PhD Student, Reading University, UK http://www.logicalgenetics.com From MHoward at SPACEIMAGING.COM Thu May 19 09:50:20 2005 From: MHoward at SPACEIMAGING.COM (Howard Mark) Date: Thu, 19 May 2005 10:50:20 -0600 Subject: getfeatureinfo and feature_count order Message-ID: I have a project where I need to limit the number of features returned by getfeatureinfo. I want the set of features returned to be selected by attribute precedence - e.g. most recent, highest score..... The data is in shapefile format with a shptree index. The data is in no particular order. I assume that the getfeatureinfo routine just traverses the index file and stops at record n where n=feature_count. I also assume that the index file is in the same order as the source shapefile; and that one way to get what I want is to build the shapefile in the correct order. So I have four questions: 1. Are my assumptions correct? 2. Is there a way to specify the order of retrieval in the map file- or another simple way with the configuration or URL string? 3. Failing that - is there a way to build an index ordered by feature attribute(s)? 4. Failing that is there a way to re-order a shapefile by feature attributes(s)? Unfortunately the shapefile is dynamic - we get a new one daily. TIA for any help!!!! 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 fwarmerdam at GMAIL.COM Thu May 19 10:58:21 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 19 May 2005 13:58:21 -0400 Subject: OutputFormat ImageMap, PostGIS and SymbolHref In-Reply-To: <008201c55bb2$dfac3b40$117fa8c0@jenna> Message-ID: On 5/18/05, Jean David TECHER wrote: > Hi > > I have a mapfile in imagemap outputformat with a layer with a PostGIS layer > I use mapserver cvs >... > > The imagemap works fine on a postgis layer with > > type polygon but > > > doesn't to work for > > type point > > I means that from the '%s' gave me only the layer's name (baigande21) ...I > got from FormatOption > > affichage_popup('./info.php?uid=baignade21&dept=21','popup1')" > > Is it possible to get something like > > affichage_popup('./info.php?uid=0&dept=21','popup1')" > affichage_popup('./info.php?uid=1&dept=21','popup1')" > affichage_popup('./info.php?uid=2&dept=21','popup1')" > > and so on Or did I have to modify mapserver/mapimagemap.c???? Jean David, I don't know the real answer to your question, but I will say that the imagemap support is quite incomplete. There are many types of features not supported fully or even at all. Some work was done on this since 4.4 was released, so you could try 4.6, but you will likely need to make some improvements to mapimagemap.c yourself. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From sroberts at UCAR.EDU Thu May 19 12:00:10 2005 From: sroberts at UCAR.EDU (Steve Roberts) Date: Thu, 19 May 2005 13:00:10 -0600 Subject: Problem with Graticule and polar stereographic projection In-Reply-To: <200505191645.53523.mweinelt@planiglobe.com> Message-ID: On Thu, 19 May 2005, Martin Weinelt wrote: > On Thursday 19 May 2005 16:12, Frank Warmerdam wrote: > > Steve / Martin, > > > > One problem with the automatic graticule generation is that it produces > > a single polyline for each complete gridline. If mapserver fails to > > reproject any single point on the polyline, then the whole polyline is > > discarded since it cannot be reliably rendered. This means, for instance, > > that if you show a pole, and for reasons of the math the polar location > > is not reprojectable, then the whole line of longitude will be discarded. > > > > In the past, I have created actual graticule shapefiles using many small > > line segments. That way you just lose a wee bit of the graticule near > > the pole or on the fringes of the reprojectable region. > > > > I implemented a mkgraticule.py script in GDAL for doing this, if you > > would like to try it (gdal/pymod/mkgraticule.py in the source tree). > > > Frank, > > I am using your your utility apps really a lot. They save me countless > hours of quirky aml scripting. Thanks! > > But although we can do with workarounds or pre-projected data for > the graticule problem, this is not the case with data dynamically retrieved > from a data base or a WFS. > > Mapserver has strong evangelists in the academic realm but these institutions > do have a demand for world mapping applications and data-base based > mapserver installations. The issue of reprojecting for world maps in different > aspects - imho - will come up regularly. > > Cheers, Martin > Frank, I have in the past created my own grid shapefiles. These work fine if you know ahead of time what your range of map scales will be and your region of interest. But in my applications I need to support both large scale views of the entire arctic basin down to small scale views of just a few kilometers across. Creating shapefiles to support this start to become a real pain. And they start to get rather large. Having a built-in grid that automatically does this all for you is - imho - an extemely useful feature. Thanks for the pointer to mkgraticule.py. I was not aware this existed. Thanks, -Steve From rob at DATAFLOWDESIGN.COM Thu May 19 12:11:03 2005 From: rob at DATAFLOWDESIGN.COM (Rob P.) Date: Thu, 19 May 2005 14:11:03 -0500 Subject: OutputFormat ImageMap, PostGIS and SymbolHref In-Reply-To: <008201c55bb2$dfac3b40$117fa8c0@jenna> Message-ID: >>>>> "Jean" == Jean David TECHER writes: Jean> Hi I have a mapfile in imagemap outputformat with a layer Jean> with a PostGIS layer I use mapserver cvs Jean> ... Jean> The imagemap works fine on a postgis layer with Jean> type polygon but doesn't to work for type point Jean> I means that from the '%s' gave me only the layer's name Jean> (baigande21) ...I got from FormatOption Jean> affichage_popup('./info.php?uid=baignade21&dept=21','popup1')" Jean> Is it possible to get something like Jean> affichage_popup('./info.php?uid=0&dept=21','popup1')" Jean> affichage_popup('./info.php?uid=1&dept=21','popup1')" Jean> affichage_popup('./info.php?uid=2&dept=21','popup1')" Jean> and so on Or did I have to modify Jean> mapserver/mapimagemap.c???? Jean> ... Jean, This has worked for me in OUTPUTFORMAT: FORMATOPTION "POLYMOUSEOUT=return out(this);" FORMATOPTION "POLYMOUSEOVER=return overlib(event,'%s',this);" Rather than returning a point geometry, return a polygon. For instance: select buffer(centroid(the_geom),dist) I am not sure how I was able to get the desired data into %s. It's been a couple of months now. I think I controlled it using a sub select in the sql. I experimented with such things as LABELITEM but don't recall if it did any good. But I will share a snippet from my map file: LAYER NAME "cseis" CONNECTION "user=bogus password=bogus dbname=mydb" CONNECTIONTYPE postgis DATA "the_geom from (select oid as oid, buffer(simplify(the_geom,.001),.0010, 2) as the_geom, line_id, contractor from vw_seismic_2d) as cseis USING UNIQUE oid USING SRID=-1" Projection "proj=latlong" End TYPE polygon Class Name "cseis" OUTLINECOLOR 0 0 0 END ##FILTERITEM ?? No effect ?? LabelItem "line_id" ## Not sure if this controlled %s END I had one problem using imagemaps. If the result set was empty, my script crashed. Rob From tkirstine at JDBARNES.COM Thu May 19 12:28:09 2005 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Thu, 19 May 2005 15:28:09 -0400 Subject: Problem displaying tif (works with FWTools) Message-ID: Hi, I'm trying to display a tif image in mapserver but am encountering a problem, the tif is visable but is blank (white square). I created the images in ArcGis 9.0 as ESRI grids and exported them as tif's. When I export the grid and a RGB tif it works fine in mapserver however, if I export the image just as a tif the image is blank but it works fine if I load the image in FWTools. The reason I a basic tif and not a RGB image is that I'm trying to preserve the elevation data in the raster image Here is a sample of my mapfile and the tiffs are already georeferanced. I'm running mapserver 4.X and have GDAL This image displays fine #<<<<<<<<<<<<<<<<<<<---RGB raster----->>>>>>>>>>>>>>> LAYER NAME tif_rgb STATUS ON DATA map_app_data/dem_tiffs/test_rgb.tif TYPE RASTER METADATA DESCRIPTION "DEM tiff RGB" END MINSCALE 500 MAXSCALE 100000 TRANSPARENCY 50 END This image displays blank #<<<<<<<<<<<<<<<<<<<---elevation raster----->>>>>>>>>>>>>>> LAYER NAME tif_dem STATUS ON DATA map_app_data/dem_tiffs/test_dem.tif TYPE RASTER METADATA DESCRIPTION "DEM tiff" END MINSCALE 500 MAXSCALE 100000 END Thanks for your time Travis tkirstine at jdbarnes.com From gtaylo2 at CLEMSON.EDU Thu May 19 12:42:26 2005 From: gtaylo2 at CLEMSON.EDU (Greg Taylor) Date: Thu, 19 May 2005 15:42:26 -0400 Subject: Image Tiling Message-ID: What kind of programs/scripts do most of you use to tile .tif images? I'd be interested in playing with this. Do any of you that use tiled images notice an improvement in performance? From fwarmerdam at GMAIL.COM Thu May 19 12:42:29 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 19 May 2005 15:42:29 -0400 Subject: Problem displaying tif (works with FWTools) In-Reply-To: Message-ID: On 5/19/05, Travis Kirstine GIS Tech wrote: > Hi, > I'm trying to display a tif image in mapserver but am encountering a > problem, the tif is visable but is blank (white square). I created the > images in ArcGis 9.0 as ESRI grids and exported them as tif's. When I > export the grid and a RGB tif it works fine in mapserver however, if I > export the image just as a tif the image is blank but it works fine if I > load the image in FWTools. The reason I a basic tif and not a RGB image is > that I'm trying to preserve the elevation data in the raster image > > Here is a sample of my mapfile and the tiffs are already georeferanced. I'm > running mapserver 4.X and have GDAL > > > This image displays fine > #<<<<<<<<<<<<<<<<<<<---RGB raster----->>>>>>>>>>>>>>> > LAYER > NAME tif_rgb > STATUS ON > DATA map_app_data/dem_tiffs/test_rgb.tif > TYPE RASTER > METADATA > DESCRIPTION "DEM tiff RGB" > END > MINSCALE 500 > MAXSCALE 100000 > TRANSPARENCY 50 > END > > This image displays blank > #<<<<<<<<<<<<<<<<<<<---elevation raster----->>>>>>>>>>>>>>> > LAYER > NAME tif_dem > STATUS ON > DATA map_app_data/dem_tiffs/test_dem.tif > TYPE RASTER > METADATA > DESCRIPTION "DEM tiff" > END > MINSCALE 500 > MAXSCALE 100000 > > END Travis, For 16bit DEMs you will likely need to do some sort of scaling. By default all elevations of 255 or above will be drawn as white. Try adding the following line to your LAYER definition. If that helps, you might want to read up on scaling. I think it is covered in the raster howto. PROCESSING "SCALE=AUTO" Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From lester at LSCES.CO.UK Thu May 19 13:20:44 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Thu, 19 May 2005 21:20:44 +0100 Subject: GDV Client Message-ID: I was getting tired of the original mapserver client so I've run up a copy of the GDV Client http://home.lsces.co.uk/Maps/gdvclient/html/viewer.html Only four raster layers at the moment. Next step is to start doing some overlays and data layers ;) I still have the odd bit of German on it, but things are comming. It works nicely on Mozilla and Firefox - as long as you enable pop-up's -- Lester Caine ----------------------------- L.S.Caine Electronic Services From assefa at DMSOLUTIONS.CA Thu May 19 14:09:21 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 19 May 2005 17:09:21 -0400 Subject: Windows binaries for 4.6beta2? In-Reply-To: <3F34A5A15450C74C813BA20E31DBB45195863B@ncrx3.ncr.int.ec.gc.ca> Message-ID: Debbie, The binaries are on maptools at http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html Laterm Pagurek,Debbie [NCR] wrote: > I've looked around but can't seem to find the windows binaries for > Mapserver 4.6beta2. Are they available somewhere? > > Thanks, > D. Pagurek > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From lester at LSCES.CO.UK Thu May 19 14:23:48 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Thu, 19 May 2005 22:23:48 +0100 Subject: Windows binaries for 4.6beta2? In-Reply-To: <428D0081.1000300@dmsolutions.ca> Message-ID: Yewondwossen Assefa wrote: > The binaries are on maptools at > http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html But only for PHP4 :( -- Lester Caine ----------------------------- L.S.Caine Electronic Services From ARyan at CO.LINN.OR.US Thu May 19 15:04:05 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Thu, 19 May 2005 15:04:05 -0700 Subject: Image Tiling Message-ID: Check out Franks Tools: http://fwtools.maptools.org/ For lots of big tifs, you can't NOT tile. Adam > -----Original Message----- > From: Greg Taylor [mailto:gtaylo2 at CLEMSON.EDU] > Sent: Thursday, May 19, 2005 12:42 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Image Tiling > > > What kind of programs/scripts do most of you use to tile .tif > images? I'd be interested in playing with this. Do any of you > that use tiled images notice an improvement in performance? > From ealpert at DIGITALGLOBE.COM Thu May 19 15:19:45 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 19 May 2005 16:19:45 -0600 Subject: Image Tiling Message-ID: I use imagemagick and gdal_translate to split and build tiles from large images. Then I build a tile index with gdaltindex. As long as you tile index layers MIN/MAX scales are set right you get a pretty big performance gain. However if you're rendering many of the tiles in the same image it slows down. I create overviews for large scales and display those and have the tile index only come on at lower scales. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Greg Taylor Sent: Thursday, May 19, 2005 1:42 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Image Tiling What kind of programs/scripts do most of you use to tile .tif images? I'd be interested in playing with this. Do any of you that use tiled images notice an improvement in performance? From aaronr at ECOTRUST.ORG Thu May 19 16:21:29 2005 From: aaronr at ECOTRUST.ORG (Aaron Racicot) Date: Thu, 19 May 2005 16:21:29 -0700 Subject: Easy $100.00 for the working example Message-ID: Dave, I have been meaning to put this example out there for a while now. This is a php-mapscript based example, so I am not even sure it will help you. Here is a link to a running version on my development server: http://pearl.ecotrust.org/apps/simple_mapserver/index.phtml You should be able to plug in your rasters (as long as you have php-mapscript and it is compiled with GDAL and they are formats supported by GDAL) to the mapfile following the example here and get things going. If you are still having trouble, email the list back and we will try to help. Please include more information in your next posts, including file formats, installation specs, and examples if you have them I have made two zip files available at: http://pearl.ecotrust.org/downloads/ 1) simple_mapserver.zip This file contains a zip of a simple php-mapscript/jBox application. It is ~45 meg zip because I included two rasters for the demo, one in tif format and the other in binary ArcGRID format (80 meg DEM). It uses jBox for the rubber band and coordinate mouse over display. Do the following to get it going: - Unzip in an area that is web accessible. - Edit the global_vars.php file and modify the "APP_PATH" and "HOST_URL" variables to match your system. - Edit mapfile/simple_test.map and modify the paths for SHAPEPATH, SYMBOLSET, FONTSET, and REFERENCE IMAGE. - The temp directory where all temp files are written is "/tmp/ms_temp/". If you want to change that you will need to edit both simple_test.map and contents.php. - Install the Java applet jBox as per number 2 below. 2) simple_jbox.zip This application is hard coded in contents.php to the "/java/jBox" directory in your web URL. You either need to unzip the file there, or change the reference in the APPLET section of contents.php. Make sure that your permissions are A-OK and you should be good to go. Other items to note: - map_functions.php includes "dl('php_mapscript.so');". Make sure this matches the name of your Mapscript installation or you will need to change the name. - This application uses PHP sessions in a pretty simple way, but uses them non-the-less. - One of the downfalls of the simple way sessions are used here is that after the initial page loading, a temporary mapfile is saved and used from then on. If you have an error and modify your base mapfile to fix it, you either need to use the "logout button" or restart your browser to get a refresh of the new mapfile. Not pretty, but it is simple. - This all assumes php-mapscript compiled with GDAL support and your rasters are of a supported format. - Check out all the official docs (http://mapserver.gis.umn.edu/doc.html) and supplemental docs on things like jBox (http://mapserver.gis.umn.edu/doc44/jbox-howto.html) and php-mapscript (http://mapserver.gis.umn.edu/doc44/phpmapscript-class-guide.html) Finally, this is just a quick demo cobbled together from some of my apps, some stuff from DM Solutions, and other code out there. It is no where near a final app, but should hopefully do the trick. Also, if you send me the rasters you are dealing with (email below or send me a download link) I could try to put them up in this app on my machine so you can see it work. I am not interested in your money, but if this satisfies the criteria for your $100 and it is burning a hole in your wallet, please contact Steve Lime (steve.lime [at] DNR.STATE.MN.US) and donate the $100 to the upcoming Open Source GIS conference (or better yet use it to sign up and attend!). Again, reply to the list if you are still having problems... Aaron +----------------------------------------+ | Aaron Racicot | aaronr at ecotrust.org | | GIS Programmer | 503.467.0759 | +----------------------------------------+ | e c o t r u s t | | Jean Vollum Natural Capital Center | | 721 NW Ninth Avenue | | Suite 200 | | Portland, OR 97209 | | www.ecotrust.org | +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dave Tee Sent: Wednesday, May 18, 2005 8:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Easy $100.00 for the working example Greetings All, I have been banging my head againest the desk now for 2 weeks and all I have is a lot of frustrution to show for it. I am sure for some one that knows what they are doing....it is a pretty easy task. I feel pretty sure that after seeing a working example I will pick right up on it.....but I can not seem to get there. So I am offering $100.00 paypal to the first one that gives me a working example of an GeoTiff and a raster with Lat and long display. I will supply both shots. I can supply lat and long of the corners for both. I can supply m/pixel for both. To take the money I need a working example of both with Lat and Long displayed from the mouse over. Payment is yours as soon as I have it running on my server. (Happily I might add!!!) All I need is a method of contact. Dave From civervic at GMAIL.COM Thu May 19 16:21:16 2005 From: civervic at GMAIL.COM (Victor Bahamondes Benavente) Date: Thu, 19 May 2005 19:21:16 -0400 Subject: Problems whit MapServer's(v4.4.2) Demo. Message-ID: Hi, I download and install MapServer version 4.4.2, and download and install the Demo whit de download file name "workshop.zip" (the most recent demo, I think). I'am working whit Apache version 2.0.54. The problem I have, is: - when I open the index.html (of the Demo) file and initialize the basic option, the browser open the page itasca_basic.html whitout the images loaded. The map is not displayed. ?Why?. And when I click on the map space, the browser's show a Not Found Page (error 404).?Why? I install the external libraries: GD (whit the previous install of the libraries: freetype, zlib, libpng and jpegV6), libTIFF, libgeoTIFF, PROJ.4, GDAL, MING, PDFlib, libCurl and libiconv. To edit de respective files I read : http://mapserver.gis.umn.edu/demo_readme.html , but this peaper its little old. Thank you very much. Victor Bahamondes Benavente. Estudiante de IIA, 4? a?o. Universidad de Valparaiso. Vi?a del Mar, Chile. ps: sorry for my basic and not perfect english. From richard.greenwood at GMAIL.COM Thu May 19 20:34:34 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 20 May 2005 03:34:34 +0000 Subject: =?utf-8?b?W1VNTl9NQVBTRVJWRVItVVNFUlNd?= Easy $100.00 for the working example Message-ID: Ed McNierney TOPOZONE.COM> writes: > Please realize that a mouseover coordinate display is a DHTML > implementation that runs in the client browser. Although such front > ends are common with MapServer applications, they're a separate issue > from MapServer itself. Also note that jBox provides dynamic coordinate display. Just set your map file projection appropriately and you'll get lat/lon. jBox uses client side java rather than DHTML. From johan.e.hallgren at WMDATA.SE Thu May 19 23:41:50 2005 From: johan.e.hallgren at WMDATA.SE (Johan Hallgren) Date: Fri, 20 May 2005 01:41:50 -0500 Subject: Performance ArcIMS vs MapServer Message-ID: Hello We have created a testapplication that can be used on ArcIMS and now MapServer. Both MapServer and ArcIMS are on the same server (Windows 2000 server) with the same data (200 MB vectordata in shapefiles). MapServer is wrapped in a c#/dotnet webservice. The API to the webservice is ArcXML so both solutions have the same interface. The testapplication used sex simultaneous clients requested 500 maps each in total 3000 maps. RESULTS: MapServer Total time: 7.47 min (467 sec 0.1566 sec/map (image), 385 maps/min) Max delay for a map: 2.93 sec Min delay for a map: 0.14 sec Average for a map (with six simultaneous clients): 0.96 sec ArcIMS Total time: 12.08 min (728 sec 0.2426 sec/map (image), 247 maps/min) Max delay for a map: 3.94sec Min delay for a map: 0.12 sec Average for a map (with six simultaneous clients): 1,49 sec My calculations gives that MapServer is about 30% faster when zooming than ArcIMS Cheers Johan From mweinelt at PLANIGLOBE.COM Fri May 20 00:23:26 2005 From: mweinelt at PLANIGLOBE.COM (Martin Weinelt) Date: Fri, 20 May 2005 09:23:26 +0200 Subject: Performance ArcIMS vs MapServer In-Reply-To: Message-ID: On Friday 20 May 2005 08:41, Johan Hallgren wrote: > Hello > > We have created a testapplication that can be used on ArcIMS and now > MapServer. > > Both MapServer and ArcIMS are on the same server (Windows 2000 server) > with the same data (200 MB vectordata in shapefiles). > > MapServer is wrapped in a c#/dotnet webservice. The API to the webservice > is ArcXML so both solutions have the same interface. > > The testapplication used sex simultaneous clients requested 500 maps each > in total 3000 maps. > > RESULTS: > > MapServer > > Total time: 7.47 min (467 sec 0.1566 sec/map (image), 385 maps/min) > > Max delay for a map: 2.93 sec > > Min delay for a map: 0.14 sec > > Average for a map (with six simultaneous clients): 0.96 sec > > > ArcIMS > > Total time: 12.08 min (728 sec 0.2426 sec/map (image), 247 maps/min) > > Max delay for a map: 3.94sec > > Min delay for a map: 0.12 sec > > Average for a map (with six simultaneous clients): 1,49 sec > > My calculations gives that MapServer is about 30% faster when zooming than > ArcIMS > > Cheers > > Johan Johan, good job! This adds facts to performance 'impressions' one gets visiting some IMS sites. Can you add your findings to the Wiki ('MapserverVsArcIMS')? Cheers, Martin From lester at LSCES.CO.UK Fri May 20 00:33:04 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Fri, 20 May 2005 08:33:04 +0100 Subject: GDV Client In-Reply-To: <428D83F2.8090108@terrestris.de> Message-ID: Till Adams wrote: > why not directly use a professonal client-suite? Give Mapbender WMS > ClientSuite (GNU GPL) a try : > > http://www.mapbender.org Because I had not found it yet ? There is a lot of good stuff out there, but it is buried under twice as many dead ends and bad links. Even the 'Demo Server' link on mapbender does not seem to do anything :( Like other people *I* would like a live coordinate display on the client, jBox put me off because it says 'java' and I have enough fun with PHP and Javascript after 25 years of C/Pascal/Algol programming :) The final piece of the jigsaw - I prefer to work in Firebird for SQL since the last 15 years worth of data are stored there, and we have 5 years 'experience' of 24/7 operation without a single problem. So I need to be able to get to a point I can add 'FirebirdGIS' ;) ( See http://home.lsces.co.uk/ibWebAdmin_0_98/FirebirdFederationDataArchive.html for a source of useful location information :) ) > Some examples: > > http://www.terrestris.de/hp/en/con_demo.php Better than the 'Demo Server' ;) -- Lester Caine ----------------------------- L.S.Caine Electronic Services From wesp at GDV.COM Fri May 20 00:54:39 2005 From: wesp at GDV.COM (Oliver Wesp) Date: Fri, 20 May 2005 09:54:39 +0200 Subject: GDV Client In-Reply-To: <428CF51C.5070808@lsces.co.uk> Message-ID: Hi Lester, nice work. Feel free to contact me if you have any questions or if you find any mistakes or lack of documentation. Any input is welcome. > > It works nicely on Mozilla and Firefox - as long as you enable pop-up's > It's still on my todo-list to get rid of the pop-ups. Should not ne much work either but I'm not decided yet where to put the query results. Currently I think the best place would be within a frame below the MapFrame. Feel free to let me know what you think. Would be good reason to do some work on that issue. best regards Oliver -- Dipl.-Geogr. Oliver Wesp Gesellschaft fuer geografische Datenverarbeitung Binger Strasse 49-51 D-55218 Ingelheim fon: +49 6132 714818 fax: +49 6132 714828 http: www.gdv.com From udo.mapserver at NOVA-SYS.NET Fri May 20 02:31:55 2005 From: udo.mapserver at NOVA-SYS.NET (Udo) Date: Fri, 20 May 2005 11:31:55 +0200 Subject: Maps for Italy Message-ID: Hello everybody. I'm new to this list and have a question I could not find an anser in the list archives for. For a Intranet vehicle tracking system (using GPS) I need to display digital maps. As MapServer is OpenSource, supports many data formats and even Flash (we're using Macromedia Flash a lot for web applications) we'd like to use it for this project. However, I am completely new to the area of GIS/digital maps and have difficulties finding a source for data maps. They may be commercial if the price is reasonable. I tried to contact TeleAtlas, Navteq and others but these companies seem to be targeted on much larger customers/companies. So, can anybody give me some advice how to find a MapServer-friendly source for maps? Right now we would need North Italy but later it could be we need also maps for Austria, Germany, Switzerland... Best would be vector maps as our goal is a hugh quality flash application with vector rendering (but that is not a must). Many thanks for any replies! Udo From taatuut at PLANET.NL Fri May 20 02:58:39 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Fri, 20 May 2005 11:58:39 +0200 Subject: Problem with MapServer 4.6.0 beta 2 Windows binaries In-Reply-To: <752791376.20050520113155@nova-sys.net> Message-ID: Hello, With the Windows binaries mapserver-4.6.0-beta2-win32-php4.3.11.zip from maptools org on a Windows 2000/IIS/PHP 4.3.11 system I have a problem trying to use MapScript. When I try to load the MapScript dll I get the folowing error: "The procedure entry point CPLSetConfigOption could not be located in the dynamic link libary gdal12.dll" The GDAL dll in the Windows binaries package is dated 23-3-2005. Is the right GDAL dll included or am I missing something? Regards, Emil From taatuut at PLANET.NL Fri May 20 03:09:29 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Fri, 20 May 2005 12:09:29 +0200 Subject: Stupid me (Problem with MapServer 4.6.0 beta 2 Windows binaries) In-Reply-To: Message-ID: I left an old gdal12.dll in the path myself... -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Emil Zegers Sent: vrijdag 20 mei 2005 11:59 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem with MapServer 4.6.0 beta 2 Windows binaries Hello, With the Windows binaries mapserver-4.6.0-beta2-win32-php4.3.11.zip from maptools org on a Windows 2000/IIS/PHP 4.3.11 system I have a problem trying to use MapScript. When I try to load the MapScript dll I get the folowing error: "The procedure entry point CPLSetConfigOption could not be located in the dynamic link libary gdal12.dll" The GDAL dll in the Windows binaries package is dated 23-3-2005. Is the right GDAL dll included or am I missing something? Regards, Emil From lester at LSCES.CO.UK Fri May 20 03:26:02 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Fri, 20 May 2005 11:26:02 +0100 Subject: Stupid me (Problem with MapServer 4.6.0 beta 2 Windows binaries) In-Reply-To: Message-ID: Emil Zegers wrote: > I left an old gdal12.dll in the path myself... Welcome to windows ;) -- Lester Caine ----------------------------- L.S.Caine Electronic Services From mweinelt at PLANIGLOBE.COM Fri May 20 03:52:12 2005 From: mweinelt at PLANIGLOBE.COM (Martin Weinelt) Date: Fri, 20 May 2005 12:52:12 +0200 Subject: Maps for Italy In-Reply-To: <752791376.20050520113155@nova-sys.net> Message-ID: On Friday 20 May 2005 11:31, Udo wrote: > Hello everybody. I'm new to this list and have a question I could not > find an anser in the list archives for. > > For a Intranet vehicle tracking system (using GPS) I need to display > digital maps. As MapServer is OpenSource, supports many data formats > and even Flash (we're using Macromedia Flash a lot for web > applications) we'd like to use it for this project. However, I am > completely new to the area of GIS/digital maps and have difficulties > finding a source for data maps. They may be commercial if the price is > reasonable. > > I tried to contact TeleAtlas, Navteq and others but these companies > seem to be targeted on much larger customers/companies. > > So, can anybody give me some advice how to find a MapServer-friendly > source for maps? Right now we would need North Italy but later it > could be we need also maps for Austria, Germany, Switzerland... > > Best would be vector maps as our goal is a hugh quality flash > application with vector rendering (but that is not a must). > > Many thanks for any replies! > Udo Hi Udo, as you need the maps/data for a vehicle tracking system I guess your main concern are street data . A rival to the companies you mention are national (may be EU ) mapping or cartographic agencies. Here in Germany the price for the data depend on the nominal scale and the area covered. So it may depend on the level of detail you want to use and the 'map extent' how much the data cost. One basis of the success of TeleAtlas, Navteq, etc is that they provide a one-stop-shop and seamless coverage. Something you would expect from the EU administration as well (for EU countries). There is an outfit called 'eurogeographics' (www.eurogeographics.org) who offer maps (data) . Click the 'products' tab. The highest resolution I see is 1:250000 and I do not see Italy participating in their data pool. Even these data come at an prohibitive price level. Their page on members may be useful to find the respective national agency you want to contact. HTH, Martin From wildrov at BELLSOUTH.NET Fri May 20 03:55:16 2005 From: wildrov at BELLSOUTH.NET (Dave Tee) Date: Fri, 20 May 2005 05:55:16 -0500 Subject: Easy $100.00 for the working example Message-ID: Ed, Thank You for the help. I am certianly willing to learn....no problem there. That is the biggest reason I took on this project. I will admit my frustration with it gets the best of me at times. I guess I should have said....I have 2 rasters....1 with Geo information, a Geotif (Actually a HDF file saved as Geotif) and a regular image. The info from Listgeo for the Geotif is.... Geotiff_Information: Version: 1 Key_Revision: 1.0 Tagged_Information: ModelTransformationTag (4,4): 3728.78049 0 0 - 9882698.57 -0 -3728.78049 0 4401333.48 0 0 0 0 0 0 0 1 End_Of_Tags. Keyed_Information: GTModelTypeGeoKey (Short,1): ModelTypeProjected GTRasterTypeGeoKey (Short,1): RasterPixelIsArea GTCitationGeoKey (Ascii,80): "US Geological Survey (USGS) General Cartographic Transformations Package (GCTP)" GeographicTypeGeoKey (Short,1): GCS_WGS_84 ProjectedCSTypeGeoKey (Short,1): User-Defined PCSCitationGeoKey (Ascii,9): "Mercator" ProjectionGeoKey (Short,1): User-Defined ProjCoordTransGeoKey (Short,1): CT_Mercator ProjLinearUnitsGeoKey (Short,1): Linear_Meter ProjNatOriginLongGeoKey (Double,1): 0 ProjNatOriginLatGeoKey (Double,1): 0 ProjFalseEastingGeoKey (Double,1): 0 ProjFalseNorthingGeoKey (Double,1): 0 End_Of_Keys. End_Of_Geotiff. Projection Method: CT_Mercator ProjNatOriginLatGeoKey: 0.000000 ( 0d 0' 0.00"N) ProjNatOriginLongGeoKey: 0.000000 ( 0d 0' 0.00"E) ProjScaleAtNatOriginGeoKey: 1.000000 ProjFalseEastingGeoKey: 0.000000 m ProjFalseNorthingGeoKey: 0.000000 m GCS: 4326/WGS 84 Datum: 6326/World Geodetic System 1984 Ellipsoid: 7030/WGS 84 (6378137.00,6356752.31) Prime Meridian: 8901/Greenwich (0.000000/ 0d 0' 0.00"E) Projection Linear Units: 9001/metre (1.000000m) Corner Coordinates: Upper Left (-9882698.574, 4401333.476) Lower Left (-9882698.574, 2566773.476) Upper Right (-8003393.208, 4401333.476) Lower Right (-8003393.208, 2566773.476) Center (-8943045.891, 3484053.476) The second raster is a Bathy chart I pieced together some time ago for use with GPSU. The Bathy image is at the corners of the map.... TL 35 00.0000 079 00.0000 BL 33 00.0000 079 00.0000 TR 35 00.0000 076 00.0000 BR 33 00.0000 076 00.0000 Aaron, I have not had a chance to look at all of this yet....but I will today and I am sure to have questions. Thank You all for your help! In exchange for helping me work through this....All of you....I will happily donate the $100.00 where ever ya'll see fit. All I really want is useful information to give to the members of my website. (BTW...It is a FREE site. There is no money involved....I do not sell anything.) Dave From jacob.delfos at MAUNSELL.COM Fri May 20 03:57:49 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Fri, 20 May 2005 18:57:49 +0800 Subject: Undisguised e-mail addresses in mapserver archives Message-ID: Hi All, Sorry if this has been brought up before, but the spam problem is taking on worse forms for me. Since I have been on the mapserver (and related) mailing lists, my e-mail address have been appearing a lot on the internet, in a completely undisguised way. The amount of spam I receive has since been rising rapidly. Additionally, my address is being spoofed lately, such that I occasionally get 100s of bounced messages that I didn't send, to people to whom it could not be delivered. I was hoping it might be possible to configure the mailing lists such that e-mail addresses are disguised (even if it is poorly, by replacing occurrences of @ with 'at'). I know that I could set up a special "mailing list" address, but that makes things a lot harder to manage, and people would still send spam in my name. My address does not appear anywhere else on the internet, so I am quite sure that the archives of the mailing lists are the cause. It's not that I'm trying to complain, just that a small change could save a lot of people a lot of headaches. regards, Jacob From philippe.gondek at GMAIL.COM Fri May 20 04:41:32 2005 From: philippe.gondek at GMAIL.COM (Philippe Gondek) Date: Fri, 20 May 2005 13:41:32 +0200 Subject: Reference Map problem Message-ID: Hi List, I try to render a reference map!!! but I have an error: Fatal error: [MapServer Error]: msImageLoadGD(): (/var/www/htdocs/miam/tmp/regions.png) in /var/www/localhost/htdocs/miam/monscript.php on line 161 Here is my error!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! $mapref->set("image","/var/www/htdocs/miam/tmp/regions.png"); $mapref->extent->minx = $xmin; | $mapref->extent->miny = $ymin; | the same as the extent of the reference map $mapref->extent->maxx = $xmax; | $mapref->extent->maxy = $ymax; | . . . // Genere la carte de reference $image3=$map->drawReferenceMap(); $ScaleBar_url = $image3->saveWebImage(); What is the right way to draw a reference map... Thanks... From johan.e.hallgren at WMDATA.SE Fri May 20 04:57:39 2005 From: johan.e.hallgren at WMDATA.SE (Johan Hallgren) Date: Fri, 20 May 2005 06:57:39 -0500 Subject: Oracle Spatial (Failed to draw layer named 'layer') Message-ID: Hello I'm trying to use MapServer with oracle spatial (10.1.0g). I'm using mapserver-4.6.0-beta1 and I have created a c#-mapscript to access the map. Using shp2img and ogrinfo works but it's extremely slow. When I use the: imageObj i_obj = oMapObj.draw(); in my c# code I've get the: "Failed to draw layer named 'layer'" exception. I have tried to move the shp2img to the dir where the c#-dll reside and shp2img works there but not my dll. By doing that I've get the feeling that the other dll:s (gdal12.dll, libmap.dll, bgd.dll, iconv.dll, charset.dll) should be correct. Could it be a problem to reach the oracle-dll from dotnet? I have given 'everyone' 'full control' to the ORACLE_HOME/bin directory. Any assistance would be great. /Johan From Tom.Kralidis at EC.GC.CA Fri May 20 05:01:21 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 20 May 2005 08:01:21 -0400 Subject: JOIN object and WMS/WFS Message-ID: Hi, Some further progress. I can verify that MapServer is recognizing the join; I put invalid entries for the TABLE, FROM, and TO directives and got a MapServer error, so I know the join'd table is being read, or at least scanned for existence/fields. Any suggestions? Is it possible to do JOIN's in this way and have them accessible via WMS/WFS? Thanks ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Kralidis,Tom [Burlington] > Sent: Tuesday, 17 May, 2005 07:44 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] JOIN object and WMS/WFS > > > Hi, > > I have a .shp/.shx/.dbf combo which I have publised as a > layer/featuretype for OGC:WMS/OGC:WFS. > > I have an additional .dbf file which I'd like to join to the > layer. However when I issue a WMS GetFeatureInfo WFS > DescribeFeatureType I can't see the data from the seperate .dbf file. > > Any suggestions? Below is my mapfile layer def: > > Thanks in advance > > ..Tom > > > > LAYER > NAME "popplace_pt" > STATUS ON > DATA "data/popplace_pt" > TYPE POINT > DUMP TRUE > HEADER "templates/popplace_pt_query_header.html" > TEMPLATE "templates/popplace_pt_query_body.html" > TOLERANCE 30 > JOIN > NAME "POPNAMEJOIN" > FROM "POPNAME" > TO "POPNAME" > TABLE > "/usr/local/wwwsites/apache/devgeo.cciw.ca/apps/mapserv/servic > es/kyw/dat > a/table1.dbf" > TYPE MULTIPLE > TEMPLATE "templates/popplace_pt_join_query_body.html" > END > METADATA > "ows_title" "Populated Places" > "ows_abstract" "Populated Places" > "ows_keywordlist" "environment,air pollution,acid > rain,climate,greenhouse effect,ecosystems,environment i mpact > assessment,emergency preparedness,pollution,biological > diversity,environmental protection,water,wildli > fe,weather,waste,environmental management,environmental > technology,recycling,climate change,environmental em > ergency,pollution prevention,sustainable development,science > and technology,environmental action,smog,ozone, ec,cise,ogc,cgdi" > "wms_opaque" "0" > "ows_metadataurl_type" "FGDC" > "wms_metadataurl_format" "text/html" > "ows_metadataurl_href" "http://www.environmentandresources.ca/" > "wms_dataurl_format" "text/html" > "wms_dataurl_href" "http://www.environmentandresources.ca/" > "wfs_metadataurl_format" "TXT" > "gml_include_items" "all" > END > PROJECTION > "init=epsg:42304" > END > LABELITEM "REAL_NAME" > CLASS > NAME "Populated Places" > SYMBOL 'circle' > SIZE 3 > COLOR 0 255 0 > LABEL > ANTIALIAS TRUE > COLOR 255 0 0 > POSITION ur > SIZE LARGE > END > END > END > From taatuut at PLANET.NL Fri May 20 05:25:56 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Fri, 20 May 2005 14:25:56 +0200 Subject: JOIN object and WMS/WFS In-Reply-To: <2576812186CDD411BF1500508B6DCE950ABB22F9@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Hello Tom, I don't think it is possible to do joins this way and access them through WMS/WFS. In the past I've asked a similair question whether it is possible to classify and display a map image based on attributes in the join table by using the MapServer JOIN. That is not possible (see bug http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=674). But maybe doing a join through OGR will work for you (I have not tested this myself). OGR SQL supports a limited form of one to one JOIN. Somehting like: CONNECTIONTYPE OGR CONNECTION "data/popplace_pt" DATA "SELECT columns FROM table LEFT JOIN some join statement" Take a look at the JOIN examples at http://www.remotesensing.org/gdal/ogr/ogr_sql.html Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Kralidis,Tom [Burlington] Sent: vrijdag 20 mei 2005 14:01 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] JOIN object and WMS/WFS Hi, Some further progress. I can verify that MapServer is recognizing the join; I put invalid entries for the TABLE, FROM, and TO directives and got a MapServer error, so I know the join'd table is being read, or at least scanned for existence/fields. Any suggestions? Is it possible to do JOIN's in this way and have them accessible via WMS/WFS? Thanks ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Kralidis,Tom [Burlington] > Sent: Tuesday, 17 May, 2005 07:44 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] JOIN object and WMS/WFS > > > Hi, > > I have a .shp/.shx/.dbf combo which I have publised as a > layer/featuretype for OGC:WMS/OGC:WFS. > > I have an additional .dbf file which I'd like to join to the > layer. However when I issue a WMS GetFeatureInfo WFS > DescribeFeatureType I can't see the data from the seperate .dbf file. > > Any suggestions? Below is my mapfile layer def: > > Thanks in advance > > ..Tom > > > > LAYER > NAME "popplace_pt" > STATUS ON > DATA "data/popplace_pt" > TYPE POINT > DUMP TRUE > HEADER "templates/popplace_pt_query_header.html" > TEMPLATE "templates/popplace_pt_query_body.html" > TOLERANCE 30 > JOIN > NAME "POPNAMEJOIN" > FROM "POPNAME" > TO "POPNAME" > TABLE > "/usr/local/wwwsites/apache/devgeo.cciw.ca/apps/mapserv/servic > es/kyw/dat > a/table1.dbf" > TYPE MULTIPLE > TEMPLATE "templates/popplace_pt_join_query_body.html" > END > METADATA > "ows_title" "Populated Places" > "ows_abstract" "Populated Places" > "ows_keywordlist" "environment,air pollution,acid > rain,climate,greenhouse effect,ecosystems,environment i mpact > assessment,emergency preparedness,pollution,biological > diversity,environmental protection,water,wildli > fe,weather,waste,environmental management,environmental > technology,recycling,climate change,environmental em > ergency,pollution prevention,sustainable development,science > and technology,environmental action,smog,ozone, ec,cise,ogc,cgdi" > "wms_opaque" "0" > "ows_metadataurl_type" "FGDC" > "wms_metadataurl_format" "text/html" > "ows_metadataurl_href" "http://www.environmentandresources.ca/" > "wms_dataurl_format" "text/html" > "wms_dataurl_href" "http://www.environmentandresources.ca/" > "wfs_metadataurl_format" "TXT" > "gml_include_items" "all" > END > PROJECTION > "init=epsg:42304" > END > LABELITEM "REAL_NAME" > CLASS > NAME "Populated Places" > SYMBOL 'circle' > SIZE 3 > COLOR 0 255 0 > LABEL > ANTIALIAS TRUE > COLOR 255 0 0 > POSITION ur > SIZE LARGE > END > END > END > From ymoisan at GROUPESM.COM Fri May 20 05:18:27 2005 From: ymoisan at GROUPESM.COM (Moisan Yves) Date: Fri, 20 May 2005 08:18:27 -0400 Subject: Performance ArcIMS vs MapServer Message-ID: Hi Johan, I may add that your set up definitely should have favored ArcIMS since the C#/.NET windows platform definitely is not the most user supported platform for MapServer. To be on the devils'a advocate side a bit, I wonder if IronPython instead of C# would have made a difference. I know ArcGIS comes with a Python interpreter (an old 2.1 though) so I wonder how other ESRI products play with Python and how that could be leveraged in IronPython (or CPython, but then you're outside the .NET domain). Thanx for sharing this experiment with us. Yves Moisan -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Johan Hallgren Envoy??: 20 mai 2005 02:42 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] Performance ArcIMS vs MapServer Hello We have created a testapplication that can be used on ArcIMS and now MapServer. Both MapServer and ArcIMS are on the same server (Windows 2000 server) with the same data (200 MB vectordata in shapefiles). MapServer is wrapped in a c#/dotnet webservice. The API to the webservice is ArcXML so both solutions have the same interface. The testapplication used sex simultaneous clients requested 500 maps each in total 3000 maps. RESULTS: MapServer Total time: 7.47 min (467 sec 0.1566 sec/map (image), 385 maps/min) Max delay for a map: 2.93 sec Min delay for a map: 0.14 sec Average for a map (with six simultaneous clients): 0.96 sec ArcIMS Total time: 12.08 min (728 sec 0.2426 sec/map (image), 247 maps/min) Max delay for a map: 3.94sec Min delay for a map: 0.12 sec Average for a map (with six simultaneous clients): 1,49 sec My calculations gives that MapServer is about 30% faster when zooming than ArcIMS Cheers Johan From jdport at VERITIME.COM Fri May 20 05:27:21 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri, 20 May 2005 08:27:21 -0400 Subject: Undisguised e-mail addresses in mapserver archives Message-ID: I know this is offtopic, but since this was brought up... it kind of leads into a question I've had for a while. Is there any particular reason that we use an email list instead of like a web forum for this kind of communication? It seems like opensource projects like this one tend to use email lists instead of forums, but it seems to me that there are a lot of advantages to a web forum such as easier searching and threaded messages, as well as the ability to post announcements and sticky-note a FAQ would make it the preferred method. It would also solve the spam problem as email addresses can pretty much always be hidden. I'm not opposed to email of course, was just a question I had. -Jeff ----- Original Message ----- From: "Jacob Delfos" To: Sent: Friday, May 20, 2005 6:57 AM Subject: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in mapserver archives > Hi All, > > Sorry if this has been brought up before, but the spam problem is taking > on worse forms for me. Since I have been on the mapserver (and related) > mailing lists, my e-mail address have been appearing a lot on the > internet, in a completely undisguised way. The amount of spam I receive > has since been rising rapidly. Additionally, my address is being spoofed > lately, such that I occasionally get 100s of bounced messages that I > didn't send, to people to whom it could not be delivered. > > I was hoping it might be possible to configure the mailing lists such > that e-mail addresses are disguised (even if it is poorly, by replacing > occurrences of @ with 'at'). I know that I could set up a special > "mailing list" address, but that makes things a lot harder to manage, > and people would still send spam in my name. > > My address does not appear anywhere else on the internet, so I am quite > sure that the archives of the mailing lists are the cause. It's not that > I'm trying to complain, just that a small change could save a lot of > people a lot of headaches. > > regards, > > Jacob > From webmaster at 2ID-DESIGN.COM Fri May 20 05:42:30 2005 From: webmaster at 2ID-DESIGN.COM (S.Nicolas - Webmaster) Date: Fri, 20 May 2005 13:42:30 +0100 Subject: Undisguised e-mail addresses in mapserver archives In-Reply-To: <006101c55d37$5786be80$1bf2fbd0@solo> Message-ID: Totally agree, lots of open source forum available, easy to set up. St?phane -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Portwine Sent: 20 May 2005 13:27 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in mapserver archives I know this is offtopic, but since this was brought up... it kind of leads into a question I've had for a while. Is there any particular reason that we use an email list instead of like a web forum for this kind of communication? It seems like opensource projects like this one tend to use email lists instead of forums, but it seems to me that there are a lot of advantages to a web forum such as easier searching and threaded messages, as well as the ability to post announcements and sticky-note a FAQ would make it the preferred method. It would also solve the spam problem as email addresses can pretty much always be hidden. I'm not opposed to email of course, was just a question I had. -Jeff ----- Original Message ----- From: "Jacob Delfos" To: Sent: Friday, May 20, 2005 6:57 AM Subject: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in mapserver archives > Hi All, > > Sorry if this has been brought up before, but the spam problem is > taking on worse forms for me. Since I have been on the mapserver (and > related) mailing lists, my e-mail address have been appearing a lot on > the internet, in a completely undisguised way. The amount of spam I > receive has since been rising rapidly. Additionally, my address is > being spoofed lately, such that I occasionally get 100s of bounced > messages that I didn't send, to people to whom it could not be delivered. > > I was hoping it might be possible to configure the mailing lists such > that e-mail addresses are disguised (even if it is poorly, by > replacing occurrences of @ with 'at'). I know that I could set up a > special "mailing list" address, but that makes things a lot harder to > manage, and people would still send spam in my name. > > My address does not appear anywhere else on the internet, so I am > quite sure that the archives of the mailing lists are the cause. It's > not that I'm trying to complain, just that a small change could save a > lot of people a lot of headaches. > > regards, > > Jacob > -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: 19/05/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: 19/05/2005 From philippe.gondek at GMAIL.COM Fri May 20 05:34:34 2005 From: philippe.gondek at GMAIL.COM (Philippe Gondek) Date: Fri, 20 May 2005 14:34:34 +0200 Subject: Nobody wants to help me? Message-ID: Hi I just want to know the rigjht way to draw a reference map. I have a picture in png in a directory named /var/www/htdocs/miam/tmp And when I try, I have this error in my web browser : Fatal error: [MapServer Error]: msImageLoadGD(): (/var/www/htdocs/miam/tmp/regions.png) in /var/www/localhost/htdocs/miam/monscript.php on line 161 Thank you for helping!!! From Tom.Kralidis at EC.GC.CA Fri May 20 05:35:03 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 20 May 2005 08:35:03 -0400 Subject: Undisguised e-mail addresses in mapserver archives Message-ID: Good idea -- +1 from me. ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of S.Nicolas > - Webmaster > Sent: Friday, 20 May, 2005 08:43 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Undisguised e-mail > addresses in mapserver archives > > > Totally agree, lots of open source forum available, easy to set up. > > St?phane > > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Portwine > Sent: 20 May 2005 13:27 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Undisguised e-mail > addresses in mapserver archives > > I know this is offtopic, but since this was brought up... it > kind of leads > into a question I've had for a while. Is there any > particular reason that > we use an email list instead of like a web forum for this kind of > communication? It seems like opensource projects like this > one tend to use > email lists instead of forums, but it seems to me that there > are a lot of advantages to a web forum such as easier > searching and threaded messages, as well as the ability to > post announcements and sticky-note a FAQ would make > it the preferred method. It would also solve the spam > problem as email > addresses can pretty much always be hidden. I'm not opposed > to email of > course, was just a question I had. > > -Jeff > > ----- Original Message ----- > From: "Jacob Delfos" > To: > Sent: Friday, May 20, 2005 6:57 AM > Subject: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses > in mapserver archives > > > > Hi All, > > > > Sorry if this has been brought up before, but the spam problem is > > taking on worse forms for me. Since I have been on the > mapserver (and > > related) mailing lists, my e-mail address have been > appearing a lot on > > the internet, in a completely undisguised way. The amount of spam I > > receive has since been rising rapidly. Additionally, my address is > > being spoofed lately, such that I occasionally get 100s of bounced > > messages that I didn't send, to people to whom it could not > be delivered. > > > > I was hoping it might be possible to configure the mailing > lists such > > that e-mail addresses are disguised (even if it is poorly, by > > replacing occurrences of @ with 'at'). I know that I could set up a > > special "mailing list" address, but that makes things a lot > harder to > > manage, and people would still send spam in my name. > > > > My address does not appear anywhere else on the internet, so I am > > quite sure that the archives of the mailing lists are the > cause. It's > > not that I'm trying to complain, just that a small change > could save a > > lot of people a lot of headaches. > > > > regards, > > > > Jacob > > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: > 19/05/2005 > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: > 19/05/2005 > > From lester at LSCES.CO.UK Fri May 20 06:02:49 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Fri, 20 May 2005 14:02:49 +0100 Subject: Undisguised e-mail addresses in mapserver archives In-Reply-To: <200505201233.j4KCXMF06132@paris91.amen.fr> Message-ID: S.Nicolas - Webmaster wrote: > Totally agree, lots of open source forum available, easy to set up. Just as long as they provide an email mirror ;) email copies are just so much easier to manage, search, tag, and sort. Something you simply can't do with Newsgroups and many of the web based forums. At least when an email comes in I know what to do with it. There are many forums I am supposed to be using, but I just don't bother -it is too much hassle ;) -- Lester Caine ----------------------------- L.S.Caine Electronic Services From oubinny at HOTMAIL.COM Fri May 20 06:03:24 2005 From: oubinny at HOTMAIL.COM (Mehdi Kiman) Date: Fri, 20 May 2005 08:03:24 -0500 Subject: Point attribue value Message-ID: Hello, I would click in a map and have attributes informations about the clicked point. i must use methods like getmeasureusingpoint(pointObject point) and getShape(int tileindex, int shapeindex) but my problem is to have connection between my clicked point and the shape object. How i can get the "shapeindex" number of my point ? Sorry for my confused request. Thanks Mehdi From gerry.creager at TAMU.EDU Fri May 20 06:07:47 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Fri, 20 May 2005 08:07:47 -0500 Subject: Undisguised e-mail addresses in mapserver archives In-Reply-To: <200505201233.j4KCXMF06132@paris91.amen.fr> Message-ID: Because I, for one, don't have the time to go to a web page and peruse the various discussions? I can efficiently see the topics, file interesting "stuff" away for later use or reference, and delete the trivia. Going to a web page and sorting through all this is tiresome at best and looks to me like a waste of time. Personal opinions. But that'd be my vote if it comes to one. The list, as a monolith, in fact, and not subdivided into a whole bunch of separate sublists. gerry S.Nicolas - Webmaster wrote: > Totally agree, lots of open source forum available, easy to set up. > > St?phane > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Jeff Portwine > Sent: 20 May 2005 13:27 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in mapserver > archives > > I know this is offtopic, but since this was brought up... it kind of leads > into a question I've had for a while. Is there any particular reason that > we use an email list instead of like a web forum for this kind of > communication? It seems like opensource projects like this one tend to use > email lists instead of forums, but it seems to me that there are a lot of > advantages to a web forum such as easier searching and threaded messages, as > well as the ability to post announcements and sticky-note a FAQ would make > it the preferred method. It would also solve the spam problem as email > addresses can pretty much always be hidden. I'm not opposed to email of > course, was just a question I had. > > -Jeff > > ----- Original Message ----- > From: "Jacob Delfos" > To: > Sent: Friday, May 20, 2005 6:57 AM > Subject: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in mapserver > archives > > > >>Hi All, >> >>Sorry if this has been brought up before, but the spam problem is >>taking on worse forms for me. Since I have been on the mapserver (and >>related) mailing lists, my e-mail address have been appearing a lot on >>the internet, in a completely undisguised way. The amount of spam I >>receive has since been rising rapidly. Additionally, my address is >>being spoofed lately, such that I occasionally get 100s of bounced >>messages that I didn't send, to people to whom it could not be delivered. >> >>I was hoping it might be possible to configure the mailing lists such >>that e-mail addresses are disguised (even if it is poorly, by >>replacing occurrences of @ with 'at'). I know that I could set up a >>special "mailing list" address, but that makes things a lot harder to >>manage, and people would still send spam in my name. >> >>My address does not appear anywhere else on the internet, so I am >>quite sure that the archives of the mailing lists are the cause. It's >>not that I'm trying to complain, just that a small change could save a >>lot of people a lot of headaches. >> >>regards, >> >>Jacob >> > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: 19/05/2005 > > -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From gerry.creager at TAMU.EDU Fri May 20 06:15:29 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Fri, 20 May 2005 08:15:29 -0500 Subject: Undisguised e-mail addresses in mapserver archives In-Reply-To: <428DC2AD.3080707@maunsell.com> Message-ID: The SOBER virus has made a comeback. It's one of the many that raids an affected Microsoft user's Outlook address book and starts forging e-mail from oh, so many folks. Ove the last 3 or so days, I've gotten bounce notices from no fewer than 100 different messages I've supposedly sent... from a Unix account that can receive, but not send, e-mail. Oh, and it's an account I usually don't publicize, becuase my main account has better filter capabilities. It'd be a reasonable idea to reconfigure the list to hide e-mail addresses, but unlikely to significantly reduce your exposure in this case, if you've e-mails more than, say, yourself. The virus thing is really getting out of control again, and Microsoft admins (and those of us who have to handle major campus network traffic, and Unix domains, too) have to spend a lot of time cleaning up the cruft as a result. SO: While it's very possible that someone is harvesting this list's traffic for launching spam, it's as likely... or more so... that someone you correspond with has a compromised Windows system, likely unpatched, and doesn't know they're the originator of thousands of spurious e-mail operations a day. In your name. Regards, Gerry Jacob Delfos wrote: > Hi All, > > Sorry if this has been brought up before, but the spam problem is taking > on worse forms for me. Since I have been on the mapserver (and related) > mailing lists, my e-mail address have been appearing a lot on the > internet, in a completely undisguised way. The amount of spam I receive > has since been rising rapidly. Additionally, my address is being spoofed > lately, such that I occasionally get 100s of bounced messages that I > didn't send, to people to whom it could not be delivered. > > I was hoping it might be possible to configure the mailing lists such > that e-mail addresses are disguised (even if it is poorly, by replacing > occurrences of @ with 'at'). I know that I could set up a special > "mailing list" address, but that makes things a lot harder to manage, > and people would still send spam in my name. > > My address does not appear anywhere else on the internet, so I am quite > sure that the archives of the mailing lists are the cause. It's not that > I'm trying to complain, just that a small change could save a lot of > people a lot of headaches. > > regards, > > Jacob -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From tylermitchell at SHAW.CA Fri May 20 06:44:04 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri, 20 May 2005 06:44:04 -0700 Subject: Problem with the Height and Width of my scalebar... In-Reply-To: Message-ID: HI Philippe, I suspect that your map's projection and units settings are not complete. It might be trying its best to make the scalebar, but will look at those settings to figure it out. Do you set map units or map projection in your code or map file? Post it so we can see. Tyler On May 18, 2005 05:25 am, Philippe Gondek wrote: > Hi List, > > I try to render a scalebar and to show it. I work with PHP/Mapscript > and here is the way I do; > > $map->scalebar->set("units",MS_KILOMETERS); > $map->scalebar->set("style",0); > $map->scalebar->set("intervals",5); > $map->scalebar->set("height",40); > > $image2=$map->drawScaleBar(); > $ScaleBar_url = $image2->saveWebImage(); > > ?> > > > > > > width='".$map->width. > "px' height='".$map->height."px'";?>/> > >
> > > px";?>/> > > > > > How must I do to have the real units. I have kilometers on my scalebar > but it is too small to match with reality!!! From logicalgenetics at GMAIL.COM Fri May 20 07:49:43 2005 From: logicalgenetics at GMAIL.COM (Dan Taylor) Date: Fri, 20 May 2005 15:49:43 +0100 Subject: Reference map with mercator projection Message-ID: Can anyone give me an example of using a reference map with a mercator projection? I've managed to get reference maps working well with unprojected maps of the world, but I'm having problems with projected reference maps. I'd be interested in seeing mapfiles and any associated code/images/stuff. May maps need to display the entire world. Dan -- Dan Taylor Software Development Engineer, JTL Systems Ltd PhD Student, Reading University, UK http://www.logicalgenetics.com From lfilak at MEDINACO.ORG Fri May 20 07:55:47 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 20 May 2005 10:55:47 -0400 Subject: Point attribue value Message-ID: The following message was sent by Mehdi Kiman on Fri, 20 May 2005 08:03:24 -0500. > Hello, > I would click in a map and have attributes informations about the clicked point. > i must use methods like getmeasureusingpoint(pointObject point) and > getShape(int tileindex, int shapeindex) but my problem is to have connection > between my clicked point and the shape object. > How i can get the "shapeindex" number of my point ? > > Sorry for my confused request. Mehdi, The first step is to translate from pixel coordinates to real-coordinates. The you can query your shape(s) using the picked point. Lowell From lfilak at MEDINACO.ORG Fri May 20 08:09:18 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 20 May 2005 11:09:18 -0400 Subject: Nobody wants to help me? Message-ID: The following message was sent by Philippe Gondek on Fri, 20 May 2005 14:34:34 +0200. > Hi > > I just want to know the rigjht way to draw a reference map. > > I have a picture in png in a directory named /var/www/htdocs/miam/tmp > > And when I try, I have this error in my web browser : > > > Fatal error: [MapServer Error]: msImageLoadGD(): > (/var/www/htdocs/miam/tmp/regions.png) in > /var/www/localhost/htdocs/miam/monscript.php on line 161 Philippe, What does 'file /var/www/htdocs/miam/tmp/regions.png' show for the file format? (should report png) & What does 'ls -l /var/www/htdocs/miam/tmp/regions.png' show for file permissions & directory permissions in the path to the image? (should be readable for 'other' for files & readable+execute for 'other' for directories) HTH Lowell From ealpert at DIGITALGLOBE.COM Fri May 20 09:12:01 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 20 May 2005 10:12:01 -0600 Subject: Nobody wants to help me? Message-ID: It might help to describe the problem better and maybe even show us what's on line 161 of monscript.php (and the code around that line) cause all we know now is your doing something wrong. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Philippe Gondek Sent: Friday, May 20, 2005 6:35 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Nobody wants to help me? Hi I just want to know the rigjht way to draw a reference map. I have a picture in png in a directory named /var/www/htdocs/miam/tmp And when I try, I have this error in my web browser : Fatal error: [MapServer Error]: msImageLoadGD(): (/var/www/htdocs/miam/tmp/regions.png) in /var/www/localhost/htdocs/miam/monscript.php on line 161 Thank you for helping!!! From ealpert at DIGITALGLOBE.COM Fri May 20 09:14:19 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 20 May 2005 10:14:19 -0600 Subject: Reference Map problem Message-ID: Ok found this message. To me it seems that msImageLoadGD() can't find or read your regions.png. Does it exist? Does your web server have read access to it? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Philippe Gondek Sent: Friday, May 20, 2005 5:42 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Reference Map problem Hi List, I try to render a reference map!!! but I have an error: Fatal error: [MapServer Error]: msImageLoadGD(): (/var/www/htdocs/miam/tmp/regions.png) in /var/www/localhost/htdocs/miam/monscript.php on line 161 Here is my error!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! $mapref->set("image","/var/www/htdocs/miam/tmp/regions.png"); $mapref->extent->minx = $xmin; | $mapref->extent->miny = $ymin; | the same as the extent of the reference map $mapref->extent->maxx = $xmax; | $mapref->extent->maxy = $ymax; | . . . // Genere la carte de reference $image3=$map->drawReferenceMap(); $ScaleBar_url = $image3->saveWebImage(); What is the right way to draw a reference map... Thanks... From jfletcher at LATITUDEGEO.COM Fri May 20 09:26:47 2005 From: jfletcher at LATITUDEGEO.COM (John Fletcher) Date: Fri, 20 May 2005 09:26:47 -0700 Subject: Undisguised e-mail addresses in mapserver archives Message-ID: The freeware version of the discus web forum can email posts to 'watched' topics. There may be others which do the same. Much as I like the structure of a nice web forum, if I don't get emailed the posts, I'll never read them. John > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gerry > Creager N5JXS > Sent: Friday, May 20, 2005 6:08 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Undisguised e-mail > addresses in mapserver archives > > Because I, for one, don't have the time to go to a web page > and peruse the various discussions? I can efficiently see > the topics, file interesting "stuff" away for later use or > reference, and delete the trivia. Going to a web page and > sorting through all this is tiresome at best and looks to me > like a waste of time. > > Personal opinions. But that'd be my vote if it comes to one. > The list, as a monolith, in fact, and not subdivided into a > whole bunch of separate sublists. > > gerry > > S.Nicolas - Webmaster wrote: > > Totally agree, lots of open source forum available, easy to set up. > > > > St?phane > > > > > > -----Original Message----- > > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > On Behalf Of Jeff Portwine > > Sent: 20 May 2005 13:27 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in > > mapserver archives > > > > I know this is offtopic, but since this was brought up... > it kind of leads > > into a question I've had for a while. Is there any > particular reason that > > we use an email list instead of like a web forum for this kind of > > communication? It seems like opensource projects like > this one tend to use > > email lists instead of forums, but it seems to me that > there are a lot > > of advantages to a web forum such as easier searching and threaded > > messages, as well as the ability to post announcements and > sticky-note a FAQ would make > > it the preferred method. It would also solve the spam > problem as email > > addresses can pretty much always be hidden. I'm not > opposed to email of > > course, was just a question I had. > > > > -Jeff > > > > ----- Original Message ----- > > From: "Jacob Delfos" > > To: > > Sent: Friday, May 20, 2005 6:57 AM > > Subject: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in > > mapserver archives > > > > > > > >>Hi All, > >> > >>Sorry if this has been brought up before, but the spam problem is > >>taking on worse forms for me. Since I have been on the > mapserver (and > >>related) mailing lists, my e-mail address have been > appearing a lot on > >>the internet, in a completely undisguised way. The amount of spam I > >>receive has since been rising rapidly. Additionally, my address is > >>being spoofed lately, such that I occasionally get 100s of bounced > >>messages that I didn't send, to people to whom it could not > be delivered. > >> > >>I was hoping it might be possible to configure the mailing > lists such > >>that e-mail addresses are disguised (even if it is poorly, by > >>replacing occurrences of @ with 'at'). I know that I could set up a > >>special "mailing list" address, but that makes things a lot > harder to > >>manage, and people would still send spam in my name. > >> > >>My address does not appear anywhere else on the internet, so I am > >>quite sure that the archives of the mailing lists are the > cause. It's > >>not that I'm trying to complain, just that a small change > could save a > >>lot of people a lot of headaches. > >> > >>regards, > >> > >>Jacob > >> > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Anti-Virus. > > Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: > > 19/05/2005 > > > > > > -- > Gerry Creager -- gerry.creager at tamu.edu > Texas Mesonet -- AATLT, Texas A&M University > Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 > Page: 979.228.0173 > Office: 903A Eller Bldg, TAMU, College Station, TX 77843 > From armin.burger at GMX.NET Fri May 20 09:44:34 2005 From: armin.burger at GMX.NET (Armin Burger) Date: Fri, 20 May 2005 18:44:34 +0200 Subject: GDV Client Message-ID: Lester, if you search at Sourceforge for 'MapServer' you will find at least 2 PHP/Mapscript client packages, like p.mapper and Musmap. Armin > Till Adams wrote: >> why not directly use a professonal client-suite? Give Mapbender WMS >> ClientSuite (GNU GPL) a try : >> >> http://www.mapbender.org > Because I had not found it yet ? > There is a lot of good stuff out there, but it is buried under twice as > many dead ends and bad links. Even the 'Demo Server' link on mapbender > does not seem to do anything :( > Like other people *I* would like a live coordinate display on the > client, jBox put me off because it says 'java' and I have enough fun > with PHP and Javascript after 25 years of C/Pascal/Algol programming :) > The final piece of the jigsaw - I prefer to work in Firebird for SQL > since the last 15 years worth of data are stored there, and we have 5 > years 'experience' of 24/7 operation without a single problem. So I need > to be able to get to a point I can add 'FirebirdGIS' ;) > ( See > http://home.lsces.co.uk/ibWebAdmin_0_98/FirebirdFederationDataArchive.html > for a source of useful location information :) ) >> Some examples: >> >> http://www.terrestris.de/hp/en/con_demo.php > Better than the 'Demo Server' ;) > -- > Lester Caine > ----------------------------- > L.S.Caine Electronic Services From lester at LSCES.CO.UK Fri May 20 10:01:28 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Fri, 20 May 2005 18:01:28 +0100 Subject: Undisguised e-mail addresses in mapserver archives In-Reply-To: <08198B38967CBC478213D6FEA76C30401F3736@napoleon> Message-ID: John Fletcher wrote: > The freeware version of the discus web forum can email posts to 'watched' topics. There may be others which do the same. Much as I like the structure of a nice web forum, if I don't get emailed the posts, I'll never read them. And in many cases you have to log onto EVERY thread to get the posts :( I'm with you - web never gets read ;) -- Lester Caine ----------------------------- L.S.Caine Electronic Services From ed at TOPOZONE.COM Fri May 20 09:58:24 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 20 May 2005 12:58:24 -0400 Subject: Undisguised e-mail addresses in mapserver archives Message-ID: John - I agree about emails - I don't think I'm going to check the forum several times a day to see if something's there. And I'm not going to "watch" a topic if I don't even know it exists! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Fletcher Sent: Friday, May 20, 2005 12:27 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in mapserver archives The freeware version of the discus web forum can email posts to 'watched' topics. There may be others which do the same. Much as I like the structure of a nice web forum, if I don't get emailed the posts, I'll never read them. John > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gerry Creager > N5JXS > Sent: Friday, May 20, 2005 6:08 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in > mapserver archives > > Because I, for one, don't have the time to go to a web page and peruse > the various discussions? I can efficiently see the topics, file > interesting "stuff" away for later use or reference, and delete the > trivia. Going to a web page and sorting through all this is tiresome > at best and looks to me like a waste of time. > > Personal opinions. But that'd be my vote if it comes to one. > The list, as a monolith, in fact, and not subdivided into a whole > bunch of separate sublists. > > gerry > > S.Nicolas - Webmaster wrote: > > Totally agree, lots of open source forum available, easy to set up. > > > > St?phane > > > > > > -----Original Message----- > > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > On Behalf Of Jeff Portwine > > Sent: 20 May 2005 13:27 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in > > mapserver archives > > > > I know this is offtopic, but since this was brought up... > it kind of leads > > into a question I've had for a while. Is there any > particular reason that > > we use an email list instead of like a web forum for this kind of > > communication? It seems like opensource projects like > this one tend to use > > email lists instead of forums, but it seems to me that > there are a lot > > of advantages to a web forum such as easier searching and threaded > > messages, as well as the ability to post announcements and > sticky-note a FAQ would make > > it the preferred method. It would also solve the spam > problem as email > > addresses can pretty much always be hidden. I'm not > opposed to email of > > course, was just a question I had. > > > > -Jeff > > > > ----- Original Message ----- > > From: "Jacob Delfos" > > To: > > Sent: Friday, May 20, 2005 6:57 AM > > Subject: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in > > mapserver archives > > > > > > > >>Hi All, > >> > >>Sorry if this has been brought up before, but the spam problem is > >>taking on worse forms for me. Since I have been on the > mapserver (and > >>related) mailing lists, my e-mail address have been > appearing a lot on > >>the internet, in a completely undisguised way. The amount of spam I > >>receive has since been rising rapidly. Additionally, my address is > >>being spoofed lately, such that I occasionally get 100s of bounced > >>messages that I didn't send, to people to whom it could not > be delivered. > >> > >>I was hoping it might be possible to configure the mailing > lists such > >>that e-mail addresses are disguised (even if it is poorly, by > >>replacing occurrences of @ with 'at'). I know that I could set up a > >>special "mailing list" address, but that makes things a lot > harder to > >>manage, and people would still send spam in my name. > >> > >>My address does not appear anywhere else on the internet, so I am > >>quite sure that the archives of the mailing lists are the > cause. It's > >>not that I'm trying to complain, just that a small change > could save a > >>lot of people a lot of headaches. > >> > >>regards, > >> > >>Jacob > >> > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Anti-Virus. > > Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: > > 19/05/2005 > > > > > > -- > Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas > A&M University > Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 > Page: 979.228.0173 > Office: 903A Eller Bldg, TAMU, College Station, TX 77843 > From jdport at VERITIME.COM Fri May 20 10:08:56 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri, 20 May 2005 13:08:56 -0400 Subject: Undisguised e-mail addresses in mapserver archives Message-ID: I've actually configured a nice combination solution, it is the phpBB forum with the m2f (mail2forum) addon mod. It allows forum users, if they choose, to have all posts emailed to them... they can then reply to the posts or to create a new post they can email the post to the forum and it will be posted on their behalf. It's a very nice hybrid solution.... people who like forums go to the forum, and to people who like email better it's pretty much indistinguishable from any other email list. -Jeff ----- Original Message ----- From: "John Fletcher" To: Sent: Friday, May 20, 2005 12:26 PM Subject: Re: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in mapserver archives The freeware version of the discus web forum can email posts to 'watched' topics. There may be others which do the same. Much as I like the structure of a nice web forum, if I don't get emailed the posts, I'll never read them. John > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gerry > Creager N5JXS > Sent: Friday, May 20, 2005 6:08 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Undisguised e-mail > addresses in mapserver archives > > Because I, for one, don't have the time to go to a web page > and peruse the various discussions? I can efficiently see > the topics, file interesting "stuff" away for later use or > reference, and delete the trivia. Going to a web page and > sorting through all this is tiresome at best and looks to me > like a waste of time. > > Personal opinions. But that'd be my vote if it comes to one. > The list, as a monolith, in fact, and not subdivided into a > whole bunch of separate sublists. > > gerry > > S.Nicolas - Webmaster wrote: > > Totally agree, lots of open source forum available, easy to set up. > > > > St?phane > > > > > > -----Original Message----- > > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > On Behalf Of Jeff Portwine > > Sent: 20 May 2005 13:27 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in > > mapserver archives > > > > I know this is offtopic, but since this was brought up... > it kind of leads > > into a question I've had for a while. Is there any > particular reason that > > we use an email list instead of like a web forum for this kind of > > communication? It seems like opensource projects like > this one tend to use > > email lists instead of forums, but it seems to me that > there are a lot > > of advantages to a web forum such as easier searching and threaded > > messages, as well as the ability to post announcements and > sticky-note a FAQ would make > > it the preferred method. It would also solve the spam > problem as email > > addresses can pretty much always be hidden. I'm not > opposed to email of > > course, was just a question I had. > > > > -Jeff > > > > ----- Original Message ----- > > From: "Jacob Delfos" > > To: > > Sent: Friday, May 20, 2005 6:57 AM > > Subject: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in > > mapserver archives > > > > > > > >>Hi All, > >> > >>Sorry if this has been brought up before, but the spam problem is > >>taking on worse forms for me. Since I have been on the > mapserver (and > >>related) mailing lists, my e-mail address have been > appearing a lot on > >>the internet, in a completely undisguised way. The amount of spam I > >>receive has since been rising rapidly. Additionally, my address is > >>being spoofed lately, such that I occasionally get 100s of bounced > >>messages that I didn't send, to people to whom it could not > be delivered. > >> > >>I was hoping it might be possible to configure the mailing > lists such > >>that e-mail addresses are disguised (even if it is poorly, by > >>replacing occurrences of @ with 'at'). I know that I could set up a > >>special "mailing list" address, but that makes things a lot > harder to > >>manage, and people would still send spam in my name. > >> > >>My address does not appear anywhere else on the internet, so I am > >>quite sure that the archives of the mailing lists are the > cause. It's > >>not that I'm trying to complain, just that a small change > could save a > >>lot of people a lot of headaches. > >> > >>regards, > >> > >>Jacob > >> > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Anti-Virus. > > Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: > > 19/05/2005 > > > > > > -- > Gerry Creager -- gerry.creager at tamu.edu > Texas Mesonet -- AATLT, Texas A&M University > Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 > Page: 979.228.0173 > Office: 903A Eller Bldg, TAMU, College Station, TX 77843 > From fsimon at UNIVALI.BR Fri May 20 10:18:29 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Fri, 20 May 2005 14:18:29 -0300 Subject: Oracle Spatial (Failed to draw layer named 'layer') In-Reply-To: Message-ID: Hi, The beta1 version don't work correctly with Oracle Spatial using the native driver, this problem was solved in CVS and beta2 version. Can you try with the last version? Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ Johan Hallgren wrote: >Hello > >I'm trying to use MapServer with oracle spatial (10.1.0g). > >I'm using mapserver-4.6.0-beta1 and I have created a c#-mapscript to >access the map. > >Using shp2img and ogrinfo works but it's extremely slow. > >When I use the: >imageObj i_obj = oMapObj.draw(); >in my c# code I've get the: >"Failed to draw layer named 'layer'" >exception. > >I have tried to move the shp2img to the dir where the c#-dll reside and >shp2img works there but not my dll. By doing that I've get the feeling >that the other dll:s (gdal12.dll, libmap.dll, bgd.dll, iconv.dll, >charset.dll) should be correct. > >Could it be a problem to reach the oracle-dll from dotnet? I have >given 'everyone' 'full control' to the ORACLE_HOME/bin directory. > >Any assistance would be great. > >/Johan > > > From lester at LSCES.CO.UK Fri May 20 10:45:13 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Fri, 20 May 2005 18:45:13 +0100 Subject: GDV Client In-Reply-To: Message-ID: Armin Burger wrote: > if you search at Sourceforge for 'MapServer' you will find at least 2 PHP/Mapscript client packages, like p.mapper and Musmap. Actually you get 18 projects - but many of them can be ignored - at least p.mapper has some activity :) Musmap is on my - not able to run list as it's restricted on database support ;) That is the same, I've now found, as mapbender - which only supports MySQL in the released version. If p.mapper will install I'll have a third possible selection working over the weekend :) At least replacing PEARdb with ADOdb is not difficult, then I can link to all the rest of the CMS system! Mapsurfer is also on the list to get running. At this rate I'll have a nice comparison site working :) -- Lester Caine ----------------------------- L.S.Caine Electronic Services From godwin.liz at GMAIL.COM Fri May 20 10:41:48 2005 From: godwin.liz at GMAIL.COM (Liz Godwin) Date: Fri, 20 May 2005 13:41:48 -0400 Subject: Undisguised e-mail addresses in mapserver archives In-Reply-To: <004201c55d5e$ad99e460$1bf2fbd0@solo> Message-ID: I really like the hybrid idea. On 5/20/05, Jeff Portwine wrote: > > I've actually configured a nice combination solution, it is the phpBB > forum > with the m2f (mail2forum) addon mod. It allows forum users, if they > choose, to have all posts emailed to them... they can then reply to the > posts or to create a new post they can email the post to the forum and it > will be posted on their behalf. It's a very nice hybrid solution.... > people who like forums go to the forum, and to people who like email > better > it's pretty much indistinguishable from any other email list. > > -Jeff > ----- Original Message ----- > From: "John Fletcher" > To: > Sent: Friday, May 20, 2005 12:26 PM > Subject: Re: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in > mapserver > archives > > > The freeware version of the discus web forum can email posts to 'watched' > topics. There may be others which do the same. Much as I like the > structure of a nice web forum, if I don't get emailed the posts, I'll > never > read them. > > John > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gerry > > Creager N5JXS > > Sent: Friday, May 20, 2005 6:08 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Undisguised e-mail > > addresses in mapserver archives > > > > Because I, for one, don't have the time to go to a web page > > and peruse the various discussions? I can efficiently see > > the topics, file interesting "stuff" away for later use or > > reference, and delete the trivia. Going to a web page and > > sorting through all this is tiresome at best and looks to me > > like a waste of time. > > > > Personal opinions. But that'd be my vote if it comes to one. > > The list, as a monolith, in fact, and not subdivided into a > > whole bunch of separate sublists. > > > > gerry > > > > S.Nicolas - Webmaster wrote: > > > Totally agree, lots of open source forum available, easy to set up. > > > > > > St?phane > > > > > > > > > -----Original Message----- > > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > On Behalf Of Jeff Portwine > > > Sent: 20 May 2005 13:27 > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in > > > mapserver archives > > > > > > I know this is offtopic, but since this was brought up... > > it kind of leads > > > into a question I've had for a while. Is there any > > particular reason that > > > we use an email list instead of like a web forum for this kind of > > > communication? It seems like opensource projects like > > this one tend to use > > > email lists instead of forums, but it seems to me that > > there are a lot > > > of advantages to a web forum such as easier searching and threaded > > > messages, as well as the ability to post announcements and > > sticky-note a FAQ would make > > > it the preferred method. It would also solve the spam > > problem as email > > > addresses can pretty much always be hidden. I'm not > > opposed to email of > > > course, was just a question I had. > > > > > > -Jeff > > > > > > ----- Original Message ----- > > > From: "Jacob Delfos" > > > To: > > > Sent: Friday, May 20, 2005 6:57 AM > > > Subject: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in > > > mapserver archives > > > > > > > > > > > >>Hi All, > > >> > > >>Sorry if this has been brought up before, but the spam problem is > > >>taking on worse forms for me. Since I have been on the > > mapserver (and > > >>related) mailing lists, my e-mail address have been > > appearing a lot on > > >>the internet, in a completely undisguised way. The amount of spam I > > >>receive has since been rising rapidly. Additionally, my address is > > >>being spoofed lately, such that I occasionally get 100s of bounced > > >>messages that I didn't send, to people to whom it could not > > be delivered. > > >> > > >>I was hoping it might be possible to configure the mailing > > lists such > > >>that e-mail addresses are disguised (even if it is poorly, by > > >>replacing occurrences of @ with 'at'). I know that I could set up a > > >>special "mailing list" address, but that makes things a lot > > harder to > > >>manage, and people would still send spam in my name. > > >> > > >>My address does not appear anywhere else on the internet, so I am > > >>quite sure that the archives of the mailing lists are the > > cause. It's > > >>not that I'm trying to complain, just that a small change > > could save a > > >>lot of people a lot of headaches. > > >> > > >>regards, > > >> > > >>Jacob > > >> > > > > > > > > > -- > > > No virus found in this incoming message. > > > Checked by AVG Anti-Virus. > > > Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: > > > 19/05/2005 > > > > > > > > > > -- > > Gerry Creager -- gerry.creager at tamu.edu > > Texas Mesonet -- AATLT, Texas A&M University > > Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 > > Page: 979.228.0173 > > Office: 903A Eller Bldg, TAMU, College Station, TX 77843 > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lester at LSCES.CO.UK Fri May 20 12:00:20 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Fri, 20 May 2005 20:00:20 +0100 Subject: Mapbender In-Reply-To: <428E0477.4030203@ccgis.de> Message-ID: Arnulf Christl wrote: >>> http://www.mapbender.org >> Because I had not found it yet ? > Where else do you propose to promote new Free Software projects? We cant > afford TV commercials although i believe that could be really funny. Have the same problem with Firebird ;) >> There is a lot of good stuff out there, but it is buried under twice as >> many dead ends and bad links. Even the 'Demo Server' link on mapbender >> does not seem to do anything :( > > Works fine for me using FireFox (though newer versions are bad crashers > :-( ), MS IE and Opera (new version) on Windows 2000/3 XP, Ubuntu, > FreeBSD, Debian, Mandrake/driva, SuSE. Tell me whats wrong & we have a > look into it. OK I went for wms_europe -> blank, then wms_world -> blank so I gave up - now I've gone back and some of the others actually work :) > Xenu reports not one dead end on Mapbender.org. All Mapbender interfaces > on this site are in constant state of flux - conceded. This is not a > productive environment but a place to show, learn, experiment and > discuss. Go to the gallery to find some productive environments or google. The comment was ment to be general, but I was running mapbender on the other screen and not getting very far with the demo :( >> Like other people *I* would like a live coordinate display on the >> client, jBox put me off because it says 'java' and I have enough fun >> with PHP and Javascript after 25 years of C/Pascal/Algol programming :) > > Want the coordinates like it is done here: > http://wms1.ccgis.de/mapbender2/frames/login.php?name=mb&password=mb&mb_user_myGui=gui Having to switch it ON was not intuitive - but that is the sort of thing :) > Newest feature there: the precision of the selected coordinate reflects > on the scale you are working in. The further you zoom in, the more > precision you get. Nice feature we missed on most clients so far and you > badly need it for online editing, measuring and digitizing. Editing may be required, but not for my target users. >> The final piece of the jigsaw - I prefer to work in Firebird for SQL >> since the last 15 years worth of data are stored there, and we have 5 >> years 'experience' of 24/7 operation without a single problem. So I need >> to be able to get to a point I can add 'FirebirdGIS' ;) >> ( See >> http://home.lsces.co.uk/ibWebAdmin_0_98/FirebirdFederationDataArchive.html >> >> for a source of useful location information :) ) > > Does that mean you would want to extend Mapbender to use FireBird as > admin database? You are welcome - go ahead. Need access to the CVS, > prove yourself and ask for it. I can't run Mapbender at all at present, so I would need to replace the database, and IF I find some time over the weekend ... *MY* end target is a module to work with tikipro, which can be used to display graphical data linked to the rest of the content. > We are currently implementing a wrapper for PostgreSQL (our favorite DB) > and it presents us with problems not anticipated (something that never > happens to any developer ever) and will keep us busy for a few more days. Having been involved with a few projects that HAD to replace MySQL for something more stable I can probably list many of them. I standardised on ADOdb some time ago, and porting to that handles a number of them, then you end up re-writing the database script to something 'practical' ! > Just out of interest: > If the GDV client is the "GDV Mapserver Client" promoted on > http://www.gdv-gis.de/ then it is freeware, not Open Source. We already > had some discussions about this... And not reading German ... I could not see any restrictions ;) I'm heading down the route of free access historical data from out of copyright material, so the client should be accessible to 'novice' users. > GDV-MapBuilder is proprietary (and has nothing in common with the Free > MapBuilder WFS-T JavaScript client shipped with GeoServer - something > you might want to have a look at too). Even more choice ;) ..... > WARNING: personal POV! > In our opinion everybody using Free Software *and* building a business > model on top should also promote it. Not only the top 1% freeware client > but the underlying 99% architecture with MapServer, operating system, > web server, spatial database... My framework is Apache/PHP/Firebird which is what I promote, and I'm looking to augment that with a similarly licence GIS system. I do need to keep an eye on licences, but it is difficult if you can't read them ! > WARNING: business model > If you are ESRI partner you should *not* promote any Open Source *ever* > because else you will be thrown out of the partner program. Examples > abound. Since I have already paid for the Ordnance Survey with my taxes, the data should be freely available - and I should not have to pay increased council tax so my council/county can pay to get it again. So ESRI are not on MY list of possible partners! -- Lester Caine ----------------------------- L.S.Caine Electronic Services From lfilak at MEDINACO.ORG Fri May 20 12:18:43 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 20 May 2005 15:18:43 -0400 Subject: Point attribue value Message-ID: The following message was sent by "Mehdi Kiman" on Fri, 20 May 2005 16:51:48 +0000. > I knew that. But my problem is in the step after. > How i can query my shape using the picked point. I can use Wich methods ? > Thanks Lowell > > > > >From: "Lowell Filak" > >To: Mehdi Kiman , MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: Re: [UMN_MAPSERVER-USERS] Point attribue value > >Date: Fri, 20 May 2005 10:55:47 -0400 > > > >The following message was sent by Mehdi Kiman on > >Fri, 20 May 2005 08:03:24 -0500. > > > > > Hello, > > > I would click in a map and have attributes informations about the > >clicked point. > > > i must use methods like getmeasureusingpoint(pointObject point) and > > > getShape(int tileindex, int shapeindex) but my problem is to have > >connection > > > between my clicked point and the shape object. > > > How i can get the "shapeindex" number of my point ? > > > > > > Sorry for my confused request. > > > >Mehdi, > > > >The first step is to translate from pixel coordinates to real-coordinates. > >The you can query your shape(s) using the picked point. > > > >Lowell Will layer-querybypoint fit the need? Lowell From gerry.creager at TAMU.EDU Fri May 20 12:22:11 2005 From: gerry.creager at TAMU.EDU (Gerry Creager n5jxs) Date: Fri, 20 May 2005 14:22:11 -0500 Subject: Undisguised e-mail addresses in mapserver archives In-Reply-To: <004201c55d5e$ad99e460$1bf2fbd0@solo> Message-ID: I could live with something like this! gerry Jeff Portwine wrote: > I've actually configured a nice combination solution, it is the phpBB > forum > with the m2f (mail2forum) addon mod. It allows forum users, if they > choose, to have all posts emailed to them... they can then reply to the > posts or to create a new post they can email the post to the forum and it > will be posted on their behalf. It's a very nice hybrid solution.... > people who like forums go to the forum, and to people who like email > better > it's pretty much indistinguishable from any other email list. > > -Jeff > ----- Original Message ----- > From: "John Fletcher" > To: > Sent: Friday, May 20, 2005 12:26 PM > Subject: Re: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in > mapserver > archives > > > The freeware version of the discus web forum can email posts to 'watched' > topics. There may be others which do the same. Much as I like the > structure of a nice web forum, if I don't get emailed the posts, I'll never > read them. > > John > >> -----Original Message----- >> From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gerry >> Creager N5JXS >> Sent: Friday, May 20, 2005 6:08 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Undisguised e-mail >> addresses in mapserver archives >> >> Because I, for one, don't have the time to go to a web page >> and peruse the various discussions? I can efficiently see >> the topics, file interesting "stuff" away for later use or >> reference, and delete the trivia. Going to a web page and >> sorting through all this is tiresome at best and looks to me >> like a waste of time. >> >> Personal opinions. But that'd be my vote if it comes to one. >> The list, as a monolith, in fact, and not subdivided into a >> whole bunch of separate sublists. >> >> gerry >> >> S.Nicolas - Webmaster wrote: >> > Totally agree, lots of open source forum available, easy to set up. >> > >> > St?phane >> > >> > >> > -----Original Message----- >> > From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> > On Behalf Of Jeff Portwine >> > Sent: 20 May 2005 13:27 >> > To: MAPSERVER-USERS at LISTS.UMN.EDU >> > Subject: Re: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in >> > mapserver archives >> > >> > I know this is offtopic, but since this was brought up... >> it kind of leads >> > into a question I've had for a while. Is there any >> particular reason that >> > we use an email list instead of like a web forum for this kind of >> > communication? It seems like opensource projects like >> this one tend to use >> > email lists instead of forums, but it seems to me that >> there are a lot >> > of advantages to a web forum such as easier searching and threaded >> > messages, as well as the ability to post announcements and >> sticky-note a FAQ would make >> > it the preferred method. It would also solve the spam >> problem as email >> > addresses can pretty much always be hidden. I'm not >> opposed to email of >> > course, was just a question I had. >> > >> > -Jeff >> > >> > ----- Original Message ----- >> > From: "Jacob Delfos" >> > To: >> > Sent: Friday, May 20, 2005 6:57 AM >> > Subject: [UMN_MAPSERVER-USERS] Undisguised e-mail addresses in >> > mapserver archives >> > >> > >> > >> >>Hi All, >> >> >> >>Sorry if this has been brought up before, but the spam problem is >> >>taking on worse forms for me. Since I have been on the >> mapserver (and >> >>related) mailing lists, my e-mail address have been >> appearing a lot on >> >>the internet, in a completely undisguised way. The amount of spam I >> >>receive has since been rising rapidly. Additionally, my address is >> >>being spoofed lately, such that I occasionally get 100s of bounced >> >>messages that I didn't send, to people to whom it could not >> be delivered. >> >> >> >>I was hoping it might be possible to configure the mailing >> lists such >> >>that e-mail addresses are disguised (even if it is poorly, by >> >>replacing occurrences of @ with 'at'). I know that I could set up a >> >>special "mailing list" address, but that makes things a lot >> harder to >> >>manage, and people would still send spam in my name. >> >> >> >>My address does not appear anywhere else on the internet, so I am >> >>quite sure that the archives of the mailing lists are the >> cause. It's >> >>not that I'm trying to complain, just that a small change >> could save a >> >>lot of people a lot of headaches. >> >> >> >>regards, >> >> >> >>Jacob >> >> >> > >> > >> > -- >> > No virus found in this incoming message. >> > Checked by AVG Anti-Virus. >> > Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: >> > 19/05/2005 >> > >> > >> >> -- >> Gerry Creager -- gerry.creager at tamu.edu >> Texas Mesonet -- AATLT, Texas A&M University >> Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 >> Page: 979.228.0173 >> Office: 903A Eller Bldg, TAMU, College Station, TX 77843 >> -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From arnulf.christl at CCGIS.DE Fri May 20 10:21:56 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri, 20 May 2005 19:21:56 +0200 Subject: Mapbender (was: GDV Client) Message-ID: Lester Caine wrote: [...] >> http://www.mapbender.org > > > Because I had not found it yet ? Hi, i am the project admin and most of the time i have a bad feeling for promoting Mapbender everywhere because the worst thing you can do is be a pain in the ass by producing spam. We already infested SourceForge, maptools.org, berlios platforms and MapServer, Chameleon, OpenSDI, FreeGIS, OpenGeoDB, Geowanking user mailing lists, Wikipedia and Mediawiki and have it referenced at the OGC. Mapbender is up and running under the GPL for almost 2 years now. Where else do you propose to promote new Free Software projects? We cant afford TV commercials although i believe that could be really funny. > There is a lot of good stuff out there, but it is buried under twice as > many dead ends and bad links. Even the 'Demo Server' link on mapbender > does not seem to do anything :( Works fine for me using FireFox (though newer versions are bad crashers :-( ), MS IE and Opera (new version) on Windows 2000/3 XP, Ubuntu, FreeBSD, Debian, Mandrake/driva, SuSE. Tell me whats wrong & we have a look into it. Xenu reports not one dead end on Mapbender.org. All Mapbender interfaces on this site are in constant state of flux - conceded. This is not a productive environment but a place to show, learn, experiment and discuss. Go to the gallery to find some productive environments or google. > Like other people *I* would like a live coordinate display on the > client, jBox put me off because it says 'java' and I have enough fun > with PHP and Javascript after 25 years of C/Pascal/Algol programming :) Want the coordinates like it is done here: http://wms1.ccgis.de/mapbender2/frames/login.php?name=mb&password=mb&mb_user_myGui=gui Newest feature there: the precision of the selected coordinate reflects on the scale you are working in. The further you zoom in, the more precision you get. Nice feature we missed on most clients so far and you badly need it for online editing, measuring and digitizing. > The final piece of the jigsaw - I prefer to work in Firebird for SQL > since the last 15 years worth of data are stored there, and we have 5 > years 'experience' of 24/7 operation without a single problem. So I need > to be able to get to a point I can add 'FirebirdGIS' ;) > ( See > http://home.lsces.co.uk/ibWebAdmin_0_98/FirebirdFederationDataArchive.html > for a source of useful location information :) ) Does that mean you would want to extend Mapbender to use FireBird as admin database? You are welcome - go ahead. Need access to the CVS, prove yourself and ask for it. We are currently implementing a wrapper for PostgreSQL (our favorite DB) and it presents us with problems not anticipated (something that never happens to any developer ever) and will keep us busy for a few more days. >> Some examples: >> >> http://www.terrestris.de/hp/en/con_demo.php > > Better than the 'Demo Server' ;) Would be great if you could point us to what exactly is not working fine. This demo shows a lot more than just OGC WMS maps, you can dynamically search, load and highlight postcodes as GML - something we were quite proud of until you said its no good... :-) Just out of interest: If the GDV client is the "GDV Mapserver Client" promoted on http://www.gdv-gis.de/ then it is freeware, not Open Source. We already had some discussions about this... GDV-MapBuilder is proprietary (and has nothing in common with the Free MapBuilder WFS-T JavaScript client shipped with GeoServer - something you might want to have a look at too). WARNING: personal POV! In our opinion everybody using Free Software *and* building a business model on top should also promote it. Not only the top 1% freeware client but the underlying 99% architecture with MapServer, operating system, web server, spatial database... WARNING: business model If you are ESRI partner you should *not* promote any Open Source *ever* because else you will be thrown out of the partner program. Examples abound. Best, > -- > Lester Caine > ----------------------------- > L.S.Caine Electronic Services -- -------------------------- Arnulf B. Christl -------------------------- http://www.ccgis.org http://www.mapbender.org http://wms1.ccgis.de/ewiki -------------------------- From rick at INNIS.CA Fri May 20 18:43:16 2005 From: rick at INNIS.CA (Rick Innis) Date: Fri, 20 May 2005 21:43:16 -0400 Subject: Mapscript Java API on Mac OS X Message-ID: Has anyone actually successfully built and run mapscript/java on Mac OS X? I can build it, with a little manipulation of the makefile (substituting "-bundle" for "-shared" in the mapscript_so target, and passing RUNPATHS='-liconv' on the command line to get around the error "ld: ../../libmap.a(mapgd.o) illegal reference to symbol: _libiconv defined in indirectly referenced dynamic library /usr/lib/libiconv.2.dylib") However, when I run "make test" I get this exception: Exception in thread "main" java.lang.UnsatisfiedLinkError: new_shapefileObj at edu.umn.gis.mapscript.mapscriptJNI.new_shapefileObj(Native Method) at edu.umn.gis.mapscript.shapefileObj.(shapefileObj.java:75) at DumpShp.main(DumpShp.java:40) I'm at a loss to explain this - I know that the native code library is being loaded, but it seems that it's not finding the symbols for the function calls. I'd love to hear from anyone who might have any insight into this. --Rick. From paul at SUSTAINABLEGIS.COM Fri May 20 18:58:07 2005 From: paul at SUSTAINABLEGIS.COM (Paul Hastings) Date: Sat, 21 May 2005 08:58:07 +0700 Subject: Undisguised e-mail addresses in mapserverarchives In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8188561@ptolemy.topozone.com> Message-ID: Ed McNierney wrote: > I agree about emails - I don't think I'm going to check the forum > several times a day to see if something's there. And I'm not going > to "watch" a topic if I don't even know it exists! RSS feed. From ttsai at POBOX.COM Fri May 20 19:01:21 2005 From: ttsai at POBOX.COM (Tim Tsai) Date: Fri, 20 May 2005 21:01:21 -0500 Subject: ESRI Arcweb as background layer? Message-ID: For a client we are interested in possibily using ArcWeb for background images (street layers + geocoder). Has anybody tried this and is it pretty straightforward? Just thought I ask before I embark on the task. Note the main reason for ESRI is better geocoder and street information. We know how to do that with public data on mapserver. Thanks, Tim From lester at LSCES.CO.UK Fri May 20 23:40:04 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Sat, 21 May 2005 07:40:04 +0100 Subject: Clients vs. Environments Message-ID: OK Guys and Gals I have an environment that I am more than happy with, and am using to provide systems that pay the bills. It is based around Apache2, PHP5 and Firebird, and runs on Windows or Linux servers depending on the customer. The main 'profitable area' is client management facility for public offices (government/council/housing etc.) and we are 'treading water' against the competition who offer Oracle or MSSQL based systems in sites that do not have that sort of money ;) *I* am looking for a Mapserver CLIENT that I can add to this environment to provide access to map type information from within the framework I already have working. Mapserver can provide the sorts of display I want, and I can create the maps I need from a number of sources - some of which are commercial, but for which the customers have already contracted to use. A number of alternative options have already been highlighted, and these give more or less what I need to provide a user interface, but none are 'the answer'. SO the question before I spend another week playing with more options on doing this - between updates to my other systems. Are there any options that I have missed that are not - limited to MySQL or other single database requirements - do not support cross platform development - can be used licence free - do not require an overcoat of non-GIS tools. Here is the list so far:- Original itasca demo interface - simple but limited - it works MapBrowser - display functions similar to demo - no cursor or rubber band ( Nice as part of MapLab and useful for editing but more an environment than a stand alone client ) Chameleon - another environment package? - not implemented locally MapClient - Needs a bit more investigation, not got working fully yet MapDesk - Useful for playing with map files but not a client MapSurfer - Have not got a map to load yet :( jBox - Performs reasonably, but put off by possible need to support Java Yes I know I don't need to build it, but I like to be able to! GDV Client - Demo gives me everything I want except the coordinate display. Mapbender - Client looks nice but currently buried in a MySQL only environment p.mapper - Looking good, but I need to get my test set in Only thing I'm missing is the cross-hair but that is not a show stopper Musmap - Requires a database I do not use to run So as you can see I have been through quite a gammit of options - missing from this list is all the editing tools I have also had a play with! I'm going to spend some time over the weekend putting my test maps into p.mapper, and trying to get at the Mapbender Client, but is there anything major that I have missed and 'should really have a look at'. This is only secondary to my main development work so I don't want to spend too much more time 'sticking the pin in'! I need to hammer in a nail and go with something :) -- Lester Caine ----------------------------- L.S.Caine Electronic Services From olivier.gayte at VEREMES.COM Sat May 21 01:28:53 2005 From: olivier.gayte at VEREMES.COM (Olivier Gayte) Date: Sat, 21 May 2005 03:28:53 -0500 Subject: Performance ArcIMS vs MapServer Message-ID: Congratulation. It's a good and useful job. I assume you used shapefile data for your test. Do you know if there is a significant difference with mapinfo .tab files ? Regards On Fri, 20 May 2005 01:41:50 -0500, Johan Hallgren wrote: >Hello > >We have created a testapplication that can be used on ArcIMS and now >MapServer. > >Both MapServer and ArcIMS are on the same server (Windows 2000 server) >with the same data (200 MB vectordata in shapefiles). > >MapServer is wrapped in a c#/dotnet webservice. The API to the webservice >is ArcXML so both solutions have the same interface. > >The testapplication used sex simultaneous clients requested 500 maps each >in total 3000 maps. > >RESULTS: > >MapServer > >Total time: 7.47 min (467 sec 0.1566 sec/map (image), 385 maps/min) > >Max delay for a map: 2.93 sec > >Min delay for a map: 0.14 sec > >Average for a map (with six simultaneous clients): 0.96 sec > > >ArcIMS > >Total time: 12.08 min (728 sec 0.2426 sec/map (image), 247 maps/min) > >Max delay for a map: 3.94sec > >Min delay for a map: 0.12 sec > >Average for a map (with six simultaneous clients): 1,49 sec > >My calculations gives that MapServer is about 30% faster when zooming than >ArcIMS > >Cheers > >Johan From margottid at COMUNE.LUGO.RA.IT Sat May 21 01:51:02 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Sat, 21 May 2005 10:51:02 +0200 Subject: How can I highlight more than one feature in QUERY mode? Message-ID: Hi list, with CGI mode=ITEMQUERYMAP I can produce a map with one highlighted feature (defined using QITEM, QLAYER and QSTRING). How can I highlight more than one feature (within the same layer) using the same syntax (QITEM + QLAYER + QSTRING)? Is there the possibility to use an "OR condition" or a regular expression in QSTRING parameter? Thank you, Daniele -------------- next part -------------- An HTML attachment was scrubbed... URL: From teb at MALLIT.FR.UMN.EDU Sat May 21 08:45:34 2005 From: teb at MALLIT.FR.UMN.EDU (Thomas E Burk) Date: Sat, 21 May 2005 10:45:34 -0500 Subject: MapServer web site to be down for maintenance Message-ID: The MapServer web site will be down from approximately 12:01AM until 5:00AM on May 26, 2005 while engineers perform building electrical maintenance. These are US Central daylight times. This outage will not affect the e-mail lists. If you have concerns, send them directly to me, not the list. Tom ======================= Dr. Thomas E. Burk University of Minnesota 1530 Cleveland Avenue North St. Paul, MN 55108 612-624-6741 612-625-5212 (FAX) tburk at umn.edu From bill at BINKO.NET Sat May 21 11:18:47 2005 From: bill at BINKO.NET (Bill Binko) Date: Sat, 21 May 2005 14:18:47 -0400 Subject: Clients vs. Environments In-Reply-To: <428ED7C4.4020604@lsces.co.uk> Message-ID: On Sat, 21 May 2005, Lester Caine wrote: > Here is the list so far:- ... > MapSurfer - Have not got a map to load yet :( I have gotten MapSurfer to work fine, and for what it is, it works well. It basically is a frames-based Map viewer that displays locally hosted mapfiles via the CGI Mapserver interface. Personally, I find it hard to extend, as all of the logic is embedded in DHTML/Javascript. The only part that I couldn't get to work was the reference map (but that's certainly because I didn't care about it.) It is an excellent testbed for playing with mapfiles while I develop the rest of my site. For a more integrated system, I am also looking at a component framework, and am playing with Chameleon and p.mapper. I don't have enough experience with either to provide input here. If you want to see MapSurfer, email me and I'll get you a username/password to my testbed site. Bill From stigmata_blackangel at YAHOO.COM Sat May 21 11:41:18 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Sat, 21 May 2005 11:41:18 -0700 Subject: Chameleon installation? Message-ID: I've been trying to install Chameleon for a few days, and have been having trouble with it. Specifically, the install documentation appears to be incomplete and inaccurate. Does anyone have a complete procedure for installing Chameleon? I considered trying MapLab instead, but the site says that it has a known problem with PHP > 4.3.9 Any suggestions? Any comparable open-source map-editing products to suggest? Discover Yahoo! Use Yahoo! to plan a weekend, have fun online and more. Check it out! http://discover.yahoo.com/ From lester at LSCES.CO.UK Sat May 21 11:49:47 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Sat, 21 May 2005 19:49:47 +0100 Subject: Clients vs. Environments In-Reply-To: Message-ID: Bill Binko wrote: >>MapSurfer - Have not got a map to load yet :( > > I have gotten MapSurfer to work fine, and for what it is, it works well. > It basically is a frames-based Map viewer that displays locally hosted > mapfiles via the CGI Mapserver interface. Personally, I find it hard to > extend, as all of the logic is embedded in DHTML/Javascript. The only > part that I couldn't get to work was the reference map (but that's > certainly because I didn't care about it.) Looking at it to see what I am doing wrong is giving me the same impression. > It is an excellent testbed for playing with mapfiles while I develop the > rest of my site. I've four of them so far, and now adding a couple more ;) > For a more integrated system, I am also looking at a component framework, > and am playing with Chameleon and p.mapper. I don't have enough > experience with either to provide input here. p.mapper is looking higher up the list at the moment. Once I get the IsleofMan maps running in it I can compare performance, but the code looks quite nice - so far! > If you want to see MapSurfer, email me and I'll get you a > username/password to my testbed site. I think I'll pass at present, unless I feel like adding it to the my comparison set, in which case I may take you up just to see how it should look :) -- Lester Caine ----------------------------- L.S.Caine Electronic Services From bartvde at XS4ALL.NL Sat May 21 11:47:06 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 21 May 2005 20:47:06 +0200 Subject: Chameleon installation? In-Reply-To: <20050521184118.61662.qmail@web53804.mail.yahoo.com> Message-ID: Gregor, first of all, this kind of question can be better addressed at the Chameleon user list. If you use MS4W installing Chameleon is a piece of cake actually. Running your own Apache server you have to be a bit more advanced (but it is still very much doable), and running under IIS even a bit more advanced. Please note that Chameleon is not a map editing product, it is more a publishing product to publish data in flexible web mapping applications based on templates. Maplab does serve the map editing purpose. For Map editing you could also use QGIS and export as MAP file, but I don't know if your solution needs to be web-based. Also, QGIS can't open a MAP file. Best regards, Bart On Sat, 21 May 2005 20:41:18 +0200, Gregor Mosheh wrote: > I've been trying to install Chameleon for a few days, > and have been having trouble with it. Specifically, > the install documentation appears to be incomplete and > inaccurate. Does anyone have a complete procedure for > installing Chameleon? > > I considered trying MapLab instead, but the site says > that it has a known problem with PHP > 4.3.9 > > Any suggestions? Any comparable open-source > map-editing products to suggest? > > > > > Discover Yahoo! > Use Yahoo! to plan a weekend, have fun online and more. Check it out! > http://discover.yahoo.com/ > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From beny.santoso at GMAIL.COM Sun May 22 05:48:10 2005 From: beny.santoso at GMAIL.COM (beny santoso) Date: Sun, 22 May 2005 19:48:10 +0700 Subject: Progress bar didn't stop in FireFox and Netscape Message-ID: Hi all, My application (using mapserver) running well when i browse with IE and Opera. But in FireFox and Netscape, progress bar didn't stop when process finish. Then maptool (zoom, pan etc) didn't work. Any help? Thank's Regards, Beny From bartvde at XS4ALL.NL Sun May 22 06:35:17 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sun, 22 May 2005 15:35:17 +0200 Subject: Progress bar didn't stop in FireFox and Netscape In-Reply-To: <582b5a8805052205483c09477e@mail.gmail.com> Message-ID: What are you using as a client application? Mapserver is just a server. Are you using something like the Itasca demo? Try looking in the javascript window of Firefox (Tools->Javascript console), this probably has something to do with a javscript error. Best regards, Bart On Sun, 22 May 2005 14:48:10 +0200, beny santoso wrote: > Hi all, > > My application (using mapserver) running well when i browse with IE > and Opera. But in FireFox and Netscape, progress bar didn't stop when > process finish. Then maptool (zoom, pan etc) didn't work. > > Any help? Thank's > > Regards, > > Beny > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From richard.greenwood at GMAIL.COM Sun May 22 06:26:31 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sun, 22 May 2005 13:26:31 +0000 Subject: =?utf-8?b?W1VNTl9NQVBTRVJWRVItVVNFUlNd?= How can I highlight more than one feature in QUERY mode? Message-ID: Daniele Margotti COMUNE.LUGO.RA.IT> writes: > with CGI > mode=ITEMQUERYMAP I can produce a map with one highlighted feature (defined > using QITEM, QLAYER and QSTRING). > > > How can I highlight > more than one feature (within the same layer) using the same syntax (QITEM + > QLAYER + QSTRING)? > Is there the > possibility to use an "OR condition" or a regular expression in QSTRING > parameter? > > > Thank > you, > Daniele Make your querystring a regular expression like: qstring=/a|b|c/ would highlite objects 'a', 'b', and 'c'. Also be sure to put your template definition in the HEADER, not in the TEMPLATE. If you put it in TEMPLATE, you'll get three maps, but by putting it on HEADER, all three objects will be highlited on the same map. Rich From pspencer at DMSOLUTIONS.CA Sun May 22 09:10:22 2005 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Sun, 22 May 2005 12:10:22 -0400 Subject: Progress bar didn't stop in FireFox and Netscape In-Reply-To: Message-ID: There is a known problem with Mozilla-based browsers (the problem is in Mozilla, not MapServer) that causes this when the source of an image is changed after the page has loaded. The application is likely working just fine. Paul Bart van den Eijnden wrote: > What are you using as a client application? Mapserver is just a server. > Are you using something like the Itasca demo? > > Try looking in the javascript window of Firefox (Tools->Javascript > console), this probably has something to do with a javscript error. > > Best regards, > Bart > > On Sun, 22 May 2005 14:48:10 +0200, beny santoso > wrote: > >> Hi all, >> >> My application (using mapserver) running well when i browse with IE >> and Opera. But in FireFox and Netscape, progress bar didn't stop when >> process finish. Then maptool (zoom, pan etc) didn't work. >> >> Any help? Thank's >> >> Regards, >> >> Beny >> >> > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From bartvde at XS4ALL.NL Sun May 22 09:15:02 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sun, 22 May 2005 18:15:02 +0200 Subject: Progress bar didn't stop in FireFox and Netscape In-Reply-To: <4290AEEE.5060405@dmsolutions.ca> Message-ID: Hi Paul, that's also true, but the problem seemed to be that the javascript code which was used for the application was not cross-browser. It used things like window.event, so IE specific JS code. Best regards, Bart On Sun, 22 May 2005 18:10:22 +0200, Paul Spencer wrote: > There is a known problem with Mozilla-based browsers (the problem is in > Mozilla, not MapServer) that causes this when the source of an image is > changed after the page has loaded. The application is likely working > just fine. > > Paul > > Bart van den Eijnden wrote: >> What are you using as a client application? Mapserver is just a server. >> Are you using something like the Itasca demo? >> >> Try looking in the javascript window of Firefox (Tools->Javascript >> console), this probably has something to do with a javscript error. >> >> Best regards, >> Bart >> >> On Sun, 22 May 2005 14:48:10 +0200, beny santoso >> >> wrote: >> >>> Hi all, >>> >>> My application (using mapserver) running well when i browse with IE >>> and Opera. But in FireFox and Netscape, progress bar didn't stop when >>> process finish. Then maptool (zoom, pan etc) didn't work. >>> >>> Any help? Thank's >>> >>> Regards, >>> >>> Beny >>> >>> >> >> >> >> -- >> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ >> > > -- > +-----------------------------------------------------------------+ > |Paul Spencer pspencer at dmsolutions.ca | > +-----------------------------------------------------------------+ > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > +-----------------------------------------------------------------+ > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From vincent.dacol at LAPOSTE.NET Sun May 22 15:22:20 2005 From: vincent.dacol at LAPOSTE.NET (vincent.dacol) Date: Mon, 23 May 2005 00:22:20 +0200 Subject: WMS and reprojection Message-ID: Hello, I'm new to mapserver, and I try to display differents projected layers with WMS server. I have 2 WMS mapserver, and one mapserver WMS client. The projection on the 2 server is different. One is WSG84 and the other is Lambert93. The getcapabilities and getmap work fine. But when I display the two layer with my client, the reprojection doesn't work. The two layer haren't in the client output projection (WSG84). I have define the projection in the server in the map object,Web object and in the layer object. The meta wms_srs is too defined. The client use it own projection output, WGS84. I use espg code for define the differents projections capabilities. Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From chiba at C02.ITSCOM.NET Sun May 22 16:50:05 2005 From: chiba at C02.ITSCOM.NET (=?ISO-2022-JP?B?GyRCQGlNVSEhNjM5MBsoQg==?=) Date: Mon, 23 May 2005 08:50:05 +0900 Subject: MapServer 4.4.2 installation with phpMapScript Message-ID: Hello I'm now installing MapServer 4.4.2 with phpMapScript, and encounter troubles in drawing maps. When configuring without phpMapScript, sample demos (itasca.map or tutorials) work fine, but configuring with phpMapScript(--with-php option), following error message shown in execution time. ---------------------------------------------------- adMap(): Unable to access file. ---------------------------------------------------- Any advices are much appreciated. Thank you in advance. -------------------- Yasuhiro Chiba chiba at c02.itscom.net -------------------- From wildrov at BELLSOUTH.NET Sun May 22 17:46:49 2005 From: wildrov at BELLSOUTH.NET (Dave Tee) Date: Sun, 22 May 2005 19:46:49 -0500 Subject: Easy $100.00 for the working example Message-ID: Greetings All, I am still working on this with no luck. I can get it to show. But not at the proper scale. Someone in the "Know".....Would you please take this file...http://fryingpan.kicks-ass.net/sst/2005_118_0843_n16_sr.hdf and make a "proper" .map file out of it that I can use as an example. It seems that it is the extents that keep messing me up. Thank You for your Help! Dave From emiliom at U.WASHINGTON.EDU Sun May 22 22:29:37 2005 From: emiliom at U.WASHINGTON.EDU (Emilio Mayorga) Date: Sun, 22 May 2005 22:29:37 -0700 Subject: Progress bar didn't stop in FireFox and Netscape In-Reply-To: Message-ID: I've had the same problem in Firefox and Mozilla, using a javascript/DHTML application based on the Itasca demo, with lots of modifications. The progress bar looks active, the swirling browser icon (in Firefox) keeps going around, and when you move the cursor over a part of the browser other than the page, the cursor turns to the waiting cursor. I haven't found the exact source of the error; I gave up a while ago. Here's my application, if you're curious: http://geo.garrobo.org/mapache/eng/ecosist_ind.html -Emilio Mayorga Date: Sun, 22 May 2005 18:15:02 +0200 From: Bart van den Eijnden Subject: Re: Progress bar didn't stop in FireFox and Netscape Hi Paul, that's also true, but the problem seemed to be that the javascript code which was used for the application was not cross-browser. It used things like window.event, so IE specific JS code. Best regards, Bart On Sun, 22 May 2005 18:10:22 +0200, Paul Spencer wrote: > There is a known problem with Mozilla-based browsers (the problem is in > Mozilla, not MapServer) that causes this when the source of an image is > changed after the page has loaded. The application is likely working > just fine. > > Paul > > Bart van den Eijnden wrote: >> What are you using as a client application? Mapserver is just a server. >> Are you using something like the Itasca demo? >> >> Try looking in the javascript window of Firefox (Tools->Javascript >> console), this probably has something to do with a javscript error. >> >> Best regards, >> Bart >> >> On Sun, 22 May 2005 14:48:10 +0200, beny santoso >> >> wrote: >> >>> Hi all, >>> >>> My application (using mapserver) running well when i browse with IE >>> and Opera. But in FireFox and Netscape, progress bar didn't stop when >>> process finish. Then maptool (zoom, pan etc) didn't work. >>> >>> Any help? Thank's >>> >>> Regards, >>> >>> Beny From BEN at SYNCERA-ITSOLUTIONS.NL Mon May 23 00:30:54 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 23 May 2005 09:30:54 +0200 Subject: WMS and reprojection Message-ID: Could you provide a little bit more information, like the MAP file snippets? Both for the 2 servers and the client? Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "vincent.dacol" 05/23/05 12:22am >>> Hello, I'm new to mapserver, and I try to display differents projected layers with WMS server. I have 2 WMS mapserver, and one mapserver WMS client. The projection on the 2 server is different. One is WSG84 and the other is Lambert93. The getcapabilities and getmap work fine. But when I display the two layer with my client, the reprojection doesn't work. The two layer haren't in the client output projection (WSG84). I have define the projection in the server in the map object,Web object and in the layer object. The meta wms_srs is too defined. The client use it own projection output, WGS84. I use espg code for define the differents projections capabilities. Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From BEN at SYNCERA-ITSOLUTIONS.NL Mon May 23 00:32:12 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Mon, 23 May 2005 09:32:12 +0200 Subject: MapServer 4.4.2 installation with phpMapScript Message-ID: Hi, maybe you could have a look at FGS? http://www.maptools.org/fgs/ Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> $(B ?*t @*? O 05/23/05 01:50am >>> Hello I'm now installing MapServer 4.4.2 with phpMapScript, and encounter troubles in drawing maps. When configuring without phpMapScript, sample demos (itasca.map or tutorials) work fine, but configuring with phpMapScript(--with-php option), following error message shown in execution time. ---------------------------------------------------- adMap(): Unable to access file. ---------------------------------------------------- Any advices are much appreciated. Thank you in advance. -------------------- Yasuhiro Chiba chiba at c02.itscom.net -------------------- From mh at SVAJ.DK Mon May 23 00:37:09 2005 From: mh at SVAJ.DK (=?ISO-8859-1?Q?Martin_H=F8gh?=) Date: Mon, 23 May 2005 09:37:09 +0200 Subject: Clients vs. Environments Message-ID: Take also a look at http://maplink.sourceforge.net/ But if you want the avanced query and editing tools you've to use PostgreSQL with the PostGIS extension installed for spatial data store. /martin --------------------------------------------- Date: Sat, 21 May 2005 07:40:04 +0100 From: Lester Caine Subject: Clients vs. Environments OK Guys and Gals I have an environment that I am more than happy with, and am using to provide systems that pay the bills. It is based around Apache2, PHP5 and Firebird, and runs on Windows or Linux servers depending on the customer. The main 'profitable area' is client management facility for public offices (government/council/housing etc.) and we are 'treading water' against the competition who offer Oracle or MSSQL based systems in sites that do not have that sort of money ;) *I* am looking for a Mapserver CLIENT that I can add to this environment to provide access to map type information from within the framework I already have working. Mapserver can provide the sorts of display I want, and I can create the maps I need from a number of sources - some of which are commercial, but for which the customers have already contracted to use. A number of alternative options have already been highlighted, and these give more or less what I need to provide a user interface, but none are 'the answer'. SO the question before I spend another week playing with more options on doing this - between updates to my other systems. Are there any options that I have missed that are not - limited to MySQL or other single database requirements - do not support cross platform development - can be used licence free - do not require an overcoat of non-GIS tools. Here is the list so far:- Original itasca demo interface - simple but limited - it works MapBrowser - display functions similar to demo - no cursor or rubber band ( Nice as part of MapLab and useful for editing but more an environment than a stand alone client ) Chameleon - another environment package? - not implemented locally MapClient - Needs a bit more investigation, not got working fully yet MapDesk - Useful for playing with map files but not a client MapSurfer - Have not got a map to load yet :( jBox - Performs reasonably, but put off by possible need to support Java Yes I know I don't need to build it, but I like to be able to! GDV Client - Demo gives me everything I want except the coordinate display. Mapbender - Client looks nice but currently buried in a MySQL only environment p.mapper - Looking good, but I need to get my test set in Only thing I'm missing is the cross-hair but that is not a show stopper Musmap - Requires a database I do not use to run So as you can see I have been through quite a gammit of options - missing from this list is all the editing tools I have also had a play with! I'm going to spend some time over the weekend putting my test maps into p.mapper, and trying to get at the Mapbender Client, but is there anything major that I have missed and 'should really have a look at'. This is only secondary to my main development work so I don't want to spend too much more time 'sticking the pin in'! I need to hammer in a nail and go with something :) -- Lester Caine ----------------------------- L.S.Caine Electronic Services -- Martin H?gh Sven Allan Jensen as Sankelmarksgade 9 9000 Aalborg Tlf. 98129300 Direkte tlf. 96314082 From lester at LSCES.CO.UK Mon May 23 01:06:56 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Mon, 23 May 2005 09:06:56 +0100 Subject: Clients vs. Environments In-Reply-To: <42918825.6040008@svaj.dk> Message-ID: Martin H?gh wrote: > Take also a look at http://maplink.sourceforge.net/ > > But if you want the avanced query and editing tools you've to use > PostgreSQL with the PostGIS extension installed for spatial data store. No thanks - I don't use PostgeSQL ;) I know that is going to be restricting, but I do not intend getting stuck with a database engine specific solution - We need an SQLGIS option in place of PostGIS :( -- Lester Caine ----------------------------- L.S.Caine Electronic Services From mh at SVAJ.DK Mon May 23 03:33:19 2005 From: mh at SVAJ.DK (Martin H=?ISO-8859-1?Q?=F8gh?=) Date: Mon, 23 May 2005 05:33:19 -0500 Subject: Clients vs. Environments Message-ID: PostGIS follows the OpenGIS "Simple Features Specification for SQL", which of cause is an open standard. You'll be stuck on some proprietary technology if you use files like ESRI shape or MapInfo tab or on other spatial enabled database technology like ERSI SDE or Oracle Spatial (which also cost a lot of money). But the thing is that it?s only for PostGreSQL you can get a SFSQL extension - yet /martin On Mon, 23 May 2005 09:06:56 +0100, Lester Caine wrote: >Martin H?gh wrote: > >> Take also a look at http://maplink.sourceforge.net/ >> >> But if you want the avanced query and editing tools you've to use >> PostgreSQL with the PostGIS extension installed for spatial data store. > >No thanks - I don't use PostgeSQL ;) >I know that is going to be restricting, but I do not intend getting >stuck with a database engine specific solution - We need an SQLGIS >option in place of PostGIS :( > >-- >Lester Caine >----------------------------- >L.S.Caine Electronic Services From mapserver at METEOLOGICA.ES Mon May 23 03:48:30 2005 From: mapserver at METEOLOGICA.ES (Paco =?iso-8859-1?q?Regod=F3n?=) Date: Mon, 23 May 2005 12:48:30 +0200 Subject: Clients vs. Environments In-Reply-To: <428ED7C4.4020604@lsces.co.uk> Message-ID: Why don't you try any generic wms viewer? Just configure mapserver as an wms server and use any generic wms client. Have you tried http://www.wmsviewer.com/ ? Paco Regod?n El S?bado, 21 de Mayo de 2005 08:40, Lester Caine escribi?: > OK Guys and Gals > > I have an environment that I am more than happy with, and am using to > provide systems that pay the bills. It is based around Apache2, PHP5 and > Firebird, and runs on Windows or Linux servers depending on the > customer. The main 'profitable area' is client management facility for > public offices (government/council/housing etc.) and we are 'treading > water' against the competition who offer Oracle or MSSQL based systems > in sites that do not have that sort of money ;) > > *I* am looking for a Mapserver CLIENT that I can add to this environment > to provide access to map type information from within the framework I > already have working. Mapserver can provide the sorts of display I want, > and I can create the maps I need from a number of sources - some of > which are commercial, but for which the customers have already > contracted to use. > > A number of alternative options have already been highlighted, and these > give more or less what I need to provide a user interface, but none are > 'the answer'. > > SO the question before I spend another week playing with more options on > doing this - between updates to my other systems. Are there any options > that I have missed that are not - limited to MySQL or other single > database requirements - do not support cross platform development - can > be used licence free - do not require an overcoat of non-GIS tools. > > Here is the list so far:- > > Original itasca demo interface - simple but limited - it works > > MapBrowser - display functions similar to demo > - no cursor or rubber band > ( Nice as part of MapLab and useful for editing but more an environment > than a stand alone client ) > > Chameleon - another environment package? - not implemented locally > > MapClient - Needs a bit more investigation, not got working fully yet > > MapDesk - Useful for playing with map files but not a client > > MapSurfer - Have not got a map to load yet :( > > jBox - Performs reasonably, but put off by possible need to support Java > Yes I know I don't need to build it, but I like to be able to! > > GDV Client - Demo gives me everything I want except the coordinate display. > > Mapbender - Client looks nice but currently buried in a MySQL only > environment > > p.mapper - Looking good, but I need to get my test set in > Only thing I'm missing is the cross-hair but that is not a show stopper > > Musmap - Requires a database I do not use to run > > So as you can see I have been through quite a gammit of options - > missing from this list is all the editing tools I have also had a play > with! > > I'm going to spend some time over the weekend putting my test maps into > p.mapper, and trying to get at the Mapbender Client, but is there > anything major that I have missed and 'should really have a look at'. > This is only secondary to my main development work so I don't want to > spend too much more time 'sticking the pin in'! I need to hammer in a > nail and go with something :) > > -- > Lester Caine > ----------------------------- > L.S.Caine Electronic Services From temiz at DEPREM.GOV.TR Mon May 23 03:58:02 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Mon, 23 May 2005 13:58:02 +0300 Subject: labels visible with php-mapscript Message-ID: hello how can make labels visible and invisible with php-mapscript ? regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From bluetuna_goes_skying at YAHOO.CO.UK Mon May 23 04:51:24 2005 From: bluetuna_goes_skying at YAHOO.CO.UK (=?iso-8859-1?q?jo=FFffffffffffe3o=20Antunes?=) Date: Mon, 23 May 2005 12:51:24 +0100 Subject: OGR connection for LINUX In-Reply-To: 6667 Message-ID: Hello frank, I am still fighting to have mysql support using OGR.. the "funny" thing is that each time I run ogrinfo -ro -al -so 'MYSQL:database=abruzzo,tablename=zzz,user=arit,password=arit,host=localhost,port:3306' I get this message: Warning 1: 'tablename=zzz' in MYSQL datasource definition not recognised and ignored. Warning 1: 'port:3306' in MYSQL datasource definition not recognised and ignored. ERROR 1: MySQL connect failed for: database=abruzzo,tablename=zzz,user=arit,password=arit,host=localhost,port:3306 Unknown database 'database=abruzzo' FAILURE: Unable to open datasource `MYSQL:database=abruzzo,tablename=zzz,user=arit,password=arit,host=localhost,port:3306' with the following drivers. -> ESRI Shapefile -> UK .NTF -> SDTS -> TIGER -> S57 -> MapInfo File -> DGN -> VRT -> AVCBin -> REC -> Memory -> CSV -> GML -> MySQL And all the database, table, user... exist. Also if I try ogrinfo --formats I get: Loaded OGR Format Drivers: -> "ESRI Shapefile" (read/write) -> "UK .NTF" (readonly) -> "SDTS" (readonly) -> "TIGER" (read/write) -> "S57" (read/write) -> "MapInfo File" (read/write) -> "DGN" (read/write) -> "VRT" (readonly) -> "AVCBin" (readonly) -> "REC" (readonly) -> "Memory" (read/write) -> "CSV" (read/write) -> "GML" (read/write) -> "MySQL" (readonly) witch would make me think that the driver for mysql is working.. So far I have: 1 configured GDAL --with-ogr --with-mysql 2 make (GDAL) 3 make install (GDAL) 4 Configured mapserver --with-OGR --with-php 5 Make (mapserver) could you please give a clue on could be wrong? Thank you again.. Best regards, joao --- Frank Warmerdam wrote: > On 5/5/05, jo?ffffffffffe3o Antunes > wrote: > > Thank you Frank for your kind help. > > > > I still have some issues though.. > > > > I don't understand which syntax I should use.. I > am trying something like > > > > > > CONNECTIONTYPE OGR > > CONNECTION "C:\Programmi\Apache > > > Group\Apache\htdocs\abruzzo\maps\data\comuni_abruzzo_gb.shp" > > DATA "SELECT * FROM comuni_abruzzo_gb LEFT JOIN > > 'MYGIS:database=zzzz_abruzzo, tablename=zzz, > user=rt, password=rt, > > port=3306' ON comuni_abruzzo_gb.Id = zzz.ID" > > > Joao, > > Yikes, I completely missed the join in your select. > First, is your > OGR built with MySQL support? This isn't all that > common. > > Second, the direct MySQL support is done using: > > > MYSQL:database=zzzz_abruzzo,tablename=zzz,user=rt,password=rt,port=3306 > > (not MYGIS). Also, I suggest removing the space. > Phase 1 of constructing > such a query would be to try accessing the MySQL > database externally > with the ogrinfo commandline program. > > eg. > > ogrinfo -ro -al -so > 'MYSQL:database=zzzz_abruzzo,tablename=zzz,user=rt,password=rt,port=3306' > > If you don't get a list of tables doing this, then > you are likely lacking the > driver. You can check for the driver using "ogrinfo > --formats". > > Next, try your full query with ogrinfo and see if it > works. > > eg. > > ogrinfo -ro > "C:\Programmi\Apache\Group\Apache\htdocs\abruzzo\maps\data\comuni_abruzzo_gb.shp" > -sql "SELECT * FROM comuni_abruzzo_gb LEFT JOIN > MYSQL:database=zzzz_abruzzo, tablename=zzz, user=rt, > password=rt, > port=3306' ON comuni_abruzzo_gb.Id = zzz.ID" > > If that works, then transfer the query back into > your map. > > PS. I just read the driver help for the MySQL OGR > driver, and I see it said to > prefix the datasource name with MYGIS (instead of > MYSQL). Sorry about that, > it was an error. I have corrected it now. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank > Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | > http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial > Programmer for Rent > ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com From tylermitchell at SHAW.CA Mon May 23 06:46:55 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 23 May 2005 06:46:55 -0700 Subject: labels visible with php-mapscript Message-ID: Do you already have a working example of a php mapscript application? Or are you starting from scratch? Do you have a .map file you can show us? Tyler ----- Original Message ----- From: orkun Date: Monday, May 23, 2005 3:58 am Subject: [UMN_MAPSERVER-USERS] labels visible with php-mapscript > hello > > how can make labels visible and invisible with php-mapscript ? > > regards > > Ahmet Temiz > > ______________________________________ > XamimeLT - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > ______________________________________ > The views and opinions expressed in this e-mail message are the > sender's own > and do not necessarily represent the views and the opinions of > Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, > yasal olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici > nitelikte degildir. > From gtaylo2 at CLEMSON.EDU Mon May 23 06:50:42 2005 From: gtaylo2 at CLEMSON.EDU (Greg Taylor) Date: Mon, 23 May 2005 09:50:42 -0400 Subject: Cleaning the /tmp directory Message-ID: In the Itasca example data set the configuration file stores temporary images in /workshop/tmp. Over time the temporary images really pile up and suck space. Does anyone have any bash/csh scripts handy that'll remove files that were last modified a minute or more again? Or is there any easier way of doing this that I'm missing? From tylermitchell at SHAW.CA Mon May 23 06:57:14 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 23 May 2005 06:57:14 -0700 Subject: OGR connection for LINUX Message-ID: 'MYSQL:database=abruzzo,tablename=zzz,user=arit,password=arit,host=localhost,port:3306' > > I get this message: > > Warning 1: 'tablename=zzz' in MYSQL datasource > definition not recognised and ignored. > Warning 1: 'port:3306' in MYSQL datasource definition > not recognised and ignored. > ERROR 1: MySQL connect failed for: Your port setting looks wrong. You have: port:3306 it should be: port=3306 The warning above tells you this is part of the problem. Hope that helps. Tyler From bpicinbono at WORLDONLINE.FR Mon May 23 07:15:48 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Mon, 23 May 2005 16:15:48 +0200 Subject: Cleaning the /tmp directory In-Reply-To: <4291DFB2.6040405@clemson.edu> Message-ID: Le lundi 23 Mai 2005 15:50, Greg Taylor a ?crit?: > In the Itasca example data set the configuration file stores temporary > images in /workshop/tmp. Over time the temporary images really pile up > and suck space. Does anyone have any bash/csh scripts handy that'll > remove files that were last modified a minute or more again? Or is there > any easier way of doing this that I'm missing? from : http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH72 there is : Setup MapServer IMAGEDIR and cleanup script $ sudo mkdir /tmp/ms_tmp $ sudo chmod 777 /tmp/ms_tmp ... also add the commands above to /etc/rc.d/rc.local as well to recreate the directory when the system reboots, after a /tmp cleanup... ... create a logical link for the ms_tmp directory on the web server $ cd /var/www/html $ ln -s /tmp/ms_tmp ms_tmp ... create "/etc/cron.daily/ms_clear_tmp.sh" ... you can also place the file in /etc/cron.hourly/ for busier sites... #! /bin/sh # # MapServer temporary file cleanup - run daily by cron # # Flush all files from /tmp/ms_tmp older than 6 hours (360 minutes) # find /tmp/ms_tmp -name "*.*" -amin +360 -exec rm -f {} \; exit 0 Adapting it to your file tree, this should do the job. From temiz at DEPREM.GOV.TR Mon May 23 07:33:49 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Mon, 23 May 2005 17:33:49 +0300 Subject: labels visible with php-mapscript In-Reply-To: <19b538f19b7a65.19b7a6519b538f@shaw.ca> Message-ID: Tyler Mitchell wrote: >Do you already have a working example of a php mapscript application? Or are you starting from scratch? Do you have a .map file you can show us? > >Tyler > >----- Original Message ----- >From: orkun >Date: Monday, May 23, 2005 3:58 am >Subject: [UMN_MAPSERVER-USERS] labels visible with php-mapscript > > > >>hello >> >>how can make labels visible and invisible with php-mapscript ? >> >>regards >> >>Ahmet Temiz >> >>______________________________________ >>XamimeLT - installed on mailserver for domain @deprem.gov.tr >>Queries to: postmaster at deprem.gov.tr >>______________________________________ >>The views and opinions expressed in this e-mail message are the >>sender's own >>and do not necessarily represent the views and the opinions of >>Earthquake Research Dept. >>of General Directorate of Disaster Affairs. >> >>Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, >>yasal olarak T.C. >>B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici >>nitelikte degildir. >> >> >> > > > > > thank you I am still developing php-mapscript app. I am sending you related part of my map file. when I zoom this layer label should not be seen, in unzoom status lablels should be seen LAYER #il NAME "ilce" DATA "kara_il4" LABELITEM "ILCE_AD" STATUS ON TYPE POLYGON CLASS EXPRESSION ('[ILCE_AD]' eq 'YENICE' ) # OUTLINECOLOR 128 180 128 COLOR 130 237 127 LABEL MINFEATURESIZE 40 SIZE MEDIUM OUTLINECOLOR 222 226 226 COLOR 211 42 79 POSITION CC #SIZE TINY COLOR 1 1 1 END END CLASS EXPRESSION ('[ILCE_AD]' eq 'OVACIK' ) # OUTLINECOLOR 128 180 128 COLOR 130 237 127 LABEL MINFEATURESIZE 40 SIZE MEDIUM OUTLINECOLOR 222 226 226 COLOR 211 42 79 POSITION CC #SIZE TINY COLOR 1 1 1 END END CLASS EXPRESSION ('[ILCE_AD]' eq 'KARABUK' ) # OUTLINECOLOR 128 180 128 COLOR 135 225 158 LABEL MINFEATURESIZE 40 SIZE MEDIUM OUTLINECOLOR 222 226 226 COLOR 211 42 79 POSITION CC #SIZE TINY COLOR 1 1 1 END END CLASS EXPRESSION ('[ILCE_AD]' eq 'ESKIPAZAR' ) # OUTLINECOLOR 128 180 128 COLOR 135 225 198 LABEL MINFEATURESIZE 40 SIZE MEDIUM OUTLINECOLOR 222 226 226 COLOR 211 42 79 POSITION CC #SIZE TINY COLOR 1 1 1 END END CLASS EXPRESSION ('[ILCE_AD]' eq 'SAFRANBOLU' ) # OUTLINECOLOR 128 180 128 COLOR 135 225 238 LABEL MINFEATURESIZE 40 SIZE MEDIUM OUTLINECOLOR 222 226 226 COLOR 211 42 79 POSITION CC #SIZE TINY COLOR 1 1 1 END END CLASS EXPRESSION ('[ILCE_AD]' eq 'EFLANI' ) OUTLINECOLOR 128 180 278 COLOR 135 225 200 LABEL MINFEATURESIZE 40 SIZE MEDIUM OUTLINECOLOR 222 226 226 COLOR 211 42 79 POSITION CC #SIZE TINY COLOR 1 1 1 END END END # end of il layer regards ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From fwarmerdam at GMAIL.COM Mon May 23 07:32:38 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 23 May 2005 10:32:38 -0400 Subject: OGR connection for LINUX In-Reply-To: <20050523115125.83921.qmail@web25709.mail.ukl.yahoo.com> Message-ID: On 5/23/05, jo?ffffffffffe3o Antunes wrote: > Hello frank, > > I am still fighting to have mysql support using OGR.. > > the "funny" thing is that each time I run > > ogrinfo -ro -al -so > 'MYSQL:database=abruzzo,tablename=zzz,user=arit,password=arit,host=localhost,port:3306' > > I get this message: > > Warning 1: 'tablename=zzz' in MYSQL datasource > definition not recognised and ignored. > Warning 1: 'port:3306' in MYSQL datasource definition > not recognised and ignored. Joao, I see the documentation was wrong. The table name list parameter is actually tables=, not tablename=. I have corrected the docs online. Also, your port specifier should be port=n, not port:n. And finally you don't use database=, just make the database name the first argument. Try instead something like: ogrinfo -ro -al -so 'MYSQL:abruzzo,tables=zzz,user=arit,password=arit,host=localhost,port=3306' Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From bluetuna_goes_skying at YAHOO.CO.UK Mon May 23 07:32:44 2005 From: bluetuna_goes_skying at YAHOO.CO.UK (=?iso-8859-1?q?jo=FFffffffffffe3o=20Antunes?=) Date: Mon, 23 May 2005 15:32:44 +0100 Subject: OGR connection for LINUX In-Reply-To: 6667 Message-ID: Yes it was wrong but that is not the answer.. I keep getting those messages even after correcting it.. so, now after executing this: ogrinfo -ro -al -so 'MYSQL:database=abruzzo,tablename=zzz,user=arit,password=arit,host=localhost,port=3306' I get this: Warning 1: 'tablename=zzz' in MYSQL datasource definition not recognised and ignored. ERROR 1: MySQL connect failed for: database=abruzzo,tablename=zzz,user=arit,password=arit,host=localhost,port=3306 Unknown database 'database=abruzzo' FAILURE: Unable to open datasource `MYSQL:database=abruzzo,tablename=zzz,user=arit,password=arit,host=localhost,port=3306' with the following drivers. -> ESRI Shapefile -> UK .NTF -> SDTS -> TIGER -> S57 -> MapInfo File -> DGN -> VRT -> AVCBin -> REC -> Memory -> CSV -> GML -> MySQL any other tip?.. thank you joao --- Tyler Mitchell wrote: > 'MYSQL:database=abruzzo,tablename=zzz,user=arit,password=arit,host=localhost,port:3306' > > > > I get this message: > > > > Warning 1: 'tablename=zzz' in MYSQL datasource > > definition not recognised and ignored. > > Warning 1: 'port:3306' in MYSQL datasource > definition > > not recognised and ignored. > > ERROR 1: MySQL connect failed for: > > Your port setting looks wrong. You have: > port:3306 > it should be: > port=3306 > > The warning above tells you this is part of the > problem. Hope that helps. > > Tyler > ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com From bluetuna_goes_skying at YAHOO.CO.UK Mon May 23 07:44:49 2005 From: bluetuna_goes_skying at YAHOO.CO.UK (=?iso-8859-1?q?jo=FFffffffffffe3o=20Antunes?=) Date: Mon, 23 May 2005 15:44:49 +0100 Subject: OGR connection for LINUX In-Reply-To: 6667 Message-ID: YESSSS!! It is working now!! thank you so much. best regards joao antunes --- Frank Warmerdam wrote: > On 5/23/05, jo?ffffffffffe3o Antunes > wrote: > > Hello frank, > > > > I am still fighting to have mysql support using > OGR.. > > > > the "funny" thing is that each time I run > > > > ogrinfo -ro -al -so > > > 'MYSQL:database=abruzzo,tablename=zzz,user=arit,password=arit,host=localhost,port:3306' > > > > I get this message: > > > > Warning 1: 'tablename=zzz' in MYSQL datasource > > definition not recognised and ignored. > > Warning 1: 'port:3306' in MYSQL datasource > definition > > not recognised and ignored. > > Joao, > > I see the documentation was wrong. The table name > list parameter > is actually tables=, not tablename=. I have > corrected the docs online. > > Also, your port specifier should be port=n, not > port:n. > > And finally you don't use database=, just make the > database name > the first argument. Try instead something like: > > ogrinfo -ro -al -so > 'MYSQL:abruzzo,tables=zzz,user=arit,password=arit,host=localhost,port=3306' > > Good luck, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank > Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | > http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial > Programmer for Rent > ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com From vincent.dacol at LAPOSTE.NET Mon May 23 07:52:19 2005 From: vincent.dacol at LAPOSTE.NET (vincent.dacol) Date: Mon, 23 May 2005 16:52:19 +0200 Subject: mix projection unit. Message-ID: Hello, I have a little trouble in using Mapserver. I want mix datas in degree and meters unit. Is it possible with mapserver? I have read on the FAQ it's not, because the projection unit must be the same as the projected data. Thanks for the help. Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From jdport at VERITIME.COM Mon May 23 07:56:38 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Mon, 23 May 2005 10:56:38 -0400 Subject: mix projection unit. Message-ID: Mapserver does projections on the fly for each layer. In the MAP section you specify the projection that you want the output to be displayed in. In each layer you specify the layer projection. These can be any projection and they will be reprojected to the output projection on the fly when the map is generated. -Jeff ----- Original Message ----- From: "vincent.dacol" To: Sent: Monday, May 23, 2005 10:52 AM Subject: [UMN_MAPSERVER-USERS] mix projection unit. Hello, I have a little trouble in using Mapserver. I want mix datas in degree and meters unit. Is it possible with mapserver? I have read on the FAQ it's not, because the projection unit must be the same as the projected data. Thanks for the help. Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From Wolfgang.Qual at MUENCHEN.DE Mon May 23 08:29:26 2005 From: Wolfgang.Qual at MUENCHEN.DE (Wolfgang Qual) Date: Mon, 23 May 2005 17:29:26 +0200 Subject: Display Geotiff-Data: Problems Message-ID: Hello List, I have created a mapserver map with a small Geotiff in it and the map can be openend, when I click on the link(http://dream.lrrl.arch.tu-muenchen.de/cgi-bin/M3.cgi?map=geotiff2.dfo.map). However, the image is not displayed correctly: it is quite grainy and the colours are odd (compared to the picture I get on my local computer with kuickshow). Does anybody know the answer to this problem? Thanks again! Wolfgang -- Wolfgang Qual Landeshauptstadt M?nchen Referat f?r Gesundheit und Umwelt RGU-UW 11 Sg. 1 Gesundheits- und Umweltberichterstattung, Energie und Klimaschutz Bayerstr. 28a, 80335 M?nchen Tel.: +49 (0)89 233-477 17 Fax.: +49 (0)89 233-477 05 E-Mail: wolfgang.qual at muenchen.de From john.cole at UAI.COM Mon May 23 08:03:54 2005 From: john.cole at UAI.COM (John Cole) Date: Mon, 23 May 2005 10:03:54 -0500 Subject: FW: WMS client problem... Message-ID: This bounced last week, so I'm trying again. John -----Original Message----- From: John Cole Sent: Tuesday, May 17, 2005 4:24 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: WMS client problem... I'm trying to include a teraserver map in my map file and I'm getting the following error: msDrawRaster(): Image handling error. Unrecognized or unsupported image format
drawEPP(): Image handling error. EPPL7 support is not available.
Here is my layer def: LAYER NAME DOQ17N DEBUG ON METADATA "wms_title" "USGS Digital Ortho-Quadrangles" "wms_srs" "EPSG:26959" END STATUS off TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DOQ&FO RMAT=png&styles=" PROJECTION "init=epsg:26959" END END Thanks, John Cole ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. From wesp at GDV.COM Mon May 23 08:29:13 2005 From: wesp at GDV.COM (Oliver Wesp) Date: Mon, 23 May 2005 17:29:13 +0200 Subject: Display Geotiff-Data: Problems In-Reply-To: <4291F6D6.8010308@muenchen.de> Message-ID: Hi, I guess you're using 256 color output so the rgb image is mapped to 256 colors. Switching to rgb output should solve the problem. Put something like this in your mapfile IMAGETYPE PNGRGB OUTPUTFORMAT NAME PNGRGB DRIVER "GD/PNG" IMAGEMODE RGB TRANSPARENT OFF END Oliver Wolfgang Qual schrieb: > Hello List, > I have created a mapserver map with a small Geotiff in it and the map > can be openend, when I click on the > link(http://dream.lrrl.arch.tu-muenchen.de/cgi-bin/M3.cgi?map=geotiff2.dfo.map). > > However, the image is not displayed correctly: it is quite grainy and > the colours are odd (compared to the picture I get on my local computer > with kuickshow). Does anybody know the answer to this problem? Thanks > again! > > Wolfgang -- Dipl.-Geogr. Oliver Wesp Gesellschaft fuer geografische Datenverarbeitung Binger Strasse 49-51 D-55218 Ingelheim fon: +49 6132 714818 fax: +49 6132 714828 http: www.gdv.com From fwarmerdam at GMAIL.COM Mon May 23 08:25:01 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 23 May 2005 11:25:01 -0400 Subject: Display Geotiff-Data: Problems In-Reply-To: <4291F6D6.8010308@muenchen.de> Message-ID: On 5/23/05, Wolfgang Qual wrote: > Hello List, > I have created a mapserver map with a small Geotiff in it and the map > can be openend, when I click on the > link(http://dream.lrrl.arch.tu-muenchen.de/cgi-bin/M3.cgi?map=geotiff2.dfo.map). > However, the image is not displayed correctly: it is quite grainy and > the colours are odd (compared to the picture I get on my local computer > with kuickshow). Does anybody know the answer to this problem? Thanks again! Wolfgang, You are suffering from classic color reduction to 8bit degredation. The normal fix is to switch to returning JPEG instead of gif/png8 images. Other options include turning on dithering, or returning PNG24. This is covered in this FAQ: http://ms.gis.umn.edu/docs/faq/EightBitColorCompression Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jms4 at PO.CWRU.EDU Mon May 23 08:49:20 2005 From: jms4 at PO.CWRU.EDU (James Sohr) Date: Mon, 23 May 2005 10:49:20 -0500 Subject: Cleaning the /tmp directory Message-ID: I know I've said this before, but... The easiest way to clean up all of the temporary images is to never generate them in the first place, IMHO. Just use the CGI feature of Mapserver along with the MODE=MAP cgi variable setting to have MapServer spit out just a raw map image straight to the browser. You can then use regular HTML and/or Javascript to write the page that will feature the map image. This method writes no temp images to the servers drive, so there's nothing to delete. And best of all, it allows you to reload just the map image (not the whole HTML page) when browsing, zooming, or querying. I have a simple example set up at http://www.houseclick.com/map.htm You can view the source code and see how easy it is... From lester at LSCES.CO.UK Mon May 23 09:23:42 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Mon, 23 May 2005 17:23:42 +0100 Subject: Clients vs. Environments In-Reply-To: <200505231248.30305.mapserver@meteologica.es> Message-ID: Paco Regod?n wrote: > Why don't you try any generic wms viewer? Just configure mapserver as an wms > server and use any generic wms client. > > Have you tried http://www.wmsviewer.com/ ? Tried ;) "Sorry. The OGC WMS Viewer only runs in Microsoft Internet Explorer 5.0 or Higher or Netscape 7.0 or higher." And then just a blank screen I run Mozilla 1.7.2 and Firefox -- Lester Caine ----------------------------- L.S.Caine Electronic Services From mapserver at METEOLOGICA.ES Mon May 23 09:28:45 2005 From: mapserver at METEOLOGICA.ES (Paco Regodon) Date: Mon, 23 May 2005 18:28:45 +0200 Subject: Clients vs. Environments In-Reply-To: <4291B6C9.7030406@terrestris.de> Message-ID: You can avoid their browser check accessing: http://www.wmsviewer.com/main.asp I use Firefox 1.0.3 on Mandrake Linux and wmsviewer works pretty well. You can try other wms clients. Just search for "javascript wms client" or "java wms client" in Google. Paco El Lunes, 23 de Mayo de 2005 12:56, Till Adams escribi?: > Dear Paco, > > I'm sorry, but I even can't have a look at the page "wmsviewer.com", > because I use Firefox v1.0 > running on mandrake and the page says I need IE from v5 or netscape from > v7 .... > > This seems not to be an alterantive. From jkim at SCIENCES.SDSU.EDU Mon May 23 09:29:59 2005 From: jkim at SCIENCES.SDSU.EDU (John Kim) Date: Mon, 23 May 2005 09:29:59 -0700 Subject: Cleaning the /tmp directory Message-ID: > from : http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH72 > there is : > Setup MapServer IMAGEDIR and cleanup script > ... Any tips on how you'd do this in Windows? Thanks, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Mon May 23 10:03:55 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 23 May 2005 12:03:55 -0500 Subject: How can I highlight more than one feature in QUERY mode? Message-ID: Should that be ITEMNQUERYMAP? David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Daniele Margotti Sent: Saturday, May 21, 2005 3:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] How can I highlight more than one feature in QUERY mode? Hi list, with CGI mode=ITEMQUERYMAP I can produce a map with one highlighted feature (defined using QITEM, QLAYER and QSTRING). How can I highlight more than one feature (within the same layer) using the same syntax (QITEM + QLAYER + QSTRING)? Is there the possibility to use an "OR condition" or a regular expression in QSTRING parameter? Thank you, Daniele -------------- next part -------------- An HTML attachment was scrubbed... URL: From lester at LSCES.CO.UK Mon May 23 10:07:12 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Mon, 23 May 2005 18:07:12 +0100 Subject: Cleaning the /tmp directory In-Reply-To: <001e01c55fb4$accd60e0$efebbf82@JOHNKIM> Message-ID: John Kim wrote: > > from : http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH72 > > there is : > > Setup MapServer IMAGEDIR and cleanup script > > ... > > Any tips on how you'd do this in Windows? I just run a scheduled task which is a batch file that deletes all the files. It runs a midnight, so anybody working at that time might see a problem. I really must get round to writing a program that just deletes anything over x hours old so that it is not so violent with files that have just been created ;) -- Lester Caine ----------------------------- L.S.Caine Electronic Services From bfischer at HOUSTONENGINEERINGINC.COM Mon May 23 10:24:53 2005 From: bfischer at HOUSTONENGINEERINGINC.COM (Fischer, Brian) Date: Mon, 23 May 2005 12:24:53 -0500 Subject: How can I highlight more than one feature in QUERY mode? Message-ID: I don't know how your application is setup, but another option is to create a dummy layer in your map file to use for highlighting a feature. LAYER # Dummy Parcels Polygon Layer to Highlight it yellow NAME parcel_poly DATA Parcels MAXSCALE 200000 STATUS DEFAULT TYPE LINE CLASSITEM 'PIN' CLASS NAME "Parcel Selected" EXPRESSION '%PIN%' COLOR 255 255 0 SYMBOL 'circle' SIZE 4 END END # Dummy Parcels Polygon Layer to Highlight it yellow Then use some javascript in your web page to create an expression and pass the variable to the CGI (example "/cgi-bin/mapserv.exe?mode=map&PIN=pin=17000003443001%20or%20pin=1700000 345494") and it will substitute the PIN variable name in the mapfile with the value you passed in with the call to the CGI. The expression can contain "and" and "or" in it. This is explained a bit in http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#variablesubsti tution documentation. Brian Fischer Houston Engineering, Inc. Maple Grove, MN (763) 493-4522 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fawcett, David Sent: Monday, May 23, 2005 12:04 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] How can I highlight more than one feature in QUERY mode? Should that be ITEMNQUERYMAP? David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Daniele Margotti Sent: Saturday, May 21, 2005 3:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] How can I highlight more than one feature in QUERY mode? Hi list, with CGI mode=ITEMQUERYMAP I can produce a map with one highlighted feature (defined using QITEM, QLAYER and QSTRING). How can I highlight more than one feature (within the same layer) using the same syntax (QITEM + QLAYER + QSTRING)? Is there the possibility to use an "OR condition" or a regular expression in QSTRING parameter? Thank you, Daniele -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaronr at ECOTRUST.ORG Mon May 23 10:43:09 2005 From: aaronr at ECOTRUST.ORG (Aaron Racicot) Date: Mon, 23 May 2005 10:43:09 -0700 Subject: Easy $100.00 for the working example Message-ID: Dave, Check out: http://pearl.ecotrust.org/apps/simple_mapserver/index.phtml I have added your two data layers to the example I made for you and shifted the extent to view those layers. I am using the tiff version of both rasters, as I don't have any experience getting HDF working with Mapserver. I made a world file for the Bathymetry layer since it did not have any geo-referencing info in the image. You will need this to tell Mapserver (and GDAL) where this image is and what the resolution is. I have copied in the Mapfile and .tfw file below for your reference. Let me know if this helps. I will leave it to others for help on the HDF file format and defining that layer with Mapserver and GDAL. Aaron ============================================================== The Bathymap.tfw file ============================================================== [aaronr at pearl nc_fish]$ more Bathymap.tfw 0.00151209677419 0 0 -0.00125549278092 -78.9992439516 34.9993722536 [aaronr at pearl nc_fish]$ ============================================================== The new Mapfile with the layers you provided ============================================================== #################### E c o t r u s t #################### ## ## ## Jean Vollum Natural Capital Center ## ## 721 NW Ninth Avenue ## ## Suite 200 ## ## Portland, OR 97209 ## ## www.ecotrust.org ## ## ## ## Copyright 2005, Ecotrust ## ## ## #################### E c o t r u s t #################### MAP NAME "Simple Test" STATUS ON EXTENT -91 22 -70 37 SIZE 800 600 SHAPEPATH "/var/www/html/apps/simple_mapserver/data" SYMBOLSET "/var/www/html/apps/simple_mapserver/etc/symbols.sym" FONTSET "/var/www/html/apps/simple_mapserver/etc/fonts.txt" IMAGETYPE gif IMAGECOLOR 255 255 255 UNITS DD WEB IMAGEPATH "/tmp/ms_temp/" IMAGEURL "/tmp/ms_temp/" METADATA END END QUERYMAP STATUS OFF SIZE -1 -1 COLOR 255 255 0 STYLE HILITE END PROJECTION "proj=latlong" "datum=WGS84" END # # Start of reference map # REFERENCE IMAGE "/var/www/html/apps/simple_mapserver/data/blue_marble_us_200_150.gif" EXTENT -170 10 -64 90 SIZE 200 150 STATUS OFF MINBOXSIZE 1 MAXBOXSIZE 200 COLOR -1 -1 -1 OUTLINECOLOR 255 255 255 MARKERSIZE 10 MARKER 'star' END LEGEND STATUS OFF IMAGECOLOR 255 255 255 POSITION LL KEYSIZE 20 10 KEYSPACING 5 5 LABEL TYPE BITMAP SIZE MEDIUM OFFSET 5 5 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE FALSE END END SCALEBAR STATUS ON COLOR 100 100 100 IMAGECOLOR 217 217 217 UNITS MILES INTERVALS 2 SIZE 200 3 STYLE 1 POSITION LL INTERLACE TRUE LABEL TYPE BITMAP SIZE MEDIUM OFFSET 5 5 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE FALSE END END LAYER NAME "NOAA SST - TIF" DATA "./nc_fish/2005_118_0843_n16_sr.tif" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE RASTER UNITS DD PROJECTION "AUTO" END END LAYER NAME "Bathy - TIF" DATA "./nc_fish/Bathymap.tif" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE RASTER UNITS DD PROJECTION "proj=latlong" "datum=WGS84" END END END -----Original Message----- From: Dave [mailto:wildrov at bellsouth.net] Sent: Friday, May 20, 2005 4:41 PM To: Aaron Racicot Subject: [spamcatcher] Re: [UMN_MAPSERVER-USERS] Easy $100.00 for the working example Greetings Aaron, Thank you for your help. It is most kind of you to share your work with me. I worked with it for a while today. After an hour or so of messing with it.....I think that my OS is what is causing the problems. A week or so ago I switched from Mandrake to HostGIS. Over all it seems to be a pretty good setup for folks like me with limited Linux experience. From woodbri at SWOODBRIDGE.COM Mon May 23 10:43:20 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 23 May 2005 13:43:20 -0400 Subject: Cleaning the /tmp directory In-Reply-To: <42920DC0.3080007@lsces.co.uk> Message-ID: On Linux I use: find /data/mdata/tmp -type f -mmin +20 -exec rm -f {} \; from a root crontab entry. If you have perl running on your windows server, here is a script that will remove all the tmp files that are older the 20 min. This was generated by find2perl and then modified. Use at your own risk. -Steve W. #! /usr/bin/perl -w eval 'exec /usr/bin/perl -S $0 ${1+"$@"}' if 0; #$running_under_some_shell use strict; use File::Find (); #################################### config here ######### my $older = 20/1440; # 20 minutes / 1440 minutes/day my $scan_dir = '/data/mdata/tmp'; ########################################################## # Set the variable $File::Find::dont_use_nlink if you're using AFS, # since AFS cheats. # for the convenience of &wanted calls, including -eval statements: use vars qw/*name *dir *prune/; *name = *File::Find::name; *dir = *File::Find::dir; *prune = *File::Find::prune; sub wanted; # Traverse desired filesystems File::Find::find({wanted => \&wanted}, $scan_dir); exit; sub wanted { my ($dev,$ino,$mode,$nlink,$uid,$gid); (($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($_)) && -f _ && (-M _ > $older) && unlink($_); } Lester Caine wrote: > John Kim wrote: > >> > from : http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH72 >> > there is : >> > Setup MapServer IMAGEDIR and cleanup script >> > ... >> >> Any tips on how you'd do this in Windows? > > > I just run a scheduled task which is a batch file that deletes all the > files. It runs a midnight, so anybody working at that time might see a > problem. > I really must get round to writing a program that just deletes anything > over x hours old so that it is not so violent with files that have just > been created ;) > > -- > Lester Caine > ----------------------------- > L.S.Caine Electronic Services > From nbarker at RSINC.COM Mon May 23 13:26:01 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Mon, 23 May 2005 21:26:01 +0100 Subject: Color Interpretation band problem Message-ID: Hi, I have a problem with the way that GDAL interprets the colour interpretation of a TIF file. If the colour interpretation is RGBA e.g Band 1 Block=320x1 Type=Float32, ColorInterp=Red Band 2 Block=320x1 Type=Float32, ColorInterp=Green Band 3 Block=320x1 Type=Float32, ColorInterp=Blue Band 4 Block=320x1 Type=Float32, ColorInterp=Alpha then everything works fine and (in my case) all 27 bands are returned with the correct data in each band If, however, the color interpretation is Gray, e.g. Band 1 Block=96x8 Type=Float32, ColorInterp=Gray Band 2 Block=96x8 Type=Float32, ColorInterp=Undefined Band 3 Block=96x8 Type=Float32, ColorInterp=Undefined Band 4 Block=96x8 Type=Float32, ColorInterp=Undefined Then the first band is returned ok, but the rest of the bands are blank! I can't easily change the colour mode of my tif files (I am using JAI), does anyone know a workaround, I have to serve the tifs as Float32 Thanks, Norman Barker From numerous at GMAIL.COM Mon May 23 15:40:38 2005 From: numerous at GMAIL.COM (Yar Doroshenko) Date: Mon, 23 May 2005 17:40:38 -0500 Subject: gdaltindex in DOS Message-ID: Hi, I have 51 .tif files and 51 corresponding .tfw files. I would like to run gdaltindex on my Windows machine. I tried using the instructions at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RasterHOWTO but these are not for Windows. Could anyone share the correct gdaltindex usage in DOS environment? Thank you, Yar From woodbri at SWOODBRIDGE.COM Mon May 23 16:43:37 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 23 May 2005 19:43:37 -0400 Subject: Mapserver Doubt In-Reply-To: <000801c55f8d$d84b05f0$5a01a8c0@Rajipaul> Message-ID: Raji, The list is a better place to post questions than sending them to individuals. There are lots of people that can help solve your problem on the list and whomever you select may not know, may not want to be commited supporting you, or whatever. Your site looks very nice. I'm not sure I'm the right person to answer this question. -Steve W. Raji Paul wrote: > Dear Steve, > I am new to mapserver.I am now developing a GIS site > www.mapsofdelhi.com . I have got one doubt - > how to highlight a point using latitude & longitudes. These coordinates > will be user input. I am using only the functions provided by mapserver 4.1 > > Regards > > > Raji Paul > > From wouter.schaubroeck at GMAIL.COM Mon May 23 16:55:46 2005 From: wouter.schaubroeck at GMAIL.COM (Wouter Schaubroeck) Date: Tue, 24 May 2005 01:55:46 +0200 Subject: OGR Virtual file and query Message-ID: Hi all, Is it possible to perform a query on data that is connected through an OGR Virtual file? Is it possible that I'm doing something wrong here? I use the ovf to connect to a dbf, and the points are visible on my map, so that ain't the problem. This is the layer in my map file: LAYER NAME "Herten" TYPE POINT METADATA "DESCRIPTION" "Ree?n" END CONNECTIONTYPE OGR CONNECTION "virtual.ovf" DATA "GSM00837" STATUS DEFAULT PROJECTION "init=epsg:4313" END LABELITEM "OBSERVATIE" CLASS TEMPLATE "C:\ms4w\apps\mum2_php_mapscript\herten\punten_query.html" SYMBOL cir SIZE 6 COLOR 255 0 0 LABEL COLOR 255 255 255 SHADOWCOLOR 0 0 0 SHADOWSIZE 2 2 FONT arial-bold SIZE SMALL POSITION AUTO BUFFER 3 END END and this is my query template file:
Observatie

[OBSERVATIE]
Best regards Wouter Schaubroeck From ARyan at CO.LINN.OR.US Mon May 23 17:10:47 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Mon, 23 May 2005 17:10:47 -0700 Subject: SWIG mapObj.setRotation(float) Message-ID: Hi folks, Just curious if anyone has mapObj.setRotation(float)working with SWIG mapscript. I can's seem to make it fly. Cheers, Adam From rhysi at OMNILINK.COM.AU Mon May 23 17:40:11 2005 From: rhysi at OMNILINK.COM.AU (Rhys Ickeringill) Date: Tue, 24 May 2005 10:40:11 +1000 Subject: layer.queryByPoint( ) and layer.open( ) interoperation Message-ID: Hi List, Is the following an undocumented feature or a bug? I had Mapscript code which looked something like: layer = map.getLayerByName( name ) layer.open( ) for( i = 0; i < points.length(); ++i ){ if( layer.queryByPoint( points[i], MS_SINGLE, 0 ) ){ result = layer.getResult( 0 ) shp = layer.getShape( result.tileindex, result.shapeindex ) info = shp.values } } layer.close( ) But kept getting the MapServer errors to the effect "layer has not been opened" on the call to layer.getShape( ). Playing with it, I found that the following code gave the functionality I was after: layer = map.getLayerByName( name ) for( i = 0; i < points.length(); ++i ){ if( layer.queryByPoint( points[i], MS_SINGLE, 0 ) ){ layer.open( ) result = layer.getResult( 0 ) shp = layer.getShape( result.tileindex, result.shapeindex ) info = shp.values layer.close( ) // possibly redundant } } This leads me to believe that each call to layer.queryByPoint( ) is having the effect of layer.close( ). So - bug or feature? Regards, Rhys From ed at TOPOZONE.COM Mon May 23 18:06:34 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 23 May 2005 21:06:34 -0400 Subject: gdaltindex in DOS Message-ID: Yar - What made you conclude that those instructions "are not for Windows"? What EXACTLY did you do, and what happened when you did it? Gdaltindex works fine under Windows. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Yar Doroshenko Sent: Monday, May 23, 2005 6:41 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] gdaltindex in DOS Hi, I have 51 .tif files and 51 corresponding .tfw files. I would like to run gdaltindex on my Windows machine. I tried using the instructions at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RasterHOWTO but these are not for Windows. Could anyone share the correct gdaltindex usage in DOS environment? Thank you, Yar From sgillies at FRII.COM Mon May 23 19:18:38 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 23 May 2005 20:18:38 -0600 Subject: layer.queryByPoint( ) and layer.open( ) interoperation In-Reply-To: Message-ID: On May 23, 2005, at 6:40 PM, Rhys Ickeringill wrote: > Hi List, > > Is the following an undocumented feature or a bug? > > I had Mapscript code which looked something like: > > layer = map.getLayerByName( name ) > layer.open( ) > > for( i = 0; i < points.length(); ++i ){ > > if( layer.queryByPoint( points[i], MS_SINGLE, 0 ) ){ > result = layer.getResult( 0 ) > shp = layer.getShape( result.tileindex, result.shapeindex ) > info = shp.values > } > } > > layer.close( ) > > But kept getting the MapServer errors to the effect "layer has not been > opened" on the call to layer.getShape( ). Playing with it, I found > that the > following code gave the functionality I was after: > > layer = map.getLayerByName( name ) > > for( i = 0; i < points.length(); ++i ){ > > if( layer.queryByPoint( points[i], MS_SINGLE, 0 ) ){ > layer.open( ) > result = layer.getResult( 0 ) > shp = layer.getShape( result.tileindex, result.shapeindex ) > info = shp.values > layer.close( ) // possibly redundant > } > } > > This leads me to believe that each call to layer.queryByPoint( ) is > having > the effect of layer.close( ). So - bug or feature? > > Regards, > > Rhys > Bug. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1175. Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From sgillies at FRII.COM Mon May 23 19:19:44 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 23 May 2005 20:19:44 -0600 Subject: SWIG mapObj.setRotation(float) In-Reply-To: Message-ID: On May 23, 2005, at 6:10 PM, Ryan, Adam wrote: > Hi folks, > > Just curious if anyone has mapObj.setRotation(float)working with SWIG > mapscript. I can's seem to make it fly. > > Cheers, > > Adam > Check out the old wiki. IIRC, Frank had notes about mapscript usage. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From arunoday_chatterjee at REDIFFMAIL.COM Mon May 23 22:26:33 2005 From: arunoday_chatterjee at REDIFFMAIL.COM (Arunoday Chatterjee) Date: Tue, 24 May 2005 00:26:33 -0500 Subject: Plotting shape using php mapscript Message-ID: I'm using esri shape files. Read the cities dbf file using php dbf functions and provied select box with the cities to choose from and used the index of the selected city to get the shape. Then i have drawn the shape. But it doesn't draw. so i use zoompoint php mapscript function to pan, but then very few of them show up. I used the bounds of the shape to calculate the mid point and passed it into the zoompoint function. but probably the mapserver is not calculating the extents right. I'm using phpmapscript 4.2 and following are my code, can anyone help please. The map i'm trying to use is for the state of California. Initial extent of the map is: -118.0 33.0 -117.0 34.0 /***************************/ $record=dbase_get_record_with_names($dbCities,$i); $dbPlaceName=trim($record["AREANAME"]); $dbClass=trim($record["CLASS"]); $dbStFips=trim($record["STFIPS"]); if(strcmp(trim($dbPlaceName),$selCity)==0 && strcmp(trim($dbClass),"city") ==0 && strcmp($dbStFips,$stFips)==0) { echo "CITY RECORD FOUND
"; $placeLayer=$map->getLayerByName("Cities"); $placeLayer->open(); $shape=$placeLayer->getShape(-1,$i-1); echo "
DB CITY = ".$shape->values["AREANAME"]; $shape->draw($map,$placeLayer,$map->draw()); $bounds=$shape->bounds; $ptX=$bounds->maxx; $ptY=$bounds->maxy; $extent_to_set = explode(" ",$_POST["extent"]); $my_extent = ms_newrectObj(); $my_extent->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set [2],$extent_to_set[3]); $map->zoompoint(1,$my_point,$map->width,$map->height,$my_extent); /***************************/ Also i'm trying to use the streets shape file which contains around 5 lac data and mapserver fails or php fails, execution timeout exception is thrown, any help to get around this problem. Thanks! From bill at BINKO.NET Mon May 23 23:03:51 2005 From: bill at BINKO.NET (Bill Binko) Date: Tue, 24 May 2005 02:03:51 -0400 Subject: ECW vs. JPG2000 on Linux? Message-ID: Hello, everyone I have a choice between ECW and JPEG 2000 for a set of DOQQ files. I am running CVS Mapserver and GDAL, and Mandrake Linux 10.1. Could anyone give me direction to which would be better? Also, the original source files are available in GEOTiff format, and they have two versions, 8 bit and 16 bit. Is there any reason to grab the raw files, if I'm serving them up over the web as PNGs anyway? The raw files are of course much much larger (>250GB), and I think I'll have to compress them anyway. I have to make a decision by Wednesday morning EST, so any input would be greatly appreciated. Thanks, Bill PS: Frank, I remember you gave me an anwer of ECW, but I had not mentioned Linux, so I want to double check. From temiz at DEPREM.GOV.TR Tue May 24 00:45:36 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Tue, 24 May 2005 10:45:36 +0300 Subject: last map overlays the others ? Message-ID: hello in using php-mapscript, the last $layer->set("status",1) command overlays the others. Is it right ? regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From temiz at DEPREM.GOV.TR Tue May 24 01:41:52 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Tue, 24 May 2005 11:41:52 +0300 Subject: usage of label class Message-ID: hello I am confused with the usage of label class in php-mapscript. Could you send me a sample code fragment containing label object usage thanks in advance Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From Dejan.Gambin at PULA.HR Tue May 24 03:08:08 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Tue, 24 May 2005 12:08:08 +0200 Subject: Display progress bar while waiting for data Message-ID: Thanks everybody participating in the discussion of displaying progress bar. I am aware of the problem but just want to describe something that is happening on my site. I have a set of 18 GeoTIFF ortophoto color images, each one has a size of 80MB. I have created tileindex shapefile to increase performance in reading the data and I have informed the users they should first have to zoom onto desired extent on the map and activate the ortophoto layer after that to speed up the loading. But users are just users and many of them are trying to activate the ortophoto layer before that (while the map is in full view) so the loading is slow. I have put a "Loading" message but the point is the following: when I load the image on the local network, I get the "Loading" message and I have to wait about 30 seconds, then the image is displayed at once. On the slow connection I also get "loading" message displayed about 30 seconds and then the map is displayed incrementally (that is ok). So my problem is those 30 seconds (that can arise to several minutes regarding the number of simultaneous users of course). Can I do something? Thanks, Dejan -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 17, 2005 6:35 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - I'll second Frank's scepticism here. Most of the "Image Loading" animations you see on mapping sites are just that - animations. They're standalone animated GIFs and the like which cause pixels to twinkle on the user's screen but which have no relationship to the actual progress of the application. The server could burst into flames and the "Image Loading" graphic would keep dancing. The site Regina mentions falls into this category. IMHO, these kinds of graphics are primarily used to try to cover up slow map servers, and not to give users meaningful progress feedback. I think by far the best feedback mechanism for image load time is the map image itself. If you simply display the image in a format that browsers can easily render incrementally, then the user can see the image begin to appear and will get a good feel for how long it will take just by watching it. JPEG is NOT a good choice for this, but GIF and PNG images should render properly on most browsers. For example, look at this image: http://www.topozone.com/images/MtMonadnockTopo.gif Over a slow connection. You should see the large map image load incrementally, so you know things are working. If the image were smaller and in a frame (to define the final output size) it would be relatively easy to assess how much progress is being made. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dejan Gambin Sent: Monday, May 16, 2005 5:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Hi, Is it possible to create some kind of progress bar while waiting for raster data to be displayed. I have some raster data in GeoTIFF format that some users with a slow connection must wait for. I am wondering if I can show them a progress bar indicating "estimated" time they have to wait so they know and they can wait or cancel the process. Does anyone have a suggestion on what is the best way to inform users? thanks very much dejan From nbarker at RSINC.COM Tue May 24 03:27:18 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Tue, 24 May 2005 11:27:18 +0100 Subject: Square Resolutions Message-ID: Hi, yesterday I posted a bug about colour interpretation of tif files, having written JAI code to change all my grayscale images to RGBA I have found that the bug is to do with square resolutions (so resx=resy)!!. If the resolutions are not square then all the bands of the tif file are returned but only the first band has data, and the other bands are blank. If the resolutions are made square in the WCS request all the bands are returned, and all bands have data. Is this a known bug, or is there a workaround? Personally (though I would say this!), this is critical to me since my original data in the main have different resolutions in X and Y, and the I would like to maintain the ratios in X and Y. Many thanks, Norman Barker From temiz at DEPREM.GOV.TR Tue May 24 05:20:27 2005 From: temiz at DEPREM.GOV.TR (orkun) Date: Tue, 24 May 2005 15:20:27 +0300 Subject: changing the size of the label Message-ID: hello I want to change the size of the label $class->{label}->{size} ---->>> ???? what should the following part of the expression be ? regards Ahmet Temiz ______________________________________ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From ed at TOPOZONE.COM Tue May 24 05:22:12 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 24 May 2005 08:22:12 -0400 Subject: Display progress bar while waiting for data Message-ID: Dejan - Have you created "overviews" with GDAL, or created other resampled, lower-resolution copies of your images to be used when the view is zoomed out? That's the first thing you should do, in order to fix the performance problem rather than try to display an animated advertisement for it! Look at the gdaladdo documentation to start. It will let you resample the images to lower resolution versions ONCE rather than doing it on the fly for every map request. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gambin Dejan Sent: Tuesday, May 24, 2005 6:08 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks everybody participating in the discussion of displaying progress bar. I am aware of the problem but just want to describe something that is happening on my site. I have a set of 18 GeoTIFF ortophoto color images, each one has a size of 80MB. I have created tileindex shapefile to increase performance in reading the data and I have informed the users they should first have to zoom onto desired extent on the map and activate the ortophoto layer after that to speed up the loading. But users are just users and many of them are trying to activate the ortophoto layer before that (while the map is in full view) so the loading is slow. I have put a "Loading" message but the point is the following: when I load the image on the local network, I get the "Loading" message and I have to wait about 30 seconds, then the image is displayed at once. On the slow connection I also get "loading" message displayed about 30 seconds and then the map is displayed incrementally (that is ok). So my problem is those 30 seconds (that can arise to several minutes regarding the number of simultaneous users of course). Can I do something? Thanks, Dejan -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 17, 2005 6:35 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - I'll second Frank's scepticism here. Most of the "Image Loading" animations you see on mapping sites are just that - animations. They're standalone animated GIFs and the like which cause pixels to twinkle on the user's screen but which have no relationship to the actual progress of the application. The server could burst into flames and the "Image Loading" graphic would keep dancing. The site Regina mentions falls into this category. IMHO, these kinds of graphics are primarily used to try to cover up slow map servers, and not to give users meaningful progress feedback. I think by far the best feedback mechanism for image load time is the map image itself. If you simply display the image in a format that browsers can easily render incrementally, then the user can see the image begin to appear and will get a good feel for how long it will take just by watching it. JPEG is NOT a good choice for this, but GIF and PNG images should render properly on most browsers. For example, look at this image: http://www.topozone.com/images/MtMonadnockTopo.gif Over a slow connection. You should see the large map image load incrementally, so you know things are working. If the image were smaller and in a frame (to define the final output size) it would be relatively easy to assess how much progress is being made. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dejan Gambin Sent: Monday, May 16, 2005 5:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Hi, Is it possible to create some kind of progress bar while waiting for raster data to be displayed. I have some raster data in GeoTIFF format that some users with a slow connection must wait for. I am wondering if I can show them a progress bar indicating "estimated" time they have to wait so they know and they can wait or cancel the process. Does anyone have a suggestion on what is the best way to inform users? thanks very much dejan From Dejan.Gambin at PULA.HR Tue May 24 05:28:36 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Tue, 24 May 2005 14:28:36 +0200 Subject: Display progress bar while waiting for data Message-ID: I have just created tileindex with gdaltindex if I remember, that is all. It is obvious that I have to learn a bit more so thank you very much for gdaladdo link. I really don't know much about overviews and the other things you mention but I would really like to get some good directions, links, literature to start learning. Thanks very much Dejan -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 24, 2005 2:22 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - Have you created "overviews" with GDAL, or created other resampled, lower-resolution copies of your images to be used when the view is zoomed out? That's the first thing you should do, in order to fix the performance problem rather than try to display an animated advertisement for it! Look at the gdaladdo documentation to start. It will let you resample the images to lower resolution versions ONCE rather than doing it on the fly for every map request. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gambin Dejan Sent: Tuesday, May 24, 2005 6:08 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks everybody participating in the discussion of displaying progress bar. I am aware of the problem but just want to describe something that is happening on my site. I have a set of 18 GeoTIFF ortophoto color images, each one has a size of 80MB. I have created tileindex shapefile to increase performance in reading the data and I have informed the users they should first have to zoom onto desired extent on the map and activate the ortophoto layer after that to speed up the loading. But users are just users and many of them are trying to activate the ortophoto layer before that (while the map is in full view) so the loading is slow. I have put a "Loading" message but the point is the following: when I load the image on the local network, I get the "Loading" message and I have to wait about 30 seconds, then the image is displayed at once. On the slow connection I also get "loading" message displayed about 30 seconds and then the map is displayed incrementally (that is ok). So my problem is those 30 seconds (that can arise to several minutes regarding the number of simultaneous users of course). Can I do something? Thanks, Dejan -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 17, 2005 6:35 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - I'll second Frank's scepticism here. Most of the "Image Loading" animations you see on mapping sites are just that - animations. They're standalone animated GIFs and the like which cause pixels to twinkle on the user's screen but which have no relationship to the actual progress of the application. The server could burst into flames and the "Image Loading" graphic would keep dancing. The site Regina mentions falls into this category. IMHO, these kinds of graphics are primarily used to try to cover up slow map servers, and not to give users meaningful progress feedback. I think by far the best feedback mechanism for image load time is the map image itself. If you simply display the image in a format that browsers can easily render incrementally, then the user can see the image begin to appear and will get a good feel for how long it will take just by watching it. JPEG is NOT a good choice for this, but GIF and PNG images should render properly on most browsers. For example, look at this image: http://www.topozone.com/images/MtMonadnockTopo.gif Over a slow connection. You should see the large map image load incrementally, so you know things are working. If the image were smaller and in a frame (to define the final output size) it would be relatively easy to assess how much progress is being made. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dejan Gambin Sent: Monday, May 16, 2005 5:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Hi, Is it possible to create some kind of progress bar while waiting for raster data to be displayed. I have some raster data in GeoTIFF format that some users with a slow connection must wait for. I am wondering if I can show them a progress bar indicating "estimated" time they have to wait so they know and they can wait or cancel the process. Does anyone have a suggestion on what is the best way to inform users? thanks very much dejan From vortex25 at GMX.DE Tue May 24 05:28:55 2005 From: vortex25 at GMX.DE (Vortex) Date: Tue, 24 May 2005 14:28:55 +0200 Subject: TrueColor Maplayer from GRASS to Mapserver? Message-ID: Hello! I have a Rastermap in GRASS which i would like to export and display with the Mapserver. It consists of 3 RGB component layers. I put them together with r.composite and export it with r.out.gdal. With type=Byte i get an indexed Geotiff of 255 Colors. This can be displayed by Mapserver. Since i want more Colors i tried type=UInt16. Mapserver can't display this GeoTiff-File (The file seems to be ok, since qgis can display it properly using the same libgdal as i think). Is this a general Issue? Can Mapserver only display indexed BYTE Images? Well, i tried to convert it with pct2rgb.py to an 3-band RGB Geotiff. I got an error there: NameError: global name 'UnsignedInt32' is not defined I thought it should do no harm if i remove this line, but i'm not sure. At least the result can't be displayed with mapserver nor with qgis. Even more strange: The outline of the solid black output map does not fit exactly at the old outline and seems to be reprojected! Since pct2rgb.py seems unuseable at the moment i wonder if it is possible to export the RGB-GeoTIFF directly from Grass? r.out.gdal does it with gdal_translate which should be able to process more than one band. But it looks like the result of r.composite is indexed itself already! I suppose the three RGB component Maps should be feed to gdal_translate directly. But how? Thank you very much! Klaus From Wolfgang.Qual at MUENCHEN.DE Tue May 24 05:46:10 2005 From: Wolfgang.Qual at MUENCHEN.DE (Wolfgang Qual) Date: Tue, 24 May 2005 14:46:10 +0200 Subject: Display Geotiff-Data: Problems In-Reply-To: <4291F6C9.5090601@gdv.com> Message-ID: Hi Oliver, thank you very much! After pasting these seven lines into my mapfile, the image was perfect. Great! Oliver Wesp schrieb: > Hi, > > I guess you're using 256 color output so the rgb image is mapped to 256 > colors. Switching to rgb output should solve the problem. Put something > like this in your mapfile > > IMAGETYPE PNGRGB > OUTPUTFORMAT > NAME PNGRGB > DRIVER "GD/PNG" > IMAGEMODE RGB > TRANSPARENT OFF > END > > Oliver > > Wolfgang Qual schrieb: > >> Hello List, >> I have created a mapserver map with a small Geotiff in it and the map >> can be openend, when I click on the >> link(http://dream.lrrl.arch.tu-muenchen.de/cgi-bin/M3.cgi?map=geotiff2.dfo.map). >> >> >> However, the image is not displayed correctly: it is quite grainy and >> the colours are odd (compared to the picture I get on my local computer >> with kuickshow). Does anybody know the answer to this problem? Thanks >> again! >> >> Wolfgang > > > > > -- > Dipl.-Geogr. Oliver Wesp > Gesellschaft fuer geografische Datenverarbeitung > Binger Strasse 49-51 > D-55218 Ingelheim > fon: +49 6132 714818 > fax: +49 6132 714828 > http: www.gdv.com > -- Wolfgang Qual Landeshauptstadt M?nchen Referat f?r Gesundheit und Umwelt RGU-UW 11 Sg. 1 Gesundheits- und Umweltberichterstattung, Energie und Klimaschutz Bayerstr. 28a, 80335 M?nchen Tel.: +49 (0)89 233-477 17 Fax.: +49 (0)89 233-477 05 E-Mail: wolfgang.qual at muenchen.de From robe.dnd at CITYOFBOSTON.GOV Tue May 24 05:38:49 2005 From: robe.dnd at CITYOFBOSTON.GOV (Obe, Regina DND\MIS) Date: Tue, 24 May 2005 08:38:49 -0400 Subject: Display progress bar while waiting for data Message-ID: You could also prevent your aerial layer from being available at full zoom out by setting the MAXSCALE property of the aerial layer. -----Original Message----- From: Gambin Dejan [mailto:Dejan.Gambin at PULA.HR] Sent: Tuesday, May 24, 2005 8:29 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data I have just created tileindex with gdaltindex if I remember, that is all. It is obvious that I have to learn a bit more so thank you very much for gdaladdo link. I really don't know much about overviews and the other things you mention but I would really like to get some good directions, links, literature to start learning. Thanks very much Dejan -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 24, 2005 2:22 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - Have you created "overviews" with GDAL, or created other resampled, lower-resolution copies of your images to be used when the view is zoomed out? That's the first thing you should do, in order to fix the performance problem rather than try to display an animated advertisement for it! Look at the gdaladdo documentation to start. It will let you resample the images to lower resolution versions ONCE rather than doing it on the fly for every map request. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gambin Dejan Sent: Tuesday, May 24, 2005 6:08 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks everybody participating in the discussion of displaying progress bar. I am aware of the problem but just want to describe something that is happening on my site. I have a set of 18 GeoTIFF ortophoto color images, each one has a size of 80MB. I have created tileindex shapefile to increase performance in reading the data and I have informed the users they should first have to zoom onto desired extent on the map and activate the ortophoto layer after that to speed up the loading. But users are just users and many of them are trying to activate the ortophoto layer before that (while the map is in full view) so the loading is slow. I have put a "Loading" message but the point is the following: when I load the image on the local network, I get the "Loading" message and I have to wait about 30 seconds, then the image is displayed at once. On the slow connection I also get "loading" message displayed about 30 seconds and then the map is displayed incrementally (that is ok). So my problem is those 30 seconds (that can arise to several minutes regarding the number of simultaneous users of course). Can I do something? Thanks, Dejan -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 17, 2005 6:35 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - I'll second Frank's scepticism here. Most of the "Image Loading" animations you see on mapping sites are just that - animations. They're standalone animated GIFs and the like which cause pixels to twinkle on the user's screen but which have no relationship to the actual progress of the application. The server could burst into flames and the "Image Loading" graphic would keep dancing. The site Regina mentions falls into this category. IMHO, these kinds of graphics are primarily used to try to cover up slow map servers, and not to give users meaningful progress feedback. I think by far the best feedback mechanism for image load time is the map image itself. If you simply display the image in a format that browsers can easily render incrementally, then the user can see the image begin to appear and will get a good feel for how long it will take just by watching it. JPEG is NOT a good choice for this, but GIF and PNG images should render properly on most browsers. For example, look at this image: http://www.topozone.com/images/MtMonadnockTopo.gif Over a slow connection. You should see the large map image load incrementally, so you know things are working. If the image were smaller and in a frame (to define the final output size) it would be relatively easy to assess how much progress is being made. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dejan Gambin Sent: Monday, May 16, 2005 5:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Hi, Is it possible to create some kind of progress bar while waiting for raster data to be displayed. I have some raster data in GeoTIFF format that some users with a slow connection must wait for. I am wondering if I can show them a progress bar indicating "estimated" time they have to wait so they know and they can wait or cancel the process. Does anyone have a suggestion on what is the best way to inform users? thanks very much dejan From robe.dnd at CITYOFBOSTON.GOV Tue May 24 06:00:39 2005 From: robe.dnd at CITYOFBOSTON.GOV (Obe, Regina DND\MIS) Date: Tue, 24 May 2005 09:00:39 -0400 Subject: gdaltindex in DOS Message-ID: Frank has got some precompiled binaries for win32 on his site if you don't want to bother compiling it yourself. http://fwtools.maptools.org/ Just download the Fwtools 0.9.8 (windows) and its got gdal exes among other neat things packaged in the suite. -----Original Message----- From: Yar Doroshenko [mailto:numerous at GMAIL.COM] Sent: Monday, May 23, 2005 6:41 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] gdaltindex in DOS Hi, I have 51 .tif files and 51 corresponding .tfw files. I would like to run gdaltindex on my Windows machine. I tried using the instructions at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RasterHOWTO but these are not for Windows. Could anyone share the correct gdaltindex usage in DOS environment? Thank you, Yar From higon_jos at GVA.ES Tue May 24 05:56:39 2005 From: higon_jos at GVA.ES (=?ISO-8859-1?Q?Jos=E9_Vicente_Hig=F3n_Valero?=) Date: Tue, 24 May 2005 14:56:39 +0200 Subject: Null image with WCS on 4.6.0 beta 2 Message-ID: Hi, here at gvSIG we're developing a WCS client on java, and we need to serve some local quickbird 16bits tiff images with mapserver. I've tryed to configure a mapserver 4.6.0 beta2 but have had no success. At last I decided to simplify my problem, trying to replicate a known-working configuration, that we've found at 'http://hypnos.cbs.umn.edu/cgi-bin/mapserv43d?'. My map file is like this: MAP NAME 'prueba_wcs' SHAPEPATH '/usr/local/mapserver/data' DEBUG ON IMAGETYPE PNG OUTPUTFORMAT NAME GEOTIFF_INT16 DRIVER "GDAL/GTiff" IMAGEMODE INT16 END OUTPUTFORMAT NAME GEOTIFF_RGB DRIVER "GDAL/GTiff" IMAGEMODE RGB END WEB TEMPLATE "." METADATA "wcs_label" "Servidor pruebas wcs" "wcs_keywordlist" "WCS" "wcs_onlineresource" "http://gruposigp2/cgi-bin/wcs" END LOG "/usr/local/mapserver/wcs.log" IMAGEURL "/usr/local/mapserver/tmp/" IMAGEPATH "/usr/local/mapserver/tmp/" END PROJECTION "init=epsg:26915" END LAYER NAME "prueba" TEMPLATE "." DEBUG ON STATUS OFF TYPE RASTER PROCESSING "SCALE=AUTO" UNITS METERS METADATA wcs_label "Cobertura prueba" ows_srs "EPSG:26915" ows_extent "159707.000 4552995.000 1400707.000 5545795.000" wcs_resolution "500 500" wcs_formats "GEOTIFF_INT16 GEOTIFF_RGB" wcs_nativeformat "GEOTIFF_RGB" wms_title "prueba" wms_name "eso" END PROJECTION "init=epsg:26915" END DUMP TRUE DATA '/usr/local/mapserver/data/raster/prueba.tif' END END The gdalinfo's output of prueba.tif: (I got this coverage from the wcs server hypnos.cbs.umn.edu with this request: http://hypnos.cbs.umn.edu/cgi-bin/mapserv43d?map=/data/wcs/demo.map& SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&COVERAGE=ndvi& TIME=2002-129&CRS=EPSG:26915& FORMAT=GEOTIFF_INT16&RESX=500%200&RESY=500%200& BBOX=159707.000000,4552995.000000,1400707.000000,5545795.000000): Driver: GTiff/GeoTIFF Size is 2482, 1986 Coordinate System is: PROJCS["NAD83 / UTM zone 15N", GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.2572221010042, AUTHORITY["EPSG","7019"]], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4269"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-93], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","26915"]] Origin = (159707.000000,5545795.000000) Pixel Size = (500.00000000,-499.89929507) Corner Coordinates: Upper Left ( 159707.000, 5545795.000) ( 97d44'45.47"W, 49d58'2.20"N) Lower Left ( 159707.000, 4552995.000) ( 97d 2'57.27"W, 41d 3'25.37"N) Upper Right ( 1400707.000, 5545795.000) ( 80d34'20.14"W, 49d23'33.06"N) Lower Right ( 1400707.000, 4552995.000) ( 82d21'28.87"W, 40d38'4.04"N) Center ( 780207.000, 5049395.000) ( 89d24'38.67"W, 45d32'30.03"N) Band 1 Block=2482x1 Type=Int16, ColorInterp=Gray Finally, I write in a web browser: http://172.19.21.36/cgi-bin/wcs&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&COVERAGE=prueba&CRS=EPSG:26915&FORMAT=GEOTIFF_INT16&RESX=500&RESY=500&BBOX=159708.000000,4552993.000000,1400706.000000,5545794.000000 but I receive a 0 bytes image. May anyone help me? Thanks in advance PS: This tiff works fine in a wms request. -- Jos? Vicente Hig?n gvSIG development Team Conselleria de Infraestructuras y Transporte Generalitat Valenciana Valencia - Spain http://www.gvsig.gva.es From joanvp at YAHOO.COM Tue May 24 07:06:58 2005 From: joanvp at YAHOO.COM (joanvp) Date: Tue, 24 May 2005 07:06:58 -0700 Subject: gdaltindex in DOS In-Reply-To: 6667 Message-ID: Hi, It works for me in DOS: for %f in (Path/to/directory/*.tif) do gdaltindex img_index.shp %f Cheers. Yar Doroshenko wrote: Hi, I have 51 .tif files and 51 corresponding .tfw files. I would like to run gdaltindex on my Windows machine. I tried using the instructions at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RasterHOWTO but these are not for Windows. Could anyone share the correct gdaltindex usage in DOS environment? Thank you, Yar __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From osgis.lists at GMAIL.COM Tue May 24 07:24:00 2005 From: osgis.lists at GMAIL.COM (David Bitner) Date: Tue, 24 May 2005 09:24:00 -0500 Subject: Open Source GIS / Mapserver Users Groups Message-ID: I am trying to compile a list of regional/local open source GIS users groups to present at the OSGIS/MUM3 in June. If you know of any groups that are either dedicated to open source GIS software or that often include discussion of open source GIS software, please send me location and contact information for the group. Thanks for your help, David From ed at TOPOZONE.COM Tue May 24 07:27:33 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 24 May 2005 10:27:33 -0400 Subject: Display progress bar while waiting for data Message-ID: Dejan - You should be willing to apply overviews quite generously. If you have a single 80 MB image, a 2X overview (half the resolution) will require 20 MB more space, and a 4X overview will require 5 MB on top of that, so you will increase your storage from 80 MB to 105 MB. Adding 8x, 16x, 32x, 64x, AND 128x overviews (probably more than you need) will, in total, only add 2 MB more space and will provide fast display for those very "zoomed out" views. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Gambin Dejan [mailto:Dejan.Gambin at pula.hr] Sent: Tuesday, May 24, 2005 9:25 AM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks to all specially to Ed. I have created overviews of my GeoTIFF files with gdaladdo. Now I am using combination of tileindex and overviews and the layer is displayed at the full view much faster. I think that is it and I can't do anything more than this except increasing the bandwidth of my server and my users of course... Thanks very much Dejan Gambin -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 24, 2005 2:22 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - Have you created "overviews" with GDAL, or created other resampled, lower-resolution copies of your images to be used when the view is zoomed out? That's the first thing you should do, in order to fix the performance problem rather than try to display an animated advertisement for it! Look at the gdaladdo documentation to start. It will let you resample the images to lower resolution versions ONCE rather than doing it on the fly for every map request. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gambin Dejan Sent: Tuesday, May 24, 2005 6:08 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks everybody participating in the discussion of displaying progress bar. I am aware of the problem but just want to describe something that is happening on my site. I have a set of 18 GeoTIFF ortophoto color images, each one has a size of 80MB. I have created tileindex shapefile to increase performance in reading the data and I have informed the users they should first have to zoom onto desired extent on the map and activate the ortophoto layer after that to speed up the loading. But users are just users and many of them are trying to activate the ortophoto layer before that (while the map is in full view) so the loading is slow. I have put a "Loading" message but the point is the following: when I load the image on the local network, I get the "Loading" message and I have to wait about 30 seconds, then the image is displayed at once. On the slow connection I also get "loading" message displayed about 30 seconds and then the map is displayed incrementally (that is ok). So my problem is those 30 seconds (that can arise to several minutes regarding the number of simultaneous users of course). Can I do something? Thanks, Dejan -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 17, 2005 6:35 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - I'll second Frank's scepticism here. Most of the "Image Loading" animations you see on mapping sites are just that - animations. They're standalone animated GIFs and the like which cause pixels to twinkle on the user's screen but which have no relationship to the actual progress of the application. The server could burst into flames and the "Image Loading" graphic would keep dancing. The site Regina mentions falls into this category. IMHO, these kinds of graphics are primarily used to try to cover up slow map servers, and not to give users meaningful progress feedback. I think by far the best feedback mechanism for image load time is the map image itself. If you simply display the image in a format that browsers can easily render incrementally, then the user can see the image begin to appear and will get a good feel for how long it will take just by watching it. JPEG is NOT a good choice for this, but GIF and PNG images should render properly on most browsers. For example, look at this image: http://www.topozone.com/images/MtMonadnockTopo.gif Over a slow connection. You should see the large map image load incrementally, so you know things are working. If the image were smaller and in a frame (to define the final output size) it would be relatively easy to assess how much progress is being made. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dejan Gambin Sent: Monday, May 16, 2005 5:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Hi, Is it possible to create some kind of progress bar while waiting for raster data to be displayed. I have some raster data in GeoTIFF format that some users with a slow connection must wait for. I am wondering if I can show them a progress bar indicating "estimated" time they have to wait so they know and they can wait or cancel the process. Does anyone have a suggestion on what is the best way to inform users? thanks very much dejan From adams at TERRESTRIS.DE Tue May 24 07:51:15 2005 From: adams at TERRESTRIS.DE (Till Adams) Date: Tue, 24 May 2005 16:51:15 +0200 Subject: Open Source GIS / Mapserver Users Groups In-Reply-To: <71c3c6c505052407247281693f@mail.gmail.com> Message-ID: David Bitner wrote: >I am trying to compile a list of regional/local open source GIS users >groups to present at the OSGIS/MUM3 in June. If you know of any >groups that are either dedicated to open source GIS software or that >often include discussion of open source GIS software, please send me >location and contact information for the group. > > >Thanks for your help, >David > > David, there is the UMN user map with mainly german speaking umn users on - you also may include this one as wms: http://wms.ccgis.de/mapbender2/frames/login.php?name=ccgis_de&password=ccgis_de&mb_user_myGui=MapServer if you zoom out, you'll also find the rest of the world ... feel free to locate yourself ;-) cheers, Till -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From ARyan at CO.LINN.OR.US Tue May 24 08:25:11 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Tue, 24 May 2005 08:25:11 -0700 Subject: SWIG mapObj.setRotation(float) Message-ID: Thanks Sean. > -----Original Message----- > From: Sean Gillies [mailto:sgillies at frii.com] > Sent: Monday, May 23, 2005 7:20 PM > To: Ryan, Adam > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: SWIG mapObj.setRotation(float) > > > On May 23, 2005, at 6:10 PM, Ryan, Adam wrote: > > > Hi folks, > > > > Just curious if anyone has mapObj.setRotation(float)working > with SWIG > > mapscript. I can's seem to make it fly. > > > > Cheers, > > > > Adam > > > > Check out the old wiki. IIRC, Frank had notes about mapscript usage. > > cheers, > Sean > > > -- > Sean Gillies > sgillies at frii dot com > http://zcologia.com > From Wolfgang.Qual at MUENCHEN.DE Tue May 24 08:54:32 2005 From: Wolfgang.Qual at MUENCHEN.DE (Wolfgang Qual) Date: Tue, 24 May 2005 17:54:32 +0200 Subject: Display Arc/INFO Binary Grid does not work correctly? Message-ID: Hello again, list. I just created another map, just to test whether I am able to put Arc/INFO GRIDs on the mapserver. However, all I get is a black picture (colour information seems to be lost) --> http://dream.lrrl.arch.tu-muenchen.de/cgi-bin/M3.cgi?&map=rastertest.dfo.map The mapserver is compiled with gdal-support, gdalinfo on the rasterfile produces this information: wqual at dream:/data/fis/klima/therm_98/grid> gdalinfo ab82s_grd/ Driver: AIG/Arc/Info Binary Grid Size is 6080, 5520 Coordinate System is `' Origin = (4449996.875000,5352003.125000) Pixel Size = (6.25000000,-6.25000000) Corner Coordinates: Upper Left ( 4449996.875, 5352003.125) Lower Left ( 4449996.875, 5317503.125) Upper Right ( 4487996.875, 5352003.125) Lower Right ( 4487996.875, 5317503.125) Center ( 4468996.875, 5334753.125) Band 1 Block=256x4 Type=Byte, ColorInterp=Undefined Min=1.000 Max=30.000 NoData Value=255 Is there a way to get the colour-table information into the mapfile? What is the best way to integrate GRID-files into mapserver-maps? Do I need the "info" folder (created by ArcView) on the webserver for displaying the rasterfile correctly? Thanks again. Wolfgang -- Wolfgang Qual Landeshauptstadt M?nchen Referat f?r Gesundheit und Umwelt RGU-UW 11 Sg. 1 Gesundheits- und Umweltberichterstattung, Energie und Klimaschutz Bayerstr. 28a, 80335 M?nchen Tel.: +49 (0)89 233-477 17 Fax.: +49 (0)89 233-477 05 E-Mail: wolfgang.qual at muenchen.de From bluetuna_goes_skying at YAHOO.CO.UK Tue May 24 08:56:27 2005 From: bluetuna_goes_skying at YAHOO.CO.UK (=?iso-8859-1?q?jo=FFffffffffffe3o=20Antunes?=) Date: Tue, 24 May 2005 16:56:27 +0100 Subject: OGR connection for LINUX Message-ID: Hello Frank sorry to be back on this subject but I could not achieve my final goal yet.. I recall that my final goal is to make thematic maps using an external updatable mysql table. This table was fetched using an OGR connection to an ODBC in windows environment but now I exported all my application to LINUX so I am trying to access my mysql table directly from OGR compiled with MySQL support. OGR was compiled with MySQL support and it is working properly after your directions. I run: ogrinfo -ro "/usr/local/apache2/htdocs/abruzzo/maps/data" -sql "SELECT Id,FIELD FROM comuni_abruzzo_gb LEFT JOIN 'MySQL:abruzzo,user=rt,password=rt,host=localhost'.zzz ON comuni_abruzzo_gb.Id = zzz.ID1" and a list of the atributes of the joined tables comes out as well as the coordinates that define the polygons. Now I put that code in my map file like this: CONNECTIONTYPE OGR CONNECTION "/usr/local/apache2/htdocs/abruzzo/maps/data" DATA "SELECT Id,FIELD FROM comuni_abruzzo_gb LEFT JOIN 'MYSQL:abruzzo,user=rt,password=rt,host=localhost'.zzz ON comuni_abruzzo_gb.Id=zzz.ID1" but I keep getting this error Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'comuni'. in /usr/local/apache2/htdocs/abruzzo/_l_test_mysql.php on line 117 Warning: [MapServer Error]: msOGRLayerOpen(): OGR support is not available. in /usr/local/apache2/htdocs/abruzzo/_l_test_mysql.php on line 117 Fatal error: Call to a member function on a non-object in /usr/local/apache2/htdocs/abruzzo/_l_test_mysql.php on line 118 even though I compiled mapserver using this: ./configure --with-php=/usr/local/php_nnn --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config and everything went fine.. ... so I do not understand what's going on here.. ... phpmapscript is working fine as well as all the rest concerning the mapserver cgi... I just seem to be not able to implement this OGR connection.. thank you so much for your pacience regards joao --- Frank Warmerdam wrote: > On 5/23/05, jo?ffffffffffe3o Antunes > wrote: > > Hello frank, > > > > I am still fighting to have mysql support using > OGR.. > > > > the "funny" thing is that each time I run > > > > ogrinfo -ro -al -so > > > 'MYSQL:database=abruzzo,tablename=zzz,user=arit,password=arit,host=localhost,port:3306' > > > > I get this message: > > > > Warning 1: 'tablename=zzz' in MYSQL datasource > > definition not recognised and ignored. > > Warning 1: 'port:3306' in MYSQL datasource > definition > > not recognised and ignored. > > Joao, > > I see the documentation was wrong. The table name > list parameter > is actually tables=, not tablename=. I have > corrected the docs online. > > Also, your port specifier should be port=n, not > port:n. > > And finally you don't use database=, just make the > database name > the first argument. Try instead something like: > > ogrinfo -ro -al -so > 'MYSQL:abruzzo,tables=zzz,user=arit,password=arit,host=localhost,port=3306' > > Good luck, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank > Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | > http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial > Programmer for Rent > ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com From robe.dnd at CITYOFBOSTON.GOV Tue May 24 09:09:50 2005 From: robe.dnd at CITYOFBOSTON.GOV (Obe, Regina DND\MIS) Date: Tue, 24 May 2005 12:09:50 -0400 Subject: gdaltindex in DOS Message-ID: The simple gdaltindex img_index.shp Path/to/directory/*.tif works for me in DOS. -----Original Message----- From: joanvp [mailto:joanvp at YAHOO.COM] Sent: Tuesday, May 24, 2005 10:07 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] gdaltindex in DOS Hi, It works for me in DOS: for %f in (Path/to/directory/*.tif) do gdaltindex img_index.shp %f Cheers. Yar Doroshenko wrote: Hi, I have 51 .tif files and 51 corresponding .tfw files. I would like to run gdaltindex on my Windows machine. I tried using the instructions at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RasterHOWTO but these are not for Windows. Could anyone share the correct gdaltindex usage in DOS environment? Thank you, Yar __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenlord at GMAIL.COM Tue May 24 09:48:06 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 24 May 2005 09:48:06 -0700 Subject: Cleaning the /tmp directory In-Reply-To: <42921638.6090004@swoodbridge.com> Message-ID: James, I use the method you mentioned, 'MODE=MAP', to generate snapshots for query results. It works great to highlight each individual item returned by a map query, placed next each item's attributes. However, Since mapserver 4 and later have come out, often the images fail despite the log statement of 'normal execution'. I have simplified the maps as much as possible, and I'm sure that its not a lingering syntax difference between 3.6 (where it worked great) and 4 or later. The failures are not consistant either. Why they don't either all work or all fail, or at least all the same features queried fail consistantly? I have no idea. So I'm leary about suggesting people use MODE=MAP for all their maps just to keep their temp folder's empty, especially when a simple .bat file can be used to empty them regularly. Cheers, Ken Lord Vancouver BC -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenlord at GMAIL.COM Tue May 24 09:57:41 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 24 May 2005 09:57:41 -0700 Subject: Cleaning the /tmp directory In-Reply-To: <55dd01fa05052409487c2715c1@mail.gmail.com> Message-ID: I suppose I should give an example of the contents of my .bat file! :) del "C:\path\to\tmp\files\*.*" /Q The .bat file is run by the windows task schedular once a day. Cheers, Ken Lord Vancouver BC On 5/24/05, Ken Lord wrote: > > James, > I use the method you mentioned, 'MODE=MAP', to generate snapshots for > query results. It works great to highlight each individual item returned by > a map query, placed next each item's attributes. > However, Since mapserver 4 and later have come out, often the images fail > despite the log statement of 'normal execution'. > I have simplified the maps as much as possible, and I'm sure that its not > a lingering syntax difference between 3.6 (where it worked great) and 4 or > later. The failures are not consistant either. Why they don't either all > work or all fail, or at least all the same features queried fail > consistantly? I have no idea. > So I'm leary about suggesting people use MODE=MAP for all their maps just > to keep their temp folder's empty, especially when a simple .bat file can be > used to empty them regularly. > Cheers, > Ken Lord > Vancouver BC > -------------- next part -------------- An HTML attachment was scrubbed... URL: From luca.penasa at EMAIL.IT Tue May 24 11:48:24 2005 From: luca.penasa at EMAIL.IT (Luca Penasa) Date: Tue, 24 May 2005 20:48:24 +0200 Subject: ITALIAN Documentation for GRASS Message-ID: Hi everybody, Im now working on an italian tutorial/guide to georeference maps using GRASS. In this work I explain the fundamentals of geodetics and the procedure for rectify maps and ortophotos. I'll use it for a school-exam and saomeone interested could read it and say me what does he think. It's a WORK-IN-PROGRESS project, so the online version is not the definitive one. Grazie a tutti. link: http://www.gfoss.it/ my email: luca.penasa at email.it Luca Penasa. -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Telefona con Email.it Phone Card, tanti minuti di conversazione con il massimo del risparmio, clicca qui Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2687&d=24-5 From ed at TOPOZONE.COM Tue May 24 10:02:14 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 24 May 2005 13:02:14 -0400 Subject: Cleaning the /tmp directory Message-ID: Ken - If you are trying to serve multiple simultaneous requests, with everything competing to write and then read files from the temp directory, the disk I/O to that drive can become a serious bottleneck. If heavy usage is not a concern, then this may be a non-issue. I have never seen failures due to MODE=MAP (rather than being caused by something else) and I've used it about a billion times (literally ). I would be leery of blaming failures on MODE=MAP without some diagnosis about the cause. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Lord Sent: Tuesday, May 24, 2005 12:48 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Cleaning the /tmp directory James, I use the method you mentioned, 'MODE=MAP', to generate snapshots for query results. It works great to highlight each individual item returned by a map query, placed next each item's attributes. However, Since mapserver 4 and later have come out, often the images fail despite the log statement of 'normal execution'. I have simplified the maps as much as possible, and I'm sure that its not a lingering syntax difference between 3.6 (where it worked great) and 4 or later. The failures are not consistant either. Why they don't either all work or all fail, or at least all the same features queried fail consistantly? I have no idea. So I'm leary about suggesting people use MODE=MAP for all their maps just to keep their temp folder's empty, especially when a simple .bat file can be used to empty them regularly. Cheers, Ken Lord Vancouver BC -------------- next part -------------- An HTML attachment was scrubbed... URL: From tylermitchell at SHAW.CA Tue May 24 10:44:02 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Tue, 24 May 2005 10:44:02 -0700 Subject: Open Source GIS / Mapserver Users Groups Message-ID: Hi David, We have a virtual user group via a regional-focused MapServer mailing list: http://lists.maptools.org/mailman/listinfo/mapserver-west The region of focus is western America. It's not just for MapServer talk, of course, but for general discussion as well. We've got representation from Alaska to New Mexico. Since we know that "west" is a relative term, we invite anyone who feels they fit the bill :) We intend to have regional face-to-face meetups within the group, as we get to know where each other is at. Hope that's what you are looking for. Tyler ----- Original Message ----- From: David Bitner Date: Tuesday, May 24, 2005 7:24 am Subject: [UMN_MAPSERVER-USERS] Open Source GIS / Mapserver Users Groups > I am trying to compile a list of regional/local open source GIS users > groups to present at the OSGIS/MUM3 in June. If you know of any > groups that are either dedicated to open source GIS software or that > often include discussion of open source GIS software, please send me > location and contact information for the group. > > > Thanks for your help, > David > From tylermitchell at SHAW.CA Tue May 24 10:55:08 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Tue, 24 May 2005 10:55:08 -0700 Subject: Display Arc/INFO Binary Grid does not work correctly? Message-ID: Hi Wolfgang, Do you need to keep the data in GRID format? I have had coloured tiff images that 'lost' the colours. Someone introduced me to the pct2rgb.py Python script (part of FWTools) that solved the problem, but I was converting TIFF->TIFF and don't know how (or if) this could work with GRIDs. It looks to me like the colour info. may be lost already though, since no colours are listed from gdalinfo. Hmm...I'm beyond my expertise here. Hope that might help. Tyler ----- Original Message ----- From: Wolfgang Qual Date: Tuesday, May 24, 2005 8:54 am Subject: [UMN_MAPSERVER-USERS] Display Arc/INFO Binary Grid does not work correctly? > Hello again, list. > I just created another map, just to test whether I am able to put > Arc/INFO GRIDs on the mapserver. However, all I get is a black picture > (colour information seems to be lost) > --> > http://dream.lrrl.arch.tu-muenchen.de/cgi- > bin/M3.cgi?&map=rastertest.dfo.map > The mapserver is compiled with gdal-support, gdalinfo on the > rasterfileproduces this information: > > wqual at dream:/data/fis/klima/therm_98/grid> gdalinfo ab82s_grd/ > Driver: AIG/Arc/Info Binary Grid > Size is 6080, 5520 > Coordinate System is `' > Origin = (4449996.875000,5352003.125000) > Pixel Size = (6.25000000,-6.25000000) > Corner Coordinates: > Upper Left ( 4449996.875, 5352003.125) > Lower Left ( 4449996.875, 5317503.125) > Upper Right ( 4487996.875, 5352003.125) > Lower Right ( 4487996.875, 5317503.125) > Center ( 4468996.875, 5334753.125) > Band 1 Block=256x4 Type=Byte, ColorInterp=Undefined > Min=1.000 Max=30.000 > NoData Value=255 > > Is there a way to get the colour-table information into the mapfile? > What is the best way to integrate GRID-files into mapserver-maps? > Do I > need the "info" folder (created by ArcView) on the webserver for > displaying the rasterfile correctly? > > Thanks again. > > Wolfgang > > -- > Wolfgang Qual > Landeshauptstadt M??nchen > Referat f??r Gesundheit und Umwelt > RGU-UW 11 > Sg. 1 Gesundheits- und Umweltberichterstattung, > Energie und Klimaschutz > Bayerstr. 28a, 80335 M??nchen > Tel.: +49 (0)89 233-477 17 > Fax.: +49 (0)89 233-477 05 > E-Mail: wolfgang.qual at muenchen.de > From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Tue May 24 11:44:31 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Tue, 24 May 2005 13:44:31 -0500 Subject: RASTER Layer. Message-ID: Hello Listserv, I'm new to Map Server and I am having some difficulties with getting a raster output to work. So far I have been able to get a TYPE LINE output to work. I want to add another layer, a RASTER layer, but it does not work and I don't know what I am doing wrong. Will someone scan my code to see if I have done something incorrectly? I am outputting my data to a Flash viewer in a HTML template. Thank you, Ryan ============================================================ MAP NAME FMV_ EXTENT -544000 89800 1393000 1254000 WEB log "./test.log" TEMPLATE "test_template.html" IMAGEPATH "./tmp/" IMAGEURL "http://[my domain]/fmv/test/tmp/" END DEBUG ON OUTPUTFORMAT NAME swf DRIVER "SWF" MIMETYPE "application/x-shockwave-flash" EXTENSION "swf" IMAGEMODE PC256 FORMATOPTION "OUTPUT_MOVIE=MULTIPLE" END IMAGETYPE swf SIZE 460 500 SHAPEPATH "data" IMAGECOLOR 255 255 255 PROJECTION # "proj=laea" # "ellps=clrk66" # "lat_0=45" # "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER NAME "basin" DATA "data/basin_alb.tif" STATUS DEFAULT TYPE RASTER PROCESSING "BANDS=1,2,3" OFFSITE 71 74 65 # PROJECTION # END END LAYER NAME "river" DATA missouri_river STATUS DEFAULT TYPE LINE METADATA "SWFDUMPATTRIBUTES" "NAME,LENGTH" END CLASS COLOR 0 0 254 END END LAYER NAME dcp DATA dcps STATUS DEFAULT TYPE POINT METADATA "SWFDUMPATTRIBUTES" "MRADS_ID" END CLASS SYMBOL 0 COLOR 0 0 254 END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object^M -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Tue May 24 12:02:35 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Tue, 24 May 2005 14:02:35 -0500 Subject: Projection. Message-ID: Hello Map Server Listserv, I have a question on projection. I understand the definition and concept of projections. But, how do you know what to use? I don't quite grasp the idea of how to choose the variables to put into the projection object. Ryan Owens -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Tue May 24 12:16:29 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 24 May 2005 15:16:29 -0400 Subject: RASTER Layer. Message-ID: Ryan - The example MAP file you give seems (at a quick look) OK if all your input data is in the same projection. The only way you know what projections to use is by knowing your source data. Some source formats, like GeoTIFF, will have projection information embedded in them. Others, like your shapefiles, usually do not - you need to know what you have. Do you think all your data is in the same projection? What does the listgeo command tell you when you use it to dump the metadata from the basin_alb.tif file? I'm going to guess that your raster image is in the Albers or other projection, and your shapefiles are in unprojected geographic coordinates. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Owens, Ryan J NWD02 CONTRACTOR Sent: Tuesday, May 24, 2005 2:45 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] RASTER Layer. Hello Listserv, I'm new to Map Server and I am having some difficulties with getting a raster output to work. So far I have been able to get a TYPE LINE output to work. I want to add another layer, a RASTER layer, but it does not work and I don't know what I am doing wrong. Will someone scan my code to see if I have done something incorrectly? I am outputting my data to a Flash viewer in a HTML template. Thank you, Ryan ============================================================ MAP NAME FMV_ EXTENT -544000 89800 1393000 1254000 WEB log "./test.log" TEMPLATE "test_template.html" IMAGEPATH "./tmp/" IMAGEURL "http://[my domain]/fmv/test/tmp/" END DEBUG ON OUTPUTFORMAT NAME swf DRIVER "SWF" MIMETYPE "application/x-shockwave-flash" EXTENSION "swf" IMAGEMODE PC256 FORMATOPTION "OUTPUT_MOVIE=MULTIPLE" END IMAGETYPE swf SIZE 460 500 SHAPEPATH "data" IMAGECOLOR 255 255 255 PROJECTION # "proj=laea" # "ellps=clrk66" # "lat_0=45" # "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER NAME "basin" DATA "data/basin_alb.tif" STATUS DEFAULT TYPE RASTER PROCESSING "BANDS=1,2,3" OFFSITE 71 74 65 # PROJECTION # END END LAYER NAME "river" DATA missouri_river STATUS DEFAULT TYPE LINE METADATA "SWFDUMPATTRIBUTES" "NAME,LENGTH" END CLASS COLOR 0 0 254 END END LAYER NAME dcp DATA dcps STATUS DEFAULT TYPE POINT METADATA "SWFDUMPATTRIBUTES" "MRADS_ID" END CLASS SYMBOL 0 COLOR 0 0 254 END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object^M -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenlord at GMAIL.COM Tue May 24 12:50:05 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 24 May 2005 12:50:05 -0700 Subject: Cleaning the /tmp directory In-Reply-To: <4BF377919225F449BB097CB76FFE9BC818858D@ptolemy.topozone.com> Message-ID: Hi Ed, I had thought the failures might be due to overloading our 'Boat Anchor' brand webserver, but the failures happen whether its one or a dozen snapshots being generated. Our websites do not handle much volume as they are focused to a small group of specific private users. That being said, we are switching over to a new webserver, with a separate new computer as a PostGIS database server, and saying goodbye to the P3 era. Hopefully the new hardware will help, at the very least its going to speed up our websites a lot, if not I'll dive back into the URL's that generate the snapshots. Cheers, Ken On 5/24/05, Ed McNierney wrote: > > Ken - > If you are trying to serve multiple simultaneous requests, with > everything competing to write and then read files from the temp directory, > the disk I/O to that drive can become a *serious* bottleneck. If heavy > usage is not a concern, then this may be a non-issue. > I have never seen failures due to MODE=MAP (rather than being caused by > something else) and I've used it about a billion times (literally ). I > would be leery of blaming failures on MODE=MAP without some diagnosis about > the cause. > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > ------------------------------ > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *Ken Lord > *Sent:* Tuesday, May 24, 2005 12:48 PM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] Cleaning the /tmp directory > > James, > I use the method you mentioned, 'MODE=MAP', to generate snapshots for > query results. It works great to highlight each individual item returned by > a map query, placed next each item's attributes. > However, Since mapserver 4 and later have come out, often the images fail > despite the log statement of 'normal execution'. > I have simplified the maps as much as possible, and I'm sure that its not > a lingering syntax difference between 3.6 (where it worked great) and 4 or > later. The failures are not consistant either. Why they don't either all > work or all fail, or at least all the same features queried fail > consistantly? I have no idea. > So I'm leary about suggesting people use MODE=MAP for all their maps just > to keep their temp folder's empty, especially when a simple .bat file can be > used to empty them regularly. > Cheers, > Ken Lord > Vancouver BC > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.and.kerry at GMAIL.COM Tue May 24 13:47:30 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Tue, 24 May 2005 12:47:30 -0800 Subject: Projection. In-Reply-To: <35ADA1929CF84D44A310F248121581AD01F92A@NWO-ML3OMA.nwo.ds.usace.army.mil> Message-ID: From chromgruen at GMX.NET Tue May 24 15:02:56 2005 From: chromgruen at GMX.NET (Andreas M=?ISO-8859-1?Q?=FCller?=) Date: Tue, 24 May 2005 17:02:56 -0500 Subject: .: Unable to access file. tSymbol() Message-ID: I've just set up mapserver 4.4 on my linux box, because I wanted to play around with mapscript and postgis. When I send an incomplete request a very basic mapfile (http://localhost/cgi-bin/mapserv?map=/srv/www/data/test.map?request=GetCapabilities" I do not receive the WMS error message i get the message ".: Unable to access file. tSymbol()". Can anybody tell me, what this means? An empty request to .../cgi-bin/mapserv displays correctly: "No query information to decode. QUERY_STRING is set, but empty." mapserv configuration: MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Any hint appreciated. Thanks Andreas From dmcilhagga at DMSOLUTIONS.CA Tue May 24 18:51:58 2005 From: dmcilhagga at DMSOLUTIONS.CA (Dave McIlhagga) Date: Tue, 24 May 2005 21:51:58 -0400 Subject: Open Source GIS / Mapserver Users Groups In-Reply-To: <71c3c6c505052407247281693f@mail.gmail.com> Message-ID: Hi David, The Ottawa MapServer User Group website is at: http://www.omsug.ca Jeff McKenna at DM Solutions is point of contact, jmckenna at dmsolutions.ca Dave -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.ca EMail : dmcilhagga at dmsolutions.ca Phone : 613-565-5056 x15 Fax : 613-565-0925 David Bitner wrote: > I am trying to compile a list of regional/local open source GIS users > groups to present at the OSGIS/MUM3 in June. If you know of any > groups that are either dedicated to open source GIS software or that > often include discussion of open source GIS software, please send me > location and contact information for the group. > > > Thanks for your help, > David > > From dejan.gambin at PULA.HR Tue May 24 20:59:32 2005 From: dejan.gambin at PULA.HR (Dejan Gambin) Date: Wed, 25 May 2005 05:59:32 +0200 Subject: Display progress bar while waiting for data In-Reply-To: <4BF377919225F449BB097CB76FFE9BC818858B@ptolemy.topozone.com> Message-ID: Thanks Ed. I am just curious to learn where can I find some elementary informations about overviews and levels, for example to know the file size stuff you mentioned? And how exactly MapServer uses overviews automatically without doing anything in map file? If the storage space is not the problem, how can I know how much levels do I need to create to get the best performance? What is the upper limit? 16? 32? 64? Can you give me some usefull links where I can learn all that? Thanks very much Dejan Gambin -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 24, 2005 4:28 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - You should be willing to apply overviews quite generously. If you have a single 80 MB image, a 2X overview (half the resolution) will require 20 MB more space, and a 4X overview will require 5 MB on top of that, so you will increase your storage from 80 MB to 105 MB. Adding 8x, 16x, 32x, 64x, AND 128x overviews (probably more than you need) will, in total, only add 2 MB more space and will provide fast display for those very "zoomed out" views. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Gambin Dejan [mailto:Dejan.Gambin at pula.hr] Sent: Tuesday, May 24, 2005 9:25 AM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks to all specially to Ed. I have created overviews of my GeoTIFF files with gdaladdo. Now I am using combination of tileindex and overviews and the layer is displayed at the full view much faster. I think that is it and I can't do anything more than this except increasing the bandwidth of my server and my users of course... Thanks very much Dejan Gambin -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 24, 2005 2:22 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - Have you created "overviews" with GDAL, or created other resampled, lower-resolution copies of your images to be used when the view is zoomed out? That's the first thing you should do, in order to fix the performance problem rather than try to display an animated advertisement for it! Look at the gdaladdo documentation to start. It will let you resample the images to lower resolution versions ONCE rather than doing it on the fly for every map request. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gambin Dejan Sent: Tuesday, May 24, 2005 6:08 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks everybody participating in the discussion of displaying progress bar. I am aware of the problem but just want to describe something that is happening on my site. I have a set of 18 GeoTIFF ortophoto color images, each one has a size of 80MB. I have created tileindex shapefile to increase performance in reading the data and I have informed the users they should first have to zoom onto desired extent on the map and activate the ortophoto layer after that to speed up the loading. But users are just users and many of them are trying to activate the ortophoto layer before that (while the map is in full view) so the loading is slow. I have put a "Loading" message but the point is the following: when I load the image on the local network, I get the "Loading" message and I have to wait about 30 seconds, then the image is displayed at once. On the slow connection I also get "loading" message displayed about 30 seconds and then the map is displayed incrementally (that is ok). So my problem is those 30 seconds (that can arise to several minutes regarding the number of simultaneous users of course). Can I do something? Thanks, Dejan -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 17, 2005 6:35 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - I'll second Frank's scepticism here. Most of the "Image Loading" animations you see on mapping sites are just that - animations. They're standalone animated GIFs and the like which cause pixels to twinkle on the user's screen but which have no relationship to the actual progress of the application. The server could burst into flames and the "Image Loading" graphic would keep dancing. The site Regina mentions falls into this category. IMHO, these kinds of graphics are primarily used to try to cover up slow map servers, and not to give users meaningful progress feedback. I think by far the best feedback mechanism for image load time is the map image itself. If you simply display the image in a format that browsers can easily render incrementally, then the user can see the image begin to appear and will get a good feel for how long it will take just by watching it. JPEG is NOT a good choice for this, but GIF and PNG images should render properly on most browsers. For example, look at this image: http://www.topozone.com/images/MtMonadnockTopo.gif Over a slow connection. You should see the large map image load incrementally, so you know things are working. If the image were smaller and in a frame (to define the final output size) it would be relatively easy to assess how much progress is being made. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dejan Gambin Sent: Monday, May 16, 2005 5:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Hi, Is it possible to create some kind of progress bar while waiting for raster data to be displayed. I have some raster data in GeoTIFF format that some users with a slow connection must wait for. I am wondering if I can show them a progress bar indicating "estimated" time they have to wait so they know and they can wait or cancel the process. Does anyone have a suggestion on what is the best way to inform users? thanks very much dejan From lluisgm at GMAIL.COM Wed May 25 00:12:47 2005 From: lluisgm at GMAIL.COM (=?ISO-8859-1?Q?Llu=EDs_Garcia_i_Mestres?=) Date: Wed, 25 May 2005 09:12:47 +0200 Subject: mapserv.exe Message-ID: Hi list, I'm working with mapserver 4.4.1 in mandrake 10.1 and it works fine. Now I'm triing to run it under windows. In my localhost the map is displayed, but if I try to display from another computer the template appears but the there are no map, legend, scaler and reference. It looks like the mapserver.exe doesn't work. My mapserv.exe is in the cgi-bin directory of apache and if it's ok for my localhost it should work also from others computers. Any suggestion? thanks -- Llu?s Garcia i Mestres, lluisgm at gmail.com lluisgm at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From BEN at SYNCERA-ITSOLUTIONS.NL Wed May 25 00:16:06 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 25 May 2005 09:16:06 +0200 Subject: mapserv.exe Message-ID: What value do you have for IMAGEURL in your WEB object? Does it reference localhost? Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Llu?s Garcia i Mestres 05/25/05 09:12am >>> Hi list, I'm working with mapserver 4.4.1 in mandrake 10.1 and it works fine. Now I'm triing to run it under windows. In my localhost the map is displayed, but if I try to display from another computer the template appears but the there are no map, legend, scaler and reference. It looks like the mapserver.exe doesn't work. My mapserv.exe is in the cgi-bin directory of apache and if it's ok for my localhost it should work also from others computers. Any suggestion? thanks -- Llu?s Garcia i Mestres, lluisgm at gmail.com lluisgm at hotmail.com From lluisgm at GMAIL.COM Wed May 25 00:31:34 2005 From: lluisgm at GMAIL.COM (=?ISO-8859-1?Q?Llu=EDs_Garcia_i_Mestres?=) Date: Wed, 25 May 2005 09:31:34 +0200 Subject: mapserv.exe In-Reply-To: Message-ID: Hi, I have this in my web object. IMAGEPATH "c:\archivos de programa\apache group\apache2\htdocs\mapserver\tmp\" IMAGEURL "http://[localhost]\mapserver\tmp\" And in the template there are something suspicious: Just the sclae function works Escala 1: and the others not...    Scale bar    Scale bar
2005/5/25, Bart van den Eijnden : > > What value do you have for IMAGEURL in your WEB object? > > Does it reference localhost? > > Best regards, > Bart > > Bart van den Eijnden > Syncera-ITSolutions > Postbus 270 > 2600 AG DELFT > > tel.nr .: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> Llu?s Garcia i Mestres 05/25/05 09:12am >>> > Hi list, > I'm working with mapserver 4.4.1 in mandrake 10.1 and it works fine. Now > I'm triing to run it under windows. In my localhost the map is displayed, > but if I try to display from another computer the template appears but the > there are no map, legend, scaler and reference. It looks like the > mapserver.exe doesn't work. My mapserv.exe is in the cgi-bin directory of > apache and if it's ok for my localhost it should work also from others > computers. Any suggestion? > thanks > > -- > Llu?s Garcia i Mestres, > > lluisgm at gmail.com > lluisgm at hotmail.com > -- Llu?s Garcia i Mestres, lluisgm at gmail.com lluisgm at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From BEN at SYNCERA-ITSOLUTIONS.NL Wed May 25 00:34:19 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 25 May 2005 09:34:19 +0200 Subject: mapserv.exe Message-ID: Try putting your IP address into the IMAGEURL. eg if your IP address is 192.168.3.27: IMAGEURL "http://192.168.3.27/mapserver/tmp/" Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Llu?s Garcia i Mestres 05/25/05 09:31am >>> Hi, I have this in my web object. IMAGEPATH "c:\archivos de programa\apache group\apache2\htdocs\mapserver\tmp\" IMAGEURL "http://[localhost]\mapserver\tmp\" And in the template there are something suspicious: Just the sclae function works Escala 1: and the others not...    Scale bar    Scale bar
2005/5/25, Bart van den Eijnden : > > What value do you have for IMAGEURL in your WEB object? > > Does it reference localhost? > > Best regards, > Bart > > Bart van den Eijnden > Syncera-ITSolutions > Postbus 270 > 2600 AG DELFT > > tel.nr .: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> Llu?s Garcia i Mestres 05/25/05 09:12am >>> > Hi list, > I'm working with mapserver 4.4.1 in mandrake 10.1 and it works fine. Now > I'm triing to run it under windows. In my localhost the map is displayed, > but if I try to display from another computer the template appears but the > there are no map, legend, scaler and reference. It looks like the > mapserver.exe doesn't work. My mapserv.exe is in the cgi-bin directory of > apache and if it's ok for my localhost it should work also from others > computers. Any suggestion? > thanks > > -- > Llu?s Garcia i Mestres, > > lluisgm at gmail.com > lluisgm at hotmail.com > -- Llu?s Garcia i Mestres, lluisgm at gmail.com lluisgm at hotmail.com From lluisgm at GMAIL.COM Wed May 25 00:49:07 2005 From: lluisgm at GMAIL.COM (=?ISO-8859-1?Q?Llu=EDs_Garcia_i_Mestres?=) Date: Wed, 25 May 2005 09:49:07 +0200 Subject: mapserv.exe In-Reply-To: Message-ID: Thanks, it works now 2005/5/25, Bart van den Eijnden : > > Try putting your IP address into the IMAGEURL. > > eg if your IP address is 192.168.3.27 : > > IMAGEURL "http://192.168.3.27/mapserver/tmp/" > > Best regards, > Bart > > Bart van den Eijnden > Syncera-ITSolutions > Postbus 270 > 2600 AG DELFT > > tel.nr .: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> Llu?s Garcia i Mestres 05/25/05 09:31am >>> > Hi, > I have this in my web object. > IMAGEPATH "c:\archivos de programa\apache > group\apache2\htdocs\mapserver\tmp\" > IMAGEURL "http://[localhost]\mapserver\tmp\" > And in the template there are something suspicious: > Just the sclae function works > > Escala 1: > > and the others not... > > > >    Scale bar > >    Scale bar
> > 2005/5/25, Bart van den Eijnden : > > > > What value do you have for IMAGEURL in your WEB object? > > > > Does it reference localhost? > > > > Best regards, > > Bart > > > > Bart van den Eijnden > > Syncera-ITSolutions > > Postbus 270 > > 2600 AG DELFT > > > > tel.nr .: 015-7512436 > > email: BEN at Syncera-ITSolutions.nl > > > > >>> Llu?s Garcia i Mestres 05/25/05 09:12am >>> > > Hi list, > > I'm working with mapserver 4.4.1 in mandrake 10.1 and it works fine. Now > > I'm triing to run it under windows. In my localhost the map is > displayed, > > but if I try to display from another computer the template appears but > the > > there are no map, legend, scaler and reference. It looks like the > > mapserver.exe doesn't work. My mapserv.exe is in the cgi-bin directory > of > > apache and if it's ok for my localhost it should work also from others > > computers. Any suggestion? > > thanks > > > > -- > > Llu?s Garcia i Mestres, > > > > lluisgm at gmail.com > > lluisgm at hotmail.com > > > > -- > Llu?s Garcia i Mestres, > > lluisgm at gmail.com > lluisgm at hotmail.com > > -- Llu?s Garcia i Mestres, lluisgm at gmail.com lluisgm at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From calde at GMX.NET Wed May 25 01:10:15 2005 From: calde at GMX.NET (Daniel Caldeweyher) Date: Wed, 25 May 2005 03:10:15 -0500 Subject: Cleaning the /tmp directory Message-ID: On Mon, 23 May 2005 09:29:59 -0700, John Kim wrote: >> from : http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH72 >> there is : >> Setup MapServer IMAGEDIR and cleanup script >> ... > >Any tips on how you'd do this in Windows? > >Thanks, > >John > I am using JavaMapscript with Tomcat and developed the following class to do the automated cleaning for me: to execute you simple write: new Thread(new Cleaner()).start() The temp file path and clean interval (in milliseconds; every 12 hours) is loaded from my configuration file. Modifying the code to not delete files that have been created in the last couple or minutes or so, should be fairly easy to implement: package au.edu.qpsf.ocis; import java.io.*; /** * * @author Daniel Caldeweyher */ public class Cleaner implements Runnable { private String tempPath; private volatile boolean active; public void run() { this.active = true; while(active) { OpenCIS ocis = OpenCIS.getInstance(); tempPath = ocis.getConfigParameter("imagepath"); long waitInterval = Long.parseLong(ocis.getConfigParameter ("cleanup-interval")); File tempDir = new File(tempPath); if(tempDir.exists() && tempDir.isDirectory() && tempDir.canWrite ()) { System.out.println("Start cleanup: " + tempDir.getAbsolutePath()); File[] files = tempDir.listFiles(); int numFilesDeleted = 0; for(File f : files) { if(f.canWrite()) { f.delete(); numFilesDeleted++; } } System.out.println("Deleted " + numFilesDeleted + " temp files, could not delete " + (files.length - numFilesDeleted) + " files."); } try { Thread.sleep(waitInterval); } catch (InterruptedException ie) { active = false; } } } public void stopCleaner() { active = false; } public String getTempPath() { return tempPath; } public void setTempPath(String tempPath) { this.tempPath = tempPath; } } This solution will work on any operating system, including windows which is missing cron jobs. Daniel From p.weber at UCL.AC.UK Wed May 25 01:19:11 2005 From: p.weber at UCL.AC.UK (Patrick Weber) Date: Wed, 25 May 2005 09:19:11 +0100 Subject: Cleaning the /tmp directory In-Reply-To: Message-ID: Windows does have scheduled tasks which you can use to run any kind of program, including batch scripts and so on. Daniel Caldeweyher wrote: > On Mon, 23 May 2005 09:29:59 -0700, John Kim wrote: > > >>>from : http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptRH72 >>>there is : >>>Setup MapServer IMAGEDIR and cleanup script >>>... >> >>Any tips on how you'd do this in Windows? >> >>Thanks, >> >>John >> > > > I am using JavaMapscript with Tomcat and developed the following class to > do the automated cleaning for me: > > to execute you simple write: > > new Thread(new Cleaner()).start() > > The temp file path and clean interval (in milliseconds; every 12 hours) is > loaded from my configuration file. Modifying the code to not delete files > that have been created in the last couple or minutes or so, should be > fairly easy to implement: > > package au.edu.qpsf.ocis; > > import java.io.*; > /** > * > * @author Daniel Caldeweyher > */ > public class Cleaner implements Runnable { > private String tempPath; > private volatile boolean active; > > public void run() { > this.active = true; > while(active) { > OpenCIS ocis = OpenCIS.getInstance(); > tempPath = ocis.getConfigParameter("imagepath"); > long waitInterval = Long.parseLong(ocis.getConfigParameter > ("cleanup-interval")); > > File tempDir = new File(tempPath); > if(tempDir.exists() && tempDir.isDirectory() && tempDir.canWrite > ()) { > System.out.println("Start cleanup: " + > tempDir.getAbsolutePath()); > File[] files = tempDir.listFiles(); > int numFilesDeleted = 0; > for(File f : files) { > if(f.canWrite()) { > f.delete(); > numFilesDeleted++; > } > } > System.out.println("Deleted " + numFilesDeleted + " temp > files, could not delete " + (files.length - numFilesDeleted) + " files."); > } > > try { Thread.sleep(waitInterval); > } catch (InterruptedException ie) { active = false; } > } > > } > > public void stopCleaner() { > active = false; > } > > public String getTempPath() { > return tempPath; > } > > public void setTempPath(String tempPath) { > this.tempPath = tempPath; > } > } > > This solution will work on any operating system, including windows which is > missing cron jobs. > > Daniel -- ________________________________________ Patrick Weber | p.weber at ucl.ac.uk Research Associate Centre for Advanced Spatial Analysis http://www.casa.ucl.ac.uk/ University College London ________________________________________ From vincent.dacol at LAPOSTE.NET Wed May 25 02:40:03 2005 From: vincent.dacol at LAPOSTE.NET (vincent.dacol) Date: Wed, 25 May 2005 11:40:03 +0200 Subject: WMS and reprojection Message-ID: Hi everybody, I'm a student and I'm disovering the world of Mapserver and interoperabillity. I'm trying to use 2 WMS services in different projections, and one client to display two layer from that server. But the reprojection didn't work in the client. The 2 layer obtain with the 2 WMS server aren't display in the same projection. The projection of my WMS server 1 is "init=epsg:27571" The projection of my WMS server 2 is "init=epsg:27582" This two server can serv : "wms_srs" "EPSG:27582 EPSG:27571" The projection I want to display with the client is "init=epsg:27582" When I use the 2 layers in local, there is no supperposition problem, the picture obtain was fine, the reprojection work. But with the WMS client, the first layer is in it's own projection, and the second too. So the 2 layer arn't supperposed, it seem there is no reprojection. Is-it a reprojection probleme? My opignon is that a single mapfile with multiple connections to different WMS server must only connect to server who are in the same projection. Maybe I'm wrong, I really new to Mapserver, but I have spend a lot of time one this probleme, and the only solution I have find the solve it is to use the same output projection in the client and in the WMS server. But this solution isn't very logical for me. I want to connect to a server who use is own projection, and can serve data in other predefined EPSG projection. So a WMS client use a WMS layer has a local layer, with is own projection output, and is abble to reproject the data obtain in the WMS layer. Thanks for the help (I really need it). Vincent Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From Wolfgang.Qual at MUENCHEN.DE Wed May 25 05:29:02 2005 From: Wolfgang.Qual at MUENCHEN.DE (Wolfgang Qual) Date: Wed, 25 May 2005 14:29:02 +0200 Subject: Display Arc/INFO Binary Grid does not work correctly? In-Reply-To: <1b0bee21b0ddfb.1b0ddfb1b0bee2@shaw.ca> Message-ID: Hello Tyler, I was able to assign color definitions to the mapfile by adding this to the mapfile "CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel]< 1700) COLOR 215 15 215 END" However, I wonder, if this is the best way to do it. My problem is that I do have color definitions in ArcView (avl-legend), but I do not know how to put this information into the mapfile - is there a way to do it (something like a color lookup table)? Thanks again. Wolfgang -- Tyler Mitchell schrieb: > Hi Wolfgang, > Do you need to keep the data in GRID format? > I have had coloured tiff images that 'lost' the colours. Someone introduced me to the pct2rgb.py Python script (part of FWTools) that solved the problem, but I was converting TIFF->TIFF and don't know how (or if) this could work with GRIDs. It looks to me like the colour info. may be lost already though, since no colours are listed from gdalinfo. Hmm...I'm beyond my expertise here. > > Hope that might help. > Tyler > > ----- Original Message ----- > From: Wolfgang Qual > Date: Tuesday, May 24, 2005 8:54 am > Subject: [UMN_MAPSERVER-USERS] Display Arc/INFO Binary Grid does not work correctly? > > >>Hello again, list. >>I just created another map, just to test whether I am able to put >>Arc/INFO GRIDs on the mapserver. However, all I get is a black picture >>(colour information seems to be lost) >>--> >>http://dream.lrrl.arch.tu-muenchen.de/cgi- >>bin/M3.cgi?&map=rastertest.dfo.map >>The mapserver is compiled with gdal-support, gdalinfo on the >>rasterfileproduces this information: >> >>wqual at dream:/data/fis/klima/therm_98/grid> gdalinfo ab82s_grd/ >>Driver: AIG/Arc/Info Binary Grid >>Size is 6080, 5520 >>Coordinate System is `' >>Origin = (4449996.875000,5352003.125000) >>Pixel Size = (6.25000000,-6.25000000) >>Corner Coordinates: >>Upper Left ( 4449996.875, 5352003.125) >>Lower Left ( 4449996.875, 5317503.125) >>Upper Right ( 4487996.875, 5352003.125) >>Lower Right ( 4487996.875, 5317503.125) >>Center ( 4468996.875, 5334753.125) >>Band 1 Block=256x4 Type=Byte, ColorInterp=Undefined >> Min=1.000 Max=30.000 >> NoData Value=255 >> >>Is there a way to get the colour-table information into the mapfile? >>What is the best way to integrate GRID-files into mapserver-maps? >>Do I >>need the "info" folder (created by ArcView) on the webserver for >>displaying the rasterfile correctly? >> >>Thanks again. >> >>Wolfgang >> >>-- >>Wolfgang Qual >>Landeshauptstadt M??nchen >>Referat f??r Gesundheit und Umwelt >>RGU-UW 11 >>Sg. 1 Gesundheits- und Umweltberichterstattung, >>Energie und Klimaschutz >>Bayerstr. 28a, 80335 M??nchen >>Tel.: +49 (0)89 233-477 17 >>Fax.: +49 (0)89 233-477 05 >>E-Mail: wolfgang.qual at muenchen.de >> > > -- Wolfgang Qual Landeshauptstadt M?nchen Referat f?r Gesundheit und Umwelt RGU-UW 11 Sg. 1 Gesundheits- und Umweltberichterstattung, Energie und Klimaschutz Bayerstr. 28a, 80335 M?nchen Tel.: +49 (0)89 233-477 17 Fax.: +49 (0)89 233-477 05 E-Mail: wolfgang.qual at muenchen.de From Wolfgang.Qual at MUENCHEN.DE Wed May 25 05:32:13 2005 From: Wolfgang.Qual at MUENCHEN.DE (Wolfgang Qual) Date: Wed, 25 May 2005 14:32:13 +0200 Subject: Assign color definition to ESRI Binary GRID files Message-ID: Hello List, I was trying to get my ESRI Binary GRID files on the mapserver. It worked fine somehow, as I was able to assign color definitions to the mapfile by adding this to the mapfile "CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel]< 10) COLOR 200 0 220 END" However, I wonder, if this is the best way to do it. My problem is that I do have color definitions in ArcView (avl-legend), but I do not know how to put this information directly into the mapfile - is there a way to do it (something like a color lookup table)? Thanks again. Wolfgang -- Wolfgang Qual Landeshauptstadt M?nchen Referat f?r Gesundheit und Umwelt RGU-UW 11 Sg. 1 Gesundheits- und Umweltberichterstattung, Energie und Klimaschutz Bayerstr. 28a, 80335 M?nchen Tel.: +49 (0)89 233-477 17 Fax.: +49 (0)89 233-477 05 E-Mail: wolfgang.qual at muenchen.de From Tom.Kralidis at EC.GC.CA Wed May 25 05:36:15 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 25 May 2005 08:36:15 -0400 Subject: CGI mode and Web Map Context Message-ID: Hi, Any comments on this one? ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Kralidis,Tom [Burlington] > Sent: Wednesday, 27 April, 2005 08:40 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] CGI mode and Web Map Context > > > Hi, > > A couple of questions when using CGI mode MapServer and WMC. > > Here is an example URL: > > http://devgeo.cciw.ca/cgi-bin/mapserv/mapserv?map=/usr/local/w wwsites/ap ache/devgeo.cciw.ca/apps/mapserv/apps/basicviewer/config.map&context=htt p://devgeo.cciw.ca/ms_tmp/wqm_loc.cml 1./ If you check out the WMC doc (http://devgeo.cciw.ca/) you'll see that all layers have a Layer/@hidden value of 0, which means they should be visible. However it appears that one must explicitly call these layers via LAYERS in the CGI URL, i.e.: http://devgeo.cciw.ca/cgi-bin/mapserv/mapserv?map=/usr/local/wwwsites/ap ache/devgeo.cciw.ca/apps/mapserv/apps/basicviewer/config.map&context=htt p://devgeo.cciw.ca/ms_tmp/wqm_loc.cml&layers=wa_7.5m& I can see why this is the case, however I would imagine it would be more intuitive if, when no LAYERS parameters are set, to return the WMC as it was intended to be viewed? 2./ How does the WMC get marshalled in CGI mode? i.e. I'm trying to use the HTML legend approach to build a legend. I'd like to pick up the LegendURL, MetadataURL and Title from the Layer element to populate the legend. At any rate, kudos to the developers for adding this functionality, which allows for a *very* light standards-based client. Cheers ..Tom From BEN at SYNCERA-ITSOLUTIONS.NL Wed May 25 05:43:22 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 25 May 2005 14:43:22 +0200 Subject: Assign color definition to ESRI Binary GRID files Message-ID: Hi Wolfgang, there is no such thing as a colour table in Mapserver or GDAL AFAIK. You can however try to automatically generate your CLASS definitions from Arcview (I am assuming you are using Arcview 3.x) for instance with Gix. http://gix.sourceforge.net If your data and its classification is very stable you could consider using OpenEV to print a new Geotiff which has the classification already in the image. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Wolfgang Qual 05/25/05 02:32pm >>> Hello List, I was trying to get my ESRI Binary GRID files on the mapserver. It worked fine somehow, as I was able to assign color definitions to the mapfile by adding this to the mapfile "CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel]< 10) COLOR 200 0 220 END" However, I wonder, if this is the best way to do it. My problem is that I do have color definitions in ArcView (avl-legend), but I do not know how to put this information directly into the mapfile - is there a way to do it (something like a color lookup table)? Thanks again. Wolfgang -- Wolfgang Qual Landeshauptstadt M?nchen Referat f?r Gesundheit und Umwelt RGU-UW 11 Sg. 1 Gesundheits- und Umweltberichterstattung, Energie und Klimaschutz Bayerstr. 28a, 80335 M?nchen Tel.: +49 (0)89 233-477 17 Fax.: +49 (0)89 233-477 05 E-Mail: wolfgang.qual at muenchen.de From nbarker at RSINC.COM Wed May 25 06:05:07 2005 From: nbarker at RSINC.COM (Norman Barker) Date: Wed, 25 May 2005 14:05:07 +0100 Subject: WCS survey and problems Message-ID: Hi, having now been using the MapServer WCS for quite a while now, I would like to list a few problems I have had (which I am happy to help fix if given some pointers), and also to ask who else is using the WCS and for what, and where! The main problems we have had are; 1) When ResX and ResY are not equal the getCoverage returns the first band and the other bands are blank 2) Anything involving reprojection of data fails, I have initialised the projection object in the layer, and set the output map projection but still failure. The reason for me asking is that we find the WCS to be very useful (more so than the WMS) if you have a thick client doing analysis on the retrieved data, and we would like to assess the risks of using MapServer,and to find a way to minimise these (as in committing our time to a WCS project to reduce this). Many thanks, Norman Barker -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Wed May 25 06:07:43 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 25 May 2005 09:07:43 -0400 Subject: WMS and reprojection Message-ID: Vincent - You need to be sure you are accurately describing each service; can you post the MAP file you are using for the 2 WMS servers? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of vincent.dacol Sent: Wednesday, May 25, 2005 5:40 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WMS and reprojection Hi everybody, I'm a student and I'm disovering the world of Mapserver and interoperabillity. I'm trying to use 2 WMS services in different projections, and one client to display two layer from that server. But the reprojection didn't work in the client. The 2 layer obtain with the 2 WMS server aren't display in the same projection. The projection of my WMS server 1 is "init=epsg:27571" The projection of my WMS server 2 is "init=epsg:27582" This two server can serv : "wms_srs" "EPSG:27582 EPSG:27571" The projection I want to display with the client is "init=epsg:27582" When I use the 2 layers in local, there is no supperposition problem, the picture obtain was fine, the reprojection work. But with the WMS client, the first layer is in it's own projection, and the second too. So the 2 layer arn't supperposed, it seem there is no reprojection. Is-it a reprojection probleme? My opignon is that a single mapfile with multiple connections to different WMS server must only connect to server who are in the same projection. Maybe I'm wrong, I really new to Mapserver, but I have spend a lot of time one this probleme, and the only solution I have find the solve it is to use the same output projection in the client and in the WMS server. But this solution isn't very logical for me. I want to connect to a server who use is own projection, and can serve data in other predefined EPSG projection. So a WMS client use a WMS layer has a local layer, with is own projection output, and is abble to reproject the data obtain in the WMS layer. Thanks for the help (I really need it). Vincent Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From ed at TOPOZONE.COM Wed May 25 06:13:07 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 25 May 2005 09:13:07 -0400 Subject: Display progress bar while waiting for data Message-ID: Dejan - The first thing you need to do is understand your own application. Do you limit how far users can zoom out on the map? If so, there's no point in creating overviews beyond that point. If not, perhaps you should do so, or decide to ignore any performance problems when users zoom out too far (if it's not useful, they're not likely to do it very often, and it's probably not important). TIFF overviews are a GDAL construct, and it is GDAL that knows how to handle and use them. TIFF files can contain multiple "pages", a concept originally intended for multi-page documents like faxes. GDAL uses these pages to create multiple copies of the same image at different resolutions, all inside one file. So the MAP file or TILEINDEX just refers to the one file, and GDAL determines - based on the requested output image resolution - the overview that is closest to the requested resolution without being less than it. That is the image used for resampling. You can get the best possible peformance by constraining the map view scale to a list of specific values (with zoom scale radiobuttons or a menu) and then creating overviews to exactly match those output scales. Then you can be sure that no resampling will ever happen. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: Dejan Gambin [mailto:dejan.gambin at pula.hr] Sent: Wednesday, May 25, 2005 12:00 AM To: Ed McNierney Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks Ed. I am just curious to learn where can I find some elementary informations about overviews and levels, for example to know the file size stuff you mentioned? And how exactly MapServer uses overviews automatically without doing anything in map file? If the storage space is not the problem, how can I know how much levels do I need to create to get the best performance? What is the upper limit? 16? 32? 64? Can you give me some usefull links where I can learn all that? Thanks very much Dejan Gambin -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 24, 2005 4:28 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - You should be willing to apply overviews quite generously. If you have a single 80 MB image, a 2X overview (half the resolution) will require 20 MB more space, and a 4X overview will require 5 MB on top of that, so you will increase your storage from 80 MB to 105 MB. Adding 8x, 16x, 32x, 64x, AND 128x overviews (probably more than you need) will, in total, only add 2 MB more space and will provide fast display for those very "zoomed out" views. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Gambin Dejan [mailto:Dejan.Gambin at pula.hr] Sent: Tuesday, May 24, 2005 9:25 AM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks to all specially to Ed. I have created overviews of my GeoTIFF files with gdaladdo. Now I am using combination of tileindex and overviews and the layer is displayed at the full view much faster. I think that is it and I can't do anything more than this except increasing the bandwidth of my server and my users of course... Thanks very much Dejan Gambin -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 24, 2005 2:22 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - Have you created "overviews" with GDAL, or created other resampled, lower-resolution copies of your images to be used when the view is zoomed out? That's the first thing you should do, in order to fix the performance problem rather than try to display an animated advertisement for it! Look at the gdaladdo documentation to start. It will let you resample the images to lower resolution versions ONCE rather than doing it on the fly for every map request. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gambin Dejan Sent: Tuesday, May 24, 2005 6:08 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks everybody participating in the discussion of displaying progress bar. I am aware of the problem but just want to describe something that is happening on my site. I have a set of 18 GeoTIFF ortophoto color images, each one has a size of 80MB. I have created tileindex shapefile to increase performance in reading the data and I have informed the users they should first have to zoom onto desired extent on the map and activate the ortophoto layer after that to speed up the loading. But users are just users and many of them are trying to activate the ortophoto layer before that (while the map is in full view) so the loading is slow. I have put a "Loading" message but the point is the following: when I load the image on the local network, I get the "Loading" message and I have to wait about 30 seconds, then the image is displayed at once. On the slow connection I also get "loading" message displayed about 30 seconds and then the map is displayed incrementally (that is ok). So my problem is those 30 seconds (that can arise to several minutes regarding the number of simultaneous users of course). Can I do something? Thanks, Dejan -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 17, 2005 6:35 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - I'll second Frank's scepticism here. Most of the "Image Loading" animations you see on mapping sites are just that - animations. They're standalone animated GIFs and the like which cause pixels to twinkle on the user's screen but which have no relationship to the actual progress of the application. The server could burst into flames and the "Image Loading" graphic would keep dancing. The site Regina mentions falls into this category. IMHO, these kinds of graphics are primarily used to try to cover up slow map servers, and not to give users meaningful progress feedback. I think by far the best feedback mechanism for image load time is the map image itself. If you simply display the image in a format that browsers can easily render incrementally, then the user can see the image begin to appear and will get a good feel for how long it will take just by watching it. JPEG is NOT a good choice for this, but GIF and PNG images should render properly on most browsers. For example, look at this image: http://www.topozone.com/images/MtMonadnockTopo.gif Over a slow connection. You should see the large map image load incrementally, so you know things are working. If the image were smaller and in a frame (to define the final output size) it would be relatively easy to assess how much progress is being made. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dejan Gambin Sent: Monday, May 16, 2005 5:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Hi, Is it possible to create some kind of progress bar while waiting for raster data to be displayed. I have some raster data in GeoTIFF format that some users with a slow connection must wait for. I am wondering if I can show them a progress bar indicating "estimated" time they have to wait so they know and they can wait or cancel the process. Does anyone have a suggestion on what is the best way to inform users? thanks very much dejan From Dejan.Gambin at PULA.HR Wed May 25 06:20:11 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Wed, 25 May 2005 15:20:11 +0200 Subject: Display progress bar while waiting for data Message-ID: OK thanks, you helped me very much. The thing is that I could not find much informations about overviews untill I noticed it is called "pyramids". Can you just tell me where do I set the output image resolution? There is RESOLUTION mapo file parameter but it only affects scale computations (as documentation says)? Or it is just the matter of map size parameter? Thanks very much Dejan Gambin -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Wednesday, May 25, 2005 3:13 PM To: Gambin Dejan Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - The first thing you need to do is understand your own application. Do you limit how far users can zoom out on the map? If so, there's no point in creating overviews beyond that point. If not, perhaps you should do so, or decide to ignore any performance problems when users zoom out too far (if it's not useful, they're not likely to do it very often, and it's probably not important). TIFF overviews are a GDAL construct, and it is GDAL that knows how to handle and use them. TIFF files can contain multiple "pages", a concept originally intended for multi-page documents like faxes. GDAL uses these pages to create multiple copies of the same image at different resolutions, all inside one file. So the MAP file or TILEINDEX just refers to the one file, and GDAL determines - based on the requested output image resolution - the overview that is closest to the requested resolution without being less than it. That is the image used for resampling. You can get the best possible peformance by constraining the map view scale to a list of specific values (with zoom scale radiobuttons or a menu) and then creating overviews to exactly match those output scales. Then you can be sure that no resampling will ever happen. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: Dejan Gambin [mailto:dejan.gambin at pula.hr] Sent: Wednesday, May 25, 2005 12:00 AM To: Ed McNierney Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks Ed. I am just curious to learn where can I find some elementary informations about overviews and levels, for example to know the file size stuff you mentioned? And how exactly MapServer uses overviews automatically without doing anything in map file? If the storage space is not the problem, how can I know how much levels do I need to create to get the best performance? What is the upper limit? 16? 32? 64? Can you give me some usefull links where I can learn all that? Thanks very much Dejan Gambin -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 24, 2005 4:28 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - You should be willing to apply overviews quite generously. If you have a single 80 MB image, a 2X overview (half the resolution) will require 20 MB more space, and a 4X overview will require 5 MB on top of that, so you will increase your storage from 80 MB to 105 MB. Adding 8x, 16x, 32x, 64x, AND 128x overviews (probably more than you need) will, in total, only add 2 MB more space and will provide fast display for those very "zoomed out" views. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Gambin Dejan [mailto:Dejan.Gambin at pula.hr] Sent: Tuesday, May 24, 2005 9:25 AM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks to all specially to Ed. I have created overviews of my GeoTIFF files with gdaladdo. Now I am using combination of tileindex and overviews and the layer is displayed at the full view much faster. I think that is it and I can't do anything more than this except increasing the bandwidth of my server and my users of course... Thanks very much Dejan Gambin -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 24, 2005 2:22 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - Have you created "overviews" with GDAL, or created other resampled, lower-resolution copies of your images to be used when the view is zoomed out? That's the first thing you should do, in order to fix the performance problem rather than try to display an animated advertisement for it! Look at the gdaladdo documentation to start. It will let you resample the images to lower resolution versions ONCE rather than doing it on the fly for every map request. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gambin Dejan Sent: Tuesday, May 24, 2005 6:08 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks everybody participating in the discussion of displaying progress bar. I am aware of the problem but just want to describe something that is happening on my site. I have a set of 18 GeoTIFF ortophoto color images, each one has a size of 80MB. I have created tileindex shapefile to increase performance in reading the data and I have informed the users they should first have to zoom onto desired extent on the map and activate the ortophoto layer after that to speed up the loading. But users are just users and many of them are trying to activate the ortophoto layer before that (while the map is in full view) so the loading is slow. I have put a "Loading" message but the point is the following: when I load the image on the local network, I get the "Loading" message and I have to wait about 30 seconds, then the image is displayed at once. On the slow connection I also get "loading" message displayed about 30 seconds and then the map is displayed incrementally (that is ok). So my problem is those 30 seconds (that can arise to several minutes regarding the number of simultaneous users of course). Can I do something? Thanks, Dejan -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 17, 2005 6:35 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - I'll second Frank's scepticism here. Most of the "Image Loading" animations you see on mapping sites are just that - animations. They're standalone animated GIFs and the like which cause pixels to twinkle on the user's screen but which have no relationship to the actual progress of the application. The server could burst into flames and the "Image Loading" graphic would keep dancing. The site Regina mentions falls into this category. IMHO, these kinds of graphics are primarily used to try to cover up slow map servers, and not to give users meaningful progress feedback. I think by far the best feedback mechanism for image load time is the map image itself. If you simply display the image in a format that browsers can easily render incrementally, then the user can see the image begin to appear and will get a good feel for how long it will take just by watching it. JPEG is NOT a good choice for this, but GIF and PNG images should render properly on most browsers. For example, look at this image: http://www.topozone.com/images/MtMonadnockTopo.gif Over a slow connection. You should see the large map image load incrementally, so you know things are working. If the image were smaller and in a frame (to define the final output size) it would be relatively easy to assess how much progress is being made. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dejan Gambin Sent: Monday, May 16, 2005 5:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Hi, Is it possible to create some kind of progress bar while waiting for raster data to be displayed. I have some raster data in GeoTIFF format that some users with a slow connection must wait for. I am wondering if I can show them a progress bar indicating "estimated" time they have to wait so they know and they can wait or cancel the process. Does anyone have a suggestion on what is the best way to inform users? thanks very much dejan From warjac_warjac at HOTMAIL.COM Wed May 25 06:21:51 2005 From: warjac_warjac at HOTMAIL.COM (Floyd) Date: Wed, 25 May 2005 08:21:51 -0500 Subject: Feature info Message-ID: Hello List We have been using mapserver for a few months, our main purpose was to just display and render maps. Question: Can mapserver show feature(layer) information as compared too that of mapinfo. using Mapinfo 7.8 under the menu tools (I) the user is offered information pretaining too objects and, postions within the concern map by means of selection(mouse click). can the same task be accomplish using mapinfo an having a mapserver-WMS with native *.tab files(ogr)?. From BEN at SYNCERA-ITSOLUTIONS.NL Wed May 25 06:35:44 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Wed, 25 May 2005 15:35:44 +0200 Subject: Feature info Message-ID: Hi, Mapserver does support WMS GetFeatureInfo. AFAIK, MapInfo WMS client does *NOT* support GetFeatureInfo. So what you want would not be possible. But if you want to be sure, ask MapInfo if they support WMS GetFeatureInfo by now. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Floyd 05/25/05 03:21pm >>> Hello List We have been using mapserver for a few months, our main purpose was to just display and render maps. Question: Can mapserver show feature(layer) information as compared too that of mapinfo. using Mapinfo 7.8 under the menu tools (I) the user is offered information pretaining too objects and, postions within the concern map by means of selection(mouse click). can the same task be accomplish using mapinfo an having a mapserver-WMS with native *.tab files(ogr)?. From tylermitchell at SHAW.CA Wed May 25 06:41:13 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Wed, 25 May 2005 06:41:13 -0700 Subject: Display Arc/INFO Binary Grid does not work correctly? Message-ID: Hi, I think Bart's suggestion of using Gix exporter (on sourceforge.net) would be a great idea for this. I've used it myself for this purpose. Tyler ----- Original Message ----- From: Wolfgang Qual Date: Wednesday, May 25, 2005 5:29 am Subject: Re: [UMN_MAPSERVER-USERS] Display Arc/INFO Binary Grid does not work correctly? > Hello Tyler, > I was able to assign color definitions to the mapfile by adding > this to > the mapfile > "CLASSITEM "[pixel]" > CLASS > EXPRESSION ([pixel]< 1700) > COLOR 215 15 215 > END" > > However, I wonder, if this is the best way to do it. My problem is > that > I do have color definitions in ArcView (avl-legend), but I do not > know > how to put this information into the mapfile - is there a way to > do it > (something like a color lookup table)? > > Thanks again. > > Wolfgang > > -- > > Tyler Mitchell schrieb: > > > Hi Wolfgang, > > Do you need to keep the data in GRID format? > > I have had coloured tiff images that 'lost' the colours. > Someone introduced me to the pct2rgb.py Python script (part of > FWTools) that solved the problem, but I was converting TIFF->TIFF > and don't know how (or if) this could work with GRIDs. It looks > to me like the colour info. may be lost already though, since no > colours are listed from gdalinfo. Hmm...I'm beyond my expertise here. > > > > Hope that might help. > > Tyler > > > > ----- Original Message ----- > > From: Wolfgang Qual > > Date: Tuesday, May 24, 2005 8:54 am > > Subject: [UMN_MAPSERVER-USERS] Display Arc/INFO Binary Grid does > not work correctly? > > > > > >>Hello again, list. > >>I just created another map, just to test whether I am able to put > >>Arc/INFO GRIDs on the mapserver. However, all I get is a black > picture>>(colour information seems to be lost) > >>--> > >>http://dream.lrrl.arch.tu-muenchen.de/cgi- > >>bin/M3.cgi?&map=rastertest.dfo.map > >>The mapserver is compiled with gdal-support, gdalinfo on the > >>rasterfileproduces this information: > >> > >>wqual at dream:/data/fis/klima/therm_98/grid> gdalinfo ab82s_grd/ > >>Driver: AIG/Arc/Info Binary Grid > >>Size is 6080, 5520 > >>Coordinate System is `' > >>Origin = (4449996.875000,5352003.125000) > >>Pixel Size = (6.25000000,-6.25000000) > >>Corner Coordinates: > >>Upper Left ( 4449996.875, 5352003.125) > >>Lower Left ( 4449996.875, 5317503.125) > >>Upper Right ( 4487996.875, 5352003.125) > >>Lower Right ( 4487996.875, 5317503.125) > >>Center ( 4468996.875, 5334753.125) > >>Band 1 Block=256x4 Type=Byte, ColorInterp=Undefined > >> Min=1.000 Max=30.000 > >> NoData Value=255 > >> > >>Is there a way to get the colour-table information into the mapfile? > >>What is the best way to integrate GRID-files into mapserver- > maps? > >>Do I > >>need the "info" folder (created by ArcView) on the webserver for > >>displaying the rasterfile correctly? > >> > >>Thanks again. > >> > >>Wolfgang > >> > >>-- > >>Wolfgang Qual > >>Landeshauptstadt M????nchen > >>Referat f????r Gesundheit und Umwelt > >>RGU-UW 11 > >>Sg. 1 Gesundheits- und Umweltberichterstattung, > >>Energie und Klimaschutz > >>Bayerstr. 28a, 80335 M????nchen > >>Tel.: +49 (0)89 233-477 17 > >>Fax.: +49 (0)89 233-477 05 > >>E-Mail: wolfgang.qual at muenchen.de > >> > > > > > > -- > Wolfgang Qual > Landeshauptstadt M??nchen > Referat f??r Gesundheit und Umwelt > RGU-UW 11 > Sg. 1 Gesundheits- und Umweltberichterstattung, > Energie und Klimaschutz > Bayerstr. 28a, 80335 M??nchen > Tel.: +49 (0)89 233-477 17 > Fax.: +49 (0)89 233-477 05 > E-Mail: wolfgang.qual at muenchen.de > From susesuse at TOTALISE.CO.UK Wed May 25 08:21:25 2005 From: susesuse at TOTALISE.CO.UK (C J) Date: Wed, 25 May 2005 10:21:25 -0500 Subject: Security issues Message-ID: How can I ensure that I limit the security risks involved with running MapServer on my webserver? I am running Apache, MySQL, PHP, and Mapserver on a Windows server. Would I be more secure using a Linux server? From fx.prunayre at OIEAU.FR Wed May 25 08:35:38 2005 From: fx.prunayre at OIEAU.FR (=?iso-8859-1?Q?Fran=E7ois_Prunayre?=) Date: Wed, 25 May 2005 17:35:38 +0200 Subject: WMS and reprojection In-Reply-To: Message-ID: Hi (again) Vincent, If you have a look to epsg file contained in proj 4.4.9 package : # NTF (Paris) / Lambert zone II <27572> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=-2.33722917 +k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs <> # NTF (Paris) / France II <27582> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=-2.33722917 +k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs <> Looks the same ... If you look to Lambert II Etendu (ie. France II) parameters http://www.ign.fr/telechargement/education/fiches/geodesie/projections.pdf It seems that for Lambert II zone 27572, y_0 should be 200000 and lon_0, 0 ? And for France II lon_0 should be 0 ! Anyone using French coordinate systems having the same troubles ? I'm currently using these parameters for France II. <27582> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 +k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs <> Any ideas ? Francois > -----Message d'origine----- > De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > part de vincent.dacol > Envoy? : mercredi 25 mai 2005 11:40 > ? : MAPSERVER-USERS at LISTS.UMN.EDU > Objet : [UMN_MAPSERVER-USERS] WMS and reprojection > > Hi everybody, > > I'm a student and I'm disovering the world of Mapserver and > interoperabillity. > > I'm trying to use 2 WMS services in different projections, and one client to > display two layer from that server. > > But the reprojection didn't work in the client. The 2 layer obtain with the > 2 WMS server aren't display in the same projection. > > The projection of my WMS server 1 is "init=epsg:27571" > The projection of my WMS server 2 is "init=epsg:27582" > > This two server can serv : > "wms_srs" "EPSG:27582 EPSG:27571" > > The projection I want to display with the client is "init=epsg:27582" > > When I use the 2 layers in local, there is no supperposition problem, the > picture obtain was fine, the reprojection work. > > But with the WMS client, the first layer is in it's own projection, and the > second too. So the 2 layer arn't supperposed, it seem there is no > reprojection. > > Is-it a reprojection probleme? > > My opignon is that a single mapfile with multiple connections to different > WMS server must only connect to server who are in the same projection. > > Maybe I'm wrong, I really new to Mapserver, but I have spend a lot of time > one this probleme, and the only solution I have find the solve it is to use > the same output projection in the client and in the WMS server. > > But this solution isn't very logical for me. I want to connect to a server > who use is own projection, and can serve data in other predefined EPSG > projection. So a WMS client use a WMS layer has a local layer, with is own > projection output, and is abble to reproject the data obtain in the WMS > layer. > > > Thanks for the help (I really need it). > > Vincent > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > -- > Ce message a ete verifie par MailScanner pour des virus ou des polluriels et > rien de suspect n'a ete trouve. > > Les donnees et renseignements contenus dans ce message sont personnels, > confidentiels et prives. Toute publication, utilisation ou diffusion, meme > partielle, doit etre autorisee. > > Any data and information contained in this electronic mail is personal, > confidential and secret. Any total or partial publication, use or > distribution must be authorized. > > -- > Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. > > Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. > > Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. From ed at TOPOZONE.COM Wed May 25 09:45:12 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 25 May 2005 12:45:12 -0400 Subject: Display progress bar while waiting for data Message-ID: Dejan - Look at the GDAL documentation for the gdaladdo utility to find out about building overviews. That is a feature that's entirely internal to GDAL, not MapServer. The MapServer map file MINSCALE and MAXSCALE settings are used to limit the minimum and maximum view scales permitted for that map file. Your own user interface can constrain the scale values to specific settings. For example, on TopoZone you can look at this map: http://www.topozone.com/map.asp?lat=44.9225&lon=-115.92167 And you can use the View Scale menu on the left to change the "zoom level" or scale at which the map is viewed. The menu interface limits the View Scale not only to a minimum and maximum value, but also constrains it to be one of the 11 choices displayed. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: Gambin Dejan [mailto:Dejan.Gambin at pula.hr] Sent: Wednesday, May 25, 2005 9:20 AM To: Ed McNierney Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data OK thanks, you helped me very much. The thing is that I could not find much informations about overviews untill I noticed it is called "pyramids". Can you just tell me where do I set the output image resolution? There is RESOLUTION mapo file parameter but it only affects scale computations (as documentation says)? Or it is just the matter of map size parameter? Thanks very much Dejan Gambin -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Wednesday, May 25, 2005 3:13 PM To: Gambin Dejan Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - The first thing you need to do is understand your own application. Do you limit how far users can zoom out on the map? If so, there's no point in creating overviews beyond that point. If not, perhaps you should do so, or decide to ignore any performance problems when users zoom out too far (if it's not useful, they're not likely to do it very often, and it's probably not important). TIFF overviews are a GDAL construct, and it is GDAL that knows how to handle and use them. TIFF files can contain multiple "pages", a concept originally intended for multi-page documents like faxes. GDAL uses these pages to create multiple copies of the same image at different resolutions, all inside one file. So the MAP file or TILEINDEX just refers to the one file, and GDAL determines - based on the requested output image resolution - the overview that is closest to the requested resolution without being less than it. That is the image used for resampling. You can get the best possible peformance by constraining the map view scale to a list of specific values (with zoom scale radiobuttons or a menu) and then creating overviews to exactly match those output scales. Then you can be sure that no resampling will ever happen. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: Dejan Gambin [mailto:dejan.gambin at pula.hr] Sent: Wednesday, May 25, 2005 12:00 AM To: Ed McNierney Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks Ed. I am just curious to learn where can I find some elementary informations about overviews and levels, for example to know the file size stuff you mentioned? And how exactly MapServer uses overviews automatically without doing anything in map file? If the storage space is not the problem, how can I know how much levels do I need to create to get the best performance? What is the upper limit? 16? 32? 64? Can you give me some usefull links where I can learn all that? Thanks very much Dejan Gambin -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 24, 2005 4:28 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - You should be willing to apply overviews quite generously. If you have a single 80 MB image, a 2X overview (half the resolution) will require 20 MB more space, and a 4X overview will require 5 MB on top of that, so you will increase your storage from 80 MB to 105 MB. Adding 8x, 16x, 32x, 64x, AND 128x overviews (probably more than you need) will, in total, only add 2 MB more space and will provide fast display for those very "zoomed out" views. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Gambin Dejan [mailto:Dejan.Gambin at pula.hr] Sent: Tuesday, May 24, 2005 9:25 AM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks to all specially to Ed. I have created overviews of my GeoTIFF files with gdaladdo. Now I am using combination of tileindex and overviews and the layer is displayed at the full view much faster. I think that is it and I can't do anything more than this except increasing the bandwidth of my server and my users of course... Thanks very much Dejan Gambin -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 24, 2005 2:22 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - Have you created "overviews" with GDAL, or created other resampled, lower-resolution copies of your images to be used when the view is zoomed out? That's the first thing you should do, in order to fix the performance problem rather than try to display an animated advertisement for it! Look at the gdaladdo documentation to start. It will let you resample the images to lower resolution versions ONCE rather than doing it on the fly for every map request. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gambin Dejan Sent: Tuesday, May 24, 2005 6:08 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks everybody participating in the discussion of displaying progress bar. I am aware of the problem but just want to describe something that is happening on my site. I have a set of 18 GeoTIFF ortophoto color images, each one has a size of 80MB. I have created tileindex shapefile to increase performance in reading the data and I have informed the users they should first have to zoom onto desired extent on the map and activate the ortophoto layer after that to speed up the loading. But users are just users and many of them are trying to activate the ortophoto layer before that (while the map is in full view) so the loading is slow. I have put a "Loading" message but the point is the following: when I load the image on the local network, I get the "Loading" message and I have to wait about 30 seconds, then the image is displayed at once. On the slow connection I also get "loading" message displayed about 30 seconds and then the map is displayed incrementally (that is ok). So my problem is those 30 seconds (that can arise to several minutes regarding the number of simultaneous users of course). Can I do something? Thanks, Dejan -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 17, 2005 6:35 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - I'll second Frank's scepticism here. Most of the "Image Loading" animations you see on mapping sites are just that - animations. They're standalone animated GIFs and the like which cause pixels to twinkle on the user's screen but which have no relationship to the actual progress of the application. The server could burst into flames and the "Image Loading" graphic would keep dancing. The site Regina mentions falls into this category. IMHO, these kinds of graphics are primarily used to try to cover up slow map servers, and not to give users meaningful progress feedback. I think by far the best feedback mechanism for image load time is the map image itself. If you simply display the image in a format that browsers can easily render incrementally, then the user can see the image begin to appear and will get a good feel for how long it will take just by watching it. JPEG is NOT a good choice for this, but GIF and PNG images should render properly on most browsers. For example, look at this image: http://www.topozone.com/images/MtMonadnockTopo.gif Over a slow connection. You should see the large map image load incrementally, so you know things are working. If the image were smaller and in a frame (to define the final output size) it would be relatively easy to assess how much progress is being made. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dejan Gambin Sent: Monday, May 16, 2005 5:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Hi, Is it possible to create some kind of progress bar while waiting for raster data to be displayed. I have some raster data in GeoTIFF format that some users with a slow connection must wait for. I am wondering if I can show them a progress bar indicating "estimated" time they have to wait so they know and they can wait or cancel the process. Does anyone have a suggestion on what is the best way to inform users? thanks very much dejan From manninside at YAHOO.COM Wed May 25 10:10:53 2005 From: manninside at YAHOO.COM (Mandar sarlashkar) Date: Wed, 25 May 2005 10:10:53 -0700 Subject: Need help regardding 'Proj Error' Message-ID: Hello Everybody ! I am getting following error when I initialize the application msProcessProjection(): Projection library error. no system list, errno: 2 I will be very thankful if anybody can help me solve this problem Reggards Mandar __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From bartvde at XS4ALL.NL Wed May 25 10:20:32 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 25 May 2005 19:20:32 +0200 Subject: Need help regardding 'Proj Error' In-Reply-To: <20050525171054.24175.qmail@web50809.mail.yahoo.com> Message-ID: This means you have to install the PROJ files and point Mapserver to it using the PROJ_LIB environment variable (or CONFIG in your MAP file if you are using one of the latest Mapserver versions). Download from: http://dl.maptools.org/dl/proj4-epsg-with-42xxx-and-esri.zip Best regards, Bart On Wed, 25 May 2005 19:10:53 +0200, Mandar sarlashkar wrote: > Hello Everybody ! > > I am getting following error when I initialize the > application > > msProcessProjection(): Projection library error. no > system list, errno: 2 > > I will be very thankful if anybody can help me solve > this problem > > Reggards > > Mandar > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From cdaily at GMAIL.COM Wed May 25 10:27:14 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Wed, 25 May 2005 12:27:14 -0500 Subject: Security issues In-Reply-To: Message-ID: I think as long as you're behind a hardware firewall that only allows port 80 to your webserver, you should be fine either way. While I think Apache is far more secure than IIS, I doubt there's too much difference between Apache on Windows vs Apache on Linux. If you're really concerned, I'm sure there are a number of sites on the web that can lead you to informationg about locking down Apache on Windows. -Camden Daily Prudential Preferred Properties http://www.prupref.com On 5/25/05, C J wrote: > How can I ensure that I limit the security risks involved with running > MapServer on my webserver? I am running Apache, MySQL, PHP, and Mapserver > on a Windows server. Would I be more secure using a Linux server? > From almudenarueda at INICIA.ES Wed May 25 11:27:03 2005 From: almudenarueda at INICIA.ES (Almudena Rueda) Date: Wed, 25 May 2005 13:27:03 -0500 Subject: Query template variables Message-ID: Hi to all I'm new on this stuff of Map server. I'm trying to make a template to take just some of the fields on a query as well as the fields on a join query but i can not understand the sintax to do that. I've try just putting the field name as it appears on the .dbf file but it doesn't work, the processquerytemplate() method doesn't 'translate' the var Does anyone know how can I do this? Thanks in advance From stigmata_blackangel at YAHOO.COM Wed May 25 11:51:46 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Wed, 25 May 2005 11:51:46 -0700 Subject: Security issues In-Reply-To: 6667 Message-ID: On 5/25/05, C J wrote: > How can I ensure that I limit the security risks > involved with running MapServer on my webserver? I agree with Camden about a hardware firewall. There are many exploits against Windows itself, and a hardware firewall really reduces those. Now that you're behind a firewall, you probably wanted to know about the security of Mapserver, Apache, PHP, and so on because those are what's listening on port 80. Sadly, it is true that these packages do have security issues - Apache has bugs, PHP has holes, etc. Fortunately, they fix them and release newer versions. So check the Apache and PHP websites often and see if there's a newer version, especially if it says "this release fixes a security issue..." The same goes for anything else you have that listens on the Net, e.g. database servers. If you're not using a firewall, or if your firewall does allow the DB to be accessed from the Net, then the same goes for those packages as well: check for updates, cuz bugs do get found. __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/ From richard.greenwood at GMAIL.COM Wed May 25 13:07:12 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 25 May 2005 14:07:12 -0600 Subject: Query template variables Message-ID: Almudena Rueda INICIA.ES> writes: > > Hi to all > > I'm new on this stuff of Map server. I'm trying to make a template to take > just some of the fields on a query as well as the fields on a join query > but i can not understand the sintax to do that. I've try just putting the > field name as it appears on the .dbf file but it doesn't work, the > processquerytemplate() method doesn't 'translate' the var Are you working in CGI or mapScript? Are you doing a one-to-one or a one-to-many join? For one-to-many in CGI you use the name of the join to retreive the fields. Following are some notes from a thread on one-to-many joins that might help: Paul: The JOIN template is just about like any other query tempate except that it can only contain replacement strings for the columns present in the joined table. So, if dres010.dbf contains the fields d_site_id, date and comments then the template:
  • Record [D_SITE_ID] ([DATE]): [COMMENTS]
    Will print a formatted line for each lab report for the well. The templates can also contain javascript that might be used to build a collection of js objects that could be used to do rudimentatry analysis, populate a graphing applet or whatever. Join header and footers can be used to add opening and closing tag sequences around a set of joined results. For example, to center the above example use a header containing "
    " and a footer containing "
    ". In general join templates are real small (couple of bytes) files. The main query template need to contain a substitution telling the server where to place the multiple join results. So if you have a join called "labjoin" then in results.html you'd need a line: [labjoin] in the place where the results are supposed to go. Note the reference to the join (i.e. [labjoin]) needs to sit by itself on a line due to the complexity of the replacement. Actually, any other code on the line will be lost so comments would be ok. Processing for an individual results QUERY goes like this. 1) QUERY template is processed 2) if [joinname] is found then the JOIN templates are processed: header, template (multiple times), and finally the footer 3) processing continues on QUERY template of course all of this can be sandwiched between LAYER header and footers, and WEB header and footers to create some very complex output. Steve <<< Paul Cedfeldt 1/27 3:21p >>> Hello, I've been trying, with only partial success, to get a shapefile connected to an external dbf with a one-to-many join. When clicking on a well on a map, I would like all lab records for that well (contained in dres010.dbf) to display. The join works, but when a well is clicked the template results.html only shows info for the last matching record from dres010 for that well. I imagine this has something to do with the join template otmjoin.html, which should be processed once for each record according to the docs, but otmjoin.html is currently empty since I'm not quite sure what should be in there. l -------h.map---------------- LAYER NAME well DESCRIPTION "Wells" TYPE point STATUS on DATA well TOLERANCE 5 QUERY TEMPLATE results.html JOIN NAME labs TABLE /free/haines/d_res010.dbf FROM holp TO d_site_id TYPE multiple TEMPLATE otmjoin.html END END END ------results.html--------- Result [rn]
    Sample Num: [K_SAMPLE]
    Site AP Number: [D_SITE_ID]
    Lab Sample #: [K_LABSAMPI]
    -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From hobu at IASTATE.EDU Wed May 25 17:34:44 2005 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 25 May 2005 19:34:44 -0500 Subject: New MapServer Website (beta) Message-ID: All, I am pleased to announce the beta release of the new MapServer website. The site is located at . I, Kari Guerts, the mapserver-docs team, and the developers have been working to develop a site that streamlines documentation development, allows through-the-web editing (but not a free-for-all like a wiki), provides searching capabilites, provides support for multi-lingual documents, and provides for structured content types. The new website was developed using Plone , with some additional libraries that add functionality and some minor coding to make things fit the project better. Some examples of documents on the site include the Mapfile reference , the howto list , and a "Getting started with MapServer" document (only exists on the new site thanks to David Fawcett) . As a user with this site, you can now participate in the documentation of MapServer. By "joining" the site, you can create content, submit howtos, faqs, and tutorials for inclusion in the site, add comments to existing documents, and help translate documents into your native language. I will be working on documents to describe how you can participate in the coming weeks. Once you join the site, make sure to go to your "Personal Preferences" page and update your email alert preference, your picture if you want, and your latitude/longitude (Sean posted some details of how this can be used here ). The website should be considered beta-level, much like the beta releases of the software. If you find an issue, please let me know and/or file a bug in bugzilla in the website category, and I'll try to get to it. The two sites will continue to run in parallel for a while, very likely until after the release of 4.6 and MUM3, to allow it to grow out of its initial bugs, to allow for ample time for people to get comfortable with it, and to not add another item to the conference crunch. Much of the existing documentation on the blue site has been migrated to the new site, although things might not be perfectly in sync yet. We're working to migrate things over as time permits. There are also a few other website bugs here and there, the logo is just a place holder, and I'm sure there are many other issues I don't even know about yet ;). The general structure is there, however, with much of the content filled out so you can get a feel for how things will look in the future. After the beta period, the site will probably be moved to (and continue to exist at its current address), and the stuff in the blue site will be preserved and made available on something like . I would like to thank Kari, Steve, Tom Burk and the UMN team, the mapserver-docs crew, and the developers for all of their help and input on this project. Howard PS. Remember that there is a server outage tonight, so it might not be available due to the outage. From ARyan at CO.LINN.OR.US Wed May 25 17:47:15 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 25 May 2005 17:47:15 -0700 Subject: New MapServer Website (beta) Message-ID: FANTASTIC! > -----Original Message----- > From: Howard Butler [mailto:hobu at IASTATE.EDU] > Sent: Wednesday, May 25, 2005 5:35 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] New MapServer Website (beta) > > > All, > > I am pleased to announce the beta release of the new > MapServer website. The site is located at . > > I, Kari Guerts, the mapserver-docs team, and the developers > have been working to develop a site that streamlines > documentation development, allows through-the-web editing > (but not a free-for-all like a wiki), provides searching > capabilites, provides support for multi-lingual documents, > and provides for structured content types. The new website > was developed using Plone , with some > additional libraries that add functionality and some minor > coding to make things fit the project better. > > Some examples of documents on the site include the Mapfile > reference , > the howto list , and a > "Getting started with MapServer" document (only exists on the new site thanks to David > Fawcett) . > > As a user with > this site, you can now participate in the documentation of > MapServer. By "joining" the site, you can create content, > submit howtos, faqs, and tutorials for inclusion in the site, > add comments to existing documents, and help translate > documents into your native language. I will be working on > documents to describe how you can participate in the coming > weeks. Once you join the site, make sure to go to your > "Personal Preferences" page and update your email alert > preference, your picture if you want, and your > latitude/longitude (Sean posted some details of how this can be used here > ). > > The website should be > considered beta-level, much like the beta releases of the > software. If you find an issue, please let me know and/or > file a bug in bugzilla in the website category, and I'll try > to get to it. The two sites will continue to run in parallel > for a while, very likely until after the release of 4.6 and > MUM3, to allow it to grow out of its initial bugs, to allow > for ample time for people to get comfortable with it, and to > not add another item to the conference crunch. > > Much of the existing documentation on the blue site has been > migrated to the new site, although things might not be > perfectly in sync yet. We're working to migrate things over > as time permits. There are also a few other website bugs > here and there, the logo is just a place holder, and I'm sure > there are many other issues I don't even know about yet ;). > The general structure is there, however, with much of the > content filled out so you can get a feel for how things will > look in the future. After the beta period, the site will probably be moved to > (and continue to > exist at its > current address), and the stuff in the blue > site will be preserved and made available on something like > . > > I would like to thank > Kari, Steve, Tom Burk and the UMN team, the mapserver-docs > crew, and the developers for all of their help and input on > this project. > > Howard > > PS. Remember that there is a server outage tonight, so it > might not be available due to the outage. > From ostrya.geo at YAHOO.COM Wed May 25 18:36:32 2005 From: ostrya.geo at YAHOO.COM (Brandon Ellis) Date: Wed, 25 May 2005 18:36:32 -0700 Subject: Choropleth Mapping Project Message-ID: I am currently working on an equal interval choropleth mapping project. I have tackled the problem of determineing map class sizes and colors but am having trouble making the Class Object of the layer object recognize the colors that I wish to assign to individual polygons. If anyone has gotten this to work please let me know. My goal is to dynamicly create and control classes in a layer to produce a chloropleth map. I already know which polygons should be which color, but I can't seem to get it to work out. Hardcoded in the map file it looks like this: CLASSITEM "STATE_NAME" CLASS EXPRESSION "Louisiana" COLOR 255 15 15 END I am using: $layerClassObj[$i+1]->label->color->setRGB($classColor[$i+1][0],$classColor[$i+1][1],$classColor[$i+1][2]); where: layerClassObj[] is the Class Object created as part of x layer in y map label->color are both Objects within the Class Object classColor[][] is a multi array with rgb values The above line of code APPEARS to be assigning the color values to the Map Object's Reffernce Object for some reason. Thanks in advance for any help! __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From agomez at CCCMM.CESGA.ES Thu May 26 00:00:49 2005 From: agomez at CCCMM.CESGA.ES (Alberto Gomez) Date: Thu, 26 May 2005 09:00:49 +0200 Subject: joining shp and dbase files Message-ID: Hello list, I'm using mapserver as cgi and I need to do a color classification by a field in the dbase table, so that I can see any modification in this table at real time in my map server. I've tried to do a join between my shapefile and dbase table but the layer disappeared. All that I've read is that Join function in mapfile is no longer available. Is there any other way to do this? Can you post an example? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From taatuut at PLANET.NL Thu May 26 00:12:53 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Thu, 26 May 2005 09:12:53 +0200 Subject: joining shp and dbase files In-Reply-To: <008901c561c0$a6989600$5f64640a@prog4> Message-ID: Hello Alberto, You cannot use the MapServer JOIN to classify and display attributes from the join table (see bug http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=674). So the JOIN function for a LAYER has not disappeared but is not suited for this purpose. You could try using OGR JOIN however. OGR SQL supports a limited form of one to one JOIN. Somehting like: CONNECTIONTYPE OGR CONNECTION "data/popplace_pt" DATA "SELECT columns FROM table LEFT JOIN some join statement" Take a look at the JOIN examples at http://www.remotesensing.org/gdal/ogr/ogr_sql.html Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Alberto Gomez Sent: donderdag 26 mei 2005 9:01 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] joining shp and dbase files Hello list, I'm using mapserver as cgi and I need to do a color classification by a field in the dbase table, so that I can see any modification in this table at real time in my map server. I've tried to do a join between my shapefile and dbase table but the layer disappeared. All that I've read is that Join function in mapfile is no longer available. Is there any other way to do this? Can you post an example? Thanks in advance. From vincent.dacol at LAPOSTE.NET Thu May 26 00:17:04 2005 From: vincent.dacol at LAPOSTE.NET (vincent.dacol) Date: Thu, 26 May 2005 09:17:04 +0200 Subject: WMS and reprojection Message-ID: Hi Francois, I have found what doesn't really work in my WMS server. The reprojection really work well now. But the probleme is the (x,y) position the differents layers who are in local French epsg projection system. All are not at the right place. I think it's a problem of PROJ4 epsg definition. But I don't realy know how solve it. Have you some tips or technique to resolve that sort of problem? Thank for your help. Vincent > Hi (again) Vincent, > > If you have a look to epsg file contained in proj 4.4.9 package : > # NTF (Paris) / Lambert zone II > <27572> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=-2.33722917 +k_0=0.99987742 > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 > +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs <> > # NTF (Paris) / France II > <27582> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=-2.33722917 +k_0=0.99987742 > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 > +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs <> > > Looks the same ... If you look to Lambert II Etendu (ie. France II) > parameters > http://www.ign.fr/telechargement/education/fiches/geodesie/projections.pdf > It seems that for Lambert II zone 27572, y_0 should be 200000 and lon_0, 0 ? > And for France II lon_0 should be 0 ! Anyone using French coordinate systems > having the same troubles ? > > I'm currently using these parameters for France II. > <27582> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 +k_0=0.99987742 > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 > +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs <> > > Any ideas ? > > Francois > > > -----Message d'origine----- > > De : UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > > part de vincent.dacol > > Envoy? : mercredi 25 mai 2005 11:40 > > ? : MAPSERVER-USERS at LISTS.UMN.EDU > > Objet : [UMN_MAPSERVER-USERS] WMS and reprojection > > > > Hi everybody, > > > > I'm a student and I'm disovering the world of Mapserver and > > interoperabillity. > > > > I'm trying to use 2 WMS services in different projections, > and one client to > > display two layer from that server. > > > > But the reprojection didn't work in the client. The 2 layer > obtain with the > > 2 WMS server aren't display in the same projection. > > > > The projection of my WMS server 1 is "init=epsg:27571" > > The projection of my WMS server 2 is "init=epsg:27582" > > > > This two server can serv : > > "wms_srs" "EPSG:27582 EPSG:27571" > > > > The projection I want to display with the client is > "init=epsg:27582" > > > > When I use the 2 layers in local, there is no supperposition > problem, the > > picture obtain was fine, the reprojection work. > > > > But with the WMS client, the first layer is in it's own > projection, and the > > second too. So the 2 layer arn't supperposed, it seem there > is no > > reprojection. > > > > Is-it a reprojection probleme? > > > > My opignon is that a single mapfile with multiple > connections to different > > WMS server must only connect to server who are in the same > projection. > > > > Maybe I'm wrong, I really new to Mapserver, but I have spend > a lot of time > > one this probleme, and the only solution I have find the > solve it is to use > > the same output projection in the client and in the WMS server. > > > > But this solution isn't very logical for me. I want to > connect to a server > > who use is own projection, and can serve data in other > predefined EPSG > > projection. So a WMS client use a WMS layer has a local > layer, with is own > > projection output, and is abble to reproject the data obtain > in the WMS > > layer. > > > > > > Thanks for the help (I really need it). > > > > Vincent > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > > > > -- > > Ce message a ete verifie par MailScanner pour des virus ou > des polluriels et > > rien de suspect n'a ete trouve. > > > > Les donnees et renseignements contenus dans ce message sont > personnels, > > confidentiels et prives. Toute publication, utilisation ou > diffusion, meme > > partielle, doit etre autorisee. > > > > Any data and information contained in this electronic mail > is personal, > > confidential and secret. Any total or partial publication, > use or > > distribution must be authorized. > > > > -- > > Ce message a ete verifie par MailScanner pour des virus ou > des polluriels et rien de suspect n'a ete trouve. > > > > Les donnees et renseignements contenus dans ce message sont > personnels, confidentiels et prives. Toute publication, utilisation ou > diffusion, meme partielle, doit etre autorisee. > > > > Any data and information contained in this electronic mail > is personal, confidential and secret. Any total or partial publication, use > or distribution must be authorized. > > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > -- > Ce message a ete verifie par MailScanner pour des virus ou des polluriels et > rien de suspect n'a ete trouve. > > Les donnees et renseignements contenus dans ce message sont personnels, > confidentiels et prives. Toute publication, utilisation ou diffusion, meme > partielle, doit etre autorisee. > > Any data and information contained in this electronic mail is personal, > confidential and secret. Any total or partial publication, use or > distribution must be authorized. > > > -- > Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. > > Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. > > Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From paul.hasenohr at JRC.IT Thu May 26 01:20:13 2005 From: paul.hasenohr at JRC.IT (Paul Hasenohr) Date: Thu, 26 May 2005 10:20:13 +0200 Subject: WMS and reprojection In-Reply-To: Message-ID: Hello Vincent, I would suggest that you describe the projection in your mapfile, at least for debug purposes. If you have a prj file coming e.g. with Arcgis, it is fairly easy. Then you avoid using +pm=paris and specify lon_0. For this WKT definition (probably equivalent to a LambertIIE): PROJCS["France_IMAGE2000",GEOGCS["GCS_NTF",DATUM["D_NTF",SPHEROID["Clarke_1880_IGN",6378249.2,293.46602]],PRIMEM["Greenw ich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",600000.0],P ARAMETER["False_Northing",2200000.0],PARAMETER["Central_Meridian",2.337229166666667],PARAMETER["Standard_Parallel_1",45. 898919],PARAMETER["Standard_Parallel_2",47.696014],PARAMETER["Latitude_Of_Origin",46.8],UNIT["Meter",1.0]] I am using this projection section in my mapfile: PROJECTION "proj=lcc" "ellps=clrk80" "lat_1=45.898919" "lat_2=47.696014" "lat_0=46.8" "lon_0=2.337229166666667" "x_0=600000.0" "y_0=2200000.0" "units=m" "no_defs" END Also check whether or not you need to use the +towgs84 parameter... HTH Paul -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of vincent.dacol Sent: Thursday, May 26, 2005 9:17 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS and reprojection Hi Francois, I have found what doesn't really work in my WMS server. The reprojection really work well now. But the probleme is the (x,y) position the differents layers who are in local French epsg projection system. All are not at the right place. I think it's a problem of PROJ4 epsg definition. But I don't realy know how solve it. Have you some tips or technique to resolve that sort of problem? Thank for your help. Vincent > Hi (again) Vincent, > > If you have a look to epsg file contained in proj 4.4.9 package : > # NTF (Paris) / Lambert zone II > <27572> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=-2.33722917 +k_0=0.99987742 > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 > +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs <> > # NTF (Paris) / France II > <27582> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=-2.33722917 +k_0=0.99987742 > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 > +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs <> > > Looks the same ... If you look to Lambert II Etendu (ie. France II) > parameters > http://www.ign.fr/telechargement/education/fiches/geodesie/projections.pdf > It seems that for Lambert II zone 27572, y_0 should be 200000 and lon_0, 0 ? > And for France II lon_0 should be 0 ! Anyone using French coordinate systems > having the same troubles ? > > I'm currently using these parameters for France II. > <27582> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 +k_0=0.99987742 > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 > +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs <> > > Any ideas ? > > Francois > > > -----Message d'origine----- > > De : UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > > part de vincent.dacol > > Envoy? : mercredi 25 mai 2005 11:40 > > ? : MAPSERVER-USERS at LISTS.UMN.EDU > > Objet : [UMN_MAPSERVER-USERS] WMS and reprojection > > > > Hi everybody, > > > > I'm a student and I'm disovering the world of Mapserver and > > interoperabillity. > > > > I'm trying to use 2 WMS services in different projections, > and one client to > > display two layer from that server. > > > > But the reprojection didn't work in the client. The 2 layer > obtain with the > > 2 WMS server aren't display in the same projection. > > > > The projection of my WMS server 1 is "init=epsg:27571" > > The projection of my WMS server 2 is "init=epsg:27582" > > > > This two server can serv : > > "wms_srs" "EPSG:27582 EPSG:27571" > > > > The projection I want to display with the client is > "init=epsg:27582" > > > > When I use the 2 layers in local, there is no supperposition > problem, the > > picture obtain was fine, the reprojection work. > > > > But with the WMS client, the first layer is in it's own > projection, and the > > second too. So the 2 layer arn't supperposed, it seem there > is no > > reprojection. > > > > Is-it a reprojection probleme? > > > > My opignon is that a single mapfile with multiple > connections to different > > WMS server must only connect to server who are in the same > projection. > > > > Maybe I'm wrong, I really new to Mapserver, but I have spend > a lot of time > > one this probleme, and the only solution I have find the > solve it is to use > > the same output projection in the client and in the WMS server. > > > > But this solution isn't very logical for me. I want to > connect to a server > > who use is own projection, and can serve data in other > predefined EPSG > > projection. So a WMS client use a WMS layer has a local > layer, with is own > > projection output, and is abble to reproject the data obtain > in the WMS > > layer. > > > > > > Thanks for the help (I really need it). > > > > Vincent > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > > > > -- > > Ce message a ete verifie par MailScanner pour des virus ou > des polluriels et > > rien de suspect n'a ete trouve. > > > > Les donnees et renseignements contenus dans ce message sont > personnels, > > confidentiels et prives. Toute publication, utilisation ou > diffusion, meme > > partielle, doit etre autorisee. > > > > Any data and information contained in this electronic mail > is personal, > > confidential and secret. Any total or partial publication, > use or > > distribution must be authorized. > > > > -- > > Ce message a ete verifie par MailScanner pour des virus ou > des polluriels et rien de suspect n'a ete trouve. > > > > Les donnees et renseignements contenus dans ce message sont > personnels, confidentiels et prives. Toute publication, utilisation ou > diffusion, meme partielle, doit etre autorisee. > > > > Any data and information contained in this electronic mail > is personal, confidential and secret. Any total or partial publication, use > or distribution must be authorized. > > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > -- > Ce message a ete verifie par MailScanner pour des virus ou des polluriels et > rien de suspect n'a ete trouve. > > Les donnees et renseignements contenus dans ce message sont personnels, > confidentiels et prives. Toute publication, utilisation ou diffusion, meme > partielle, doit etre autorisee. > > Any data and information contained in this electronic mail is personal, > confidential and secret. Any total or partial publication, use or > distribution must be authorized. > > > -- > Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. > > Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. > > Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From vincent.dacol at LAPOSTE.NET Thu May 26 01:52:20 2005 From: vincent.dacol at LAPOSTE.NET (vincent.dacol) Date: Thu, 26 May 2005 10:52:20 +0200 Subject: WMS and reprojection Message-ID: Thanks for the help and the idea. I don't know if it is abble to solve my problem, I have try to decribe the projection like you said, but T don't have any change one screen :( I give you a "impscreen" with a visualisation of my probleme. But it seem it's a PROJ4 pb. A strange think, all work great when I use WFS server with the same projection as my WMS server. All layer display at the right place (except the europe layer who is not display because he use an other projection unit). Strange isn't it??? have a nice day, Vincent > Hello Vincent, > > I would suggest that you describe the projection in your mapfile, at least for debug purposes. > If you have a prj file coming e.g. with Arcgis, it is fairly easy. > Then you avoid using +pm=paris and specify lon_0. > > For this WKT definition (probably equivalent to a LambertIIE): > PROJCS["France_IMAGE2000",GEOGCS["GCS_NTF",DATUM["D_NTF",SPHEROID["Clarke_1880_IGN",6378249.2,293.46602]],PRIMEM["Greenw > ich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",600000.0],P > ARAMETER["False_Northing",2200000.0],PARAMETER["Central_Meridian",2.337229166666667],PARAMETER["Standard_Parallel_1",45. > 898919],PARAMETER["Standard_Parallel_2",47.696014],PARAMETER["Latitude_Of_Origin",46.8],UNIT["Meter",1.0]] > > I am using this projection section in my mapfile: > PROJECTION > "proj=lcc" > "ellps=clrk80" > "lat_1=45.898919" > "lat_2=47.696014" > "lat_0=46.8" > "lon_0=2.337229166666667" > "x_0=600000.0" > "y_0=2200000.0" > "units=m" > "no_defs" > END > > Also check whether or not you need to use the +towgs84 parameter... > > HTH > Paul > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of vincent.dacol > Sent: Thursday, May 26, 2005 9:17 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WMS and reprojection > > Hi Francois, > > I have found what doesn't really work in my WMS server. The reprojection really work well now. But the probleme is the > (x,y) position the differents layers who are in local French epsg projection system. All are not at the right place. > > I think it's a problem of PROJ4 epsg definition. But I don't realy know how solve it. > > Have you some tips or technique to resolve that sort of problem? > > Thank for your help. > > Vincent > > > > > > Hi (again) Vincent, > > > > If you have a look to epsg file contained in proj 4.4.9 > package : > > # NTF (Paris) / Lambert zone II > > <27572> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=-2.33722917 > +k_0=0.99987742 > > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 > > +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs <> > > # NTF (Paris) / France II > > <27582> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=-2.33722917 > +k_0=0.99987742 > > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 > > +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs <> > > > > Looks the same ... If you look to Lambert II Etendu (ie. > France II) > > parameters > > > http://www.ign.fr/telechargement/education/fiches/geodesie/projections.pdf > > It seems that for Lambert II zone 27572, y_0 should be > 200000 and lon_0, 0 ? > > And for France II lon_0 should be 0 ! Anyone using French > coordinate systems > > having the same troubles ? > > > > I'm currently using these parameters for France II. > > <27582> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 > +k_0=0.99987742 > > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 > > +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs <> > > > > Any ideas ? > > > > Francois > > > > > -----Message d'origine----- > > > De : UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > > > part de vincent.dacol > > > Envoy? : mercredi 25 mai 2005 11:40 > > > ? : MAPSERVER-USERS at LISTS.UMN.EDU > > > Objet : [UMN_MAPSERVER-USERS] WMS and reprojection > > > > > > Hi everybody, > > > > > > I'm a student and I'm disovering the world of Mapserver and > > > interoperabillity. > > > > > > I'm trying to use 2 WMS services in different projections, > > and one client to > > > display two layer from that server. > > > > > > But the reprojection didn't work in the client. The 2 layer > > obtain with the > > > 2 WMS server aren't display in the same projection. > > > > > > The projection of my WMS server 1 is "init=epsg:27571" > > > The projection of my WMS server 2 is "init=epsg:27582" > > > > > > This two server can serv : > > > "wms_srs" "EPSG:27582 EPSG:27571" > > > > > > The projection I want to display with the client is > > "init=epsg:27582" > > > > > > When I use the 2 layers in local, there is no supperposition > > problem, the > > > picture obtain was fine, the reprojection work. > > > > > > But with the WMS client, the first layer is in it's own > > projection, and the > > > second too. So the 2 layer arn't supperposed, it seem there > > is no > > > reprojection. > > > > > > Is-it a reprojection probleme? > > > > > > My opignon is that a single mapfile with multiple > > connections to different > > > WMS server must only connect to server who are in the same > > projection. > > > > > > Maybe I'm wrong, I really new to Mapserver, but I have spend > > a lot of time > > > one this probleme, and the only solution I have find the > > solve it is to use > > > the same output projection in the client and in the WMS > server. > > > > > > But this solution isn't very logical for me. I want to > > connect to a server > > > who use is own projection, and can serve data in other > > predefined EPSG > > > projection. So a WMS client use a WMS layer has a local > > layer, with is own > > > projection output, and is abble to reproject the data obtain > > in the WMS > > > layer. > > > > > > > > > Thanks for the help (I really need it). > > > > > > Vincent > > > > > > Acc?dez au courrier ?lectronique de La Poste : > www.laposte.net ; > > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > > > > > > > > -- > > > Ce message a ete verifie par MailScanner pour des virus ou > > des polluriels et > > > rien de suspect n'a ete trouve. > > > > > > Les donnees et renseignements contenus dans ce message sont > > personnels, > > > confidentiels et prives. Toute publication, utilisation ou > > diffusion, meme > > > partielle, doit etre autorisee. > > > > > > Any data and information contained in this electronic mail > > is personal, > > > confidential and secret. Any total or partial publication, > > use or > > > distribution must be authorized. > > > > > > -- > > > Ce message a ete verifie par MailScanner pour des virus ou > > des polluriels et rien de suspect n'a ete trouve. > > > > > > Les donnees et renseignements contenus dans ce message sont > > personnels, confidentiels et prives. Toute publication, > utilisation ou > > diffusion, meme partielle, doit etre autorisee. > > > > > > Any data and information contained in this electronic mail > > is personal, confidential and secret. Any total or partial > publication, use > > or distribution must be authorized. > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > > > > > > -- > > Ce message a ete verifie par MailScanner pour des virus ou > des polluriels et > > rien de suspect n'a ete trouve. > > > > Les donnees et renseignements contenus dans ce message sont > personnels, > > confidentiels et prives. Toute publication, utilisation ou > diffusion, meme > > partielle, doit etre autorisee. > > > > Any data and information contained in this electronic mail > is personal, > > confidential and secret. Any total or partial publication, > use or > > distribution must be authorized. > > > > > > -- > > Ce message a ete verifie par MailScanner pour des virus ou > des polluriels et rien de suspect n'a ete trouve. > > > > Les donnees et renseignements contenus dans ce message sont > personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. > > > > Any data and information contained in this electronic mail > is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) -------------- next part -------------- A non-text attachment was scrubbed... Name: MapServ.jpg Type: image/jpeg Size: 18632 bytes Desc: not available URL: From vincent.dacol at LAPOSTE.NET Thu May 26 02:56:18 2005 From: vincent.dacol at LAPOSTE.NET (vincent.dacol) Date: Thu, 26 May 2005 11:56:18 +0200 Subject: WMS and reprojection Message-ID: Hi Paul, I think you're right, and my data have good projection coord with WFS server. Here is my WMS server's Mapfile : Server 1 (epsg 27582) : ############################################################################################################################################################################################################################################################# ##MAP######################################################################################################################################################################################################################################################## ############################################################################################################################################################################################################################################################# MAP NAME France_WFS_L2 EXTENT 47700 1620400 1197900 2677200 IMAGETYPE gif SIZE 800 600 SHAPEPATH "data" DEBUG ON OUTPUTFORMAT NAME gif MIMETYPE "image/gif" DRIVER "GD/GIF" EXTENSION "gif" IMAGEMODE PC256 TRANSPARENT TRUE END PROJECTION "init=epsg:27582" END ####### ##WEB## ####### WEB log "./tmp/France_Lambert2.log" IMAGEPATH "C:/ms4w/Apache/htdocs/projection/Serveur_France/tmp/" TEMPLATE 'Donnees_test_WMS_WFS_template.html' IMAGEURL "http://10.133.110.29/projection/Serveur_France/tmp/" METADATA "wfs_title" "France_WFS_test" "wfs_onlineresource" "http://10.133.110.29/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/projection/Serveur_France/France_L2_WFS.map&" "wfs_schemas_location" "http://ogc.dmsolutions.ca" "wfs_srs" "epsg:27582" END END ############# ##France_L2## ############# LAYER NAME "France_L2_WFS" DATA "France_L2" STATUS ON TYPE POLYGON DUMP TRUE TEMPLATE "query.html" TOLERANCE 3 TOLERANCEUNITS PIXELS METADATA "wfs_title" "France_L2_WFS" END CLASS COLOR 200 231 193 OUTLINECOLOR 32 32 32 END END END Server 2 (epsg 4326) : ############################################################################################################################################################################################################################################################# ##MAP######################################################################################################################################################################################################################################################## ############################################################################################################################################################################################################################################################# MAP NAME Europe_WFS_Name EXTENT -34.5523788 26.2114230 72.2516881 83.340374 #EXTENT -4760555 -1058700 4505870 8245049 IMAGETYPE gif SIZE 800 600 SHAPEPATH "data" PROJECTION "init=epsg:4326" #"init=epsg:27582" #PROJ L2 END DEBUG ON OUTPUTFORMAT NAME gif MIMETYPE "image/gif" DRIVER "GD/GIF" EXTENSION "gif" IMAGEMODE PC256 TRANSPARENT TRUE END ####### ##WEB## ####### WEB log "/tmp/Europe_WGS84.log" IMAGEPATH "C:/ms4w/Apache/htdocs/projection/Serveur_Europe/tmp/" TEMPLATE 'Donnees_test_WMS_WFS_template.html' IMAGEURL "http://10.133.110.29/projection/Serveur_Europe/tmp/" METADATA "wfs_title" "Europe_WFS_WEB" "wfs_onlineresource" "http://10.133.110.29/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/projection/Serveur_Europe/Europe_WFS.map&" "wfs_srs" "epsg:27582" "wfs_schemas_location" "http://ogc.dmsolutions.ca" END END ########## ##Europe## ########## LAYER NAME "Europe_WFS" DATA "Europe_region" STATUS ON TYPE POLYGON DUMP TRUE TEMPLATE "query.html" TOLERANCE 3 TOLERANCEUNITS PIXELS METADATA "wfs_title" "Europe_WFS" END CLASS COLOR 0 231 193 OUTLINECOLOR 32 32 32 END END END This is my 2 Mapfiles. If I give the same output projection to my 2 WMS server and my WMS client, all data superimpose with the right coordinates. But if it's not the fact, all data are like in the jpeg join with the mail. If you see somethink strange, thank you a lot for the help Vincent > Hello Vincent, > > I did not have a look at the whole thread when I first replied. > In fact, as Ed suggested, it would be very usefull if you could post the mapfiles you are using to the list. > I don't think there is any PROJ.4 related problem (as long as your projection definitions are correct) but more likely a > misconfiguration in one of your mapfiles as you wrote that you can properly display all layers if they are accessed > locally and referenced in a single mapfile. Am I right? > > Paul > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of vincent.dacol > Sent: Thursday, May 26, 2005 10:52 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WMS and reprojection > > Thanks for the help and the idea. > > I don't know if it is abble to solve my problem, I have try to decribe the projection like you said, but T don't have > any change one screen :( > > I give you a "impscreen" with a visualisation of my probleme. > But it seem it's a PROJ4 pb. > > A strange think, all work great when I use WFS server with the same projection as my WMS server. All layer display at > the right place (except the europe layer who is not display because he use an other projection unit). Strange isn't > it??? > > have a nice day, > > Vincent > > > > > Hello Vincent, > > > > I would suggest that you describe the projection in your > mapfile, at least for debug purposes. > > If you have a prj file coming e.g. with Arcgis, it is fairly > easy. > > Then you avoid using +pm=paris and specify lon_0. > > > > For this WKT definition (probably equivalent to a LambertIIE): > > > PROJCS["France_IMAGE2000",GEOGCS["GCS_NTF",DATUM["D_NTF",SPHEROID["Clarke_1880_IGN",6378249.2,293.46602]],PRIMEM["Greenw > > > ich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",600000.0],P > > > ARAMETER["False_Northing",2200000.0],PARAMETER["Central_Meridian",2.337229166666667],PARAMETER["Standard_Parallel_1",45. > > > 898919],PARAMETER["Standard_Parallel_2",47.696014],PARAMETER["Latitude_Of_Origin",46.8],UNIT["Meter",1.0]] > > > > I am using this projection section in my mapfile: > > PROJECTION > > "proj=lcc" > > "ellps=clrk80" > > "lat_1=45.898919" > > "lat_2=47.696014" > > "lat_0=46.8" > > "lon_0=2.337229166666667" > > "x_0=600000.0" > > "y_0=2200000.0" > > "units=m" > > "no_defs" > > END > > > > Also check whether or not you need to use the +towgs84 > parameter... > > > > HTH > > Paul > > > > -----Original Message----- > > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of vincent.dacol > > Sent: Thursday, May 26, 2005 9:17 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] WMS and reprojection > > > > Hi Francois, > > > > I have found what doesn't really work in my WMS server. The > reprojection really work well now. But the probleme is the > > (x,y) position the differents layers who are in local French > epsg projection system. All are not at the right place. > > > > I think it's a problem of PROJ4 epsg definition. But I don't > realy know how solve it. > > > > Have you some tips or technique to resolve that sort of problem? > > > > Thank for your help. > > > > Vincent > > > > > > > > > > > Hi (again) Vincent, > > > > > > If you have a look to epsg file contained in proj 4.4.9 > > package : > > > # NTF (Paris) / Lambert zone II > > > <27572> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=-2.33722917 > > +k_0=0.99987742 > > > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 > > > +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs <> > > > # NTF (Paris) / France II > > > <27582> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=-2.33722917 > > +k_0=0.99987742 > > > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 > > > +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs <> > > > > > > Looks the same ... If you look to Lambert II Etendu (ie. > > France II) > > > parameters > > > > > > http://www.ign.fr/telechargement/education/fiches/geodesie/projections.pdf > > > It seems that for Lambert II zone 27572, y_0 should be > > 200000 and lon_0, 0 ? > > > And for France II lon_0 should be 0 ! Anyone using French > > coordinate systems > > > having the same troubles ? > > > > > > I'm currently using these parameters for France II. > > > <27582> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 > > +k_0=0.99987742 > > > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 > > > +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs <> > > > > > > Any ideas ? > > > > > > Francois > > > > > > > -----Message d'origine----- > > > > De : UMN MapServer Users List > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > > > > part de vincent.dacol > > > > Envoy? : mercredi 25 mai 2005 11:40 ? : > > > > MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] WMS > > > > and reprojection > > > > > > > > Hi everybody, > > > > > > > > I'm a student and I'm disovering the world of Mapserver and > > > > interoperabillity. > > > > > > > > I'm trying to use 2 WMS services in different projections, > > > and one client to > > > > display two layer from that server. > > > > > > > > But the reprojection didn't work in the client. The 2 layer > > > obtain with the > > > > 2 WMS server aren't display in the same projection. > > > > > > > > The projection of my WMS server 1 is "init=epsg:27571" > > > > The projection of my WMS server 2 is "init=epsg:27582" > > > > > > > > This two server can serv : > > > > "wms_srs" "EPSG:27582 EPSG:27571" > > > > > > > > The projection I want to display with the client is > > > "init=epsg:27582" > > > > > > > > When I use the 2 layers in local, there is no supperposition > > > problem, the > > > > picture obtain was fine, the reprojection work. > > > > > > > > But with the WMS client, the first layer is in it's own > > > projection, and the > > > > second too. So the 2 layer arn't supperposed, it seem there > > > is no > > > > reprojection. > > > > > > > > Is-it a reprojection probleme? > > > > > > > > My opignon is that a single mapfile with multiple > > > connections to different > > > > WMS server must only connect to server who are in the same > > > projection. > > > > > > > > Maybe I'm wrong, I really new to Mapserver, but I have spend > > > a lot of time > > > > one this probleme, and the only solution I have find the > > > solve it is to use > > > > the same output projection in the client and in the WMS > > server. > > > > > > > > But this solution isn't very logical for me. I want to > > > connect to a server > > > > who use is own projection, and can serve data in other > > > predefined EPSG > > > > projection. So a WMS client use a WMS layer has a local > > > layer, with is own > > > > projection output, and is abble to reproject the data obtain > > > in the WMS > > > > layer. > > > > > > > > > > > > Thanks for the help (I really need it). > > > > > > > > Vincent > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : > > www.laposte.net ; > > > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > > > > > > > > > > > > -- > > > > Ce message a ete verifie par MailScanner pour des virus ou > > > des polluriels et > > > > rien de suspect n'a ete trouve. > > > > > > > > Les donnees et renseignements contenus dans ce message sont > > > personnels, > > > > confidentiels et prives. Toute publication, utilisation ou > > > diffusion, meme > > > > partielle, doit etre autorisee. > > > > > > > > Any data and information contained in this electronic mail > > > is personal, > > > > confidential and secret. Any total or partial publication, > > > use or > > > > distribution must be authorized. > > > > > > > > -- > > > > Ce message a ete verifie par MailScanner pour des virus ou > > > des polluriels et rien de suspect n'a ete trouve. > > > > > > > > Les donnees et renseignements contenus dans ce message sont > > > personnels, confidentiels et prives. Toute publication, > > utilisation ou > > > diffusion, meme partielle, doit etre autorisee. > > > > > > > > Any data and information contained in this electronic mail > > > is personal, confidential and secret. Any total or partial > > publication, use > > > or distribution must be authorized. > > > > > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : > www.laposte.net ; > > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > > > > > > > > > > > -- > > > Ce message a ete verifie par MailScanner pour des virus ou > > des polluriels et > > > rien de suspect n'a ete trouve. > > > > > > Les donnees et renseignements contenus dans ce message sont > > personnels, > > > confidentiels et prives. Toute publication, utilisation ou > > diffusion, meme > > > partielle, doit etre autorisee. > > > > > > Any data and information contained in this electronic mail > > is personal, > > > confidential and secret. Any total or partial publication, > > use or > > > distribution must be authorized. > > > > > > > > > -- > > > Ce message a ete verifie par MailScanner pour des virus ou > > des polluriels et rien de suspect n'a ete trouve. > > > > > > Les donnees et renseignements contenus dans ce message sont > > personnels, confidentiels et prives. Toute publication, > utilisation ou diffusion, meme partielle, doit etre autorisee. > > > > > > Any data and information contained in this electronic mail > > is personal, confidential and secret. Any total or partial > publication, use or distribution must be authorized. > > > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) -------------- next part -------------- A non-text attachment was scrubbed... Name: MapServ.jpg Type: image/jpeg Size: 18632 bytes Desc: not available URL: From vincent.dacol at LAPOSTE.NET Thu May 26 03:08:06 2005 From: vincent.dacol at LAPOSTE.NET (vincent.dacol) Date: Thu, 26 May 2005 12:08:06 +0200 Subject: WMS and reprojection Message-ID: OUPS I work to mutch, and I send you my WFS server file lol. Sorry. This mapfile work great and all project overlay very well. Here is my WMS server file, realy that's the good one ;) server 1: ############################################################################################################################################################################################################################################################# ##MAP######################################################################################################################################################################################################################################################## ############################################################################################################################################################################################################################################################# MAP NAME Europe_WGS84 EXTENT -34.5523788 26.2114230 72.2516881 83.340374 IMAGETYPE gif SIZE 800 600 SHAPEPATH "data" PROJECTION "init=epsg:4326" END DEBUG ON OUTPUTFORMAT NAME gif MIMETYPE "image/gif" DRIVER "GD/GIF" EXTENSION "gif" IMAGEMODE PC256 TRANSPARENT TRUE END ####### ##WEB## ####### WEB log "/tmp/Europe_WGS84.log" IMAGEPATH "./tmp/" TEMPLATE 'Donnees_test_WMS_WFS_template.html' IMAGEURL "http://10.133.110.29/projection/Serveur_Europe/tmp/" METADATA "wms_title" "Europe_France_WGS84" "wms_onlineresource" "http://10.133.110.29/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/projection/Serveur_Europe/Europe.map&" "wms_srs" "epsg:4326 epsg:27582 epsg:2154 epsg:27571 epsg:27572 epsg:27573 " END END ########## ##Europe## ########## LAYER NAME "Europe_WGS84" DATA "Europe_region" STATUS ON TYPE POLYGON DUMP TRUE TEMPLATE "query.html" TOLERANCE 3 TOLERANCEUNITS PIXELS METADATA "wms_title" "Europe_WGS84" #"wms_srs" "epsg:27582 epsg:2154 epsg:27571 epsg:27572 epsg:27573 epsg:4326" END CLASS COLOR 0 231 193 OUTLINECOLOR 32 32 32 END PROJECTION #"epsg:4326" END END END Server 2: ############################################################################################################################################################################################################################################################# ##MAP######################################################################################################################################################################################################################################################## ############################################################################################################################################################################################################################################################# MAP NAME Proj_France_L2 EXTENT 47700 1620400 1197900 2677200 IMAGETYPE gif SIZE 800 600 SHAPEPATH "data" DEBUG ON OUTPUTFORMAT NAME gif MIMETYPE "image/gif" DRIVER "GD/GIF" EXTENSION "gif" IMAGEMODE PC256 TRANSPARENT TRUE END PROJECTION "proj=lcc" "ellps=clrk80" "lat_1=45.898919" "lat_2=47.696014" "lat_0=46.8" "lon_0=2.337229166666667" "x_0=600000.0" "y_0=2200000.0" "units=m" "no_defs" #"init=epsg:43 #"init=epsg:4326" #PROJ EUROPE #"init=epsg:27582" #PROJ L2 #"init=epsg:2154" #PROJ L93 #"EPSG:27571" #PROJ LZ1 #"EPSG:27572" #PROJ LZ2 #"EPSG:27573" #PROJ LZ3 END ####### ##WEB## ####### WEB log "/tmp/France_Lambert2.log" IMAGEPATH "./tmp/" TEMPLATE 'Donnees_test_WMS_WFS_template.html' IMAGEURL "http://10.133.110.29/projection/Serveur_France/tmp/" METADATA "wms_title" "Test_France" "wms_onlineresource" "http://10.133.110.29/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/projection/Server_France/France_L2.map&" "wms_srs" "epsg:27582 epsg:4326 epsg:2154 epsg:27571 epsg:27572 epsg:27573" END END ############# ##France_L2## ############# LAYER NAME "France_L2" DATA "France_L2" STATUS ON TYPE POLYGON DUMP TRUE TEMPLATE "query.html" TOLERANCE 3 TOLERANCEUNITS PIXELS CLASS COLOR 200 231 193 OUTLINECOLOR 32 32 32 END PROJECTION #"init=epsg:4326" #PROJ EUROPE "init=epsg:27582" #PROJ L2 #"init=epsg:2154" #PROJ L93 #"EPSG:27571" #PROJ LZ1 #"EPSG:27572" #PROJ LZ2 #"EPSG:27573" #PROJ LZ3 END METADATA "wms_title" "France_L2" "wms_srs" "epsg:27582 epsg:4326 epsg:2154 epsg:27571 epsg:27572 epsg:27573" END END END Sorry for the mistake, and thanks for the help, I'm going crazy with all that ;) Vincent > Hi Paul, > > I think you're right, and my data have good projection coord > with WFS server. > > > Here is my WMS server's Mapfile : > > Server 1 (epsg 27582) : > > > ############################################################################################################################################################################################################################################################# > ##MAP######################################################################################################################################################################################################################################################## > ############################################################################################################################################################################################################################################################# > > > > MAP > > NAME France_WFS_L2 > EXTENT 47700 1620400 1197900 2677200 > IMAGETYPE gif > SIZE 800 600 > SHAPEPATH "data" > > DEBUG ON > > OUTPUTFORMAT > NAME gif > MIMETYPE "image/gif" > DRIVER "GD/GIF" > EXTENSION "gif" > IMAGEMODE PC256 > TRANSPARENT TRUE > END > > PROJECTION > "init=epsg:27582" > END > > ####### > ##WEB## > ####### > > > WEB > log "./tmp/France_Lambert2.log" > IMAGEPATH > "C:/ms4w/Apache/htdocs/projection/Serveur_France/tmp/" > TEMPLATE 'Donnees_test_WMS_WFS_template.html' > IMAGEURL "http://10.133.110.29/projection/Serveur_France/tmp/" > METADATA > "wfs_title" "France_WFS_test" > "wfs_onlineresource" > "http://10.133.110.29/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/projection/Serveur_France/France_L2_WFS.map&" > "wfs_schemas_location" "http://ogc.dmsolutions.ca" > "wfs_srs" "epsg:27582" > END > > END > > > ############# > ##France_L2## > ############# > > > LAYER > NAME "France_L2_WFS" > DATA "France_L2" > STATUS ON > TYPE POLYGON > DUMP TRUE > TEMPLATE "query.html" > TOLERANCE 3 > TOLERANCEUNITS PIXELS > > METADATA > "wfs_title" "France_L2_WFS" > END > > CLASS > COLOR 200 231 193 > OUTLINECOLOR 32 32 32 > END > > END > > > END > > > > Server 2 (epsg 4326) : > > > ############################################################################################################################################################################################################################################################# > ##MAP######################################################################################################################################################################################################################################################## > ############################################################################################################################################################################################################################################################# > > > > MAP > > NAME Europe_WFS_Name > EXTENT -34.5523788 26.2114230 72.2516881 83.340374 > #EXTENT -4760555 -1058700 4505870 8245049 > IMAGETYPE gif > SIZE 800 600 > SHAPEPATH "data" > > PROJECTION > "init=epsg:4326" > #"init=epsg:27582" #PROJ L2 > END > > DEBUG ON > > OUTPUTFORMAT > NAME gif > MIMETYPE "image/gif" > DRIVER "GD/GIF" > EXTENSION "gif" > IMAGEMODE PC256 > TRANSPARENT TRUE > END > > > > > ####### > ##WEB## > ####### > > > WEB > log "/tmp/Europe_WGS84.log" > IMAGEPATH > "C:/ms4w/Apache/htdocs/projection/Serveur_Europe/tmp/" > TEMPLATE 'Donnees_test_WMS_WFS_template.html' > IMAGEURL "http://10.133.110.29/projection/Serveur_Europe/tmp/" > METADATA > "wfs_title" "Europe_WFS_WEB" > "wfs_onlineresource" > "http://10.133.110.29/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/projection/Serveur_Europe/Europe_WFS.map&" > "wfs_srs" "epsg:27582" > "wfs_schemas_location" "http://ogc.dmsolutions.ca" > END > > END > > > > > ########## > ##Europe## > ########## > > > LAYER > NAME "Europe_WFS" > DATA "Europe_region" > STATUS ON > TYPE POLYGON > DUMP TRUE > TEMPLATE "query.html" > TOLERANCE 3 > TOLERANCEUNITS PIXELS > > METADATA > "wfs_title" "Europe_WFS" > END > > CLASS > COLOR 0 231 193 > OUTLINECOLOR 32 32 32 > END > > END > > END > > > > This is my 2 Mapfiles. If I give the same output projection to > my 2 WMS server and my WMS client, all data superimpose with > the right coordinates. > > But if it's not the fact, all data are like in the jpeg join > with the mail. > > If you see somethink strange, thank you a lot for the help > > Vincent > > > > > > > Hello Vincent, > > > > I did not have a look at the whole thread when I first replied. > > In fact, as Ed suggested, it would be very usefull if you > could post the mapfiles you are using to the list. > > I don't think there is any PROJ.4 related problem (as long > as your projection definitions are correct) but more likely a > > misconfiguration in one of your mapfiles as you wrote that > you can properly display all layers if they are accessed > > locally and referenced in a single mapfile. Am I right? > > > > Paul > > > > -----Original Message----- > > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of vincent.dacol > > Sent: Thursday, May 26, 2005 10:52 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] WMS and reprojection > > > > Thanks for the help and the idea. > > > > I don't know if it is abble to solve my problem, I have try > to decribe the projection like you said, but T don't have > > any change one screen :( > > > > I give you a "impscreen" with a visualisation of my probleme. > > But it seem it's a PROJ4 pb. > > > > A strange think, all work great when I use WFS server with > the same projection as my WMS server. All layer display at > > the right place (except the europe layer who is not display > because he use an other projection unit). Strange isn't > > it??? > > > > have a nice day, > > > > Vincent > > > > > > > > > Hello Vincent, > > > > > > I would suggest that you describe the projection in your > > mapfile, at least for debug purposes. > > > If you have a prj file coming e.g. with Arcgis, it is fairly > > easy. > > > Then you avoid using +pm=paris and specify lon_0. > > > > > > For this WKT definition (probably equivalent to a LambertIIE): > > > > > > PROJCS["France_IMAGE2000",GEOGCS["GCS_NTF",DATUM["D_NTF",SPHEROID["Clarke_1880_IGN",6378249.2,293.46602]],PRIMEM["Greenw > > > > > > ich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",600000.0],P > > > > > > ARAMETER["False_Northing",2200000.0],PARAMETER["Central_Meridian",2.337229166666667],PARAMETER["Standard_Parallel_1",45. > > > > > > 898919],PARAMETER["Standard_Parallel_2",47.696014],PARAMETER["Latitude_Of_Origin",46.8],UNIT["Meter",1.0]] > > > > > > I am using this projection section in my mapfile: > > > PROJECTION > > > "proj=lcc" > > > "ellps=clrk80" > > > "lat_1=45.898919" > > > "lat_2=47.696014" > > > "lat_0=46.8" > > > "lon_0=2.337229166666667" > > > "x_0=600000.0" > > > "y_0=2200000.0" > > > "units=m" > > > "no_defs" > > > END > > > > > > Also check whether or not you need to use the +towgs84 > > parameter... > > > > > > HTH > > > Paul > > > > > > -----Original Message----- > > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > vincent.dacol > > > Sent: Thursday, May 26, 2005 9:17 AM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] WMS and reprojection > > > > > > Hi Francois, > > > > > > I have found what doesn't really work in my WMS server. The > > reprojection really work well now. But the probleme is the > > > (x,y) position the differents layers who are in local French > > epsg projection system. All are not at the right place. > > > > > > I think it's a problem of PROJ4 epsg definition. But I don't > > realy know how solve it. > > > > > > Have you some tips or technique to resolve that sort of > problem? > > > > > > Thank for your help. > > > > > > Vincent > > > > > > > > > > > > > > > > Hi (again) Vincent, > > > > > > > > If you have a look to epsg file contained in proj 4.4.9 > > > package : > > > > # NTF (Paris) / Lambert zone II > > > > <27572> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=-2.33722917 > > > +k_0=0.99987742 > > > > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 > > > > +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m > +no_defs <> > > > > # NTF (Paris) / France II > > > > <27582> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=-2.33722917 > > > +k_0=0.99987742 > > > > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 > > > > +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m > +no_defs <> > > > > > > > > Looks the same ... If you look to Lambert II Etendu (ie. > > > France II) > > > > parameters > > > > > > > > > > http://www.ign.fr/telechargement/education/fiches/geodesie/projections.pdf > > > > It seems that for Lambert II zone 27572, y_0 should be > > > 200000 and lon_0, 0 ? > > > > And for France II lon_0 should be 0 ! Anyone using French > > > coordinate systems > > > > having the same troubles ? > > > > > > > > I'm currently using these parameters for France II. > > > > <27582> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 > > > +k_0=0.99987742 > > > > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 > > > > +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m > +no_defs <> > > > > > > > > Any ideas ? > > > > > > > > Francois > > > > > > > > > -----Message d'origine----- > > > > > De : UMN MapServer Users List > > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > > > > > part de vincent.dacol > > > > > Envoy? : mercredi 25 mai 2005 11:40 ? : > > > > > MAPSERVER-USERS at LISTS.UMN.EDU Objet : > [UMN_MAPSERVER-USERS] WMS > > > > > and reprojection > > > > > > > > > > Hi everybody, > > > > > > > > > > I'm a student and I'm disovering the world of > Mapserver and > > > > > interoperabillity. > > > > > > > > > > I'm trying to use 2 WMS services in different projections, > > > > and one client to > > > > > display two layer from that server. > > > > > > > > > > But the reprojection didn't work in the client. The 2 > layer > > > > obtain with the > > > > > 2 WMS server aren't display in the same projection. > > > > > > > > > > The projection of my WMS server 1 is "init=epsg:27571" > > > > > The projection of my WMS server 2 is "init=epsg:27582" > > > > > > > > > > This two server can serv : > > > > > "wms_srs" "EPSG:27582 EPSG:27571" > > > > > > > > > > The projection I want to display with the client is > > > > "init=epsg:27582" > > > > > > > > > > When I use the 2 layers in local, there is no > supperposition > > > > problem, the > > > > > picture obtain was fine, the reprojection work. > > > > > > > > > > But with the WMS client, the first layer is in it's own > > > > projection, and the > > > > > second too. So the 2 layer arn't supperposed, it seem > there > > > > is no > > > > > reprojection. > > > > > > > > > > Is-it a reprojection probleme? > > > > > > > > > > My opignon is that a single mapfile with multiple > > > > connections to different > > > > > WMS server must only connect to server who are in the same > > > > projection. > > > > > > > > > > Maybe I'm wrong, I really new to Mapserver, but I have > spend > > > > a lot of time > > > > > one this probleme, and the only solution I have find the > > > > solve it is to use > > > > > the same output projection in the client and in the WMS > > > server. > > > > > > > > > > But this solution isn't very logical for me. I want to > > > > connect to a server > > > > > who use is own projection, and can serve data in other > > > > predefined EPSG > > > > > projection. So a WMS client use a WMS layer has a local > > > > layer, with is own > > > > > projection output, and is abble to reproject the data > obtain > > > > in the WMS > > > > > layer. > > > > > > > > > > > > > > > Thanks for the help (I really need it). > > > > > > > > > > Vincent > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : > > > www.laposte.net ; > > > > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 > (0,34?/mn) > > > > > > > > > > > > > > > > > > > > -- > > > > > Ce message a ete verifie par MailScanner pour des virus ou > > > > des polluriels et > > > > > rien de suspect n'a ete trouve. > > > > > > > > > > Les donnees et renseignements contenus dans ce message > sont > > > > personnels, > > > > > confidentiels et prives. Toute publication, utilisation ou > > > > diffusion, meme > > > > > partielle, doit etre autorisee. > > > > > > > > > > Any data and information contained in this electronic mail > > > > is personal, > > > > > confidential and secret. Any total or partial publication, > > > > use or > > > > > distribution must be authorized. > > > > > > > > > > -- > > > > > Ce message a ete verifie par MailScanner pour des virus ou > > > > des polluriels et rien de suspect n'a ete trouve. > > > > > > > > > > Les donnees et renseignements contenus dans ce message > sont > > > > personnels, confidentiels et prives. Toute publication, > > > utilisation ou > > > > diffusion, meme partielle, doit etre autorisee. > > > > > > > > > > Any data and information contained in this electronic mail > > > > is personal, confidential and secret. Any total or partial > > > publication, use > > > > or distribution must be authorized. > > > > > > > > > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : > > www.laposte.net ; > > > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > > > > > > > > > > > > > > > > -- > > > > Ce message a ete verifie par MailScanner pour des virus ou > > > des polluriels et > > > > rien de suspect n'a ete trouve. > > > > > > > > Les donnees et renseignements contenus dans ce message sont > > > personnels, > > > > confidentiels et prives. Toute publication, utilisation ou > > > diffusion, meme > > > > partielle, doit etre autorisee. > > > > > > > > Any data and information contained in this electronic mail > > > is personal, > > > > confidential and secret. Any total or partial publication, > > > use or > > > > distribution must be authorized. > > > > > > > > > > > > -- > > > > Ce message a ete verifie par MailScanner pour des virus ou > > > des polluriels et rien de suspect n'a ete trouve. > > > > > > > > Les donnees et renseignements contenus dans ce message sont > > > personnels, confidentiels et prives. Toute publication, > > utilisation ou diffusion, meme partielle, doit etre autorisee. > > > > > > > > Any data and information contained in this electronic mail > > > is personal, confidential and secret. Any total or partial > > publication, use or distribution must be authorized. > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : > www.laposte.net ; > > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From wildrov at BELLSOUTH.NET Thu May 26 03:39:29 2005 From: wildrov at BELLSOUTH.NET (Dave Tee) Date: Thu, 26 May 2005 05:39:29 -0500 Subject: Easy $100.00 for the working example Message-ID: AND THE WINNER IS..........Aaron! As Per His Instructions.....I will donate $100.00 Paypal to Steve Lime (steve.lime [at] DNR.STATE.MN.US) for the upcoming Open Source GIS conference. I just wanted to say THANK YOU to Aaron for his help! AND to this List in General. Open Source GIS is about to Explode on the internet largely because of groups like this. I am sure I will have a 1000 questions before it is all over.....and I hope to be able to answer a few along the way. Steve...."You've Got Mail!" Dave From agomez at CCCMM.CESGA.ES Thu May 26 04:30:45 2005 From: agomez at CCCMM.CESGA.ES (Alberto Gomez) Date: Thu, 26 May 2005 13:30:45 +0200 Subject: joining shp and dbase files Message-ID: Hi Emil, Thank you for your quick response. It works great!!... but in local. I'm working in windows and my dbf file is located in a network volume (Z:). I set DATA parameter with a full path like this: "/inetpub/wwwroot/project/data/myfile.dbf" and i need to change from "C:" to "Z:". Could you helpme with that? Tanks in advance, Alberto > ----- Original Message ----- > From: "Emil Zegers" > To: > Sent: Thursday, May 26, 2005 9:12 AM > Subject: Re: [UMN_MAPSERVER-USERS] joining shp and dbase files > > > > Hello Alberto, > > > > You cannot use the MapServer JOIN to classify and display attributes from > > the join table (see bug > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=674). > > > > So the JOIN function for a LAYER has not disappeared but is not suited for > > this purpose. > > > > You could try using OGR JOIN however. > > > > OGR SQL supports a limited form of one to one JOIN. > > > > Somehting like: > > > > CONNECTIONTYPE OGR > > CONNECTION "data/popplace_pt" > > DATA "SELECT columns FROM table LEFT JOIN some join statement" > > > > Take a look at the JOIN examples at > > http://www.remotesensing.org/gdal/ogr/ogr_sql.html > > > > Regards, > > > > Emil > > > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > > Behalf Of Alberto Gomez > > Sent: donderdag 26 mei 2005 9:01 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] joining shp and dbase files > > > > Hello list, > > > > I'm using mapserver as cgi and I need to do a color classification by a > > field in the dbase table, so that I can see any modification in this table > > at real time in my map server. > > > > I've tried to do a join between my shapefile and dbase table but the layer > > disappeared. All that I've read is that Join function in mapfile is no > > longer available. Is there any other way to do this? Can you post an > > example? > > > > Thanks in advance. > > > > > > > > > > > From taatuut at PLANET.NL Thu May 26 04:42:45 2005 From: taatuut at PLANET.NL (Emil Zegers) Date: Thu, 26 May 2005 13:42:45 +0200 Subject: joining shp and dbase files In-Reply-To: <005101c561e6$5c84b320$5f64640a@prog4> Message-ID: Hello Alberto, You could try switching to absolute path names. If your dbf is located at C:/inetpub/wwwroot/project/data/myfile.dbf Then instead of: "/inetpub/wwwroot/project/data/myfile.dbf" in the DATA parameter use: "C:/inetpub/wwwroot/project/data/myfile.dbf" Similair if the file is located at Z:/geodata/dbase/myfile.dbf in the DATA parameter use: "Z:/geodata/dbase/myfile.dbf" UNC paths also works so if your Z: disk is a mapping to a machine called alberto then use "\\alberto\geodata\dbase\myfile.dbf" Make sure the Windows user has appropriate rights to access the disk or share and don't forget that Windows IIS uses the IUSR on default. The IUSR account is a local machine account so it can only access local files and not mapped drives or other servers. So if you want to access data on other servers you need to switch to use a domain user in IIS (best is to create a new user or group for this purpose). Accessing other drives/servers may work if you use integrated security in addition to anonymous access on IIS but this is only so if your (domain) accoutn has sufficient rights. Everybody from outside (not a domain user) will not be able to access that data. This can be confusing when testing your setup. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Alberto Gomez Sent: donderdag 26 mei 2005 13:31 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] joining shp and dbase files Hi Emil, Thank you for your quick response. It works great!!... but in local. I'm working in windows and my dbf file is located in a network volume (Z:). I set DATA parameter with a full path like this: "/inetpub/wwwroot/project/data/myfile.dbf" and i need to change from "C:" to "Z:". Could you helpme with that? Tanks in advance, Alberto From saburq at GMAIL.COM Thu May 26 05:18:52 2005 From: saburq at GMAIL.COM (Shoaib Burq) Date: Thu, 26 May 2005 08:18:52 -0400 Subject: Raster Transparent No Data Values Message-ID: Hi all I am trying to display a bunch of RGB geotif. but the null padding appears black. is there any way to make it transparent To see the example go to: http://letang.omg.unb.ca:8080/omg-map/omap.phtml and in the "Quick View" drop-down menu please select "Passamaquoddy Bay". Thanks heaps shoaib -------------- next part -------------- An HTML attachment was scrubbed... URL: From tkirstine at JDBARNES.COM Thu May 26 05:25:52 2005 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Thu, 26 May 2005 08:25:52 -0400 Subject: gdaladdo levels Message-ID: Hi everyone, I was hoping someone could provide some clarification regarding the GDAL utility gdaladdo and the usage of the levels. I know the basics of gdaladdo but how does the level function actually work? For example I have a 1m resolution floating point DEM tif image that covers 250km2 and I would like to use gdaladdo to increase performance. Ideally the image will be view at scales ranging from 1:100,000 to 1:500 and I would like to keep the cell resolution at 1m at the higher scale levels. Any info would be a great help. Thanks for your time Travis From agomez at CCCMM.CESGA.ES Thu May 26 05:41:01 2005 From: agomez at CCCMM.CESGA.ES (Alberto Gomez) Date: Thu, 26 May 2005 14:41:01 +0200 Subject: joining shp and dbase files Message-ID: Hi Emil, I'm ashamed, i had not even tryed with 'c:/...' It works perfect now. Thanks very very much Alberto ----- Original Message ----- From: "Emil Zegers" To: Sent: Thursday, May 26, 2005 1:42 PM Subject: Re: [UMN_MAPSERVER-USERS] joining shp and dbase files > Hello Alberto, > > You could try switching to absolute path names. > > If your dbf is located at C:/inetpub/wwwroot/project/data/myfile.dbf > > Then instead of: > > "/inetpub/wwwroot/project/data/myfile.dbf" > > in the DATA parameter use: > > "C:/inetpub/wwwroot/project/data/myfile.dbf" > > Similair if the file is located at Z:/geodata/dbase/myfile.dbf > > in the DATA parameter use: > > "Z:/geodata/dbase/myfile.dbf" > > UNC paths also works so if your Z: disk is a mapping to a machine called > alberto then use > > "\\alberto\geodata\dbase\myfile.dbf" > > Make sure the Windows user has appropriate rights to access the disk or > share and don't forget that Windows IIS uses the IUSR on default. > > The IUSR account is a local machine account so it can only access local > files and not mapped drives or other servers. > > So if you want to access data on other servers you need to switch to use a > domain user in IIS (best is to create a new user or group for this purpose). > > Accessing other drives/servers may work if you use integrated security in > addition to anonymous access on IIS but this is only so if your (domain) > accoutn has sufficient rights. Everybody from outside (not a domain user) > will not be able to access that data. This can be confusing when testing > your setup. > > Regards, > > Emil > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Alberto Gomez > Sent: donderdag 26 mei 2005 13:31 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] joining shp and dbase files > > > Hi Emil, > > Thank you for your quick response. It works great!!... but in local. I'm > working in windows and my dbf file is located in a network volume (Z:). I > set DATA parameter with a full path like this: > "/inetpub/wwwroot/project/data/myfile.dbf" and i need to change from "C:" > to > "Z:". > > Could you helpme with that? > > Tanks in advance, > Alberto > > > > > From paul.hasenohr at JRC.IT Thu May 26 05:34:26 2005 From: paul.hasenohr at JRC.IT (Paul Hasenohr) Date: Thu, 26 May 2005 14:34:26 +0200 Subject: WMS and reprojection In-Reply-To: Message-ID: Hi Vincent, Some notes and suggestions(?) to solve your problem, Server1: Layer Europe: wms_title is the same as for the map, maybe it is not a good idea (I never tried so maybe I am wrong). projection of the layer is not defined (should be "init=epsg:xxxx" and not "epsg:xxxx"). Mapserver is then using the one defined in the PROJECTION section below MAP, is it the correct one?. Server2: Note: The projection section directly below MAP does not matter for the wms as it is not an epsg code. Layer France_L2: You do not need to specify a wms_srs for a specific layer. It is defined in the projection section of the layer. If it is not enough, try putting the epsg codes under WEB/wms_srs in the same order or specify only one (obviously the same epsg code for both mapfiles!). In your WMS client, did you specify in which projection you want the data to be sent? As you wrote your WFS mapfiles are working, if what I wrote before is not working, just replace wfs_ with wms_ in your wfs mapfiles and check if it is working better. (you will need to comment the wfs_schemas_location lines). Paul -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of vincent.dacol Sent: Thursday, May 26, 2005 12:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS and reprojection OUPS I work to mutch, and I send you my WFS server file lol. Sorry. This mapfile work great and all project overlay very well. Here is my WMS server file, realy that's the good one ;) server 1: ######################################################################################################################## ######################################################################################################################## ############# ##MAP################################################################################################################### ######################################################################################################################## ############# ######################################################################################################################## ######################################################################################################################## ############# MAP NAME Europe_WGS84 EXTENT -34.5523788 26.2114230 72.2516881 83.340374 IMAGETYPE gif SIZE 800 600 SHAPEPATH "data" PROJECTION "init=epsg:4326" END DEBUG ON OUTPUTFORMAT NAME gif MIMETYPE "image/gif" DRIVER "GD/GIF" EXTENSION "gif" IMAGEMODE PC256 TRANSPARENT TRUE END ####### ##WEB## ####### WEB log "/tmp/Europe_WGS84.log" IMAGEPATH "./tmp/" TEMPLATE 'Donnees_test_WMS_WFS_template.html' IMAGEURL "http://10.133.110.29/projection/Serveur_Europe/tmp/" METADATA "wms_title" "Europe_France_WGS84" "wms_onlineresource" "http://10.133.110.29/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/projection/Serveur_Europe/Europe.map&" "wms_srs" "epsg:4326 epsg:27582 epsg:2154 epsg:27571 epsg:27572 epsg:27573 " END END ########## ##Europe## ########## LAYER NAME "Europe_WGS84" DATA "Europe_region" STATUS ON TYPE POLYGON DUMP TRUE TEMPLATE "query.html" TOLERANCE 3 TOLERANCEUNITS PIXELS METADATA "wms_title" "Europe_WGS84" #"wms_srs" "epsg:27582 epsg:2154 epsg:27571 epsg:27572 epsg:27573 epsg:4326" END CLASS COLOR 0 231 193 OUTLINECOLOR 32 32 32 END PROJECTION #"epsg:4326" END END END Server 2: ######################################################################################################################## ######################################################################################################################## ############# ##MAP################################################################################################################### ######################################################################################################################## ############# ######################################################################################################################## ######################################################################################################################## ############# MAP NAME Proj_France_L2 EXTENT 47700 1620400 1197900 2677200 IMAGETYPE gif SIZE 800 600 SHAPEPATH "data" DEBUG ON OUTPUTFORMAT NAME gif MIMETYPE "image/gif" DRIVER "GD/GIF" EXTENSION "gif" IMAGEMODE PC256 TRANSPARENT TRUE END PROJECTION "proj=lcc" "ellps=clrk80" "lat_1=45.898919" "lat_2=47.696014" "lat_0=46.8" "lon_0=2.337229166666667" "x_0=600000.0" "y_0=2200000.0" "units=m" "no_defs" #"init=epsg:43 #"init=epsg:4326" #PROJ EUROPE #"init=epsg:27582" #PROJ L2 #"init=epsg:2154" #PROJ L93 #"EPSG:27571" #PROJ LZ1 #"EPSG:27572" #PROJ LZ2 #"EPSG:27573" #PROJ LZ3 END ####### ##WEB## ####### WEB log "/tmp/France_Lambert2.log" IMAGEPATH "./tmp/" TEMPLATE 'Donnees_test_WMS_WFS_template.html' IMAGEURL "http://10.133.110.29/projection/Serveur_France/tmp/" METADATA "wms_title" "Test_France" "wms_onlineresource" "http://10.133.110.29/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/projection/Server_France/France_L2.map&" "wms_srs" "epsg:27582 epsg:4326 epsg:2154 epsg:27571 epsg:27572 epsg:27573" END END ############# ##France_L2## ############# LAYER NAME "France_L2" DATA "France_L2" STATUS ON TYPE POLYGON DUMP TRUE TEMPLATE "query.html" TOLERANCE 3 TOLERANCEUNITS PIXELS CLASS COLOR 200 231 193 OUTLINECOLOR 32 32 32 END PROJECTION #"init=epsg:4326" #PROJ EUROPE "init=epsg:27582" #PROJ L2 #"init=epsg:2154" #PROJ L93 #"EPSG:27571" #PROJ LZ1 #"EPSG:27572" #PROJ LZ2 #"EPSG:27573" #PROJ LZ3 END METADATA "wms_title" "France_L2" "wms_srs" "epsg:27582 epsg:4326 epsg:2154 epsg:27571 epsg:27572 epsg:27573" END END END Sorry for the mistake, and thanks for the help, I'm going crazy with all that ;) Vincent > Hi Paul, > > I think you're right, and my data have good projection coord with WFS > server. > > > Here is my WMS server's Mapfile : > > Server 1 (epsg 27582) : > > > ######################################################################################################################## ######################################################################################################################## ############# > ##MAP################################################################################################################### ######################################################################################################################## ############# > ######################################################################################################################## ######################################################################################################################## ############# > > > > MAP > > NAME France_WFS_L2 > EXTENT 47700 1620400 1197900 2677200 > IMAGETYPE gif > SIZE 800 600 > SHAPEPATH "data" > > DEBUG ON > > OUTPUTFORMAT > NAME gif > MIMETYPE "image/gif" > DRIVER "GD/GIF" > EXTENSION "gif" > IMAGEMODE PC256 > TRANSPARENT TRUE > END > > PROJECTION > "init=epsg:27582" > END > > ####### > ##WEB## > ####### > > > WEB > log "./tmp/France_Lambert2.log" > IMAGEPATH > "C:/ms4w/Apache/htdocs/projection/Serveur_France/tmp/" > TEMPLATE 'Donnees_test_WMS_WFS_template.html' > IMAGEURL "http://10.133.110.29/projection/Serveur_France/tmp/" > METADATA > "wfs_title" "France_WFS_test" > "wfs_onlineresource" > "http://10.133.110.29/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/projection/Serveur_France/France_L2_WFS.map&" > "wfs_schemas_location" "http://ogc.dmsolutions.ca" > "wfs_srs" "epsg:27582" > END > > END > > > ############# > ##France_L2## > ############# > > > LAYER > NAME "France_L2_WFS" > DATA "France_L2" > STATUS ON > TYPE POLYGON > DUMP TRUE > TEMPLATE "query.html" > TOLERANCE 3 > TOLERANCEUNITS PIXELS > > METADATA > "wfs_title" "France_L2_WFS" > END > > CLASS > COLOR 200 231 193 > OUTLINECOLOR 32 32 32 > END > > END > > > END > > > > Server 2 (epsg 4326) : > > > ######################################################################################################################## ######################################################################################################################## ############# > ##MAP################################################################################################################### ######################################################################################################################## ############# > ######################################################################################################################## ######################################################################################################################## ############# > > > > MAP > > NAME Europe_WFS_Name > EXTENT -34.5523788 26.2114230 72.2516881 83.340374 #EXTENT -4760555 > -1058700 4505870 8245049 IMAGETYPE gif SIZE 800 600 SHAPEPATH "data" > > PROJECTION > "init=epsg:4326" > #"init=epsg:27582" #PROJ L2 > END > > DEBUG ON > > OUTPUTFORMAT > NAME gif > MIMETYPE "image/gif" > DRIVER "GD/GIF" > EXTENSION "gif" > IMAGEMODE PC256 > TRANSPARENT TRUE > END > > > > > ####### > ##WEB## > ####### > > > WEB > log "/tmp/Europe_WGS84.log" > IMAGEPATH > "C:/ms4w/Apache/htdocs/projection/Serveur_Europe/tmp/" > TEMPLATE 'Donnees_test_WMS_WFS_template.html' > IMAGEURL "http://10.133.110.29/projection/Serveur_Europe/tmp/" > METADATA > "wfs_title" "Europe_WFS_WEB" > "wfs_onlineresource" > "http://10.133.110.29/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/projection/Serveur_Europe/Europe_WFS.map&" > "wfs_srs" "epsg:27582" > "wfs_schemas_location" "http://ogc.dmsolutions.ca" > END > > END > > > > > ########## > ##Europe## > ########## > > > LAYER > NAME "Europe_WFS" > DATA "Europe_region" > STATUS ON > TYPE POLYGON > DUMP TRUE > TEMPLATE "query.html" > TOLERANCE 3 > TOLERANCEUNITS PIXELS > > METADATA > "wfs_title" "Europe_WFS" > END > > CLASS > COLOR 0 231 193 > OUTLINECOLOR 32 32 32 > END > > END > > END > > > > This is my 2 Mapfiles. If I give the same output projection to my 2 > WMS server and my WMS client, all data superimpose with the right > coordinates. > > But if it's not the fact, all data are like in the jpeg join with the > mail. > > If you see somethink strange, thank you a lot for the help > > Vincent > > > > > > > Hello Vincent, > > > > I did not have a look at the whole thread when I first replied. > > In fact, as Ed suggested, it would be very usefull if you > could post the mapfiles you are using to the list. > > I don't think there is any PROJ.4 related problem (as long > as your projection definitions are correct) but more likely a > > misconfiguration in one of your mapfiles as you wrote that > you can properly display all layers if they are accessed > > locally and referenced in a single mapfile. Am I right? > > > > Paul > > > > -----Original Message----- > > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of vincent.dacol > > Sent: Thursday, May 26, 2005 10:52 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] WMS and reprojection > > > > Thanks for the help and the idea. > > > > I don't know if it is abble to solve my problem, I have try > to decribe the projection like you said, but T don't have > > any change one screen :( > > > > I give you a "impscreen" with a visualisation of my probleme. > > But it seem it's a PROJ4 pb. > > > > A strange think, all work great when I use WFS server with > the same projection as my WMS server. All layer display at > > the right place (except the europe layer who is not display > because he use an other projection unit). Strange isn't > > it??? > > > > have a nice day, > > > > Vincent > > > > > > > > > Hello Vincent, > > > > > > I would suggest that you describe the projection in your > > mapfile, at least for debug purposes. > > > If you have a prj file coming e.g. with Arcgis, it is fairly > > easy. > > > Then you avoid using +pm=paris and specify lon_0. > > > > > > For this WKT definition (probably equivalent to a LambertIIE): > > > > > > PROJCS["France_IMAGE2000",GEOGCS["GCS_NTF",DATUM["D_NTF",SPHEROID["Clarke_1880_IGN",6378249.2,293.46602]],PRIMEM["Greenw > > > > > > ich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",600000.0],P > > > > > > ARAMETER["False_Northing",2200000.0],PARAMETER["Central_Meridian",2.337229166666667],PARAMETER["Standard_Parallel_1",45. > > > > > > 898919],PARAMETER["Standard_Parallel_2",47.696014],PARAMETER["Latitude_Of_Origin",46.8],UNIT["Meter",1.0]] > > > > > > I am using this projection section in my mapfile: > > > PROJECTION > > > "proj=lcc" > > > "ellps=clrk80" > > > "lat_1=45.898919" > > > "lat_2=47.696014" > > > "lat_0=46.8" > > > "lon_0=2.337229166666667" > > > "x_0=600000.0" > > > "y_0=2200000.0" > > > "units=m" > > > "no_defs" > > > END > > > > > > Also check whether or not you need to use the +towgs84 > > parameter... > > > > > > HTH > > > Paul > > > > > > -----Original Message----- > > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > vincent.dacol > > > Sent: Thursday, May 26, 2005 9:17 AM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] WMS and reprojection > > > > > > Hi Francois, > > > > > > I have found what doesn't really work in my WMS server. The > > reprojection really work well now. But the probleme is the > > > (x,y) position the differents layers who are in local French > > epsg projection system. All are not at the right place. > > > > > > I think it's a problem of PROJ4 epsg definition. But I don't > > realy know how solve it. > > > > > > Have you some tips or technique to resolve that sort of > problem? > > > > > > Thank for your help. > > > > > > Vincent > > > > > > > > > > > > > > > > Hi (again) Vincent, > > > > > > > > If you have a look to epsg file contained in proj 4.4.9 > > > package : > > > > # NTF (Paris) / Lambert zone II > > > > <27572> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=-2.33722917 > > > +k_0=0.99987742 > > > > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 > > > > +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m > +no_defs <> > > > > # NTF (Paris) / France II > > > > <27582> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=-2.33722917 > > > +k_0=0.99987742 > > > > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 > > > > +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m > +no_defs <> > > > > > > > > Looks the same ... If you look to Lambert II Etendu (ie. > > > France II) > > > > parameters > > > > > > > > > > http://www.ign.fr/telechargement/education/fiches/geodesie/projections.pdf > > > > It seems that for Lambert II zone 27572, y_0 should be > > > 200000 and lon_0, 0 ? > > > > And for France II lon_0 should be 0 ! Anyone using French > > > coordinate systems > > > > having the same troubles ? > > > > > > > > I'm currently using these parameters for France II. > > > > <27582> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 > > > +k_0=0.99987742 > > > > +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 > > > > +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m > +no_defs <> > > > > > > > > Any ideas ? > > > > > > > > Francois > > > > > > > > > -----Message d'origine----- > > > > > De : UMN MapServer Users List > > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > > > > > part de vincent.dacol > > > > > Envoy? : mercredi 25 mai 2005 11:40 ? : > > > > > MAPSERVER-USERS at LISTS.UMN.EDU Objet : > [UMN_MAPSERVER-USERS] WMS > > > > > and reprojection > > > > > > > > > > Hi everybody, > > > > > > > > > > I'm a student and I'm disovering the world of > Mapserver and > > > > > interoperabillity. > > > > > > > > > > I'm trying to use 2 WMS services in different projections, > > > > and one client to > > > > > display two layer from that server. > > > > > > > > > > But the reprojection didn't work in the client. The 2 > layer > > > > obtain with the > > > > > 2 WMS server aren't display in the same projection. > > > > > > > > > > The projection of my WMS server 1 is "init=epsg:27571" > > > > > The projection of my WMS server 2 is "init=epsg:27582" > > > > > > > > > > This two server can serv : > > > > > "wms_srs" "EPSG:27582 EPSG:27571" > > > > > > > > > > The projection I want to display with the client is > > > > "init=epsg:27582" > > > > > > > > > > When I use the 2 layers in local, there is no > supperposition > > > > problem, the > > > > > picture obtain was fine, the reprojection work. > > > > > > > > > > But with the WMS client, the first layer is in it's own > > > > projection, and the > > > > > second too. So the 2 layer arn't supperposed, it seem > there > > > > is no > > > > > reprojection. > > > > > > > > > > Is-it a reprojection probleme? > > > > > > > > > > My opignon is that a single mapfile with multiple > > > > connections to different > > > > > WMS server must only connect to server who are in the same > > > > projection. > > > > > > > > > > Maybe I'm wrong, I really new to Mapserver, but I have > spend > > > > a lot of time > > > > > one this probleme, and the only solution I have find the > > > > solve it is to use > > > > > the same output projection in the client and in the WMS > > > server. > > > > > > > > > > But this solution isn't very logical for me. I want to > > > > connect to a server > > > > > who use is own projection, and can serve data in other > > > > predefined EPSG > > > > > projection. So a WMS client use a WMS layer has a local > > > > layer, with is own > > > > > projection output, and is abble to reproject the data > obtain > > > > in the WMS > > > > > layer. > > > > > > > > > > > > > > > Thanks for the help (I really need it). > > > > > > > > > > Vincent > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : > > > www.laposte.net ; > > > > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 > (0,34?/mn) > > > > > > > > > > > > > > > > > > > > -- > > > > > Ce message a ete verifie par MailScanner pour des virus ou > > > > des polluriels et > > > > > rien de suspect n'a ete trouve. > > > > > > > > > > Les donnees et renseignements contenus dans ce message > sont > > > > personnels, > > > > > confidentiels et prives. Toute publication, utilisation ou > > > > diffusion, meme > > > > > partielle, doit etre autorisee. > > > > > > > > > > Any data and information contained in this electronic mail > > > > is personal, > > > > > confidential and secret. Any total or partial publication, > > > > use or > > > > > distribution must be authorized. > > > > > > > > > > -- > > > > > Ce message a ete verifie par MailScanner pour des virus ou > > > > des polluriels et rien de suspect n'a ete trouve. > > > > > > > > > > Les donnees et renseignements contenus dans ce message > sont > > > > personnels, confidentiels et prives. Toute publication, > > > utilisation ou > > > > diffusion, meme partielle, doit etre autorisee. > > > > > > > > > > Any data and information contained in this electronic mail > > > > is personal, confidential and secret. Any total or partial > > > publication, use > > > > or distribution must be authorized. > > > > > > > > > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : > > www.laposte.net ; > > > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > > > > > > > > > > > > > > > > -- > > > > Ce message a ete verifie par MailScanner pour des virus ou > > > des polluriels et > > > > rien de suspect n'a ete trouve. > > > > > > > > Les donnees et renseignements contenus dans ce message sont > > > personnels, > > > > confidentiels et prives. Toute publication, utilisation ou > > > diffusion, meme > > > > partielle, doit etre autorisee. > > > > > > > > Any data and information contained in this electronic mail > > > is personal, > > > > confidential and secret. Any total or partial publication, > > > use or > > > > distribution must be authorized. > > > > > > > > > > > > -- > > > > Ce message a ete verifie par MailScanner pour des virus ou > > > des polluriels et rien de suspect n'a ete trouve. > > > > > > > > Les donnees et renseignements contenus dans ce message sont > > > personnels, confidentiels et prives. Toute publication, > > utilisation ou diffusion, meme partielle, doit etre autorisee. > > > > > > > > Any data and information contained in this electronic mail > > > is personal, confidential and secret. Any total or partial > > publication, use or distribution must be authorized. > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : > www.laposte.net ; > > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > > > > > > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From ed at TOPOZONE.COM Thu May 26 06:05:40 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 26 May 2005 09:05:40 -0400 Subject: Raster Transparent No Data Values Message-ID: Shoaib - Use the OFFSITE statement in the LAYER block for that image, as described in the documentation. If the pixels are true black, then OFFSITE 0 0 0 will make them transparent. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Shoaib Burq Sent: Thursday, May 26, 2005 8:19 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Raster Transparent No Data Values Hi all I am trying to display a bunch of RGB geotif. but the null padding appears black. is there any way to make it transparent To see the example go to: http://letang.omg.unb.ca:8080/omg-map/omap.phtml and in the "Quick View" drop-down menu please select "Passamaquoddy Bay". Thanks heaps shoaib -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at MEDINACO.ORG Thu May 26 06:16:34 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Thu, 26 May 2005 09:16:34 -0400 Subject: Choropleth Mapping Project Message-ID: The following message was sent by Brandon Ellis on Wed, 25 May 2005 18:36:32 -0700. > I am currently working on an equal interval choropleth > mapping project. I have tackled the problem of > determineing map class sizes and colors but am having > trouble making the Class Object of the layer object > recognize the colors that I wish to assign to > individual polygons. If anyone has gotten this to > work please let me know. My goal is to dynamicly > create and control classes in a layer to produce a > chloropleth map. I already know which polygons should > be which color, but I can't seem to get it to work > out. > > Hardcoded in the map file it looks like this: > CLASSITEM "STATE_NAME" > CLASS > EXPRESSION "Louisiana" > COLOR 255 15 15 > END > > I am using: > > $layerClassObj[$i+1]->label->color->setRGB($classColor[$i+1][0],$classColor[$i+1][1],$classColor[$i+1][2]); > > where: > layerClassObj[] is the Class Object created as part of > x layer in y map > > label->color are both Objects within the Class Object > > classColor[][] is a multi array with rgb values > > The above line of code APPEARS to be assigning the > color values to the Map Object's Reffernce Object for > some reason. Thanks in advance for any help! Brandon, What version are you using? Lowell From vincent.dacol at LAPOSTE.NET Thu May 26 06:39:53 2005 From: vincent.dacol at LAPOSTE.NET (vincent.dacol) Date: Thu, 26 May 2005 15:39:53 +0200 Subject: wms problem Message-ID: Realyy thanks a lot. I have ever the same problem... :((((((( The only solution I have too overlay correctly my differents layers, is to give the same output projection on my server and client. I have try all the solution you gave me, sorry, but no one could resolve my problem. I'm sure the reprojection work fine, my layer aspect change when the projection change, but the coord. don't change, and the map display at the wrong place. Ever and ever the same probleme, it's hard for my brain to find more and more idea and solution to solve this. I will stop it for now, and work on mapinfo WFS client and WFS server. Thanks a lot for the hand, Vincent > Hi Vincent, > > BTW I just thought of a potential issue regarding your mapfiles. EPSG needs to be uppercase in the wms_srs statement to avoid problems with case sensitive platforms. > There is something written about it in the WMS server howto available ont he mapserver website. > > Regards > Paul > > Paul HASENOHR > European Commission - Joint Research Centre > IPSC - Agriculture and Fisheries Unit > TP 266, 21020 ISPRA (VA), ITALY > Direct : +39 0332 78 62 22 - Fax : + 39 0 332 78 51 62 > Web site: http://agrifish.jrc.it > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From msmith at SANANGELOMPO.ORG Thu May 26 06:48:51 2005 From: msmith at SANANGELOMPO.ORG (Michael Smith) Date: Thu, 26 May 2005 08:48:51 -0500 Subject: search tool Message-ID: Hi List, I am working a implementing mapserver in our local govt. I have it up and running. Can anyone provide a template or example of how to search for a street and have mapserver zoom to that area? Thanks. Mike From godwin.liz at GMAIL.COM Thu May 26 07:02:52 2005 From: godwin.liz at GMAIL.COM (Liz Godwin) Date: Thu, 26 May 2005 10:02:52 -0400 Subject: New MapServer Website (beta) In-Reply-To: <6.2.1.2.2.20050525193159.034f8e60@hobu.mail.iastate.edu> Message-ID: That's great! Good work! I look forward to using the new site! On 5/25/05, Howard Butler wrote: > > All, > > I am pleased to announce the beta release of the new MapServer > website. The site is located at . > > I, Kari Guerts, the mapserver-docs team, and the developers have been > working to develop a site that streamlines documentation development, > allows through-the-web editing (but not a free-for-all like a wiki), > provides searching capabilites, provides support for multi-lingual > documents, and provides for structured content types. The new website was > developed using Plone , with some additional libraries > that add functionality and some minor coding to make things fit the > project > better. > > Some examples of documents on the site include the Mapfile reference > , the howto list > , and a "Getting started with MapServer" > document (only exists on the new site thanks to David Fawcett) > . > > As a user with this site, you can now participate in the documentation of > MapServer. By "joining" the site, you can create content, submit howtos, > faqs, and tutorials for inclusion in the site, add comments to existing > documents, and help translate documents into your native language. I will > be working on documents to describe how you can participate in the coming > weeks. Once you join the site, make sure to go to your "Personal > Preferences" page and update your email alert preference, your picture if > you want, and your latitude/longitude (Sean posted some details of how > this > can be used here ). > > The website should be considered beta-level, much like the beta releases > of > the software. If you find an issue, please let me know and/or file a bug > in bugzilla in the website category, and I'll try to get to it. The two > sites will continue to run in parallel for a while, very likely until > after > the release of 4.6 and MUM3, to allow it to grow out of its initial bugs, > to allow for ample time for people to get comfortable with it, and to not > add another item to the conference crunch. > > Much of the existing documentation on the blue site has been migrated to > the new site, although things might not be perfectly in sync yet. We're > working to migrate things over as time permits. There are also a few other > website bugs here and there, the logo is just a place holder, and I'm sure > there are many other issues I don't even know about yet ;). The general > structure is there, however, with much of the content filled out so you > can > get a feel for how things will look in the future. After the beta period, > the site will probably be moved to (and > continue to exist at its current address), and the stuff in the blue site > will be preserved and made available on something like > . > > I would like to thank Kari, Steve, Tom Burk and the UMN team, the > mapserver-docs crew, and the developers for all of their help and input on > this project. > > Howard > > PS. Remember that there is a server outage tonight, so it might not be > available due to the outage. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kristjan at TARKVARASTUUDIO.EE Thu May 26 07:27:19 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Thu, 26 May 2005 17:27:19 +0300 Subject: search tool In-Reply-To: <20050526134808.NKVJ14901.imta01a2.registeredsite.com@PLANGIS> Message-ID: Hi, Are you using just mapserver or some scripting language ie. PHP as well? Here is the PHP code witch I use to locate address names from shape and deliver it to the user in a form of html - table, so that he can choose one for output to the map. $mySearchLayer = $map->getLayerByName("krundipiirid"); $mySearchLayer->set("status", 1); $qstring = "('[Nimi]' =~ /".$otsiaadr.".*/)"; @$mySearchLayer->queryByAttributes("Nimi",$qstring ,MS_MULTIPLE); if ($mySearchLayer->getNumResults()>0) { $mySearchLayer->open(); for ($i=0; $i<$mySearchLayer->getNumResults(); $i++) { $myResult = $mySearchLayer->getResult($i); $myShape = $mySearchLayer->getShape($myResult->tileindex,$myResult->shapeindex); $myShapeExtent = $myShape->bounds; echo ''; echo $myShape->values['NIMI']; echo ''; } } else { print 'no objects'; } Kristjan >Hi List, > >I am working a implementing mapserver in our local govt. I have it up and >running. Can anyone provide a template or example of how to search for a >street and have mapserver zoom to that area? Thanks. > >Mike > > From msmith at SANANGELOMPO.ORG Thu May 26 07:48:45 2005 From: msmith at SANANGELOMPO.ORG (Michael Smith) Date: Thu, 26 May 2005 09:48:45 -0500 Subject: search tool In-Reply-To: <4295DCC7.4040506@tarkvarastuudio.ee> Message-ID: I am just using mapserver. I do have php installed. Would I just create a page using your script or insert it inside of my map html file? -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kristjan Annus Sent: Thursday, May 26, 2005 9:27 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] search tool Hi, Are you using just mapserver or some scripting language ie. PHP as well? Here is the PHP code witch I use to locate address names from shape and deliver it to the user in a form of html - table, so that he can choose one for output to the map. $mySearchLayer = $map->getLayerByName("krundipiirid"); $mySearchLayer->set("status", 1); $qstring = "('[Nimi]' =~ /".$otsiaadr.".*/)"; @$mySearchLayer->queryByAttributes("Nimi",$qstring ,MS_MULTIPLE); if ($mySearchLayer->getNumResults()>0) { $mySearchLayer->open(); for ($i=0; $i<$mySearchLayer->getNumResults(); $i++) { $myResult = $mySearchLayer->getResult($i); $myShape = $mySearchLayer->getShape($myResult->tileindex,$myResult->shapeindex); $myShapeExtent = $myShape->bounds; echo ''; echo $myShape->values['NIMI']; echo ''; } } else { print 'no objects'; } Kristjan >Hi List, > >I am working a implementing mapserver in our local govt. I have it up >and running. Can anyone provide a template or example of how to search >for a street and have mapserver zoom to that area? Thanks. > >Mike > > From kgeurts at GIS.UMN.EDU Thu May 26 08:28:40 2005 From: kgeurts at GIS.UMN.EDU (Kari Geurts) Date: Thu, 26 May 2005 10:28:40 -0500 Subject: New MapServer Website (beta) Message-ID: I would like to give Howard a SPECIAL THANKS for working so hard on the new site and making it happen. Thanks also to all who have been putting in time to learn how to use the new site and converting the information from the original site to the new site. Three cheers! I think the new site will be great and provides an opportunity for the entire users community to get involved with MapServer. Thanks again, Kari -- Kari A. Geurts GIS and Remote Sensing Laboratory Department of Forest Resources University of Minnesota 1530 Cleveland Ave N. St. Paul, MN. 55108 Phone: 612-624-3459 Fax: 612-625-5212 From lluisgm at GMAIL.COM Thu May 26 08:16:01 2005 From: lluisgm at GMAIL.COM (=?ISO-8859-1?Q?Llu=EDs_Garcia_i_Mestres?=) Date: Thu, 26 May 2005 17:16:01 +0200 Subject: itemNquery Message-ID: Hi list, I was following the example in Mapserver Test Suite with sucess in itemquery, but when I changed to itemNquery an error appears with the dbf. From jkim at SCIENCES.SDSU.EDU Thu May 26 10:34:21 2005 From: jkim at SCIENCES.SDSU.EDU (John Kim) Date: Thu, 26 May 2005 10:34:21 -0700 Subject: Can I do map intersection on the fly? Message-ID: Is it possible to use Mapserver to display an intersection between two polygons? I have two polygon shape files, and I'd like to display the intersection of a polygon from one shape file with the polygon from the other shape file. (The specific polygons are chosen on the fly according to input from our network of sensors). Thanks. -John -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Thu May 26 10:40:50 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 26 May 2005 19:40:50 +0200 Subject: Mapscript .NET, compile Message-ID: Hi list, I finally tried to compile Mapscript .NET and I thought I'd share the process I went through and ask a few questions. Let me start with the questions :-) : 1) why won't the generated mapscript_wrap.c file compile out of the box (see below)? 2) what is the difference between mapscript.dll and mapscript_csharp.dll? 3) using the utilities eg shpdump I do get a few unhandled exceptions. Is that supposed to be the case? Shape 1 has 1 part(s) bounds (362153.9375, 3651581.75) (413756.1875, 3708708) Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at ShapeDump.Main(String[] args) What I did is: * download SWIG from http://prdownloads.sourceforge.net/swig/swigwin-1.3.24.zip * I put swig.exe and a few other files needed in the mapscript/csharp directory (mainly the contents of the swig lib directory) * I ran nmake /f makefile.vc but ran into a problem The mapscript_wrap.c file generated by SWIG would not compile, so I removed the last bit, saved the file, and made sure it would not be generated again by commenting out one line in the makefile.vc. This is the part I had to remove from mapscript_wrap.c if (msSetup() != MS_SUCCESS) { msSetError(MS_MISCERR, "Failed to set up threads and font cache", "msSetup()"); } This is the line I commented in the makefile.vc in order not to re-generate the SWIG C file: interface: ../mapscript.i # $(SWIG) -csharp -o mapscript_wrap.c ../mapscript.i The only problem I had left was that my c sharp compiler (csc.exe) which is part of the .NET framework was not in my path so I used the following in my makefile.vc: CSC = c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe Best regards, Bart -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From siki at AGT.BME.HU Thu May 26 13:55:46 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Thu, 26 May 2005 19:55:46 -0100 Subject: OGR Join and class {Scanned} Message-ID: Hi, I would like to define classes based on an OGR Joined (ODBC) column. I was not able to make the class definitions. My layer definition looks like: LAYER NAME test CONNECTIONTYPE OGR CONNECTION kafold.shp DATA "SELECT kafold.*, ms.* FROM kafold LEFT JOIN 'ODBC:admin/xxx at mydb'.ms ON kafold.hrsz=ms.hrsz" TYPE POLIGON STATUS DEFAULT CLASSITEM "ms.MYCOL" CLASS EXPRESSION /x/ COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END If I remove CLASSITEM and EXPRESSION line the layer is drawn, so the DATA definition is good. I also tried to to remove CLASSITEM and give an expression like EXPRESSION ('[ms.MYCOL]' = 'x') I get an error massage in the apache error log libpng warning Incomplete compressed datastream in iCCP chunk Any idea? Thanks Zoltan From numerous at GMAIL.COM Thu May 26 11:41:15 2005 From: numerous at GMAIL.COM (Yar Doroshenko) Date: Thu, 26 May 2005 13:41:15 -0500 Subject: gdaltindex in DOS Message-ID: Thank you guys! for %f in (path\*.tif) do gdaltindex index.shp %f worked fine! I have several more questions: I now have 52 .tif images, index.shp, index.dbf, and index.shx 1) in step 3 of the following instructions: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?BathymetryHowTo it says that I need to create .wld files for each image. How do I run the script? I have never used Perl. Are .wld necessary for my php mapserver to recognize the images? 2) in step 5 LAYER NAME 'oceans' TYPE RASTER STATUS ON TILEINDEX "oceans" TILEITEM "Location" MINSCALE 6400000 CLASS NAME "Oceans" END END what's the difference between tileindex and tileitem? Is tileitem line necessary? Thank you, Yar From numerous at GMAIL.COM Thu May 26 14:35:39 2005 From: numerous at GMAIL.COM (Yar Doroshenko) Date: Thu, 26 May 2005 16:35:39 -0500 Subject: Zoom Level Message-ID: My index has worked! I defined a layer like this: LAYER NAME "space" tileindex tif/index status default type raster end Question: I can only zoom in so far on my rasters. How do I change the zoom level in my php mapserver so that I can zoom in deeper (more) Thank you, Yar From sgillies at FRII.COM Thu May 26 14:41:35 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 26 May 2005 15:41:35 -0600 Subject: Mapscript .NET, compile In-Reply-To: Message-ID: On May 26, 2005, at 11:40 AM, Bart van den Eijnden wrote: > Hi list, > > I finally tried to compile Mapscript .NET and I thought I'd share the > process I went through and ask a few questions. Let me start with the > questions :-) : > > 1) why won't the generated mapscript_wrap.c file compile out of the box > (see below)? Bart, you're leaving out some crucial information ... which MapServer version is this? I don't see the call to msSetup in mapscript_wrap.c with 4.6beta2. I'm using SWIG 1.3.21 and testing with Mono. > 2) what is the difference between mapscript.dll and > mapscript_csharp.dll? I did a 'strings mapscript.dll' ... it contains the functions of libmap. The csharp dll is the C# wrapper module. > 3) using the utilities eg shpdump I do get a few unhandled exceptions. > Is > that supposed to be the case? > > Shape 1 has 1 part(s) > bounds (362153.9375, 3651581.75) (413756.1875, 3708708) > > Unhandled Exception: System.NullReferenceException: Object reference > not > set to > an instance of an object. > at ShapeDump.Main(String[] args) > No, I don't think it should raise exceptions. I'm not a C# user at all, but I am able to get the module in 4.6beta to compile without warnings on Linux using the Makefile. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From patrick.vogelaar at NISANET.COM Thu May 26 14:39:36 2005 From: patrick.vogelaar at NISANET.COM (Patrick Vogelaar) Date: Thu, 26 May 2005 16:39:36 -0500 Subject: Windows Install Message-ID: Hello there, I'm definitely new to Mapserver and am interested in building an interactive web app using PHP/Mapscript. I have downloaded both: mapserver-4.6.0-beta2-win32-php4.3.11.zip as well as the MS4W package: ms4w_1.1.zip , both from http://maptools.org/ms4w/index.phtml?page=downloads.html I am running Windows 2000 Pro with IIS and I already have PHP 4.1.1 installed. I know I need atleast PHP version 4.3.0 to run the gd library needed by Mapserver, but I have a large intranet already running the installed PHP and I'm wondering if it will cause something to crash or otherwise misbehave. Should I be concerned about the web apps I already have running or the intranet as a whole. If I install the MS4W package in a root directory like it says will there be two different versions of PHP on my server? And if so, which version will process my php scripts. Any help just getting me started would be greatly appreciated. Thanks, Patrick Vogelaar From steve.lime at DNR.STATE.MN.US Thu May 26 14:56:01 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 26 May 2005 16:56:01 -0500 Subject: Can I do map intersection on the fly? Message-ID: You can't do that with MapServer as it sits. The GEOS support added for 4.6 will allow this sort of stuff via MapScript although I haven't added the intersection operator yet (only buffers and convex hulls are supported at the moment). Are you using MapScript? If so, I could look into quickly exposing an intersection method for a shapeObj. e.g. $intersection = $shape1->intersect($shape2); $intersection->draw(...); Steve >>> John Kim 05/26/05 12:34 PM >>> Is it possible to use Mapserver to display an intersection between two polygons? I have two polygon shape files, and I'd like to display the intersection of a polygon from one shape file with the polygon from the other shape file. (The specific polygons are chosen on the fly according to input from our network of sensors). Thanks. -John From bartvde at XS4ALL.NL Thu May 26 15:08:10 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 27 May 2005 00:08:10 +0200 Subject: Mapscript .NET, compile In-Reply-To: <635cc267f068583f0e048c0c8ecc6093@frii.com> Message-ID: Hi Sean, I was using 4.6 beta1. Mapscript.i version is: $Id: mapscript.i,v 1.198 2005/02/08 17:34:46 sean Exp $. It does compile without warnings, but I ran into a few runtime exceptions, but maybe that's a problem of the C# code of the utilities. I will try 4.6 beta2 soon. Best regards, Bart On Thu, 26 May 2005 23:41:35 +0200, Sean Gillies wrote: > On May 26, 2005, at 11:40 AM, Bart van den Eijnden wrote: > >> Hi list, >> >> I finally tried to compile Mapscript .NET and I thought I'd share the >> process I went through and ask a few questions. Let me start with the >> questions :-) : >> >> 1) why won't the generated mapscript_wrap.c file compile out of the box >> (see below)? > > Bart, you're leaving out some crucial information ... which MapServer > version is this? I don't see the call to msSetup in mapscript_wrap.c > with 4.6beta2. I'm using SWIG 1.3.21 and testing with Mono. > >> 2) what is the difference between mapscript.dll and >> mapscript_csharp.dll? > > I did a 'strings mapscript.dll' ... it contains the functions of libmap. > The csharp dll is the C# wrapper module. > >> 3) using the utilities eg shpdump I do get a few unhandled exceptions. >> Is >> that supposed to be the case? >> >> Shape 1 has 1 part(s) >> bounds (362153.9375, 3651581.75) (413756.1875, 3708708) >> >> Unhandled Exception: System.NullReferenceException: Object reference not >> set to >> an instance of an object. >> at ShapeDump.Main(String[] args) >> > > No, I don't think it should raise exceptions. > > I'm not a C# user at all, but I am able to get the module in 4.6beta to > compile without warnings on Linux using the Makefile. > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://zcologia.com > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From kenlord at GMAIL.COM Thu May 26 15:32:13 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Thu, 26 May 2005 15:32:13 -0700 Subject: Can I do map intersection on the fly? In-Reply-To: Message-ID: Hi John, You in fact can do the intersection, and other spatial functions on the fly with the present version of MapServer ... if your data is held in PostGIS. I use the Windows CGI flavour of MapServer 4.4.2. The trick is to parse the proper SQL query together and use it in the DATA string for the layer. One way to do it is by creating a dummy map layer where the DATA string contains a query that returns nothing, and has the variable used in the substitution within the string. Then use some javascript/asp/whatever to alter the value of the substitute variable to use the function and the polygons of interest. For example, I have a data string that looks like this: DATA "the_geom from (SELECT * from surf_terrain %terrainname%) as foo using unique gid using SRID=26910" The value of terrainname defaults to a value that does not exist in the table, so the layer is blank. terrainname='WHERE type=XXX' The user can make the website highlight polygons in that layer by using a tool on the website that changes the value of terrainname, which is submitted in the html form, or through URL encoding. My example is simple, you could place the intersection function or whatever you want within that variable. We have another layer that on the fly shows forest fires that cross a pipeline. In this case the DATA string uses the 'crosses' function in PostGIS, and looks like: DATA "the_geom from (SELECT nt_FFIRES_a.* from nt_ffires_a, pipelin_l where nt_ffires_a.the_geom && pipelin_l.the_geom AND crosses(nt_ffires_a.the_geom, pipelin_l.the_geom)) as foo using unique gid using SRID=26910" Be warned! If you are going to do this, use spatial indexes where ever possible to improve performance, and even using spatial indexes, you may still find you've made queries that bog your website down too much if you aren't careful. The forest fire query above, running on an old P3 1ghz machine takes 2.6seconds with the index, 17.6 seconds without! ... and only 0.6 seconds on our new P4 server, using spatial indexes. I'm sure those PHP'ers have great ways to do things too, but this method has worked well for us. Cheers, Ken Lord Vancouver BC On 5/26/05, Steve Lime wrote: > > You can't do that with MapServer as it sits. The GEOS support added for > 4.6 will allow this sort of stuff via MapScript although I haven't added > the intersection operator yet (only buffers and convex hulls are supported > at the moment). Are you using MapScript? If so, I could look into quickly > exposing an intersection method for a shapeObj. > > e.g. $intersection = $shape1->intersect($shape2); > $intersection->draw(...); > > Steve > > >>> John Kim 05/26/05 12:34 PM >>> > Is it possible to use Mapserver to display an intersection between two > polygons? I have two polygon shape files, and I'd like to display the > intersection of a polygon from one shape file with the polygon from the > other shape file. (The specific polygons are chosen on the fly according to > input from our network of sensors). > > Thanks. > > -John > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenlord at GMAIL.COM Thu May 26 18:03:11 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Thu, 26 May 2005 18:03:11 -0700 Subject: Legend broken in 4.6.0beta2 Message-ID: Hi list, I am trying out MapServer 4.6.0beta2, windows binaries downloaded from Maptools.org , CGI, on Windows Server 2003. I have MapServer 4.4.2 working fine on the same machine, no problems with my website. Switching directly to 4.6, changing nothing else, my dynamic HTML legend (which also controls the layer states) is no longer being created. 4.6 is not replacing the [legend] parameter with the code for the legend as happens with previous versions of MapServer. Just an empty space in the code where the legend would normally be. The individual legend graphics are being created as usual. Any Ideas? My legend template file is fairly complicated using many of the legend template CGI parameters plus some javascript. Has anything changed here that would crash the legend, but not crash the webpage? Thanks, Ken Lord Vancouver BC -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Fri May 27 01:42:47 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 27 May 2005 07:42:47 -0100 Subject: Windows Install {Scanned} In-Reply-To: Message-ID: Hi Patrick, I have two php version on my linux box, one is an apache module and the other is used ascgi for phpmapscript. I changed the apache config file .phtml files are interpreted by cgi version of php and .php files are interpreted by the apache module. I suppose something similar can be done in iis too. Bye Zoltan On Thu, 26 May 2005, Patrick Vogelaar wrote: > Hello there, > > I'm definitely new to Mapserver and am interested in building an > interactive web app using PHP/Mapscript. > > I have downloaded both: > > mapserver-4.6.0-beta2-win32-php4.3.11.zip > > as well as the MS4W package: > > ms4w_1.1.zip > > , both from http://maptools.org/ms4w/index.phtml?page=downloads.html > > > I am running Windows 2000 Pro with IIS and I already have PHP 4.1.1 > installed. I know I need atleast PHP version 4.3.0 to run the gd library > needed by Mapserver, but I have a large intranet already running the > installed PHP and I'm wondering if it will cause something to crash or > otherwise misbehave. > > Should I be concerned about the web apps I already have running or the > intranet as a whole. If I install the MS4W package in a root directory like > it says will there be two different versions of PHP on my server? And if > so, which version will process my php scripts. Any help just getting me > started would be greatly appreciated. > > Thanks, > > Patrick Vogelaar > From vincent.dacol at LAPOSTE.NET Thu May 26 23:47:49 2005 From: vincent.dacol at LAPOSTE.NET (vincent.dacol) Date: Fri, 27 May 2005 08:47:49 +0200 Subject: Mapserver and Mapinfo Message-ID: Hi everybody, I'm back with a new problem ;) Now, I try to use Mapinfo to visualize WFS Mapserver server layers. The server work great with an mapserver client. But with Mapinfo, it's a little different. Mapinfo find the WFS Mapserver correctly. But when I click on a layer in the Mapinfo box, a warning appear. It says : "In answer to Describe Feature Type Request, the WFS server return invalide type component". A Describefeaturetype request with Mapserver client work fine. It seem that the XML document use not a valide XML schema. I have try to change the service in "ows_schemas_location" meta, but not positive effect. I have try to with the mapfile of "ms_ogc_workshop" who is correct I think, but Mapinfo could'nt correctly use it too. If somebody have an idea, he could help me a lot lot lot ;) Vincent Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From jacob.delfos at MAUNSELL.COM Fri May 27 00:01:41 2005 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Fri, 27 May 2005 15:01:41 +0800 Subject: Windows Install Message-ID: Patrick, If I were you, I'd backup the old php installation, and replace with the new php files, then see if your intranet has problems (why looking for a solution, if there may not be a problem). If there is a problem, you could consider renaming extensions of all .php files (and paths) in your intranet to something else, like ".php4". There should be programs that can do a "search -> replace" in multiple files. Then you could set up your IIS to execute ".php4" files using "c:\php4.1.1\php.exe", while executing ".php" files with "c:\php4.3.11\php.exe". regards, Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Patrick Vogelaar Sent: 27 May 2005 05:40 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Windows Install Hello there, I'm definitely new to Mapserver and am interested in building an interactive web app using PHP/Mapscript. I have downloaded both: mapserver-4.6.0-beta2-win32-php4.3.11.zip as well as the MS4W package: ms4w_1.1.zip , both from http://maptools.org/ms4w/index.phtml?page=downloads.html I am running Windows 2000 Pro with IIS and I already have PHP 4.1.1 installed. I know I need atleast PHP version 4.3.0 to run the gd library needed by Mapserver, but I have a large intranet already running the installed PHP and I'm wondering if it will cause something to crash or otherwise misbehave. Should I be concerned about the web apps I already have running or the intranet as a whole. If I install the MS4W package in a root directory like it says will there be two different versions of PHP on my server? And if so, which version will process my php scripts. Any help just getting me started would be greatly appreciated. Thanks, Patrick Vogelaar -------------- next part -------------- An HTML attachment was scrubbed... URL: From BEN at SYNCERA-ITSOLUTIONS.NL Fri May 27 00:20:45 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri, 27 May 2005 09:20:45 +0200 Subject: Mapserver and Mapinfo Message-ID: Hi Vincent, a) can you post the response of your Mapserver WFS to a DescribeFeatureType request to the list? So we can see if it might be a configuration issue. b) can you try using the Cubewerx site for the schemas, there is a problem in the OGC schemas, in the WEB object's METADATA section use: ows_schemas_location "http://schemas.cubewerx.com/schemas/" Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> "vincent.dacol" 05/27/05 08:47am >>> Hi everybody, I'm back with a new problem ;) Now, I try to use Mapinfo to visualize WFS Mapserver server layers. The server work great with an mapserver client. But with Mapinfo, it's a little different. Mapinfo find the WFS Mapserver correctly. But when I click on a layer in the Mapinfo box, a warning appear. It says : "In answer to Describe Feature Type Request, the WFS server return invalide type component". A Describefeaturetype request with Mapserver client work fine. It seem that the XML document use not a valide XML schema. I have try to change the service in "ows_schemas_location" meta, but not positive effect. I have try to with the mapfile of "ms_ogc_workshop" who is correct I think, but Mapinfo could'nt correctly use it too. If somebody have an idea, he could help me a lot lot lot ;) Vincent Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From jdelagou at LOGATIQUE.FR Thu May 26 23:56:22 2005 From: jdelagou at LOGATIQUE.FR (=?ISO-8859-1?Q?J=E9r=F4me_Tricand_de_la_Goutte?=) Date: Fri, 27 May 2005 08:56:22 +0200 Subject: Georeferencing ECW Message-ID: Hi everyone. I have many ECW files ungeoreferenced, and for each, I have a TAB file used for georeferencing any picture in Mapinfo. All of them are tiles of a single layer. I want to show this layer using Mapserver. So I need to create a tileinde. But gdaltinde do not work on such files. Does anyone know how to georeference those picture, or to tranform ECW+TAB to TIFF+TFW, for example? Thanks. J?r?me -- J?r?me Tricand de la Goutte Soci?t? Logatique 50 rue Marcel Dassault 92100 Boulogne-Billancourt 01 46 21 59 59 From BEN at SYNCERA-ITSOLUTIONS.NL Fri May 27 00:32:30 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Fri, 27 May 2005 09:32:30 +0200 Subject: Georeferencing ECW Message-ID: Hi, what is the output of gdalinfo on that file? I know that GDAL does read an associated tab file with a tiff for instance, if they are the exact same name (except for the file extension). It reads the control points then from the tab file. So you could transform your ECW files in batch to tiff, and then optionally to Geotiff. There might be an easier way though .... Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> J?r?me Tricand de la Goutte 05/27/05 08:56am >>> Hi everyone. I have many ECW files ungeoreferenced, and for each, I have a TAB file used for georeferencing any picture in Mapinfo. All of them are tiles of a single layer. I want to show this layer using Mapserver. So I need to create a tileinde. But gdaltinde do not work on such files. Does anyone know how to georeference those picture, or to tranform ECW+TAB to TIFF+TFW, for example? Thanks. J?r?me -- J?r?me Tricand de la Goutte Soci?t? Logatique 50 rue Marcel Dassault 92100 Boulogne-Billancourt 01 46 21 59 59 From vincent.dacol at LAPOSTE.NET Fri May 27 00:49:32 2005 From: vincent.dacol at LAPOSTE.NET (vincent.dacol) Date: Fri, 27 May 2005 09:49:32 +0200 Subject: Mapserver and Mapinfo Message-ID: Hi Bart, HEre is the reponse of my Mapserver WFS to a DescribeFeatureType: - - - - I will try the location of the CubeWex shema, just after I finish downloading the new ms4w ;) Maybe it will help. Thank for the help in the hard world of mapserver, Vincent > Hi Vincent, > > a) can you post the response of your Mapserver WFS to a DescribeFeatureType request to the list? So we can see if it might be a configuration issue. > > b) can you try using the Cubewerx site for the schemas, there is a problem in the OGC schemas, in the WEB object's METADATA section use: > > ows_schemas_location "http://schemas.cubewerx.com/schemas/" > > Best regards, > Bart > > Bart van den Eijnden > Syncera-ITSolutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> "vincent.dacol" 05/27/05 08:47am >>> > Hi everybody, I'm back with a new problem ;) > > Now, I try to use Mapinfo to visualize WFS Mapserver server > layers. > > The server work great with an mapserver client. But with > Mapinfo, it's a little different. > > Mapinfo find the WFS Mapserver correctly. But when I click on > a layer in the Mapinfo box, a warning appear. It says : "In > answer to Describe Feature Type Request, the WFS server return > invalide type component". > > A Describefeaturetype request with Mapserver client work fine. > > It seem that the XML document use not a valide XML schema. > > I have try to change the service in "ows_schemas_location" > meta, but not positive effect. > > I have try to with the mapfile of "ms_ogc_workshop" who is > correct I think, but Mapinfo could'nt correctly use it too. > > If somebody have an idea, he could help me a lot lot lot ;) > > Vincent > > > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; > 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) > Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From piero.cavalieri at HEIDI.IT Fri May 27 01:00:47 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri, 27 May 2005 03:00:47 -0500 Subject: Mapserver and templetes in xml format Message-ID: Hi all, I'm using mapserver in cgi mode, with .NET framework. I build query String from user interface. Send it to the cgi using HttpWebRequest class and parse the response with HttpWebResponse. The template is very simple, ex: [img] [mapwidth] [mapheight] .. .. Variables are put in protected variables (in code behind), so then I can use them in the aspx Page. This seems to works fine (both for browse and query mode), however I noticed that the first line are additional info from Mapserver, ex: This prevent me from using an xml document for template file (as I would like to try instead of the html template file). Is there a way to remove info above, in the cgi response (without recompile sources) ? Many thanks Piero From agomez at CCCMM.CESGA.ES Fri May 27 01:08:25 2005 From: agomez at CCCMM.CESGA.ES (Alberto Gomez) Date: Fri, 27 May 2005 10:08:25 +0200 Subject: OGR Join and class {Scanned} Message-ID: Hi Siki, Try to replace > CLASSITEM "ms.MYCOL" by CLASSITEM "kafold.MYCOL" I hope this help, Alberto ----- Original Message ----- From: "Siki Zoltan" To: Sent: Thursday, May 26, 2005 10:55 PM Subject: [UMN_MAPSERVER-USERS] OGR Join and class {Scanned} > Hi, > > I would like to define classes based on an OGR Joined (ODBC) column. > I was not able to make the class definitions. > My layer definition looks like: > > LAYER > NAME test > CONNECTIONTYPE OGR > CONNECTION kafold.shp > DATA "SELECT kafold.*, ms.* FROM kafold LEFT JOIN > 'ODBC:admin/xxx at mydb'.ms ON kafold.hrsz=ms.hrsz" > TYPE POLIGON > STATUS DEFAULT > CLASSITEM "ms.MYCOL" > CLASS > EXPRESSION /x/ > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END > END > > If I remove CLASSITEM and EXPRESSION line the layer is drawn, so the DATA > definition is good. > I also tried to to remove CLASSITEM and give an expression like > EXPRESSION ('[ms.MYCOL]' = 'x') > > I get an error massage in the apache error log > libpng warning Incomplete compressed datastream in iCCP chunk > > Any idea? > > Thanks > Zoltan > > > > > From margottid at COMUNE.LUGO.RA.IT Fri May 27 01:20:06 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Fri, 27 May 2005 10:20:06 +0200 Subject: How can I highlight more than one feature in QUERY mode? In-Reply-To: Message-ID: You are right: googling the web I did find using of ITEMNQUERYMAP combined with an expression for QSTRING. But as you can see in the following example, I need to manually specify "mapxy" and "scale" parameters to see something highlighted: http://sit.comune.lugo.ra.it/cgi-bin/mapserv?mode=itemnquerymap &map_querymap_size=500%20375&mapxy=1729487.0255+4927174.2505&scale=2000& map=/dati/sit/Lugo_PRG.map&mapsize=&layer=CTR_5000&layer=Mappali&layer=Q uadrocatasto&layer=Grafo_stradale&qlayer=Mappali&qitem=PARTKEY&qstring=( '[PARTKEY]'%20in%20'E730%20%20%2077%20%20427,E730%20%20%2077%20%20428,E7 30%20%20%2077%20%20266') If I omit center point and scale factor, I see the ENTIRE map (and I don't want it!) instead of a map automatically centered and zoomed to enclose all queried features: http://sit.comune.lugo.ra.it/cgi-bin/mapserv?mode=itemnquerymap &map_querymap_size=500%20375&map=/dati/sit/Lugo_PRG.map&mapsize=&layer=C TR_5000&layer=Mappali&layer=Quadrocatasto&layer=Grafo_stradale&qlayer=Ma ppali&qitem=PARTKEY&qstring=('[PARTKEY]'%20in%20'E730%20%20%2077%20%2042 7,E730%20%20%2077%20%20428,E730%20%20%2077%20%20266') What do I miss? Daniele -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fawcett, David Sent: Monday, May 23, 2005 7:04 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] How can I highlight more than one feature in QUERY mode? Should that be ITEMNQUERYMAP? David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Daniele Margotti Sent: Saturday, May 21, 2005 3:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] How can I highlight more than one feature in QUERY mode? Hi list, with CGI mode=ITEMQUERYMAP I can produce a map with one highlighted feature (defined using QITEM, QLAYER and QSTRING). How can I highlight more than one feature (within the same layer) using the same syntax (QITEM + QLAYER + QSTRING)? Is there the possibility to use an "OR condition" or a regular expression in QSTRING parameter? Thank you, Daniele -------------- next part -------------- An HTML attachment was scrubbed... URL: From piero.cavalieri at HEIDI.IT Fri May 27 01:46:21 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri, 27 May 2005 03:46:21 -0500 Subject: How can I highlight more than one feature in QUERY mode? Message-ID: This works, but not centered correct, because I'm missing something: http://stage/Scripts/mapserv.exe? map=E:/mapsrvNet/trentino.map&layer=DTM&layer=ECW&layer=i_dep_grp&mode=nquer y&imgxy=187 170&imgext=1602433.333333 5056840.000000 1738646.666667 5159000.000000&imgbox=187 170 322 255&savequery=true Piero From LVN at HVM.DK Fri May 27 06:13:44 2005 From: LVN at HVM.DK (Lars V. Nielsen (HVM)) Date: Fri, 27 May 2005 15:13:44 +0200 Subject: Resampling rasters from unprojected WMS sources ? Message-ID: I'm rendering a map in a UTM projection, but want to add a satellite image wms service that only delivers images in lat/long wgs84. No problem, I set the wms layer projection to epsg:4326, while my map (and other layers) use projection epsg:25832. And it works, or almost ... The sat image is distorted - "flattened" - so the vector line work layers on top of it exceeds the country coast line north and south. And quite significantly so. Shouldn't the raster re-projection algoritms in Mapserver take care of such distortions, or is mixing projected and unprojected coordinate systems (still) a no-no ? Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard & Meklenborg Rugaardsvej 55, DK-5000 Odense C Denmark http://www.hvm.dk From d.lowe at RL.AC.UK Fri May 27 07:42:11 2005 From: d.lowe at RL.AC.UK (Dominic Lowe) Date: Fri, 27 May 2005 15:42:11 +0100 Subject: GetCoverage request - GML as supported format? Message-ID: Hi, Does the Mapserver WCS have the ability to respond to a getCoverage request with GML? Cheers Dominic From Tom.Kralidis at EC.GC.CA Fri May 27 07:56:14 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 27 May 2005 10:56:14 -0400 Subject: GetCoverage request - GML as supported format? Message-ID: I think just image formats. For now, GML is for vector (WFS) type data. ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dominic Lowe > Sent: Friday, 27 May, 2005 10:42 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] GetCoverage request - GML as > supported format? > > > Hi, > > Does the Mapserver WCS have the ability to respond to a > getCoverage request with GML? > > Cheers > Dominic > From siki at AGT.BME.HU Fri May 27 14:11:03 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 27 May 2005 20:11:03 -0100 Subject: OGR Join and class {Scanned} In-Reply-To: Message-ID: Dear Emil, Thanks for your suggestions. Defining the CLASSITEM without table name prefix (either lowercase or uppercase) results "Invalid Field name: mycol" :( I think I've tried all combinations. Bye Zoltan On Fri, 27 May 2005, Emil Zegers wrote: > Hello Siki, > > Have you tried defining the CLASSITEM without the table name prefix and/or > switching column name to lowercase: > > CLASSITEM "MYCOL" > > or > > CLASSITEM "mycol" > > or maybe > > CLASSITEM "ms.mycol" > > Regards, > > Emil > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Siki Zoltan > Sent: donderdag 26 mei 2005 22:56 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] OGR Join and class {Scanned} > > > Hi, > > I would like to define classes based on an OGR Joined (ODBC) column. > I was not able to make the class definitions. > My layer definition looks like: > > LAYER > NAME test > CONNECTIONTYPE OGR > CONNECTION kafold.shp > DATA "SELECT kafold.*, ms.* FROM kafold LEFT JOIN > 'ODBC:admin/xxx at mydb'.ms ON kafold.hrsz=ms.hrsz" > TYPE POLIGON > STATUS DEFAULT > CLASSITEM "ms.MYCOL" > CLASS > EXPRESSION /x/ > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END > END > > If I remove CLASSITEM and EXPRESSION line the layer is drawn, so the DATA > definition is good. > I also tried to to remove CLASSITEM and give an expression like > EXPRESSION ('[ms.MYCOL]' = 'x') > > I get an error massage in the apache error log > libpng warning Incomplete compressed datastream in iCCP chunk > > Any idea? > > Thanks > Zoltan > From siki at AGT.BME.HU Fri May 27 14:17:20 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 27 May 2005 20:17:20 -0100 Subject: OGR Join and class {Scanned} In-Reply-To: <006d01c56293$43de3dc0$5f64640a@prog4> Message-ID: Hi Alberto, Thanks for your suggestion. Changing the table name results "Invalid Fiels name: kafold.MYCOL" Bye Zoltan On Fri, 27 May 2005, Alberto Gomez wrote: > Hi Siki, > > Try to replace > > > CLASSITEM "ms.MYCOL" > > by CLASSITEM "kafold.MYCOL" > > I hope this help, > Alberto > > > > > ----- Original Message ----- > From: "Siki Zoltan" > To: > Sent: Thursday, May 26, 2005 10:55 PM > Subject: [UMN_MAPSERVER-USERS] OGR Join and class {Scanned} > > > > Hi, > > > > I would like to define classes based on an OGR Joined (ODBC) column. > > I was not able to make the class definitions. > > My layer definition looks like: > > > > LAYER > > NAME test > > CONNECTIONTYPE OGR > > CONNECTION kafold.shp > > DATA "SELECT kafold.*, ms.* FROM kafold LEFT JOIN > > 'ODBC:admin/xxx at mydb'.ms ON kafold.hrsz=ms.hrsz" > > TYPE POLIGON > > STATUS DEFAULT > > CLASSITEM "ms.MYCOL" > > CLASS > > EXPRESSION /x/ > > COLOR 255 0 0 > > OUTLINECOLOR 0 0 0 > > END > > END > > > > If I remove CLASSITEM and EXPRESSION line the layer is drawn, so the DATA > > definition is good. > > I also tried to to remove CLASSITEM and give an expression like > > EXPRESSION ('[ms.MYCOL]' = 'x') > > > > I get an error massage in the apache error log > > libpng warning Incomplete compressed datastream in iCCP chunk > > > > Any idea? > > > > Thanks > > Zoltan > > > > > > > > > > > From ed at TOPOZONE.COM Fri May 27 11:36:01 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 27 May 2005 14:36:01 -0400 Subject: Resampling rasters from unprojected WMS sources ? Message-ID: Lars - It sounds like the right approach; could you post the MAP file if possible? Thanks. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lars V. Nielsen (HVM) Sent: Friday, May 27, 2005 9:14 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Resampling rasters from unprojected WMS sources ? I'm rendering a map in a UTM projection, but want to add a satellite image wms service that only delivers images in lat/long wgs84. No problem, I set the wms layer projection to epsg:4326, while my map (and other layers) use projection epsg:25832. And it works, or almost ... The sat image is distorted - "flattened" - so the vector line work layers on top of it exceeds the country coast line north and south. And quite significantly so. Shouldn't the raster re-projection algoritms in Mapserver take care of such distortions, or is mixing projected and unprojected coordinate systems (still) a no-no ? Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard & Meklenborg Rugaardsvej 55, DK-5000 Odense C Denmark http://www.hvm.dk From aaronr at ECOTRUST.ORG Fri May 27 12:45:39 2005 From: aaronr at ECOTRUST.ORG (Aaron Racicot) Date: Fri, 27 May 2005 12:45:39 -0700 Subject: How to create tiff world file - tfw Message-ID: Dave, Well there are several issues that you point out. I will try to address what I can and leave it to the rest of the list group to chime in if you still have questions: 1) This map you refer to comes with its own tfw file, so you can not just change that file with out changing the tif file as well... they must correspond. 2) The x/y pixel sizes are calculated by taking the extent and dividing by the number of pixels in a given direction. In the case of your map you sent me was 1984, 1593 pixels. You also told me the corners of the map: TL 35 00.0000 079 00.0000 BL 33 00.0000 079 00.0000 TR 35 00.0000 076 00.0000 BR 33 00.0000 076 00.0000 So, the x extent = 79-76 = 3 degrees. Divide by 1984 pixels and you get the 0.00151209677419. Do the same for y, remembering that it is negative (world file is upper left corner referenced). 3) As you can see, the world file is directly related to the extent of the image you are using, so you can not just "shift" or modify the world file. What you can do is keep the world file the same, but define the projection of the layer to be correct so it lines up. You will need to do something like (I have not tried this definition, it is just a guess) this for your layer: PROJECTION #Mercator Projection "proj=merc" "ellps=wgs84" "lon_0=0" "lat_ts=34.1666666666667" "x_0=0" "y_0=0" "units=feet" END 4) One last point on the tfw, the last 2 numbers are the upper left corner, but the center of the pixel, so you will have to add .5*pixel_width to the actual corner coordinate. Let me know if this does not make sense. 5) Oh, one more... the 2nd and 3rd numbers deal with rotation of the image and I have not dealt with images that have non-zero values here... you need to be careful with these and make sure not to get rid of them. Finally, I would suggest you read up on GDAL and specifically the utilities like gdalinfo which can go along way toward telling you about an image. It is a great way to check if your world file is interpreted correctly. Here is some sample output from the Bathy image you sent me: [aaronr at pearl nc_fish]$ gdalinfo Bathymap.tif Driver: GTiff/GeoTIFF Size is 1984, 1593 Coordinate System is `' Origin = (-79.000000,35.000000) Pixel Size = (0.00151210,-0.00125549) Metadata: TIFFTAG_XRESOLUTION=150 TIFFTAG_YRESOLUTION=150 Corner Coordinates: Upper Left ( -79.0000000, 35.0000000) Lower Left ( -79.0000000, 33.0000000) Upper Right ( -76.0000000, 35.0000000) Lower Right ( -76.0000000, 33.0000000) Center ( -77.5000000, 34.0000000) Band 1 Block=1984x1 Type=Byte, ColorInterp=Red Band 2 Block=1984x1 Type=Byte, ColorInterp=Green Band 3 Block=1984x1 Type=Byte, ColorInterp=Blue Band 4 Block=1984x1 Type=Byte, ColorInterp=Undefined [aaronr at pearl nc_fish]$ Hope this helps.... And BTW, try to direct general questions like this to both me and the list as there are many people out there with more knowledge in this area and the messages get in the archives to help others in the future. Good luck! Aaron -----Original Message----- From: Dave [mailto:wildrov at bellsouth.net] Sent: Friday, May 27, 2005 12:06 PM To: Aaron Racicot Subject: Re: [UMN_MAPSERVER-USERS] Easy $100.00 for the working example Greetings Aaron, I was messing with some other maps today and I have a questions about how you did the tfw file for the bathy map. I have an off the shelf Coastal Map in tif format. It comes with a tfw file. 8.0002234142550677 -0.000187013052522995370 -0.0000663554134505283410 -7.9996543918969518 -7200069.4222917529 3389600.3512264267 Name: NEW RIVER INLET TO CAPE FEAR NORTH CAROLINA Units: Feet Scale: 80000 Date: 07/14/01 Projection: Mercator Spheriod: WGS84 Central Meridian: 0.00 Latitude of True Scale: 34.1666666666667 False Easting: 0.00 False Northing: 0.00 Produced By: Annemieke Smith NOAA/OCS/CSDL/CGTP My guess is it is in a different datam. When I load it on the map server it winds up off in the ocean some where. SOooo....I have the tif and was just going to make my own. My question is how did you make the file for the Bathy map? Is there a program that you use for this? The first coefficient is the X pixel size and The fourth is the Y pixel size and I guess this is where my question is..... I know where the last two numbers come from...lat and long from the corners....but how did you get the first and forth? from the Bathy map.... 0.00151209677419 0 0 -0.00125549278092 -78.9992439516 34.9993722536 How do you figure out the x and y pixel size? Dave From msestudiente at YAHOO.COM Fri May 27 13:18:32 2005 From: msestudiente at YAHOO.COM (alex zendel) Date: Fri, 27 May 2005 13:18:32 -0700 Subject: New MapServer Website (beta) In-Reply-To: 6667 Message-ID: Are you referring to a replacement of the current MS website (i.e. http://mapserver.gis.umn.edu/)? Is it possible to preview/test-drive it? If so, what's the URL? Thanks az Kari Geurts wrote: I would like to give Howard a SPECIAL THANKS for working so hard on the new site and making it happen. Thanks also to all who have been putting in time to learn how to use the new site and converting the information from the original site to the new site. Three cheers! I think the new site will be great and provides an opportunity for the entire users community to get involved with MapServer. Thanks again, Kari -- Kari A. Geurts GIS and Remote Sensing Laboratory Department of Forest Resources University of Minnesota 1530 Cleveland Ave N. St. Paul, MN. 55108 Phone: 612-624-3459 Fax: 612-625-5212 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From msestudiente at YAHOO.COM Fri May 27 13:24:32 2005 From: msestudiente at YAHOO.COM (alex zendel) Date: Fri, 27 May 2005 13:24:32 -0700 Subject: MapServer book on schedule for publication this June? In-Reply-To: 6667 Message-ID: I tend to learn better from books than the internet, help files or any other digital documentation, so I'm anxious for the book. Is there a definitive release/publication date? Thnks! AZ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdport at VERITIME.COM Fri May 27 13:54:49 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri, 27 May 2005 16:54:49 -0400 Subject: MapServer book on schedule for publication this June? Message-ID: I'm really looking forward to the book as well, I believe there are actually two books due for release in the near future. One was an O'Reilley release and I can't remember the other. Pretty sure i've seen reference to two books here on this list over the last couple of months. -Jeff ----- Original Message ----- From: alex zendel To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Friday, May 27, 2005 4:24 PM Subject: [UMN_MAPSERVER-USERS] MapServer book on schedule for publication this June? I tend to learn better from books than the internet, help files or any other digital documentation, so I'm anxious for the book. Is there a definitive release/publication date? Thnks! AZ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at DMSOLUTIONS.CA Fri May 27 14:00:23 2005 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Fri, 27 May 2005 17:00:23 -0400 Subject: Maptools.org Store Message-ID: As many of you know - MapTools.org has now been in existence for 2 years and has quickly exceeded our expectations for traffic and interest, now averaging 15,000 downloads per month. You now have a chance to help support MapTools.org and to wear your Maptools community on your sleeve by purchasing shirts and mugs for some of your favourite technologies. Funds will help offset the growing bandwidth, infrastructure and maintenance costs of the site and keep it available as an important resource for the community. A link to the store is available in the http://www.maptools.org/ homepage. The store currently contains Maptools.org, Chameleon and ka-Map items, there's more to come, so please come back often. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From kevin at PEOPLEGIS.COM Fri May 27 15:02:09 2005 From: kevin at PEOPLEGIS.COM (Kevin Flanders) Date: Fri, 27 May 2005 18:02:09 -0400 Subject: attribute indexing Message-ID: I saw on maptools.org a short discussion that mentioned attribute indexing. It seems that you can leverage the OGR spatial indexing routine to achieve attribute indexing....but it is unclear how this is accomplished/setup. Any info out there? Kevin -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.17 - Release Date: 5/25/2005 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkim at SCIENCES.SDSU.EDU Fri May 27 15:33:29 2005 From: jkim at SCIENCES.SDSU.EDU (John Kim) Date: Fri, 27 May 2005 15:33:29 -0700 Subject: How to make interactive maps using PHP/Mapscript? Message-ID: I need a little help understanding how to make interactive maps using PHP/Mapscript. I couldn't find appropriate tutorials or examples, and the reference pages were not enough for me. Without Mapscript, I see that you get interactivity by providing a template html file, which is sent out to the client browser each time. With Mapscript, do you still provide a template file? If so, what about the PHP file? Where does that fit in? Can someone show me an example or a tutorial? I want the user to be able to pan/zoom/identify a polygon map. Thanks. -John -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkim at SCIENCES.SDSU.EDU Fri May 27 16:27:19 2005 From: jkim at SCIENCES.SDSU.EDU (John Kim) Date: Fri, 27 May 2005 16:27:19 -0700 Subject: How to make interactive maps using PHP/Mapscript? Message-ID: I just found the Mapscript example where the user can draw points on the map. Based on that, I can gather how to do zoom and pan: take the clicked coordinates, translate to map coordinates, reset the map extent, and redraw the map. Actually, the reference for MapObj is not starting to make sense to me. I see there are zoom methods. I'd still appreciate any online tutorials or examples. Thanks. John ----- Original Message ----- From: John Kim To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Friday, May 27, 2005 3:33 PM Subject: [UMN_MAPSERVER-USERS] How to make interactive maps using PHP/Mapscript? I need a little help understanding how to make interactive maps using PHP/Mapscript. I couldn't find appropriate tutorials or examples, and the reference pages were not enough for me. Without Mapscript, I see that you get interactivity by providing a template html file, which is sent out to the client browser each time. With Mapscript, do you still provide a template file? If so, what about the PHP file? Where does that fit in? Can someone show me an example or a tutorial? I want the user to be able to pan/zoom/identify a polygon map. Thanks. -John -------------- next part -------------- An HTML attachment was scrubbed... URL: From tylermitchell at SHAW.CA Fri May 27 16:30:46 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri, 27 May 2005 16:30:46 -0700 Subject: MapServer book on schedule for publication this June? Message-ID: > I'm really looking forward to the book as well, I > believe there are actually two books due for > release in the near future. One was an > O'Reilley release and I can't remember the other. > Pretty sure i've seen reference to two books here > on this list over the last couple of months. Jeff and AZ, that's the spirit! My book, to be published by O'Reilly, is due out in a few weeks and is on track. We hope to have it available for the Open Source Geospatial conference. It covers many topics, not just MapServer, see the sample chapter on the website: See: http://www.oreilly.com/catalog/webmapping The other MapServer-related book is by Bill Kropla, published by Apress. I'm not familiar with the timing for this book. I was pretty sure I'd read July or August but can't find the reference now. See: http://apress.com/book/bookDisplay.html?bID=443 Tyler From sgillies at FRII.COM Fri May 27 16:42:38 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 27 May 2005 17:42:38 -0600 Subject: MapServer book on schedule for publication this June? In-Reply-To: Message-ID: On May 27, 2005, at 5:30 PM, Tyler Mitchell wrote: >> I'm really looking forward to the book as well, I >> believe there are actually two books due for >> release in the near future. One was an >> O'Reilley release and I can't remember the other. >> Pretty sure i've seen reference to two books here >> on this list over the last couple of months. > > Jeff and AZ, that's the spirit! > My book, to be published by O'Reilly, is due out in a few weeks and is > on track. We hope to have it available for the Open Source Geospatial > conference. It covers many topics, not just MapServer, see the sample > chapter on the website: > See: http://www.oreilly.com/catalog/webmapping > > The other MapServer-related book is by Bill Kropla, published by > Apress. I'm not familiar with the timing for this book. I was pretty > sure I'd read July or August but can't find the reference now. > See: http://apress.com/book/bookDisplay.html?bID=443 > > Tyler > > Is that a snipe? Sean From nacional at CBS.UMN.EDU Fri May 27 17:08:46 2005 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Fri, 27 May 2005 19:08:46 -0500 Subject: MapServer book on schedule for publication this June? In-Reply-To: <81b5c0ca31653da4a1465963f3bd9c55@frii.com> Message-ID: On Friday 27 May 2005 18:42, Sean Gillies wrote: > On May 27, 2005, at 5:30 PM, Tyler Mitchell wrote: > >> I'm really looking forward to the book as well, I > >> believe there are actually two books due for > >> release in the near future. One was an > >> O'Reilley release and I can't remember the other. > >> Pretty sure i've seen reference to two books here > >> on this list over the last couple of months. > > > > Jeff and AZ, that's the spirit! > > My book, to be published by O'Reilly, is due out in a few weeks and is > > on track. We hope to have it available for the Open Source Geospatial > > conference. It covers many topics, not just MapServer, see the sample > > chapter on the website: > > See: http://www.oreilly.com/catalog/webmapping > > > > The other MapServer-related book is by Bill Kropla, published by > > Apress. I'm not familiar with the timing for this book. I was pretty > > sure I'd read July or August but can't find the reference now. > > See: http://apress.com/book/bookDisplay.html?bID=443 > > > > Tyler > > Is that a snipe? > > Sean Funny! I wasn't the only one thinking about it. After some googling, I decided it's a Eurasian woodcock (Scolopax rusticola): http://www.oiseaux.net/photos/johann.friedrich.naumann/becasse.des.bois.1.html From tylermitchell at SHAW.CA Fri May 27 17:51:00 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri, 27 May 2005 17:51:00 -0700 Subject: MapServer book on schedule for publication this June? Message-ID: > > See: http://www.oreilly.com/catalog/webmapping > Is that a snipe? Good eye Sean! Sure is. Tyler From ed at TOPOZONE.COM Fri May 27 18:11:03 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 27 May 2005 21:11:03 -0400 Subject: MapServer book on schedule for publication this June? Message-ID: Perry - Stick to mapping - that's no woodcock..... - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Pericles S. Nacionales Sent: Friday, May 27, 2005 8:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer book on schedule for publication this June? On Friday 27 May 2005 18:42, Sean Gillies wrote: > On May 27, 2005, at 5:30 PM, Tyler Mitchell wrote: > >> I'm really looking forward to the book as well, I believe there > >> are actually two books due for > >> release in the near future. One was an > >> O'Reilley release and I can't remember the other. > >> Pretty sure i've seen reference to two books here on this list over > >> the last couple of months. > > > > Jeff and AZ, that's the spirit! > > My book, to be published by O'Reilly, is due out in a few weeks and > > is on track. We hope to have it available for the Open Source > > Geospatial conference. It covers many topics, not just MapServer, > > see the sample chapter on the website: > > See: http://www.oreilly.com/catalog/webmapping > > > > The other MapServer-related book is by Bill Kropla, published by > > Apress. I'm not familiar with the timing for this book. I was > > pretty sure I'd read July or August but can't find the reference now. > > See: http://apress.com/book/bookDisplay.html?bID=443 > > > > Tyler > > Is that a snipe? > > Sean Funny! I wasn't the only one thinking about it. After some googling, I decided it's a Eurasian woodcock (Scolopax rusticola): http://www.oiseaux.net/photos/johann.friedrich.naumann/becasse.des.bois. 1.html From stigmata_blackangel at YAHOO.COM Fri May 27 18:34:49 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Fri, 27 May 2005 18:34:49 -0700 Subject: MapScript w/ PHP 5? Message-ID: Is PHP/MapScript known to be (in)compatible with PHP 5? Is anyone using MapScript with PHP5 as a DSO? __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/ From nacional at CBS.UMN.EDU Fri May 27 18:35:27 2005 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Fri, 27 May 2005 20:35:27 -0500 Subject: MapServer book on schedule for publication this June? In-Reply-To: <4BF377919225F449BB097CB76FFE9BC81885D6@ptolemy.topozone.com> Message-ID: I still think it is but I won't argue. ;) -Perry On Friday 27 May 2005 20:11, Ed McNierney wrote: > Perry - > > Stick to mapping - that's no woodcock..... > > - Ed > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Pericles S. Nacionales > Sent: Friday, May 27, 2005 8:09 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer book on schedule for > publication this June? > > On Friday 27 May 2005 18:42, Sean Gillies wrote: > > On May 27, 2005, at 5:30 PM, Tyler Mitchell wrote: > > >> I'm really looking forward to the book as well, I believe there > > >> are actually two books due for > > >> release in the near future. One was an > > >> O'Reilley release and I can't remember the other. > > >> Pretty sure i've seen reference to two books here on this list over > > >> > > >> the last couple of months. > > > > > > Jeff and AZ, that's the spirit! > > > My book, to be published by O'Reilly, is due out in a few weeks and > > > is on track. We hope to have it available for the Open Source > > > Geospatial conference. It covers many topics, not just MapServer, > > > see the sample chapter on the website: > > > See: http://www.oreilly.com/catalog/webmapping > > > > > > The other MapServer-related book is by Bill Kropla, published by > > > Apress. I'm not familiar with the timing for this book. I was > > > pretty sure I'd read July or August but can't find the reference > > now. > > > > See: http://apress.com/book/bookDisplay.html?bID=443 > > > > > > Tyler > > > > Is that a snipe? > > > > Sean > > Funny! I wasn't the only one thinking about it. After some googling, I > decided it's a Eurasian woodcock (Scolopax rusticola): > http://www.oiseaux.net/photos/johann.friedrich.naumann/becasse.des.bois. > 1.html From steve.lime at DNR.STATE.MN.US Fri May 27 19:25:44 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 27 May 2005 21:25:44 -0500 Subject: Mapserver and templetes in xml format Message-ID: You might try a slightly newer version of MapServer. I ran into the same issue outputting SVG via templates so I thought I surpressed the output of the version string for queries. I'll check the source to be sure. Steve >>> Piero Cavalieri 05/27/05 3:00 AM >>> Hi all, I'm using mapserver in cgi mode, with .NET framework. I build query String from user interface. Send it to the cgi using HttpWebRequest class and parse the response with HttpWebResponse. The template is very simple, ex: [img] [mapwidth] [mapheight] .. .. Variables are put in protected variables (in code behind), so then I can use them in the aspx Page. This seems to works fine (both for browse and query mode), however I noticed that the first line are additional info from Mapserver, ex: This prevent me from using an xml document for template file (as I would like to try instead of the html template file). Is there a way to remove info above, in the cgi response (without recompile sources) ? Many thanks Piero From bartvde at XS4ALL.NL Sat May 28 01:22:19 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 28 May 2005 10:22:19 +0200 Subject: MapScript w/ PHP 5? In-Reply-To: <20050528013449.89973.qmail@web53805.mail.yahoo.com> Message-ID: Hi Gregor, I did try it a few months ago on Windows, as an Apache module, and it worked okay. I only had some unexpected performance problems, but those might be unrelated. I did not investigate the performance problems. See also: http://lists.maptools.org/pipermail/chameleon/2005-March/001955.html Best regards, Bart On Sat, 28 May 2005 03:34:49 +0200, Gregor Mosheh wrote: > Is PHP/MapScript known to be (in)compatible with PHP > 5? Is anyone using MapScript with PHP5 as a DSO? > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Small Business - Try our new Resources site > http://smallbusiness.yahoo.com/resources/ > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From bartvde at XS4ALL.NL Sat May 28 01:27:49 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 28 May 2005 10:27:49 +0200 Subject: attribute indexing In-Reply-To: Message-ID: Hi Kevin, the only thing that comes to my mind is: http://www.gdal.org/ogr/ogr_sql.html http://www.gdal.org/ogr/drv_shapefile.html Best regards, Bart On Sat, 28 May 2005 00:02:09 +0200, Kevin Flanders wrote: > I saw on maptools.org a short discussion that mentioned attribute > indexing. > It seems that you can leverage the OGR spatial indexing routine to > achieve > attribute indexing....but it is unclear how this is accomplished/setup. > Any > info out there? > > > Kevin > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.322 / Virus Database: 266.11.17 - Release Date: 5/25/2005 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From cdaily at GMAIL.COM Sat May 28 09:41:14 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Sat, 28 May 2005 11:41:14 -0500 Subject: MapScript w/ PHP 5? In-Reply-To: Message-ID: We're running php/mapscript with php 5 and apache 2 as a DSO on linux. I've heard of issues some people had with mapscript running as a DSO, and I've read a lot about the thread-safety issues of php and apache 2, but I haven't seen anything regarding specific compatability problems between mapscript and php 5. So far I haven't had any problems, but we don't have a very heavy load on our mapserver. -Camden Daily Prudential Preferred Properties http://www.prupref.com On 5/28/05, Bart van den Eijnden wrote: > Hi Gregor, > > I did try it a few months ago on Windows, as an Apache module, and it > worked okay. I only had some unexpected performance problems, but those > might be unrelated. I did not investigate the performance problems. > > See also: > http://lists.maptools.org/pipermail/chameleon/2005-March/001955.html > > Best regards, > Bart > > On Sat, 28 May 2005 03:34:49 +0200, Gregor Mosheh > wrote: > > > Is PHP/MapScript known to be (in)compatible with PHP > > 5? Is anyone using MapScript with PHP5 as a DSO? > > > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Small Business - Try our new Resources site > > http://smallbusiness.yahoo.com/resources/ > > > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > From woodbri at SWOODBRIDGE.COM Sat May 28 10:32:02 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 28 May 2005 13:32:02 -0400 Subject: MapScript w/ PHP 5? In-Reply-To: <16264e07050528094174698be2@mail.gmail.com> Message-ID: You might want to read through this thread: http://lists.maptools.org/pipermail/chameleon/2005-March/001955.html I'm not sure if this is still relevant or if the reporters hard other issues. I seems the thread just stopped without any resolution. -Steve W Camden Daily wrote: > We're running php/mapscript with php 5 and apache 2 as a DSO on linux. > > I've heard of issues some people had with mapscript running as a DSO, > and I've read a lot about the thread-safety issues of php and apache > 2, but I haven't seen anything regarding specific compatability > problems between mapscript and php 5. > > So far I haven't had any problems, but we don't have a very heavy load > on our mapserver. > > -Camden Daily > Prudential Preferred Properties > http://www.prupref.com > > On 5/28/05, Bart van den Eijnden wrote: > >>Hi Gregor, >> >>I did try it a few months ago on Windows, as an Apache module, and it >>worked okay. I only had some unexpected performance problems, but those >>might be unrelated. I did not investigate the performance problems. >> >>See also: >>http://lists.maptools.org/pipermail/chameleon/2005-March/001955.html >> >>Best regards, >>Bart >> >>On Sat, 28 May 2005 03:34:49 +0200, Gregor Mosheh >> wrote: >> >> >>>Is PHP/MapScript known to be (in)compatible with PHP >>>5? Is anyone using MapScript with PHP5 as a DSO? >>> >>> >>> >>> >>> >>>__________________________________ >>>Do you Yahoo!? >>>Yahoo! Small Business - Try our new Resources site >>>http://smallbusiness.yahoo.com/resources/ >>> >> >> >> >>-- >>Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ >> > > From woodbri at SWOODBRIDGE.COM Sat May 28 11:15:22 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 28 May 2005 14:15:22 -0400 Subject: [OT] Question on javascript Message-ID: Hi, This is a little of topic, but it is related to building a web interface for mapserver. I have form in html that I do NOT want to submit. http://swoodbridge.com/~woodbri/t.html enter text in location and hit [enter], the form starts a submit and calls nosubmit() which puts up an alert and then return false; which should cancel the submit. But it does the submit anyway :( This is really annoying because I figure I'm doing something stupid, but I just don't see it. Any help would be appreciated. -Steve W. the html is: Submit Test Location:  From bartvde at XS4ALL.NL Sat May 28 11:34:23 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 28 May 2005 20:34:23 +0200 Subject: [OT] Question on javascript In-Reply-To: <4298B53A.1020005@swoodbridge.com> Message-ID: Steve, this works for me (I changed your button into a submit, and note the return statement in the onsubmit of the form): Submit Test
    Location: 
    Best regards, Bart On Sat, 28 May 2005 20:15:22 +0200, Stephen Woodbridge wrote: > Hi, > > This is a little of topic, but it is related to building a web interface > for mapserver. > > I have form in html that I do NOT want to submit. > > http://swoodbridge.com/~woodbri/t.html > > enter text in location and hit [enter], the form starts a submit and > calls nosubmit() which puts up an alert and then return false; which > should cancel the submit. But it does the submit anyway :( > > This is really annoying because I figure I'm doing something stupid, but > I just don't see it. > > Any help would be appreciated. > -Steve W. > > the html is: > > "http://www.w3.org/TR/html4/loose.dtd"> > > > Submit Test > > > > > >
    > Location:  > >
    > > > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From abe.gillespie at GMAIL.COM Sun May 29 15:46:26 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Sun, 29 May 2005 18:46:26 -0400 Subject: Trouble with php_mapscript Message-ID: I'm getting Warning: dl(): Unable to load dynamic library '/usr/local/lib/php/extensions/php_mapscript.so' - libgdal.so.1: cannot open shared object file: No such file or directory in /var/www/index.php on line 4 It's a fresh install with all the latest versions of libraries. libgdal.so.1 lives in /usr/local/lib. Is there a path I can set somewhere so that PHP / MapScript can find it? Thanks. -Abe From richard.greenwood at GMAIL.COM Sun May 29 17:02:28 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 30 May 2005 00:02:28 +0000 Subject: =?utf-8?b?W1VNTl9NQVBTRVJWRVItVVNFUlNd?= [OT] Question on javascript Message-ID: Stephen Woodbridge SWOODBRIDGE.COM> writes: > This is a little of topic, but it is related to building a web interface > for mapserver. > > I have form in html that I do NOT want to submit. >
    I think you need a return in there, e.g. The joy's of JavaScript... Alos check the case of onSubmit, since it's HTML it may not matter. And note that the onSubmit function doesn't get called it you do a form.submit() Rich From woodbri at SWOODBRIDGE.COM Sun May 29 17:55:23 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 29 May 2005 20:55:23 -0400 Subject: [UMN_MAPSERVER-USERS] [OT] Question on javascript In-Reply-To: Message-ID: Richard and Bart, Thank you! you are right. I did need the onsubmit="return nosubmit();" Bart mentioned that, but he also mentioned that he turned the button into a submit and I missed that other subtle little point, so I appreciate your follow up also. Thanks a bunch, -Steve Richard Greenwood wrote: > Stephen Woodbridge SWOODBRIDGE.COM> writes: > > >>This is a little of topic, but it is related to building a web interface >>for mapserver. >> >>I have form in html that I do NOT want to submit. > > >> > > > I think you need a return in there, e.g. > > The joy's of JavaScript... > Alos check the case of onSubmit, since it's HTML it may not matter. > And note that the onSubmit function doesn't get called it you do a form.submit() > > Rich > From Bonnie.Stewart at DLI.WA.GOV.AU Sun May 29 20:45:03 2005 From: Bonnie.Stewart at DLI.WA.GOV.AU (Bonnie Stewart) Date: Mon, 30 May 2005 11:45:03 +0800 Subject: Printing WMS layers in ArcMap 9.0 Message-ID: Hi all, Technically, I suspect this question would be more appropriate for an ArcGIS users forum, but from what I can find there's not a lot of help out there on ArcGIS issues, so I was hoping someone else from the Mapserver-users community might be using ArcMap, and might have encountered this issue before. I've got a couple of mapfiles up and running which are include various vector and raster layers, and mostly I'm accessing them via ArcMap 9.0. However, I'm having trouble getting ArcMap to print my WMS images - print preview always comes up blank, and if you go ahead and print a page anyway, it's blank. ArcMap's Help says that ArcMap converts maps to .emf (Windows Enhanced Metafile) for printing, and suggests manually doing an export to .emf and then opening up the .emf to see where the problem lies. Well, I've done this, and the .emf comes out entirely blank. To compare, I've tried exporting to .bmp, and that comes out fine. Is there a problem with exporting WMS images to .emf? Is it possible to get ArcMap to print from a different export format? I have absolutely no GIS experience, so it's probably something very obvious, but all help would be much appreciated! (Would be happy to provide the mapfiles etc, but as I can print fine in Internet Explorer, and ArcExplorer 4, I don't think it's an issue with the mapfiles..) Cheers, Bonnie ________________________________ Bonnie Stewart Research Officer Satellite Remote Sensing Services Department of Land Information Email: Bonnie.Stewart at dli.wa.gov.au Phone: 9387 0342 This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this in error, please notify the author by Return email to the sender. Information in this message not relating to the official business of DLI shall be understood as neither given nor endorsed by it. While every care is taken, it is recommended that you scan any attachments for viruses. DLI liability is limited to re-supplying affected attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.and.kerry at GMAIL.COM Mon May 30 00:23:02 2005 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Sun, 29 May 2005 23:23:02 -0800 Subject: Printing WMS layers in ArcMap 9.0 In-Reply-To: Message-ID: Bonnie- We use ArcMap extensively and it has become standard practice in our GIS shop to export everything to .pdf before printing. I am not sure about WMS bugs specifically, but the various other problems we have encountered while trying to print maps from the modern (8.x 9.x) Arc programs are often solved by using .pdf. good luck -Mike On 5/29/05, Bonnie Stewart wrote: > > Hi all, > > Technically, I suspect this question would be more appropriate for an ArcGIS > users forum, but from what I can find there's not a lot of help out there on > ArcGIS issues, so I was hoping someone else from the Mapserver-users > community might be using ArcMap, and might have encountered this issue > before. > > I've got a couple of mapfiles up and running which are include various > vector and raster layers, and mostly I'm accessing them via ArcMap 9.0. > However, I'm having trouble getting ArcMap to print my WMS images - print > preview always comes up blank, and if you go ahead and print a page anyway, > it's blank. > > ArcMap's Help says that ArcMap converts maps to .emf (Windows Enhanced > Metafile) for printing, and suggests manually doing an export to .emf and > then opening up the .emf to see where the problem lies. Well, I've done > this, and the .emf comes out entirely blank. To compare, I've tried > exporting to .bmp, and that comes out fine. > > Is there a problem with exporting WMS images to .emf? > Is it possible to get ArcMap to print from a different export format? > > I have absolutely no GIS experience, so it's probably something very > obvious, but all help would be much appreciated! > > (Would be happy to provide the mapfiles etc, but as I can print fine in > Internet Explorer, and ArcExplorer 4, I don't think it's an issue with the > mapfiles..) > > > Cheers, > > > Bonnie > > > ________________________________ > Bonnie Stewart > Research Officer > Satellite Remote Sensing Services > Department of Land Information > > Email: Bonnie.Stewart at dli.wa.gov.au > Phone: 9387 0342 > > This e-mail and any files transmitted with it are intended only for the use > of the addressee(s). It may contain information that is confidential and > privileged. If you are not an intended recipient, any use, interference > with, disclosure, distribution or copying of this material is unauthorised > and prohibited. If you receive this in error, please notify the author by > Return email to the sender. Information in this message not relating to the > official business of DLI shall be understood as neither given nor endorsed > by it. While every care is taken, it is recommended that you scan any > attachments for viruses. DLI liability is limited to re-supplying affected > attachments. > From Dejan.Gambin at PULA.HR Mon May 30 00:28:16 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Mon, 30 May 2005 09:28:16 +0200 Subject: Display progress bar while waiting for data Message-ID: Thanks Ed, I begin to understand all this stuff much better. Now, would it be hard for you to just give an example of creating an overview that exactly matches a predefined output scale so no resampling occurs. I will give you some informations: My tiff file has the following info: tiffinfo -s 5B15-19-DOF.tif 5B15-19-DOF.tif: Warning, unknown field with tag 700 (0x2bc) ignored. 5B15-19-DOF.tif: Warning, unknown field with tag 34665 (0x8769) ignored. TIFF Directory at offset 0x8 Subfile Type: (0 = 0x0) Image Width: 4500 Image Length: 6000 Resolution: 72, 72 pixels/inch Bits/Sample: 8 Compression Scheme: None Photometric Interpretation: RGB color Date & Time: "2004:12:14 17:10:55" Software: "Adobe Photoshop 7.0" Samples/Pixel: 3 Rows/Strip: 6000 Planar Configuration: single image plane Photoshop Data: , 19524 bytes 1 Strips: 0: [ 24478, 81000000] Suppose I want to build an overview that exactly matches 1:10000 scale. I am using RESOLUTION 96 in my map file (this is required for proper function of PDF print, as p.mapper doc says). I am using 18 tiff files similar to this one and I have built a TILEINDEX shapefile. I have a map SIZE 480 396, and the EXTENT 5404200.000000 4965100.000000 5414801.640459 4974500.000000. Are there enough informations? Sorry I learn best on real example so this would help me very much. regards, dejan -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Wednesday, May 25, 2005 6:45 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - Look at the GDAL documentation for the gdaladdo utility to find out about building overviews. That is a feature that's entirely internal to GDAL, not MapServer. The MapServer map file MINSCALE and MAXSCALE settings are used to limit the minimum and maximum view scales permitted for that map file. Your own user interface can constrain the scale values to specific settings. For example, on TopoZone you can look at this map: http://www.topozone.com/map.asp?lat=44.9225&lon=-115.92167 And you can use the View Scale menu on the left to change the "zoom level" or scale at which the map is viewed. The menu interface limits the View Scale not only to a minimum and maximum value, but also constrains it to be one of the 11 choices displayed. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: Gambin Dejan [mailto:Dejan.Gambin at pula.hr] Sent: Wednesday, May 25, 2005 9:20 AM To: Ed McNierney Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data OK thanks, you helped me very much. The thing is that I could not find much informations about overviews untill I noticed it is called "pyramids". Can you just tell me where do I set the output image resolution? There is RESOLUTION mapo file parameter but it only affects scale computations (as documentation says)? Or it is just the matter of map size parameter? Thanks very much Dejan Gambin -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Wednesday, May 25, 2005 3:13 PM To: Gambin Dejan Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - The first thing you need to do is understand your own application. Do you limit how far users can zoom out on the map? If so, there's no point in creating overviews beyond that point. If not, perhaps you should do so, or decide to ignore any performance problems when users zoom out too far (if it's not useful, they're not likely to do it very often, and it's probably not important). TIFF overviews are a GDAL construct, and it is GDAL that knows how to handle and use them. TIFF files can contain multiple "pages", a concept originally intended for multi-page documents like faxes. GDAL uses these pages to create multiple copies of the same image at different resolutions, all inside one file. So the MAP file or TILEINDEX just refers to the one file, and GDAL determines - based on the requested output image resolution - the overview that is closest to the requested resolution without being less than it. That is the image used for resampling. You can get the best possible peformance by constraining the map view scale to a list of specific values (with zoom scale radiobuttons or a menu) and then creating overviews to exactly match those output scales. Then you can be sure that no resampling will ever happen. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: Dejan Gambin [mailto:dejan.gambin at pula.hr] Sent: Wednesday, May 25, 2005 12:00 AM To: Ed McNierney Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks Ed. I am just curious to learn where can I find some elementary informations about overviews and levels, for example to know the file size stuff you mentioned? And how exactly MapServer uses overviews automatically without doing anything in map file? If the storage space is not the problem, how can I know how much levels do I need to create to get the best performance? What is the upper limit? 16? 32? 64? Can you give me some usefull links where I can learn all that? Thanks very much Dejan Gambin -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 24, 2005 4:28 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - You should be willing to apply overviews quite generously. If you have a single 80 MB image, a 2X overview (half the resolution) will require 20 MB more space, and a 4X overview will require 5 MB on top of that, so you will increase your storage from 80 MB to 105 MB. Adding 8x, 16x, 32x, 64x, AND 128x overviews (probably more than you need) will, in total, only add 2 MB more space and will provide fast display for those very "zoomed out" views. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Gambin Dejan [mailto:Dejan.Gambin at pula.hr] Sent: Tuesday, May 24, 2005 9:25 AM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks to all specially to Ed. I have created overviews of my GeoTIFF files with gdaladdo. Now I am using combination of tileindex and overviews and the layer is displayed at the full view much faster. I think that is it and I can't do anything more than this except increasing the bandwidth of my server and my users of course... Thanks very much Dejan Gambin -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 24, 2005 2:22 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - Have you created "overviews" with GDAL, or created other resampled, lower-resolution copies of your images to be used when the view is zoomed out? That's the first thing you should do, in order to fix the performance problem rather than try to display an animated advertisement for it! Look at the gdaladdo documentation to start. It will let you resample the images to lower resolution versions ONCE rather than doing it on the fly for every map request. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gambin Dejan Sent: Tuesday, May 24, 2005 6:08 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Thanks everybody participating in the discussion of displaying progress bar. I am aware of the problem but just want to describe something that is happening on my site. I have a set of 18 GeoTIFF ortophoto color images, each one has a size of 80MB. I have created tileindex shapefile to increase performance in reading the data and I have informed the users they should first have to zoom onto desired extent on the map and activate the ortophoto layer after that to speed up the loading. But users are just users and many of them are trying to activate the ortophoto layer before that (while the map is in full view) so the loading is slow. I have put a "Loading" message but the point is the following: when I load the image on the local network, I get the "Loading" message and I have to wait about 30 seconds, then the image is displayed at once. On the slow connection I also get "loading" message displayed about 30 seconds and then the map is displayed incrementally (that is ok). So my problem is those 30 seconds (that can arise to several minutes regarding the number of simultaneous users of course). Can I do something? Thanks, Dejan -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 17, 2005 6:35 PM To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Dejan - I'll second Frank's scepticism here. Most of the "Image Loading" animations you see on mapping sites are just that - animations. They're standalone animated GIFs and the like which cause pixels to twinkle on the user's screen but which have no relationship to the actual progress of the application. The server could burst into flames and the "Image Loading" graphic would keep dancing. The site Regina mentions falls into this category. IMHO, these kinds of graphics are primarily used to try to cover up slow map servers, and not to give users meaningful progress feedback. I think by far the best feedback mechanism for image load time is the map image itself. If you simply display the image in a format that browsers can easily render incrementally, then the user can see the image begin to appear and will get a good feel for how long it will take just by watching it. JPEG is NOT a good choice for this, but GIF and PNG images should render properly on most browsers. For example, look at this image: http://www.topozone.com/images/MtMonadnockTopo.gif Over a slow connection. You should see the large map image load incrementally, so you know things are working. If the image were smaller and in a frame (to define the final output size) it would be relatively easy to assess how much progress is being made. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dejan Gambin Sent: Monday, May 16, 2005 5:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Display progress bar while waiting for data Hi, Is it possible to create some kind of progress bar while waiting for raster data to be displayed. I have some raster data in GeoTIFF format that some users with a slow connection must wait for. I am wondering if I can show them a progress bar indicating "estimated" time they have to wait so they know and they can wait or cancel the process. Does anyone have a suggestion on what is the best way to inform users? thanks very much dejan From agomez at CCCMM.CESGA.ES Mon May 30 01:37:58 2005 From: agomez at CCCMM.CESGA.ES (Alberto Gomez) Date: Mon, 30 May 2005 10:37:58 +0200 Subject: OGR Join and class {Scanned} Message-ID: Try with this: 'ODBC:admin/xxx at mydb'.ms ms ON kafold.hrsz=ms.hrsz" ^ ^ ----- Original Message ----- From: "Siki Zoltan" To: "Alberto Gomez" Cc: Sent: Friday, May 27, 2005 11:17 PM Subject: Re: [UMN_MAPSERVER-USERS] OGR Join and class {Scanned} > Hi Alberto, > > Thanks for your suggestion. > Changing the table name results "Invalid Fiels name: kafold.MYCOL" > > Bye > Zoltan > > On Fri, 27 May 2005, Alberto Gomez wrote: > > > Hi Siki, > > > > Try to replace > > > > > CLASSITEM "ms.MYCOL" > > > > by CLASSITEM "kafold.MYCOL" > > > > I hope this help, > > Alberto > > > > > > > > > > ----- Original Message ----- > > From: "Siki Zoltan" > > To: > > Sent: Thursday, May 26, 2005 10:55 PM > > Subject: [UMN_MAPSERVER-USERS] OGR Join and class {Scanned} > > > > > > > Hi, > > > > > > I would like to define classes based on an OGR Joined (ODBC) column. > > > I was not able to make the class definitions. > > > My layer definition looks like: > > > > > > LAYER > > > NAME test > > > CONNECTIONTYPE OGR > > > CONNECTION kafold.shp > > > DATA "SELECT kafold.*, ms.* FROM kafold LEFT JOIN > > > 'ODBC:admin/xxx at mydb'.ms ON kafold.hrsz=ms.hrsz" > > > TYPE POLIGON > > > STATUS DEFAULT > > > CLASSITEM "ms.MYCOL" > > > CLASS > > > EXPRESSION /x/ > > > COLOR 255 0 0 > > > OUTLINECOLOR 0 0 0 > > > END > > > END > > > > > > If I remove CLASSITEM and EXPRESSION line the layer is drawn, so the DATA > > > definition is good. > > > I also tried to to remove CLASSITEM and give an expression like > > > EXPRESSION ('[ms.MYCOL]' = 'x') > > > > > > I get an error massage in the apache error log > > > libpng warning Incomplete compressed datastream in iCCP chunk > > > > > > Any idea? > > > > > > Thanks > > > Zoltan > > > > > > > > > > > > > > > > > > > > > > From Bonnie.Stewart at DLI.WA.GOV.AU Mon May 30 01:12:48 2005 From: Bonnie.Stewart at DLI.WA.GOV.AU (Bonnie Stewart) Date: Mon, 30 May 2005 16:12:48 +0800 Subject: Printing WMS layers in ArcMap 9.0 Message-ID: Cheers Mike. I've actually just found the answer in one of ESRI's user forums: http://forums.esri.com/Thread.asp?c=132&f=1341&t=157673&mc=2 Just in case that link moves: Subject Re: print wms service Author Graeme Browning Date May 10, 2005 Message Hi Bastian I came across something similar trying to use Export Map to PDF on a WMS layer that exported fine to JPG and was given this advice: "My guess is the JPG files export without problems because they at drawing at a resolution of 96 dpi. This is the default resolution for JPG exports. PDF exports, however, have a default resolution of 300 dpi. We've reproduced the draw failure here, it occurs in all formats when resolution is 300 dpi. The service layers are dropped in all export formats and during printing. This confirms that the failure is occuring at draw time. We looked further into the issue, and identified a limitaion on the server's end as the cause of the draw failure. When we peeked at the server's response from the request sent during the 300 dpi export, it returned an exception message stating, "Image is wider than maximum allowed width of 2000". In order to draw the service layer at a resolution of 300 dpi, ArcMap had requested an image of width=3063 height=2619. The server raised the exception instead of returning the image. While this layer draw failure is not caused by our export implementation, we probably need to do a better job of providing feedback when exceptions occur during output. When pixel size limit errors occur on draw to the screen, ArcMap displays an information dialog to inform the user of the exception. Output, however, does not provide any feedback mechanism. For now, the only workaround I can recommend is outputing your PDF file at a lower resolution, something close to 96 dpi. " In my case turning the resolution down to 150dpi achieved the result I was looking for - perhaps you can try doing the same. - Graeme Graeme Browning ESRI Australia While this was talking about JPG files, the problem was similar with .emf files. I tried exporting to .emf at 200 dpi instead of the default 300, and the image came out OK. When you go to print, you can't specify the dpi numerically, but there's a "Output Image Quality" slider from Fast -> Normal -> Best. I changed it to 'Fast' (default is 'Best'), and it printed (and previewed - but you have to cancel out of the Print dialog in order to preview) fine. Hopefully this info saves somebody else from the puzzled few days I just had :) Cheers, Bonnie ________________________________ Bonnie Stewart Research Officer Satellite Remote Sensing Services Department of Land Information Email: Bonnie.Stewart at dli.wa.gov.au Phone: 9387 0342 ________________________________ From: UMN MapServer Users List on behalf of Mike Davis Sent: Mon 30/05/2005 3:23 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [Maybe SPAM] Re: [UMN_MAPSERVER-USERS] Printing WMS layers in ArcMap 9.0 Bonnie- We use ArcMap extensively and it has become standard practice in our GIS shop to export everything to .pdf before printing. I am not sure about WMS bugs specifically, but the various other problems we have encountered while trying to print maps from the modern (8.x 9.x) Arc programs are often solved by using .pdf. good luck -Mike On 5/29/05, Bonnie Stewart wrote: > > Hi all, > > Technically, I suspect this question would be more appropriate for an ArcGIS > users forum, but from what I can find there's not a lot of help out there on > ArcGIS issues, so I was hoping someone else from the Mapserver-users > community might be using ArcMap, and might have encountered this issue > before. > > I've got a couple of mapfiles up and running which are include various > vector and raster layers, and mostly I'm accessing them via ArcMap 9.0. > However, I'm having trouble getting ArcMap to print my WMS images - print > preview always comes up blank, and if you go ahead and print a page anyway, > it's blank. > > ArcMap's Help says that ArcMap converts maps to .emf (Windows Enhanced > Metafile) for printing, and suggests manually doing an export to .emf and > then opening up the .emf to see where the problem lies. Well, I've done > this, and the .emf comes out entirely blank. To compare, I've tried > exporting to .bmp, and that comes out fine. > > Is there a problem with exporting WMS images to .emf? > Is it possible to get ArcMap to print from a different export format? > > I have absolutely no GIS experience, so it's probably something very > obvious, but all help would be much appreciated! > > (Would be happy to provide the mapfiles etc, but as I can print fine in > Internet Explorer, and ArcExplorer 4, I don't think it's an issue with the > mapfiles..) > > > Cheers, > > > Bonnie > > > ________________________________ > Bonnie Stewart > Research Officer > Satellite Remote Sensing Services > Department of Land Information > > Email: Bonnie.Stewart at dli.wa.gov.au > Phone: 9387 0342 > > This e-mail and any files transmitted with it are intended only for the use > of the addressee(s). It may contain information that is confidential and > privileged. If you are not an intended recipient, any use, interference > with, disclosure, distribution or copying of this material is unauthorised > and prohibited. If you receive this in error, please notify the author by > Return email to the sender. Information in this message not relating to the > official business of DLI shall be understood as neither given nor endorsed > by it. While every care is taken, it is recommended that you scan any > attachments for viruses. DLI liability is limited to re-supplying affected > attachments. > This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this in error, please notify the author by Return email to the sender. Information in this message not relating to the official business of DLI shall be understood as neither given nor endorsed by it. While every care is taken, it is recommended that you scan any attachments for viruses. DLI liability is limited to re-supplying affected attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ferencik.ioan at PERSONAL.RO Mon May 30 04:21:44 2005 From: ferencik.ioan at PERSONAL.RO (Jano Ferencik) Date: Mon, 30 May 2005 14:21:44 +0300 Subject: Logo Message-ID: Hi list a short question..where do I find nice logos with Chameleon, Mapserver and DM solutions...a link would be excellent... thanks.. ___________________________ Cv-ul tau ia 500 euro/luna! http://500.myjob.ro From dgadoury at DMSOLUTIONS.CA Mon May 30 05:05:52 2005 From: dgadoury at DMSOLUTIONS.CA (Dean Gadoury) Date: Mon, 30 May 2005 08:05:52 -0400 Subject: Logo In-Reply-To: <200505301121.j4UBLi901129@zerg.astral.ro> Message-ID: I don't know if there is a definitive MapServer logo, but you can get a Chameleon logo and a couple other DM Solutions related logos at: http://www.cafepress.com/maptools and/or http://dmsolutions.ca Jano Ferencik wrote: > Hi list > a short question..where do I find nice logos with Chameleon, Mapserver and DM > solutions...a link would be excellent... > thanks.. > > > ___________________________ > Cv-ul tau ia 500 euro/luna! > http://500.myjob.ro > -- Dean Gadoury DM Solutions Group 30 Rosemount Ave. Suite 200 Ottawa, Ontario. K1Y 1P4 613.565.5056 ext. 24 dgadoury at dmsolutions.ca www.dmsolutions.ca From tylermitchell at SHAW.CA Mon May 30 06:06:21 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 30 May 2005 06:06:21 -0700 Subject: Printing WMS layers in ArcMap 9.0 In-Reply-To: Message-ID: That is the right problem. You will find results vary depending on whose WMS you are using. MapServer has a default image size limit of 2,000, I think. It can be overridden at MapServer compile time. I use another (IMS) service that is limited to 1024. It will then be all related the output resolution of the device or export file you select. In most cases, at a resolution of about 120DPI you might get an 8.5 x 11 page?? Good luck - it's thoroughly irritating. Tyler On May 30, 2005 01:12 am, Bonnie Stewart wrote: > Cheers Mike. > > I've actually just found the answer in one of ESRI's user forums: > http://forums.esri.com/Thread.asp?c=132&f=1341&t=157673&mc=2 > > Just in case that link moves: > > Subject Re: print wms service > Author Graeme Browning > Date May 10, 2005 > Message > > Hi Bastian > > I came across something similar trying to use Export Map to PDF on a WMS > layer that exported fine to JPG and was given this advice: > > "My guess is the JPG files export without problems because they at drawing > at a resolution of 96 dpi. This is the default resolution for JPG exports. > PDF exports, however, have a default resolution of 300 dpi. We've > reproduced the draw failure here, it occurs in all formats when resolution > is 300 dpi. The service layers are dropped in all export formats and during > printing. This confirms that the failure is occuring at draw time. > > We looked further into the issue, and identified a limitaion on the > server's end as the cause of the draw failure. When we peeked at the > server's response from the request sent during the 300 dpi export, it > returned an exception message stating, "Image is wider than maximum allowed > width of 2000". In order to draw the service layer at a resolution of 300 > dpi, ArcMap had requested an image of width=3063 height=2619. The server > raised the exception instead of returning the image. > > While this layer draw failure is not caused by our export implementation, > we probably need to do a better job of providing feedback when exceptions > occur during output. When pixel size limit errors occur on draw to the > screen, ArcMap displays an information dialog to inform the user of the > exception. Output, however, does not provide any feedback mechanism. For > now, the only workaround I can recommend is outputing your PDF file at a > lower resolution, something close to 96 dpi. " > > In my case turning the resolution down to 150dpi achieved the result I was > looking for - perhaps you can try doing the same. > > - Graeme > > > Graeme Browning > ESRI Australia > > While this was talking about JPG files, the problem was similar with .emf > files. I tried exporting to .emf at 200 dpi instead of the default 300, and > the image came out OK. When you go to print, you can't specify the dpi > numerically, but there's a "Output Image Quality" slider from Fast -> > Normal -> Best. I changed it to 'Fast' (default is 'Best'), and it printed > (and previewed - but you have to cancel out of the Print dialog in order to > preview) fine. > > Hopefully this info saves somebody else from the puzzled few days I just > had :) > > > Cheers, > > > Bonnie > > ________________________________ > Bonnie Stewart > Research Officer > Satellite Remote Sensing Services > Department of Land Information > > Email: Bonnie.Stewart at dli.wa.gov.au > Phone: 9387 0342 > > ________________________________ > > From: UMN MapServer Users List on behalf of Mike Davis > Sent: Mon 30/05/2005 3:23 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [Maybe SPAM] Re: [UMN_MAPSERVER-USERS] Printing WMS layers in > ArcMap 9.0 > > > > Bonnie- > > We use ArcMap extensively and it has become standard practice in our > GIS shop to export everything to .pdf before printing. > > I am not sure about WMS bugs specifically, but the various other > problems we have encountered while trying to print maps from the > modern (8.x 9.x) Arc programs are often solved by using .pdf. > > good luck > > -Mike > > On 5/29/05, Bonnie Stewart wrote: > > Hi all, > > > > Technically, I suspect this question would be more appropriate for an > > ArcGIS users forum, but from what I can find there's not a lot of help > > out there on ArcGIS issues, so I was hoping someone else from the > > Mapserver-users community might be using ArcMap, and might have > > encountered this issue before. > > > > I've got a couple of mapfiles up and running which are include various > > vector and raster layers, and mostly I'm accessing them via ArcMap 9.0. > > However, I'm having trouble getting ArcMap to print my WMS images - print > > preview always comes up blank, and if you go ahead and print a page > > anyway, it's blank. > > > > ArcMap's Help says that ArcMap converts maps to .emf (Windows Enhanced > > Metafile) for printing, and suggests manually doing an export to .emf and > > then opening up the .emf to see where the problem lies. Well, I've done > > this, and the .emf comes out entirely blank. To compare, I've tried > > exporting to .bmp, and that comes out fine. > > > > Is there a problem with exporting WMS images to .emf? > > Is it possible to get ArcMap to print from a different export format? > > > > I have absolutely no GIS experience, so it's probably something very > > obvious, but all help would be much appreciated! > > > > (Would be happy to provide the mapfiles etc, but as I can print fine in > > Internet Explorer, and ArcExplorer 4, I don't think it's an issue with > > the mapfiles..) > > > > > > Cheers, > > > > > > Bonnie > > > > > > ________________________________ > > Bonnie Stewart > > Research Officer > > Satellite Remote Sensing Services > > Department of Land Information > > > > Email: Bonnie.Stewart at dli.wa.gov.au > > Phone: 9387 0342 > > > > This e-mail and any files transmitted with it are intended only for the > > use of the addressee(s). It may contain information that is confidential > > and privileged. If you are not an intended recipient, any use, > > interference with, disclosure, distribution or copying of this material > > is unauthorised and prohibited. If you receive this in error, please > > notify the author by Return email to the sender. Information in this > > message not relating to the official business of DLI shall be understood > > as neither given nor endorsed by it. While every care is taken, it is > > recommended that you scan any attachments for viruses. DLI liability is > > limited to re-supplying affected attachments. > > This e-mail and any files transmitted with it are intended only for the use > of the addressee(s). It may contain information that is confidential and > privileged. If you are not an intended recipient, any use, interference > with, disclosure, distribution or copying of this material is unauthorised > and prohibited. If you receive this in error, please notify the author by > Return email to the sender. Information in this message not relating to the > official business of DLI shall be understood as neither given nor endorsed > by it. While every care is taken, it is recommended that you scan any > attachments for viruses. DLI liability is limited to re-supplying affected > attachments. From murilo.yoshida at AGX.COM.BR Mon May 30 06:40:54 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Mon, 30 May 2005 10:40:54 -0300 Subject: RES: [UMN_MAPSERVER-USERS] New MapServer Website (beta) In-Reply-To: Message-ID: Hi all, I "joined" the new mapserver site .. and then I tried to see a how-to, about vector data . Then the site threw an insufficient privilege error . Is that right? Bye, Murilo -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Liz Godwin Enviada em: quinta-feira, 26 de maio de 2005 11:03 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] New MapServer Website (beta) That's great! Good work! I look forward to using the new site! On 5/25/05, Howard Butler wrote: All, I am pleased to announce the beta release of the new MapServer website. The site is located at < http://ms.gis.umn.edu>. I, Kari Guerts, the mapserver-docs team, and the developers have been working to develop a site that streamlines documentation development, allows through-the-web editing (but not a free-for-all like a wiki), provides searching capabilites, provides support for multi-lingual documents, and provides for structured content types. The new website was developed using Plone >, with some additional libraries that add functionality and some minor coding to make things fit the project better. Some examples of documents on the site include the Mapfile reference < http://ms.gis.umn.edu/docs/reference/mapfile/ >, the howto list , and a "Getting started with MapServer" document (only exists on the new site thanks to David Fawcett) . As a user with this site, you can now participate in the documentation of MapServer. By "joining" the site, you can create content, submit howtos, faqs, and tutorials for inclusion in the site, add comments to existing documents, and help translate documents into your native language. I will be working on documents to describe how you can participate in the coming weeks. Once you join the site, make sure to go to your "Personal Preferences" page and update your email alert preference, your picture if you want, and your latitude/longitude (Sean posted some details of how this can be used here ). The website should be considered beta-level, much like the beta releases of the software. If you find an issue, please let me know and/or file a bug in bugzilla in the website category, and I'll try to get to it. The two sites will continue to run in parallel for a while, very likely until after the release of 4.6 and MUM3, to allow it to grow out of its initial bugs, to allow for ample time for people to get comfortable with it, and to not add another item to the conference crunch. Much of the existing documentation on the blue site has been migrated to the new site, although things might not be perfectly in sync yet. We're working to migrate things over as time permits. There are also a few other website bugs here and there, the logo is just a place holder, and I'm sure there are many other issues I don't even know about yet ;). The general structure is there, however, with much of the content filled out so you can get a feel for how things will look in the future. After the beta period, the site will probably be moved to < http://mapserver.gis.umn.edu> (and continue to exist at its current address), and the stuff in the blue site will be preserved and made available on something like < http://old.mapserver.gis.umn.edu>. I would like to thank Kari, Steve, Tom Burk and the UMN team, the mapserver-docs crew, and the developers for all of their help and input on this project. Howard PS. Remember that there is a server outage tonight, so it might not be available due to the outage. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu at IASTATE.EDU Mon May 30 07:05:45 2005 From: hobu at IASTATE.EDU (Howard Butler) Date: Mon, 30 May 2005 09:05:45 -0500 Subject: RES: [UMN_MAPSERVER-USERS] New MapServer Website (beta) In-Reply-To: Message-ID: Yes. This is a bug. Please file a bugzilla report. I will try to get to it this week. Thanks Howard At 10:40 AM -0300 5/30/05, Murilo Lacerda Yoshida wrote: >This is a multi-part message in MIME format. > >------=_NextPart_000_0001_01C56504.1160AC70 >Content-Type: text/plain; > charset="us-ascii" >Content-Transfer-Encoding: 7bit > > Hi all, > I "joined" the new mapserver site .. and then I tried to see a how-to, >about vector data . Then the site threw an insufficient privilege error >. Is that right? > Bye, > Murilo > >-----Mensagem original----- >De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em >nome de Liz Godwin >Enviada em: quinta-feira, 26 de maio de 2005 11:03 >Para: MAPSERVER-USERS at LISTS.UMN.EDU >Assunto: Re: [UMN_MAPSERVER-USERS] New MapServer Website (beta) > >That's great! Good work! I look forward to using the new site! >On 5/25/05, Howard Butler wrote: >All, > >I am pleased to announce the beta release of the new MapServer >website. The site is located at < http://ms.gis.umn.edu>. > >I, Kari Guerts, the mapserver-docs team, and the developers have been >working to develop a site that streamlines documentation development, >allows through-the-web editing (but not a free-for-all like a wiki), >provides searching capabilites, provides support for multi-lingual >documents, and provides for structured content types. The new website >was >developed using Plone >, with some >additional libraries >that add functionality and some minor coding to make things fit the >project >better. > >Some examples of documents on the site include the Mapfile reference >< http://ms.gis.umn.edu/docs/reference/mapfile/ > >, the howto list >, and a "Getting started with >MapServer" >document (only exists on the new site thanks to David Fawcett) >. > >As a user with this site, you can now participate in the documentation >of >MapServer. By "joining" the site, you can create content, submit >howtos, >faqs, and tutorials for inclusion in the site, add comments to existing >documents, and help translate documents into your native language. I >will >be working on documents to describe how you can participate in the >coming >weeks. Once you join the site, make sure to go to your "Personal >Preferences" page and update your email alert preference, your picture >if >you want, and your latitude/longitude (Sean posted some details of how >this >can be used here ). > >The website should be considered beta-level, much like the beta releases >of >the software. If you find an issue, please let me know and/or file a >bug >in bugzilla in the website category, and I'll try to get to it. The two >sites will continue to run in parallel for a while, very likely until >after >the release of 4.6 and MUM3, to allow it to grow out of its initial >bugs, >to allow for ample time for people to get comfortable with it, and to >not >add another item to the conference crunch. > >Much of the existing documentation on the blue site has been migrated to >the new site, although things might not be perfectly in sync yet. We're > >working to migrate things over as time permits. There are also a few >other >website bugs here and there, the logo is just a place holder, and I'm >sure >there are many other issues I don't even know about yet ;). The general > >structure is there, however, with much of the content filled out so you >can >get a feel for how things will look in the future. After the beta >period, >the site will probably be moved to < >http://mapserver.gis.umn.edu> (and >continue to exist at its current address), and the stuff in the blue >site >will be preserved and made available on something like >< http://old.mapserver.gis.umn.edu>. > >I would like to thank Kari, Steve, Tom Burk and the UMN team, the >mapserver-docs crew, and the developers for all of their help and input >on >this project. > >Howard > >PS. Remember that there is a server outage tonight, so it might not be >available due to the outage. > > >------=_NextPart_000_0001_01C56504.1160AC70 >Content-Type: text/html; > charset="us-ascii" >Content-Transfer-Encoding: quoted-printable > >xmlns:w=3D"urn:schemas-microsoft-com:office:word" = >xmlns=3D"http://www.w3.org/TR/REC-html40"> > > >charset=3Dus-ascii"> > > > > > > > > > > > >style=3D'tab-interval:35.4pt'> > >
    > >

    lang=3DEN-US >style=3D'font-size:10.0pt;font-family:Arial;color:navy;mso-ansi-language:= >EN-US'>style=3D'mso-spacerun:yes'>  Hi = >all,

    > >

    lang=3DEN-US >style=3D'font-size:10.0pt;font-family:Arial;color:navy;mso-ansi-language:= >EN-US'>style=3D'mso-spacerun:yes'>  I “joined” the new = >mapserver >site .. and then I = >tried to >see a how-to, about vector data … Then the site threw an = >insufficient >privilege error … Is that right?

    > >

    lang=3DEN-US >style=3D'font-size:10.0pt;font-family:Arial;color:navy;mso-ansi-language:= >EN-US'>style=3D'mso-spacerun:yes'>  = >Bye,

    > >

    lang=3DEN-US >style=3D'font-size:10.0pt;font-family:Arial;color:navy;mso-ansi-language:= >EN-US'>style=3D'mso-spacerun:yes'>     = >Murilo

    > >

    lang=3DEN-US >style=3D'font-size:10.0pt;font-family:Arial;color:navy;mso-ansi-language:= >EN-US'> 

    > >

    face=3DTahoma>lang=3DEN-US = >style=3D'font-size:10.0pt;font-family:Tahoma;mso-ansi-language:EN-US'>---= >--Mensagem >original-----
    >De: UMN MapServer Users = >List >[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] style=3D'font-weight:bold'>Em >nome
    style=3D'font-size:10.0pt;font-family:Tahoma;font-weight:bold'>de = >size=3D2 face=3DTahoma>style=3D'font-size:10.0pt;font-family:Tahoma'>Liz Godwin
    >Enviada em: quinta-feira, = >26 de >maio de 2005 11:03
    >Para: MAPSERVER-class=3DGramE>USERS at LISTS.UMN.EDU
    >Assunto: Re: = >[UMN_MAPSERVER-USERS] >New MapServer Website = >(beta)

    > >

    face=3D"Times New Roman">style=3D'font-size:12.0pt'> 

    > >

    style=3D'mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom: >12.0pt;margin-left:35.4pt'>style=3D'font-size:12.0pt'>That's great!  Good work!  I look = >forward to >using the new site!

    > >
    > >

    class=3Dgmailquote>size=3D3 face=3D"Times New Roman">On = >5/25/05, style=3D'font-weight:bold'>Howard Butler <href=3D"mailto:hobu at iastate.edu">hobu at iastate.edu> = >wrote: >

    > >

    class=3DGramE>face=3D"Times New Roman">style=3D'font-size:12.0pt'>All,
    >
    >I am pleased to announce the beta release of the new MapServer
    >website.  The site is located at < href=3D"http://ms.gis.umn.edu">http://ms.gis.umn.edu>.
    >
    >I, Kari Guerts, the mapserver-docs team, and the developers have = >been
    >working to develop a site that streamlines documentation class=3DGramE>development,
    >allows through-the-web editing (but not a free-for-all like a wiki), = >
    >provides searching capabilites, provides support for multi-lingual
    >documents, and provides for structured content types.  The new >website was
    >developed using Plone <http://plone.org = >>, >with some additional libraries
    >that add functionality and some minor coding to make things fit the = >project
    >better.
    >
    >Some examples of documents on the site include the Mapfile reference
    >< = >http://ms.gis.umn.edu/docs/reference/mapfile/>, >the howto list
    ><href=3D"http://ms.gis.umn.edu/docs/howto">http://ms.gis.umn.edu/docs/howt= >o>, >and a "Getting started with MapServer"
    >document (only exists on the new site thanks to David Fawcett)
    ><href=3D"http://ms.gis.umn.edu/new_users/">http://ms.gis.umn.edu/new_users= >/>.
    >
    >As a user with this site, you can now participate in the documentation = >of
    >MapServer.  By "joining" = >the site, >you can create content, submit howtos,
    >faqs, and tutorials for inclusion in the site, add comments to = >existing
    >documents, and help translate documents into your native = >language.  I >will
    >be working on documents to describe how you can participate in the = >coming
    >weeks.  Once you join the site, make sure to go to your = >"Personal
    >Preferences" page and update your email alert preference, your = >picture if
    >you want, and your latitude/longitude (Sean posted some details of how = >this
    >can be used here <href=3D"http://zcologia.com/news/33">http://zcologia.com/news/33>)= >.
    >
    >The website should be considered beta-level, much like the beta releases = >of
    >the software.  If you find an issue, please let me know and/or = >file a >bug
    >in bugzilla in the website category, and I'll try to get to = >it.  The >two
    >sites will continue to run in parallel for a while, very likely until = >after
    >the release of 4.6 and MUM3, to allow it to grow out of its initial = >bugs,
    >to allow for ample time for people to get comfortable with it, and to = >not
    >add another item to the conference crunch.
    >
    >Much of the existing documentation on the blue site has been migrated = >to
    >the new site, although things might not be perfectly in sync >yet.  We're
    >working to migrate things over as time >permits.  There are also a few other
    >website bugs here and there, the logo is just a place holder, and I'm = >sure
    >there are many other issues I don't even know about class=3DGramE>yet ;).  The >general
    >structure is there, however, with much of the content filled out so you = >can
    >get a feel for how things will look in the future.  After the = >beta >period,
    >the site will probably be moved to <href=3D"http://mapserver.gis.umn.edu"> >http://mapserver.gis.umn.edu> (and
    >continue to exist at its current address), and the stuff in the blue = >site
    >will be preserved and made available on something like
    >< >http://old.mapserver.gis.umn.edu>.
    >
    >I would like to thank Kari, Steve, Tom Burk and the UMN team, the
    >mapserver-docs crew, and the developers for all of their help and input = >on
    >this project.
    >
    >Howard
    >
    >PS.  Remember that there is a server outage tonight, so it = >might not >be
    >available due to the outage.

    > >
    > >

    face=3D"Times New Roman">style=3D'font-size:12.0pt'> 

    > >
    > > > > > >------=_NextPart_000_0001_01C56504.1160AC70-- From f.iacotucci at INFINITO.IT Mon May 30 07:17:23 2005 From: f.iacotucci at INFINITO.IT (Francesco Iacotucci) Date: Mon, 30 May 2005 16:17:23 +0200 Subject: How to make interactive maps using PHP/Mapscript? In-Reply-To: <012601c56313$a3a141f0$efebbf82@JOHNKIM> Message-ID: you can see an example of interactive map realised with p.mapper with some difference..... ask me if you are interested.... http://jupiter2.remuna.org/piante/Archeologico3/index.html Francesco John Kim ha scritto: > I just found the Mapscript example where the user can draw points on > the map. Based on that, I can gather how to do zoom and pan: take the > clicked coordinates, translate to map coordinates, reset the map > extent, and redraw the map. Actually, the reference for MapObj is not > starting to make sense to me. I see there are zoom methods. > > I'd still appreciate any online tutorials or examples. > > Thanks. > > John > > > > > ----- Original Message ----- > *From:* John Kim > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > > *Sent:* Friday, May 27, 2005 3:33 PM > *Subject:* [UMN_MAPSERVER-USERS] How to make interactive maps > using PHP/Mapscript? > > I need a little help understanding how to make interactive maps > using PHP/Mapscript. I couldn't find appropriate tutorials or > examples, and the reference pages were not enough for me. > > Without Mapscript, I see that you get interactivity by providing a > template html file, which is sent out to the client browser each > time. With Mapscript, do you still provide a template file? If so, > what about the PHP file? Where does that fit in? > > Can someone show me an example or a tutorial? I want the user to > be able to pan/zoom/identify a polygon map. > > Thanks. > > -John > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Anti-Virus. >Version: 7.0.322 / Virus Database: 267.0.0 - Release Date: 27/05/2005 > > From siki at AGT.BME.HU Mon May 30 10:26:20 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 30 May 2005 16:26:20 -0100 Subject: OGR Join and class {Scanned} In-Reply-To: Message-ID: Hi Alberto, Thanks for your suggestion, but the alias name doesn't help. Everything is working without any error, but mapserver doesn't see the columns of the joined table (making thematic map or quering the layer). I decided to write a program making the join. I have to use dinamic data for the join. Does anybody use ogr join in mapserver succesfully? Thanks Zoltan On Mon, 30 May 2005, Siki Zoltan wrote: > Try with this: > > 'ODBC:admin/xxx at mydb'.ms ms ON kafold.hrsz=ms.hrsz" > ^ > ^ > ----- Original Message ----- > From: "Siki Zoltan" > To: "Alberto Gomez" > Cc: > Sent: Friday, May 27, 2005 11:17 PM > Subject: Re: [UMN_MAPSERVER-USERS] OGR Join and class {Scanned} > > > > Hi Alberto, > > > > Thanks for your suggestion. > > Changing the table name results "Invalid Fiels name: kafold.MYCOL" > > > > Bye > > Zoltan > > > > On Fri, 27 May 2005, Alberto Gomez wrote: > > > > > Hi Siki, > > > > > > Try to replace > > > > > > > CLASSITEM "ms.MYCOL" > > > > > > by CLASSITEM "kafold.MYCOL" > > > > > > I hope this help, > > > Alberto > > > > > > > > > > > > > > > ----- Original Message ----- > > > From: "Siki Zoltan" > > > To: > > > Sent: Thursday, May 26, 2005 10:55 PM > > > Subject: [UMN_MAPSERVER-USERS] OGR Join and class {Scanned} > > > > > > > > > > Hi, > > > > > > > > I would like to define classes based on an OGR Joined (ODBC) column. > > > > I was not able to make the class definitions. > > > > My layer definition looks like: > > > > > > > > LAYER > > > > NAME test > > > > CONNECTIONTYPE OGR > > > > CONNECTION kafold.shp > > > > DATA "SELECT kafold.*, ms.* FROM kafold LEFT JOIN > > > > 'ODBC:admin/xxx at mydb'.ms ON kafold.hrsz=ms.hrsz" > > > > TYPE POLIGON > > > > STATUS DEFAULT > > > > CLASSITEM "ms.MYCOL" > > > > CLASS > > > > EXPRESSION /x/ > > > > COLOR 255 0 0 > > > > OUTLINECOLOR 0 0 0 > > > > END > > > > END > > > > > > > > If I remove CLASSITEM and EXPRESSION line the layer is drawn, so the > DATA > > > > definition is good. > > > > I also tried to to remove CLASSITEM and give an expression like > > > > EXPRESSION ('[ms.MYCOL]' = 'x') > > > > > > > > I get an error massage in the apache error log > > > > libpng warning Incomplete compressed datastream in iCCP chunk > > > > > > > > Any idea? > > > > > > > > Thanks > > > > Zoltan > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From saengpole at YAHOO.COM Mon May 30 07:33:54 2005 From: saengpole at YAHOO.COM (Krung Saengpole) Date: Mon, 30 May 2005 07:33:54 -0700 Subject: Simple question about scalebar. Message-ID: Dear all, Whether or not I embeded scalebar in map, it showed wrong distance, e.g. it should be 18.3 km but it showed 18300 km. Nontheless I use projection or not. What I have to specially set to get right scalebar? TIA Krung __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From stigmata_blackangel at YAHOO.COM Mon May 30 09:41:26 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Mon, 30 May 2005 09:41:26 -0700 Subject: RAM vs Performance, how much is more than enough? Message-ID: So, I was browsing through server hardware offerings from various companies, and considering the need for RAM. What I'm wondering is how much memory is really helpful for a system that's serving up MapServer, static HTML, and some PHP/MapScript stuff. I've noticed that MapServer doesn't use much RAM. The supporting webserver (Apache) isn't particularly memory-consumptive either. The only real memory gobbler of the setup seems to be the database, which would run on a dedicated server. I know the OS will use spare RAM for filesystem cache, which is always good, but I'm curious as to whether there's a noticable difference between serving up just MapServer with 256 MB of RAM versus 2 GB. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From kenlord at GMAIL.COM Mon May 30 09:43:20 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Mon, 30 May 2005 09:43:20 -0700 Subject: Printing WMS layers in ArcMap 9.0 In-Reply-To: <200505300606.21899.tylermitchell@shaw.ca> Message-ID: I've encountered the same problem. I can see wms layers in ArcGIS 9, but not print or export them, the rest of the map prints or exports, but nothing from wms is included. I'll have to try the low resolution suggestion and see if it works for me, I am surprised it works for you. For me it appears that ArcMap just doesnt give any time for the wms layers to regenerate when it regenerates everything for the print/export, but the reason given makes sense, I've seen wms layers fail to draw when requesting too large of an area. I would have assumed that they would request smaller tiles to fill the map if the area/resolution is too high, but it is ESRI, so perhaps we'll see it in service pack 4. Cheers, Ken Lord Vancouver BC On 5/30/05, Tyler Mitchell wrote: > > That is the right problem. You will find results vary depending on whose > WMS > you are using. MapServer has a default image size limit of 2,000, I think. > It can be overridden at MapServer compile time. I use another (IMS) > service > that is limited to 1024. It will then be all related the output resolution > of the device or export file you select. In most cases, at a resolution of > about 120DPI you might get an 8.5 x 11 page?? Good luck - it's thoroughly > irritating. > > Tyler > > On May 30, 2005 01:12 am, Bonnie Stewart wrote: > > Cheers Mike. > > > > I've actually just found the answer in one of ESRI's user forums: > > http://forums.esri.com/Thread.asp?c=132&f=1341&t=157673&mc=2 > > > > Just in case that link moves: > > > > Subject Re: print wms service > > Author Graeme Browning > > Date May 10, 2005 > > Message > > > > Hi Bastian > > > > I came across something similar trying to use Export Map to PDF on a WMS > > layer that exported fine to JPG and was given this advice: > > > > "My guess is the JPG files export without problems because they at > drawing > > at a resolution of 96 dpi. This is the default resolution for JPG > exports. > > PDF exports, however, have a default resolution of 300 dpi. We've > > reproduced the draw failure here, it occurs in all formats when > resolution > > is 300 dpi. The service layers are dropped in all export formats and > during > > printing. This confirms that the failure is occuring at draw time. > > > > We looked further into the issue, and identified a limitaion on the > > server's end as the cause of the draw failure. When we peeked at the > > server's response from the request sent during the 300 dpi export, it > > returned an exception message stating, "Image is wider than maximum > allowed > > width of 2000". In order to draw the service layer at a resolution of > 300 > > dpi, ArcMap had requested an image of width=3063 height=2619. The server > > raised the exception instead of returning the image. > > > > While this layer draw failure is not caused by our export > implementation, > > we probably need to do a better job of providing feedback when > exceptions > > occur during output. When pixel size limit errors occur on draw to the > > screen, ArcMap displays an information dialog to inform the user of the > > exception. Output, however, does not provide any feedback mechanism. For > > now, the only workaround I can recommend is outputing your PDF file at a > > lower resolution, something close to 96 dpi. " > > > > In my case turning the resolution down to 150dpi achieved the result I > was > > looking for - perhaps you can try doing the same. > > > > - Graeme > > > > > > Graeme Browning > > ESRI Australia > > > > While this was talking about JPG files, the problem was similar with > .emf > > files. I tried exporting to .emf at 200 dpi instead of the default 300, > and > > the image came out OK. When you go to print, you can't specify the dpi > > numerically, but there's a "Output Image Quality" slider from Fast -> > > Normal -> Best. I changed it to 'Fast' (default is 'Best'), and it > printed > > (and previewed - but you have to cancel out of the Print dialog in order > to > > preview) fine. > > > > Hopefully this info saves somebody else from the puzzled few days I just > > had :) > > > > > > Cheers, > > > > > > Bonnie > > > > ________________________________ > > Bonnie Stewart > > Research Officer > > Satellite Remote Sensing Services > > Department of Land Information > > > > Email: Bonnie.Stewart at dli.wa.gov.au > > Phone: 9387 0342 > > > > ________________________________ > > > > From: UMN MapServer Users List on behalf of Mike Davis > > Sent: Mon 30/05/2005 3:23 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [Maybe SPAM] Re: [UMN_MAPSERVER-USERS] Printing WMS layers in > > ArcMap 9.0 > > > > > > > > Bonnie- > > > > We use ArcMap extensively and it has become standard practice in our > > GIS shop to export everything to .pdf before printing. > > > > I am not sure about WMS bugs specifically, but the various other > > problems we have encountered while trying to print maps from the > > modern (8.x 9.x) Arc programs are often solved by using .pdf. > > > > good luck > > > > -Mike > > > > On 5/29/05, Bonnie Stewart wrote: > > > Hi all, > > > > > > Technically, I suspect this question would be more appropriate for an > > > ArcGIS users forum, but from what I can find there's not a lot of help > > > out there on ArcGIS issues, so I was hoping someone else from the > > > Mapserver-users community might be using ArcMap, and might have > > > encountered this issue before. > > > > > > I've got a couple of mapfiles up and running which are include various > > > vector and raster layers, and mostly I'm accessing them via ArcMap 9.0 > . > > > However, I'm having trouble getting ArcMap to print my WMS images - > print > > > preview always comes up blank, and if you go ahead and print a page > > > anyway, it's blank. > > > > > > ArcMap's Help says that ArcMap converts maps to .emf (Windows Enhanced > > > Metafile) for printing, and suggests manually doing an export to .emf > and > > > then opening up the .emf to see where the problem lies. Well, I've > done > > > this, and the .emf comes out entirely blank. To compare, I've tried > > > exporting to .bmp, and that comes out fine. > > > > > > Is there a problem with exporting WMS images to .emf? > > > Is it possible to get ArcMap to print from a different export format? > > > > > > I have absolutely no GIS experience, so it's probably something very > > > obvious, but all help would be much appreciated! > > > > > > (Would be happy to provide the mapfiles etc, but as I can print fine > in > > > Internet Explorer, and ArcExplorer 4, I don't think it's an issue with > > > the mapfiles..) > > > > > > > > > Cheers, > > > > > > > > > Bonnie > > > > > > > > > ________________________________ > > > Bonnie Stewart > > > Research Officer > > > Satellite Remote Sensing Services > > > Department of Land Information > > > > > > Email: Bonnie.Stewart at dli.wa.gov.au > > > Phone: 9387 0342 > > > > > > This e-mail and any files transmitted with it are intended only for > the > > > use of the addressee(s). It may contain information that is > confidential > > > and privileged. If you are not an intended recipient, any use, > > > interference with, disclosure, distribution or copying of this > material > > > is unauthorised and prohibited. If you receive this in error, please > > > notify the author by Return email to the sender. Information in this > > > message not relating to the official business of DLI shall be > understood > > > as neither given nor endorsed by it. While every care is taken, it is > > > recommended that you scan any attachments for viruses. DLI liability > is > > > limited to re-supplying affected attachments. > > > > This e-mail and any files transmitted with it are intended only for the > use > > of the addressee(s). It may contain information that is confidential and > > privileged. If you are not an intended recipient, any use, interference > > with, disclosure, distribution or copying of this material is > unauthorised > > and prohibited. If you receive this in error, please notify the author > by > > Return email to the sender. Information in this message not relating to > the > > official business of DLI shall be understood as neither given nor > endorsed > > by it. While every care is taken, it is recommended that you scan any > > attachments for viruses. DLI liability is limited to re-supplying > affected > > attachments. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at REFRACTIONS.NET Mon May 30 09:51:09 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Mon, 30 May 2005 09:51:09 -0700 Subject: RAM vs Performance, how much is more than enough? In-Reply-To: <20050530164126.59329.qmail@web53801.mail.yahoo.com> Message-ID: Gregor Mosheh wrote: > I know the OS will use spare RAM for filesystem cache, > which is always good, but I'm curious as to whether > there's a noticable difference between serving up just > MapServer with 256 MB of RAM versus 2 GB. The answer to your question is right there: yes, there will be a noticable difference, because frequently used files (like indexes) will get cached. This is even more try if you have a PostGIS database, because the database will be more agressive than the filesystem about making sure that "important" files (indexes) are brough into buffer cache. The speed differential between RAM and disk hits is so very high, that more RAM in combination with caching (which every modern OS and database does aggressively) will make things run faster. Paul From stigmata_blackangel at YAHOO.COM Mon May 30 09:57:30 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Mon, 30 May 2005 09:57:30 -0700 Subject: RAM vs Performance, how much is more than enough? In-Reply-To: 6667 Message-ID: > The speed differential between RAM and disk > hits is so very high, that more RAM in combination > with caching (which every modern OS and > database does aggressively) will make things run > faster. Wow, even just a plain ol' webserver running a CGI? Good to know - thanks a lot, Paul. On a related note: Apache 2 offers file caching. I've tried running Apache 2 with the usual CGI-PHP setup and MapScript, and the webserver would randomly freeze every few days, even under light traffic. Is anyone using Apache 2 and MapScript under Unix with good results? I may have been using the wrong MPM (prefork, which sounded safe). __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/ From rick at INNIS.CA Mon May 30 10:15:21 2005 From: rick at INNIS.CA (Rick Innis) Date: Mon, 30 May 2005 13:15:21 -0400 Subject: Mapscript API: for object manipulation, not object creation? Message-ID: Would I be right in thinking that the primary purpose of the MapScript API is to manipulate properties of a map defined in a mapfile, rather than to programatically create a map or map elements using the API? The reason I ask this is that I'm trying to define a layer dynamically using the Java version of the SWIG API, and I'm running into what appears to be a garbage collection issue. (I've replicated the same issue on both Linux (Debian "sarge", 2.6.8 kernel) and Mac OS X 10.4.1, so I'm reasonably confident it's not a platform-specific issue.) Here's a code fragment to illustrate what I'm doing, which is basically creating a layer, class, and style object and adding the layer to a map that was previously read in from a mapfile: layerObj l = new layerObj(map); l.setType(MS_LAYER_TYPE.MS_LAYER_POINT); l.setConnectiontype(MS_CONNECTION_TYPE.MS_POSTGIS); String connectionString = "..."; l.setConnection(connectionString); l.setData("shape from sometable"); l.setStatus(mapscriptConstants.MS_ON); l.setName("data_layer"); classObj c = l.getClass(0); if (c == null) c = new classObj(l); c.setStatus(mapscriptConstants.MS_ON); styleObj style = new styleObj(c); style.setBackgroundcolor(map.getImagecolor()); style.setSymbol(1); style.setSymbolname("pin"); This is working OK - the layer is displayed and look as I expect it to. However, after a few loads of the map I'm getting errors when Java runs its garbage collection: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x4E9D4EFA Function=(null)+0x4E9D4EFA Library=/usr/local/lib/libmapscript.so NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at edu.umn.gis.mapscript.mapscriptJNI.delete_classObj(Native Method) at edu.umn.gis.mapscript.classObj.delete(classObj.java:35) at edu.umn.gis.mapscript.classObj.finalize(classObj.java:29) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) at java.lang.ref.Finalizer.access$100(Finalizer.java:14) at java.lang.ref.Finalizer$FinalizerThread.run (Finalizer.java:160) (The method at the top of the execution stack might also be delete_layerObj; I've seen both.) After looking into mapscript_wrap.c my theory is that what's happening is that Java is trying to deallocate an object that's already been deallocated on the C side of the world. Here's what I think is happening: - I load a map from a mapfile - in Java, I get the corresponding instance of mapObj - basically a wrapper for the C structure. - I create a new layerObj in Java - again a wrapper for the corresponding C structure. Behind the scenes (in C) this is associated with the C mapObj. - I create a classObj and a styleObj - again, C structs behind the scenes - my application does its thing - the objects go out of scope - eventually, the Java GC kicks in - when the Java mapObj is gc'd, the finalizer is invoked. This calls the delete_Obj method, which calls into mapserver to deallocate the memory for the corresponding C struct. This also deallocates anything it has a reference to, including the memory for the layerObj, classObj and styleObj I created. - Java then tries to gc the other objects, which includes trying to free their memory - which has already been freed. Result: segment violation Does this make sense to people? From work that I know others have done in Perl, it seems that everything you need in a map is best declared in the mapfile, and the API can be used to manipulate that, but creating and manipulating new objects via the API is problematic. --Rick. From sgillies at FRII.COM Mon May 30 11:08:37 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 30 May 2005 12:08:37 -0600 Subject: Mapscript API: for object manipulation, not object creation? In-Reply-To: Message-ID: Hi Rick, comments interleaved below ... On May 30, 2005, at 11:15 AM, Rick Innis wrote: > Would I be right in thinking that the primary purpose of the > MapScript API is to manipulate properties of a map defined in a > mapfile, rather than to programatically create a map or map elements > using the API? > The mapscript API is a product of evolution rather than design, and so it has many purposes ;) I have done a lot of work since version 4.2 to make sure that it does support programatic creation of map elements. I'm testing it rigorously with Python, but not with Java. > The reason I ask this is that I'm trying to define a layer > dynamically using the Java version of the SWIG API, and I'm running > into what appears to be a garbage collection issue. (I've replicated > the same issue on both Linux (Debian "sarge", 2.6.8 kernel) and Mac > OS X 10.4.1, so I'm reasonably confident it's not a platform-specific > issue.) > > Here's a code fragment to illustrate what I'm doing, which is > basically creating a layer, class, and style object and adding the > layer to a map that was previously read in from a mapfile: > > layerObj l = new layerObj(map); > l.setType(MS_LAYER_TYPE.MS_LAYER_POINT); > l.setConnectiontype(MS_CONNECTION_TYPE.MS_POSTGIS); > String connectionString = "..."; > > l.setConnection(connectionString); > l.setData("shape from sometable"); > > l.setStatus(mapscriptConstants.MS_ON); > l.setName("data_layer"); > classObj c = l.getClass(0); > if (c == null) c = new classObj(l); > c.setStatus(mapscriptConstants.MS_ON); > styleObj style = new styleObj(c); > style.setBackgroundcolor(map.getImagecolor()); > style.setSymbol(1); > style.setSymbolname("pin"); > This is working OK - the layer is displayed and look as I expect it > to. However, after a few loads of the map I'm getting errors when > Java runs its garbage collection: > > An unexpected exception has been detected in native code outside the > VM. > Unexpected Signal : 11 occurred at PC=0x4E9D4EFA > Function=(null)+0x4E9D4EFA > Library=/usr/local/lib/libmapscript.so > > NOTE: We are unable to locate the function name symbol for the error > just occurred. Please refer to release documentation for > possible > reason and solutions. > > Current Java thread: > at edu.umn.gis.mapscript.mapscriptJNI.delete_classObj(Native > Method) > at edu.umn.gis.mapscript.classObj.delete(classObj.java:35) > at edu.umn.gis.mapscript.classObj.finalize(classObj.java:29) > at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) > at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) > at java.lang.ref.Finalizer.access$100(Finalizer.java:14) > at java.lang.ref.Finalizer$FinalizerThread.run > (Finalizer.java:160) > > (The method at the top of the execution stack might also be > delete_layerObj; I've seen both.) > > After looking into mapscript_wrap.c my theory is that what's > happening is that Java is trying to deallocate an object that's > already been deallocated on the C side of the world. > Right. There may be a bug in the one argument forms of classObj and layerObj constructors that does not properly transfer ownership of the object to its parent. In the meanwhile, the solution is for you to begin using the current configuration API, the documentation is distributed with mapscript under mapscript/docs/mapfile-HOWTO.txt and online at http://zcologia.com/mapserver/mapfile-howto Once you replace the old-style usage (example) layerObj l = new layerObj(map); l.setName('new_layer'); ... with the current (using the zero argument constructors) layerObj new_layer = new layerObj(); new_layer.setName('new_layer'); ... li = map.insertLayer(new_layer); l = map.getLayer(li); the garbage collection problem is avoided. In a nutshell, the current way of building up a map configuration is to create an element (layer, class, or style), configure it, and then insert a *copy* of it into a parent container. The insert* methods transfer ownership (and responsibility for deletion) to the parent. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From kenlord at GMAIL.COM Mon May 30 11:22:21 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Mon, 30 May 2005 11:22:21 -0700 Subject: RAM vs Performance, how much is more than enough? In-Reply-To: <20050530165730.53060.qmail@web53806.mail.yahoo.com> Message-ID: I have seen mapserver 4.4 and 4.6b2 use all the ram available (upto the 2GB in our server) ... then timeout. ... However I'm sure its a bug issue, not really a RAM / Performance issue. It happens when I have a polyline layer turned on, and all other layers turned off, but it works fine if any other layer is turned on with that polyline layer. The polyine layer is in PostGIS, but the same problem occurs using a shapefile of the same data. Cheers, Ken Lord Vancouver BC On 5/30/05, Gregor Mosheh wrote: > > > The speed differential between RAM and disk > > hits is so very high, that more RAM in combination > > with caching (which every modern OS and > > database does aggressively) will make things run > > faster. > > Wow, even just a plain ol' webserver running a CGI? > Good to know - thanks a lot, Paul. > > On a related note: Apache 2 offers file caching. I've > tried running Apache 2 with the usual CGI-PHP setup > and MapScript, and the webserver would randomly freeze > every few days, even under light traffic. Is anyone > using Apache 2 and MapScript under Unix with good > results? I may have been using the wrong MPM (prefork, > which sounded safe). > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Small Business - Try our new Resources site > http://smallbusiness.yahoo.com/resources/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick at INNIS.CA Mon May 30 11:35:49 2005 From: rick at INNIS.CA (Rick Innis) Date: Mon, 30 May 2005 14:35:49 -0400 Subject: Mapscript API: for object manipulation, not object creation? In-Reply-To: Message-ID: > I have done a lot of work since version 4.2 to make sure that it > does support programatic creation of map elements. I'm testing it > rigorously with Python, but not with Java. I'll be giving a good workout in the next wee while, I'm sure :-) > Right. There may be a bug in the one argument forms of classObj and > layerObj constructors that does not properly transfer ownership of > the object to its parent. However, the zero-arg constructors are protected. Is that a bug? --Rick. From barnes at WATERSHEDS.CA Mon May 30 11:54:51 2005 From: barnes at WATERSHEDS.CA (Shawn Barnes) Date: Mon, 30 May 2005 14:54:51 -0400 Subject: RAM vs Performance, how much is more than enough? Message-ID: I'm running Gentoo Linux box (dual p3 1.4, 2GB ram, scsci) with apache2, php 4.3.10, mapserver 4.4.1, PostGIS 0.9.1 with no problems to complain about. With the traffic to date our site hasn't been stressed at all and the first month it was up it had served over 10000 maps. www.ontariowatersheds.ca I've noticed PostGIS likes ram and mapserver likes fast disk access. shawn On 09:57 Mon 30 May , Gregor Mosheh wrote: > > The speed differential between RAM and disk > > hits is so very high, that more RAM in combination > > with caching (which every modern OS and > > database does aggressively) will make things run > > faster. > > Wow, even just a plain ol' webserver running a CGI? > Good to know - thanks a lot, Paul. > > On a related note: Apache 2 offers file caching. I've > tried running Apache 2 with the usual CGI-PHP setup > and MapScript, and the webserver would randomly freeze > every few days, even under light traffic. Is anyone > using Apache 2 and MapScript under Unix with good > results? I may have been using the wrong MPM (prefork, > which sounded safe). > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Small Business - Try our new Resources site > http://smallbusiness.yahoo.com/resources/ -- Shawn Barnes Centre for Sustainable Watersheds 11 St. Mary's Street Portland ON K0G 1V0 613.272.5136 barnes at watersheds.ca ----- End forwarded message ----- -- Shawn Barnes Centre for Sustainable Watersheds 11 St. Mary's Street Portland ON K0G 1V0 613.272.5136 barnes at watersheds.ca -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From sgillies at FRII.COM Mon May 30 12:04:48 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 30 May 2005 13:04:48 -0600 Subject: Mapscript API: for object manipulation, not object creation? In-Reply-To: Message-ID: On May 30, 2005, at 12:35 PM, Rick Innis wrote: >> I have done a lot of work since version 4.2 to make sure that it >> does support programatic creation of map elements. I'm testing it >> rigorously with Python, but not with Java. > > I'll be giving a good workout in the next wee while, I'm sure :-) > Great. The sooner, the better. We're aiming for a 4.6 release to coincide with next month's meeting. >> Right. There may be a bug in the one argument forms of classObj and >> layerObj constructors that does not properly transfer ownership of >> the object to its parent. > > However, the zero-arg constructors are protected. Is that a bug? > > --Rick. > No, I forgot momentarily that SWIG-Java doesn't support optional method arguments as we have with Python. There is no zero argument constructor for Java. Calling the ordinary constructor with a NULL argument should be equivalent. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From barnes at WATERSHEDS.CA Mon May 30 12:06:57 2005 From: barnes at WATERSHEDS.CA (Shawn Barnes) Date: Mon, 30 May 2005 15:06:57 -0400 Subject: RAM vs Performance, how much is more than enough? In-Reply-To: <20050530183929.67336.qmail@web53809.mail.yahoo.com> Message-ID: Yes PHP is cgi and Apache2 is complied with prefork.c and the default config. StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0 shawn On 11:39 Mon 30 May , Gregor Mosheh wrote: > > Nice setup! > > Your Apache 2 - Is it setup in with PHP as a CGI, or > as a DSO? What MPM are you using with Apache 2? > > Like I said, my Apache 2froze up every few days under > very light traffic. I switched back to Apache 1 and > everything's been smooth for months. > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Small Business - Try our new Resources site > http://smallbusiness.yahoo.com/resources/ -- Shawn Barnes Centre for Sustainable Watersheds 11 St. Mary's Street Portland ON K0G 1V0 613.272.5136 barnes at watersheds.ca -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From rick at INNIS.CA Mon May 30 13:02:10 2005 From: rick at INNIS.CA (Rick Innis) Date: Mon, 30 May 2005 16:02:10 -0400 Subject: Mapscript API: for object manipulation, not object creation? In-Reply-To: <201f9fa0a491a5e7e37390142a88bfe0@frii.com> Message-ID: > > Great. The sooner, the better. We're aiming for a 4.6 release to > coincide with next month's meeting. > No, I forgot momentarily that SWIG-Java doesn't support optional > method arguments as we have with Python. There is no zero argument > constructor for Java. Calling the ordinary constructor with a NULL > argument should be equivalent. Doesn't appear to be. This is what I get in the logfile: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x400A3D89 Function=__libc_free+0x49 Library=/lib/tls/libc.so.6 Current Java thread: at edu.umn.gis.mapscript.mapscriptJNI.mapObj_insertLayer (Native Method) at edu.umn.gis.mapscript.mapObj.insertLayer(mapObj.java:341) Two possibly related items: While the docs say the insert methods return the index at which the object was inserted, the Java API doesn't seem to support this - it supports a range of "insertFoo(foo, index)" methods. Also, I notice that if I do a "make clean" in mapserver-4.4.2, I need to do a "make interface" in mapserver-4.4.2/mapscript/java before I can rebuild the Java API - which is then slightly different from the one I get "out of the box". Mainly seems to be in the MS_ classes, which define their statics as objects "out of the box" but ints after a rebuild. --Rick. From sgillies at FRII.COM Mon May 30 14:54:23 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 30 May 2005 15:54:23 -0600 Subject: Mapscript API: for object manipulation, not object creation? In-Reply-To: Message-ID: On May 30, 2005, at 2:02 PM, Rick Innis wrote: >> >> Great. The sooner, the better. We're aiming for a 4.6 release to >> coincide with next month's meeting. > > >> No, I forgot momentarily that SWIG-Java doesn't support optional >> method arguments as we have with Python. There is no zero argument >> constructor for Java. Calling the ordinary constructor with a NULL >> argument should be equivalent. > > Doesn't appear to be. This is what I get in the logfile: > > An unexpected exception has been detected in native code outside the > VM. > Unexpected Signal : 11 occurred at PC=0x400A3D89 > Function=__libc_free+0x49 > Library=/lib/tls/libc.so.6 > > Current Java thread: > at edu.umn.gis.mapscript.mapscriptJNI.mapObj_insertLayer > (Native Method) > at edu.umn.gis.mapscript.mapObj.insertLayer(mapObj.java:341) > > Two possibly related items: > > While the docs say the insert methods return the index at which the > object was inserted, the Java API doesn't seem to support this - it > supports a range of "insertFoo(foo, index)" methods. > I'm looking at mapObj.java generated using SWIG 1.3.21 and MapServer 4.4. Should be what you get out of the box. I see a public int insertLayer(layerObj layer, int index) Once again I forgot that there are no optional method arguments for Java. Sorry. In the Python mapscript, this method's signature is insertLayer(layer, index=-1) and we can omit the index, it defaults to -1, or the end of the layers list. In your case, insert a layer at the end with li = map.insertLayer(layer, -1) > Also, I notice that if I do a "make clean" in mapserver-4.4.2, I need > to do a "make interface" in mapserver-4.4.2/mapscript/java before I > can rebuild the Java API - which is then slightly different from the > one I get "out of the box". Mainly seems to be in the MS_ classes, > which define their statics as objects "out of the box" but ints after > a rebuild. > > --Rick. > Which version of SWIG are you using? Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From godwin.liz at GMAIL.COM Mon May 30 15:16:45 2005 From: godwin.liz at GMAIL.COM (Liz Godwin) Date: Mon, 30 May 2005 18:16:45 -0400 Subject: Logo In-Reply-To: <429B01A0.1060300@dmsolutions.ca> Message-ID: I think Fred was working on a Chameleon Logo... One of the "Made with" logos... It wasn't the same as the store logos though. I don't know what's come of them. Fred? On 5/30/05, Dean Gadoury wrote: > > I don't know if there is a definitive MapServer logo, but you can get a > Chameleon logo and a couple other DM Solutions related logos at: > http://www.cafepress.com/maptools and/or http://dmsolutions.ca > > Jano Ferencik wrote: > > Hi list > > a short question..where do I find nice logos with Chameleon, Mapserver > and DM > > solutions...a link would be excellent... > > thanks.. > > > > > > ___________________________ > > Cv-ul tau ia 500 euro/luna! > > http://500.myjob.ro > > > > -- > Dean Gadoury > > DM Solutions Group > 30 Rosemount Ave. Suite 200 > Ottawa, Ontario. K1Y 1P4 > 613.565.5056 ext. 24 > > dgadoury at dmsolutions.ca > www.dmsolutions.ca > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at DMSOLUTIONS.CA Mon May 30 15:32:56 2005 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 30 May 2005 18:32:56 -0400 Subject: MapServer 4.6.0-beta3 released Message-ID: MapServer 4.6.0-beta3 is now available for download on the MapServer website (http://mapserver.gis.umn.edu/dload.html). This should be the last beta before the release candidate (early next week) and the final release just in time for MUM3. Once again, we invite experienced users to contribute to the release process by testing the betas with their applications and reporting any issues via bugzilla. The list of fixes since beta2 is included below. Daniel ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Version 4.6.0-beta3 (2005-05-27) -------------------------------- - Bug 1298 : enable Attribution element in wms Capabilities XML - Bug 1354: Added a regex wrapper, allowing MapServer to build with PHP compiled with its builtin regex - Bug 1364: HTML legend templates: support [if] tests on "group_name" in leg_group_html blocks, and for "class_name" in leg_class_html blocks. - Bug 1149: From WMS 1.1.1, SRS are given in individual tags in root Layer element. - First pass at properly handling XML exceptions from CONNECTIONTYPE WMS layers. Still needs some work. (bug 1246) - map.h/mapdraw.c: removed MAX/MIN macros in favour of MS_MAX/MS_MIN. - Bug 1341, 1342 : Parse the unit parameter for DWithin filter request. Set the layer tolerance and toleranceunit with paramaters parsed. - Bug 1277 : Support of multiple logical operators in Filter Encoding. - mapwcs.c: If msDrawRasterLayerLow() fails, ensure that the error message is posted as a WCS exception. - Added experimental support for "labelcache_map_edge_buffer" metadata to define a buffer area with no labels around the edge of a map (bug 1353) From rick at INNIS.CA Mon May 30 16:19:37 2005 From: rick at INNIS.CA (Rick Innis) Date: Mon, 30 May 2005 19:19:37 -0400 Subject: Mapscript API: for object manipulation, not object creation? In-Reply-To: Message-ID: > I'm looking at mapObj.java generated using SWIG 1.3.21 and > MapServer 4.4. Should be what you get out of the box. I see a > > public int insertLayer(layerObj layer, int index) > Which is what I have... > Once again I forgot that there are no optional method arguments for > Java. Sorry. In the Python mapscript, this method's signature is > > insertLayer(layer, index=-1) > > and we can omit the index, it defaults to -1, or the end of the > layers list. > Had I the time to rewrite this app in Python, I would :-) > In your case, insert a layer at the end with > > li = map.insertLayer(layer, -1) > OK - I was using map.insertLayer(layer, map.getNumlayers()) naively assuming it would insert at the appropriate index. Thanks. > Which version of SWIG are you using? > SWIG 1.3.24 Mapserver 4.4.2 Things seem to be working now...I'm letting a stress test run so we'll see how that works. (It's just curl in a while loop, but it does the trick.) Thanks, --Rick. From abe.gillespie at GMAIL.COM Mon May 30 16:52:35 2005 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Mon, 30 May 2005 19:52:35 -0400 Subject: Getting MapServer working (PHP MapScript) Message-ID: I'm trying to get things up & running on my new laptop and haven't run into this much trouble with MapServer before. I'm running the latest Ubuntu and compiled PHP MapScript with the latest stable MapServer release + the latest libraries. This is my configure command: /configure --with-proj=/usr/local/src/proj-4.4.9 --with-geos=/usr/local/bin/geos-config --with-postgis=/usr/local/src/postgis-1.0.1 --with-gdal=/usr/local/bin/gdal-config --with-php=/usr/local/src/php-4.3.11 --prefix=/usr/local The only things installed via apt-get are Apache2 and GD. I'm trying to get a simple Chameleon sample running and am getting the dreaded "premature end of script headers" error. OTH, if I try to setup a simple page with a simple map (one layer in the map file), I don't getting anything past the ms_newMapObj() line; not even errors. For example: draw(); ?> Looks like this when it gets to the client: Starting... It dies at ms_newMapObj() with no helpful messages. Help is very much appreciated. Thanks. -Abe From kenlord at GMAIL.COM Mon May 30 18:12:03 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Mon, 30 May 2005 18:12:03 -0700 Subject: Cleaning the /tmp directory In-Reply-To: <4BF377919225F449BB097CB76FFE9BC818858D@ptolemy.topozone.com> Message-ID: Hi Ed, I pursued my MODE=MAP issues a little deeper ... the new hardware didn't fix it ... My snapshots fail sporadically. If i plug the source of the images into a new webpage, I get the following error: "CGI error, The specified CGI application misbehaved by not returning a complete set of HTTP headers.". Sometimes the top half of an image generates, but not the rest. Ive seen this error before when using a faulty build of mapserver that was up on the homepage for awhile a couple months ago but in that case it affected all maps generated, not just some of the snapshots. My current install is clean on a new server, 4.4.2 and 4.6b2. Each install is in its own folder, to keep the dll's of the different versions separated, the website has a virtual directory that points to the specific version I want it to use. My mode=browse maps work fine. The failures happen often on the same features, or in the same area of one feature while another area works. The features pass as valid to PostGIS, using shapefiles made no difference. The number of features returned does not seem to be impacting the occurance of failures. These failures have been happening since MapServer 4. I may need to rig up mapserver 3.6 to produce the snapshots since it never gave me a problem. Anyways maybe this shows why I was leery to suggest to the other person to rely on mode=map. Cheers, Ken Lord Vancouver BC On 5/24/05, Ed McNierney wrote: > > Ken - > If you are trying to serve multiple simultaneous requests, with > everything competing to write and then read files from the temp directory, > the disk I/O to that drive can become a *serious* bottleneck. If heavy > usage is not a concern, then this may be a non-issue. > I have never seen failures due to MODE=MAP (rather than being caused by > something else) and I've used it about a billion times (literally ). I > would be leery of blaming failures on MODE=MAP without some diagnosis about > the cause. > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > ------------------------------ > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *Ken Lord > *Sent:* Tuesday, May 24, 2005 12:48 PM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] Cleaning the /tmp directory > > James, > I use the method you mentioned, 'MODE=MAP', to generate snapshots for > query results. It works great to highlight each individual item returned by > a map query, placed next each item's attributes. > However, Since mapserver 4 and later have come out, often the images fail > despite the log statement of 'normal execution'. > I have simplified the maps as much as possible, and I'm sure that its not > a lingering syntax difference between 3.6 (where it worked great) and 4 or > later. The failures are not consistant either. Why they don't either all > work or all fail, or at least all the same features queried fail > consistantly? I have no idea. > So I'm leary about suggesting people use MODE=MAP for all their maps just > to keep their temp folder's empty, especially when a simple .bat file can be > used to empty them regularly. > Cheers, > Ken Lord > Vancouver BC > -------------- next part -------------- An HTML attachment was scrubbed... URL: From d.huisman at INGBCC.NL Mon May 30 22:49:56 2005 From: d.huisman at INGBCC.NL (Dirk-Jan Huisman) Date: Tue, 31 May 2005 07:49:56 +0200 Subject: Simple question about scalebar. Message-ID: Hi, It's not clear what goes wrong. Include some code of your mapfile. What are the map units and the scalebar units? ----Oorspronkelijk bericht----- Van: Krung Saengpole [mailto:saengpole at YAHOO.COM] Verzonden: maandag 30 mei 2005 16:34 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Simple question about scalebar. Dear all, Whether or not I embeded scalebar in map, it showed wrong distance, e.g. it should be 18.3 km but it showed 18300 km. Nontheless I use projection or not. What I have to specially set to get right scalebar? TIA Krung __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------------------------------ Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ------------------------------------------------------------------------------ Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ------------------------------------------------------------------------------ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ------------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lluisgm at GMAIL.COM Tue May 31 00:09:21 2005 From: lluisgm at GMAIL.COM (=?ISO-8859-1?Q?Llu=EDs_Garcia_i_Mestres?=) Date: Tue, 31 May 2005 09:09:21 +0200 Subject: reference error in ms441pg Message-ID: Hi list Anyone has find a bug in the ms441pg.zipversion? I'm using mapserver an map application, that on linux works fine, under windows but if I use the reference map a windows error appears. This error just happens sometimes and normally when I make a query. If I put out the reference map, it works perfect but it's a pity to don't use this wonderful tool. -- Llu?s Garcia i Mestres, lluisgm at gmail.com lluisgm at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefano.bonnin at COMAI.TO Tue May 31 00:16:23 2005 From: stefano.bonnin at COMAI.TO (Stefano B.) Date: Tue, 31 May 2005 09:16:23 +0200 Subject: Error compiling beta3 Message-ID: Hi, when I compile the beta3 I get the following error: gcc -fPIC -O2 -fPIC -Wall -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_WMS_SVR -DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_PROJ -DUSE_EPPL -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -I/usr/src/smit/mapserver-4.6.0-beta3 -I/usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/.. -I/usr/local/include -I/usr/local/pgsql8/include -I/usr/local/include -I/usr/src/smit/mapserver-4.6.0-beta3/../proj-4.4.9//src -I/usr/local/include -I/usr/local/include -I/usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4/ -I/usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//dl -I/usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//main -I/usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//Zend -I/usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//include -I/usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//TSRM -I/usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/.. -c -o /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.o /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:38: error: `REG_OKAY' undeclared here (not in a function) /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:38: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:38: error: (near initialization for `rerrs[0].code') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:38: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:38: error: (near initialization for `rerrs[0]') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:39: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:39: error: (near initialization for `rerrs[1]') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:40: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:40: error: (near initialization for `rerrs[2]') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:41: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:41: error: (near initialization for `rerrs[3]') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:42: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:42: error: (near initialization for `rerrs[4]') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:43: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:43: error: (near initialization for `rerrs[5]') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:44: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:44: error: (near initialization for `rerrs[6]') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:45: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:45: error: (near initialization for `rerrs[7]') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:46: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:46: error: (near initialization for `rerrs[8]') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:47: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:47: error: (near initialization for `rerrs[9]') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:48: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:48: error: (near initialization for `rerrs[10]') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:49: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:49: error: (near initialization for `rerrs[11]') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:50: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:50: error: (near initialization for `rerrs[12]') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:51: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:51: error: (near initialization for `rerrs[13]') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:52: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:52: error: (near initialization for `rerrs[14]') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:53: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:53: error: (near initialization for `rerrs[15]') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:54: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:54: error: (near initialization for `rerrs[16]') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:55: error: initializer element is not constant /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:55: error: (near initialization for `rerrs[17]') /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:64: error: syntax error before "php_regerror" /usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.c:65: warning: return type defaults to `int' gmake[1]: *** [/usr/src/smit/mapserver-4.6.0-beta3/../php-5.0.4//regex/regerror.o] Error 1 gmake[1]: Leaving directory `/usr/src/smit/mapserver-4.6.0-beta3/mapscript/php3' I'm compiling it on FreeBsd OS. Thanks. RedS -------------- next part -------------- An HTML attachment was scrubbed... URL: From LVN at HVM.DK Tue May 31 00:52:16 2005 From: LVN at HVM.DK (Lars V. Nielsen (HVM)) Date: Tue, 31 May 2005 09:52:16 +0200 Subject: Resampling rasters from unprojected WMS sources ? Message-ID: Hi Ed, Posting the complete MAP file would be too much, and I thought the general issue whether MS can reproject wms/rasters or not wouldn't need specific examples. But in any case, here is a relevant excerpt: MAP myMAP RESOLUTION 96 STATUS ON UNITS METERS SIZE 600 480 EXTENT 363842 6027893 863744 6427815 PROJECTION "init=EPSG:25832" END # the lat-long WGS84 only WMS service LAYER NAME GoogleMaps TYPE RASTER STATUS ON CONNECTIONTYPE WMS CONNECTION "http://www.gispro.dk/googlemaps_wms.php?service=wms&version=1.1.1&request=g etmap&layers=sat_auto&format=image/jpeg" PROJECTION "init=EPSG:4326" END END # other vector layers natively in EPSG:25832, e.g.: LAYER NAME "myVectorLayer" PROJECTION "init=EPSG:25832" END Type LINE CONNECTIONTYPE OGR CONNECTION ".../myTable.TAB" STATUS ON CLASS COLOR 0 0 255 TEMPLATE void END TOLERANCE 10 END END I've uploaded the experienced visual appearence of the same front vector layer with each background layer : - with satellite imagery: http://www.gis.hvm.dk/test/ms_sat_back.jpg (with the flattened appearence) - with grey backdrop: http://www.gis.hvm.dk/test/ms_grey_back.png - as seen in MapInfo Pro (distorts the vector to fit the raster): http://www.gis.hvm.dk/test/mi_sat_back.jpg - - - - - - - - I'm using MapScript 4.5 ($Revision: 1.223 $ $Date: 2005/01/04 22:55:27 $) in Php 4.3.7 on W2K. Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard & Meklenborg Rugaardsvej 55, DK-5000 Odense C Denmark http://www.hvm.dk ----- Original Message ----- From: "Ed McNierney" To: "Lars V. Nielsen (HVM)" ; Sent: Friday, May 27, 2005 8:36 PM Subject: RE: [UMN_MAPSERVER-USERS] Resampling rasters from unprojected WMS sources ? Lars - It sounds like the right approach; could you post the MAP file if possible? Thanks. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lars V. Nielsen (HVM) Sent: Friday, May 27, 2005 9:14 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Resampling rasters from unprojected WMS sources ? I'm rendering a map in a UTM projection, but want to add a satellite image wms service that only delivers images in lat/long wgs84. No problem, I set the wms layer projection to epsg:4326, while my map (and other layers) use projection epsg:25832. And it works, or almost ... The sat image is distorted - "flattened" - so the vector line work layers on top of it exceeds the country coast line north and south. And quite significantly so. Shouldn't the raster re-projection algoritms in Mapserver take care of such distortions, or is mixing projected and unprojected coordinate systems (still) a no-no ? Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard & Meklenborg Rugaardsvej 55, DK-5000 Odense C Denmark http://www.hvm.dk From Wolfgang.Qual at MUENCHEN.DE Tue May 31 02:03:43 2005 From: Wolfgang.Qual at MUENCHEN.DE (Wolfgang Qual) Date: Tue, 31 May 2005 11:03:43 +0200 Subject: Arc/INFO Binary GRID: display legend Message-ID: Hi list, I am looking for a way to create a legend for my mapserver-map which contains an Arc/INFO Binary GRID. Color definitions were made inside the mapfile using this syntax: "CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel]< 10) COLOR 200 0 220 END" Wolfgang -- Wolfgang Qual Landeshauptstadt M?nchen Referat f?r Gesundheit und Umwelt RGU-UW 11 Sg. 1 Gesundheits- und Umweltberichterstattung, Energie und Klimaschutz Bayerstr. 28a, 80335 M?nchen Tel.: +49 (0)89 233-477 17 Fax.: +49 (0)89 233-477 05 E-Mail: wolfgang.qual at muenchen.de From Wolfgang.Qual at MUENCHEN.DE Tue May 31 02:14:42 2005 From: Wolfgang.Qual at MUENCHEN.DE (Wolfgang Qual) Date: Tue, 31 May 2005 11:14:42 +0200 Subject: Arc/INFO Binary GRID: perform queries on raster data Message-ID: Hello list, is there anyone who has some experience with queries on GRID-data? Examples / how-to's would be great... Thanks, Wolfgang -- Wolfgang Qual Landeshauptstadt M?nchen Referat f?r Gesundheit und Umwelt RGU-UW 11 Sg. 1 Gesundheits- und Umweltberichterstattung, Energie und Klimaschutz Bayerstr. 28a, 80335 M?nchen Tel.: +49 (0)89 233-477 17 Fax.: +49 (0)89 233-477 05 E-Mail: wolfgang.qual at muenchen.de From BEN at SYNCERA-ITSOLUTIONS.NL Tue May 31 01:59:43 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 31 May 2005 10:59:43 +0200 Subject: Arc/INFO Binary GRID: display legend Message-ID: Hi Wolfgang, only CLASSes with a NAME end up in the legend. So add NAMEs to your classes. The name is then used for the label in the legend. Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Wolfgang Qual 05/31/05 11:03am >>> Hi list, I am looking for a way to create a legend for my mapserver-map which contains an Arc/INFO Binary GRID. Color definitions were made inside the mapfile using this syntax: "CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel]< 10) COLOR 200 0 220 END" Wolfgang -- Wolfgang Qual Landeshauptstadt M?nchen Referat f?r Gesundheit und Umwelt RGU-UW 11 Sg. 1 Gesundheits- und Umweltberichterstattung, Energie und Klimaschutz Bayerstr. 28a, 80335 M?nchen Tel.: +49 (0)89 233-477 17 Fax.: +49 (0)89 233-477 05 E-Mail: wolfgang.qual at muenchen.de From margottid at COMUNE.LUGO.RA.IT Tue May 31 04:25:03 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Tue, 31 May 2005 13:25:03 +0200 Subject: [UMN_MAPSERVER-USERS] How can I highlight more than one feature in QUERY mode? In-Reply-To: Message-ID: > > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Richard Greenwood >Sent: Sunday, May 22, 2005 3:27 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] [UMN_MAPSERVER-USERS] How can I highlight more than one feature in QUERY mode? > > >Daniele Margotti COMUNE.LUGO.RA.IT> writes: > >> with CGI >> mode=ITEMQUERYMAP I can produce a map with one highlighted feature >> (defined using QITEM, QLAYER and QSTRING). >> >> >> How can I highlight >> more than one feature (within the same layer) using the same syntax >> (QITEM + QLAYER + QSTRING)? Is there the >> possibility to use an "OR condition" or a regular expression in QSTRING >> parameter? >> >> >> Thank >> you, >> Daniele > >Make your querystring a regular expression like: > > qstring=/a|b|c/ > >would highlite objects 'a', 'b', and 'c'. Also be sure to put your template definition in the HEADER, not in the TEMPLATE. If >you put it in TEMPLATE, you'll get three maps, but by putting it on HEADER, all three objects will be highlited on the same >map. > >Rich > Thank you for your answer, this "qstring" works very well (my map was already in the FOOTER section of the query-template): http://sit.comune.lugo.ra.it/cgi-bin/mapserv?mode=itemnquery&mapxy=17294 87.0255+4927174.2505&scale=2000&map=/dati/sit/Lugo_base.map&mapsize=&lay er=CTR_5000&layer=Mappali&layer=Quadrocatasto&layer=Grafo_stradale&qlaye r=Mappali&qitem=PARTKEY&qstring=/E730%20%20%2077%20%20427|E730%20%20%207 7%20%20428|E730%20%20%2077%20%20266/ But I have to specfiy "mapxy" and "scale" (as if I had "clicked" on the map) to have querymap centered on my features; if I omit "mapxy" and "scale" I obtain query centered on the entire extent: http://sit.comune.lugo.ra.it/cgi-bin/mapserv?mode=itemnquery&map=/dati/s it/Lugo_base.map&mapsize=&layer=CTR_5000&layer=Mappali&layer=Quadrocatas to&layer=Grafo_stradale&qlayer=Mappali&qitem=PARTKEY&qstring=/E730%20%20 %2077%20%20427|E730%20%20%2077%20%20428|E730%20%20%2077%20%20266/ How can I center (and scale) my querymap without previously calculate a mapxy point near the queried features? Thanks, Daniele From m.cave-ayland at WEBBASED.CO.UK Tue May 31 04:23:39 2005 From: m.cave-ayland at WEBBASED.CO.UK (Mark Cave-Ayland) Date: Tue, 31 May 2005 12:23:39 +0100 Subject: MapScript w/ PHP 5? In-Reply-To: A Message-ID: Hi Bart, If you could get relevant profiles from both versions of PHP using APD (see http://www.php.net/manual/en/ref.apd.php) then it should be fairly easy to find the culprit... Kind regards, Mark. ------------------------ WebBased Ltd South West Technology Centre Tamar Science Park Plymouth PL6 8BT T: +44 (0)1752 797131 F: +44 (0)1752 791023 W: http://www.webbased.co.uk > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bart van > den Eijnden > Sent: 28 May 2005 09:22 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapScript w/ PHP 5? > > > Hi Gregor, > > I did try it a few months ago on Windows, as an Apache > module, and it worked okay. I only had some unexpected > performance problems, but those might be unrelated. I did not > investigate the performance problems. > > See also: > http://lists.maptools.org/pipermail/chameleon/2005-March/001955.html > > Best regards, > Bart > > On Sat, 28 May 2005 03:34:49 +0200, Gregor Mosheh > wrote: > > > Is PHP/MapScript known to be (in)compatible with PHP > > 5? Is anyone using MapScript with PHP5 as a DSO? > > > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Small Business - Try our new Resources site > > http://smallbusiness.yahoo.com/resources/ > > > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ > From schuyler at NOCAT.NET Tue May 31 04:59:13 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Tue, 31 May 2005 04:59:13 -0700 Subject: MapServer book on schedule for publication this June? In-Reply-To: <20d2d8820ce48f.20ce48f20d2d88@shaw.ca> Message-ID: * On 27-May-2005 at 4:34PM PDT, Tyler Mitchell said: > > I'm really looking forward to the book as well, I > > believe there are actually two books due for > > release in the near future. One was an > > O'Reilley release and I can't remember the other. > > Pretty sure i've seen reference to two books here > > on this list over the last couple of months. I suppose this isn't a bad time to mention Mapping Hacks, written by Rich Gibson, Jo Walsh, and yours truly, and also published by O'Reilly. Although the book only has one hack on MapServer, it covers a lot of other Open Source GIS related subjects. Mapping Hacks should be on the shelves in June, and we will be giving away a small number of copies at MUM. http://mappinghacks.com/ SDE From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Tue May 31 05:00:09 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Tue, 31 May 2005 07:00:09 -0500 Subject: RASTER Layer. Message-ID: Ed, This is a bit overdue... but thanks for your assistance with my question. I was able to get the raster layer to function properly. Another question... do spaces in a map file cause problems? In other words, am I creating problems when I am trying to make a map file more readable by realigning code and adding spaces? Ryan ________________________________ From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 24, 2005 2:16 PM To: Owens, Ryan J NWD02 CONTRACTOR; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] RASTER Layer. Ryan - The example MAP file you give seems (at a quick look) OK if all your input data is in the same projection. The only way you know what projections to use is by knowing your source data. Some source formats, like GeoTIFF, will have projection information embedded in them. Others, like your shapefiles, usually do not - you need to know what you have. Do you think all your data is in the same projection? What does the listgeo command tell you when you use it to dump the metadata from the basin_alb.tif file? I'm going to guess that your raster image is in the Albers or other projection, and your shapefiles are in unprojected geographic coordinates. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Owens, Ryan J NWD02 CONTRACTOR Sent: Tuesday, May 24, 2005 2:45 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] RASTER Layer. Hello Listserv, I'm new to Map Server and I am having some difficulties with getting a raster output to work. So far I have been able to get a TYPE LINE output to work. I want to add another layer, a RASTER layer, but it does not work and I don't know what I am doing wrong. Will someone scan my code to see if I have done something incorrectly? I am outputting my data to a Flash viewer in a HTML template. Thank you, Ryan ============================================================ MAP NAME FMV_ EXTENT -544000 89800 1393000 1254000 WEB log "./test.log" TEMPLATE "test_template.html" IMAGEPATH "./tmp/" IMAGEURL "http://[my domain]/fmv/test/tmp/" END DEBUG ON OUTPUTFORMAT NAME swf DRIVER "SWF" MIMETYPE "application/x-shockwave-flash" EXTENSION "swf" IMAGEMODE PC256 FORMATOPTION "OUTPUT_MOVIE=MULTIPLE" END IMAGETYPE swf SIZE 460 500 SHAPEPATH "data" IMAGECOLOR 255 255 255 PROJECTION # "proj=laea" # "ellps=clrk66" # "lat_0=45" # "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER NAME "basin" DATA "data/basin_alb.tif" STATUS DEFAULT TYPE RASTER PROCESSING "BANDS=1,2,3" OFFSITE 71 74 65 # PROJECTION # END END LAYER NAME "river" DATA missouri_river STATUS DEFAULT TYPE LINE METADATA "SWFDUMPATTRIBUTES" "NAME,LENGTH" END CLASS COLOR 0 0 254 END END LAYER NAME dcp DATA dcps STATUS DEFAULT TYPE POINT METADATA "SWFDUMPATTRIBUTES" "MRADS_ID" END CLASS SYMBOL 0 COLOR 0 0 254 END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object^M -------------- next part -------------- An HTML attachment was scrubbed... URL: From BEN at SYNCERA-ITSOLUTIONS.NL Tue May 31 05:06:05 2005 From: BEN at SYNCERA-ITSOLUTIONS.NL (Bart van den Eijnden) Date: Tue, 31 May 2005 14:06:05 +0200 Subject: MapServer 4.6.0-beta3 released Message-ID: Daniel, will there be new Windows binaries on maptools.org? Or do people need to compile their own since the release cycles are so short? Best regards, Bart Bart van den Eijnden Syncera-ITSolutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Daniel Morissette 05/31/05 12:32am >>> MapServer 4.6.0-beta3 is now available for download on the MapServer website (http://mapserver.gis.umn.edu/dload.html). This should be the last beta before the release candidate (early next week) and the final release just in time for MUM3. Once again, we invite experienced users to contribute to the release process by testing the betas with their applications and reporting any issues via bugzilla. The list of fixes since beta2 is included below. Daniel ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Version 4.6.0-beta3 (2005-05-27) -------------------------------- - Bug 1298 : enable Attribution element in wms Capabilities XML - Bug 1354: Added a regex wrapper, allowing MapServer to build with PHP compiled with its builtin regex - Bug 1364: HTML legend templates: support [if] tests on "group_name" in leg_group_html blocks, and for "class_name" in leg_class_html blocks. - Bug 1149: From WMS 1.1.1, SRS are given in individual tags in root Layer element. - First pass at properly handling XML exceptions from CONNECTIONTYPE WMS layers. Still needs some work. (bug 1246) - map.h/mapdraw.c: removed MAX/MIN macros in favour of MS_MAX/MS_MIN. - Bug 1341, 1342 : Parse the unit parameter for DWithin filter request. Set the layer tolerance and toleranceunit with paramaters parsed. - Bug 1277 : Support of multiple logical operators in Filter Encoding. - mapwcs.c: If msDrawRasterLayerLow() fails, ensure that the error message is posted as a WCS exception. - Added experimental support for "labelcache_map_edge_buffer" metadata to define a buffer area with no labels around the edge of a map (bug 1353) From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Tue May 31 05:18:30 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Tue, 31 May 2005 07:18:30 -0500 Subject: Projection. Message-ID: Mike, So, my code would look like this: init=epsg:WGS84 Ryan -----Original Message----- From: Mike Davis [mailto:mike.and.kerry at gmail.com] Sent: Tuesday, May 24, 2005 3:48 PM To: Owens, Ryan J NWD02 CONTRACTOR Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Projection. From ed at TOPOZONE.COM Tue May 31 05:20:52 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 31 May 2005 08:20:52 -0400 Subject: RASTER Layer. Message-ID: Ryan - I am not aware of any significance to spaces in MAP files. However, I think it is a good idea to always put strings in quotes regardless of spaces. I would not always expect a line like DATA BIG FILE to work, as opposed to DATA "BIG FILE". - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com ________________________________ From: Owens, Ryan J NWD02 CONTRACTOR [mailto:Ryan.J.Owens at nwo02.usace.army.mil] Sent: Tuesday, May 31, 2005 8:00 AM To: Ed McNierney; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] RASTER Layer. Ed, This is a bit overdue... but thanks for your assistance with my question. I was able to get the raster layer to function properly. Another question... do spaces in a map file cause problems? In other words, am I creating problems when I am trying to make a map file more readable by realigning code and adding spaces? Ryan ________________________________ From: Ed McNierney [mailto:ed at topozone.com] Sent: Tuesday, May 24, 2005 2:16 PM To: Owens, Ryan J NWD02 CONTRACTOR; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] RASTER Layer. Ryan - The example MAP file you give seems (at a quick look) OK if all your input data is in the same projection. The only way you know what projections to use is by knowing your source data. Some source formats, like GeoTIFF, will have projection information embedded in them. Others, like your shapefiles, usually do not - you need to know what you have. Do you think all your data is in the same projection? What does the listgeo command tell you when you use it to dump the metadata from the basin_alb.tif file? I'm going to guess that your raster image is in the Albers or other projection, and your shapefiles are in unprojected geographic coordinates. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Owens, Ryan J NWD02 CONTRACTOR Sent: Tuesday, May 24, 2005 2:45 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] RASTER Layer. Hello Listserv, I'm new to Map Server and I am having some difficulties with getting a raster output to work. So far I have been able to get a TYPE LINE output to work. I want to add another layer, a RASTER layer, but it does not work and I don't know what I am doing wrong. Will someone scan my code to see if I have done something incorrectly? I am outputting my data to a Flash viewer in a HTML template. Thank you, Ryan ============================================================ MAP NAME FMV_ EXTENT -544000 89800 1393000 1254000 WEB log "./test.log" TEMPLATE "test_template.html" IMAGEPATH "./tmp/" IMAGEURL "http://[my domain]/fmv/test/tmp/" END DEBUG ON OUTPUTFORMAT NAME swf DRIVER "SWF" MIMETYPE "application/x-shockwave-flash" EXTENSION "swf" IMAGEMODE PC256 FORMATOPTION "OUTPUT_MOVIE=MULTIPLE" END IMAGETYPE swf SIZE 460 500 SHAPEPATH "data" IMAGECOLOR 255 255 255 PROJECTION # "proj=laea" # "ellps=clrk66" # "lat_0=45" # "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER NAME "basin" DATA "data/basin_alb.tif" STATUS DEFAULT TYPE RASTER PROCESSING "BANDS=1,2,3" OFFSITE 71 74 65 # PROJECTION # END END LAYER NAME "river" DATA missouri_river STATUS DEFAULT TYPE LINE METADATA "SWFDUMPATTRIBUTES" "NAME,LENGTH" END CLASS COLOR 0 0 254 END END LAYER NAME dcp DATA dcps STATUS DEFAULT TYPE POINT METADATA "SWFDUMPATTRIBUTES" "MRADS_ID" END CLASS SYMBOL 0 COLOR 0 0 254 END END # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object^M -------------- next part -------------- An HTML attachment was scrubbed... URL: From leopold.schefcik at MULTIMEDIAPLAN.AT Tue May 31 05:52:45 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Tue, 31 May 2005 14:52:45 +0200 Subject: WMS Server in ArcExplorer 4.0.1 einbinden In-Reply-To: Message-ID: Hallo Liste, ich habe ArcExplorer 4.0.1 mit einer Extention zum Einbinden vom WMS installiert. leider erhalte ich nach der Aufforderung: --------- Url: Service Name: --------- immer die Fehlermeldung "Invalid Capabilities File. Check Server Url." Was mu? ich bei Service Name eintragen? Oder liegts an meinen Urls? (http://demo.intevation.de/cgi/frida-wms?REQUEST=GetCapabilities&SERVICE=WMS &VERSION=1.1.1 bzw. http://deegree.centropemap.multimediaplan.kosnet.com/deegree2/wms/wms?SERVIC E=WMS&VERSION=1.1.1&REQUEST=GetCapabilities) Diese Url l?dt er (Layer in Legende), wird aber nicht angezeigt!?!? http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map& Bitte um Hilfestellung! Danke! - Leopold From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Tue May 31 06:44:35 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Tue, 31 May 2005 08:44:35 -0500 Subject: Point Layer? Message-ID: Hello list, I'm having difficulty creating a POINT layer. Actually, I'm not sure I even want a point layer. I have a shape (shp) file that has approximately 50-75 points on it. Each point represents a specific location on my map (maybe that's obvious?) Do I need to specify the layer as a POINT layer? Do I need to specify a SYMBOL? Any ideas? Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Tue May 31 07:04:40 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 31 May 2005 10:04:40 -0400 Subject: MapServer 4.6.0-beta3 released In-Reply-To: Message-ID: I will put one in a couple of hours on mapools.org and send an e-mail on this. Later Bart van den Eijnden wrote: > Daniel, > > will there be new Windows binaries on maptools.org? > > Or do people need to compile their own since the release cycles are so short? > > Best regards, > Bart > > Bart van den Eijnden > Syncera-ITSolutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>>>Daniel Morissette 05/31/05 12:32am >>> > > MapServer 4.6.0-beta3 is now available for download on the MapServer > website (http://mapserver.gis.umn.edu/dload.html). This should be the > last beta before the release candidate (early next week) and the final > release just in time for MUM3. Once again, we invite experienced users > to contribute to the release process by testing the betas with their > applications and reporting any issues via bugzilla. > > The list of fixes since beta2 is included below. > > Daniel > ------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > > > > Version 4.6.0-beta3 (2005-05-27) > -------------------------------- > > - Bug 1298 : enable Attribution element in wms Capabilities XML > > - Bug 1354: Added a regex wrapper, allowing MapServer to build with PHP > compiled with its builtin regex > > - Bug 1364: HTML legend templates: support [if] tests on "group_name" in > leg_group_html blocks, and for "class_name" in leg_class_html blocks. > > - Bug 1149: From WMS 1.1.1, SRS are given in individual tags in root Layer > element. > > - First pass at properly handling XML exceptions from CONNECTIONTYPE WMS > layers. Still needs some work. (bug 1246) > > - map.h/mapdraw.c: removed MAX/MIN macros in favour of MS_MAX/MS_MIN. > > - Bug 1341, 1342 : Parse the unit parameter for DWithin filter request. > Set the layer tolerance and toleranceunit with paramaters parsed. > > - Bug 1277 : Support of multiple logical operators in Filter Encoding. > > - mapwcs.c: If msDrawRasterLayerLow() fails, ensure that the error message > is posted as a WCS exception. > > - Added experimental support for "labelcache_map_edge_buffer" metadata to > define a buffer area with no labels around the edge of a map (bug 1353) > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From bpicinbono at WORLDONLINE.FR Tue May 31 07:20:33 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Tue, 31 May 2005 16:20:33 +0200 Subject: Getting MapServer working (PHP MapScript) In-Reply-To: Message-ID: Le mardi 31 Mai 2005 01:52, Abe Gillespie a ?crit?: > I'm trying to get things up & running on my new laptop and haven't run > into this much trouble with MapServer before. I'm running the latest > Ubuntu and compiled PHP MapScript with the latest stable MapServer > release + the latest libraries. This is my configure command: > > /configure --with-proj=/usr/local/src/proj-4.4.9 > --with-geos=/usr/local/bin/geos-config > --with-postgis=/usr/local/src/postgis-1.0.1 > --with-gdal=/usr/local/bin/gdal-config > --with-php=/usr/local/src/php-4.3.11 --prefix=/usr/local > > The only things installed via apt-get are Apache2 and GD. > > I'm trying to get a simple Chameleon sample running and am getting the > dreaded "premature end of script headers" error. OTH, if I try to > setup a simple page with a simple map (one layer in the map file), I > don't getting anything past the ms_newMapObj() line; not even errors. > For example: > > > > dl("php_mapscript.so"); > echo("Starting..."); > $map = ms_newMapObj("simple.map"); > $img = $map->draw(); > ?> > > > > Looks like this when it gets to the client: > > > Starting... > > It dies at ms_newMapObj() with no helpful messages. > > Help is very much appreciated. > > Thanks. > -Abe Have you switched on the php errors messages in the php.ini file ? What does your apache error log tell ? From leopold.schefcik at MULTIMEDIAPLAN.AT Tue May 31 07:31:34 2005 From: leopold.schefcik at MULTIMEDIAPLAN.AT (Leopold Schefcik (MULTIMEDIAPLAN.AT)) Date: Tue, 31 May 2005 16:31:34 +0200 Subject: WMS Server get into ArcExplorer 4.0.1 - English In-Reply-To: Message-ID: once again in English: Hello Liste, I have installed ArcExplorer 4.0.1 with an Extention to geht a WMS into.. but I get after this formular: --------- Url: Service Name: --------- the message "Invalid Capabilities File. Check Server Url." What do I have to put into Service Name? Or is there a mistake at my Urls? (http://demo.intevation.de/cgi/frida-wms?REQUEST=GetCapabilities&SERVICE=WMS &VERSION=1.1.1 bzw. http://deegree.centropemap.multimediaplan.kosnet.com/deegree2/wms/wms?SERVIC E=WMS&VERSION=1.1.1&REQUEST=GetCapabilities) With this url the PC shows me the legend, but no map!?!? http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map& Maybe someone can help. Thx a lot! - Leopold From cdaily at GMAIL.COM Tue May 31 07:32:49 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Tue, 31 May 2005 09:32:49 -0500 Subject: Getting MapServer working (PHP MapScript) In-Reply-To: <200505311620.33315.bpicinbono@worldonline.fr> Message-ID: Does PHP know where the php_mapscript.so file is? Did you add an extensions dir to your php.ini file? -Camden Daily Prudential Preferred Properties http://www.prupref.com From ealpert at DIGITALGLOBE.COM Tue May 31 08:32:38 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 31 May 2005 09:32:38 -0600 Subject: WMS Server get into ArcExplorer 4.0.1 - English Message-ID: What do you get when you type into your browser the getcapabilities URL for your server? You should get XML back or an error. Did you try that? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Leopold Schefcik (MULTIMEDIAPLAN.AT) Sent: Tuesday, May 31, 2005 8:32 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WMS Server get into ArcExplorer 4.0.1 - English once again in English: Hello Liste, I have installed ArcExplorer 4.0.1 with an Extention to geht a WMS into.. but I get after this formular: --------- Url: Service Name: --------- the message "Invalid Capabilities File. Check Server Url." What do I have to put into Service Name? Or is there a mistake at my Urls? (http://demo.intevation.de/cgi/frida-wms?REQUEST=GetCapabilities&SERVICE =WMS &VERSION=1.1.1 bzw. http://deegree.centropemap.multimediaplan.kosnet.com/deegree2/wms/wms?SE RVIC E=WMS&VERSION=1.1.1&REQUEST=GetCapabilities) With this url the PC shows me the legend, but no map!?!? http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map& Maybe someone can help. Thx a lot! - Leopold From stevem at SPATIALMAPPING.COM Tue May 31 08:17:08 2005 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Tue, 31 May 2005 08:17:08 -0700 Subject: web server on lists.umn.edu is down (?) Message-ID: Hi folks: I haven't been able to access the MapServer mailing list's web interface (http://lists.umn.edu/archives/mapserver-users.html) for the past two days. The host responds to pings, but it appears the web server is down, as my connection attemps to port 80 are refused. This really affects me because I receive the daily-HTML-digest version of the list, and so for the past few days I've been unable to read any of the posts, since the digest delivers them as links to lists.umn.edu. Could someone please look into it? (I can't believe I'm the only one affected by this!) Thanks, -SM -- From assefa at DMSOLUTIONS.CA Tue May 31 08:45:13 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 31 May 2005 11:45:13 -0400 Subject: MapServer 4.6.0-beta3 released In-Reply-To: <429C6EF8.8060405@dmsolutions.ca> Message-ID: Bart, Maptools.org has been updated with the beta3 binaries. Later, PS : I will definitely add a php5.0.4 support when the 4.6 is realeased. Yewondwossen Assefa wrote: > I will put one in a couple of hours on mapools.org and send an e-mail on > this. > > Later > > Bart van den Eijnden wrote: > >> Daniel, >> >> will there be new Windows binaries on maptools.org? >> >> Or do people need to compile their own since the release cycles are so >> short? >> >> Best regards, >> Bart >> >> Bart van den Eijnden >> Syncera-ITSolutions >> Postbus 270 >> 2600 AG DELFT >> >> tel.nr.: 015-7512436 >> email: BEN at Syncera-ITSolutions.nl >> >> >>>>> Daniel Morissette 05/31/05 12:32am >>> >> >> >> MapServer 4.6.0-beta3 is now available for download on the MapServer >> website (http://mapserver.gis.umn.edu/dload.html). This should be the >> last beta before the release candidate (early next week) and the final >> release just in time for MUM3. Once again, we invite experienced users >> to contribute to the release process by testing the betas with their >> applications and reporting any issues via bugzilla. >> >> The list of fixes since beta2 is included below. >> >> Daniel >> ------------------------------------------------------------ >> Daniel Morissette dmorissette at dmsolutions.ca DM >> Solutions Group http://www.dmsolutions.ca/ >> ------------------------------------------------------------ >> >> >> >> Version 4.6.0-beta3 (2005-05-27) >> -------------------------------- >> >> - Bug 1298 : enable Attribution element in wms Capabilities XML >> >> - Bug 1354: Added a regex wrapper, allowing MapServer to build with PHP >> compiled with its builtin regex >> >> - Bug 1364: HTML legend templates: support [if] tests on "group_name" in >> leg_group_html blocks, and for "class_name" in leg_class_html blocks. >> >> - Bug 1149: From WMS 1.1.1, SRS are given in individual tags in root >> Layer >> element. >> >> - First pass at properly handling XML exceptions from CONNECTIONTYPE WMS >> layers. Still needs some work. (bug 1246) >> >> - map.h/mapdraw.c: removed MAX/MIN macros in favour of MS_MAX/MS_MIN. >> >> - Bug 1341, 1342 : Parse the unit parameter for DWithin filter request. >> Set the layer tolerance and toleranceunit with paramaters parsed. >> >> - Bug 1277 : Support of multiple logical operators in Filter Encoding. >> >> - mapwcs.c: If msDrawRasterLayerLow() fails, ensure that the error >> message >> is posted as a WCS exception. >> >> - Added experimental support for "labelcache_map_edge_buffer" metadata to >> define a buffer area with no labels around the edge of a map (bug >> 1353) >> >> > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From pramsey at REFRACTIONS.NET Tue May 31 08:45:19 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 31 May 2005 08:45:19 -0700 Subject: Projection. In-Reply-To: <35ADA1929CF84D44A310F248121581AD01F93D@NWO-ML3OMA.nwo.ds.usace.army.mil> Message-ID: Ryan, Your original question, and apparent grasp of the answer indicate you have not done much homework on mapserver yet. You might find you get better answers if you ask better questions. Remember, it is not our job to help you -- we help you if we feel like it -- so it is *your* job to make us feel like it. The definitive guide is here: http://www.catb.org/~esr/faqs/smart-questions.html Paul Owens, Ryan J NWD02 CONTRACTOR wrote: > Mike, > > So, my code would look like this: init=epsg:WGS84 > > Ryan > > -----Original Message----- > From: Mike Davis [mailto:mike.and.kerry at gmail.com] > Sent: Tuesday, May 24, 2005 3:48 PM > To: Owens, Ryan J NWD02 CONTRACTOR > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Projection. > > From your address it looks like you are a corps contractor. Is this a > military project? The Army standard is WGS84 UTM for all land > mapping. Most municipal and civillian mapping at the local level > (statewide or smaller) uses "State Plane" which can be any number of > projections depending on where your project is. Try googling the > state plane for your target area to find information on things like > projection, datum, ellipsoid, units, central meridian etc.. You can > plug these values into the projection object in a .map file. > > On 5/24/05, Owens, Ryan J NWD02 CONTRACTOR > wrote: > >> >>Hello Map Server Listserv, >> >>I have a question on projection. I understand the definition and concept > > of > >>projections. But, how do you know what to use? I don't quite grasp the >>idea of how to choose the variables to put into the projection object. >> >>Ryan Owens > > From cdaily at GMAIL.COM Tue May 31 09:15:55 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Tue, 31 May 2005 11:15:55 -0500 Subject: web server on lists.umn.edu is down (?) In-Reply-To: <20050531151714.B11C04636@smlmail.spatialmapping.com> Message-ID: Link is dead for me as well. -Camden Daily On 5/31/05, Steven Monai wrote: > Hi folks: > > I haven't been able to access the MapServer mailing list's web interface > (http://lists.umn.edu/archives/mapserver-users.html) for the past two days. > The host responds to pings, but it appears the web server is down, as my > connection attemps to port 80 are refused. > > This really affects me because I receive the daily-HTML-digest version of > the list, and so for the past few days I've been unable to read any of the > posts, since the digest delivers them as links to lists.umn.edu. Could > someone please look into it? (I can't believe I'm the only one affected by > this!) > > Thanks, > -SM > -- > From buysse at SOCSCI.UMN.EDU Tue May 31 09:25:32 2005 From: buysse at SOCSCI.UMN.EDU (Joshua Buysse) Date: Tue, 31 May 2005 11:25:32 -0500 Subject: MapServer 4.6.0-beta3 released In-Reply-To: <429B9498.60002@dmsolutions.ca> Message-ID: > The list of fixes since beta2 is included below. > > - Bug 1354: Added a regex wrapper, allowing MapServer to build with PHP > compiled with its builtin regex Whatever changed here, my problems building mapserver with PHP Mapscript on Redhat Enterprise 4 are now resolved. Before this change, whenever I built with PHP support, all variants would core dump loading a mapfile (CGI, Python, PHP, etc.). I have been working to build mapserver as a clean RPM with Redhat's PHP and Postgres packages, so that only minimal changes from the base OS need to be made. I made a slight modification to the PHP packages to install the regex object files in /usr/include/php/regex (with the include files), and built a few support packages. Almost all of the packages that I've used are based on the mappinghacks.com packages, and I'm releasing my modified versions here: http://www.socsci.umn.edu/~buysse/mapserver/ If anyone's interested in them, I'm going to be maintaining versions of these packages for RHEL 4. -- Josh Buysse, System Administrator CLA-OIT, Division of Research Computing Services University of Minnesota "Democracy should not be for export only." -- Jesse Jackson http://www.suntimes.com/output/jesse/cst-edt-jesse30.html From buysse at SOCSCI.UMN.EDU Tue May 31 09:28:41 2005 From: buysse at SOCSCI.UMN.EDU (Joshua Buysse) Date: Tue, 31 May 2005 11:28:41 -0500 Subject: Fwd: Listserv web interface (was: Re: [UMN_MAPSERVER-USERS] web server on lists.umn.edu is down (?)) Message-ID: It's a known issue at the U. Sorry. Begin forwarded message: > From: Jane Gehan > Date: May 27, 2005 10:59:52 AM CDT > To: EMAIL-L at LISTS.UMN.EDU > Subject: Listserv web interface > Reply-To: E-mail group Technical Coordinator list > > > Due to a security advisory regarding the web interface to listserv, > the web interface > will not be available until Tuesday, May31. If you have immediate > needs, please email > listacct at lists.umn.edu . > > > > > Jane K. Gehan > Academic & Distributed Computing Services E-mail: jkg at tc.umn.edu > Office of Information Technology Phone: (612) 626-1810 > University of Minnesota Fax: (612) 626-7593 > -- Josh Buysse, System Administrator CLA-OIT, Division of Research Computing Services University of Minnesota "Democracy should not be for export only." -- Jesse Jackson http://www.suntimes.com/output/jesse/cst-edt-jesse30.html From bfraser at GEOANALYTIC.COM Tue May 31 09:35:01 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Tue, 31 May 2005 10:35:01 -0600 Subject: WMS Server get into ArcExplorer 4.0.1 - English Message-ID: Leopold, For some reason your web server is not passing through the "content-type" of the xml data returned by mapserver. For trouble-shooting a URL, I try the WMS url (with VERSION and REQUEST=GetCapabilities) in Internet Explorer. If IE shows well-formatted XML then there's nothing wrong with the data transfer. In your case, IE wants to save the data as a file, indicating it doesn't know what format the data is in (and most other user-agents such as ArcExplorer will have similar problems). I tried your URL in CadCorp's SIS MapBrowser (http://www.cadcorp.com/products_geographical_information_systems/map_browse r.htm), and it worked fine. It must be a lot more tolerant of "content-type" problems than most WMS clients. I saved the data returned from your URL as a file. It looks like valid GetCapabilities XML, so I would guess the problem is with your web server (or any ASP, PHP, etc you've got between the server and the client). Brent Fraser ----- Original Message ----- From: "Leopold Schefcik (MULTIMEDIAPLAN.AT)" To: Sent: Tuesday, May 31, 2005 8:31 AM Subject: [UMN_MAPSERVER-USERS] WMS Server get into ArcExplorer 4.0.1 - English > once again in English: > > > Hello Liste, > > I have installed ArcExplorer 4.0.1 with an Extention to geht a WMS into.. > > but I get after this formular: > > --------- > Url: > Service Name: > --------- > > the message "Invalid Capabilities File. Check Server Url." > > What do I have to put into Service Name? > > Or is there a mistake at my Urls? > (http://demo.intevation.de/cgi/frida-wms?REQUEST=GetCapabilities&SERVICE=WMS > &VERSION=1.1.1 > bzw. > http://deegree.centropemap.multimediaplan.kosnet.com/deegree2/wms/wms?SERVIC > E=WMS&VERSION=1.1.1&REQUEST=GetCapabilities) > > With this url the PC shows me the legend, but no map!?!? > http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map& > > Maybe someone can help. Thx a lot! - Leopold From Tom.Kralidis at EC.GC.CA Tue May 31 09:47:53 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 31 May 2005 12:47:53 -0400 Subject: PostGIS vs. MySQL spatial in MapServer Message-ID: Hi, Can someone point me to some comparisons of the spatial functionality of these packages? Thanks ..Tom ========================= Tom Kralidis Senior Systems Scientist Environment Canada Tel: +01-905-336-4409 http://www.ec.gc.ca/ From bartvde at XS4ALL.NL Tue May 31 09:57:48 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 31 May 2005 18:57:48 +0200 Subject: PostGIS vs. MySQL spatial in MapServer In-Reply-To: <2576812186CDD411BF1500508B6DCE950972FBD6@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Tom, see Paul Ramsey's comparison: http://postgis.refractions.net/pipermail/postgis-users/2003-June/002651.html This is still the state of affairs since not much was done at the MySQL side. Best regards, Bart On Tue, 31 May 2005 18:47:53 +0200, Kralidis,Tom [Burlington] wrote: > Hi, > > Can someone point me to some comparisons of the spatial functionality of > these packages? > > Thanks > > ..Tom > > ========================= > Tom Kralidis > Senior Systems Scientist > Environment Canada > Tel: +01-905-336-4409 > http://www.ec.gc.ca/ > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From stigmata_blackangel at YAHOO.COM Tue May 31 10:26:55 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Tue, 31 May 2005 10:26:55 -0700 Subject: PostGIS vs. MySQL spatial in MapServer In-Reply-To: 6667 Message-ID: > Can someone point me to some comparisons of the > spatial functionality of these packages? If you're asking about the new spatial capabilities in MySQL 4.1 -- They are not yet supported at all by any of MapServer's components. I asked about the status of that a few months back, and it wasn't even on the horizon. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From kenlord at GMAIL.COM Tue May 31 10:32:15 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 31 May 2005 10:32:15 -0700 Subject: MapServer 4.6.0-beta3 released In-Reply-To: Message-ID: I don't know if this is a bug or a feature, but the move from 4.6beta2 to 4.6beta3 has disabled the use of the parameter "TRANSPARENT ON/OFF" within OUTPUTFORMAT. Just a reminder for the 4.6 documentation that still lists the parameter. Thanks, Ken Lord Vancouver BC On 5/31/05, Joshua Buysse wrote: > > > The list of fixes since beta2 is included below. > > > > - Bug 1354: Added a regex wrapper, allowing MapServer to build with PHP > > compiled with its builtin regex > > Whatever changed here, my problems building mapserver with PHP > Mapscript on Redhat Enterprise 4 are now resolved. Before this change, > whenever I built with PHP support, all variants would core dump loading > a mapfile (CGI, Python, PHP, etc.). > > I have been working to build mapserver as a clean RPM with Redhat's PHP > and Postgres packages, so that only minimal changes from the base OS > need to be made. I made a slight modification to the PHP packages to > install the regex object files in /usr/include/php/regex (with the > include files), and built a few support packages. > > Almost all of the packages that I've used are based on the > mappinghacks.com packages, and I'm releasing my > modified versions here: > > http://www.socsci.umn.edu/~buysse/mapserver/ > > If anyone's interested in them, I'm going to be maintaining versions of > these packages for RHEL 4. > > -- > Josh Buysse, System Administrator > CLA-OIT, Division of Research Computing Services > University of Minnesota > > "Democracy should not be for export only." > -- Jesse Jackson > http://www.suntimes.com/output/jesse/cst-edt-jesse30.html > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at WEBMAPIT.COM.BR Tue May 31 10:35:31 2005 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Tue, 31 May 2005 14:35:31 -0300 Subject: MySQL Spatial requirements for Linux Message-ID: Hi, What are the MySQL Spatial Extensions requirements for linux ? Spatial support in MySQL is like PostGIS? ( a separated package that you extract and build against a PostgreSQL installation) Or MySQL Spatial Extensions is an "--option" from ./configure command? thanks in advance. -- Eduardo Patto Kanegae http://www.webmapit.com.br From saengpole at YAHOO.COM Tue May 31 11:12:12 2005 From: saengpole at YAHOO.COM (Krung Saengpole) Date: Tue, 31 May 2005 11:12:12 -0700 Subject: Simple question about scalebar. In-Reply-To: 6667 Message-ID: Hi, Thank you for your response. My map file is simple as below: MAP SHAPEPATH "d:\work\gis\kornburi\data\" FONTSET "./fonts/fonts.list" SYMBOLSET "./symbols/symbol.sym" EXTENT 730000 1550000 935000 1750000 UNITS kilometers SIZE 600 450 IMAGETYPE gif TRANSPARENT on SCALEBAR POSITION ll STATUS off COLOR 255 0 255 IMAGECOLOR 255 255 0 UNITS KILOMETERS INTERVALS 3 STYLE 0 END PROJECTION "proj=utm" "zone=47" "a=6377276.345" "b=6356075.413" "towgs84=209,818,290,0,0,0,0" "units=m" "no_defs" END LAYER ... ... END My problem is that scalebar showed wrong distance. Everything is ok but scalebar. I told you last message that true distance it should be 18.3 km but scalebar showed 18300 km. I thought if this number was correct, then the unit should be meter not kilometer. Dirk-Jan Huisman wrote: Hi, It's not clear what goes wrong. Include some code of your mapfile. What are the map units and the scalebar units? ----Oorspronkelijk bericht----- Van: Krung Saengpole [mailto:saengpole at YAHOO.COM] Verzonden: maandag 30 mei 2005 16:34 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Simple question about scalebar. Dear all, Whether or not I embeded scalebar in map, it showed wrong distance, e.g. it should be 18.3 km but it showed 18300 km. Nontheless I use projection or not. What I have to specially set to get right scalebar? TIA Krung __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ----------------------------------------------------------------------------------- Prins Mauritsstraat 17, Postbus 75, 4140 AB Leerdam Telefoon (0345) 63 96 96, Fax (0345) 63 96 66, E-mail post at ingbcc.nl Internet www.ingbcc.nl ----------------------------------------------------------------------------------- Deze e-mail en de eventuele bestanden die meegezonden zijn, zijn vertrouwelijk en alleen bedoeld voor het gebruik door de individu of instelling aan wie deze e-mail geadresseerd is. Als u deze e-mail onterecht ontvangen heeft wilt u het ons dan laten weten. ----------------------------------------------------------------------------------- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the system manager. ----------------------------------------------------------------------------------- --------------------------------- Do You Yahoo!? Yahoo! Small Business - Try our new Resources site! -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Tue May 31 11:21:06 2005 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 31 May 2005 13:21:06 -0500 Subject: PostGIS vs. MySQL spatial in MapServer Message-ID: That is the cool thing about OpenSource. If you really need this capability right now, you could fund the development of this feature and the results would benefit you and the rest of the community. David. David Fawcett Minnesota Office of Environmental Assistance david.fawcett at moea.state.mn.us 651.215.0200 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Gregor Mosheh Sent: Tuesday, May 31, 2005 12:27 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. MySQL spatial in MapServer > Can someone point me to some comparisons of the > spatial functionality of these packages? If you're asking about the new spatial capabilities in MySQL 4.1 -- They are not yet supported at all by any of MapServer's components. I asked about the status of that a few months back, and it wasn't even on the horizon. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From dmorissette at DMSOLUTIONS.CA Tue May 31 11:32:04 2005 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Tue, 31 May 2005 14:32:04 -0400 Subject: MapServer 4.6.0-beta3 released In-Reply-To: <55dd01fa050531103256c1d37f@mail.gmail.com> Message-ID: Ken Lord wrote: > I don't know if this is a bug or a feature, but the move from 4.6beta2 > to 4.6beta3 has disabled the use of the parameter "TRANSPARENT ON/OFF" > within OUTPUTFORMAT. > Well, setting TRANSPARENT ON/OFF (or TRUE/FALSE) in an OUTPUTFORMAT block in the mapfile works for me with 4.6beta3, and the resulting image has the right transparency (I used GIF for my tests). What happens or doesn't happen exactly for you? Is it that you get a mapfile parsing error, or simply that transparency appears to not be working but you get no error message? Are you sure it's not something else that changes in your test environment (or a broken build)? Perhaps you could file a bug if you are able to include a simple testcase to reproduce. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Tue May 31 11:44:32 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Tue, 31 May 2005 13:44:32 -0500 Subject: Implementing line and polygon layers. Message-ID: Hello list serve, I have a map file that I am trying to implement a number of layers in (line, raster, and polygon). I have a "river" layer, a "lakes" layer, a "state_shapes" layer and a "basin" layer. For some reason I am unable to implement the "lakes" and "states_shapes" layers simultaneously. Could someone scan over my map file code to see if I've made any errors? I can implement each layer individually, but when combined, one of the layers goes away. Thanks in advance. Ryan MAP NAME FMV_ EXTENT -535681 116823 1337533 1458918 WEB log "./test.log" TEMPLATE "test_template.html" IMAGEPATH "./tmp/" IMAGEURL "[domain]/fmv/test/tmp/" END DEBUG ON OUTPUTFORMAT NAME swf DRIVER "SWF" MIMETYPE "application/x-shockwave-flash" EXTENSION "swf" IMAGEMODE PC256 FORMATOPTION "OUTPUT_MOVIE=MULTIPLE" END IMAGETYPE swf SIZE 460 500 SHAPEPATH "data" IMAGECOLOR 255 255 255 PROJECTION "proj=laea" "ellps=clrk66" "lat_0=45" "lon_0=-100" # Alternatively, you can specify an EPSG code. # "init=epsg:2163" END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER NAME "basin" DATA basin_alb.TIF STATUS DEFAULT TYPE RASTER # PROJECTION # END END LAYER NAME "river" DATA missouri_river STATUS DEFAULT TYPE LINE METADATA "SWFDUMPATTRIBUTES" "NAME,LENGTH" END CLASS COLOR 0 0 254 END END LAYER NAME "lakes" DATA mainstem_lakes STATUS DEFAULT TYPE POLYGON CLASS COLOR 0 0 0 OUTLINECOLOR 0 0 0 END METADATA "SWFDUMPATTRIBUTES" "LAKE_NAME,AREA" END END LAYER NAME "state_shapes" DATA states STATUS DEFAULT TYPE LINE CLASS COLOR 0 0 0 END END # LAYER # NAME dcp # DATA dcps # STATUS DEFAULT # TYPE POINTS # METADATA # "SWFDUMPATTRIBUTES,MRADS_ID" # END # CLASS # NAME "POINTS" # STYLE # SYMBOL "circle" # SIZE 1 # COLOR 0 0 0 # END # END END #End of LAYER DEFINITIONS --------------------------------------------- END # end of map file/object^M From Ryan.J.Owens at NWO02.USACE.ARMY.MIL Tue May 31 12:19:12 2005 From: Ryan.J.Owens at NWO02.USACE.ARMY.MIL (Owens, Ryan J NWD02 CONTRACTOR) Date: Tue, 31 May 2005 14:19:12 -0500 Subject: Implementing line and polygon layers. Message-ID: Please disregard this message. I learned that my Flash viewer only accepts four layers, and I have obviously exceeded that amount with this map file. Thanks, Ryan -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Owens, Ryan J NWD02 CONTRACTOR Sent: Tuesday, May 31, 2005 1:45 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Implementing line and polygon layers. Hello list serve, I have a map file that I am trying to implement a number of layers in (line, raster, and polygon). I have a "river" layer, a "lakes" layer, a "state_shapes" layer and a "basin" layer. For some reason I am unable to implement the "lakes" and "states_shapes" layers simultaneously. Could someone scan over my map file code to see if I've made any errors? I can implement each layer individually, but when combined, one of the layers goes away. Thanks in advance. Ryan MAP NAME FMV_ EXTENT -535681 116823 1337533 1458918 WEB log "./test.log" TEMPLATE "test_template.html" IMAGEPATH "./tmp/" IMAGEURL "[domain]/fmv/test/tmp/" END DEBUG ON OUTPUTFORMAT NAME swf DRIVER "SWF" MIMETYPE "application/x-shockwave-flash" EXTENSION "swf" IMAGEMODE PC256 FORMATOPTION "OUTPUT_MOVIE=MULTIPLE" END IMAGETYPE swf SIZE 460 500 SHAPEPATH "data" IMAGECOLOR 255 255 255 PROJECTION "proj=laea" "ellps=clrk66" "lat_0=45" "lon_0=-100" # Alternatively, you can specify an EPSG code. # "init=epsg:2163" END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER NAME "basin" DATA basin_alb.TIF STATUS DEFAULT TYPE RASTER # PROJECTION # END END LAYER NAME "river" DATA missouri_river STATUS DEFAULT TYPE LINE METADATA "SWFDUMPATTRIBUTES" "NAME,LENGTH" END CLASS COLOR 0 0 254 END END LAYER NAME "lakes" DATA mainstem_lakes STATUS DEFAULT TYPE POLYGON CLASS COLOR 0 0 0 OUTLINECOLOR 0 0 0 END METADATA "SWFDUMPATTRIBUTES" "LAKE_NAME,AREA" END END LAYER NAME "state_shapes" DATA states STATUS DEFAULT TYPE LINE CLASS COLOR 0 0 0 END END # LAYER # NAME dcp # DATA dcps # STATUS DEFAULT # TYPE POINTS # METADATA # "SWFDUMPATTRIBUTES,MRADS_ID" # END # CLASS # NAME "POINTS" # STYLE # SYMBOL "circle" # SIZE 1 # COLOR 0 0 0 # END # END END #End of LAYER DEFINITIONS --------------------------------------------- END # end of map file/object^M From cdaily at GMAIL.COM Tue May 31 13:18:07 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Tue, 31 May 2005 15:18:07 -0500 Subject: Getting MapServer working (PHP MapScript) In-Reply-To: Message-ID: This code is an example of how to use the builtin mapserver error messages. If the script actually DIES on the ms_newMapObj and doesn't run anything after that, then you need to look into PHP error messages. draw(); $error = ms_GetErrorObj(); while($error AND $error->code != MS_NOERR) { printf("Error in %s: %s
    \n", $error->routine, $error->message); $error = $error->next(); } ?> From kenlord at GMAIL.COM Tue May 31 13:20:21 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 31 May 2005 13:20:21 -0700 Subject: MapServer 4.6.0-beta3 released In-Reply-To: <429CADA4.5000203@dmsolutions.ca> Message-ID: Hi Daniel, I'm using the build of 4.6beta3 for windows that was made available for download from maptools.org today. If TRANSPARENT is within the outputformat, mapserver fails and returns the following error message: "GD/JPEG OUTPUTFORMAT jpeg has TRANSPARENT set ON, but this is not supported. It has been disabled." Leaving TRANSPARENT out of the outputformat block prevents the error message, and the map appears to be generating properly including transparancy. Previously I had to have TRANSPARENT ON in my outputformat block to enable transparancy. If this was the intended effect, then just the 4.6 documentation needs to be updated for the syntax change. I brought this up because the change was not listed in the revision history in history.txt, and the mapserver log and our flash interface don't show this error message, leaving me to try it out in an HTML template when our flash site failed. Thanks again, Ken On 5/31/05, Daniel Morissette wrote: > > Ken Lord wrote: > > I don't know if this is a bug or a feature, but the move from 4.6beta2 > > to 4.6beta3 has disabled the use of the parameter "TRANSPARENT ON/OFF" > > within OUTPUTFORMAT. > > > > Well, setting TRANSPARENT ON/OFF (or TRUE/FALSE) in an OUTPUTFORMAT > block in the mapfile works for me with 4.6beta3, and the resulting image > has the right transparency (I used GIF for my tests). > > What happens or doesn't happen exactly for you? Is it that you get a > mapfile parsing error, or simply that transparency appears to not be > working but you get no error message? Are you sure it's not something > else that changes in your test environment (or a broken build)? Perhaps > you could file a bug if you are able to include a simple testcase to > reproduce. > > Daniel > -- > ------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at MEDINACO.ORG Tue May 31 14:23:18 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Tue, 31 May 2005 17:23:18 -0400 Subject: PerlMapScript Testers Needed NOW Message-ID: Hello all, The SWIG typemap for imageObj->write is ready for testing at: http://www.highwayengineer.co.medina.oh.us/temp/mapscript.tar.gz There are 3 files included: medina1.patch - the patch file containing the code changes. medina1_autogen.patch - the patch file containing changes to the SWIG output if you don't feel like re-SWIG'ing yourself. nonwrite.cgi - sample code for using the 'write' method in both GD:: & Image::Magick. Requirements: Mapserver & MapScript 4.4.2. Perl 5.8.0 + (this uses PerlIO vs. stdio). Thanks go to the Steve Lime, MS-team(et. al.), Sean Gillies, & Chip Salzenberg. Lowell P.S. The changes for map->processXTemplate are also included but I have not tested those yet. From kenlord at GMAIL.COM Tue May 31 14:57:20 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 31 May 2005 14:57:20 -0700 Subject: MapServer 4.6.0-beta3 released In-Reply-To: <55dd01fa05053114534c39adda@mail.gmail.com> Message-ID: > > Hi Daniel, > I think my case was unusual because I absolutely had to use jpeg output > (with interlace off), so that our flash interface could use the map image, > and I had to have transparent set to on so that my map symbolizations would > work. > My map has polygon features that are symbolized using three styles, a > solid fill style on the bottom, a style with an ellipse/vector symbol to > create a 'hatch' effect, and a cartoline style on top to give a nice > anti-aliased outline to the polygon. The background colour and hatch > pattern/colour are different in each class within the layer to reflect > dozens of combinations of primary, secondary, and tertiary surficial geology > types within that layer's dataset. > Previously without transparent set to on, you couldnt see through the > 'blank' parts of the hatch styles to see the solid fill underneath. > 'Transparent' may not be relevant or allowable for jpeg's, but before > 4.6b3, the setting had to be within outputformat to turn transparent on > for my symbolizations. Perhaps two unrelated systems were using the same > parameter. > Perhaps the documentation just needs a note that transparent is not > allowable for jpeg's. > It was definately working in 4.6beta2. I have beta2 and beta3 (and older > versions) installed in separate folders on our webserver, each with all > their associated dll's. To switch a website between the versions I just have > to point a virtual folder in the website directory to the appropriate > mapserver software folder. > Thanks, > Ken > > > On 5/31/05, Daniel Morissette wrote: > > > > Sending this reply to mapserver-dev instead of -users... > > > > Ken Lord wrote: > > > > > > If TRANSPARENT is within the outputformat, mapserver fails and returns > > > > > the following error message: > > > > > > "GD/JPEG OUTPUTFORMAT jpeg has TRANSPARENT set ON, but this is not > > > supported. It has been disabled." > > > > > > > Ah! That makes more sense now. Due to the nature of the format, JPEG > > does not and cannot support transparency. This is not new to MapServer > > 4.6, only the more explicit error message may be new. > > > > > > > > > > If this was the intended effect, then just the 4.6 documentation needs > > > > > to be updated for the syntax change. > > > > Since this is just an error message to prevent users from requesting an > > impossible combination, I don't think there is much to document. I mean > > I'm not convinced that it would make sense to document all the > > impossible combinations of mapfile parameters. > > > > > > > I brought this up because the > > > change was not listed in the revision history in history.txt, and the > > > mapserver log and our flash interface don't show this error message, > > > leaving me to try it out in an HTML template when our flash site > > failed. > > > > > > > Unfortunately the HISTORY.TXT is only as accurate as what the developers > > make of it. It is possible that some items are missing if some > > developers fail to update it, and there is not much I can do about this. > > > > However I did find a note from Frank in the 4.4.0 HISTORY.TXT about this > > new validation: > > > > - Force GD/JPEG outputFormatObjects to IMAGEMODE RGB and TRANSPARENT OFF > > > > if they are RGBA or ON. Makes user error such as in bug 1703 less > > likely. > > > > Are you sure that this was working in 4.6beta2? > > > > Daniel > > -- > > ------------------------------------------------------------ > > Daniel Morissette dmorissette at dmsolutions.ca > > DM Solutions Group http://www.dmsolutions.ca/ > > ------------------------------------------------------------ > > > -- ============================== Ken Lord B.Sc ., A.Dipl.T.H. 7488 Magnolia Terrace Burnaby BC, V5E 4L1 604-777-2171 kenlord at gmail.com kenlord at email.com klord at bgcengineering.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgillies at FRII.COM Tue May 31 15:06:09 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 31 May 2005 16:06:09 -0600 Subject: PerlMapScript Testers Needed NOW In-Reply-To: Message-ID: On May 31, 2005, at 3:23 PM, Lowell Filak wrote: > Hello all, > > The SWIG typemap for imageObj->write is ready for testing at: > http://www.highwayengineer.co.medina.oh.us/temp/mapscript.tar.gz > > There are 3 files included: > medina1.patch - the patch file containing the code changes. > medina1_autogen.patch - the patch file containing changes to the SWIG > output if you don't feel like re-SWIG'ing yourself. > nonwrite.cgi - sample code for using the 'write' method in both GD:: & > Image::Magick. > > Requirements: > Mapserver & MapScript 4.4.2. > Perl 5.8.0 + (this uses PerlIO vs. stdio). > > Thanks go to the Steve Lime, MS-team(et. al.), Sean Gillies, & Chip > Salzenberg. > > Lowell > > P.S. The changes for map->processXTemplate are also included but I have > not tested those yet. > Well, better late than never ;) Create a bug in our bugzilla and let's get this done. Better if this is tested against MapServer 4.6 beta 3 if y'all want this in the next big release. cheers, Sean -- Sean Gillies sgillies at frii dot com http://zcologia.com From kenlord at GMAIL.COM Tue May 31 15:17:58 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 31 May 2005 15:17:58 -0700 Subject: MapServer 4.6.0-beta3 released In-Reply-To: <55dd01fa05053115166dd0e6b3@mail.gmail.com> Message-ID: I'm using ellipse or vector type symbols for the hatch, not pixmap, but "TRANSPARANCY ALPHA" is set within my layer, which allows the blank parts of the hatch to be seen through. Previously you also had to set transparent on in the outputformat or else transparancy alpha within the layers failed. Going further back in time, transparent on used to be set outside the outputformat block at the top of the mapfile for the same effect. But I guess this is all moot since transparancy alpha works properly now without transparent on in the outputformat. Hopefully our conversation will point others in the right direction if they encountered the same issue. Cheers, Ken On 5/31/05, Daniel Morissette wrote: > > Ken Lord wrote: > > > > My map has polygon features that are symbolized using three styles, a > > solid fill style on the bottom, a style with an ellipse/vector symbol to > > > create a 'hatch' effect, and a cartoline style on top to give a nice > > anti-aliased outline to the polygon. The background colour and > > hatch pattern/colour are different in each class within the layer to > > reflect dozens of combinations of primary, secondary, and > > tertiary surficial geology types within that layer's dataset. > > > > Previously without transparent set to on, you couldnt see through the > > 'blank' parts of the hatch styles to see the solid fill underneath. > > > > 'Transparent' may not be relevant or allowable for jpeg's, but before > > 4.6b3, the setting had to be within outputformat to turn transparent on > > for my symbolizations. Perhaps two unrelated systems were using the same > > parameter. > > > > > Um... are your hatch patterns using pixmap symbols? Maybe you need to > use "TRANSPARENCY ALPHA" in those layers? > From the mapfile-reference.html: > > --- > The "ALPHA" symbol directs the mapserver rendering code to honor the > indexed or alpha transparency of pixmap symbols used to style a layer. > This is only needed in the case of RGB output formats, and should be > used only when necessary as it is expensive to render transparent pixmap > symbols onto an RGB map image. > --- > > > > Perhaps the documentation just needs a note that transparent is not > > allowable for jpeg's. > > > > It was definately working in 4.6beta2. I have beta2 and beta3 (and > > older versions) installed in separate folders on our webserver, each > > with all their associated dll's. To switch a website > > between the versions I just have to point a virtual folder in the > > website directory to the appropriate mapserver software folder. > > > > It's always possible that someone changed something with respect to > transparency handling and didn't document the change. If that's the case > then hopefully they'll jump in and explain what they've changed. > > Daniel > -- > ------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > -- ============================== Ken Lord B.Sc ., A.Dipl.T.H. 7488 Magnolia Terrace Burnaby BC, V5E 4L1 604-777-2171 kenlord at gmail.com kenlord at email.com klord at bgcengineering.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bonnie.Stewart at DLI.WA.GOV.AU Tue May 31 19:03:39 2005 From: Bonnie.Stewart at DLI.WA.GOV.AU (Bonnie Stewart) Date: Wed, 1 Jun 2005 10:03:39 +0800 Subject: ArcMap - GetFeatureInfo URL missing the LAYERS parameter? Message-ID: Hi all, I'm working on a few WMS services for my organisation (still very much in the development stage), and I'm testing my mapfiles in IE 6, ArcMap 9.0, ArcExplorer 4, ArcExplorer 9, and Gaia 2.1.0. Thus far I've been unable to get GetFeatureInfo requests (via the Identify tool) working in ArcMap - if I use Identify on a particular layer, I always get "Nothing found", and if I use it for a group of layers, I get a blank response. Querying the same area in Gaia 2.0.1 works fine, either on that layer or the group as a whole. I've used my webserver logs to compare the URLs used by both Gaia and ArcMap for GetFeatureInfo Requests. Below is the entry in the webserver log for ArcMap's GetFeatureInfo request (edited for readability & path removed). 2005-06-01 00:33:24 10.0.0.11 GET /scripts/mapserv.exe map=\wms_1-250k.map &VERSION=1.1.1 &REQUEST=GetFeatureInfo &SRS=EPSG:4326 &BBOX=104.859217282479,-53.2952,162.115782717521,-2.5148 &WIDTH=946 &HEIGHT=839 &QUERY_LAYERS=hotspots_200505161346_P_A_MOD14.shp &STYLES= &EXCEPTIONS=application/vnd.ogc.se_xml &&INFO_FORMAT=text/html &FEATURE_COUNT=50 &X=343&Y=283 If I reverse engineer this into the appropriate URL and test it in IE, I get an XML document back containing the error "msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter." Now the interesting part: if I then add on to the URL "&LAYERS=hotspots_200505161346_P_A_MOD14.shp" (same layer as the QUERY_LAYERS parameter), then I get a nifty response back - features are found and displayed via my html template. Incidentally, Gaia's URL does include this parameter. Is this a bug in ArcMap's WMS compliance? How can I get around it?? All advice much appreciated! :) Cheers, Bonnie ________________________________ Bonnie Stewart Research Officer Satellite Remote Sensing Services Department of Land Information Email: Bonnie.Stewart at dli.wa.gov.au Phone: 9387 0342 This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this in error, please notify the author by Return email to the sender. Information in this message not relating to the official business of DLI shall be understood as neither given nor endorsed by it. While every care is taken, it is recommended that you scan any attachments for viruses. DLI liability is limited to re-supplying affected attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Geoff.Dibley at GA.GOV.AU Tue May 31 19:35:03 2005 From: Geoff.Dibley at GA.GOV.AU (Geoff Dibley) Date: Wed, 1 Jun 2005 12:35:03 +1000 Subject: ArcMap - GetFeatureInfo URL missing the LAYERS parameter? Message-ID: Bonnie, We came across the same problem with ESRI clients using the GetFeatureInfo request. The Layers parameter in the OGC WMS spec does imply that the Layers parameter is required. We followed it up with ESRI in Australia and they came back with this response; >>It looks like we are making a change to our software to ensure that we >>can perform an Identify on a MapServer WMS. The assigned analyst has >>just notified me that: >>"An enhancement request has been logged to make the LAYERS parameter as >>part of the portion of the GetFeatureInfo request, >>CQ00269950." >>I don't yet know which Version or Service Pack this will be targeted >>for but I know that ArcGIS 9.1 has already been completed so I would >>not expect it to >be as soon as that. >>Thankyou for bringing the issue to our attention. Regards, Geoff ======================================== Geoff Dibley Geospatial and Earth Monitoring Division Geoscience Australia GPO Box 378 Canberra ACT 2601 Phone: +61 2 6249 9809 Fax: + 61 2 6249 9937 Email: geoff.dibley at ga.gov.au Web: http://www.ga.gov.au ========================================= -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bonnie Stewart Sent: Wednesday, 1 June 2005 12:04 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] ArcMap - GetFeatureInfo URL missing the LAYERS parameter? Hi all, I'm working on a few WMS services for my organisation (still very much in the development stage), and I'm testing my mapfiles in IE 6, ArcMap 9.0, ArcExplorer 4, ArcExplorer 9, and Gaia 2.1.0. Thus far I've been unable to get GetFeatureInfo requests (via the Identify tool) working in ArcMap - if I use Identify on a particular layer, I always get "Nothing found", and if I use it for a group of layers, I get a blank response. Querying the same area in Gaia 2.0.1 works fine, either on that layer or the group as a whole. I've used my webserver logs to compare the URLs used by both Gaia and ArcMap for GetFeatureInfo Requests. Below is the entry in the webserver log for ArcMap's GetFeatureInfo request (edited for readability & path removed). 2005-06-01 00:33:24 10.0.0.11 GET /scripts/mapserv.exe map=\wms_1-250k.map &VERSION=1.1.1 &REQUEST=GetFeatureInfo &SRS=EPSG:4326 &BBOX=104.859217282479,-53.2952,162.115782717521,-2.5148 &WIDTH=946 &HEIGHT=839 &QUERY_LAYERS=hotspots_200505161346_P_A_MOD14.shp &STYLES= &EXCEPTIONS=application/vnd.ogc.se_xml &&INFO_FORMAT=text/html &FEATURE_COUNT=50 &X=343&Y=283 If I reverse engineer this into the appropriate URL and test it in IE, I get an XML document back containing the error "msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter." Now the interesting part: if I then add on to the URL "&LAYERS=hotspots_200505161346_P_A_MOD14.shp" (same layer as the QUERY_LAYERS parameter), then I get a nifty response back - features are found and displayed via my html template. Incidentally, Gaia's URL does include this parameter. Is this a bug in ArcMap's WMS compliance? How can I get around it?? All advice much appreciated! :) Cheers, Bonnie ________________________________ Bonnie Stewart Research Officer Satellite Remote Sensing Services Department of Land Information Email: Bonnie.Stewart at dli.wa.gov.au Phone: 9387 0342 This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this in error, please notify the author by Return email to the sender. Information in this message not relating to the official business of DLI shall be understood as neither given nor endorsed by it. While every care is taken, it is recommended that you scan any attachments for viruses. DLI liability is limited to re-supplying affected attachments. From Bonnie.Stewart at DLI.WA.GOV.AU Tue May 31 19:54:44 2005 From: Bonnie.Stewart at DLI.WA.GOV.AU (Bonnie Stewart) Date: Wed, 1 Jun 2005 10:54:44 +0800 Subject: ArcMap - GetFeatureInfo URL missing the LAYERS parameter? Message-ID: Thanks Geoff. I have asked the same question in the ESRI user forums so it will be interesting to see what their response is. Perhaps if anyone else has the same problem, it might be a good idea to post to the ESRI forum to let them know and hopefully increase the priority for fixing this problem. Cheers, Bonnie ________________________________ Bonnie Stewart Research Officer Satellite Remote Sensing Services Department of Land Information Email: Bonnie.Stewart at dli.wa.gov.au Phone: 9387 0342 ________________________________ From: UMN MapServer Users List on behalf of Geoff Dibley Sent: Wed 1/06/2005 10:35 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ArcMap - GetFeatureInfo URL missing the LAYERS parameter? Bonnie, We came across the same problem with ESRI clients using the GetFeatureInfo request. The Layers parameter in the OGC WMS spec does imply that the Layers parameter is required. We followed it up with ESRI in Australia and they came back with this response; >>It looks like we are making a change to our software to ensure that we >>can perform an Identify on a MapServer WMS. The assigned analyst has >>just notified me that: >>"An enhancement request has been logged to make the LAYERS parameter as >>part of the portion of the GetFeatureInfo request, >>CQ00269950." >>I don't yet know which Version or Service Pack this will be targeted >>for but I know that ArcGIS 9.1 has already been completed so I would >>not expect it to >be as soon as that. >>Thankyou for bringing the issue to our attention. Regards, Geoff ======================================== Geoff Dibley Geospatial and Earth Monitoring Division Geoscience Australia GPO Box 378 Canberra ACT 2601 Phone: +61 2 6249 9809 Fax: + 61 2 6249 9937 Email: geoff.dibley at ga.gov.au Web: http://www.ga.gov.au ========================================= -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bonnie Stewart Sent: Wednesday, 1 June 2005 12:04 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] ArcMap - GetFeatureInfo URL missing the LAYERS parameter? Hi all, I'm working on a few WMS services for my organisation (still very much in the development stage), and I'm testing my mapfiles in IE 6, ArcMap 9.0, ArcExplorer 4, ArcExplorer 9, and Gaia 2.1.0. Thus far I've been unable to get GetFeatureInfo requests (via the Identify tool) working in ArcMap - if I use Identify on a particular layer, I always get "Nothing found", and if I use it for a group of layers, I get a blank response. Querying the same area in Gaia 2.0.1 works fine, either on that layer or the group as a whole. I've used my webserver logs to compare the URLs used by both Gaia and ArcMap for GetFeatureInfo Requests. Below is the entry in the webserver log for ArcMap's GetFeatureInfo request (edited for readability & path removed). 2005-06-01 00:33:24 10.0.0.11 GET /scripts/mapserv.exe map=\wms_1-250k.map &VERSION=1.1.1 &REQUEST=GetFeatureInfo &SRS=EPSG:4326 &BBOX=104.859217282479,-53.2952,162.115782717521,-2.5148 &WIDTH=946 &HEIGHT=839 &QUERY_LAYERS=hotspots_200505161346_P_A_MOD14.shp &STYLES= &EXCEPTIONS=application/vnd.ogc.se_xml &&INFO_FORMAT=text/html &FEATURE_COUNT=50 &X=343&Y=283 If I reverse engineer this into the appropriate URL and test it in IE, I get an XML document back containing the error "msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter." Now the interesting part: if I then add on to the URL "&LAYERS=hotspots_200505161346_P_A_MOD14.shp" (same layer as the QUERY_LAYERS parameter), then I get a nifty response back - features are found and displayed via my html template. Incidentally, Gaia's URL does include this parameter. Is this a bug in ArcMap's WMS compliance? How can I get around it?? All advice much appreciated! :) Cheers, Bonnie ________________________________ Bonnie Stewart Research Officer Satellite Remote Sensing Services Department of Land Information Email: Bonnie.Stewart at dli.wa.gov.au Phone: 9387 0342 This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this in error, please notify the author by Return email to the sender. Information in this message not relating to the official business of DLI shall be understood as neither given nor endorsed by it. While every care is taken, it is recommended that you scan any attachments for viruses. DLI liability is limited to re-supplying affected attachments. This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this in error, please notify the author by Return email to the sender. Information in this message not relating to the official business of DLI shall be understood as neither given nor endorsed by it. While every care is taken, it is recommended that you scan any attachments for viruses. DLI liability is limited to re-supplying affected attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ezequias at RECIFE.PE.GOV.BR Thu May 19 07:58:29 2005 From: ezequias at RECIFE.PE.GOV.BR (Ezequias Rodrigues da Rocha) Date: Thu, 19 May 2005 11:58:29 -0300 Subject: Covers to Documents Message-ID: If anyone wants some cover pages to your documments, just download the attached file. I want you check for virouses, but I believe there isn't any virous. Sincerely =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Atenciosamente (Sincerely) Ezequias Rodrigues da Rocha * www.recife.pe.gov.br =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- A pior das democracias ainda ? melhor do que a melhor das ditaduras The worst of democracies is still better than the better of dictatorships MSN Messenger: ezequias at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: msn.JPG Type: image/jpeg Size: 1111 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Covers.zip Type: application/x-zip-compressed Size: 293205 bytes Desc: not available URL: