From guillaume.sueur at GEOSIGNAL.FR Thu Mar 1 00:05:10 2007 From: guillaume.sueur at GEOSIGNAL.FR (Guillaume Sueur) Date: Thu, 1 Mar 2007 11:05:10 +0300 Subject: Only Mapserver or not In-Reply-To: <20070301075638.BBC86B7E47@vscan.iway.na> Message-ID: Hi Andr?, it depends pretty much of what you plan to do. If you need just one web mapping application, with routing and other functionnalities, you should actually use one of these (CartoWeb has a routing module based on pgDjikstra). You will save a lot of time because you won't have to develop zoom, query, tooltip function and so on. But if what you need is more specific, and evolutive or highly integrated to some already running web app, then you should start from scratch. Hope that helps, Andre Schoonbee a ?crit : > I have a question? > > Should I use only Mapserver or not? > > As I gone through the manual (Mapserver Opensource Development) it looks > like with php development and porstgresql, I could be aqble to do prity much > everything I want to do. It would probably be able to do routing also. > > Having said that, Products like Mapbender, Cameleon and Cartoweb was > developed for good reasons. But to learn them also would require additional > time. > > My question is, will it be well worth it to try learning one of these > products also, because the added value will be far more that the time > spend in trying to redevelop some of their functionality. > (Re-developing the wheel situation) > > What is your view on this?? > > Andre > > From nimalikaf at YAHOO.COM Thu Mar 1 01:52:57 2007 From: nimalikaf at YAHOO.COM (nimalika Fernando) Date: Thu, 1 Mar 2007 03:52:57 -0600 Subject: problem in Dynamic query with postGIS Message-ID: hi everybody, I am working in a disaster recovery application , using Mapserver and postGIS for mapping part. I need to implement a simple search facilty, for eaxmple if user already knows a village affected , by selecting that village name using a combo box in web interface the related village should be highlighted in the map. I am not clear about how to implement such but I tried several options. I have used a QUERYMAP object and tried . But I am not getting the work done. My data resides in postGIS db and working with Maapserver in CGI mode is fine for basic operations. My query in the map file is as follows DATA "the_geom from (select alldsdivisions.the_geom as the_geom,alldsdivisions.gid as oid , alldsdivisions.dsd_n as dsd_n from alldsdivisions where alldsdivisions.dsd_n ='%qstring%') error mesage I get is as follows prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT dsd_n::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),oid::text from (select alldsdivisions.the_geom as the_geom,alldsdivisions.gid as oid , alldsdivisions.dsd_n as dsd_n from alldsdivisions where alldsdivisions.dsd_n ='Ambalanthota') AS selectedgs WHERE (Ambalanthota) and (the_geom && setSRID( 'BOX3D(181659.373889 74242.41425975,303213.047119 165407.66918225)'::BOX3D,-1) )' Postgresql reports the error as 'ERROR: column "ambalanthota" does not exist ' here , "Ambalanthota" mean a value of coumn dsd_n of table alldsdivisions. qstring is replaced by the user selected value of the combo box. I have tried to get help from postGIS users but still i couldn't solve this can anybody help me to figure out a solution , pls? thank you in advance, Nimalika from Sri Lanka From julien at LINKAS.IT Thu Mar 1 02:15:57 2007 From: julien at LINKAS.IT (Julien Buratto) Date: Thu, 1 Mar 2007 11:15:57 +0100 Subject: beginner: Again MapInfo .tab .dat .id .map with white image Message-ID: Hi there, happy to enter the world of mapping :-D I've been reading past posts about this topic, but I could not figure-out how to solve my problem. An institution in my country passed me the MapInfo cds with hundreds of files, name XXXXXXX.TAB .DAT .ID .MAP At the beginning I was desperate (yeye geek panic), then I ogr2ogr all them to postgis and I was feeling confortable, but could not generate my first map (always the same, white, invisibile gif square :-D) Then I decide to use the CONNECTIONTYPE OGR directly to those files because shp2img was complaining about some SQL and I thought it was not worth at the beginning to use postgis, better start with MapInfo files. My ogrinfo reports a loooong long report showing each row of data present, while the summary shows (for one file): ogrinfo /root/data_cd/269140.TAB -summary 269140 Had to open data source read-only. INFO: Open of `/root/dati_cd/269140.TAB' using driver `MapInfo File' successful. Layer name: 269140 Geometry: Unknown (any) Feature Count: 386 Extent: (2365748.451000, 4851329.181000) - (2366928.857000, 4852758.777000) Layer SRS WKT: PROJCS["unnamed", GEOGCS["unnamed", DATUM["Monte_Mario", SPHEROID["International 1924",6378388,297], TOWGS84[-225,-65,9,-0,-0,-0,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",15], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",2520000], PARAMETER["false_northing",0], UNIT["Meter",1.0]] ID: Integer (0.0) TIPO: String (15.0) LIVELLO: String (15.0) NUMFOGLIO: Integer (0.0) NOMFOGLIO: String (30.0) DESCRIZIONE: String (100.0) TOPONIMO: String (60.0) QUOTA1: Real (0.0) QUOTA2: Real (0.0) Well, my MAP is now: NAME DEMO STATUS ON SIZE 400 300 UNITS METERS IMAGECOLOR 255 255 255 FONTSET ../etc/fonts.txt EXTENT 0 0 3072800 3840000 LAYER NAME "269140" TYPE RASTER STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "/root/dati_cd/269140.TAB" STYLEITEM "AUTO" CLASS NAME "Elevation Poly 5" OUTLINECOLOR 0 0 0 COLOR 128 128 128 END END # Layer END When I hit "shp2img" I don't get errors, the file is generated white. My questions are: 1) Could be a problem of EXTENT ? 2) Howcomes I set a non-existant file as connection and the shp2img goes on without errors ? Shouldn't say something like "connection file not found" ? 3) As I have hundreds of these files, should I create a LAYER for each file ? Thanks for your patience, and hope to show you my work online asap! Julien From bfe at IXSEA.COM Thu Mar 1 02:33:25 2007 From: bfe at IXSEA.COM (Benjamin Ferlicot) Date: Thu, 1 Mar 2007 04:33:25 -0600 Subject: Mapserv Cgi use Stdout instead product picture Message-ID: Hi, I Have installed FW-tools(the last release) on Windows 2003 / IIS6.0 System, and I have problems to serves Image. Enviromement variable look?s good because all Tools Work in command lines. Data looks good two shp2Img Works Well But When I use Mapserv as CGI (With Worldwind) a get this kind of output GTiff: Opened 444x528 overview. GTiff: Opened 222x264 overview. GTiff: Opened 111x132 overview. GDAL: GDALOpen (C:\Inetpub\wwwroot\Content\Plots_fev07\STBD\bigRT0.tif) succeeds as GTiff. GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose(C:\Inetpub\wwwroot\Content\Plots_fev07 \STBD\bigRT0.tif) GTiff: Opened 888x1080 overview. GTiff: Opened 444x540 overview. GTiff: Opened 222x270 overview. GTiff: Opened 111x135 overview. GDAL: GDALOpen(C:\Inetpub\wwwroot\Content\Plots_fev07\STBD\bigRT1.tif) succeeds as GTiff. GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose (C:\Inetpub\wwwroot\Content\Plots_fev07\STBD\bigRT1.tif) GTiff: Opened 864x1080 overview. GTiff: Opened 432x540 overview. GTiff: Opened 216x270 overview. GTiff: Opened 108x135 overview. GDAL: GDALOpen (C:\Inetpub\wwwroot\Content\Plots_fev07\STBD\bigRT2.tif) succeeds as GTiff. GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose(C:\Inetpub\wwwroot\Content\Plots_fev07 \STBD\bigRT2.tif) GTiff: Opened 912x1080 overview. GTiff: Opened 456x540 overview. GTiff: Opened 228x270 overview. GTiff: Opened 114x135 overview. GDAL: GDALOpen(C:\Inetpub\wwwroot\Content\Plots_fev07\PORT\bigRT1.tif) succeeds as GTiff. GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose (C:\Inetpub\wwwroot\Content\Plots_fev07\PORT\bigRT1.tif) GTiff: Opened 936x1056 overview. GTiff: Opened 468x528 overview. GTiff: Opened 234x264 overview. GTiff: Opened 117x132 overview. GDAL: GDALOpen (C:\Inetpub\wwwroot\Content\Plots_fev07\PORT\bigRT2.tif) succeeds as GTiff. GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose(C:\Inetpub\wwwroot\Content\Plots_fev07 \PORT\bigRT2.tif) GTiff: Opened 864x1080 overview. GTiff: Opened 432x540 overview. GTiff: Opened 216x270 overview. GTiff: Opened 108x135 overview. GDAL: GDALOpen(C:\Inetpub\wwwroot\Content\Plots_fev07\PORT\bigRT0.tif) succeeds as GTiff. GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose() GDAL: GDALClose (C:\Inetpub\wwwroot\Content\Plots_fev07\PORT\bigRT0.tif) Content-type: image/gif GIF89a[1][1]????[1][1][1] ________________________________________ ________________________________________ ________________________________________ """$$$&&& (((***,,,...000222444666888:::<<<>>>@@@BBBDDDFFFHHHJJJLLLNNNPPPRRR TTTVVVXXXZZZ\\\^^^```bbbdddfffhhhjjjlllnnnppprrrtttvvvxxxzzz|||~~~?????? ?????????????????????????????????????????? ??? ????????????????????? ??????????????????????????????????????????????????????????? ??????????????????????????????????????????????????????????!? ________________________________________ ,[1][1] ??QOOLSDRLKB>EJGLCGORPFADCDEDKFEFLLXNYFWvde^VJKSWOM8?D63 ??????? ________________________________________ BMMJCHLHAJAGDAEEC>?>QXWW] ?Zbgeb`ah_^ckcoai`edleionvrstkm?qyuppm`??)???-V??? 4b~I?H?? ??3j?????? C? y ?$G? y[1]DI?$I"?[1]dI?%A???? ?%H?lY?d? (h????? (X&? ??G HHJ Who Is the same as shp2Img when I forgot the ?o parameters. it seems that the stdout is used by mapserv and OUTPUTFORMAT and IMAGETYPE Tag can't change anything .. I can?t find anything relevant on google ??. Can anybody help? Best Regards Map file MAP # Start of ixsea.map file NAME "Test" #DEBUG ON CONFIG "PROJ_LIB" "C:\Inetpub\wwwroot\Cgi\proj_lib\" STATUS ON EXTENT 5.6582322 43.1659403 5.6717302 43.171794 SIZE 512 512 SHAPEPATH "C:\Inetpub\wwwroot\Content\Plots_fev07\" #SYMBOLSET "./etc/symbols.sym" #FONTSET "./etc/fonts.txt" IMAGETYPE GIF IMAGECOLOR 255 255 255 UNITS METERS PROJECTION "init=epsg:4326" # epsg projection END WEB IMAGEPATH "c:/ms_tmp/" IMAGEURL "http://localhost/ms_tmp/" METADATA "wms_title" "web" "wms_srs" "epsg:4326" "wms_onlineresource" "http://localhost/Default.aspx" END END LAYER NAME "plot" STATUS ON TILEINDEX "index.shp" TILEITEM "location" TYPE RASTER UNITS METERS METADATA "wms_title" "plot" "wms_srs" "epsg:32631" "wms_onlineresource" "http://localhost/Default.aspx" END PROJECTION "init=epsg:32631" # epsg projection END OFFSITE 0 0 0 END END From frezzz_54 at YAHOO.COM Thu Mar 1 05:12:32 2007 From: frezzz_54 at YAHOO.COM (theresia freska) Date: Thu, 1 Mar 2007 05:12:32 -0800 Subject: AddPoints won't work Message-ID: hi list, i have a function to add points dynamically. it works on the A data, but not on the B data. yet i have copied the same code. this function works as user selects the nquery mode. if (($_POST['mode']) == "nquery") { do_the_function; } the strange thing is that when i eliminate the if condition, it works just fine. i don't know where i did the wrong code. can someone point that out for me? i use mapserver 4.8.3. i use this code to debug. thanks in advance. if ($_POST['mode'] == "nquery") { /*$inputLayer = $_POST['slcQlayer']; $radius = abs($_POST['radius']); if (!(in_array($inputLayer, $tesLayer))) { echo ""; } else { $nearby = nearbyResto($qpoint, $map, $radius, $inputLayer); $arrRes = getInfo($inputLayer, $nearby); $result_table = tabelResto($arrRes);*/ $conn = pg_connect("dbname=$database user=$user password=$password host=$host"); $m=0; $res_layer = pg_query("select gid from point where kategori='Pasar'"); while($row_layer = pg_fetch_row($res_layer)) { $arr_layer[$m] = $row_layer; $m++; } for ($i=0;$i From nataprivate at HOTMAIL.COM Thu Mar 1 05:30:31 2007 From: nataprivate at HOTMAIL.COM (=?iso-8859-1?B?TnVyaWEgR29ueuFsZXo=?=) Date: Thu, 1 Mar 2007 14:30:31 +0100 Subject: transparent symbols Message-ID: Hi, I set a symbol definition in the .map file: SYMBOL NAME "imgmonasterio" TYPE PIXMAP IMAGE "stern.png" TRANSPARENT 13 END and in the class of the layer (of type point) I set: STYLE COLOR 255 255 0 END STYLE SYMBOL "imgmonasterio" COLOR 0 0 0 OUTLINECOLOR 0 0 0 END but I get the image inside a white rectangle. I try with stern.gif (that is a transparent image) but I got the same result. I try it in a layer of type polygon and it works ok. Then, I don't understand how the TRANSPARENT label works. It is only possible for polygon layers? Thanks in advance. _________________________________________________________________ Descarga gratis la Barra de Herramientas de MSN http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH From julien at LINKAS.IT Thu Mar 1 05:56:25 2007 From: julien at LINKAS.IT (Julien Buratto) Date: Thu, 1 Mar 2007 14:56:25 +0100 Subject: beginner: How to use shapes files Message-ID: A person told me to use MapInfo to convert my .TAB MAP ID DAT files to shapes, so I did use the mapinfo "Universal translator" to convert to ESRI shapes. I don't know how to: - get the EXTENT values - keep on I'm halted now The 4 files 302010.MAP TAB ID DAT are now: -rw-r--r-- 1 root root 448977 1 mar 12:09 302010_point.dbf -rw-r--r-- 1 root root 409 1 mar 12:09 302010_point.prj -rw-r--r-- 1 root root 41288 1 mar 12:09 302010_point.shp -rw-r--r-- 1 root root 11868 1 mar 12:09 302010_point.shx -rw-r--r-- 1 root root 696332 1 mar 12:09 302010_polyline.dbf -rw-r--r-- 1 root root 409 1 mar 12:09 302010_polyline.prj -rw-r--r-- 1 root root 2740308 1 mar 12:09 302010_polyline.shp -rw-r--r-- 1 root root 18356 1 mar 12:09 302010_polyline.shx -rw-r--r-- 1 root root 227852 1 mar 12:09 302010_region.dbf -rw-r--r-- 1 root root 409 1 mar 12:09 302010_region.prj -rw-r--r-- 1 root root 356176 1 mar 12:09 302010_region.shp -rw-r--r-- 1 root root 6068 1 mar 12:09 302010_region.shx -rw-r--r-- 1 root root 466496 1 mar 12:09 302010_text.dbf -rw-r--r-- 1 root root 409 1 mar 12:09 302010_text.prj -rw-r--r-- 1 root root 22332 1 mar 12:09 302010_text.shp -rw-r--r-- 1 root root 6452 1 mar 12:09 302010_text.shx I've then tryed to create a map file for one of these, the 302010_region NAME DEMO SIZE 800 300 IMAGECOLOR 255 255 255 EXTENT 0 0 5000000000 50000000000 LAYER DEBUG ON NAME "302010_region" TYPE POLYGON STATUS DEFAULT DATA "302010_region.shp" CLASS NAME "Province" STYLE OUTLINECOLOR 120 120 120 COLOR 255 255 0 END END END # layer END but I get a white image and I still don't know how to set the EXTENT values, my ogrinfo are: > > ogrinfo 302010_region.shp INFO: Open of `302010_region.shp' using driver `ESRI Shapefile' successful. 1: 302010_region (Polygon) ogrinfo 302010_region.shp 302010_region -summary INFO: Open of `302010_region.shp' using driver `ESRI Shapefile' successful. Layer name: 302010_region Geometry: Polygon Feature Count: 746 Extent: (2357848.406000, 4801375.000000) - (2364688.910000, 4807086.623000) Layer SRS WKT: PROJCS["Monte Mario / Italy zone 2", GEOGCS["MonteMario", DATUM["MonteMario", SPHEROID["International_1924",6378388,297.0000000000601]], PRIMEM["Greenwich",0], UNIT["Degree",0.017453292519943295]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",15], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",2520000], PARAMETER["false_northing",0], UNIT["Meter",1]] ID: Integer (11.0) TIPO: String (15.0) LIVELLO: String (15.0) NUMFOGLIO: Integer (11.0) NOMFOGLIO: String (30.0) DESCRIZION: String (100.0) TOPONIMO: String (60.0) QUOTA1: Real (31.15) QUOTA2: Real (31.15) Can anyone give a hint on how to procede ? I'm getting stuck in seeing white gifs :-D Thanks J From yjacolin at FREE.FR Thu Mar 1 06:04:41 2007 From: yjacolin at FREE.FR (Yves Jacolin) Date: Thu, 1 Mar 2007 15:04:41 +0100 Subject: beginner: How to use shapes files In-Reply-To: <45E6DB89.3070703@linkas.it> Message-ID: Hi Julien, Le Jeudi 1 Mars 2007 14:56, Julien Buratto a ?crit?: > I don't know how to: > - get the EXTENT values You can use ogrinfo: ogrinfo -so nouveau_projet.shp nouveau_projet adapt the command with your mapfile ;-) You can convert file using ogr2ogr: ogr2ogr -f "ESRI" output.shp input.tab Regards, Y. -- Yves Jacolin --- http://yjacolin.gloobe.org From julien at LINKAS.IT Thu Mar 1 06:46:08 2007 From: julien at LINKAS.IT (Julien Buratto) Date: Thu, 1 Mar 2007 15:46:08 +0100 Subject: beginner: How to use shapes files In-Reply-To: <200703011504.41407.yjacolin@free.fr> Message-ID: Yves Jacolin ha scritto: > Hi Julien, > > Le Jeudi 1 Mars 2007 14:56, Julien Buratto a ?crit : >> I don't know how to: >> - get the EXTENT values > You can use ogrinfo: > ogrinfo -so nouveau_projet.shp nouveau_projet > > adapt the command with your mapfile ;-) I didn't got that the same values could be used! EXTENT 2357848.406000 4801375.000000 2364688.910000 4807086.623000 works! :-D > You can convert file using ogr2ogr: > ogr2ogr -f "ESRI" output.shp input.tab > > Regards, > > Y. From dmorissette at MAPGEARS.COM Thu Mar 1 06:48:32 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 1 Mar 2007 09:48:32 -0500 Subject: MapServer 4.10 with DSO PHP5 In-Reply-To: <45E672AA.5000700@geosignal.fr> Message-ID: That could be caused by conflicting versions of GD, i.e. Your PHP has --with-gd which will probably trigger the use of its built-in copy of GD, and your php_mapscript.so is built with the system GD. I'd suggest that you try rebuilding your PHP using the system GD and see if that helps. If GD is unstalled under /usr/local then use --with-gd=/usr/local Daniel Guillaume Sueur wrote: > Hi list, > > I was wondering if MapScript 4.10 could be build with PHP5 as Apache > DSO. I've done several attempts, without success. The build goes fine, > but invoking the draw method on a map object causes a segmentation fault. > I've tried the "regex hack" on the php configure, to force php to be > build with system regex. > The option with-apxs on mapserver configure fires a message saying in > can't work that way. I can accept that, but why are people saying it > works fine for them on the net ? > So, if you had a clue, and some configure options and workarounds, I > would really appreciate. > > Here are my php configure options (the use of regex=system is forced in > the configure script): > './configure' '--prefix=/usr/local/apache2/' > '--with-apxs2=/usr/local/apache2/bin/apxs' > '--with-config-file-path=/usr/local/apache2/php' '--with-regex=system' > '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-zlib' '--with-gd' > '--with-freetype-dir=/usr/local/' '--enable-dbase' '--with-pdflib' > '--enable-gd-native-ttf' > > Thanks -- Daniel Morissette http://www.mapgears.com/ From dmorissette at MAPGEARS.COM Thu Mar 1 07:00:23 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 1 Mar 2007 10:00:23 -0500 Subject: beginner: Again MapInfo .tab .dat .id .map with white image In-Reply-To: <45E6A7DD.2010400@linkas.it> Message-ID: The extents that you specified in your mapfile doesn't overlap with the extent of your data. Try setting the following default extents in your mapfile, that will probably give much better results: EXTENT 2365748 4851330 2366928 4852759 Daniel Julien Buratto wrote: > Hi there, happy to enter the world of mapping :-D > > I've been reading past posts about this topic, but I could not > figure-out how to solve my problem. > > An institution in my country passed me the MapInfo cds with hundreds of > files, name XXXXXXX.TAB .DAT .ID .MAP > > At the beginning I was desperate (yeye geek panic), then I ogr2ogr all > them to postgis and I was feeling confortable, but could not generate my > first map (always the same, white, invisibile gif square :-D) > > Then I decide to use the CONNECTIONTYPE OGR directly to those files > because shp2img was complaining about some SQL and I thought it was not > worth at the beginning to use postgis, better start with MapInfo files. > > My ogrinfo reports a loooong long report showing each row of data > present, while the summary shows (for one file): > > ogrinfo /root/data_cd/269140.TAB -summary 269140 > Had to open data source read-only. > INFO: Open of `/root/dati_cd/269140.TAB' > using driver `MapInfo File' successful. > > Layer name: 269140 > Geometry: Unknown (any) > Feature Count: 386 > Extent: (2365748.451000, 4851329.181000) - (2366928.857000, 4852758.777000) > Layer SRS WKT: > PROJCS["unnamed", > GEOGCS["unnamed", > DATUM["Monte_Mario", > SPHEROID["International 1924",6378388,297], > TOWGS84[-225,-65,9,-0,-0,-0,0]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433]], > PROJECTION["Transverse_Mercator"], > PARAMETER["latitude_of_origin",0], > PARAMETER["central_meridian",15], > PARAMETER["scale_factor",0.9996], > PARAMETER["false_easting",2520000], > PARAMETER["false_northing",0], > UNIT["Meter",1.0]] > ID: Integer (0.0) > TIPO: String (15.0) > LIVELLO: String (15.0) > NUMFOGLIO: Integer (0.0) > NOMFOGLIO: String (30.0) > DESCRIZIONE: String (100.0) > TOPONIMO: String (60.0) > QUOTA1: Real (0.0) > QUOTA2: Real (0.0) > > Well, my MAP is now: > > NAME DEMO > STATUS ON > SIZE 400 300 > UNITS METERS > IMAGECOLOR 255 255 255 > FONTSET ../etc/fonts.txt > EXTENT 0 0 3072800 3840000 > > LAYER > NAME "269140" > TYPE RASTER > STATUS DEFAULT > CONNECTIONTYPE OGR > CONNECTION "/root/dati_cd/269140.TAB" > STYLEITEM "AUTO" > CLASS > NAME "Elevation Poly 5" > OUTLINECOLOR 0 0 0 > COLOR 128 128 128 > END > END # Layer > > END > > When I hit "shp2img" I don't get errors, the file is generated white. > > My questions are: > 1) Could be a problem of EXTENT ? > 2) Howcomes I set a non-existant file as connection and the shp2img goes > on without errors ? Shouldn't say something like "connection file not > found" ? > 3) As I have hundreds of these files, should I create a LAYER for each > file ? > > Thanks for your patience, and hope to show you my work online asap! > > Julien -- Daniel Morissette http://www.mapgears.com/ From warmerdam at POBOX.COM Thu Mar 1 07:00:33 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 1 Mar 2007 10:00:33 -0500 Subject: Mapserv Cgi use Stdout instead product picture In-Reply-To: Message-ID: Benjamin Ferlicot wrote: > Hi, > > I Have installed FW-tools(the last release) on Windows 2003 / IIS6.0 > System, and I have problems to serves Image. > > Enviromement variable look?s good because all Tools Work in command lines. > Data looks good two shp2Img Works Well > > But When I use Mapserv as CGI (With Worldwind) a get this kind of output > > GTiff: Opened 444x528 overview. GTiff: Opened 222x264 overview. GTiff: > Opened 111x132 overview. GDAL: GDALOpen Benjamin, I am guessing that you have the CPL_DEBUG environment variable turned on which causes GDAL to produce debug output. With IIS my understanding is that output to stderr is returned to the client instead of being routed to the web server error log as it is with Apache, so you should disable all debug output. I'm a bit surprised that CPL_DEBUG could get set by accident! 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 | President OSGeo, http://osgeo.org From warmerdam at POBOX.COM Thu Mar 1 07:09:32 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 1 Mar 2007 10:09:32 -0500 Subject: beginner: Again MapInfo .tab .dat .id .map with white image In-Reply-To: <45E6A7DD.2010400@linkas.it> Message-ID: Julien Buratto wrote: > ogrinfo /root/data_cd/269140.TAB -summary 269140 ... > Extent: (2365748.451000, 4851329.181000) - (2366928.857000, 4852758.777000) ... > EXTENT 0 0 3072800 3840000 > > LAYER > NAME "269140" > TYPE RASTER > STATUS DEFAULT > CONNECTIONTYPE OGR > CONNECTION "/root/dati_cd/269140.TAB" > STYLEITEM "AUTO" > CLASS > NAME "Elevation Poly 5" > OUTLINECOLOR 0 0 0 > COLOR 128 128 128 > END > END # Layer > > END > > When I hit "shp2img" I don't get errors, the file is generated white. > > My questions are: > 1) Could be a problem of EXTENT ? Julien, The EXTENT in your map is for a huge region while the actual features in your file cover a very small region. I would suggest starting with the extent: EXTENT 2365748 4851329 2366928 4852758 > 2) Howcomes I set a non-existant file as connection and the shp2img goes > on without errors ? Shouldn't say something like "connection file not > found" ? You have your layer type set as "TYPE RASTER". I think should likely be either TYPE LINE or TYPE POLYGON depending on the feature geometries. For this reason it is likely that MapServer isn't even using the OGR connection information since it does not apply to raster files. > 3) As I have hundreds of these files, should I create a LAYER for each > file ? If the files are spatially distinct then you could likely prepare a tileindex for them. Then you would use a single layer referencing the tileindex, and the tileindex would have the list of all the individual files. The ogrtindex program can be used to create such a tile index. There are a variety of issues with tileindex, so I'd encourage you to read up about them before trying them. 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 | President OSGeo, http://osgeo.org From julien at LINKAS.IT Thu Mar 1 07:09:11 2007 From: julien at LINKAS.IT (Julien Buratto) Date: Thu, 1 Mar 2007 16:09:11 +0100 Subject: beginner: Again MapInfo .tab .dat .id .map with white image In-Reply-To: <45E6EA87.1090301@mapgears.com> Message-ID: Hi Daniel, yes that extent made me crazy, infact now it seems to draw something :-D Now I have to figureout how to use hundreds of shape files, create hundreds of shapes and find the lat/long on the map, but this is another thing :-D This is a 1:10000 map of an entire italian province, woh! Thanks J Daniel Morissette ha scritto: > The extents that you specified in your mapfile doesn't overlap with the > extent of your data. > > Try setting the following default extents in your mapfile, that will > probably give much better results: > > EXTENT 2365748 4851330 2366928 4852759 > > Daniel > > > Julien Buratto wrote: >> Hi there, happy to enter the world of mapping :-D >> >> I've been reading past posts about this topic, but I could not >> figure-out how to solve my problem. >> >> An institution in my country passed me the MapInfo cds with hundreds of >> files, name XXXXXXX.TAB .DAT .ID .MAP >> >> At the beginning I was desperate (yeye geek panic), then I ogr2ogr all >> them to postgis and I was feeling confortable, but could not generate my >> first map (always the same, white, invisibile gif square :-D) >> >> Then I decide to use the CONNECTIONTYPE OGR directly to those files >> because shp2img was complaining about some SQL and I thought it was not >> worth at the beginning to use postgis, better start with MapInfo files. >> >> My ogrinfo reports a loooong long report showing each row of data >> present, while the summary shows (for one file): >> >> ogrinfo /root/data_cd/269140.TAB -summary 269140 >> Had to open data source read-only. >> INFO: Open of `/root/dati_cd/269140.TAB' >> using driver `MapInfo File' successful. >> >> Layer name: 269140 >> Geometry: Unknown (any) >> Feature Count: 386 >> Extent: (2365748.451000, 4851329.181000) - (2366928.857000, >> 4852758.777000) >> Layer SRS WKT: >> PROJCS["unnamed", >> GEOGCS["unnamed", >> DATUM["Monte_Mario", >> SPHEROID["International 1924",6378388,297], >> TOWGS84[-225,-65,9,-0,-0,-0,0]], >> PRIMEM["Greenwich",0], >> UNIT["degree",0.0174532925199433]], >> PROJECTION["Transverse_Mercator"], >> PARAMETER["latitude_of_origin",0], >> PARAMETER["central_meridian",15], >> PARAMETER["scale_factor",0.9996], >> PARAMETER["false_easting",2520000], >> PARAMETER["false_northing",0], >> UNIT["Meter",1.0]] >> ID: Integer (0.0) >> TIPO: String (15.0) >> LIVELLO: String (15.0) >> NUMFOGLIO: Integer (0.0) >> NOMFOGLIO: String (30.0) >> DESCRIZIONE: String (100.0) >> TOPONIMO: String (60.0) >> QUOTA1: Real (0.0) >> QUOTA2: Real (0.0) >> >> Well, my MAP is now: >> >> NAME DEMO >> STATUS ON >> SIZE 400 300 >> UNITS METERS >> IMAGECOLOR 255 255 255 >> FONTSET ../etc/fonts.txt >> EXTENT 0 0 3072800 3840000 >> >> LAYER >> NAME "269140" >> TYPE RASTER >> STATUS DEFAULT >> CONNECTIONTYPE OGR >> CONNECTION "/root/dati_cd/269140.TAB" >> STYLEITEM "AUTO" >> CLASS >> NAME "Elevation Poly 5" >> OUTLINECOLOR 0 0 0 >> COLOR 128 128 128 >> END >> END # Layer >> >> END >> >> When I hit "shp2img" I don't get errors, the file is generated white. >> >> My questions are: >> 1) Could be a problem of EXTENT ? >> 2) Howcomes I set a non-existant file as connection and the shp2img goes >> on without errors ? Shouldn't say something like "connection file not >> found" ? >> 3) As I have hundreds of these files, should I create a LAYER for each >> file ? >> >> Thanks for your patience, and hope to show you my work online asap! >> >> Julien > > From dmorissette at MAPGEARS.COM Thu Mar 1 07:11:36 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 1 Mar 2007 10:11:36 -0500 Subject: MapServer 4.10 with DSO PHP5 In-Reply-To: <45E6E97E.6080307@geosignal.fr> Message-ID: The issue with REGEX was solved a few releases ago using some wrappers, so it should not matter any more which version of REGEX you use to build PHP and MapScript. Daniel Guillaume Sueur wrote: > that can be an interesting clue. Do you know if the regex trick is still > mandatory ? > > > Daniel Morissette a ?crit : >> That could be caused by conflicting versions of GD, i.e. Your PHP has >> --with-gd which will probably trigger the use of its built-in copy of >> GD, and your php_mapscript.so is built with the system GD. >> >> I'd suggest that you try rebuilding your PHP using the system GD and >> see if that helps. If GD is unstalled under /usr/local then use >> --with-gd=/usr/local >> >> Daniel >> >> Guillaume Sueur wrote: >>> Hi list, >>> >>> I was wondering if MapScript 4.10 could be build with PHP5 as Apache >>> DSO. I've done several attempts, without success. The build goes >>> fine, but invoking the draw method on a map object causes a >>> segmentation fault. >>> I've tried the "regex hack" on the php configure, to force php to be >>> build with system regex. >>> The option with-apxs on mapserver configure fires a message saying in >>> can't work that way. I can accept that, but why are people saying it >>> works fine for them on the net ? >>> So, if you had a clue, and some configure options and workarounds, I >>> would really appreciate. >>> >>> Here are my php configure options (the use of regex=system is forced >>> in the configure script): >>> './configure' '--prefix=/usr/local/apache2/' >>> '--with-apxs2=/usr/local/apache2/bin/apxs' >>> '--with-config-file-path=/usr/local/apache2/php' >>> '--with-regex=system' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' >>> '--with-zlib' '--with-gd' '--with-freetype-dir=/usr/local/' >>> '--enable-dbase' '--with-pdflib' '--enable-gd-native-ttf' >>> >>> Thanks >> >> -- Daniel Morissette http://www.mapgears.com/ From rodrigomlg at GMAIL.COM Thu Mar 1 07:11:48 2007 From: rodrigomlg at GMAIL.COM (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Thu, 1 Mar 2007 15:11:48 +0000 Subject: transparent symbols In-Reply-To: Message-ID: Hola nuria, supongo que hablar?s espa?ol, si no te escribo nuevamente en ingl?s. En mi caso tengo definidos varios s?mbolos de tipo pixmap pero usando im?genes gif con transparencia de la siguiente manera: SYMBOL NAME "imgmonasterio" TYPE pixmap IMAGE "stern.gif" END En este caso el archivo stern.gif (n?tese que es un archivo GIF, no png como en tu caso) tendr?a definida el ?rea transparente en el mismo archivo (con cualquier software de edici?n de im?genes no demasiado b?sico lo pod?s hacer). Y luego, el layer de puntos correspondiente tengo lo siguiente: LAYER ... DATA "the_geom from monasterios" ... TYPE POINT ... TRANSPARENCY ALPHA .... CLASS NAME "monasterios" STYLE ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 0 0 0 SIZE 15 SYMBOL "imgmonasterio" END END END Espero que te sirva. Cualquier duda consult? nuevamente. Saludos. On 3/1/07, Nuria Gonz?lez wrote: > > Hi, > > I set a symbol definition in the .map file: > > SYMBOL > NAME "imgmonasterio" > TYPE PIXMAP > IMAGE "stern.png" > TRANSPARENT 13 > END > > and in the class of the layer (of type point) I set: > STYLE > COLOR 255 255 0 > END > STYLE > SYMBOL "imgmonasterio" > COLOR 0 0 0 > OUTLINECOLOR 0 0 0 > END > > but I get the image inside a white rectangle. I try with stern.gif (that > is > a transparent image) but I got the same result. > I try it in a layer of type polygon and it works ok. Then, I don't > understand how the TRANSPARENT label works. It is only possible for > polygon > layers? > > Thanks in advance. > > _________________________________________________________________ > Descarga gratis la Barra de Herramientas de MSN > > http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cgackstatter at GMAIL.COM Thu Mar 1 07:03:05 2007 From: cgackstatter at GMAIL.COM (Christina) Date: Thu, 1 Mar 2007 16:03:05 +0100 Subject: CGI Parameter change Message-ID: Hi list, everytime, when I try to change the cgi parameter by a html document, the browser wants me to download "mapserv.exe". I test the itasca demo. thanks for help! # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 UNITS METERS SHAPEPATH "data" IMAGECOLOR 255 255 255 # you may need to change this to match your MapServer build #IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=15" # "north" # "no_defs" # # OR: # # "init=epsg:26915" #END # # Start of web interface definition (including WMS enabling metadata) # WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "set in demo_init.html" IMAGEURL "set in demo_init.html" METADATA WMS_TITLE "UMN MapServer Itasca Demo" WMS_ABSTRACT "This is the UMN MapServer demonstration application for Itasca County located in north central Minnesota." #WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "http://localhost/demo_init.html" WMS_SRS "EPSG:26915" END END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END # # Start of reference map # REFERENCE IMAGE graphics/reference.png EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 SIZE 120 120 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 80 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of symbol definitions (we're only using a few) # SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END # # Start of layer definitions # LAYER NAME ctybdpy2 TYPE POLYGON STATUS DEFAULT DATA ctybdpy2 CLASSITEM 'cty_name' CLASS EXPRESSION 'Itasca' OUTLINECOLOR 128 128 128 COLOR 225 225 185 END CLASS # every other county in the state EXPRESSION /./ OUTLINECOLOR 128 128 128 COLOR 255 255 255 END METADATA WMS_TITLE "County Boundary" WMS_ABSTRACT "Itasca County boundary shapefile. See http://deli.dnr.state.mn.us/metadata/full/ctybdne2.html for more information." WMS_SRS "EPSG:26915" END END LAYER NAME mcd90py2 GROUP cities TYPE POLYGON DATA mcd90py2 STATUS OFF CLASSITEM city_name CLASS NAME "Cities & Towns" EXPRESSION /./ COLOR 255 225 90 TEMPLATE "mcd90py2.html" END HEADER "mcd90py2_header.html" FOOTER "mcd90py2_footer.html" DUMP TRUE # allow GML export METADATA WMS_TITLE "Minor Civil Divisions" WMS_ABSTRACT "Minor civil divisions for Itasca County. (boundaries only)" WMS_SRS "EPSG:26915" END END LAYER NAME twprgpy3 TYPE POLYGON DATA twprgpy3 STATUS OFF CLASS SYMBOL 'circle' SIZE 2 NAME 'Townships' OUTLINECOLOR 181 181 145 END METADATA WMS_TITLE "Township Boundaries" WMS_ABSTRACT "Pulic Land Survey (PLS) township boundaries for Itasca County. See http://deli.dnr.state.mn.us/metadata/full/twprgne2.html for more information." WMS_SRS "EPSG:26915" END END LAYER NAME lakespy2 TYPE POLYGON STATUS OFF DATA lakespy2 CLASS NAME 'Lakes & Rivers' TEMPLATE "lakespy2.html" COLOR 49 117 185 END HEADER "lakespy2_header.html" FOOTER "lakespy2_footer.html" TOLERANCE 3 DUMP TRUE # allow GML export METADATA WMS_TITLE "Lakes and Rivers" WMS_ABSTRACT "DLG lake and river polygons for Itasca County. See http://deli.dnr.state.mn.us/metadata/full/dlglkpy2.html for more information." WMS_SRS "EPSG:26915" END END # lakes LAYER NAME dlgstln2 TYPE LINE STATUS OFF DATA dlgstln2 CLASS NAME "Streams" TEMPLATE "dlgstln2.html" COLOR 49 117 185 END HEADER "dlgstln2_header.html" FOOTER "dlgstln2_footer.html" TOLERANCE 5 DUMP TRUE # allow GML export METADATA WMS_TITLE "Streams" WMS_ABSTRACT "DLG streams for Itasca County. See http://deli.dnr.state.mn.us/metadata/full/dlgstln2.html for more information." WMS_SRS "EPSG:26915" END END # streams LAYER NAME ctyrdln3 GROUP roads MAXSCALE 300000 STATUS OFF DATA ctyrdln3 TYPE LINE CLASS COLOR 0 0 0 END METADATA WMS_TITLE "County Roads" WMS_ABSTRACT "County roads. (lines only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information." WMS_SRS "EPSG:26915" END END # county roads LAYER NAME ctyrdln3_anno GROUP roads MAXSCALE 300000 STATUS OFF DATA ctyrdln3 TYPE ANNOTATION LABELITEM "road_name" CLASS COLOR 255 255 255 SYMBOL 'symbols/ctyhwy.png' LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END METADATA WMS_TITLE "County Roads" WMS_ABSTRACT "County roads. (shields only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information." WMS_SRS "EPSG:26915" END END # county road annotation LAYER NAME majrdln3 GROUP roads MAXSCALE 600000 STATUS OFF DATA majrdln3 TYPE LINE CLASS NAME "Roads" COLOR 0 0 0 END METADATA WMS_TITLE "Highways" WMS_ABSTRACT "Highways- state, US and interstate. (lines only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information." WMS_SRS "EPSG:26915" END END # highways LAYER NAME majrdln3_anno GROUP roads MAXSCALE 600000 STATUS OFF DATA majrdln3 TYPE ANNOTATION LABELITEM "road_num" CLASSITEM "road_class" CLASS EXPRESSION "3" COLOR 0 0 0 # dummy color SYMBOL 'symbols/sthwy.png' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION "2" COLOR 0 0 0 # dummy color SYMBOL 'symbols/ushwy.png' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION "1" COLOR 0 0 0 # dummy color SYMBOL 'symbols/interstate.png' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 255 255 255 END END METADATA WMS_TITLE "Highways" WMS_ABSTRACT "Highways- state, US and interstate. (shields only) Derived from MNDOT roads layer, see http://deli.dnr.state.mn.us/metadata/full/dotrdln2.html for more information." WMS_SRS "EPSG:26915" END END # highway annotation LAYER NAME airports TYPE POINT DATA airports STATUS OFF CLASS NAME 'Airports' COLOR 128 255 164 SYMBOL 'circle' SIZE 7 TEMPLATE "airports.html" END HEADER "airports_header.html" FOOTER "airports_footer.html" TOLERANCE 5 METADATA WMS_TITLE "Airports" WMS_ABSTRACT "Airport runways for Itasca County." WMS_SRS "EPSG:26915" END END LAYER #NAME mcd90py2_anno NAME cities TYPE ANNOTATION DATA mcd90py2 STATUS OFF LABELITEM "city_name" CLASSITEM "city_name" LABELMAXSCALE 500000 CLASS EXPRESSION /./ COLOR -1 -1 -1 LABEL COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE BITMAP SIZE MEDIUM POSITION CC PARTIALS FALSE BUFFER 2 END END METADATA WMS_TITLE "Minor Civil Divisions" WMS_ABSTRACT "Minor civil divisions for Itasca County. (annotation only)" WMS_SRS "EPSG:26915" END END END # Map File MapServer Demo Interface

MapServer Demo Interface


 Powered by MapServer

Browse map
Query feature
Query multiple features


Select Layers to Display:

Zoom In Pan Zoom Out

Zoom Size

Legend




-------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at GEOSIGNAL.FR Thu Mar 1 07:16:52 2007 From: guillaume.sueur at GEOSIGNAL.FR (Guillaume Sueur) Date: Thu, 1 Mar 2007 18:16:52 +0300 Subject: MapServer 4.10 with DSO PHP5 In-Reply-To: <45E6ED28.3050301@mapgears.com> Message-ID: great ! it works perfectly now. thanks for your help Daniel. Daniel Morissette a ?crit : > The issue with REGEX was solved a few releases ago using some wrappers, > so it should not matter any more which version of REGEX you use to build > PHP and MapScript. > > Daniel > > Guillaume Sueur wrote: >> that can be an interesting clue. Do you know if the regex trick is >> still mandatory ? >> >> >> Daniel Morissette a ?crit : >>> That could be caused by conflicting versions of GD, i.e. Your PHP has >>> --with-gd which will probably trigger the use of its built-in copy of >>> GD, and your php_mapscript.so is built with the system GD. >>> >>> I'd suggest that you try rebuilding your PHP using the system GD and >>> see if that helps. If GD is unstalled under /usr/local then use >>> --with-gd=/usr/local >>> >>> Daniel >>> >>> Guillaume Sueur wrote: >>>> Hi list, >>>> >>>> I was wondering if MapScript 4.10 could be build with PHP5 as Apache >>>> DSO. I've done several attempts, without success. The build goes >>>> fine, but invoking the draw method on a map object causes a >>>> segmentation fault. >>>> I've tried the "regex hack" on the php configure, to force php to be >>>> build with system regex. >>>> The option with-apxs on mapserver configure fires a message saying >>>> in can't work that way. I can accept that, but why are people saying >>>> it works fine for them on the net ? >>>> So, if you had a clue, and some configure options and workarounds, I >>>> would really appreciate. >>>> >>>> Here are my php configure options (the use of regex=system is forced >>>> in the configure script): >>>> './configure' '--prefix=/usr/local/apache2/' >>>> '--with-apxs2=/usr/local/apache2/bin/apxs' >>>> '--with-config-file-path=/usr/local/apache2/php' >>>> '--with-regex=system' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' >>>> '--with-zlib' '--with-gd' '--with-freetype-dir=/usr/local/' >>>> '--enable-dbase' '--with-pdflib' '--enable-gd-native-ttf' >>>> >>>> Thanks >>> >>> > > From dmorissette at MAPGEARS.COM Thu Mar 1 07:48:57 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 1 Mar 2007 10:48:57 -0500 Subject: beginner: Again MapInfo .tab .dat .id .map with white image In-Reply-To: <45E6ECAC.3080207@pobox.com> Message-ID: Frank Warmerdam wrote: > >> 3) As I have hundreds of these files, should I create a LAYER for each >> file ? > > If the files are spatially distinct then you could likely prepare a > tileindex for them. Then you would use a single layer referencing > the tileindex, and the tileindex would have the list of all the individual > files. The ogrtindex program can be used to create such a tile index. > > There are a variety of issues with tileindex, so I'd encourage you > to read up about them before trying them. > One of the main requirement for tiled layers is that all files need to share the exact same set of attributes. Note that if you are a MapInfo user you can create a "Seamless Table" with all your files directly in MapInfo and then point MapServer to the seamless .TAB file in your OGR CONNECTION and MapServer will take care of the rest. This is exactly the same concept as MapServer Tile Index files, but in the MapInfo world, and MapServer supports both. Daniel -- Daniel Morissette http://www.mapgears.com/ From rpierce at ACTGEOSPATIAL.COM Thu Mar 1 08:54:14 2007 From: rpierce at ACTGEOSPATIAL.COM (Richie Pierce) Date: Thu, 1 Mar 2007 10:54:14 -0600 Subject: Google Maps as Mapserver Layer Message-ID: Like many of you we have space limitations when it comes to our raster files. We just received notice however that Google will be integrating our new Statewide ortho flight into their Google Maps/Earth service. This is exciting for me because it will allow me to get access to our statewide imagery without needing the space on my own server. I was wondering if it was possible to use Google Maps imagery as a layer in my map file. I am using Mapserver and OpenLayers on some of my sites which will work wonderfully. But I also have other sites that I'm using a custom Mapserver interface, and I'd like add the new orthos. Any help would be great, Thanks Richie Pierce Sr GIS Analyst a.c.t.GeoSpatial, Inc. 2900 Percy Machin Drive, Suite One North Little Rock, AR 72114 Ph(501) 771-2985 rpierce at actgeospatial.com www.actgeospatial.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at REFRACTIONS.NET Thu Mar 1 09:10:30 2007 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Thu, 1 Mar 2007 09:10:30 -0800 Subject: Google Maps as Mapserver Layer In-Reply-To: <003a01c75c22$3fbb9550$1200a8c0@ibmworkstation2> Message-ID: Richie, One of the quiet tragedies of the Google Earth/Maps mania is that once public data is handed over to the Googleplex it becomes slightly less public. You are only allowed to access mapping data served by Google via Google-approved mechanisms, such as the Maps API or directly via Earth. Another public geodata issue, I suppose. If enough folks who wanted to "give their data to google" instead gave it to a 3rd party who processed it into standardized tiles, then people could still get direct access to the public data, and Google/Microsoft could easily integrate it as well. Paul Richie Pierce wrote: > Like many of you we have space limitations when it comes to our raster > files. We just received notice however that Google will be integrating > our new Statewide ortho flight into their Google Maps/Earth service. > This is exciting for me because it will allow me to get access to our > statewide imagery without needing the space on my own server. I was > wondering if it was possible to use Google Maps imagery as a layer in my > map file. I am using Mapserver and OpenLayers on some of my sites which > will work wonderfully. But I also have other sites that I?m using a > custom Mapserver interface, and I?d like add the new orthos. -- Paul Ramsey Refractions Research http://www.refractions.net pramsey at refractions.net Phone: 250-383-3022 Cell: 250-885-0632 From gregor at HOSTGIS.COM Thu Mar 1 09:17:58 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 1 Mar 2007 10:17:58 -0700 Subject: Google Maps as Mapserver Layer In-Reply-To: <003a01c75c22$3fbb9550$1200a8c0@ibmworkstation2> Message-ID: I'd love to hear whether the situation has changed. Last time I said this, nobody contradicted me, so i'll repeat what I said then... There's no way to use Google Maps in Mapserver, due to Google's terms of use. Some folks wrote a WMS gateway to Google Maps, for example, and got a cease-and-desist for it. There are other options, though, if you're willing/able to serve up your Mapserver output via WMS. A) You could use Mapserver's WMS output in a Google Map, because Google doesn't have a problem with that. B) Look for a framework that supports both WMS and Google Maps and use that to import both your WMS output and Google's basemap; I know that OpenLayers had Google Maps support on their drawing board, but I don't know the status of it. -- HostGIS, open-source GIS solutions for a global community www.hostgis.com From rpierce at ACTGEOSPATIAL.COM Thu Mar 1 10:23:15 2007 From: rpierce at ACTGEOSPATIAL.COM (Richie Pierce) Date: Thu, 1 Mar 2007 12:23:15 -0600 Subject: Google Maps as Mapserver Layer In-Reply-To: <45E70906.9020801@refractions.net> Message-ID: Thanks for the quick responses, that's what I was afraid of. Fortunately, for the State of Arkansas we have an online clearinghouse for all our publicly available data (www.geostor.arkansas.gov) so the data is freely available with or without Google's 'semi-free' services. And the imagery I'm wanting is running as a WMS service through ArcIMS WMS connector. So currently I'm using a Mapserver WMS layer to display the imagery. It's just frustrating when Mapserver displays the rest of the data so quickly and then takes so long to display the WMS layer through ArcIMS. Guess we'll have to bite the bullet and add disk space and serve it locally. At least for my non-OpenLayers sites. BTW...OpenLayers does display Google Maps layers. And it also allows you to define multiple connection url's (www.domain.com, sub1.domain.com, sub2.domain.com) for your WMS layers which increases the tile loading speed 5X. Thanks again for the help. Richie Pierce Sr GIS Analyst a.c.t.GeoSpatial, Inc. 2900 Percy Machin Drive, Suite One North Little Rock, AR 72114 Ph(501) 771-2985 rpierce at actgeospatial.com www.actgeospatial.com -----Original Message----- From: Paul Ramsey [mailto:pramsey at REFRACTIONS.NET] Sent: Thursday, March 01, 2007 11:11 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Google Maps as Mapserver Layer Richie, One of the quiet tragedies of the Google Earth/Maps mania is that once public data is handed over to the Googleplex it becomes slightly less public. You are only allowed to access mapping data served by Google via Google-approved mechanisms, such as the Maps API or directly via Earth. Another public geodata issue, I suppose. If enough folks who wanted to "give their data to google" instead gave it to a 3rd party who processed it into standardized tiles, then people could still get direct access to the public data, and Google/Microsoft could easily integrate it as well. Paul Richie Pierce wrote: > Like many of you we have space limitations when it comes to our raster > files. We just received notice however that Google will be integrating > our new Statewide ortho flight into their Google Maps/Earth service. > This is exciting for me because it will allow me to get access to our > statewide imagery without needing the space on my own server. I was > wondering if it was possible to use Google Maps imagery as a layer in my > map file. I am using Mapserver and OpenLayers on some of my sites which > will work wonderfully. But I also have other sites that I'm using a > custom Mapserver interface, and I'd like add the new orthos. -- Paul Ramsey Refractions Research http://www.refractions.net pramsey at refractions.net Phone: 250-383-3022 Cell: 250-885-0632 From punkish at EIDESIS.ORG Thu Mar 1 12:40:50 2007 From: punkish at EIDESIS.ORG (P Kishor) Date: Thu, 1 Mar 2007 14:40:50 -0600 Subject: Google Maps as Mapserver Layer In-Reply-To: <004b01c75c2e$aefe4960$1200a8c0@ibmworkstation2> Message-ID: Hi Richie, As Gregor mentioned earlier, you can build a Google Maps based application, use their data and imagery (and, obviously, their API, which, might I add, is rather nice and has a very enthusiastic user community, even though it might have limits to its "openness"), and pull in your own WMS services served capably by MapServer. It works very well, and is very quick. On 3/1/07, Richie Pierce wrote: > Thanks for the quick responses, that's what I was afraid of. Fortunately, > for the State of Arkansas we have an online clearinghouse for all our > publicly available data (www.geostor.arkansas.gov) so the data is freely > available with or without Google's 'semi-free' services. And the imagery > I'm wanting is running as a WMS service through ArcIMS WMS connector. So > currently I'm using a Mapserver WMS layer to display the imagery. It's > just frustrating when Mapserver displays the rest of the data so quickly and > then takes so long to display the WMS layer through ArcIMS. Guess we'll > have to bite the bullet and add disk space and serve it locally. At least > for my non-OpenLayers sites. BTW...OpenLayers does display Google Maps > layers. And it also allows you to define multiple connection url's > (www.domain.com, sub1.domain.com, sub2.domain.com) for your WMS layers which > increases the tile loading speed 5X. Thanks again for the help. > > > Richie Pierce > Sr GIS Analyst > a.c.t.GeoSpatial, Inc. > 2900 Percy Machin Drive, Suite One > North Little Rock, AR 72114 > Ph(501) 771-2985 > rpierce at actgeospatial.com > www.actgeospatial.com > > > -----Original Message----- > From: Paul Ramsey [mailto:pramsey at REFRACTIONS.NET] > Sent: Thursday, March 01, 2007 11:11 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Google Maps as Mapserver Layer > > Richie, > > One of the quiet tragedies of the Google Earth/Maps mania is that once > public data is handed over to the Googleplex it becomes slightly less > public. You are only allowed to access mapping data served by Google via > Google-approved mechanisms, such as the Maps API or directly via Earth. > > Another public geodata issue, I suppose. If enough folks who wanted to > "give their data to google" instead gave it to a 3rd party who processed > it into standardized tiles, then people could still get direct access to > the public data, and Google/Microsoft could easily integrate it as well. > > Paul > > Richie Pierce wrote: > > Like many of you we have space limitations when it comes to our raster > > files. We just received notice however that Google will be integrating > > our new Statewide ortho flight into their Google Maps/Earth service. > > This is exciting for me because it will allow me to get access to our > > statewide imagery without needing the space on my own server. I was > > wondering if it was possible to use Google Maps imagery as a layer in my > > map file. I am using Mapserver and OpenLayers on some of my sites which > > will work wonderfully. But I also have other sites that I'm using a > > custom Mapserver interface, and I'd like add the new orthos. > > > > -- > > Paul Ramsey > Refractions Research > http://www.refractions.net > pramsey at refractions.net > Phone: 250-383-3022 > Cell: 250-885-0632 > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From punkish at EIDESIS.ORG Thu Mar 1 12:46:27 2007 From: punkish at EIDESIS.ORG (P Kishor) Date: Thu, 1 Mar 2007 14:46:27 -0600 Subject: Google Maps as Mapserver Layer In-Reply-To: <45E70906.9020801@refractions.net> Message-ID: On 3/1/07, Paul Ramsey wrote: > Richie, > > One of the quiet tragedies of the Google Earth/Maps mania is that once > public data is handed over to the Googleplex it becomes slightly less > public. You are only allowed to access mapping data served by Google via > Google-approved mechanisms, such as the Maps API or directly via Earth. This is an interesting assertion, Paul, and I would love to see more info on this. As far as I know, "public data" are not "handed over to the Googleplex." As far as I know, "private data" gathered by "private companies" such as "Digital Globe" are "bought with real money" by Google. As much as I am an advocate of open data access, I see nothing wrong with a legitimate exercise of two private corporations' right to enter into a trade as made possible by the currently accepted capitalistic norms. Yes, Google has a lot of money, and they are able to book the Quickbird satellites for pretty much everything useful leaving everyone else out in the cold. But hey, that is the game we are playing. And, they could have decided to just sit on it and not give access to anything to anyone unless folks ponied up for cash. I am not sure of Google's ultimate long term motives, but for now, they are behaving rather well. Once again, I would love it if I could see the details of how Arkansas ortho data, presumably "public data" were "handed" (by which, I infer, "given away for free or very low cost") to Google. The details would make for a very interesting sidebar in my dissertation. > > Another public geodata issue, I suppose. If enough folks who wanted to > "give their data to google" instead gave it to a 3rd party who processed > it into standardized tiles, then people could still get direct access to > the public data, and Google/Microsoft could easily integrate it as well. > > Paul > > Richie Pierce wrote: > > Like many of you we have space limitations when it comes to our raster > > files. We just received notice however that Google will be integrating > > our new Statewide ortho flight into their Google Maps/Earth service. > > This is exciting for me because it will allow me to get access to our > > statewide imagery without needing the space on my own server. I was > > wondering if it was possible to use Google Maps imagery as a layer in my > > map file. I am using Mapserver and OpenLayers on some of my sites which > > will work wonderfully. But I also have other sites that I'm using a > > custom Mapserver interface, and I'd like add the new orthos. -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From punk.kish at GMAIL.COM Thu Mar 1 12:47:33 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Thu, 1 Mar 2007 14:47:33 -0600 Subject: Google Maps as Mapserver Layer In-Reply-To: <45E70906.9020801@refractions.net> Message-ID: On 3/1/07, Paul Ramsey wrote: > Richie, > > One of the quiet tragedies of the Google Earth/Maps mania is that once > public data is handed over to the Googleplex it becomes slightly less > public. You are only allowed to access mapping data served by Google via > Google-approved mechanisms, such as the Maps API or directly via Earth. This is an interesting assertion, Paul, and I would love to see more info on this. As far as I know, "public data" are not "handed over to the Googleplex." As far as I know, "private data" gathered by "private companies" such as "Digital Globe" are "bought with real money" by Google. As much as I am an advocate of open data access, I see nothing wrong with a legitimate exercise of two private corporations' right to enter into a trade as made possible by the currently accepted capitalistic norms. Yes, Google has a lot of money, and they are able to book the Quickbird satellites for pretty much everything useful leaving everyone else out in the cold. But hey, that is the game we are playing. And, they could have decided to just sit on it and not give access to anything to anyone unless folks ponied up for cash. I am not sure of Google's ultimate long term motives, but for now, they are behaving rather well. Once again, I would love it if I could see the details of how Arkansas ortho data, presumably "public data" were "handed" (by which, I infer, "given away for free or very low cost") to Google. The details would make for a very interesting sidebar in my dissertation. > Another public geodata issue, I suppose. If enough folks who wanted to > "give their data to google" instead gave it to a 3rd party who processed > it into standardized tiles, then people could still get direct access to > the public data, and Google/Microsoft could easily integrate it as well. > > Paul > > Richie Pierce wrote: > > Like many of you we have space limitations when it comes to our raster > > files. We just received notice however that Google will be integrating > > our new Statewide ortho flight into their Google Maps/Earth service. > > This is exciting for me because it will allow me to get access to our > > statewide imagery without needing the space on my own server. I was > > wondering if it was possible to use Google Maps imagery as a layer in my > > map file. I am using Mapserver and OpenLayers on some of my sites which > > will work wonderfully. But I also have other sites that I'm using a > > custom Mapserver interface, and I'd like add the new orthos. > > > > -- > > Paul Ramsey > Refractions Research > http://www.refractions.net > pramsey at refractions.net > Phone: 250-383-3022 > Cell: 250-885-0632 > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From pramsey at REFRACTIONS.NET Thu Mar 1 12:57:23 2007 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Thu, 1 Mar 2007 12:57:23 -0800 Subject: Google Maps as Mapserver Layer In-Reply-To: Message-ID: Puneet, Sorry, don't have any particular details, just lots of anecdotal reports of public agencies giving their data to Google in order to achieve the holy grail of seeing "their data in Google Earth". http://dailyheadlines.uark.edu/7507.htm This is not uncommon, and it is not particularly sinister from a "business" point of view, since the givers are receiving what they want (access in a kewl tewl) and the givees are receiving what they want (data they can add to Google Earth for free). I have heard tales of similar deals being struck here in BC, though the details are not currently available to me -- it may all just be talk at this point. Paul P Kishor wrote: > On 3/1/07, Paul Ramsey wrote: >> Richie, >> >> One of the quiet tragedies of the Google Earth/Maps mania is that once >> public data is handed over to the Googleplex it becomes slightly less >> public. You are only allowed to access mapping data served by Google via >> Google-approved mechanisms, such as the Maps API or directly via Earth. > > This is an interesting assertion, Paul, and I would love to see more > info on this. As far as I know, "public data" are not "handed over to > the Googleplex." As far as I know, "private data" gathered by "private > companies" such as "Digital Globe" are "bought with real money" by > Google. > > As much as I am an advocate of open data access, I see nothing wrong > with a legitimate exercise of two private corporations' right to enter > into a trade as made possible by the currently accepted capitalistic > norms. Yes, Google has a lot of money, and they are able to book the > Quickbird satellites for pretty much everything useful leaving > everyone else out in the cold. But hey, that is the game we are > playing. And, they could have decided to just sit on it and not give > access to anything to anyone unless folks ponied up for cash. I am not > sure of Google's ultimate long term motives, but for now, they are > behaving rather well. > > Once again, I would love it if I could see the details of how Arkansas > ortho data, presumably "public data" were "handed" (by which, I infer, > "given away for free or very low cost") to Google. The details would > make for a very interesting sidebar in my dissertation. > > > >> >> Another public geodata issue, I suppose. If enough folks who wanted to >> "give their data to google" instead gave it to a 3rd party who processed >> it into standardized tiles, then people could still get direct access to >> the public data, and Google/Microsoft could easily integrate it as well. >> >> Paul >> >> Richie Pierce wrote: >> > Like many of you we have space limitations when it comes to our raster >> > files. We just received notice however that Google will be integrating >> > our new Statewide ortho flight into their Google Maps/Earth service. >> > This is exciting for me because it will allow me to get access to our >> > statewide imagery without needing the space on my own server. I was >> > wondering if it was possible to use Google Maps imagery as a layer >> in my >> > map file. I am using Mapserver and OpenLayers on some of my sites >> which >> > will work wonderfully. But I also have other sites that I'm using a >> > custom Mapserver interface, and I'd like add the new orthos. > > -- Paul Ramsey Refractions Research http://www.refractions.net pramsey at refractions.net Phone: 250-383-3022 Cell: 250-885-0632 From punk.kish at GMAIL.COM Thu Mar 1 13:09:26 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Thu, 1 Mar 2007 15:09:26 -0600 Subject: Google Maps as Mapserver Layer In-Reply-To: <45E73E33.1040004@refractions.net> Message-ID: Thanks Paul, for the clarification. I would love to hear from Richie (and others from _the_ States that have given their data to Google) about the terms under which they have given it. If the States just gave their data away without negotiating substantive rights in return, then heck, those States are idiots. I doubt though that that is the case. Google would have spent its money on Digiglobe anyway, so I don't understand why these States are doing this. And, these States could have used Google's cool tools in conjunction with our good old MapServer and PostGIS serving data as WMS, and gotten the best of everything. There is some opportunity for education here. We should really find out the real facts before making assertions because it will make our arguments for open access that much stronger and reliable. I am going to investigate this further to find out really what is going on. If it takes a lot of squirreling to discover the truth then I will be truly surprised. On 3/1/07, Paul Ramsey wrote: > Puneet, > > Sorry, don't have any particular details, just lots of anecdotal reports > of public agencies giving their data to Google in order to achieve the > holy grail of seeing "their data in Google Earth". > > http://dailyheadlines.uark.edu/7507.htm > > This is not uncommon, and it is not particularly sinister from a > "business" point of view, since the givers are receiving what they want > (access in a kewl tewl) and the givees are receiving what they want > (data they can add to Google Earth for free). > > I have heard tales of similar deals being struck here in BC, though the > details are not currently available to me -- it may all just be talk at > this point. > > Paul > > P Kishor wrote: > > On 3/1/07, Paul Ramsey wrote: > >> Richie, > >> > >> One of the quiet tragedies of the Google Earth/Maps mania is that once > >> public data is handed over to the Googleplex it becomes slightly less > >> public. You are only allowed to access mapping data served by Google via > >> Google-approved mechanisms, such as the Maps API or directly via Earth. > > > > This is an interesting assertion, Paul, and I would love to see more > > info on this. As far as I know, "public data" are not "handed over to > > the Googleplex." As far as I know, "private data" gathered by "private > > companies" such as "Digital Globe" are "bought with real money" by > > Google. > > > > As much as I am an advocate of open data access, I see nothing wrong > > with a legitimate exercise of two private corporations' right to enter > > into a trade as made possible by the currently accepted capitalistic > > norms. Yes, Google has a lot of money, and they are able to book the > > Quickbird satellites for pretty much everything useful leaving > > everyone else out in the cold. But hey, that is the game we are > > playing. And, they could have decided to just sit on it and not give > > access to anything to anyone unless folks ponied up for cash. I am not > > sure of Google's ultimate long term motives, but for now, they are > > behaving rather well. > > > > Once again, I would love it if I could see the details of how Arkansas > > ortho data, presumably "public data" were "handed" (by which, I infer, > > "given away for free or very low cost") to Google. The details would > > make for a very interesting sidebar in my dissertation. > > > > > > > >> > >> Another public geodata issue, I suppose. If enough folks who wanted to > >> "give their data to google" instead gave it to a 3rd party who processed > >> it into standardized tiles, then people could still get direct access to > >> the public data, and Google/Microsoft could easily integrate it as well. > >> > >> Paul > >> > >> Richie Pierce wrote: > >> > Like many of you we have space limitations when it comes to our raster > >> > files. We just received notice however that Google will be integrating > >> > our new Statewide ortho flight into their Google Maps/Earth service. > >> > This is exciting for me because it will allow me to get access to our > >> > statewide imagery without needing the space on my own server. I was > >> > wondering if it was possible to use Google Maps imagery as a layer > >> in my > >> > map file. I am using Mapserver and OpenLayers on some of my sites > >> which > >> > will work wonderfully. But I also have other sites that I'm using a > >> > custom Mapserver interface, and I'd like add the new orthos. > > > > > > > -- > > Paul Ramsey > Refractions Research > http://www.refractions.net > pramsey at refractions.net > Phone: 250-383-3022 > Cell: 250-885-0632 > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From percyd at PDX.EDU Thu Mar 1 13:12:17 2007 From: percyd at PDX.EDU (percy) Date: Thu, 1 Mar 2007 13:12:17 -0800 Subject: Google Maps as Mapserver Layer In-Reply-To: <45E73E33.1040004@refractions.net> Message-ID: I have been told directly by colleagues at both the Pennsylvania and Indiana geological surveys about "giving away" the data. Google seems to have feelers out for whenever new data are acquired by state agencies... I agree, it's not sinister! But it would be nice to have access to those tiles :-) Paul Ramsey wrote: > Puneet, > > Sorry, don't have any particular details, just lots of anecdotal reports > of public agencies giving their data to Google in order to achieve the > holy grail of seeing "their data in Google Earth". > > http://dailyheadlines.uark.edu/7507.htm > > This is not uncommon, and it is not particularly sinister from a > "business" point of view, since the givers are receiving what they want > (access in a kewl tewl) and the givees are receiving what they want > (data they can add to Google Earth for free). -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From scott at TOPOZONE.COM Thu Mar 1 13:38:52 2007 From: scott at TOPOZONE.COM (Scott Schulthess) Date: Thu, 1 Mar 2007 16:38:52 -0500 Subject: Images only display when map clicked on, or img.x/img.y parameters included in query string Message-ID: Hey Ya'll - For some reason, my little mapserver viewer isn't working. I was messing around with the javascript and trying to view different sections of the U.S. when I finally got it to work. But, here's the kicker, the only difference in the query strings is two paramters - img.x and img.y This query string http://strabo11/cgi-bin/mapserv?mode=browse&zoom=1&blocktable=17064&laye r=polyshape&serieslist=a&map=%2Fdata3%2FDMSolutions%2Fglobal-1.0%2Fmap%2 Ftest20.map&layers=DRG60+polyshape&imgext=-65.000000+17.000000+-64.00000 0+18.000000&imgxy=400+400&map_web_template=.%2Ftest-viewer-template.html &map_web_imagepath=%2Fusr%2Flocal%2Fapache2%2Fhtdocs%2Fms_tmp%2F&map_web _imageurl=%2Fms_tmp%2F&mapsize=800+800&theindex=%2Fdata3%2FDRGPalFixClip ped250%2F17064%2Fa17064.shp&block=17064&selectdex=%5Bselectdex%5D&select edlayer=%5Bselectedlayer%5D&layerindex=1&gpxid=%5Bgpxid Doesn't work When I add in img.x and img.y http://strabo11/cgi-bin/mapserv?img.x=311&img.y=229&mode=browse&zoom=1&b locktable=17064&layer=polyshape&serieslist=a&map=%2Fdata3%2FDMSolutions% 2Fglobal-1.0%2Fmap%2Ftest20.map&layers=DRG60+polyshape&imgext=-65.000000 +17.000000+-64.000000+18.000000&imgxy=400+400&map_web_template=.%2Ftest- viewer-template.html&map_web_imagepath=%2Fusr%2Flocal%2Fapache2%2Fhtdocs %2Fms_tmp%2F&map_web_imageurl=%2Fms_tmp%2F&mapsize=800+800&theindex=%2Fd ata3%2FDRGPalFixClipped250%2F17064%2Fa17064.shp&block=17064&selectdex=%5 Bselectdex%5D&selectedlayer=%5Bselectedlayer%5D&layerindex=1&gpxid=%5Bgp xid It works fine. I did a view source and saved the templates, the img ext changes, but changing it without adding in img.x and img.y doesn't make the maps appear, and it's neglibible difference anyways. Also, the SRC of the map images changes to some other temp file generated by mapserver. Help? Thanks! -Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: From rpierce at ACTGEOSPATIAL.COM Thu Mar 1 13:51:55 2007 From: rpierce at ACTGEOSPATIAL.COM (Richie Pierce) Date: Thu, 1 Mar 2007 15:51:55 -0600 Subject: Google Maps as Mapserver Layer In-Reply-To: Message-ID: I'm not completely familiar with the details on the data being provided to Google. I'm almost positive there was no monetary exchange. But like I said, Arkansas might be a little different because the data is already available, at no fee, for download, from our State clearinghouse. So providing the data to Google wasn't really that big of a deal. Saying that the States that do it are idiots is kind of harsh. Yeah they could use the cool tools that Google has in conjunction with great old MapServer and PostGIS, but you aren't keeping in mind that 98% of the population can't even spell GIS, and have no idea what it is we do. All they want is a pretty picture. That's why the data is provided to Google. So Joe Q. Public can access the best and latest information. They might not even know it's the best and latest. I think the more freely accessible data is provided to big name companies like Google, so they can build their cool tools on top of it, the better it will be for our industry. The more people see the good stuff the more they want it right? Just my $.02 Richie Pierce Sr GIS Analyst a.c.t.GeoSpatial, Inc. 2900 Percy Machin Drive, Suite One North Little Rock, AR 72114 Ph(501) 771-2985 rpierce at actgeospatial.com www.actgeospatial.com -----Original Message----- From: P Kishor [mailto:punk.kish at GMAIL.COM] Sent: Thursday, March 01, 2007 3:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Google Maps as Mapserver Layer Thanks Paul, for the clarification. I would love to hear from Richie (and others from _the_ States that have given their data to Google) about the terms under which they have given it. If the States just gave their data away without negotiating substantive rights in return, then heck, those States are idiots. I doubt though that that is the case. Google would have spent its money on Digiglobe anyway, so I don't understand why these States are doing this. And, these States could have used Google's cool tools in conjunction with our good old MapServer and PostGIS serving data as WMS, and gotten the best of everything. There is some opportunity for education here. We should really find out the real facts before making assertions because it will make our arguments for open access that much stronger and reliable. I am going to investigate this further to find out really what is going on. If it takes a lot of squirreling to discover the truth then I will be truly surprised. On 3/1/07, Paul Ramsey wrote: > Puneet, > > Sorry, don't have any particular details, just lots of anecdotal reports > of public agencies giving their data to Google in order to achieve the > holy grail of seeing "their data in Google Earth". > > http://dailyheadlines.uark.edu/7507.htm > > This is not uncommon, and it is not particularly sinister from a > "business" point of view, since the givers are receiving what they want > (access in a kewl tewl) and the givees are receiving what they want > (data they can add to Google Earth for free). > > I have heard tales of similar deals being struck here in BC, though the > details are not currently available to me -- it may all just be talk at > this point. > > Paul > > P Kishor wrote: > > On 3/1/07, Paul Ramsey wrote: > >> Richie, > >> > >> One of the quiet tragedies of the Google Earth/Maps mania is that once > >> public data is handed over to the Googleplex it becomes slightly less > >> public. You are only allowed to access mapping data served by Google via > >> Google-approved mechanisms, such as the Maps API or directly via Earth. > > > > This is an interesting assertion, Paul, and I would love to see more > > info on this. As far as I know, "public data" are not "handed over to > > the Googleplex." As far as I know, "private data" gathered by "private > > companies" such as "Digital Globe" are "bought with real money" by > > Google. > > > > As much as I am an advocate of open data access, I see nothing wrong > > with a legitimate exercise of two private corporations' right to enter > > into a trade as made possible by the currently accepted capitalistic > > norms. Yes, Google has a lot of money, and they are able to book the > > Quickbird satellites for pretty much everything useful leaving > > everyone else out in the cold. But hey, that is the game we are > > playing. And, they could have decided to just sit on it and not give > > access to anything to anyone unless folks ponied up for cash. I am not > > sure of Google's ultimate long term motives, but for now, they are > > behaving rather well. > > > > Once again, I would love it if I could see the details of how Arkansas > > ortho data, presumably "public data" were "handed" (by which, I infer, > > "given away for free or very low cost") to Google. The details would > > make for a very interesting sidebar in my dissertation. > > > > > > > >> > >> Another public geodata issue, I suppose. If enough folks who wanted to > >> "give their data to google" instead gave it to a 3rd party who processed > >> it into standardized tiles, then people could still get direct access to > >> the public data, and Google/Microsoft could easily integrate it as well. > >> > >> Paul > >> > >> Richie Pierce wrote: > >> > Like many of you we have space limitations when it comes to our raster > >> > files. We just received notice however that Google will be integrating > >> > our new Statewide ortho flight into their Google Maps/Earth service. > >> > This is exciting for me because it will allow me to get access to our > >> > statewide imagery without needing the space on my own server. I was > >> > wondering if it was possible to use Google Maps imagery as a layer > >> in my > >> > map file. I am using Mapserver and OpenLayers on some of my sites > >> which > >> > will work wonderfully. But I also have other sites that I'm using a > >> > custom Mapserver interface, and I'd like add the new orthos. > > > > > > > -- > > Paul Ramsey > Refractions Research > http://www.refractions.net > pramsey at refractions.net > Phone: 250-383-3022 > Cell: 250-885-0632 > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From punk.kish at GMAIL.COM Thu Mar 1 14:08:20 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Thu, 1 Mar 2007 16:08:20 -0600 Subject: Google Maps as Mapserver Layer In-Reply-To: <007901c75c4b$d58cde30$1200a8c0@ibmworkstation2> Message-ID: On 3/1/07, Richie Pierce wrote: > I'm not completely familiar with the details on the data being provided to > Google. I'm almost positive there was no monetary exchange. But like I > said, Arkansas might be a little different because the data is already > available, at no fee, for download, from our State clearinghouse. So > providing the data to Google wasn't really that big of a deal. Saying that > the States that do it are idiots is kind of harsh. Yes, that is harsh, but I didn't say that. And for historical purposes I want to reiterate that point to ensure I am not misquoted. I said, "If the States just gave their data away without negotiating substantive rights in return, then heck, those States are idiots." A reasonable interpretation of that statement would be that if (data are not available for free normally) && (States give it away, aka, "for free," to Google) && (States do not negotatiave rights to continue to use that data as they want) then those States are idiots. I also said "I doubt though that that is the case." From what you are saying, these data are available for free anyway, so there seems to be absolutely no wrong done, implied or otherwise, by Google or the State. The above statement just doesn't apply. I agree with everything you say below. Your 2 cents are worth a lot more. ;-) > Yeah they could use the > cool tools that Google has in conjunction with great old MapServer and > PostGIS, but you aren't keeping in mind that 98% of the population can't > even spell GIS, and have no idea what it is we do. All they want is a > pretty picture. That's why the data is provided to Google. So Joe Q. > Public can access the best and latest information. They might not even know > it's the best and latest. I think the more freely accessible data is > provided to big name companies like Google, so they can build their cool > tools on top of it, the better it will be for our industry. The more people > see the good stuff the more they want it right? Just my $.02 > > > > Richie Pierce > Sr GIS Analyst > a.c.t.GeoSpatial, Inc. > 2900 Percy Machin Drive, Suite One > North Little Rock, AR 72114 > Ph(501) 771-2985 > rpierce at actgeospatial.com > www.actgeospatial.com > > > -----Original Message----- > From: P Kishor [mailto:punk.kish at GMAIL.COM] > Sent: Thursday, March 01, 2007 3:09 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Google Maps as Mapserver Layer > > Thanks Paul, for the clarification. I would love to hear from Richie > (and others from _the_ States that have given their data to Google) > about the terms under which they have given it. > > If the States just gave their data away without negotiating > substantive rights in return, then heck, those States are idiots. I > doubt though that that is the case. Google would have spent its money > on Digiglobe anyway, so I don't understand why these States are doing > this. And, these States could have used Google's cool tools in > conjunction with our good old MapServer and PostGIS serving data as > WMS, and gotten the best of everything. There is some opportunity for > education here. > > We should really find out the real facts before making assertions > because it will make our arguments for open access that much stronger > and reliable. I am going to investigate this further to find out > really what is going on. If it takes a lot of squirreling to discover > the truth then I will be truly surprised. > > > > On 3/1/07, Paul Ramsey wrote: > > Puneet, > > > > Sorry, don't have any particular details, just lots of anecdotal reports > > of public agencies giving their data to Google in order to achieve the > > holy grail of seeing "their data in Google Earth". > > > > http://dailyheadlines.uark.edu/7507.htm > > > > This is not uncommon, and it is not particularly sinister from a > > "business" point of view, since the givers are receiving what they want > > (access in a kewl tewl) and the givees are receiving what they want > > (data they can add to Google Earth for free). > > > > I have heard tales of similar deals being struck here in BC, though the > > details are not currently available to me -- it may all just be talk at > > this point. > > > > Paul > > > > P Kishor wrote: > > > On 3/1/07, Paul Ramsey wrote: > > >> Richie, > > >> > > >> One of the quiet tragedies of the Google Earth/Maps mania is that once > > >> public data is handed over to the Googleplex it becomes slightly less > > >> public. You are only allowed to access mapping data served by Google > via > > >> Google-approved mechanisms, such as the Maps API or directly via Earth. > > > > > > This is an interesting assertion, Paul, and I would love to see more > > > info on this. As far as I know, "public data" are not "handed over to > > > the Googleplex." As far as I know, "private data" gathered by "private > > > companies" such as "Digital Globe" are "bought with real money" by > > > Google. > > > > > > As much as I am an advocate of open data access, I see nothing wrong > > > with a legitimate exercise of two private corporations' right to enter > > > into a trade as made possible by the currently accepted capitalistic > > > norms. Yes, Google has a lot of money, and they are able to book the > > > Quickbird satellites for pretty much everything useful leaving > > > everyone else out in the cold. But hey, that is the game we are > > > playing. And, they could have decided to just sit on it and not give > > > access to anything to anyone unless folks ponied up for cash. I am not > > > sure of Google's ultimate long term motives, but for now, they are > > > behaving rather well. > > > > > > Once again, I would love it if I could see the details of how Arkansas > > > ortho data, presumably "public data" were "handed" (by which, I infer, > > > "given away for free or very low cost") to Google. The details would > > > make for a very interesting sidebar in my dissertation. > > > > > > > > > > > >> > > >> Another public geodata issue, I suppose. If enough folks who wanted to > > >> "give their data to google" instead gave it to a 3rd party who > processed > > >> it into standardized tiles, then people could still get direct access > to > > >> the public data, and Google/Microsoft could easily integrate it as > well. > > >> > > >> Paul > > >> > > >> Richie Pierce wrote: > > >> > Like many of you we have space limitations when it comes to our > raster > > >> > files. We just received notice however that Google will be > integrating > > >> > our new Statewide ortho flight into their Google Maps/Earth service. > > >> > This is exciting for me because it will allow me to get access to our > > >> > statewide imagery without needing the space on my own server. I was > > >> > wondering if it was possible to use Google Maps imagery as a layer > > >> in my > > >> > map file. I am using Mapserver and OpenLayers on some of my sites > > >> which > > >> > will work wonderfully. But I also have other sites that I'm using a > > >> > custom Mapserver interface, and I'd like add the new orthos. > > > > > > > > > > > > -- > > > > Paul Ramsey > > Refractions Research > > http://www.refractions.net > > pramsey at refractions.net > > Phone: 250-383-3022 > > Cell: 250-885-0632 > > > > > -- > Puneet Kishor http://punkish.eidesis.org/ > Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ > Open Source Geospatial Foundation http://www.osgeo.org/education/ > --------------------------------------------------------------------- > collaborate, communicate, compete > ===================================================================== > > > > > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From punk.kish at GMAIL.COM Thu Mar 1 14:34:32 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Thu, 1 Mar 2007 16:34:32 -0600 Subject: Google Maps as Mapserver Layer In-Reply-To: <45E741B1.2060105@pdx.edu> Message-ID: this is getting quite OT for MapServer, but what the heck -- On 3/1/07, percy wrote: > I have been told directly by colleagues at both the Pennsylvania and > Indiana geological surveys about "giving away" the data. Google seems to > have feelers out for whenever new data are acquired by state agencies... > > I agree, it's not sinister! But it would be nice to have access to those > tiles :-) but, you do have access to the data. I just checked the Arkansas site that Paul provided below, and besides a bunch of innocuous factual errors, they clearly point to the repository where all that data are still available for anyone to use. Of course, the linked site is non-functional, so I guess I am better off using Google Maps ;-) Think of it this way... the US has a long history of offering publicly collected data to anyone for no or minimal cost, and that anyone has the freedom to do anything they want to with that data, including selling it back to the US! I, for one, am very happy of this policy. And, so are the mapping companies, for this is what they have made their empires out of. The nice thing with Google is, they are giving it back, just doing so on their own terms. Given that they are not charging anything for it, at least I can live with those terms. If I don't like those terms, the original data, the one that Google took, are still there for me to take. I see absolutely no problem with this. If there is any, I would love to be educated. > > Paul Ramsey wrote: > > Puneet, > > > > Sorry, don't have any particular details, just lots of anecdotal reports > > of public agencies giving their data to Google in order to achieve the > > holy grail of seeing "their data in Google Earth". > > > > http://dailyheadlines.uark.edu/7507.htm > > > > This is not uncommon, and it is not particularly sinister from a > > "business" point of view, since the givers are receiving what they want > > (access in a kewl tewl) and the givees are receiving what they want > > (data they can add to Google Earth for free). > > -- > David Percy > Geospatial Data Manager > Geology Department > Portland State University > http://gisgeek.pdx.edu > 503-725-3373 > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From rpierce at ACTGEOSPATIAL.COM Thu Mar 1 15:03:48 2007 From: rpierce at ACTGEOSPATIAL.COM (Richie Pierce) Date: Thu, 1 Mar 2007 17:03:48 -0600 Subject: Google Maps as Mapserver Layer In-Reply-To: Message-ID: You got it. Oh, the url you used is not the correct one. Try going to www.geostor.arkansas.gov that's where you'll get AR data. We re-built the clearinghouse and the site he provided is the old url. Richie Pierce Sr GIS Analyst a.c.t.GeoSpatial, Inc. 2900 Percy Machin Drive, Suite One North Little Rock, AR 72114 Ph(501) 771-2985 rpierce at actgeospatial.com www.actgeospatial.com -----Original Message----- From: P Kishor [mailto:punk.kish at GMAIL.COM] Sent: Thursday, March 01, 2007 4:35 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Google Maps as Mapserver Layer this is getting quite OT for MapServer, but what the heck -- On 3/1/07, percy wrote: > I have been told directly by colleagues at both the Pennsylvania and > Indiana geological surveys about "giving away" the data. Google seems to > have feelers out for whenever new data are acquired by state agencies... > > I agree, it's not sinister! But it would be nice to have access to those > tiles :-) but, you do have access to the data. I just checked the Arkansas site that Paul provided below, and besides a bunch of innocuous factual errors, they clearly point to the repository where all that data are still available for anyone to use. Of course, the linked site is non-functional, so I guess I am better off using Google Maps ;-) Think of it this way... the US has a long history of offering publicly collected data to anyone for no or minimal cost, and that anyone has the freedom to do anything they want to with that data, including selling it back to the US! I, for one, am very happy of this policy. And, so are the mapping companies, for this is what they have made their empires out of. The nice thing with Google is, they are giving it back, just doing so on their own terms. Given that they are not charging anything for it, at least I can live with those terms. If I don't like those terms, the original data, the one that Google took, are still there for me to take. I see absolutely no problem with this. If there is any, I would love to be educated. > > Paul Ramsey wrote: > > Puneet, > > > > Sorry, don't have any particular details, just lots of anecdotal reports > > of public agencies giving their data to Google in order to achieve the > > holy grail of seeing "their data in Google Earth". > > > > http://dailyheadlines.uark.edu/7507.htm > > > > This is not uncommon, and it is not particularly sinister from a > > "business" point of view, since the givers are receiving what they want > > (access in a kewl tewl) and the givees are receiving what they want > > (data they can add to Google Earth for free). > > -- > David Percy > Geospatial Data Manager > Geology Department > Portland State University > http://gisgeek.pdx.edu > 503-725-3373 > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From ed at TOPOZONE.COM Thu Mar 1 17:38:56 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 1 Mar 2007 20:38:56 -0500 Subject: Google Maps as Mapserver Layer In-Reply-To: A Message-ID: Puneet - The chief difficulty is when cash-strapped state and local governments eagerly provide data to Google (much as was done with Microsoft TerraServer) and then think they've "solved the problem" because "look how everyone can get it in Google Earth!". That can make it hard to get funding for a state GIS program to, for example, properly set up and operate a WMS service for access to the same data - the budget-cutter wonder why they should pay for something they "already have for free". There's no problem with states providing data to any private firm. The problem is when the providing organization misunderstands what it has accomplished. The USGS learned a few lessons in the TerraServer experience; I expect other organizations are simply beginning the process of re-learning some of those lessons all over again. - 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 P Kishor Sent: Thursday, March 01, 2007 5:35 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Google Maps as Mapserver Layer this is getting quite OT for MapServer, but what the heck -- On 3/1/07, percy wrote: > I have been told directly by colleagues at both the Pennsylvania and > Indiana geological surveys about "giving away" the data. Google seems > to have feelers out for whenever new data are acquired by state agencies... > > I agree, it's not sinister! But it would be nice to have access to > those tiles :-) but, you do have access to the data. I just checked the Arkansas site that Paul provided below, and besides a bunch of innocuous factual errors, they clearly point to the repository where all that data are still available for anyone to use. Of course, the linked site is non-functional, so I guess I am better off using Google Maps ;-) Think of it this way... the US has a long history of offering publicly collected data to anyone for no or minimal cost, and that anyone has the freedom to do anything they want to with that data, including selling it back to the US! I, for one, am very happy of this policy. And, so are the mapping companies, for this is what they have made their empires out of. The nice thing with Google is, they are giving it back, just doing so on their own terms. Given that they are not charging anything for it, at least I can live with those terms. If I don't like those terms, the original data, the one that Google took, are still there for me to take. I see absolutely no problem with this. If there is any, I would love to be educated. > > Paul Ramsey wrote: > > Puneet, > > > > Sorry, don't have any particular details, just lots of anecdotal > > reports of public agencies giving their data to Google in order to > > achieve the holy grail of seeing "their data in Google Earth". > > > > http://dailyheadlines.uark.edu/7507.htm > > > > This is not uncommon, and it is not particularly sinister from a > > "business" point of view, since the givers are receiving what they > > want (access in a kewl tewl) and the givees are receiving what they > > want (data they can add to Google Earth for free). > > -- > David Percy > Geospatial Data Manager > Geology Department > Portland State University > http://gisgeek.pdx.edu > 503-725-3373 > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From hobu at IASTATE.EDU Thu Mar 1 18:09:08 2007 From: hobu at IASTATE.EDU (Howard Butler) Date: Thu, 1 Mar 2007 20:09:08 -0600 Subject: Issues with SDE and Unicode In-Reply-To: Message-ID: Russell, I have committed a patch in HEAD that is similar, but it just hammers the wide character to narrow rather than trying to pass it around. Are the data you trying to label actually wide character, or is it just an instance of SDE trying to be smart and putting all of your string columns in unicode? I confess to not knowing very much about character issues like this, so maybe this approach is the wrong way to go. I left a note to posterity to do something smarter for posterity when MapServer becomes more cognizant about these issues. Howard > #ifdef SE_NSTRING_TYPE > case SE_NSTRING_TYPE: > shape->values[i] = (char *)malloc(itemdefs > [i].size*sizeof(char)+1); > wide = (SE_WCHAR *)malloc(itemdefs[i].size*sizeof > (SE_WCHAR)+1); > status = SE_stream_get_nstring( sde->stream, > (short) (i+1), > wide); > > // hammer the wide character to narrow > // FIXME: do the right thing when MapServer becomes > more > // unicode aware. > wcstombs( shape->values[i], > wide, > strlen(shape->values[i])); > > if(status == SE_NULL_VALUE) > shape->values[i][0] = '\0'; /* empty string */ > else if(status != SE_SUCCESS) { > sde_error( status, > "sdeGetRecord()", > "SE_stream_get_string()"); > return(MS_FAILURE); > } > break; > #endif On Feb 20, 2007, at 1:48 PM, Russell de Grove wrote: > I have map layers in ArcSDE on Sql Server 2005 and I have been > trying to=20= > > label features from a field with Unicode data (type nvarchar). > > To get around the ""Unknown SDE column type" error I had to add the=20 > following to the sdeGetRecord method in mapsde.c, in the "switch > (itemdefs= > > [i].sde_type)" block: > > #ifdef SE_NSTRING_TYPE > case SE_NSTRING_TYPE: > shape->values[i] =3D (char *)malloc( (itemdefs[i].size + 1) * > sizeo= > f > (unsigned short)); > status =3D SE_stream_get_nstring(sde->stream,=20 > (short) (i+1),=20 > (unsigned short *)shape->values > [i]); > if(status =3D=3D SE_NULL_VALUE) > ((unsigned short *)shape->values[i])[0] =3D (unsigned short) > 0; /*= > empty=20 > string */ > else if(status !=3D SE_SUCCESS) { > sde_error(status, "sdeGetRecord()", "SE_stream_get_nstring > ()"); > return(MS_FAILURE); > } > break; > #endif > > So far, so good, but I only see the first character of each label. > If I = > explicitly=20 > include a Unicode "preamble", I see two garbage characters followed > by th= > e=20 > first expected characters. As it happens, my data is in UTF-16 and > my=20= > > characters are all ASCII-type characters that use only the low > byte. I b= > elieve=20 > what is causing my problem is the "msGetEncodedString" method in > mapgd.c.= > > > char *msGetEncodedString(const char *string, const char *encoding) > { > #ifdef USE_ICONV > iconv_t cd =3D NULL; > char *in, *inp; > char *outp, *out =3D NULL; > size_t len, bufsize, bufleft, status; > cd =3D iconv_open("UTF-8", encoding); > if(cd =3D=3D (iconv_t)-1) { > msSetError(MS_IDENTERR, "Encoding not supported by libiconv (% > s).",=20= > > "msGetEncodedString()", encoding); > return NULL; > } > len =3D strlen(string); > > // Problem point: strlen will return the count up to the first null > byte,= > =20 > so "Shape #0" as Unicode will return 1 for the S stored little- > endian, or= > 3 if a=20 > Unicode "preamble" is used > > bufsize =3D len * 4; > in =3D strdup(string); > inp =3D in; > out =3D (char*) malloc(bufsize); > if(in =3D=3D NULL || out =3D=3D NULL){ > msSetError(MS_MEMERR, NULL, "msGetEncodedString()"); > msFree(in); > iconv_close(cd); > return NULL; > } > strcpy(out, in); > outp =3D out; > > bufleft =3D bufsize; > status =3D -1; > while (len > 0){ > status =3D iconv(cd, (const char**)&inp, &len, &outp, &am= > p;bufleft); > > // Problem point: since this expects byte pairs, a byte length of 1 > or 3 = > is going=20 > to cause problems. > > if(status =3D=3D -1){ > msFree(in); > msFree(out); > iconv_close(cd); > return strdup(string); > > // Problem point: since there was a problem, strdup returns the > original = > "string"=20 > up to the first null byte... so I get "S", possibly with a couple > of prec= > eding=20 > garbage characters if I used a preamble > > } > } > out[bufsize - bufleft] =3D '\0'; > =20=20 > msFree(in); > iconv_close(cd); > > return out; > #else > msSetError(MS_MISCERR, "Not implemeted since Iconv is not > enabled.",=20= > > "msGetEncodedString()"); > return NULL; > #endif > } > > Has anyone else encountered similar problems? Does anyone know how > I can=20= > > determine the correct width of characters based on the "encoding" > paramet= > er? > From wma108 at YAHOO.COM Thu Mar 1 18:37:39 2007 From: wma108 at YAHOO.COM (Win Myint Aung) Date: Thu, 1 Mar 2007 18:37:39 -0800 Subject: beginner:problem in Dynamic query with postGIS Message-ID: Dear members, I would like request you to help me the dynamic query problems. I created map file to show the point for one day on map. Because the table in PostGIS has many rows for many different days. I tested with FILTER but it is not the one I want. I tried to make criteria in DATA by WHERE clause. Please see map file here. This part make errors in map file. Other part is ok. LAYER #Confidence CONNECTIONTYPE postgis NAME "firepoint" CONNECTION "user=postgres password=kyawsannoo1234 dbname=hotspot_db host=localhost port=5432" # DATA "the_geom from firepoint" DATA "the_geom FROM (SELECT hotspot_tmp.the_geom as the_geom,hotspot_tmp.gid as oid,hotspot_tmp.date as date FROM hotspot_tmp WHERE hotspot_tmp.date='2006-08-15')" # FILTER "f_posibl >=75" # HEADER '/ms4w/projects/hotspot/htdocs/templates/HFVS_header.html' # FOOTER '/ms4w/projects/hotspot/htdocs/templates/HFVS_footer.html' TOLERANCE 3 STATUS ON TYPE POINT CLASSITEM "f_posibl" TEMPLATE '/ms4w/projects/hotspot/htdocs/templates/HFVS.html' CLASS NAME "Low [0-40]" EXPRESSION ([f_posibl] <= 40) STYLE COLOR 255 255 0 SYMBOL "square" OUTLINECOLOR 0 0 0 SIZE 5 END END CLASS NAME "Moderate [41 - 70]" EXPRESSION (([f_posibl] > 40) and ([f_posibl] <= 70)) STYLE COLOR 255 155 55 SYMBOL "square" OUTLINECOLOR 0 0 0 SIZE 5 END END CLASS NAME "High [71-100]" EXPRESSION ([f_posibl] > 70) STYLE COLOR 255 0 0 SYMBOL "square" OUTLINECOLOR 0 0 0 SIZE 5 END END END ============== ERRORS make msDrawMap(): Image handling error. Failed to draw layer named 'firepoint'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT f_posibl::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from (SELECT hotspot_tmp.the_geom as the_geom,hotspot_tmp.gid as oid,hotspot_tmp.date as date FROM hotspot_tmp WHERE hotspot_tmp.date='2006-08-15') WHERE the_geom && setSRID('BOX3D(-15 -80,195 60)'::BOX3D, find_srid('','(SELECT hotspot_tmp.the_geom as the_geom,hotspot_tmp.gid as oid,hotspot_tmp.date as date FROM hotspot_tmp WHERE hotspot_tmp.date='2006-08-15')','the_geom') )' Postgresql reports the error as 'ERROR: subquery in FROM must have an alias HINT: For example, FROM (SELECT ...) [AS] foo. ' More Help: Error with POSTGIS data variable. You specified ''. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from () as foo using unique using SRID=' Make sure you put in the 'using unique ' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. msPOSTGISLayerRetrievePK(): Query error. Error executing POSTGIS statement (msPOSTGISLayerRetrievePK():select attname from pg_attribute, pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = '(SELECT hotspot_tmp.the_geom as the_geom,hotspot_tmp.gid as oid,hotspot_tmp.date as date FROM hotspot_tmp WHERE hotspot_tmp.date='2006-08-15')' and pg_constraint.conkey[2] is null ____________________________________________________________________________________ It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From naci0002 at UMN.EDU Thu Mar 1 20:54:25 2007 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Thu, 1 Mar 2007 22:54:25 -0600 Subject: beginner:problem in Dynamic query with postGIS In-Reply-To: <811423.99483.qm@web60811.mail.yahoo.com> Message-ID: Win, Check the error message you get... > Postgresql reports the error as 'ERROR: subquery in FROM must have an alias > HINT: For example, FROM (SELECT ...) [AS] foo. ' You have you DATA set as > DATA "the_geom FROM (SELECT hotspot_tmp.the_geom as the_geom,hotspot_tmp.gid > as oid,hotspot_tmp.date as date FROM hotspot_tmp WHERE > hotspot_tmp.date='2006-08-15')" See what's missing? Try something like this: DATA "the_geom from (select hotspot_tmp.the_geom as the_geom, hotspot_tmp.gid as oid, hotspot_tmp.date as date from hotspot_tmp where hotspot_tmp.date='2006-08-15') as new_table" For more info on this, please look at the "Using MapServer" section of the PostGIS documentation: http://postgis.refractions.net/docs/ch04.html#id2747066 You should read the entire section but pay attention to the "Advanced Usage" subsection. Good luck! -Perry On Thursday 01 March 2007 20:37, Win Myint Aung wrote: > Dear members, > > I would like request you to help me the dynamic query problems. I created > map file to show the point for one day on map. Because the table in PostGIS > has many rows for many different days. I tested with FILTER but it is not > the one I want. I tried to make criteria in DATA by WHERE clause. Please > see map file here. > > This part make errors in map file. Other part is ok. > > LAYER #Confidence > CONNECTIONTYPE postgis > NAME "firepoint" > CONNECTION "user=postgres password=kyawsannoo1234 dbname=hotspot_db > host=localhost port=5432" # DATA "the_geom from firepoint" > DATA "the_geom FROM (SELECT hotspot_tmp.the_geom as > the_geom,hotspot_tmp.gid as oid,hotspot_tmp.date as date FROM hotspot_tmp > WHERE hotspot_tmp.date='2006-08-15')" > # FILTER "f_posibl >=75" > # HEADER '/ms4w/projects/hotspot/htdocs/templates/HFVS_header.html' > # FOOTER '/ms4w/projects/hotspot/htdocs/templates/HFVS_footer.html' > TOLERANCE 3 > STATUS ON > TYPE POINT > CLASSITEM "f_posibl" > TEMPLATE '/ms4w/projects/hotspot/htdocs/templates/HFVS.html' > CLASS > NAME "Low [0-40]" > EXPRESSION ([f_posibl] <= 40) > STYLE > COLOR 255 255 0 > SYMBOL "square" > OUTLINECOLOR 0 0 0 > SIZE 5 > END > END > CLASS > NAME "Moderate [41 - 70]" > EXPRESSION (([f_posibl] > 40) and ([f_posibl] <= 70)) > STYLE > COLOR 255 155 55 > SYMBOL "square" > OUTLINECOLOR 0 0 0 > SIZE 5 > END > END > CLASS > NAME "High [71-100]" > EXPRESSION ([f_posibl] > 70) > STYLE > COLOR 255 0 0 > SYMBOL "square" > OUTLINECOLOR 0 0 0 > SIZE 5 > END > END > END > > ============== > ERRORS make > > > msDrawMap(): Image handling error. Failed to draw layer named 'firepoint'. > prepare_database(): Query error. Error executing POSTGIS DECLARE (the > actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > f_posibl::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::te >xt from (SELECT hotspot_tmp.the_geom as the_geom,hotspot_tmp.gid as > oid,hotspot_tmp.date as date FROM hotspot_tmp WHERE > hotspot_tmp.date='2006-08-15') WHERE the_geom && setSRID('BOX3D(-15 -80,195 > 60)'::BOX3D, find_srid('','(SELECT hotspot_tmp.the_geom as > the_geom,hotspot_tmp.gid as oid,hotspot_tmp.date as date FROM hotspot_tmp > WHERE hotspot_tmp.date='2006-08-15')','the_geom') )' > > Postgresql reports the error as 'ERROR: subquery in FROM must have an alias > HINT: For example, FROM (SELECT ...) [AS] foo. ' > > More Help: > > Error with POSTGIS data variable. You specified ''. > Standard ways of specifiying are : > (1) 'geometry_column from geometry_table' > (2) 'geometry_column from () as foo using unique > using SRID=' > > Make sure you put in the 'using unique ' and 'using SRID=#' > clauses in. > > For more help, please see http://postgis.refractions.net/documentation/ > > Mappostgis.c - version of Jan 23/2004. > msPOSTGISLayerRetrievePK(): Query error. Error executing POSTGIS statement > (msPOSTGISLayerRetrievePK():select attname from pg_attribute, > pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and > pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and > pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = > '(SELECT hotspot_tmp.the_geom as the_geom,hotspot_tmp.gid as > oid,hotspot_tmp.date as date FROM hotspot_tmp WHERE > hotspot_tmp.date='2006-08-15')' and pg_constraint.conkey[2] is null > > > > ___________________________________________________________________________ >_________ It's here! Your new message! > Get new email alerts with the free Yahoo! Toolbar. > http://tools.search.yahoo.com/toolbar/features/mail/ -- Perry Nacionales Dept. of Forest Resources University of Minnesota naci0002 at umn.edu From punk.kish at GMAIL.COM Thu Mar 1 21:30:57 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Thu, 1 Mar 2007 23:30:57 -0600 Subject: Google Maps as Mapserver Layer In-Reply-To: <4BF377919225F449BB097CB76FFE9BC801987EE5@ptolemy.topozone.com> Message-ID: On 3/1/07, Ed McNierney wrote: > Puneet - > > The chief difficulty is when cash-strapped state and local governments > eagerly provide data to Google (much as was done with Microsoft > TerraServer) and then think they've "solved the problem" because "look > how everyone can get it in Google Earth!". That can make it hard to get > funding for a state GIS program to, for example, properly set up and > operate a WMS service for access to the same data - the budget-cutter > wonder why they should pay for something they "already have for free". > There's no problem with states providing data to any private firm. The > problem is when the providing organization misunderstands what it has > accomplished. Ed, I totally agree with you. My only concern is that we have to be cautious as to what problem we focus on and try to solve. As you note above, this is not Google's fault. They are doing what any law-abiding business will do to maximize its raison d'etre. If anyone's it is very much the fault of the States. But, let's also look at it from the State's point of view. They are cash strapped and they can't cook up the resources to make the data easily available to everyone. Google comes by and offers them a solution, for free. They sell their soul (figuratively... before anyone pounces on me for saying that ;-), and they reap some positive and some negative. In their position, I probably would do the same unless I could be shown better alternatives. C'est la vie. In my world-view, it is not an "open source" vs. "proprietary" fight. I very much see a coexistence of both. I do believe strongly in open access to intellectual property collected with public funds which, in this case, happens to be orthos. As you mention below, some are beginning to learn, and that is where we come in. We give them reasonable, level-headed solutions that can demonstrate working together with a multitude of technologies and choices while ensuring that everyone gets a fair crack at what belong to everyone. Google Earth and Maps are "cool tools" not because Google made them, but simply because they indeed are cool. I do not know of any mapping site or application that so quickly, easily, and impressively soaked into public consciousness as Google's apps did. And not just with Slashdot-reading geeks, but even with normal ma and pa. Google just happens to have a collection of extremely smart programmers who also created extremely usable tools that popularized mapping. What ESRI, or even Mapquest and Vicinity, etc., couldn't achieve in years, even decades, Google did in such a short time that it truly is breathtaking. Hats off to them. And, the fact is, they could have kept it all to themselves, but no, they opened it. This not only enriched the user experience around their own tools, but also forced other companies and organizations to open up and learn from them. Our own open source tools learned from them... apps like Ka-map and Open Layers probably owe a lot of inspiration to Google apps. Anyway, enough on this. Thanks for listening. > > The USGS learned a few lessons in the TerraServer experience; I expect > other organizations are simply beginning the process of re-learning some > of those lessons all over again. > > - 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 P Kishor > Sent: Thursday, March 01, 2007 5:35 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Google Maps as Mapserver Layer > > this is getting quite OT for MapServer, but what the heck -- > > On 3/1/07, percy wrote: > > I have been told directly by colleagues at both the Pennsylvania and > > Indiana geological surveys about "giving away" the data. Google seems > > to have feelers out for whenever new data are acquired by state > agencies... > > > > I agree, it's not sinister! But it would be nice to have access to > > those tiles :-) > > but, you do have access to the data. I just checked the Arkansas site > that Paul provided below, and besides a bunch of innocuous factual > errors, they clearly point to the repository where all that data are > still available for anyone to use. Of course, the linked site > is non-functional, so I guess I am > better off using Google Maps ;-) > > Think of it this way... the US has a long history of offering publicly > collected data to anyone for no or minimal cost, and that anyone has the > freedom to do anything they want to with that data, including selling it > back to the US! I, for one, am very happy of this policy. > > And, so are the mapping companies, for this is what they have made their > empires out of. The nice thing with Google is, they are giving it back, > just doing so on their own terms. Given that they are not charging > anything for it, at least I can live with those terms. If I don't like > those terms, the original data, the one that Google took, are still > there for me to take. > > I see absolutely no problem with this. If there is any, I would love to > be educated. > > > > > > Paul Ramsey wrote: > > > Puneet, > > > > > > Sorry, don't have any particular details, just lots of anecdotal > > > reports of public agencies giving their data to Google in order to > > > achieve the holy grail of seeing "their data in Google Earth". > > > > > > http://dailyheadlines.uark.edu/7507.htm > > > > > > This is not uncommon, and it is not particularly sinister from a > > > "business" point of view, since the givers are receiving what they > > > want (access in a kewl tewl) and the givees are receiving what they > > > want (data they can add to Google Earth for free). > > > > -- > > David Percy > > Geospatial Data Manager > > Geology Department > > Portland State University > > http://gisgeek.pdx.edu > > 503-725-3373 > > > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From liste at GEO-DIENSTLEISTUNG.DE Thu Mar 1 22:36:43 2007 From: liste at GEO-DIENSTLEISTUNG.DE (Frank Broniewski) Date: Fri, 2 Mar 2007 07:36:43 +0100 Subject: AddPoints won't work In-Reply-To: <670629.82028.qm@web32613.mail.mud.yahoo.com> Message-ID: Hi did you try to do print_r($_POST) to see what $_POST[mode] holds as a value? Maybe you have a typo somewhere. And you don't need the extra brackets around $_POST. Best whishes Frank Am Donnerstag, 1. M?rz 2007 14:12 schrieb theresia freska: > hi list, > i have a function to add points dynamically. it works on the A data, but > not on the B data. yet i have copied the same code. this function works as > user selects the nquery mode. > > if (($_POST['mode']) == "nquery") { > do_the_function; > } > > the strange thing is that when i eliminate the if condition, it works just > fine. i don't know where i did the wrong code. can someone point that out > for me? i use mapserver 4.8.3. i use this code to debug. thanks in advance. > > if ($_POST['mode'] == "nquery") { > /*$inputLayer = $_POST['slcQlayer']; > $radius = abs($_POST['radius']); > > if (!(in_array($inputLayer, $tesLayer))) { > echo ""; } else { > $nearby = nearbyResto($qpoint, $map, $radius, $inputLayer); > $arrRes = getInfo($inputLayer, $nearby); > $result_table = tabelResto($arrRes);*/ > > $conn = pg_connect("dbname=$database user=$user > password=$password host=$host"); $m=0; > $res_layer = pg_query("select gid from point where > kategori='Pasar'"); while($row_layer = pg_fetch_row($res_layer)) { > $arr_layer[$m] = $row_layer; > $m++; > } > > for ($i=0;$i $baris = $arr_layer[$i]; > $res = pg_query("select kategori, x(the_geom), y(the_geom) > from point where gid=$baris[0]"); $row = pg_fetch_row($res); > $arr[$i] = $row; > } > > AddPoints($map, $arr); > > } > > > --------------------------------- > Want to start your own business? Learn how on Yahoo! Small Business. -- Softwaredienstleistungen Frank Broniewski Cloefstra?e 76a 66693 Mettlach Email: frank at geo-dienstleistung.de WWW: http://www.geo-dienstleistung.de/ From guillaume.sueur at GEOSIGNAL.FR Fri Mar 2 00:14:24 2007 From: guillaume.sueur at GEOSIGNAL.FR (Guillaume Sueur) Date: Fri, 2 Mar 2007 11:14:24 +0300 Subject: MapServer 4.10 with DSO PHP5 -> GD issues In-Reply-To: <45E6EE64.9070406@geosignal.fr> Message-ID: One more thing : using the system gd library works well, but some gd functions (imagerotate or imagelayereffect for example) requires php to be build against embedded version of gd. So, is there a way to build mapserver against php version of gd, or to find the source of it to be able to build it as the system lib too ? Thanks Guillaume Sueur a ?crit : > great ! it works perfectly now. thanks for your help Daniel. > > > Daniel Morissette a ?crit : >> The issue with REGEX was solved a few releases ago using some >> wrappers, so it should not matter any more which version of REGEX you >> use to build PHP and MapScript. >> >> Daniel >> >> Guillaume Sueur wrote: >>> that can be an interesting clue. Do you know if the regex trick is >>> still mandatory ? >>> >>> >>> Daniel Morissette a ?crit : >>>> That could be caused by conflicting versions of GD, i.e. Your PHP >>>> has --with-gd which will probably trigger the use of its built-in >>>> copy of GD, and your php_mapscript.so is built with the system GD. >>>> >>>> I'd suggest that you try rebuilding your PHP using the system GD and >>>> see if that helps. If GD is unstalled under /usr/local then use >>>> --with-gd=/usr/local >>>> >>>> Daniel >>>> >>>> Guillaume Sueur wrote: >>>>> Hi list, >>>>> >>>>> I was wondering if MapScript 4.10 could be build with PHP5 as >>>>> Apache DSO. I've done several attempts, without success. The build >>>>> goes fine, but invoking the draw method on a map object causes a >>>>> segmentation fault. >>>>> I've tried the "regex hack" on the php configure, to force php to >>>>> be build with system regex. >>>>> The option with-apxs on mapserver configure fires a message saying >>>>> in can't work that way. I can accept that, but why are people >>>>> saying it works fine for them on the net ? >>>>> So, if you had a clue, and some configure options and workarounds, >>>>> I would really appreciate. >>>>> >>>>> Here are my php configure options (the use of regex=system is >>>>> forced in the configure script): >>>>> './configure' '--prefix=/usr/local/apache2/' >>>>> '--with-apxs2=/usr/local/apache2/bin/apxs' >>>>> '--with-config-file-path=/usr/local/apache2/php' >>>>> '--with-regex=system' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' >>>>> '--with-zlib' '--with-gd' '--with-freetype-dir=/usr/local/' >>>>> '--enable-dbase' '--with-pdflib' '--enable-gd-native-ttf' >>>>> >>>>> Thanks >>>> >>>> >> >> > > From ale.pas at TISCALI.IT Thu Mar 1 23:29:54 2007 From: ale.pas at TISCALI.IT (Alessandro Pasotti) Date: Fri, 2 Mar 2007 08:29:54 +0100 Subject: mapserver segfaults on x68_64 intel xeon Message-ID: Hello, I've compiled latest mapserver and all dependencies (gdal, proj, geos etc.) from scratches on a 64bit linux machine, build process went fine, but the resulting executable segfaults (the mapfile is ok, tested on other machines): (gdb) set args -all_debug 9 -m /maps/appalto_26.map (gdb) run Starting program: ./shp2img -all_debug 9 -m /maps/appalto_26.map [Thread debugging using libthread_db enabled] [New Thread 46912537641984 (LWP 11768)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 46912537641984 (LWP 11768)] 0x00002aaaac518e40 in rawmemchr () from /lib64/tls/libc.so.6 The same happens with the cgi and php_mapscript: [Fri Mar 02 08:08:58 2007] [error] [client 82.52.86.193] Premature end of script headers: mapserv [Fri Mar 02 08:09:23 2007] [notice] child pid 11473 exit signal Segmentation fault (11) Any idea on how to solve this? Many thanks in advance. Some dumps follow ------------------ linux:~/webgis/mapserver-4.10.1 # ldd mapscript/php3/php_mapscript.so libcurl.so.3 => /usr/lib64/libcurl.so.3 (0x00002aaaaacd7000) libssl.so.0.9.7 => /usr/lib64/libssl.so.0.9.7 (0x00002aaaaae0d000) libcrypto.so.0.9.7 => /usr/lib64/libcrypto.so.0.9.7 (0x00002aaaaaf43000) libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaab17c000) libz.so.1 => /lib64/libz.so.1 (0x00002aaaab27f000) libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002aaaab394000) libgdal.so.1 => /usr/local/lib/libgdal.so.1 (0x00002aaaab4b6000) libgeos-3.0.0rc4.so => /usr/local/lib/libgeos-3.0.0rc4.so (0x00002aaaaba22000) libgeos_c.so.1 => /usr/local/lib/libgeos_c.so.1 (0x00002aaaabc65000) libjasper-1.701.so.1 => /usr/lib64/libjasper-1.701.so.1 (0x00002aaaabd73000) librt.so.1 => /lib64/tls/librt.so.1 (0x00002aaaabec8000) libproj.so.0 => /usr/local/lib/libproj.so.0 (0x00002aaaabfd0000) libgd.so.2 => /usr/lib64/libgd.so.2 (0x00002aaaac112000) libm.so.6 => /lib64/tls/libm.so.6 (0x00002aaaac266000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002aaaac3bd000) libc.so.6 => /lib64/tls/libc.so.6 (0x00002aaaac5ba000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002aaaac7e5000) /lib64/ld-linux-x86-64.so.2 (0x0000555555554000) libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x00002aaaac8f3000) libXpm.so.4 => /usr/X11R6/lib64/libXpm.so.4 (0x00002aaaaca08000) libX11.so.6 => /usr/X11R6/lib64/libX11.so.6 (0x00002aaaacb1e000) libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00002aaaacd2e000) libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002aaaace6d000) libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00002aaaacfe8000) libXext.so.6 => /usr/X11R6/lib64/libXext.so.6 (0x00002aaaad122000) libexpat.so.0 => /usr/lib64/libexpat.so.0 (0x00002aaaad233000) ------------- inux:~/webgis/mapserver-4.10.1 # uname -a Linux linux 2.6.13-15-smp #1 SMP Tue Sep 13 14:56:15 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux ------------ linux:~/webgis/mapserver-4.10.1 # cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Xeon(TM) CPU 3.20GHz stepping : 3 -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502 From umberto.nicoletti at GMAIL.COM Fri Mar 2 02:11:27 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 2 Mar 2007 11:11:27 +0100 Subject: mapserver segfaults on x68_64 intel xeon In-Reply-To: <200703020829.55119.ale.pas@tiscali.it> Message-ID: Send us the stack trace (run the backtrace command from gdb) so that we can see what mapserver is doing when it crashed and report the configure flags. I suspect the issue has something to do with international charsets, so report also the values of the LANG and LC_* variables. Umberto On 3/2/07, Alessandro Pasotti wrote: > Hello, > > I've compiled latest mapserver and all dependencies (gdal, proj, geos etc.) > from scratches on a 64bit linux machine, build process went fine, but the > resulting executable segfaults (the mapfile is ok, tested on other machines): > > > (gdb) set args -all_debug 9 -m /maps/appalto_26.map > (gdb) run > Starting program: ./shp2img -all_debug 9 -m /maps/appalto_26.map > [Thread debugging using libthread_db enabled] > [New Thread 46912537641984 (LWP 11768)] > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 46912537641984 (LWP 11768)] > 0x00002aaaac518e40 in rawmemchr () from /lib64/tls/libc.so.6 > > The same happens with the cgi and php_mapscript: > [Fri Mar 02 08:08:58 2007] [error] [client 82.52.86.193] Premature end of > script headers: mapserv > [Fri Mar 02 08:09:23 2007] [notice] child pid 11473 exit signal Segmentation > fault (11) > > Any idea on how to solve this? > > Many thanks in advance. > > > Some dumps follow > ------------------ > > > linux:~/webgis/mapserver-4.10.1 # ldd mapscript/php3/php_mapscript.so > libcurl.so.3 => /usr/lib64/libcurl.so.3 (0x00002aaaaacd7000) > libssl.so.0.9.7 => /usr/lib64/libssl.so.0.9.7 (0x00002aaaaae0d000) > libcrypto.so.0.9.7 => /usr/lib64/libcrypto.so.0.9.7 > (0x00002aaaaaf43000) > libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaab17c000) > libz.so.1 => /lib64/libz.so.1 (0x00002aaaab27f000) > libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002aaaab394000) > libgdal.so.1 => /usr/local/lib/libgdal.so.1 (0x00002aaaab4b6000) > libgeos-3.0.0rc4.so => /usr/local/lib/libgeos-3.0.0rc4.so > (0x00002aaaaba22000) > libgeos_c.so.1 => /usr/local/lib/libgeos_c.so.1 (0x00002aaaabc65000) > libjasper-1.701.so.1 => /usr/lib64/libjasper-1.701.so.1 > (0x00002aaaabd73000) > librt.so.1 => /lib64/tls/librt.so.1 (0x00002aaaabec8000) > libproj.so.0 => /usr/local/lib/libproj.so.0 (0x00002aaaabfd0000) > libgd.so.2 => /usr/lib64/libgd.so.2 (0x00002aaaac112000) > libm.so.6 => /lib64/tls/libm.so.6 (0x00002aaaac266000) > libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002aaaac3bd000) > libc.so.6 => /lib64/tls/libc.so.6 (0x00002aaaac5ba000) > libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002aaaac7e5000) > /lib64/ld-linux-x86-64.so.2 (0x0000555555554000) > libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x00002aaaac8f3000) > libXpm.so.4 => /usr/X11R6/lib64/libXpm.so.4 (0x00002aaaaca08000) > libX11.so.6 => /usr/X11R6/lib64/libX11.so.6 (0x00002aaaacb1e000) > libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 > (0x00002aaaacd2e000) > libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002aaaace6d000) > libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00002aaaacfe8000) > libXext.so.6 => /usr/X11R6/lib64/libXext.so.6 (0x00002aaaad122000) > libexpat.so.0 => /usr/lib64/libexpat.so.0 (0x00002aaaad233000) > > ------------- > inux:~/webgis/mapserver-4.10.1 # uname -a > Linux linux 2.6.13-15-smp #1 SMP Tue Sep 13 14:56:15 UTC 2005 x86_64 x86_64 > x86_64 GNU/Linux > > ------------ > linux:~/webgis/mapserver-4.10.1 # cat /proc/cpuinfo > processor : 0 > vendor_id : GenuineIntel > cpu family : 15 > model : 4 > model name : Intel(R) Xeon(TM) CPU 3.20GHz > stepping : 3 > > > > -- > Alessandro Pasotti > itOpen - "Open Solutions for the Net Age" > w3: www.itopen.it > Linux User# 167502 > From ale.pas at TISCALI.IT Fri Mar 2 02:33:12 2007 From: ale.pas at TISCALI.IT (Alessandro Pasotti) Date: Fri, 2 Mar 2007 11:33:12 +0100 Subject: mapserver segfaults on x68_64 intel xeon In-Reply-To: <75b4b93e0703020211p26e55197x40456550c995f1e0@mail.gmail.com> Message-ID: Il 11:11, venerd? 2 marzo 2007, Umberto Nicoletti ha scritto: > Send us the stack trace (run the backtrace command from gdb) so that > we can see what mapserver is doing when it crashed and report the > configure flags. Here is the configure command: ./configure \ --libdir=/usr/lib64 \ --with-wfs \ --with-gd=/usr/lib64 \ --with-wfsclient \ --with-wmsclient \ --with-proj=/usr/local/lib \ --with-gdal=/usr/local/bin/gdal-config \ --with-ogr=/usr/local/bin/gdal-config \ --with-php=/usr/local/include/php \ --with-httpd=/usr/sbin/httpd2 \ --prefix=/usr/local Here is the backtrace: linux:~/webgis/mapserver-4.10.1 # gdb ./shp2img GNU gdb 6.3 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 "x86_64-suse-linux"...Using host libthread_db library "/lib64/tls/libthread_db.so.1". (gdb) set args -all_debug 9 -m /srv/www/htdocs_ssl/maps/appalto_26.map (gdb) run Starting program: /root/webgis/mapserver-4.10.1/shp2img -all_debug 9 -m /srv/www/htdocs_ssl/maps/appalto_26.map [Thread debugging using libthread_db enabled] [New Thread 46912537641952 (LWP 24490)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 46912537641952 (LWP 24490)] 0x00002aaaac693e40 in rawmemchr () from /lib64/tls/libc.so.6 (gdb) backtrace #0 0x00002aaaac693e40 in rawmemchr () from /lib64/tls/libc.so.6 #1 0x00002aaaac6882ba in _IO_str_init_static_internal () from /lib64/tls/libc.so.6 #2 0x00002aaaac67dd95 in vsscanf () from /lib64/tls/libc.so.6 #3 0x00002aaaac679488 in sscanf () from /lib64/tls/libc.so.6 #4 0x00002aaaab4fd7fc in OGRStyleTool::GetRGBFromString () from /usr/local/lib/libgdal.so.1 #5 0x0000000000423ee3 in msOGRLayerGetAutoStyle () #6 0x000000000042a804 in msDrawVectorLayer () #7 0x000000000042a959 in msDrawLayer () #8 0x000000000042b750 in msDrawMap () #9 0x000000000040a40c in main () Thanks for helping. -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502 From csengstock at GMAIL.COM Fri Mar 2 03:04:04 2007 From: csengstock at GMAIL.COM (Christian Sengstock) Date: Fri, 2 Mar 2007 12:04:04 +0100 Subject: Eclipse mapfile editor Message-ID: Hi list, anyone knows a about a mapserver eclipse plugin ? I've found some postings with ideas about it, but not a real project. g, Chris From umberto.nicoletti at GMAIL.COM Fri Mar 2 03:10:08 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 2 Mar 2007 12:10:08 +0100 Subject: mapserver segfaults on x68_64 intel xeon In-Reply-To: <200703021133.12876.ale.pas@tiscali.it> Message-ID: Can you send the distint values upon which the style info is built? I wouldn't be surprised if one of those had non-ascii characters! Try to remove non ascii-chars and report if that solved the issue. Umberto On 3/2/07, Alessandro Pasotti wrote: > Il 11:11, venerd? 2 marzo 2007, Umberto Nicoletti ha scritto: > > Send us the stack trace (run the backtrace command from gdb) so that > > we can see what mapserver is doing when it crashed and report the > > configure flags. > > Here is the configure command: > > ./configure \ > --libdir=/usr/lib64 \ > --with-wfs \ > --with-gd=/usr/lib64 \ > --with-wfsclient \ > --with-wmsclient \ > --with-proj=/usr/local/lib \ > --with-gdal=/usr/local/bin/gdal-config \ > --with-ogr=/usr/local/bin/gdal-config \ > --with-php=/usr/local/include/php \ > --with-httpd=/usr/sbin/httpd2 \ > --prefix=/usr/local > > Here is the backtrace: > > linux:~/webgis/mapserver-4.10.1 # gdb ./shp2img > GNU gdb 6.3 > 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 "x86_64-suse-linux"...Using host libthread_db > library "/lib64/tls/libthread_db.so.1". > > (gdb) set args -all_debug 9 -m /srv/www/htdocs_ssl/maps/appalto_26.map > (gdb) run > Starting program: /root/webgis/mapserver-4.10.1/shp2img -all_debug > 9 -m /srv/www/htdocs_ssl/maps/appalto_26.map > [Thread debugging using libthread_db enabled] > [New Thread 46912537641952 (LWP 24490)] > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 46912537641952 (LWP 24490)] > 0x00002aaaac693e40 in rawmemchr () from /lib64/tls/libc.so.6 > (gdb) backtrace > #0 0x00002aaaac693e40 in rawmemchr () from /lib64/tls/libc.so.6 > #1 0x00002aaaac6882ba in _IO_str_init_static_internal () > from /lib64/tls/libc.so.6 > #2 0x00002aaaac67dd95 in vsscanf () from /lib64/tls/libc.so.6 > #3 0x00002aaaac679488 in sscanf () from /lib64/tls/libc.so.6 > #4 0x00002aaaab4fd7fc in OGRStyleTool::GetRGBFromString () > from /usr/local/lib/libgdal.so.1 > #5 0x0000000000423ee3 in msOGRLayerGetAutoStyle () > #6 0x000000000042a804 in msDrawVectorLayer () > #7 0x000000000042a959 in msDrawLayer () > #8 0x000000000042b750 in msDrawMap () > #9 0x000000000040a40c in main () > > > Thanks for helping. > > -- > Alessandro Pasotti > itOpen - "Open Solutions for the Net Age" > w3: www.itopen.it > Linux User# 167502 > From ale.pas at TISCALI.IT Fri Mar 2 03:34:15 2007 From: ale.pas at TISCALI.IT (Alessandro Pasotti) Date: Fri, 2 Mar 2007 12:34:15 +0100 Subject: mapserver segfaults on x68_64 intel xeon In-Reply-To: <75b4b93e0703020310ybd372f4m38f243ffae04a9@mail.gmail.com> Message-ID: Il 12:10, venerd? 2 marzo 2007, Umberto Nicoletti ha scritto: > Can you send the distint values upon which the style info is built? STYLEITEM "AUTO" it's a mapinfo tab > I wouldn't be surprised if one of those ha > d non-ascii characters! Well, this doesn't seems to be the case, it segafults even when there are only ASCII characters. If I comment #STYLEITEM "AUTO" ms doesn't segfault. The problem is definitely with STYLEITEM "AUTO", but as I said in my other post, this works fine on my testing machine. Thanks -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502 From ale.pas at TISCALI.IT Fri Mar 2 03:23:47 2007 From: ale.pas at TISCALI.IT (Alessandro Pasotti) Date: Fri, 2 Mar 2007 12:23:47 +0100 Subject: mapserver segfaults on x68_64 intel xeon In-Reply-To: <75b4b93e0703020310ybd372f4m38f243ffae04a9@mail.gmail.com> Message-ID: Il 12:10, venerd? 2 marzo 2007, Umberto Nicoletti ha scritto: > Can you send the distint values upon which the style info is built? > I wouldn't be surprised if one of those had non-ascii characters! > > Try to remove non ascii-chars and report if that solved the issue. I will try your suggestion and report back to the list. BTW the very same mapfile and data set works fine on my testing ubuntu (32bit) ... but with different ms and php (MapServer version 4.10.0) Thanks -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502 From mlinden at ZEELANDNET.NL Fri Mar 2 05:21:37 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Fri, 2 Mar 2007 07:21:37 -0600 Subject: FreeBSD6.1 Install Message-ID: Hello list, I am currently installing MapServer on a clean FreeBSD6.1 install. The install type is minimal (Base + Kernel) after the clean install I've CVSUP-ed the ports tree and then changed dir to: cd /usr/ports/graphics/mapserver and did: make install Currently, my machine is installing, but I am a bit worried, I want to keep the installation as clean as possible as it has to be installed on a Webserver later on. Right now my system is installing all kinds of x11 stuff that I feel I basically should not need. Has anyone out there good experience with installing MapServer on FreeBSD? Any tips or tricks beside the documentation found on the MapServer website? Would anyone care to help me upgrade the MapServer documentation on installing on FreeBSD to FreeBSD 6.X? Kind regards, Milo From mapserver at LINKAS.IT Fri Mar 2 05:31:02 2007 From: mapserver at LINKAS.IT (Julien Buratto) Date: Fri, 2 Mar 2007 14:31:02 +0100 Subject: beginner: text region polyline point from MapInfo Message-ID: I've converted all my TAB files from MapInfo to a ESRI Shape file and, for each TAB file, I got 4 sub-file: _text. _polyline. _region. _point. For eachone MapInfo generated .dbf, .prj .shp and .shx files. I was able to recompose the image using ogrtindex and then tiling, that is making and index with all the *_region.shp files. What I'd like to understand, is what exacly those 4 files rappresents. For example, does the _text rappresent the name of things inside the map ? Thanks J PS: Thanks to all that yesterday gave me so great suggestions! I had really appreciated the idea of tiling layers and the right way to get the EXTENT value! From Jukka.Rahkonen at MMMTIKE.FI Fri Mar 2 05:54:41 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 2 Mar 2007 15:54:41 +0200 Subject: beginner: text region polyline point from MapInfo Message-ID: Hi, Correct. While MapInfo tab is database-like format and can contain everything you may have in MapInfo in a single file, ESRI shapefiles can only have one kind of features in one shapefile set. -Jukka- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Julien Buratto L?hetetty: pe 2.3.2007 15:31 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] beginner: text region polyline point from MapInfo I've converted all my TAB files from MapInfo to a ESRI Shape file and, for each TAB file, I got 4 sub-file: _text. _polyline. _region. _point. For eachone MapInfo generated .dbf, .prj .shp and .shx files. I was able to recompose the image using ogrtindex and then tiling, that is making and index with all the *_region.shp files. What I'd like to understand, is what exacly those 4 files rappresents. For example, does the _text rappresent the name of things inside the map ? Thanks J PS: Thanks to all that yesterday gave me so great suggestions! I had really appreciated the idea of tiling layers and the right way to get the EXTENT value! From mapserver at LINKAS.IT Fri Mar 2 06:10:00 2007 From: mapserver at LINKAS.IT (Julien Buratto) Date: Fri, 2 Mar 2007 15:10:00 +0100 Subject: beginner: text region polyline point from MapInfo In-Reply-To: Message-ID: Rahkonen Jukka ha scritto: > Hi, > > Correct. While MapInfo tab is database-like format and can contain everything you may have in MapInfo in a single file, ESRI shapefiles can only have one kind of features in one shapefile set. > > -Jukka- Great, so I'm getting it :-D Next question is, what "type" should I use to draw texts ? My layer containing text is: LAYER DEBUG OFF NAME "text" TYPE point STATUS OFF TILEINDEX "priamo_text.shp" TILEITEM "location" CLASS NAME "region" STYLE # OUTLINECOLOR 120 120 120 COLOR 0 0 0 END END END # layer the MAP header is: MAP NAME DEMO IMAGECOLOR 255 255 255 SIZE 530 530 Extent 2285117.310158 4727319.440000 2431485.920000 4871301.690000 FONTSET ../etc/fonts.txt Thanks again From lauberger at GMX.DE Fri Mar 2 06:03:36 2007 From: lauberger at GMX.DE (lauberger at GMX.DE) Date: Fri, 2 Mar 2007 15:03:36 +0100 Subject: raster layer cannot be drawn Message-ID: Hi list, My mapserver does not display any raster layers, although, in my opinion, it is configured correctly, or let`s say in a way, that should draw raster layers: MapServer version 4.10.0 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 SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE GDAL supports the following formats: gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp pcidsk airsar rs2 ilwis rmf rik leveller sgi idrisi wcs bsb gif jpeg png pcraster. Yet every time I want it to display a raster layer (GeoTIFF, jpg, ...) it says: msDrawMap(): Image handling error. Failed to draw layer named 'landsat7.tif'. msDrawRaster(): Unable to access file. (landsat7.tif). What could be wrong? Best wishes and a nice weekend, Rolf -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser From listario at GMAIL.COM Fri Mar 2 06:16:52 2007 From: listario at GMAIL.COM (J. Parapar) Date: Fri, 2 Mar 2007 15:16:52 +0100 Subject: problem in Dynamic query with postGIS In-Reply-To: <4ac992660703020615m204c9c4excf7d11463e176563@mail.gmail.com> Message-ID: Nimalika: It seems that in the qstring parameter you are specifying only the name of the village and not a condition like qstring=dsd_n='Ambalanthota. This results in an incorrect SQL condition. Changing this affects the use you do of qstring as a variable in DATA. I think you should try again with QueryMap, it is a simpler way to get the results of the query highlighted in the map. Best regards, Jorge 2007/3/1, nimalika Fernando : > hi everybody, > > I am working in a disaster recovery application , using Mapserver and postGIS > for mapping part. > > I need to implement a simple search facilty, for eaxmple if user already knows > a village affected , by selecting that village name using a combo box in web > interface the related village should be highlighted in the map. > > I am not clear about how to implement such but I tried several options. > I have used a QUERYMAP object and tried . But I am not getting the work > done. My data resides in postGIS db and working with Maapserver in CGI mode > is fine for basic operations. > My query in the map file is as follows > > DATA "the_geom from (select alldsdivisions.the_geom as > the_geom,alldsdivisions.gid as oid , > alldsdivisions.dsd_n as dsd_n from alldsdivisions > where alldsdivisions.dsd_n ='%qstring%') > > error mesage I get is as follows > > prepare_database(): Query error. Error executing POSTGIS DECLARE (the > actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > dsd_n::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),oid::text > from (select alldsdivisions.the_geom as the_geom,alldsdivisions.gid as oid , > alldsdivisions.dsd_n as dsd_n from alldsdivisions where alldsdivisions.dsd_n > ='Ambalanthota') AS selectedgs WHERE (Ambalanthota) and (the_geom && > setSRID( 'BOX3D(181659.373889 74242.41425975,303213.047119 > 165407.66918225)'::BOX3D,-1) )' > > Postgresql reports the error as 'ERROR: column "ambalanthota" does not > exist ' > > here , "Ambalanthota" mean a value of coumn dsd_n of table > alldsdivisions. qstring is replaced by the user selected value of the combo box. > > I have tried to get help from postGIS users but still i couldn't solve this > > can anybody help me to figure out a solution , pls? > > thank you in advance, > > Nimalika > from Sri Lanka > From ed at TOPOZONE.COM Fri Mar 2 06:24:20 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 2 Mar 2007 09:24:20 -0500 Subject: Google Maps as Mapserver Layer In-Reply-To: Message-ID: Puneet - Why is Google Earth so many orders of magnitude more popular than, say, NASA WorldWind, (an open source product BTW)? It's not the "collection of extremely smart programmers" that Google purchased with Keyhole - Google Earth is wildly more popular than Keyhole was! It's because of the market visibility Google brought, not the technical advancement. There's nothing at all wrong with that, of course, but let's not confuse mass-market exposure and popularization with technical achievement. In a small way I suppose I could claim to have done the same thing for popularizing USGS topographic maps by making them available to anyone on the Web. It did require a bit of technical innovation, but the popularity, appeal, and usage of an application is usually a very poor indicator of the technical merit or innovation involved. - Ed -----Original Message----- From: P Kishor [mailto:punk.kish at gmail.com] Sent: Friday, March 02, 2007 12:31 AM To: Ed McNierney Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Google Maps as Mapserver Layer On 3/1/07, Ed McNierney wrote: > Puneet - > > The chief difficulty is when cash-strapped state and local governments > eagerly provide data to Google (much as was done with Microsoft > TerraServer) and then think they've "solved the problem" because "look > how everyone can get it in Google Earth!". That can make it hard to > get funding for a state GIS program to, for example, properly set up > and operate a WMS service for access to the same data - the > budget-cutter wonder why they should pay for something they "already have for free". > There's no problem with states providing data to any private firm. > The problem is when the providing organization misunderstands what it > has accomplished. Ed, I totally agree with you. My only concern is that we have to be cautious as to what problem we focus on and try to solve. As you note above, this is not Google's fault. They are doing what any law-abiding business will do to maximize its raison d'etre. If anyone's it is very much the fault of the States. But, let's also look at it from the State's point of view. They are cash strapped and they can't cook up the resources to make the data easily available to everyone. Google comes by and offers them a solution, for free. They sell their soul (figuratively... before anyone pounces on me for saying that ;-), and they reap some positive and some negative. In their position, I probably would do the same unless I could be shown better alternatives. C'est la vie. In my world-view, it is not an "open source" vs. "proprietary" fight. I very much see a coexistence of both. I do believe strongly in open access to intellectual property collected with public funds which, in this case, happens to be orthos. As you mention below, some are beginning to learn, and that is where we come in. We give them reasonable, level-headed solutions that can demonstrate working together with a multitude of technologies and choices while ensuring that everyone gets a fair crack at what belong to everyone. Google Earth and Maps are "cool tools" not because Google made them, but simply because they indeed are cool. I do not know of any mapping site or application that so quickly, easily, and impressively soaked into public consciousness as Google's apps did. And not just with Slashdot-reading geeks, but even with normal ma and pa. Google just happens to have a collection of extremely smart programmers who also created extremely usable tools that popularized mapping. What ESRI, or even Mapquest and Vicinity, etc., couldn't achieve in years, even decades, Google did in such a short time that it truly is breathtaking. Hats off to them. And, the fact is, they could have kept it all to themselves, but no, they opened it. This not only enriched the user experience around their own tools, but also forced other companies and organizations to open up and learn from them. Our own open source tools learned from them... apps like Ka-map and Open Layers probably owe a lot of inspiration to Google apps. Anyway, enough on this. Thanks for listening. > > The USGS learned a few lessons in the TerraServer experience; I expect > other organizations are simply beginning the process of re-learning > some of those lessons all over again. > > - 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 P Kishor > Sent: Thursday, March 01, 2007 5:35 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Google Maps as Mapserver Layer > > this is getting quite OT for MapServer, but what the heck -- > > On 3/1/07, percy wrote: > > I have been told directly by colleagues at both the Pennsylvania and > > Indiana geological surveys about "giving away" the data. Google > > seems to have feelers out for whenever new data are acquired by > > state > agencies... > > > > I agree, it's not sinister! But it would be nice to have access to > > those tiles :-) > > but, you do have access to the data. I just checked the Arkansas site > that Paul provided below, and besides a bunch of innocuous factual > errors, they clearly point to the repository where all that data are > still available for anyone to use. Of course, the linked site > is non-functional, so I guess I am > better off using Google Maps ;-) > > Think of it this way... the US has a long history of offering publicly > collected data to anyone for no or minimal cost, and that anyone has > the freedom to do anything they want to with that data, including > selling it back to the US! I, for one, am very happy of this policy. > > And, so are the mapping companies, for this is what they have made > their empires out of. The nice thing with Google is, they are giving > it back, just doing so on their own terms. Given that they are not > charging anything for it, at least I can live with those terms. If I > don't like those terms, the original data, the one that Google took, > are still there for me to take. > > I see absolutely no problem with this. If there is any, I would love > to be educated. > > > > > > Paul Ramsey wrote: > > > Puneet, > > > > > > Sorry, don't have any particular details, just lots of anecdotal > > > reports of public agencies giving their data to Google in order to > > > achieve the holy grail of seeing "their data in Google Earth". > > > > > > http://dailyheadlines.uark.edu/7507.htm > > > > > > This is not uncommon, and it is not particularly sinister from a > > > "business" point of view, since the givers are receiving what they > > > want (access in a kewl tewl) and the givees are receiving what > > > they want (data they can add to Google Earth for free). > > > > -- > > David Percy > > Geospatial Data Manager > > Geology Department > > Portland State University > > http://gisgeek.pdx.edu > > 503-725-3373 > > > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From johnemyr at YAHOO.CO.UK Fri Mar 2 06:35:36 2007 From: johnemyr at YAHOO.CO.UK (John Roberts) Date: Fri, 2 Mar 2007 14:35:36 -0000 Subject: HTTP Server & MapServer query Message-ID: Dear All Please could somebody help with my query, either some advice on where to go to get the information or the information itself! I have my spatial data loaded in a PostGIS database and I want to install MapServer, GeoServer, Deegree and MapGuide Open Source on the same windows computer which would allow me to compare and contrast the products. I thought that I would therefore install the latest version of Apache HTTP server and run all of the products from the same Apache HTTP server. However, if I install MS4W, I get Apache 2.2.3 in the bundle. What I am unsure about is: 1. Can I install MapServer for windows and run it from my independent installation of Apache? 2. Can I link the installation of PHP, MapScript and the utilities to my independent installation of Apache? 3. Can I avoid having two separate installations of Apache on my machine? Any help would be very much appreciated! Kind Regards John Manchester, UK From ale.pas at TISCALI.IT Fri Mar 2 01:30:20 2007 From: ale.pas at TISCALI.IT (Alessandro Pasotti) Date: Fri, 2 Mar 2007 10:30:20 +0100 Subject: mapserver segfaults on x68_64 intel xeon In-Reply-To: <200703020829.55119.ale.pas@tiscali.it> Message-ID: Il 08:29, venerd? 2 marzo 2007, Alessandro Pasotti ha scritto: > Hello, > > I've compiled latest mapserver and all dependencies (gdal, proj, geos etc.) > from scratches on a 64bit linux machine, build process went fine, but the > resulting executable segfaults (the mapfile is ok, tested on other > machines): Some more information: gdb) backtrace #0 0x00002aaaac693e40 in rawmemchr () from /lib64/tls/libc.so.6 #1 0x00002aaaac6882ba in _IO_str_init_static_internal () from /lib64/tls/libc.so.6 #2 0x00002aaaac67dd95 in vsscanf () from /lib64/tls/libc.so.6 #3 0x00002aaaac679488 in sscanf () from /lib64/tls/libc.so.6 #4 0x00002aaaab4fd7fc in OGRStyleTool::GetRGBFromString () from /usr/local/lib/libgdal.so.1 #5 0x0000000000423ee3 in msOGRLayerGetAutoStyle () #6 0x000000000042a804 in msDrawVectorLayer () #7 0x000000000042a959 in msDrawLayer () #8 0x000000000042b750 in msDrawMap () #9 0x000000000040a40c in main () -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502 From fanenji63 at LIBERO.IT Fri Mar 2 06:36:19 2007 From: fanenji63 at LIBERO.IT (Stefano Parodi) Date: Fri, 2 Mar 2007 08:36:19 -0600 Subject: sld and symbolscale Message-ID: I've found what I suppose is a bug in mapserver 4.10. I have a wms point layer with symbolscale set (along with minsize e maxsize), if I apply an sld the symbol is scaled up as I zoom in, it starts at the size defined in the sld file and goes up, while I think it should not (as scaling symbols is not supported in sld). Anyone has a workaround? Thenk you. Stefano. From umberto.nicoletti at GMAIL.COM Fri Mar 2 06:58:49 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 2 Mar 2007 15:58:49 +0100 Subject: mapserver segfaults on x68_64 intel xeon In-Reply-To: <200703021234.15509.ale.pas@tiscali.it> Message-ID: Recompile mapserver with --enable-debug and then use gdb to discover which string is causing the crash when passed to OGRStyleTool::GetRGBFromString. Umberto On 3/2/07, Alessandro Pasotti wrote: > Il 12:10, venerd? 2 marzo 2007, Umberto Nicoletti ha scritto: > > Can you send the distint values upon which the style info is built? > > > STYLEITEM "AUTO" > > it's a mapinfo tab > > > > I wouldn't be surprised if one of those ha > > d non-ascii characters! > > > Well, this doesn't seems to be the case, it segafults even when there are only > ASCII characters. > > If I comment #STYLEITEM "AUTO" ms doesn't segfault. > > The problem is definitely with STYLEITEM "AUTO", but as I said in my other > post, this works fine on my testing machine. > > Thanks > -- > Alessandro Pasotti > itOpen - "Open Solutions for the Net Age" > w3: www.itopen.it > Linux User# 167502 > From dmorissette at MAPGEARS.COM Fri Mar 2 07:01:33 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 2 Mar 2007 10:01:33 -0500 Subject: MapServer 4.10 with DSO PHP5 -> GD issues In-Reply-To: <45E7DCE0.1000601@geosignal.fr> Message-ID: Guillaume Sueur wrote: > One more thing : using the system gd library works well, but some gd > functions (imagerotate or imagelayereffect for example) requires php to > be build against embedded version of gd. > So, is there a way to build mapserver against php version of gd, or to > find the source of it to be able to build it as the system lib too ? > I believe the source is under php/ext/gd, but I don't know if the PHP version of GD can be built as a standalone lib and used by external programs. You could try and let us know. BTW, GD has been brought back to life recently at http://libgd.org/ "under the umbrella of PHP.net" so they are definitely aware of the PHP GD fork and there's hope that some of these new functions may be added to future releases (or may be in the dev version, 2.1.0 in CVS HEAD?). Daniel -- Daniel Morissette http://www.mapgears.com/ From umberto.nicoletti at GMAIL.COM Fri Mar 2 07:46:33 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 2 Mar 2007 16:46:33 +0100 Subject: mapserver segfaults on x68_64 intel xeon In-Reply-To: <200703021030.20712.ale.pas@tiscali.it> Message-ID: Did you reconfigure with --enable-debug? After that run shp2img in gdb (or xxgdb if it still exists) and put a breakpoint in msOGRLayerGetAutoStyle. Then proceed with the step instruction until it crashes. You should be able to inspect the local variables and see what values were passed to GetRGBFromString. Umberto On 3/2/07, Alessandro Pasotti wrote: > Il 08:29, venerd? 2 marzo 2007, Alessandro Pasotti ha scritto: > > Hello, > > > > I've compiled latest mapserver and all dependencies (gdal, proj, geos etc.) > > from scratches on a 64bit linux machine, build process went fine, but the > > resulting executable segfaults (the mapfile is ok, tested on other > > machines): > > Some more information: > > > gdb) backtrace > #0 0x00002aaaac693e40 in rawmemchr () from /lib64/tls/libc.so.6 > #1 0x00002aaaac6882ba in _IO_str_init_static_internal () > from /lib64/tls/libc.so.6 > #2 0x00002aaaac67dd95 in vsscanf () from /lib64/tls/libc.so.6 > #3 0x00002aaaac679488 in sscanf () from /lib64/tls/libc.so.6 > #4 0x00002aaaab4fd7fc in OGRStyleTool::GetRGBFromString () > from /usr/local/lib/libgdal.so.1 > #5 0x0000000000423ee3 in msOGRLayerGetAutoStyle () > #6 0x000000000042a804 in msDrawVectorLayer () > #7 0x000000000042a959 in msDrawLayer () > #8 0x000000000042b750 in msDrawMap () > #9 0x000000000040a40c in main () > > -- > Alessandro Pasotti > itOpen - "Open Solutions for the Net Age" > w3: www.itopen.it > Linux User# 167502 > From ale.pas at TISCALI.IT Fri Mar 2 08:03:28 2007 From: ale.pas at TISCALI.IT (Alessandro Pasotti) Date: Fri, 2 Mar 2007 17:03:28 +0100 Subject: mapserver segfaults on x68_64 intel xeon In-Reply-To: <75b4b93e0703020658u4eee259al89ee75dfe402cf7a@mail.gmail.com> Message-ID: Il 15:58, venerd? 2 marzo 2007, Umberto Nicoletti ha scritto: > Recompile mapserver with --enable-debug and then use gdb to discover > which string is causing the crash when passed to > OGRStyleTool::GetRGBFromString. Thanks for the hint, I'm trying right now (and took a look at the gdb manual), but I'm not so skilled with gdb, the output makes no sense to me... (gdb) bt #0 0x00002aaaac693e40 in rawmemchr () from /lib64/tls/libc.so.6 #1 0x00002aaaac6882ba in _IO_str_init_static_internal () from /lib64/tls/libc.so.6 #2 0x00002aaaac67dd95 in vsscanf () from /lib64/tls/libc.so.6 #3 0x00002aaaac679488 in sscanf () from /lib64/tls/libc.so.6 #4 0x00002aaaab4fd7fc in OGRStyleTool::GetRGBFromString () from /usr/local/lib/libgdal.so.1 (gdb) info f 4 Stack frame at 0x7fffff96f890: rip = 0x2aaaab4fd7fc in OGRStyleTool::GetRGBFromString(char const*, int&, int&, int&, int&); saved rip 0x424013 called by frame at 0x7fffff96f960, caller of frame at 0x7fffff96f880 Arglist at 0x7fffff96f878, args: Locals at 0x7fffff96f878, Previous frame's sp is 0x7fffff96f890 Saved registers: rbx at 0x7fffff96f778, rbp at 0x7fffff96f660, r12 at 0x7fffff96f780, r13 at 0x7fffff96f788, r14 at 0x7fffff96f790, rip at 0x7fffff96f888 0x7fffff96f878: "?*" (gdb) x/8b 0x7fffff96f878 0x7fffff96f878: "?*" 0x7fffff96f87f: "" 0x7fffff96f880: "\220c" 0x7fffff96f884: "" 0x7fffff96f885: "" 0x7fffff96f886: "" 0x7fffff96f887: "" 0x7fffff96f888: "\023 at B" Thanks PS: I can give you a shell access to the server if you wish -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502 From punk.kish at GMAIL.COM Fri Mar 2 08:41:36 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Fri, 2 Mar 2007 10:41:36 -0600 Subject: Google Maps as Mapserver Layer In-Reply-To: <4BF377919225F449BB097CB76FFE9BC801987EE6@ptolemy.topozone.com> Message-ID: On 3/2/07, Ed McNierney wrote: > Puneet - > > Why is Google Earth so many orders of magnitude more popular than, say, > NASA WorldWind, (an open source product BTW)? It's not the "collection > of extremely smart programmers" that Google purchased with Keyhole - > Google Earth is wildly more popular than Keyhole was! It's because of > the market visibility Google brought, not the technical advancement. As far as I can see, Worldwind works only on Windows. Google Earth works on Windows, Linux, and on my Mac. I have absolutely no interest in Worldwind because I can't use it. Just for that reason GE is a better product even if it may or may not do as much as Worldwind, and just for that reason Google has achieved a higher technical advancement than Worldwind has, NASA notwithstanding. In fact, if I recall correctly, Keyhole did not work on Macs and Linux, and Google made it do so. Kudos to them. But, this conversation has drifted far from where it started. The original issue was whether or not Arkansas giving the data away to Google somehow was making that data unavailable to others. The reality is that it is not. The data are still available at exactly the same level of accessibility as they were before they were shared with Google. That accessibility is not good, but that is the problem of the States. They have to solve that, and we can educate them on how to do that. > > There's nothing at all wrong with that, of course, but let's not confuse > mass-market exposure and popularization with technical achievement. In > a small way I suppose I could claim to have done the same thing for > popularizing USGS topographic maps by making them available to anyone on > the Web. It did require a bit of technical innovation, but the > popularity, appeal, and usage of an application is usually a very poor > indicator of the technical merit or innovation involved. > > - Ed > > -----Original Message----- > From: P Kishor [mailto:punk.kish at gmail.com] > Sent: Friday, March 02, 2007 12:31 AM > To: Ed McNierney > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Google Maps as Mapserver Layer > > On 3/1/07, Ed McNierney wrote: > > Puneet - > > > > The chief difficulty is when cash-strapped state and local governments > > > eagerly provide data to Google (much as was done with Microsoft > > TerraServer) and then think they've "solved the problem" because "look > > > how everyone can get it in Google Earth!". That can make it hard to > > get funding for a state GIS program to, for example, properly set up > > and operate a WMS service for access to the same data - the > > budget-cutter wonder why they should pay for something they "already > have for free". > > There's no problem with states providing data to any private firm. > > The problem is when the providing organization misunderstands what it > > has accomplished. > > Ed, I totally agree with you. My only concern is that we have to be > cautious as to what problem we focus on and try to solve. As you note > above, this is not Google's fault. They are doing what any law-abiding > business will do to maximize its raison d'etre. If anyone's it is very > much the fault of the States. > > But, let's also look at it from the State's point of view. They are cash > strapped and they can't cook up the resources to make the data easily > available to everyone. Google comes by and offers them a solution, for > free. They sell their soul (figuratively... before anyone pounces on me > for saying that ;-), and they reap some positive and some negative. In > their position, I probably would do the same unless I could be shown > better alternatives. C'est la vie. > > In my world-view, it is not an "open source" vs. "proprietary" fight. > I very much see a coexistence of both. I do believe strongly in open > access to intellectual property collected with public funds which, in > this case, happens to be orthos. As you mention below, some are > beginning to learn, and that is where we come in. We give them > reasonable, level-headed solutions that can demonstrate working together > with a multitude of technologies and choices while ensuring that > everyone gets a fair crack at what belong to everyone. > > Google Earth and Maps are "cool tools" not because Google made them, but > simply because they indeed are cool. I do not know of any mapping site > or application that so quickly, easily, and impressively soaked into > public consciousness as Google's apps did. And not just with > Slashdot-reading geeks, but even with normal ma and pa. Google just > happens to have a collection of extremely smart programmers who also > created extremely usable tools that popularized mapping. What ESRI, or > even Mapquest and Vicinity, etc., couldn't achieve in years, even > decades, Google did in such a short time that it truly is breathtaking. > Hats off to them. And, the fact is, they could have kept it all to > themselves, but no, they opened it. This not only enriched the user > experience around their own tools, but also forced other companies and > organizations to open up and learn from them. Our own open source tools > learned from them... apps like Ka-map and Open Layers probably owe a lot > of inspiration to Google apps. > > Anyway, enough on this. Thanks for listening. > > > > > > > The USGS learned a few lessons in the TerraServer experience; I expect > > > other organizations are simply beginning the process of re-learning > > some of those lessons all over again. > > > > - 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 P Kishor > > Sent: Thursday, March 01, 2007 5:35 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Google Maps as Mapserver Layer > > > > this is getting quite OT for MapServer, but what the heck -- > > > > On 3/1/07, percy wrote: > > > I have been told directly by colleagues at both the Pennsylvania and > > > > Indiana geological surveys about "giving away" the data. Google > > > seems to have feelers out for whenever new data are acquired by > > > state > > agencies... > > > > > > I agree, it's not sinister! But it would be nice to have access to > > > those tiles :-) > > > > but, you do have access to the data. I just checked the Arkansas site > > that Paul provided below, and besides a bunch of innocuous factual > > errors, they clearly point to the repository where all that data are > > still available for anyone to use. Of course, the linked site > > is non-functional, so I guess I am > > better off using Google Maps ;-) > > > > Think of it this way... the US has a long history of offering publicly > > > collected data to anyone for no or minimal cost, and that anyone has > > the freedom to do anything they want to with that data, including > > selling it back to the US! I, for one, am very happy of this policy. > > > > And, so are the mapping companies, for this is what they have made > > their empires out of. The nice thing with Google is, they are giving > > it back, just doing so on their own terms. Given that they are not > > charging anything for it, at least I can live with those terms. If I > > don't like those terms, the original data, the one that Google took, > > are still there for me to take. > > > > I see absolutely no problem with this. If there is any, I would love > > to be educated. > > > > > > > > > > Paul Ramsey wrote: > > > > Puneet, > > > > > > > > Sorry, don't have any particular details, just lots of anecdotal > > > > reports of public agencies giving their data to Google in order to > > > > > achieve the holy grail of seeing "their data in Google Earth". > > > > > > > > http://dailyheadlines.uark.edu/7507.htm > > > > > > > > This is not uncommon, and it is not particularly sinister from a > > > > "business" point of view, since the givers are receiving what they > > > > > want (access in a kewl tewl) and the givees are receiving what > > > > they want (data they can add to Google Earth for free). > > > > > > -- > > > David Percy > > > Geospatial Data Manager > > > Geology Department > > > Portland State University > > > http://gisgeek.pdx.edu > > > 503-725-3373 > > > > > > > > > -- > Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, > UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation > http://www.osgeo.org/education/ > --------------------------------------------------------------------- > collaborate, communicate, compete > ===================================================================== > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From scott at TOPOZONE.COM Fri Mar 2 08:55:00 2007 From: scott at TOPOZONE.COM (Scott Schulthess) Date: Fri, 2 Mar 2007 11:55:00 -0500 Subject: Newbie -help please! Message-ID: Hey, could someone please suggest an answer to this question? The maps DO NOT display unless I pass a img.x and img.y, or just click on the map (same thing). And, passing an img.x and img.y of 400 does not do anything either - I guess because mapserver doesn't have to recalculate the img ext based on where you clicked on the map. Something is going wrong! Please help, or give suggestions. -Scott ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Scott Schulthess Sent: Thursday, March 01, 2007 4:39 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Images only display when map clicked on, or img.x/img.y parameters included in query string Hey Ya'll - For some reason, my little mapserver viewer isn't working. I was messing around with the javascript and trying to view different sections of the U.S. when I finally got it to work. But, here's the kicker, the only difference in the query strings is two paramters - img.x and img.y This query string http://strabo11/cgi-bin/mapserv?mode=browse&zoom=1&blocktable=17064&laye r=polyshape&serieslist=a&map=%2Fdata3%2FDMSolutions%2Fglobal-1.0%2Fmap%2 Ftest20.map&layers=DRG60+polyshape&imgext=-65.000000+17.000000+-64.00000 0+18.000000&imgxy=400+400&map_web_template=.%2Ftest-viewer-template.html &map_web_imagepath=%2Fusr%2Flocal%2Fapache2%2Fhtdocs%2Fms_tmp%2F&map_web _imageurl=%2Fms_tmp%2F&mapsize=800+800&theindex=%2Fdata3%2FDRGPalFixClip ped250%2F17064%2Fa17064.shp&block=17064&selectdex=%5Bselectdex%5D&select edlayer=%5Bselectedlayer%5D&layerindex=1&gpxid=%5Bgpxid Doesn't work When I add in img.x and img.y http://strabo11/cgi-bin/mapserv?img.x=311&img.y=229&mode=browse&zoom=1&b locktable=17064&layer=polyshape&serieslist=a&map=%2Fdata3%2FDMSolutions% 2Fglobal-1.0%2Fmap%2Ftest20.map&layers=DRG60+polyshape&imgext=-65.000000 +17.000000+-64.000000+18.000000&imgxy=400+400&map_web_template=.%2Ftest- viewer-template.html&map_web_imagepath=%2Fusr%2Flocal%2Fapache2%2Fhtdocs %2Fms_tmp%2F&map_web_imageurl=%2Fms_tmp%2F&mapsize=800+800&theindex=%2Fd ata3%2FDRGPalFixClipped250%2F17064%2Fa17064.shp&block=17064&selectdex=%5 Bselectdex%5D&selectedlayer=%5Bselectedlayer%5D&layerindex=1&gpxid=%5Bgp xid It works fine. I did a view source and saved the templates, the img ext changes, but changing it without adding in img.x and img.y doesn't make the maps appear, and it's neglibible difference anyways. Also, the SRC of the map images changes to some other temp file generated by mapserver. Help? Thanks! -Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: From ale.pas at TISCALI.IT Fri Mar 2 09:09:37 2007 From: ale.pas at TISCALI.IT (Alessandro Pasotti) Date: Fri, 2 Mar 2007 18:09:37 +0100 Subject: mapserver segfaults on x68_64 intel xeon In-Reply-To: <75b4b93e0703020746r703aa4b7o86112be8abf5fca0@mail.gmail.com> Message-ID: Il 16:46, venerd? 2 marzo 2007, Umberto Nicoletti ha scritto: > Did you reconfigure with --enable-debug? > > After that run shp2img in gdb (or xxgdb if it still exists) and put a > breakpoint in msOGRLayerGetAutoStyle. Then proceed with the step > instruction until it crashes. You should be able to inspect the local > variables and see what values were passed to GetRGBFromString. Ok, I've found the problem: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1950 I applied this patch and now it works, any chance it will be fixed in future releases? linux:~/webgis # diff mapogr.cpp mapserver-4.10.1/mapogr.cpp 2318a2319,2326 > // ABP: patch > const char *pszColor; > pszColor = poBrushStyle->BackColor(bIsNull); > if (!bIsNull && poBrushStyle->GetRGBFromString(pszColor,r,g,b,t)) > { > MS_INIT_COLOR(c->styles[0].backgroundcolor, r, g, b); > } > /* 2324a2333 > */ Still remains a mistery to me why it works without patches on my local machine. Thanks Umberto for pointing me in the right direction. -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502 From funkbucket at GMAIL.COM Fri Mar 2 09:57:05 2007 From: funkbucket at GMAIL.COM (Ben Tuttle) Date: Fri, 2 Mar 2007 10:57:05 -0700 Subject: raster layer cannot be drawn In-Reply-To: <20070302140336.276370@gmx.net> Message-ID: Sounds like a permissions problem to me. What OS are you running? I run under Linux and have gotten this error when I forget to make a raster image readable by the apache user. On 3/2/07, lauberger at gmx.de wrote: > Hi list, > > My mapserver does not display any raster layers, although, in my opinion, it is configured correctly, or let`s say in a way, that should draw raster layers: > > MapServer version 4.10.0 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 SUPPORTS=GEOS > INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > GDAL supports the following formats: > > gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem > envisat elas fit vrt usgsdem l1b nitf bmp pcidsk airsar rs2 ilwis rmf rik > leveller sgi idrisi wcs bsb gif jpeg png pcraster. > > Yet every time I want it to display a raster layer (GeoTIFF, jpg, ...) it says: > > msDrawMap(): Image handling error. Failed to draw layer named 'landsat7.tif'. > msDrawRaster(): Unable to access file. (landsat7.tif). > > What could be wrong? > Best wishes and a nice weekend, > > Rolf > > > -- > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > > -- > Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten > Browser-Versionen downloaden: http://www.gmx.net/de/go/browser > From aparker1969 at YAHOO.COM Fri Mar 2 11:32:14 2007 From: aparker1969 at YAHOO.COM (Andrew Parker) Date: Fri, 2 Mar 2007 13:32:14 -0600 Subject: wms.jpl.nasa.gov renders on LINUX but not in the MS4W install Message-ID: I am trying to add the modis and global_mosaic layers from http://wms.jpl.nasa.gov to the map in my MS4W install (on Windows XP and Windows Server2003). WMS layers render from terraservice.net with no problems. The code in the mapfile works with the LINUX test box. Does anyone have a reason or solution? Be easy on me as I am new to Mapserver. Below is my mapfile code. Thanks in advances for any help. Andrew. # # Start of map file # # Sample map file for a chameleon app. # NAME DEMO STATUS ON SIZE 400 300 SYMBOLSET ../etc/symbols.sym EXTENT -109.1 31.26 -102.89 37.09 UNITS DD PROJECTION "init=epsg:4326" END SHAPEPATH "../data" IMAGECOLOR 25 25 112 FONTSET ../etc/fonts.txt TRANSPARENT FALSE # IMAGETYPE - set to PNG24 in /congif/chameleon.xml # # Start of web interface definition # WEB #MINSCALE 2000000 #MAXSCALE 50000000 # # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root # of the drive where the .MAP file resides. # IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" # LOG "/tmp/gmap.log" METADATA END END # # Start of reference map # REFERENCE IMAGE images/ref_msone.jpg EXTENT -126.12 23.27 -66.14 50.15 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 SIZE 120 90 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 150 5 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS Miles INTERVALS 5 STATUS ON END QUERYMAP STYLE HILITE COLOR 255 0 0 END ##################################### # Symbol for drawing fat lines # SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol for drawing dashed lines # SYMBOL NAME "DashedLine" TYPE ELLIPSE POINTS 1 1 END STYLE 10 10 END END ##################################### # Symbol for drawing spots # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ########################### # Country layer # LAYER NAME "Countries" STATUS on TYPE polygon DATA "countries" UNITS dd PROJECTION "init=epsg:4326" END CLASS # A template defined at the class level is used to # display the results for each reponse to a query. If a # query results in N hits, then the template will be used # N times. To be queriable a layer must specify a CLASS # level template. # TEMPLATE "/ms4w/apps/msone/htdocs/msone_countries_query.html" NAME "USA" EXPRESSION ('[COUNTRY]' eq 'US') STYLE COLOR 238 232 170 END END # end class CLASS # A template defined at the class level is used to # display the results for each reponse to a query. If a # query results in N hits, then the template will be used # N times. To be queriable a layer must specify a CLASS # level template. # TEMPLATE "/ms4w/apps/msone/htdocs/msone_countries_query.html" NAME "OTHER" EXPRESSION ('[COUNTRY]' ne 'US') STYLE COLOR 205 190 112 END END # end class END # end layer #################################### # Line layer for Country boundaries # LAYER UNITS dd PROJECTION "init=epsg:4326" END NAME "Boundaries" STATUS on TYPE line DATA "countries" CLASS STYLE COLOR 0 0 0 END END # end class END # end layer ################################ # USGS_topo # LAYER NAME "Terraserver_DRG" STATUS off TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/OgcMap.ashx?"; METADATA "wms_srs" "EPSG:4326" "wms_title" "Digital Raster Graphic" "wms_name" "DRG" "wms_server_version" "1.1.1" "wms_format" "image/jpeg" "wms_layers" "drg" "wms_group_title" "background" END PROJECTION "init=epsg:4326" END END # ******************** Orthophoto ******************** LAYER NAME "TerraServer_Orthophoto" STATUS off TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://terraservice.net/OgcMap.ashx?"; METADATA "wms_srs" "EPSG:4326" "wms_title" "Orthophoto" "wms_name" "DOQ" "wms_server_version" "1.1.1" "wms_format" "image/jpeg" "wms_layers" "drg" "wms_group_title" "background" END PROJECTION "init=epsg:4326" END END # ******************** Nexrad Radar ******************** LAYER NAME Nexrad_RADAR STATUS OFF GROUP "Background" TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?"; PROJECTION "init=epsg:4326" END METADATA "wms_name" "nexrad-n0r-m45m" "wms_server_version" "1.1.1" "wms_srs" "EPSG:4326" "wms_format" "image/jpeg" "wms_style" "" "wms_title" "NEXRAD" END END # ******************** MODIS derived blue marble image ******************** LAYER NAME Blue_Marble STATUS on PROJECTION "init=epsg:4326" END TYPE RASTER OFFSITE 0 0 0 CONNECTIONTYPE WMS CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?"; METADATA "wms_name" "modis,global_mosaic" "wms_server_version" "1.1.1" "wms_srs" "EPSG:4326" "wms_format" "image/jpeg" "wms_styles" "" "wms_title" "BlueMarble" END END ##################################### # State boundaries layer - polygon (for shading) # LAYER NAME "states_poly" DATA "statesp020" UNITS dd PROJECTION "init=epsg:4326" END STATUS off TYPE polygon LABELCACHE on LABELITEM "STATE" CLASS STYLE # COLOR 238 232 170 END END END ##################################### # State boundaries layer - line (for fat boundary) # LAYER NAME "states" DATA "statesp020" UNITS dd PROJECTION "init=epsg:4326" END STATUS off TYPE line LABELCACHE on LABELITEM "STATE" CLASS NAME "State Line" STYLE SYMBOL "BigLine" SIZE 2 COLOR 0 0 0 END END END ##################################### # Road layer - interstates only at large scale # LAYER NAME "interstate1" GROUP "roads" DATA "roadtrl020" STATUS off TYPE line UNITS dd PROJECTION "init=epsg:4326" END LABELCACHE on LABELITEM "NAME" CLASSITEM "FEATURE" MINSCALE 7500001 CLASS NAME "Interstate Hwy" EXPRESSION /Limited Access*/ STYLE SYMBOL "BigLine" SIZE 1 COLOR 0 0 0 END LABEL TYPE truetype FONT "arial" SIZE 8 OUTLINECOLOR 255 255 255 COLOR 0 0 0 MINDISTANCE 200 POSITION auto ANGLE auto MINFEATURESIZE 50 END END END ############################### # ROC Sites # LAYER NAME "ROCsites" STATUS off UNITS dd PROJECTION "init=epsg:4326" END TYPE point DATA "ROCsites" MAXSCALE 1200000 LABELITEM "SITE_NAME" CLASS NAME "ROC Sites" STYLE SYMBOL "Circle" SIZE 9 COLOR 255 127 0 #coral END LABEL TYPE truetype # use truetype font FONT "arialbd" # use arial bold SIZE 7 # use 8 point size COLOR 255 127 0 # color text coral BACKGROUNDCOLOR 255 255 255 # render text on white bg MINDISTANCE 50 # labels > 50 pixels apart POSITION auto # center labels below feature ANTIALIAS true # antialias the text END # end label END # end class END # end layer ############################### # ROC Monitoring Wells # LAYER NAME "ROCmw" STATUS off UNITS dd TYPE point DATA "ROCmw" LABELITEM "Well_Name" # labels use value in column "NAME" LABELCACHE on LABELMAXSCALE 1200000 MAXSCALE 1200000 CLASS NAME "ROC MWs" STYLE SYMBOL "Circle" SIZE 9 COLOR 0 0 205 #Medium Blue END LABEL TYPE truetype # use truetype font FONT "arialbd" # use arial bold SIZE 7 # use 8 point size COLOR 0 0 205 # color text coral BACKGROUNDCOLOR 255 255 255 # render text on white bg MINDISTANCE 50 # labels > 50 pixels apart POSITION auto # center labels below feature ANTIALIAS true # antialias the text END # end label END # end class END # end layer END # Map File From jmckenna at DMSOLUTIONS.CA Fri Mar 2 11:49:39 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri, 2 Mar 2007 14:49:39 -0500 Subject: wms.jpl.nasa.gov renders on LINUX but not in the MS4W install In-Reply-To: Message-ID: I responded to this on the MS4W list (http://lists.maptools.org/pipermail/ms4w-users/2007-March/000741.html) jeff Andrew Parker wrote: > I am trying to add the modis and global_mosaic layers from > http://wms.jpl.nasa.gov to the map in my MS4W install (on Windows XP and > Windows Server2003). WMS layers render from terraservice.net with no > problems. The code in the mapfile works with the LINUX test box. > > Does anyone have a reason or solution? Be easy on me as I am new to > Mapserver. Below is my mapfile code. > > Thanks in advances for any help. > > Andrew. > > > # > # Start of map file > # > # Sample map file for a chameleon app. > # > NAME DEMO > STATUS ON > SIZE 400 300 > SYMBOLSET ../etc/symbols.sym > EXTENT -109.1 31.26 -102.89 37.09 > UNITS DD > PROJECTION > "init=epsg:4326" > END > SHAPEPATH "../data" > IMAGECOLOR 25 25 112 > FONTSET ../etc/fonts.txt > TRANSPARENT FALSE > # IMAGETYPE - set to PNG24 in /congif/chameleon.xml > > # > # Start of web interface definition > # > WEB > #MINSCALE 2000000 > #MAXSCALE 50000000 > # > # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root > # of the drive where the .MAP file resides. > # > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > # LOG "/tmp/gmap.log" > METADATA > END > END > > # > # Start of reference map > # > REFERENCE > IMAGE images/ref_msone.jpg > EXTENT -126.12 23.27 -66.14 50.15 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > SIZE 120 90 > END > > # > # Start of legend > # > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END > SIZE 150 5 > COLOR 255 255 255 > BACKGROUNDCOLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS Miles > INTERVALS 5 > STATUS ON > END > > > QUERYMAP > STYLE HILITE > COLOR 255 0 0 > END > > ##################################### > # Symbol for drawing fat lines > # > SYMBOL > NAME "BigLine" > TYPE ELLIPSE > POINTS 1 1 END > END > > ##################################### > # Symbol for drawing dashed lines > # > SYMBOL > NAME "DashedLine" > TYPE ELLIPSE > POINTS 1 1 END > STYLE 10 10 END > END > > ##################################### > # Symbol for drawing spots > # > SYMBOL > NAME "Circle" > FILLED true > TYPE ellipse > POINTS 1 1 END > END > > > ########################### > # Country layer > # > LAYER > NAME "Countries" > STATUS on > TYPE polygon > DATA "countries" > UNITS dd > PROJECTION > "init=epsg:4326" > END > > CLASS > # A template defined at the class level is used to > # display the results for each reponse to a query. If a > # query results in N hits, then the template will be used > # N times. To be queriable a layer must specify a CLASS > # level template. > # > TEMPLATE "/ms4w/apps/msone/htdocs/msone_countries_query.html" > NAME "USA" > EXPRESSION ('[COUNTRY]' eq 'US') > STYLE > COLOR 238 232 170 > END > END # end class > > CLASS > # A template defined at the class level is used to > # display the results for each reponse to a query. If a > # query results in N hits, then the template will be used > # N times. To be queriable a layer must specify a CLASS > # level template. > # > TEMPLATE "/ms4w/apps/msone/htdocs/msone_countries_query.html" > NAME "OTHER" > EXPRESSION ('[COUNTRY]' ne 'US') > STYLE > COLOR 205 190 112 > END > END # end class > > END # end layer > > #################################### > # Line layer for Country boundaries > # > LAYER > UNITS dd > PROJECTION > "init=epsg:4326" > END > NAME "Boundaries" > STATUS on > TYPE line > DATA "countries" > CLASS > STYLE > COLOR 0 0 0 > END > END # end class > END # end layer > > ################################ > # USGS_topo > # > > LAYER > NAME "Terraserver_DRG" > STATUS off > TYPE RASTER > CONNECTIONTYPE WMS > CONNECTION "http://terraservice.net/OgcMap.ashx?"; > METADATA > "wms_srs" "EPSG:4326" > "wms_title" "Digital Raster Graphic" > "wms_name" "DRG" > "wms_server_version" "1.1.1" > "wms_format" "image/jpeg" > "wms_layers" "drg" > "wms_group_title" "background" > END > PROJECTION > "init=epsg:4326" > END > END > > # ******************** Orthophoto ******************** > LAYER > NAME "TerraServer_Orthophoto" > STATUS off > TYPE RASTER > CONNECTIONTYPE WMS > CONNECTION "http://terraservice.net/OgcMap.ashx?"; > METADATA > "wms_srs" "EPSG:4326" > "wms_title" "Orthophoto" > "wms_name" "DOQ" > "wms_server_version" "1.1.1" > "wms_format" "image/jpeg" > "wms_layers" "drg" > "wms_group_title" "background" > END > PROJECTION > "init=epsg:4326" > END > END > > # ******************** Nexrad Radar ******************** > LAYER > NAME Nexrad_RADAR > STATUS OFF > GROUP "Background" > TYPE RASTER > CONNECTIONTYPE WMS > CONNECTION "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?"; > PROJECTION > "init=epsg:4326" > END > METADATA > "wms_name" "nexrad-n0r-m45m" > "wms_server_version" "1.1.1" > "wms_srs" "EPSG:4326" > "wms_format" "image/jpeg" > "wms_style" "" > "wms_title" "NEXRAD" > END > END > > # ******************** MODIS derived blue marble image ******************** > LAYER > NAME Blue_Marble > STATUS on > PROJECTION > "init=epsg:4326" > END > TYPE RASTER > OFFSITE 0 0 0 > CONNECTIONTYPE WMS > CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?"; > METADATA > "wms_name" "modis,global_mosaic" > "wms_server_version" "1.1.1" > "wms_srs" "EPSG:4326" > "wms_format" "image/jpeg" > "wms_styles" "" > "wms_title" "BlueMarble" > END > END > > ##################################### > # State boundaries layer - polygon (for shading) > # > LAYER > NAME "states_poly" > DATA "statesp020" > UNITS dd > PROJECTION > "init=epsg:4326" > END > STATUS off > TYPE polygon > LABELCACHE on > LABELITEM "STATE" > CLASS > STYLE > # COLOR 238 232 170 > END > END > END > > > ##################################### > # State boundaries layer - line (for fat boundary) > # > LAYER > NAME "states" > DATA "statesp020" > UNITS dd > PROJECTION > "init=epsg:4326" > END > STATUS off > TYPE line > LABELCACHE on > LABELITEM "STATE" > CLASS > NAME "State Line" > STYLE > SYMBOL "BigLine" > SIZE 2 > COLOR 0 0 0 > END > END > END > > ##################################### > # Road layer - interstates only at large scale > # > LAYER > NAME "interstate1" > GROUP "roads" > DATA "roadtrl020" > STATUS off > TYPE line > UNITS dd > PROJECTION > "init=epsg:4326" > END > LABELCACHE on > LABELITEM "NAME" > CLASSITEM "FEATURE" > MINSCALE 7500001 > CLASS > NAME "Interstate Hwy" > EXPRESSION /Limited Access*/ > STYLE > SYMBOL "BigLine" > SIZE 1 > COLOR 0 0 0 > END > LABEL > TYPE truetype > FONT "arial" > SIZE 8 > OUTLINECOLOR 255 255 255 > COLOR 0 0 0 > MINDISTANCE 200 > POSITION auto > ANGLE auto > MINFEATURESIZE 50 > END > END > END > > > ############################### > # ROC Sites > # > LAYER > NAME "ROCsites" > STATUS off > UNITS dd > PROJECTION > "init=epsg:4326" > END > TYPE point > DATA "ROCsites" > MAXSCALE 1200000 > LABELITEM "SITE_NAME" > CLASS > NAME "ROC Sites" > STYLE > SYMBOL "Circle" > SIZE 9 > COLOR 255 127 0 #coral > END > LABEL > TYPE truetype # use truetype font > FONT "arialbd" # use arial bold > SIZE 7 # use 8 point size > COLOR 255 127 0 # color text coral > BACKGROUNDCOLOR 255 255 255 # render text on white bg > MINDISTANCE 50 # labels > 50 pixels apart > POSITION auto # center labels below feature > ANTIALIAS true # antialias the text > END # end label > END # end class > > END # end layer > > ############################### > # ROC Monitoring Wells > # > LAYER > NAME "ROCmw" > STATUS off > UNITS dd > TYPE point > DATA "ROCmw" > LABELITEM "Well_Name" # labels use value in column "NAME" > LABELCACHE on > LABELMAXSCALE 1200000 > MAXSCALE 1200000 > > CLASS > NAME "ROC MWs" > STYLE > SYMBOL "Circle" > SIZE 9 > COLOR 0 0 205 #Medium Blue > END > > LABEL > TYPE truetype # use truetype font > FONT "arialbd" # use arial bold > SIZE 7 # use 8 point size > COLOR 0 0 205 # color text coral > BACKGROUNDCOLOR 255 255 255 # render text on white bg > MINDISTANCE 50 # labels > 50 pixels apart > POSITION auto # center labels below feature > ANTIALIAS true # antialias the text > END # end label > END # end class > END # end layer > > END # Map File > From atorresma at UC.CL Fri Mar 2 12:16:34 2007 From: atorresma at UC.CL (Adriano Torres) Date: Fri, 2 Mar 2007 17:16:34 -0300 Subject: Problems with Mapserver4.10.1--GD--Fedora Core 6 (espanol - english) Message-ID: (first english, despues espanol) Hi. I couldn't install Mapserver 4.10.1 in fedora6. When I tray to run "./configure" the system display the following error: (...) configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... yes using libXpm from system libs. configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no using libiconv from system libs. libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.16 or higher... checking for gdFontCacheSetup in -lgd... no configure: checking whether GD needs libiconv... checking for gdFontCacheSetup in -lgd... no configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure GD 2.0.16 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). I don't understand because Fedora has installed GD (I have freetype, libpng, libjpeg and libiconv in /usr/local/ + /lib/ + /include/, also I Installed GD-2.0.34 and the latest versions of Gdal, Proj4, Postgrsql, Postgis, additional librarys (php-gd, php-devel, gd-devel) but nothing work! What Can I do? Thanks Adriano ---------- Hola a los de habla hispana! He estado tratando de instalar Mapserver 4.10.1 y no corre!. Se supone que tengo todos los prerequisitos instalados en Fedora 6, baje las ultimas versiones de Gdal, Proj 4 e incluso el GD-2.0.34 y librerias adicionales (php-gd, gd-devel y en teor?a tengo todo ok (incluyendo freetype, libpng, libjpeg y libiconv). Sin embargo "/.configure" me arroja el siguiente error: (...) configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure GD 2.0.16 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). Que puedo hacer? Gracias. Adriano From wef1 at CEC.WUSTL.EDU Fri Mar 2 12:42:01 2007 From: wef1 at CEC.WUSTL.EDU (edfialk) Date: Fri, 2 Mar 2007 12:42:01 -0800 Subject: ASCII input to WCS Message-ID: Hi all, I've tried searching but can't find quite what I'm looking for. I have an ASCII file, which I converted into a CSV and I'm trying to serve it through a WCS. I was able to serve it through a WMS just for testing and it all worked well, but in my experience MapServer's WCS is far more complicated. I'm interested mainly in serving the file back out through a CSV, or ASCII even, so I could probably write an easy php file to do this but we're interested in using MapServer. So, here's a couple questions: 1. What does the CSV OUTPUTFORMAT look like? 2. What kind of metadata do I need for this? There's no real resolution or bandcount, it's just a csv. Any and all suggestions or thoughts would be greatly appreciated. Thanks! -Ed -- View this message in context: http://www.nabble.com/ASCII-input-to-WCS-tf3335784.html#a9276984 Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at DNR.STATE.MN.US Fri Mar 2 12:56:47 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 2 Mar 2007 14:56:47 -0600 Subject: Eclipse mapfile editor In-Reply-To: Message-ID: Chris: That never got passed the idea stage, not with me anyway and I'm unaware of any efforts in that area. uDig is Eclipse based but I don't believe it has any MapServer IDE aspirations. I still think it's a cool idea... Steve >>> On 3/2/2007 at 5:04 AM, in message , Christian Sengstock wrote: > Hi list, > anyone knows a about a mapserver eclipse plugin ? > > I've found some postings with ideas about it, but not a real project. > > g, > Chris From aparker1969 at YAHOO.COM Fri Mar 2 13:26:42 2007 From: aparker1969 at YAHOO.COM (Andrew Parker) Date: Fri, 2 Mar 2007 15:26:42 -0600 Subject: wms.jpl.nasa.gov renders on LINUX but not in the MS4W install Message-ID: Thanks Jeff. Seperating the layers and correcting the "style" name worked. I also found a similiar problem with the daily terra composite. No sytle was defined. Therefore, I added the style metadata to the terra composite layer as "wms_style" "default" and it rendered. Whew, what a relief. FYI, the only way I was able to access the ms4w archive was to manually replace "Febraury" with "March" in the url: http://lists.maptools.org/pipermail/ms4w-users/2007-February/subject.html Thank you again for the feedback. Andrew From gizagui at FI.UBA.AR Fri Mar 2 13:43:41 2007 From: gizagui at FI.UBA.AR (Gaston Izaguirre) Date: Fri, 2 Mar 2007 18:43:41 -0300 Subject: automatic Vehicle tracking application (AVL) Message-ID: Hi list, I have made a similar post to other lists regarding mapserver. I have the following situation, I want to implement an online automatic vehicle tracking application (AVL). I have vector maps and real time GPS data in a database. I need to monitor about 300 vehicles and have the possibility to query some information about each one, e.g. velocity, direction, and also about the map, e.g. the name of the street where the vehicle is circulating, etc. In your experience, which is the most suitable tool for implementing this stuff? Somebody has developed a similar application? Do You know some online application that makes similar tasks to take some ideas from it? Thank you in advance, Gaston. From bfraser at GEOANALYTIC.COM Fri Mar 2 14:12:09 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 2 Mar 2007 15:12:09 -0700 Subject: automatic Vehicle tracking application (AVL) Message-ID: > I have the following situation, I want to implement an online automatic > vehicle tracking application (AVL). I have vector maps and real time GPS > data in a database. I need to monitor about 300 vehicles and have the > possibility to query some information about each one, e.g. velocity, > direction, and also about the map, e.g. the name of the street where the > vehicle is circulating, etc. > > In your experience, which is the most suitable tool for implementing this > stuff? Well, I don't know if it's the most suitable, but we had good success with using PostGIS->Mapserver->HTML/JavaScript+Browser > Somebody has developed a similar application? We've implemented a system to track ships in the Caspian Sea and overlay daily MODIS imagery for ice monitoring. And we've done a few sites to monitor land-based vehicles in remote locations... > Do You know some online application that makes similar tasks to take some > ideas from it? We don't have a site exposed for public viewing, but you may find some others via Google. A couple of non-mapserver implementations: https://star-traxx.com/ and http://www.polestarglobal.com/index.html Brent Fraser GeoAnalytic Inc. Calgary, Alberta From gregor at HOSTGIS.COM Fri Mar 2 14:58:34 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 2 Mar 2007 15:58:34 -0700 Subject: Problems with Mapserver4.10.1--GD--Fedora Core 6 (espanol - english) In-Reply-To: <27185.YXRvcnJlc21h.1172866594.atorresma@correo.uc.cl> Message-ID: I've had the worst time with Fedora, in that it's often missing header files. In the case of GD, it's missing the gd.h and other header files. Sigh. What I've resorted to in the past is to download the GD source for the GD version I have (rpm -qa | grep gd) and then manually install gd.h into /usr/include or wherever. From szekerest at GMAIL.COM Fri Mar 2 15:52:40 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Sat, 3 Mar 2007 00:52:40 +0100 Subject: mapserver segfaults on x68_64 intel xeon In-Reply-To: <200703021809.37366.ale.pas@tiscali.it> Message-ID: I have already fixed this problem for the CVS HEAD. "Revision 1.103 2006/10/22 17:48:24 tamas Changed OGRLayerGetAutoStyle not to pass NULL pointer to GetRGBFromString causing access violation." However it have not been backported to 4.10 yet. Tamas 2007/3/2, Alessandro Pasotti : > Il 16:46, venerd? 2 marzo 2007, Umberto Nicoletti ha scritto: > > Did you reconfigure with --enable-debug? > > > > After that run shp2img in gdb (or xxgdb if it still exists) and put a > > breakpoint in msOGRLayerGetAutoStyle. Then proceed with the step > > instruction until it crashes. You should be able to inspect the local > > variables and see what values were passed to GetRGBFromString. > > > Ok, I've found the problem: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1950 > > I applied this patch and now it works, any chance it will be fixed in future > releases? > > linux:~/webgis # diff mapogr.cpp mapserver-4.10.1/mapogr.cpp > 2318a2319,2326 > > // ABP: patch > > const char *pszColor; > > pszColor = poBrushStyle->BackColor(bIsNull); > > if (!bIsNull && > poBrushStyle->GetRGBFromString(pszColor,r,g,b,t)) > > { > > MS_INIT_COLOR(c->styles[0].backgroundcolor, r, g, b); > > } > > /* > 2324a2333 > > */ > > Still remains a mistery to me why it works without patches on my local > machine. > > Thanks Umberto for pointing me in the right direction. > > -- > Alessandro Pasotti > itOpen - "Open Solutions for the Net Age" > w3: www.itopen.it > Linux User# 167502 > From percyd at PDX.EDU Fri Mar 2 16:09:41 2007 From: percyd at PDX.EDU (percy) Date: Fri, 2 Mar 2007 16:09:41 -0800 Subject: automatic Vehicle tracking application (AVL) In-Reply-To: <029301c75d13$d8c0bc20$0201a8c0@Vitsuba> Message-ID: I saw something like this in ka-map quite a while ago, it was using a boat race or something like that. I believe using PG's KaXMLOverlay might work for you. You might try posts on OpenLayers and Kamap lists for help with this... Gaston Izaguirre wrote: > Hi list, > > I have made a similar post to other lists regarding mapserver. > > I have the following situation, I want to implement an online automatic > vehicle tracking application (AVL). I have vector maps and real time GPS > data in a database. I need to monitor about 300 vehicles and have the > possibility to query some information about each one, e.g. velocity, > direction, and also about the map, e.g. the name of the street where the > vehicle is circulating, etc. > > In your experience, which is the most suitable tool for implementing > this stuff? > Somebody has developed a similar application? > Do You know some online application that makes similar tasks to take > some ideas from it? > > Thank you in advance, > > Gaston. > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From frezzz_54 at YAHOO.COM Fri Mar 2 18:47:17 2007 From: frezzz_54 at YAHOO.COM (theresia freska) Date: Fri, 2 Mar 2007 18:47:17 -0800 Subject: AddPoints won't work Message-ID: Hi Frank, Yes, i did print_r($_POST) and it holds the right value. I tried if ($_POST['mode'] == "nquery") { echo "Test mode"; } and it works. So, i guess it's not the $_POST that went wrong. But when i replace the echo statement with the AddPoints(), it just won't work. I also did print_r the array that is supposed to be the input for the function. And it holds the right values as well. Someone on the irc told me about the global $_POST, but it's no use. I'm totally lost :D --------------------------------- No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mh at SVAJ.DK Fri Mar 2 22:08:24 2007 From: mh at SVAJ.DK (Martin Hoegh) Date: Sat, 3 Mar 2007 07:08:24 +0100 Subject: MAPSERVER-USERS Digest - 1 Mar 2007 to 2 Mar 2007 (#2007-61) Message-ID: Jeg er p? for?ldreorlov indtil d. 14. maj. Mine kollegaer kan traeffes paa tlf. 98129300. I am on parental leave until May 14. If you have any matter of urgency please do not hesitate to call my collegues on +45 98129300 From aparker1969 at YAHOO.COM Sat Mar 3 07:46:29 2007 From: aparker1969 at YAHOO.COM (Andrew Parker) Date: Sat, 3 Mar 2007 09:46:29 -0600 Subject: How do I not render the white background when displing NEXRAD from a WMS Message-ID: Ok. I give up. How do I NOT render the white background? I just want the base reflectivity to show. I am accessing a base reflectivity layer from a WMS located at: "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?" My test site is available for viewing at: "http://mapserver.rthicksconsult.com" There are two test sites. 1) the form button "Click Here..."; my first map. 2) Link: Test1; my first Chamelon map. Both have the NexRad Layer as shown below in the partial mapfile. Thanks in advance. Andrew. # # Start of map file # # Sample map file for a chameleon app. # NAME DEMO STATUS ON SIZE 400 300 SYMBOLSET ../etc/symbols.sym EXTENT -109.1 31.26 -102.89 37.09 UNITS DD PROJECTION "init=epsg:4326" END SHAPEPATH "../data" IMAGECOLOR 25 25 112 FONTSET ../etc/fonts.txt TRANSPARENT TRUE # IMAGETYPE - set to PNG24 in /congif/chameleon.xml ... ... ... # ******************** NexRad******************** LAYER NAME "Nexrad" STATUS ON TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?" PROJECTION "init=epsg:4326" END METADATA "wms_name" "nexrad-n0r" "wms_server_version" "1.1.1" "wms_srs" "EPSG:4326" "wms_format" "image/jpeg" "wms_title" "NEXRAD BASE REFLECT" END END END # end of mapfile From aparker1969 at YAHOO.COM Sat Mar 3 07:52:14 2007 From: aparker1969 at YAHOO.COM (Andrew Parker) Date: Sat, 3 Mar 2007 09:52:14 -0600 Subject: How do I not render the white background when displing NEXRAD from a WMS Message-ID: The link to my mapserver added /" at the end. Try http://mapserver.rthicksconsult.com Andrew. From aparker1969 at YAHOO.COM Sat Mar 3 08:27:21 2007 From: aparker1969 at YAHOO.COM (Andrew Parker) Date: Sat, 3 Mar 2007 08:27:21 -0800 Subject: wms.jpl.nasa.gov renders on LINUX but not in the MS4W install Message-ID: Bart: the Windows machine is running Mapserver 4.10.0 The Linux machine is running Mapserver 4.8.3 Anyway, Jeff posted a response that worked. I changed 'styles' to 'style'. Then I seperated the two layers. Thanks for the feedback. Andrew ----- Original Message ---- From: Bart van den Eijnden (OSGIS) To: Andrew Parker Cc: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Friday, March 2, 2007 1:01:14 PM Subject: Re: [UMN_MAPSERVER-USERS] wms.jpl.nasa.gov renders on LINUX but not in the MS4W install Do the Linux and Windows environments have the same version of Mapscript/Mapserver? Or is there a version difference? It could be related to this: http://lists.umn.edu/cgi-bin/wa?A2=ind0610&L=MAPSERVER-USERS&P=R32308 so maybe you can try: CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?styles=&";; Best regards, Bart Andrew Parker schreef: > I am trying to add the modis and global_mosaic layers from > http://wms.jpl.nasa.gov to the map in my MS4W install (on Windows XP and > Windows Server2003). WMS layers render from terraservice.net with no > problems. The code in the mapfile works with the LINUX test box. > > Does anyone have a reason or solution? Be easy on me as I am new to > Mapserver. Below is my mapfile code. > > Thanks in advances for any help. > > Andrew. > > > # > # Start of map file > # > # Sample map file for a chameleon app. > # > NAME DEMO > STATUS ON > SIZE 400 300 > SYMBOLSET ../etc/symbols.sym > EXTENT -109.1 31.26 -102.89 37.09 > UNITS DD > PROJECTION > "init=epsg:4326" > END > SHAPEPATH "../data" > IMAGECOLOR 25 25 112 > FONTSET ../etc/fonts.txt > TRANSPARENT FALSE > # IMAGETYPE - set to PNG24 in /congif/chameleon.xml > > # > # Start of web interface definition > # > WEB > #MINSCALE 2000000 > #MAXSCALE 50000000 > # > # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root > # of the drive where the .MAP file resides. > # > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > # LOG "/tmp/gmap.log" > METADATA > END > END > > # > # Start of reference map > # > REFERENCE > IMAGE images/ref_msone.jpg > EXTENT -126.12 23.27 -66.14 50.15 > STATUS ON > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > SIZE 120 90 > END > > # > # Start of legend > # > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END > SIZE 150 5 > COLOR 255 255 255 > BACKGROUNDCOLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS Miles > INTERVALS 5 > STATUS ON > END > > > QUERYMAP > STYLE HILITE > COLOR 255 0 0 > END > > ##################################### > # Symbol for drawing fat lines > # > SYMBOL > NAME "BigLine" > TYPE ELLIPSE > POINTS 1 1 END > END > > ##################################### > # Symbol for drawing dashed lines > # > SYMBOL > NAME "DashedLine" > TYPE ELLIPSE > POINTS 1 1 END > STYLE 10 10 END > END > > ##################################### > # Symbol for drawing spots > # > SYMBOL > NAME "Circle" > FILLED true > TYPE ellipse > POINTS 1 1 END > END > > > ########################### > # Country layer > # > LAYER > NAME "Countries" > STATUS on > TYPE polygon > DATA "countries" > UNITS dd > PROJECTION > "init=epsg:4326" > END > > CLASS > # A template defined at the class level is used to > # display the results for each reponse to a query. If a > # query results in N hits, then the template will be used > # N times. To be queriable a layer must specify a CLASS > # level template. > # > TEMPLATE "/ms4w/apps/msone/htdocs/msone_countries_query.html" > NAME "USA" > EXPRESSION ('[COUNTRY]' eq 'US') > STYLE > COLOR 238 232 170 > END > END # end class > > CLASS > # A template defined at the class level is used to > # display the results for each reponse to a query. If a > # query results in N hits, then the template will be used > # N times. To be queriable a layer must specify a CLASS > # level template. > # > TEMPLATE "/ms4w/apps/msone/htdocs/msone_countries_query.html" > NAME "OTHER" > EXPRESSION ('[COUNTRY]' ne 'US') > STYLE > COLOR 205 190 112 > END > END # end class > > END # end layer > > #################################### > # Line layer for Country boundaries > # > LAYER > UNITS dd > PROJECTION > "init=epsg:4326" > END > NAME "Boundaries" > STATUS on > TYPE line > DATA "countries" > CLASS > STYLE > COLOR 0 0 0 > END > END # end class > END # end layer > > ################################ > # USGS_topo > # > > LAYER > NAME "Terraserver_DRG" > STATUS off > TYPE RASTER > CONNECTIONTYPE WMS > CONNECTION "http://terraservice.net/OgcMap.ashx?";; > METADATA > "wms_srs" "EPSG:4326" > "wms_title" "Digital Raster Graphic" > "wms_name" "DRG" > "wms_server_version" "1.1.1" > "wms_format" "image/jpeg" > "wms_layers" "drg" > "wms_group_title" "background" > END > PROJECTION > "init=epsg:4326" > END > END > > # ******************** Orthophoto ******************** > LAYER > NAME "TerraServer_Orthophoto" > STATUS off > TYPE RASTER > CONNECTIONTYPE WMS > CONNECTION "http://terraservice.net/OgcMap.ashx?";; > METADATA > "wms_srs" "EPSG:4326" > "wms_title" "Orthophoto" > "wms_name" "DOQ" > "wms_server_version" "1.1.1" > "wms_format" "image/jpeg" > "wms_layers" "drg" > "wms_group_title" "background" > END > PROJECTION > "init=epsg:4326" > END > END > > # ******************** Nexrad Radar ******************** > LAYER > NAME Nexrad_RADAR > STATUS OFF > GROUP "Background" > TYPE RASTER > CONNECTIONTYPE WMS > CONNECTION "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?";; > PROJECTION > "init=epsg:4326" > END > METADATA > "wms_name" "nexrad-n0r-m45m" > "wms_server_version" "1.1.1" > "wms_srs" "EPSG:4326" > "wms_format" "image/jpeg" > "wms_style" "" > "wms_title" "NEXRAD" > END > END > > # ******************** MODIS derived blue marble image ******************** > LAYER > NAME Blue_Marble > STATUS on > PROJECTION > "init=epsg:4326" > END > TYPE RASTER > OFFSITE 0 0 0 > CONNECTIONTYPE WMS > CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?";; > METADATA > "wms_name" "modis,global_mosaic" > "wms_server_version" "1.1.1" > "wms_srs" "EPSG:4326" > "wms_format" "image/jpeg" > "wms_styles" "" > "wms_title" "BlueMarble" > END > END > > ##################################### > # State boundaries layer - polygon (for shading) > # > LAYER > NAME "states_poly" > DATA "statesp020" > UNITS dd > PROJECTION > "init=epsg:4326" > END > STATUS off > TYPE polygon > LABELCACHE on > LABELITEM "STATE" > CLASS > STYLE > # COLOR 238 232 170 > END > END > END > > > ##################################### > # State boundaries layer - line (for fat boundary) > # > LAYER > NAME "states" > DATA "statesp020" > UNITS dd > PROJECTION > "init=epsg:4326" > END > STATUS off > TYPE line > LABELCACHE on > LABELITEM "STATE" > CLASS > NAME "State Line" > STYLE > SYMBOL "BigLine" > SIZE 2 > COLOR 0 0 0 > END > END > END > > ##################################### > # Road layer - interstates only at large scale > # > LAYER > NAME "interstate1" > GROUP "roads" > DATA "roadtrl020" > STATUS off > TYPE line > UNITS dd > PROJECTION > "init=epsg:4326" > END > LABELCACHE on > LABELITEM "NAME" > CLASSITEM "FEATURE" > MINSCALE 7500001 > CLASS > NAME "Interstate Hwy" > EXPRESSION /Limited Access*/ > STYLE > SYMBOL "BigLine" > SIZE 1 > COLOR 0 0 0 > END > LABEL > TYPE truetype > FONT "arial" > SIZE 8 > OUTLINECOLOR 255 255 255 > COLOR 0 0 0 > MINDISTANCE 200 > POSITION auto > ANGLE auto > MINFEATURESIZE 50 > END > END > END > > > ############################### > # ROC Sites > # > LAYER > NAME "ROCsites" > STATUS off > UNITS dd > PROJECTION > "init=epsg:4326" > END > TYPE point > DATA "ROCsites" > MAXSCALE 1200000 > LABELITEM "SITE_NAME" > CLASS > NAME "ROC Sites" > STYLE > SYMBOL "Circle" > SIZE 9 > COLOR 255 127 0 #coral > END > LABEL > TYPE truetype # use truetype font > FONT "arialbd" # use arial bold > SIZE 7 # use 8 point size > COLOR 255 127 0 # color text coral > BACKGROUNDCOLOR 255 255 255 # render text on white bg > MINDISTANCE 50 # labels > 50 pixels apart > POSITION auto # center labels below feature > ANTIALIAS true # antialias the text > END # end label > END # end class > > END # end layer > > ############################### > # ROC Monitoring Wells > # > LAYER > NAME "ROCmw" > STATUS off > UNITS dd > TYPE point > DATA "ROCmw" > LABELITEM "Well_Name" # labels use value in column "NAME" > LABELCACHE on > LABELMAXSCALE 1200000 > MAXSCALE 1200000 > > CLASS > NAME "ROC MWs" > STYLE > SYMBOL "Circle" > SIZE 9 > COLOR 0 0 205 #Medium Blue > END > > LABEL > TYPE truetype # use truetype font > FONT "arialbd" # use arial bold > SIZE 7 # use 8 point size > COLOR 0 0 205 # color text coral > BACKGROUNDCOLOR 255 255 255 # render text on white bg > MINDISTANCE 50 # labels > 50 pixels apart > POSITION auto # center labels below feature > ANTIALIAS true # antialias the text > END # end label > END # end class > END # end layer > > END # Map File > > > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl ____________________________________________________________________________________ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 From pcreso at PCRESO.COM Sat Mar 3 10:25:58 2007 From: pcreso at PCRESO.COM (Brent Wood) Date: Sat, 3 Mar 2007 10:25:58 -0800 Subject: How do I not render the white background when displing NEXRAD from a WMS In-Reply-To: Message-ID: --- Andrew Parker wrote: > Ok. I give up. How do I NOT render the white background? I just want the > base reflectivity to show. I am accessing a base reflectivity layer from a > WMS located at: > > "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?" See transparency & offsite options for the layer definition: http://mapserver.gis.umn.edu/docs/reference/mapfile/layer TRANSPARENCY 0 OFFSITE 255 255 255 I've only used it in my WMS server to provide layers with the white background removed. I'm assuming it will work in a client as well. Also ensure you are not using JPG images (I see you are using PNG24, but it is worth mentioning anyway :-), as they don't support transparency & can finish up with off-white pixels for white in the lossy compression. Cheers, Brent Wood > > My test site is available for viewing at: > "http://mapserver.rthicksconsult.com" > > There are two test sites. 1) the form button "Click Here..."; my first map. > 2) Link: Test1; my first Chamelon map. > > Both have the NexRad Layer as shown below in the partial mapfile. > > Thanks in advance. > > Andrew. > > # > # Start of map file > # > # Sample map file for a chameleon app. > # > NAME DEMO > STATUS ON > SIZE 400 300 > SYMBOLSET ../etc/symbols.sym > EXTENT -109.1 31.26 -102.89 37.09 > UNITS DD > PROJECTION > "init=epsg:4326" > END > SHAPEPATH "../data" > IMAGECOLOR 25 25 112 > FONTSET ../etc/fonts.txt > TRANSPARENT TRUE > # IMAGETYPE - set to PNG24 in /congif/chameleon.xml > > ... > ... > ... > > # ******************** NexRad******************** > LAYER > NAME "Nexrad" > STATUS ON > TYPE RASTER > CONNECTIONTYPE WMS > CONNECTION "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?" > PROJECTION > "init=epsg:4326" > END > METADATA > "wms_name" "nexrad-n0r" > "wms_server_version" "1.1.1" > "wms_srs" "EPSG:4326" > "wms_format" "image/jpeg" > "wms_title" "NEXRAD BASE REFLECT" > END > END > > END # end of mapfile > From siki at AGT.BME.HU Sat Mar 3 12:39:33 2007 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sat, 3 Mar 2007 19:39:33 -0100 Subject: beginner: text region polyline point from MapInfo In-Reply-To: <45E83038.6020005@linkas.it> Message-ID: Hi Julien, ESRI shapes are only for points, lines and polygons (regions). Universal translator converts MapInfo texts to line elements and the text string to an attribute. So you can display them as an annotation type layer. So change your layer something like this LAYER DEBUG OFF NAME "text" TYPE ANNOTATION STATUS OFF TILEINDEX "priamo_text.shp" TILEITEM "location" LABELITEM "TEXTSTRING" CLASS NAME "region" LABEL SIZE ? TYPE TRUETYPE FONT ??? COLOR ? ? ? ANGLE "TEXT_ANGLE" END END END You must use truetype font to rotate text. Zoltan On Fri, 2 Mar 2007, Julien Buratto wrote: > Rahkonen Jukka ha scritto: > > Hi, > > > > Correct. While MapInfo tab is database-like format and can contain everything you may have in MapInfo in a single file, ESRI shapefiles can only have one kind of features in one shapefile set. > > > > -Jukka- > > Great, so I'm getting it :-D > Next question is, what "type" should I use to draw texts ? > My layer containing text is: > > LAYER > DEBUG OFF > NAME "text" > TYPE point > STATUS OFF > TILEINDEX "priamo_text.shp" > TILEITEM "location" > CLASS > NAME "region" > STYLE > # OUTLINECOLOR 120 120 120 > COLOR 0 0 0 > > END > END > END # layer > > the MAP header is: > > MAP > NAME DEMO > IMAGECOLOR 255 255 255 > SIZE 530 530 > Extent 2285117.310158 4727319.440000 2431485.920000 4871301.690000 > FONTSET ../etc/fonts.txt > > Thanks again > From atorresma at UC.CL Sat Mar 3 10:51:43 2007 From: atorresma at UC.CL (Adriano Torres) Date: Sat, 3 Mar 2007 15:51:43 -0300 Subject: Problems with Mapserver4.10.1--GD--Fedora Core 6 (espanol - english) In-Reply-To: <2077.168.103.93.50.1172876314.squirrel@maps.hostgis.com> Message-ID: Gregor Mosheh escribi?: > I've had the worst time with Fedora, in that it's often missing header > files. In the case of GD, it's missing the gd.h and other header files. > Sigh. > > What I've resorted to in the past is to download the GD source for the GD > version I have (rpm -qa | grep gd) and then manually install gd.h into > /usr/include or wherever. > Hi everybody Thanks Gregor for four answer... I tried to install manually but ./configure doesn't work yet :( The mapserver configure said: "configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure GD 2.0.16 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv)" I have freetype, libpng, libjpeg and libiconv properly installed (I believe it): # rpm -qa | grep gd sysklogd-1.4.1-41.fc6 gd-2.0.33-10.fc6 gdb-6.5-15.fc6 gdbm-1.8.0-26.2.1 php-gd-5.1.6-3.4.fc6 gd-devel-2.0.33-10.fc6 gdm-2.16.5-1.fc6 libgdiplus-1.1.17-1.fc6 gdbm-devel-1.8.0-26.2.1 What mean that "You may also get this error if you didn't specify the appropriate location for one of GD's dependencies"??? May the error be this? I dont know what do :( Thanks Adriano Saludos a la comunidad de habla hispana. -- From aparker1969 at YAHOO.COM Sat Mar 3 12:28:07 2007 From: aparker1969 at YAHOO.COM (Andrew Parker) Date: Sat, 3 Mar 2007 14:28:07 -0600 Subject: How do I not render the white background when displing NEXRAD from a WMS Message-ID: Perfect! I tried setting TRANSPARENT to ON and OFFISTE to 0 0 0 in the Mapfile and the Layer. It did not work. But your suggestions worked. Thanks again. From guillaume.sueur at GEOSIGNAL.FR Sun Mar 4 02:10:46 2007 From: guillaume.sueur at GEOSIGNAL.FR (Guillaume Sueur) Date: Sun, 4 Mar 2007 13:10:46 +0300 Subject: Problems with Mapserver4.10.1--GD--Fedora Core 6 (espanol - english) In-Reply-To: <56404.YXRvcnJlc21h.1172947903.atorresma@correo.uc.cl> Message-ID: Yes, the error can come from that too. You should check that point. Can you send your configure options ? why don't you uninstall all rpms and build all from sources ? it's often easier ! Guillaume Adriano Torres a ?crit : > Gregor Mosheh escribi?: >> I've had the worst time with Fedora, in that it's often missing header >> files. In the case of GD, it's missing the gd.h and other header files. >> Sigh. >> >> What I've resorted to in the past is to download the GD source for the GD >> version I have (rpm -qa | grep gd) and then manually install gd.h into >> /usr/include or wherever. >> > > Hi everybody > Thanks Gregor for four answer... I tried to install manually but ./configure > doesn't work yet :( > The mapserver configure said: "configure: error: Could not find gd.h or > libgd.a/libgd.so in /usr/local. Make sure GD 2.0.16 or higher is compiled > before calling configure. You may also get this error if you didn't specify > the appropriate location for one of GD's dependencies (freetype, libpng, > libjpeg or libiconv)" > > I have freetype, libpng, libjpeg and libiconv properly installed (I believe it): > # rpm -qa | grep gd > sysklogd-1.4.1-41.fc6 > gd-2.0.33-10.fc6 > gdb-6.5-15.fc6 > gdbm-1.8.0-26.2.1 > php-gd-5.1.6-3.4.fc6 > gd-devel-2.0.33-10.fc6 > gdm-2.16.5-1.fc6 > libgdiplus-1.1.17-1.fc6 > gdbm-devel-1.8.0-26.2.1 > > What mean that "You may also get this error if you didn't specify the > appropriate location for one of GD's dependencies"??? May the error be this? > > I dont know what do :( > > Thanks > Adriano > > Saludos a la comunidad de habla hispana. > > From guillaume.sueur at GEOSIGNAL.FR Sun Mar 4 02:24:04 2007 From: guillaume.sueur at GEOSIGNAL.FR (Guillaume Sueur) Date: Sun, 4 Mar 2007 13:24:04 +0300 Subject: MapServer 4.10 with DSO PHP5 -> GD issues In-Reply-To: <45E83C4D.40409@mapgears.com> Message-ID: I've managed to make php-5.1.4-gd and gd-2.0.34 work together (php with its own gd and mapserver with the system one)! I think there are compatibilities issues depending on the version used with each. As GD is updated AFTER php-gd, I think one could use a gd version newer than the php one. but still no imageresize in the standard gd. Weird. Daniel Morissette a ?crit : > Guillaume Sueur wrote: >> One more thing : using the system gd library works well, but some gd >> functions (imagerotate or imagelayereffect for example) requires php >> to be build against embedded version of gd. >> So, is there a way to build mapserver against php version of gd, or to >> find the source of it to be able to build it as the system lib too ? >> > > I believe the source is under php/ext/gd, but I don't know if the PHP > version of GD can be built as a standalone lib and used by external > programs. You could try and let us know. > > BTW, GD has been brought back to life recently at http://libgd.org/ > "under the umbrella of PHP.net" so they are definitely aware of the PHP > GD fork and there's hope that some of these new functions may be added > to future releases (or may be in the dev version, 2.1.0 in CVS HEAD?). > > Daniel From sami.jan at GMAIL.COM Sun Mar 4 06:35:13 2007 From: sami.jan at GMAIL.COM (sami jan) Date: Sun, 4 Mar 2007 19:35:13 +0500 Subject: mapserver with postgis problems Message-ID: Hi I have loaded up spatial point data in postgre/postgis and can see it OK in uDig and QuantumGIS However, the map file exported by QuantumGIS fails to render the points in mapServer - can anyone please help? I am running the map through the url: http://localhost/cgi-bin/mapserv.exe?map=D:\gis_data\postgis_dot_hospitals.map I am using the MS 4.2.2 binaries on WinXP I COULD render the shape file generated by running pgsql2shp on this data This is what I get in the error.log file: ========================================================= msPOSTGISLayerOpen called datastatement: geom FROM public.hospitals\r MSPOSTGISLayerOpen -- shared connection not available.\r msConnPoolRegister(hospitals,host=localhost dbname=postgis password=postgres user=postgres port=5445,01A07240)\r msPOSTGISLayerFreeItemInfo called\r msProjectRect(): all points failed to reproject, trying to fall back to using world bounds ... hope this helps.\r msPOSTGISLayerWhichShapes called\r msPOSTGISLayerRetrievePK(): Found schema public, table hospitals.\r msPOSTGISLayerRetrievePGVersion(): query = select substring(version() from 12 for (position('on' in version()) - 13))\r msPOSTGISLayerRetrievePGVersion: Version String: B 8.1.8.25\r msPOSTGISLayerRetrievePGVersion(): Found version 0, 8, 1\r msPOSTGISLayerRetrievePK(): Major version below 7.\r msPOSTGISLayerParseData: unique column = OID, srid='', geom_column_name = geom, table_name=public.hospitals\r query_string_0_6:DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(geom)),'NDR'),OID::text from public.hospitals WHERE geom && setSRID('BOX3D(-180 -90,180 90)'::BOX3D, find_srid('','public.hospitals','geom') )\r msPOSTGISLayerFreeItemInfo called\r msPOSTGISLayerClose datastatement: geom FROM public.hospitals\r msPOSTGISLayerClose -- closing query_result\r msConnPoolRelease(hospitals,host=localhost dbname=postgis password=postgres user=postgres port=5445,01A07240)\r msConnPoolClose(host=localhost dbname=postgis password=postgres user=postgres port=5445,01A07240)\r msDrawMap(): Layer 0 (hospitals), 0.141s\r msPOSTGISLayerClose datastatement: geom FROM public.hospitals\r msPOSTGISLayerClose -- layerinfo is NULL\r ========================================================= Here is a snippet of the map file: ========================================================= EXTENT -121957.553383 4786073.718698 809738.927418 5377266.718698 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END LAYER NAME 'hospitals' TYPE POINT CONNECTIONTYPE postgis CONNECTION 'host=localhost dbname=postgis password=postgres user=postgres port=5445' DATA 'geom FROM public.hospitals' DEBUG on METADATA 'wms_title' 'hospitals' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=utm' 'zone=15' 'ellps=GRS80' 'datum=NAD83' 'units=m' 'no_defs' END CLASS NAME hospitals STYLE SYMBOL 'CIRCLE' SIZE 6 OUTLINECOLOR 0 0 0 COLOR 144 50 207 END END END ========================================================= Here are a few lines of the PostGIS SQL required to create a couple of points (this is public data): ========================================================= BEGIN; CREATE TABLE "public"."hospitals" (gid serial PRIMARY KEY, "status" varchar(1), "score" int2, "side" varchar(1), "arc_street" varchar(60), "arc_zone" varchar(20), "hfid_fac" int4, "fac_name" varchar(39), "fac_add" varchar(37), "fac_city" varchar(26), "fac_state" varchar(9), "fac_zip" int4, "county_cod" int8, "county_nam" varchar(23), "fac_teleph" varchar(13), "fac_fax" varchar(12), "fac_admini" varchar(38), "lic_type" varchar(43), "hosp_beds_" int8, "bass_beds_" int8, "psy_hosp_b" int8, "nh_beds_su" int8, "bch_beds_s" int8, "slfa_beds_" int8, "slfb_beds_" int8, "other_beds" int8, "hcp_type_p" varchar(42), "hws_prov" varchar(20), "ops_prov" varchar(17), "hosp18_bed" int8, "cah_prov" varchar(37), "jcaho_prov" varchar(25), "swing_prov" varchar(26), "psy18_beds" int8, "snf_beds_s" int8, "snfnf_beds" int8, "nf1_beds_s" int8, "nf2_beds_s" int8, "icfmr_beds" int8, "hha_prov" varchar(35), "hspice_pro" varchar(23), "cmhc_prov" varchar(44), "corf_prov" varchar(53), "esrd_prov" varchar(38), "asc_prov" varchar(40), "ppsp_prov" varchar(36), "ppsr_prov" varchar(38), "rehab_prov" varchar(63), "rhc_prov" varchar(32), "xray_prov" varchar(29)) with oids; SELECT AddGeometryColumn('public','hospitals','geom','26915','POINT',2); INSERT INTO "public"."hospitals" ("status",'SRID=26915;01010000004648CCF0F8341B41855BD9F616A85341'); INSERT INTO "public"."hospitals" ("status",'SRID=26915;0101000000464D7F54C7851E41AC85378763255341'); INSERT INTO "public"."hospitals" ("status",'SRID=26915;0101000000A698B73489BC1C41A03DF84E4C165341'); INSERT INTO "public"."hospitals" ("status",'SRID=26915;0101000000DA190C95CA481D4106B76B3FE50D5341'); END; ========================================================= From bwinn at BERKSHIRE.RR.COM Sun Mar 4 07:59:51 2007 From: bwinn at BERKSHIRE.RR.COM (Bruce Winn) Date: Sun, 4 Mar 2007 09:59:51 -0600 Subject: mapserver can't find images Message-ID: My mapserver application is up and running fine except that I can't get images to display if they are in the template. For example, the legend works fine if it is embedded, but if I try to put it somewhere in the template the server looks for it at .../cgi-bin/mapserv/image.jpg. The same is true for any other images I try to put in the template. The map itself displays just fine. I'm working on a remote server. My service provider installed the application so I don't have access to anything above the httpdocs folder and I don't know much about the installation except that it is ms4w on an apache server. Here's my mapfile. (the URL is www.thebeatnews.com/BEAT_maps). Thanks in advance for any help. Bruce MAP NAME "BEAT" SIZE 640 480 IMAGECOLOR 250 250 250 IMAGETYPE jpeg SHAPEPATH "/home/httpd/vhosts/thebeatnews.com/httpdocs/BEAT_maps/mapdata/" FONTSET "/home/httpd/vhosts/thebeatnews.com/httpdocs/Fonts/fontset.txt" EXTENT 33861.263590 861649.561400 113491.312540 945607.500716 UNITS METERS LEGEND STATUS ON POSITION LR END SYMBOL NAME "Thickline" TYPE ELLIPSE POINTS 1 1 END END SCALEBAR STATUS EMBED STYLE 0 TRANSPARENT TRUE OUTLINECOLOR 0 0 0 END WEB TEMPLATE "/home/httpd/vhosts/thebeatnews.com/httpdocs/BEAT_maps/template.html" IMAGEPATH "/home/httpd/vhosts/thebeatnews.com/httpdocs/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER NAME "caps" STATUS on TYPE raster DATA "caps.tif" CLASS NAME "caps" END END LAYER NAME "Biomap" STATUS on TRANSPARENCY 80 TYPE polygon DATA "biocorp1_Clip" CLASS NAME "BioMap" STYLE COLOR 50 90 150 END END END LAYER NAME "SupportingNaturalLandscape" STATUS on TRANSPARENCY 80 TYPE polygon DATA "biosnlp1_Clip" CLASS NAME "BioMap (SNL)" STYLE COLOR 70 150 150 END END END LAYER NAME "OpenSpace" STATUS on TRANSPARENCY 80 TYPE polygon DATA "BC_OpenSpace" CLASSITEM "LEV_PROT" CLASS EXPRESSION "L" STYLE COLOR 102 204 0 END END CLASS EXPRESSION "P" STYLE COLOR 51 102 0 END END CLASS EXPRESSION "T" STYLE COLOR 102 153 0 END END CLASS EXPRESSION "X" STYLE COLOR 102 255 0 END END CLASS EXPRESSION "N" STYLE COLOR 102 255 0 END END END LAYER NAME "Towns" STATUS on TYPE polygon DATA "TOWNS_POLY_Clip" CLASS NAME "Town Boundaries" STYLE OUTLINECOLOR 0 0 0 END END END LAYER NAME "Roads" STATUS on TYPE line DATA "EOTMAJROADS_ARC_Clip" CLASS NAME "Roads" STYLE COLOR 102 51 0 END END END LAYER NAME "Streams" STATUS on TYPE line DATA "maj_sta1_Clip" CLASS STYLE COLOR 50 100 150 END END END LAYER NAME "RoadsN" DATA "EOTMAJROADS_ARC_Clip" STATUS on TYPE ANNOTATION LABELCACHE on LABELITEM "STREET_NAM" MAXSCALE 123000 CLASS LABEL TYPE truetype FONT "arial-bolditalic" SIZE 10 COLOR 0 0 0 ANGLE auto MINFEATURESIZE 60 MINDISTANCE 175 END END END LAYER NAME "Watersheds" STATUS on TYPE polygon DATA "BC_watersheds1" CLASS STYLE SIZE 1 OUTLINECOLOR 255 30 30 END END END LAYER NAME "TownsN" DATA "TOWNS_POLY_Clip" STATUS on TYPE ANNOTATION LABELCACHE on LABELITEM "TOWN" CLASS LABEL TYPE truetype FONT "arial-bolditalic" SIZE 10 MINFEATURESIZE 62 COLOR 230 230 30 OUTLINECOLOR 0 0 0 END END END LAYER NAME "WatershedN" DATA "BC_watersheds1" STATUS off TYPE ANNOTATION LABELCACHE on LABELITEM "NAME" MINSCALE 123000 CLASS LABEL TYPE truetype FONT "arial-bolditalic" SIZE 9 COLOR 236 80 33 OUTLINECOLOR 0 0 0 MINFEATURESIZE 30 END END END END # mapfile From sami.jan at GMAIL.COM Sun Mar 4 08:20:42 2007 From: sami.jan at GMAIL.COM (Sami Jan) Date: Sun, 4 Mar 2007 10:20:42 -0600 Subject: mapserver with postgis problems Message-ID: I have managed to narrow down the problem - mapServer does not plot projected points - points in lat/long are rendered OK The following block of data renders the points OK: ===================== PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END ===================== The following does not: ===================== PROJECTION 'proj=utm' 'zone=15' 'ellps=GRS80' 'datum=NAD83' 'units=m' 'no_defs' END ===================== It fails with this error: msPOSTGISLayerFreeItemInfo called\r msProjectRect(): all points failed to reproject, trying to fall back to using world bounds ... hope this helps.\r msPOSTGISLayerWhichShapes called\r From sami.jan at GMAIL.COM Sun Mar 4 08:50:21 2007 From: sami.jan at GMAIL.COM (Sami Jan) Date: Sun, 4 Mar 2007 10:50:21 -0600 Subject: mapserver with postgis problems Message-ID: sorry again :) turns out the problem was that the projection in the WMS server settings and the PROJECTION label need to be the same, so if my wms server settings says: # WMS server settings METADATA 'wms_title' 'postgis_dot_hospitals' 'wms_onlineresource' 'http://my.host.com/cgi-bin/mapserv?map=wms.map&' 'wms_srs' 'EPSG:4326' END the PROJECTION variable needs to say this: PROJECTION 'init=epsg:4326' END otherwise neither shape or postgis data will be rendered - hope this helps some other web/gis n00b like me :) From woodbri at SWOODBRIDGE.COM Sun Mar 4 09:07:21 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 4 Mar 2007 12:07:21 -0500 Subject: Raster TIF format Help Message-ID: Ed McNierney, et al, What is the conventional knowledge on how to organize TIF images internally for optimal access by mapserver? I remember that TIF files can have a lot of different internal organizations and that some are much more efficient for mapserver to access when serving data. I am looking at putting together some topo map scans and Landsat imagery of the middle east. The topo maps are roughly 4000x3000 pixels and in various scales like 500k, 200k, 100k, 50k, and the landsat imagery is looks to be in 1 deg squares. Can GDAL be used to reorganize the images and if so what options should I specify? or are there other tools I need to use? Thanks, -Steve From harterc1 at COMCAST.NET Sun Mar 4 13:58:33 2007 From: harterc1 at COMCAST.NET (Don) Date: Sun, 4 Mar 2007 15:58:33 -0600 Subject: missing map tiles- not all tiles are dispalyed In-Reply-To: Message-ID: Kurt Kuo wrote: > Hi List, > I have a ka-map application for showing the basic road network. The > performance of ka-map seems not so stable. Part of tiles are missing > while zooming in/out. It even shows blank map sometimes. Any idea > how/why this happens and where to start to solve this problem? > > Thanks in advance. > > Kurt > > _________________________________________________________________ > Find sales, coupons, and free shipping, all in one place! MSN > Shopping Sales & Deals > http://shopping.msn.com/content/shp/?ctid=198,ptnrid=176,ptnrdata=200639 > i am having a similar problem suing drg USGS topos. Some quads will display and others will be blank. As a test I recreated the index using gdalt index using just one of the files that was not being displayed. I thought there might be a conflict, but it did not display. gdalinfo on both files is similar. One of the following is displayed and the other is not. Driver: GTiff/GeoTIFF Size is 4621, 5690 Coordinate System is `' Origin = (1931528.610000,652223.430000) Pixel Size = (8.00000000,-8.00000000) Metadata: TIFFTAG_XRESOLUTION=250 TIFFTAG_YRESOLUTION=250 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Corner Coordinates: Upper Left ( 1931528.610, 652223.430) Lower Left ( 1931528.610, 606703.430) Upper Right ( 1968496.610, 652223.430) Lower Right ( 1968496.610, 606703.430) Center ( 1950012.610, 629463.430) Band 1 Block=4621x1 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) 0: 0,0,0,255 1: 255,255,255,255 Driver: GTiff/GeoTIFF Size is 4672, 5730 Coordinate System is `' Origin = (1672707.010000,653706.430000) Pixel Size = (8.00000000,-8.00000000) Metadata: TIFFTAG_XRESOLUTION=250 TIFFTAG_YRESOLUTION=250 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Corner Coordinates: Upper Left ( 1672707.010, 653706.430) Lower Left ( 1672707.010, 607866.430) Upper Right ( 1710083.010, 653706.430) Lower Right ( 1710083.010, 607866.430) Center ( 1691395.010, 630786.430) Band 1 Block=4672x1 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) 0: 0,0,0,255 1: 255,255,255,255 The file that did not display has a tfw that is: 8.000 0.000 0.000 -8.000 1931532.610 652219.430 the one that does display has tfw file that is: 8.000 0.000 0.000 -8.000 1672711.010 653702.430 I am wondering what is wrong. I suspect that perhaps one of the tif files was encoded in an older tiff file format and gdal/mapscript does not recognize it. Is there a log file somewhere that would list perhaps an error message? Any suggestions? From ed at TOPOZONE.COM Sun Mar 4 15:45:14 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sun, 4 Mar 2007 18:45:14 -0500 Subject: Raster TIF format Help In-Reply-To: A<45EAFCC9.1000709@swoodbridge.com> Message-ID: Steve - I'm not sure who that "al" guy is, but I'll put in my two cents . My primary data organizational philosophy is that the optimal MapServer image request would result in reading exactly one input TIFF image file, and using the entire contents of that image without resampling. So - step 1 would be to ensure you have TIFF images, preferably uncompressed, and preprocessed with precomputed overviews for all view scale settings. Doing that will get you most of the way there. I do not think there is any significant difference between GDAL in-the-file overviews created with gdaladdo or separate files created using gdalwarp, with each site of files in a LAYER definition limited by a MINSCALE/MAXSCALE setting and included in a GROUP. Using the gdaladdo approach produces files that are a little easier to handle (only one LAYER definition, no MINSCALE/MAXSCALE fiddling), but it is somewhat limiting if you have to cover a wide range of view scales. By "somewhat limiting" I'm referring to the fact that if you support view scales that are much lower resolution than the original input files, you can end up (in a zoomed-out situation) needing to read MANY input files in order to produce one MapServer image, thus drifting a long way from the optimal arrangement I mentioned above. This can be a noticeable performance drag. If you're using the "external overviews" approach (via gdalwarp, not internal overviews) then you will have the option of mosaicing the now-tiny files together to produce larger images. This limits your ability to do some shortcuts with TILEINDEX creation, as you will now have a necessarily distinct set of images that will need their own index. I have not found there to be much benefit from internal TIFF tiling (using TILED=YES in GDAL creation options), but it certainly can make some difference if your file width is much larger than the size of the output image. That's because you will need to read less data from the TIFF file in order to get the contents of the area you need. However, sequential data reads from a file are fast and are very likely to be "free" in that your disk is going to read several sequential sectors all at once whether you like it or not! I don't think it hurts, so I'd go ahead and adopt it as a general approach. I believe, however, that internal tiling would be more valuable for compressed TIFFs, especially LZW-compressed images, due to the need to read from the beginning in order to do the decompression. LZW compression is of little benefit for most imagery and I don't recommend it. LZW compression can be appropriate for your topo map images if they are relatively clean scans. On the other hand, they tend not to be very large data sets compared to the imagery so you may not be motivated to compress them. So - keep it simple. Use uncompressed TIFFs precomputed at all available output resolutions. Use TILED=YES when creating TIFFs. Use gdaladdo internal overviews if the convenience is helpful, but don't create lots of tiny TIFFs at zoomed-out scales; use gdalwarp and then mosaic the images together. Try to produce input images that are, in general, no smaller than the output image sizes you support. GDAL does not support as many resampling options as other applications do, and I have preferred roll-my-own bicubic sampling for zoomed-out overviews, so the "external overviews" approach can be preferable. But it does require more data and mapfile maintenance work. I hope this helps; I'm being a bit telegraphic as I know you've handled a few rasters before! Let me know if anything is especially cryptic. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Woodbridge Sent: Sunday, March 04, 2007 12:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Raster TIF format Help Ed McNierney, et al, What is the conventional knowledge on how to organize TIF images internally for optimal access by mapserver? I remember that TIF files can have a lot of different internal organizations and that some are much more efficient for mapserver to access when serving data. I am looking at putting together some topo map scans and Landsat imagery of the middle east. The topo maps are roughly 4000x3000 pixels and in various scales like 500k, 200k, 100k, 50k, and the landsat imagery is looks to be in 1 deg squares. Can GDAL be used to reorganize the images and if so what options should I specify? or are there other tools I need to use? Thanks, -Steve From j.l.h.hartmann at UVA.NL Mon Mar 5 00:31:20 2007 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Mon, 5 Mar 2007 09:31:20 +0100 Subject: Raster TIF format Help In-Reply-To: <4BF377919225F449BB097CB76FFE9BC801987EF1@ptolemy.topozone.com> Message-ID: Thanks Ed, this is really illuminating. Could you (or someone else) put this valuable information somewhere in the MapServer documentation? Jan Dr. J. Hartmann Department of Geography University of Amsterdam Ed McNierney wrote: > Steve - > > I'm not sure who that "al" guy is, but I'll put in my two cents . > > My primary data organizational philosophy is that the optimal MapServer > image request would result in reading exactly one input TIFF image file, > and using the entire contents of that image without resampling. > > So - step 1 would be to ensure you have TIFF images, preferably > uncompressed, and preprocessed with precomputed overviews for all view > scale settings. Doing that will get you most of the way there. > > I do not think there is any significant difference between GDAL > in-the-file overviews created with gdaladdo or separate files created > using gdalwarp, with each site of files in a LAYER definition limited by > a MINSCALE/MAXSCALE setting and included in a GROUP. Using the gdaladdo > approach produces files that are a little easier to handle (only one > LAYER definition, no MINSCALE/MAXSCALE fiddling), but it is somewhat > limiting if you have to cover a wide range of view scales. > > By "somewhat limiting" I'm referring to the fact that if you support > view scales that are much lower resolution than the original input > files, you can end up (in a zoomed-out situation) needing to read MANY > input files in order to produce one MapServer image, thus drifting a > long way from the optimal arrangement I mentioned above. This can be a > noticeable performance drag. If you're using the "external overviews" > approach (via gdalwarp, not internal overviews) then you will have the > option of mosaicing the now-tiny files together to produce larger > images. This limits your ability to do some shortcuts with TILEINDEX > creation, as you will now have a necessarily distinct set of images that > will need their own index. > > I have not found there to be much benefit from internal TIFF tiling > (using TILED=YES in GDAL creation options), but it certainly can make > some difference if your file width is much larger than the size of the > output image. That's because you will need to read less data from the > TIFF file in order to get the contents of the area you need. However, > sequential data reads from a file are fast and are very likely to be > "free" in that your disk is going to read several sequential sectors all > at once whether you like it or not! I don't think it hurts, so I'd go > ahead and adopt it as a general approach. > > I believe, however, that internal tiling would be more valuable for > compressed TIFFs, especially LZW-compressed images, due to the need to > read from the beginning in order to do the decompression. LZW > compression is of little benefit for most imagery and I don't recommend > it. LZW compression can be appropriate for your topo map images if they > are relatively clean scans. On the other hand, they tend not to be very > large data sets compared to the imagery so you may not be motivated to > compress them. > > So - keep it simple. Use uncompressed TIFFs precomputed at all > available output resolutions. Use TILED=YES when creating TIFFs. Use > gdaladdo internal overviews if the convenience is helpful, but don't > create lots of tiny TIFFs at zoomed-out scales; use gdalwarp and then > mosaic the images together. Try to produce input images that are, in > general, no smaller than the output image sizes you support. > > GDAL does not support as many resampling options as other applications > do, and I have preferred roll-my-own bicubic sampling for zoomed-out > overviews, so the "external overviews" approach can be preferable. But > it does require more data and mapfile maintenance work. > > I hope this helps; I'm being a bit telegraphic as I know you've handled > a few rasters before! Let me know if anything is especially cryptic. > > - Ed > > Ed McNierney > TopoZone.com > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Stephen Woodbridge > Sent: Sunday, March 04, 2007 12:07 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Raster TIF format Help > > Ed McNierney, et al, > > What is the conventional knowledge on how to organize TIF images > internally for optimal access by mapserver? > > I remember that TIF files can have a lot of different internal > organizations and that some are much more efficient for mapserver to > access when serving data. > > I am looking at putting together some topo map scans and Landsat imagery > > of the middle east. The topo maps are roughly 4000x3000 pixels and in > various scales like 500k, 200k, 100k, 50k, and the landsat imagery is > looks to be in 1 deg squares. > > Can GDAL be used to reorganize the images and if so what options should > I specify? or are there other tools I need to use? > > Thanks, > -Steve > From stefan.schwarzer at GRID.UNEP.CH Mon Mar 5 01:01:42 2007 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Mon, 5 Mar 2007 10:01:42 +0100 Subject: WMS Connector for ArcGIS 8.x Message-ID: Hi there, I know I've read it here (or elsewhere?), but I can't find it anymore.... There is a WMS connector for ArcGIS 8.x, published under the GPL or some other "free" license. I think from a german enterprise, which is involved in the mapserver discussions too... Anyone knows what I am talking about? Thanks for any hints/links! Stefan From mapserver at LINKAS.IT Mon Mar 5 03:00:32 2007 From: mapserver at LINKAS.IT (Julien Buratto) Date: Mon, 5 Mar 2007 12:00:32 +0100 Subject: beginner: text region polyline point from MapInfo In-Reply-To: Message-ID: Great, it works! thanks a lot! Julien Siki Zoltan ha scritto: > Hi Julien, > > ESRI shapes are only for points, lines and polygons (regions). > Universal translator converts MapInfo texts to line elements and the > text string to an attribute. So you can display them as an annotation type > layer. > > So change your layer something like this > > LAYER > DEBUG OFF > NAME "text" > TYPE ANNOTATION > STATUS OFF > TILEINDEX "priamo_text.shp" > TILEITEM "location" > LABELITEM "TEXTSTRING" > CLASS > NAME "region" > LABEL > SIZE ? > TYPE TRUETYPE > FONT ??? > COLOR ? ? ? > ANGLE "TEXT_ANGLE" > END > END > END > > You must use truetype font to rotate text. > > Zoltan > > On Fri, 2 Mar 2007, Julien Buratto wrote: > >> Rahkonen Jukka ha scritto: >>> Hi, >>> >>> Correct. While MapInfo tab is database-like format and can contain everything you may have in MapInfo in a single file, ESRI shapefiles can only have one kind of features in one shapefile set. >>> >>> -Jukka- >> Great, so I'm getting it :-D >> Next question is, what "type" should I use to draw texts ? >> My layer containing text is: >> >> LAYER >> DEBUG OFF >> NAME "text" >> TYPE point >> STATUS OFF >> TILEINDEX "priamo_text.shp" >> TILEITEM "location" >> CLASS >> NAME "region" >> STYLE >> # OUTLINECOLOR 120 120 120 >> COLOR 0 0 0 >> >> END >> END >> END # layer >> >> the MAP header is: >> >> MAP >> NAME DEMO >> IMAGECOLOR 255 255 255 >> SIZE 530 530 >> Extent 2285117.310158 4727319.440000 2431485.920000 4871301.690000 >> FONTSET ../etc/fonts.txt >> >> Thanks again >> > > > From woodbri at SWOODBRIDGE.COM Mon Mar 5 06:27:41 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 5 Mar 2007 09:27:41 -0500 Subject: Raster TIF format Help In-Reply-To: <4BF377919225F449BB097CB76FFE9BC801987EF1@ptolemy.topozone.com> Message-ID: Hi Ed, Thank you very much. I think I actually remembered most of this from my past raster work, I must have had a great teacher ;) It is really good to have a refresher to put it back into context again. I have added your response to the "Raster Data Access" HowTo on the website at http://mapserver.gis.umn.edu/docs/howto/raster_data I hope this will get integrated into the documentation at some point also. Thanks again, -Steve Ed McNierney wrote: > Steve - > > I'm not sure who that "al" guy is, but I'll put in my two cents . > > My primary data organizational philosophy is that the optimal MapServer > image request would result in reading exactly one input TIFF image file, > and using the entire contents of that image without resampling. > > So - step 1 would be to ensure you have TIFF images, preferably > uncompressed, and preprocessed with precomputed overviews for all view > scale settings. Doing that will get you most of the way there. > > I do not think there is any significant difference between GDAL > in-the-file overviews created with gdaladdo or separate files created > using gdalwarp, with each site of files in a LAYER definition limited by > a MINSCALE/MAXSCALE setting and included in a GROUP. Using the gdaladdo > approach produces files that are a little easier to handle (only one > LAYER definition, no MINSCALE/MAXSCALE fiddling), but it is somewhat > limiting if you have to cover a wide range of view scales. > > By "somewhat limiting" I'm referring to the fact that if you support > view scales that are much lower resolution than the original input > files, you can end up (in a zoomed-out situation) needing to read MANY > input files in order to produce one MapServer image, thus drifting a > long way from the optimal arrangement I mentioned above. This can be a > noticeable performance drag. If you're using the "external overviews" > approach (via gdalwarp, not internal overviews) then you will have the > option of mosaicing the now-tiny files together to produce larger > images. This limits your ability to do some shortcuts with TILEINDEX > creation, as you will now have a necessarily distinct set of images that > will need their own index. > > I have not found there to be much benefit from internal TIFF tiling > (using TILED=YES in GDAL creation options), but it certainly can make > some difference if your file width is much larger than the size of the > output image. That's because you will need to read less data from the > TIFF file in order to get the contents of the area you need. However, > sequential data reads from a file are fast and are very likely to be > "free" in that your disk is going to read several sequential sectors all > at once whether you like it or not! I don't think it hurts, so I'd go > ahead and adopt it as a general approach. > > I believe, however, that internal tiling would be more valuable for > compressed TIFFs, especially LZW-compressed images, due to the need to > read from the beginning in order to do the decompression. LZW > compression is of little benefit for most imagery and I don't recommend > it. LZW compression can be appropriate for your topo map images if they > are relatively clean scans. On the other hand, they tend not to be very > large data sets compared to the imagery so you may not be motivated to > compress them. > > So - keep it simple. Use uncompressed TIFFs precomputed at all > available output resolutions. Use TILED=YES when creating TIFFs. Use > gdaladdo internal overviews if the convenience is helpful, but don't > create lots of tiny TIFFs at zoomed-out scales; use gdalwarp and then > mosaic the images together. Try to produce input images that are, in > general, no smaller than the output image sizes you support. > > GDAL does not support as many resampling options as other applications > do, and I have preferred roll-my-own bicubic sampling for zoomed-out > overviews, so the "external overviews" approach can be preferable. But > it does require more data and mapfile maintenance work. > > I hope this helps; I'm being a bit telegraphic as I know you've handled > a few rasters before! Let me know if anything is especially cryptic. > > - Ed > > Ed McNierney > TopoZone.com > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Stephen Woodbridge > Sent: Sunday, March 04, 2007 12:07 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Raster TIF format Help > > Ed McNierney, et al, > > What is the conventional knowledge on how to organize TIF images > internally for optimal access by mapserver? > > I remember that TIF files can have a lot of different internal > organizations and that some are much more efficient for mapserver to > access when serving data. > > I am looking at putting together some topo map scans and Landsat imagery > > of the middle east. The topo maps are roughly 4000x3000 pixels and in > various scales like 500k, 200k, 100k, 50k, and the landsat imagery is > looks to be in 1 deg squares. > > Can GDAL be used to reorganize the images and if so what options should > I specify? or are there other tools I need to use? > > Thanks, > -Steve From mike.talbutt at DOTTEDEYES.COM Mon Mar 5 08:27:26 2007 From: mike.talbutt at DOTTEDEYES.COM (mikiet) Date: Mon, 5 Mar 2007 08:27:26 -0800 Subject: Mapinfo Seamless Vector tables in mapserver Message-ID: Hi all, I have a seamless mapinfo table that points to several mapinfo tab files containing vector data. I would like to be able to use this seamless table in my mapserver map file. I read that mapserver should be able to handle the seamless table (http://www2.dmsolutions.ca/msapps/ro_demo/demo_init.html), however when I point to my seamless table I get the following error message msOGRFileOpen(): OGR error. Open failed for OGR connection `C:\MapBase\Topo_Area_Seamless.TAB'. File not found or unsupported format. I have done simillar things with mapinfo seamless tables containing raster images by using the gdaltindex utility to create shp files, and that worked well, do I need to use a simillar tecnique for seamless tables containg vector data thanks in advance for the advice Mike. -- View this message in context: http://www.nabble.com/Mapinfo-Seamless-Vector-tables-in-mapserver-tf3349859.html#a9314776 Sent from the Mapserver - User mailing list archive at Nabble.com. From Stefan.Schnitter at T-SYSTEMS.COM Mon Mar 5 09:22:00 2007 From: Stefan.Schnitter at T-SYSTEMS.COM (Schnitter, Stefan) Date: Mon, 5 Mar 2007 18:22:00 +0100 Subject: Query in multiple layers Message-ID: Hi all, I have the following problem: I'd like to do a itemnquery with a certain qstring. From the resulting objects I'd like to take some features and query those in another layer. Example: I have a layer with line-objects and those objects have ID, SITEA and SITEB. Then I have a site layer (points) that contain those site names as Ids. I would like to display a line with a given ID and display the two sites of that line, too. Is this somehow possible in one query or do I have to use some php/mapscript? Many TIA, Stefan From mapper75 at GOOGLEMAIL.COM Mon Mar 5 09:36:04 2007 From: mapper75 at GOOGLEMAIL.COM (a mapper) Date: Mon, 5 Mar 2007 18:36:04 +0100 Subject: Vertor PDF as data source for mapserver Message-ID: Hello, I have some PDFs containing maps in vector format. Is there any possibility to use those as a datasource for mapserver (like, for example, ESRI shapefiles?) without creating any raster image (like TIFF)? I want to keep the vector format because of the quality loss when scaling a raster image. Is it possible to use multiple raster images for the same map for the different zoom levels the user can display? Thank you for your help. Mapper -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Mon Mar 5 10:47:27 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 5 Mar 2007 12:47:27 -0600 Subject: FOSS4G 2007 Call for Presentations Message-ID: The FOSS4G (Free and Open Source Software for Geospatial) conference is pleased to announce the Call for Presentations for the 2007 conference, being held September 24-27 in beautiful Victoria, British Columbia, Canada. http://www.foss4g2007.org FOSS4G is the premier conference for the open source geospatial community, providing a place for developers, users, and people new to open source geospatial to get a full-immersion experience in both established and leading edge geospatial technologies. FOSS4G presentations are 25 minute talks, with a 5 minute question and answer session at the end. Presentations cover aspects of the use or development of open source geospatial software. Anyone can can submit a presentation proposal and take part in the conference as a speaker. Some topics of interest for this year are: - Case Studies: Relate the experiences of you and your organization using open source geospatial. Where do things work well? Poorly? What problems did you solve, and at what cost? What do you recommend for others? Why? - Benchmarks: Comparisons between pieces of geospatial software. How do features compare? Speed? Ease of use? What do you recommend for others? - Visualization: Tell about your tips and tricks for effective visualization. How do you present information in a compelling way? 3D? Cartographic tricks? Labelling and naming ideas? Graphs and hybrid map/data combinations? - Development: What are the new developments in your open source geospatial software product? How does it work, how do people use it, what are the technical issues you are running into? - Hacks and Mashing: Have you put together something novel or cool this year? What did you stick together, how did it work, show us your gizmo! - Collaboration: What techniques are you using to improve collaboration between organizations and between individuals. Public geodata, collaborative data collection, data sharing, open standards, de facto standards, and more! If you have an open source geospatial story to tell, we want to hear it! For more information, see the FOSS4G site: http://www.foss4g2007.org/presentations/ The deadline for presentation submissions is June 29, 2007. Submit early, submit often! From toomas.aas at RAAD.TARTU.EE Mon Mar 5 14:09:01 2007 From: toomas.aas at RAAD.TARTU.EE (Toomas Aas) Date: Tue, 6 Mar 2007 00:09:01 +0200 Subject: Apache segfaults on HUP after adding WFS/GML support to PHP/Mapscript Message-ID: Hello! We have a webserver consisting of: FreeBSD 5.5 Apache 2.0.59 PHP 5.2.1 (installed as Apache DSO) PHP/Mapscript 4.10.1 This combo was working fine, until we added WFS client support, which meant adding --with-wfsclient to Mapserver configuration, installing xerces-c2 v2.7.0 and re-configuring and re-installing GDAL 1.3.1 with the --with-xerces switch. By doing this, we seem to have introduced an unpleasant problem - Apache can no longer be restarted with HUP signal (such as running 'apachectl restart'). This results in Apache dying with signal 11 and not starting up again, until started manually. As soon as we remove the php_mapscript.so extension from php.ini, the problem disappears - except that then our GIS applications are unavailable ;) The backtrace of coredump is simply: #0 0x2970b444 in ?? () #1 0x283cd007 in _pthread_main_np () from /lib/libc.so.5 #2 0x28415beb in __hostdata_init () from /lib/libc.so.5 #3 0x28416348 in gethostbyname () from /lib/libc.so.5 #4 0x0806f26e in ap_get_local_host () #5 0x0806bcd3 in ap_fini_vhost_config () #6 0x0806b3c6 in main () I guess this is not very informative. But maybe someone has encountered similar problems? -- Toomas Aas From Steve.Lime at DNR.STATE.MN.US Mon Mar 5 16:05:21 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 5 Mar 2007 18:05:21 -0600 Subject: Query in multiple layers In-Reply-To: <75404C7727619C4E81A6DABE442E42DDB16CD1@S4DE9JSAANL.ost.t-com.de> Message-ID: How you do something like this depends on how you want the end product to look and what technologies you're willing to use to get there. There is no way to do this with a single query. Using MapScript will certainly work and allows everything to be done on the server-side. Alternatively you could use AJAX to get at the properties of the points, stuffing the subsequent results into a div below the line information. Could perhaps even IFRAMEs in the template to display the sites where the source of each IFRAME is a MapServer query. I would think the MapScript approach would be the most straight forward. Steve >>> On 3/5/2007 at 11:22 AM, in message <75404C7727619C4E81A6DABE442E42DDB16CD1 at S4DE9JSAANL.ost.t-com.de>, "Schnitter, Stefan" wrote: > Hi all, > > I have the following problem: I'd like to do a itemnquery with a certain > qstring. From the resulting objects I'd like to take some features and > query those in another layer. Example: I have a layer with line-objects > and those objects have ID, SITEA and SITEB. Then I have a site layer > (points) that contain those site names as Ids. I would like to display a > line with a given ID and display the two sites of that line, too. Is > this somehow possible in one query or do I have to use some > php/mapscript? > > Many TIA, > Stefan From toomas.aas at RAAD.TARTU.EE Mon Mar 5 23:33:08 2007 From: toomas.aas at RAAD.TARTU.EE (Toomas Aas) Date: Tue, 6 Mar 2007 09:33:08 +0200 Subject: Apache segfaults on HUP after adding WFS/GML support to PHP/Mapscript In-Reply-To: <45EC94FD.1040206@raad.tartu.ee> Message-ID: Toomas Aas wrote: > Apache > can no longer be restarted with HUP signal (such as running 'apachectl > restart'). This results in Apache dying with signal 11 and not starting > up again, until started manually. > > The backtrace of coredump is simply: > #0 0x2970b444 in ?? () > #1 0x283cd007 in _pthread_main_np () from /lib/libc.so.5 > #2 0x28415beb in __hostdata_init () from /lib/libc.so.5 > #3 0x28416348 in gethostbyname () from /lib/libc.so.5 > #4 0x0806f26e in ap_get_local_host () > #5 0x0806bcd3 in ap_fini_vhost_config () > #6 0x0806b3c6 in main () For the russian-speaking members of this list, I found a workaround described here: http://tinyurl.com/2h85dr God knows why, but adding ServerName directive to httpd.conf (which previously was commented out) cured the segfaults. -- Toomas Aas From interfacemirror at GMAIL.COM Tue Mar 6 01:11:34 2007 From: interfacemirror at GMAIL.COM (Jandost Khoso) Date: Tue, 6 Mar 2007 01:11:34 -0800 Subject: Text Editor Message-ID: Dear All, i would like to know that is there any Text Editor that i can use to create my .MEP files with it? What i would like to know is anything like TextPad or Visual Studio .net Html editor so that i can type easily with formatting. Kindest Regards, Jandost Khoso -------------- next part -------------- An HTML attachment was scrubbed... URL: From cavallini at FAUNALIA.IT Tue Mar 6 01:22:15 2007 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Tue, 6 Mar 2007 10:22:15 +0100 Subject: Text Editor In-Reply-To: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 We have a syntax highlighting configuration file for kate/kwrite/quanta. All the best. pc Jandost Khoso ha scritto: > Dear All, > > i would like to know that is there any Text Editor that i can use to > create my .MEP files with it? What i would like to know is anything like > TextPad or Visual Studio .net Html editor so that i can type easily with > formatting. > > Kindest Regards, > > Jandost Khoso - -- Paolo Cavallini email+jabber: cavallini at faunalia.it www.faunalia.it Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF7TLG/NedwLUzIr4RArCyAJ9aze1xOMBaq8Q6t/PeVb3MaopIgwCgsecZ 2c+NOtyBa6MYcaN1ukjE1Ks= =zTp9 -----END PGP SIGNATURE----- From nimalikaf at YAHOO.COM Tue Mar 6 01:44:59 2007 From: nimalikaf at YAHOO.COM (nimalika Fernando) Date: Tue, 6 Mar 2007 03:44:59 -0600 Subject: problem in Dynamic query with postGIS Message-ID: Hi, Thank you very much for the guidence Actually I tried with QUERYMAP and can get the work done if use data from shape files , through a filter. But I am not clear about how to do the same using data in postGIS. My requirement is to use data in the database. can you please help me on using QUERYMAP and postGIS query together ? Any help is highly appriciated. best regards nimalika On Fri, 2 Mar 2007 15:16:52 +0100, J. Parapar wrote: > Nimalika: > > It seems that in the qstring parameter you are specifying only the >name of the village and not a condition like >qstring=dsd_n='Ambalanthota. This results in an incorrect SQL >condition. Changing this affects the use you do of qstring as a >variable in DATA. I think you should try again with QueryMap, it is a >simpler way to get the results of the query highlighted in the map. > > Best regards, > Jorge > > >2007/3/1, nimalika Fernando : >> hi everybody, >> >> I am working in a disaster recovery application , using Mapserver and postGIS >> for mapping part. >> >> I need to implement a simple search facilty, for eaxmple if user already knows >> a village affected , by selecting that village name using a combo box in web >> interface the related village should be highlighted in the map. >> >> I am not clear about how to implement such but I tried several options. >> I have used a QUERYMAP object and tried . But I am not getting the work >> done. My data resides in postGIS db and working with Maapserver in CGI mode >> is fine for basic operations. >> My query in the map file is as follows >> >> DATA "the_geom from (select alldsdivisions.the_geom as >> the_geom,alldsdivisions.gid as oid , >> alldsdivisions.dsd_n as dsd_n from alldsdivisions >> where alldsdivisions.dsd_n ='%qstring%') >> >> error mesage I get is as follows >> >> prepare_database(): Query error. Error executing POSTGIS DECLARE (the >> actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT >> dsd_n::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),oid::text >> from (select alldsdivisions.the_geom as the_geom,alldsdivisions.gid as oid , >> alldsdivisions.dsd_n as dsd_n from alldsdivisions where alldsdivisions.dsd_n >> ='Ambalanthota') AS selectedgs WHERE (Ambalanthota) and (the_geom && >> setSRID( 'BOX3D(181659.373889 74242.41425975,303213.047119 >> 165407.66918225)'::BOX3D,-1) )' >> >> Postgresql reports the error as 'ERROR: column "ambalanthota" does not >> exist ' >> >> here , "Ambalanthota" mean a value of coumn dsd_n of table >> alldsdivisions. qstring is replaced by the user selected value of the combo box. >> >> I have tried to get help from postGIS users but still i couldn't solve this >> >> can anybody help me to figure out a solution , pls? >> >> thank you in advance, >> >> Nimalika >> from Sri Lanka >> From Christian.Mairamhof at KTN.GV.AT Tue Mar 6 01:42:06 2007 From: Christian.Mairamhof at KTN.GV.AT (Christian Mairamhof) Date: Tue, 6 Mar 2007 10:42:06 +0100 Subject: Can I use 1 UMN-Service to deliver WMS-Requests in different geodetic dates??? Message-ID: Hi, Our layer is defined in a local CRS like 31285. Also the TOWGS84 parameter is set for correct placement of data in CRS 4326 (WGS84). Now the placement in 4326 is correct and false in 31286, if I skip the TOWGS84 parameter i have the vice versa effect. Is there a way that the TOWGS84 transformation is only used when it is needed? Here our layer/projection section: PROJECTION "proj=tmerc" "ellps=bessel" "lat_0=0" "lon_0=13.33333333333333" "k=1.000000" "x_0=450000" "y_0=-5000000" "units=m" "towgs84=577.326,90.129,463.919,5.1365988,1.4742,5.2970436,2.4232" END or PROJECTION "init=EPSG:31285" "towgs84=577.326,90.129,463.919,5.1365988,1.4742,5.2970436,2.4232" END best regards, Christian _______________________________ AMT DER K?RNTNER LANDEREGIERUNG Abt. 18 - Wasserwirtschaft / IKT Ing. Christian MAIRAMHOF V?lkermarkter Ring 29 , A-9020 Klagenfurt Tel +43 (0) 463 536-31826 e-mail: christian.mairamhof at ktn.gv.at homepage: wasser.ktn.gv.at _______________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim.bowden at WESTNET.COM.AU Tue Mar 6 02:15:39 2007 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Tue, 6 Mar 2007 21:15:39 +1100 Subject: Text Editor In-Reply-To: Message-ID: On Tue, 2007-03-06 at 01:11 -0800, Jandost Khoso wrote: > Dear All, > > i would like to know that is there any Text Editor that i can use to > create my .MEP files with it? What i would like to know is anything > like TextPad or Visual Studio .net Html editor so that i can type > easily with formatting. > > Kindest Regards, > > Jandost Khoso I assume you mean .map files. If so, and if vim is your thing then see: http://mapserver.gis.umn.edu/docs/howto/vim-syntax-howto And yes, vim is available for windows: http://www.vim.org/download.php#pc If you haven't used vim before, be careful. Many swear by it, many swear at it. Enthusiastic vim supporter, Tim Bowden From umn-ms at HYDROTEC.DE Tue Mar 6 02:32:45 2007 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Tue, 6 Mar 2007 11:32:45 +0100 Subject: Text Editor In-Reply-To: Message-ID: http://mapserver.gis.umn.edu/docs/link/textpad-syntax or http://www.textpad.com/add-ons/files/syntax/map_40.zip UMN MapServer Users List schrieb am 06.03.2007 10:11:34: > Dear All, > > i would like to know that is there any Text Editor that i can use to create my .MEP files with it? What i would like to know is anything like TextPad or Visual Studio .net Html editor so that i can type easily with formatting. > > Kindest Regards, > > Jandost Khoso -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.schmitz at WHEREGROUP.COM Tue Mar 6 02:58:19 2007 From: sebastian.schmitz at WHEREGROUP.COM (Sebastian Schmitz) Date: Tue, 6 Mar 2007 11:58:19 +0100 Subject: Text Editor In-Reply-To: Message-ID: Hi, if you want easy mapfile creation you may also want to have a look at MapStorer, which is a web-based and database-supported tool for creating MapServer mapfiles. It lets you generate mapfiles within minutes and you can combine layers from several mapfiles with each other (http://www.mapstorer.org). Just a hint. Cheers Sebastian Benedikt Rothe schrieb: > > http://mapserver.gis.umn.edu/docs/link/textpad-syntax > or > http://www.textpad.com/add-ons/files/syntax/map_40.zip > > UMN MapServer Users List schrieb am > 06.03.2007 10:11:34: > > > Dear All, > > > > i would like to know that is there any Text Editor that i can use to > create my .MEP files with it? What i would like to know is anything > like TextPad or Visual Studio .net Html editor so that i can type > easily with formatting. > > > > Kindest Regards, > > > > Jandost Khoso -- --------------------------------------- WhereGroup GmbH & Co. KG Siemensstra?e 8 53121 Bonn ------------------------------- Fon: +49 (0)228 / 90 90 38 - 24 Fax: +49 (0)228 / 90 90 38 - 11 ------------------------------- mailto:sebastian.schmitz at wheregroup.com http://www.wheregroup.com ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Arnulf Christl, Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 --------------------------------------- From pgiannini at BYTEWISE.IT Tue Mar 6 03:12:09 2007 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Tue, 6 Mar 2007 12:12:09 +0100 Subject: Text Editor In-Reply-To: Message-ID: For the users of the old Windows EditPlus, I make my sintax file for .map. In attach. Greetings .................................... PG -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mar, 6 Marzo 2007 10:11 am, Jandost Khoso wrote: > Dear All, > > i would like to know that is there any Text Editor that i can use to > create > my .MEP files with it? What i would like to know is anything like TextPad > or > Visual Studio .net Html editor so that i can type easily with formatting. > > Kindest Regards, > > Jandost Khoso > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: map.stx Type: application/octet-stream Size: 2160 bytes Desc: not available URL: From piero.cavalieri at HEIDI.IT Tue Mar 6 02:56:52 2007 From: piero.cavalieri at HEIDI.IT (piero cavalieri) Date: Tue, 6 Mar 2007 11:56:52 +0100 Subject: Text Editor In-Reply-To: Message-ID: http://www.scintilla.org/SciTE.html http://mapserver.gis.umn.edu/docs/link/scite-syntaxfile P. Jandost Khoso ha scritto: > Dear All, > > i would like to know that is there any Text Editor that i can use to > create my .MEP files with it? What i would like to know is anything > like TextPad or Visual Studio .net Html editor so that i can type > easily with formatting. > > Kindest Regards, > > Jandost Khoso From steve.hall at MERCATORGEOSYSTEMS.CO.UK Tue Mar 6 04:01:31 2007 From: steve.hall at MERCATORGEOSYSTEMS.CO.UK (Steve Hall) Date: Tue, 6 Mar 2007 12:01:31 +0000 Subject: Mapfile layers performance question Message-ID: Hi all, Just a quick question. Is there any (noticeable) performance hit in having a lot of layers in a mapfile with their STATUS set to OFF. I don't want to use these layers right now but may need to switch them on at a later date, so it's convenient to have them in there, but not if they're affecting performance at all..... Thanks, Steve H From ed at TOPOZONE.COM Tue Mar 6 04:30:11 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 6 Mar 2007 07:30:11 -0500 Subject: Mapfile layers performance question In-Reply-To: A<45ED581B.1030701@mercatorgeosystems.co.uk> Message-ID: Steve - Well, they WILL affect performance - you need to decide if they affect it in a significant way. Loading and parsing a map file takes time, and the bigger the file is the more time it will take. A while back I discovered that, having optimized my data access pretty well, over half of my MapServer overall response time was being spent simply loading the map file! But that's because I was taking the "convenient" route and putting everything into one big map file. How many is "a lot of layers", and how many do you use? Are the layers you DO use particularly complex? Note that you cannot use DEBUG ON to get a report on map file loading time as a percentage of MapServer's total response time, since MapServer doesn't know you've selected DEBUG ON until it has loaded the map file. It was quite a while ago, and I didn't keep the code, but it's pretty easy to add a few lines to turn on timing and logging for the map file itself. You just need to remember that it's not optional and you'll keep to recompile or keep a separate binary to turn it off. - 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 Steve Hall Sent: Tuesday, March 06, 2007 7:02 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapfile layers performance question Hi all, Just a quick question. Is there any (noticeable) performance hit in having a lot of layers in a mapfile with their STATUS set to OFF. I don't want to use these layers right now but may need to switch them on at a later date, so it's convenient to have them in there, but not if they're affecting performance at all..... Thanks, Steve H From richard.greenwood at GMAIL.COM Tue Mar 6 05:36:54 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 6 Mar 2007 06:36:54 -0700 Subject: Text Editor In-Reply-To: Message-ID: On 3/6/07, Jandost Khoso wrote: > Dear All, > > i would like to know that is there any Text Editor that i can use to create > my .MEP files with it? What i would like to know is anything like TextPad or > Visual Studio .net Html editor so that i can type easily with formatting. > > Kindest Regards, > > Jandost Khoso There is a TextPad syntax definition for MapServer .map files. If you can not find it on the MapServer or TextPad sites, send me an email and I will send you mine. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From mike.talbutt at DOTTEDEYES.COM Tue Mar 6 06:39:44 2007 From: mike.talbutt at DOTTEDEYES.COM (mikiet) Date: Tue, 6 Mar 2007 06:39:44 -0800 Subject: Mapinfo Seamless Vector tables in mapserver In-Reply-To: <9314776.post@talk.nabble.com> Message-ID: No dice eh ?, I have alittle more information in case it sheds some light on whats going on. I have set up the seamless table using mapinfo pro's seamless manager tool, specifying full path. I noticed that if I do an ogrinfo on my table it works fine C:\Tomcat5\webapps\rmxnyf\mapbase>ogrinfo test.tab Had to open data source read-only. INFO: Open of `test.tab' using driver `MapInfo File' successful. 1: Area_Mosaic (Line String) However when i specify the full path of the tab file I get an error C:\Tomcat5\webapps\rmxnyf\mapbase>ogrinfo C:\Tomcat5\webapps\rmxnyf\mapbase\test .TAB FAILURE: Unable to open datasource `C:\Tomcat5\webapps\rmxnyf\mapbase\test.TAB' with the following drivers. -> OCI -> ESRI Shapefile -> MapInfo File -> UK .NTF -> SDTS -> TIGER -> S57 -> DGN -> VRT -> AVCBin -> REC -> Memory -> CSV -> GML -> ODBC -> PGeo -> PostgreSQL -> MySQL When I do this test on a normal (non seamless) tab file ogrinfo works fine regardless of whether or not I specify the full name. Is this a clue as to where it's all going wrong ?. mikiet wrote: > > Hi all, > > I have a seamless mapinfo table that points to several mapinfo tab files > containing vector data. I would like to be able to use this seamless table > in my mapserver map file. I read that mapserver should be able to handle > the seamless table > (http://www2.dmsolutions.ca/msapps/ro_demo/demo_init.html), however when I > point to my seamless table I get the following error message > > msOGRFileOpen(): OGR error. Open failed for OGR connection > `C:\MapBase\Topo_Area_Seamless.TAB'. File not found or unsupported format. > > I have done simillar things with mapinfo seamless tables containing raster > images by using the gdaltindex utility to create shp files, and that > worked well, do I need to use a simillar tecnique for seamless tables > containg vector data > > thanks in advance for the advice > > Mike. > > -- View this message in context: http://www.nabble.com/Mapinfo-Seamless-Vector-tables-in-mapserver-tf3349859.html#a9332637 Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at POBOX.COM Tue Mar 6 07:32:09 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 6 Mar 2007 10:32:09 -0500 Subject: Mapinfo Seamless Vector tables in mapserver In-Reply-To: <9332637.post@talk.nabble.com> Message-ID: mikiet wrote: > No dice eh ?, I have alittle more information in case it sheds some light on > whats going on. > > I have set up the seamless table using mapinfo pro's seamless manager tool, > specifying full path. I noticed that if I do an ogrinfo on my table it works > fine > > C:\Tomcat5\webapps\rmxnyf\mapbase>ogrinfo test.tab > Had to open data source read-only. > INFO: Open of `test.tab' > using driver `MapInfo File' successful. > 1: Area_Mosaic (Line String) Miki, Try doing "ogrinfo -al -so C:\Tomcat5\webapps\rmxnyf\mapbase\test.tab" from some different directory to see if the case similar to the absolute path in mapserver works with ogrinfo. > However when i specify the full path of the tab file I get an error > > C:\Tomcat5\webapps\rmxnyf\mapbase>ogrinfo > C:\Tomcat5\webapps\rmxnyf\mapbase\test > .TAB > FAILURE: > Unable to open datasource `C:\Tomcat5\webapps\rmxnyf\mapbase\test.TAB' with > the > following drivers. > -> OCI > -> ESRI Shapefile > -> MapInfo File ... > When I do this test on a normal (non seamless) tab file ogrinfo works fine > regardless of whether or not I specify the full name. > > Is this a clue as to where it's all going wrong ?. I suspect path or permissions problems. Internally the OGR needs to construct paths to the component files of the seamless layer, and this might be broken in some situations. Also, are you sure you are using the same version of OGR for Mapserver as in ogrinfo? Seamless mapinfo support is *relatively* new so if your mapserver were built with an ancient version of OGR that might be the issue, though I think this is unlikely. Daniel Morissette is the authority on mapinfo support in OGR as the author of MITAB - the library used for it. If you have a very pressing need of assistance on this you could likely contracted him (via MapGears) for support. http://www.mapgears.com/ 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 | President OSGeo, http://osgeo.org From interfacemirror at GMAIL.COM Tue Mar 6 07:30:52 2007 From: interfacemirror at GMAIL.COM (Jandost Khoso) Date: Tue, 6 Mar 2007 07:30:52 -0800 Subject: ASP.NET Control Message-ID: Hello, Can anybody refer me an ASP.NET web control that be able to render maps with ability of using PAN and Tile? Any help will be appriciated. Kindest Regards, Jandost Khoso. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Praktikant.agi at BD.SO.CH Tue Mar 6 08:07:18 2007 From: Praktikant.agi at BD.SO.CH (BJSVW PraktiantIn AGI) Date: Tue, 6 Mar 2007 17:07:18 +0100 Subject: Problems with zoomrectangle and MINSCALE with php mapscript Message-ID: Hi everybody, I have some problems with zoomrectangle and minscale. I`ve set the minscale in the WEB Object of my mapfile to 10.000 Now I try to zoom in with zoomrectangle and this works fine untill a scale of 1:10.000. I'm using php mapscript 4.8.1 But when I zoom to a scale bigger as 1:10.000 (eg 1:8000 it doesn't matter which scale) zoomrectangle gives me back an extent for my map with a scale around 1:14.000. Is this the result which zoomrectangle should deliver in this case? I think if somebody zooms further into the map as minscale allows zoomrectangle should deliver the minscale or am I wrong here. For example: We have an map with a scale of 1:11.000 now we try to zoom in by rectangle to a scale like 1:9.000 This is bigger like the minscale so zoomrectangle gives back the minscale 1:10.000 but not 1.14.000. Here is the example which I made to test zoomrectangle: setextent(619108.26548362,237920.03039802,620891.73451638,23919 2.80280864); $geoext0=ms_newrectObj(); $geoext0->setextent(619108.26548362,237920.03039802,620891.73451638,2 39192.80280864); $pix_minx = 127; $pix_miny = 63; $pix_maxx = 551; $pix_maxy = 379; $pixext = ms_newrectObj(); $pixext->setextent($pix_minx,$pix_miny,$pix_maxx,$pix_maxy); //And now zooming in $map->zoomrectangle($pixext, 675, 480, $geoext0); $pixext->free(); $image=$map->draw(); //And now my scale is somthing around 1:14.000 echo $map->scale; $image_url=$image->saveWebImage(MS_PNG, 0, 0, 0); ?> Maybe somebody can help me if this is the normal behaviour of zoomrectangle. Btw I think with zoompoint i have the same problems. Thanks in advance. Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.talbutt at DOTTEDEYES.COM Tue Mar 6 08:39:59 2007 From: mike.talbutt at DOTTEDEYES.COM (mikiet) Date: Tue, 6 Mar 2007 08:39:59 -0800 Subject: Mapinfo Seamless Vector tables in mapserver In-Reply-To: <45ED8979.40408@pobox.com> Message-ID: Ah some success. I've managed to get this to work by 1. Moving all by base tables into the same directory 2. Creating my seamless layer with the 'no path' option set. I can now access the data using ogrinfo regardless of whether or not I include the path to the tab file, and the data displays in my mapserver application. Frank Warmerdam-2 wrote: > > mikiet wrote: >> No dice eh ?, I have alittle more information in case it sheds some light >> on >> whats going on. >> >> I have set up the seamless table using mapinfo pro's seamless manager >> tool, >> specifying full path. I noticed that if I do an ogrinfo on my table it >> works >> fine >> >> C:\Tomcat5\webapps\rmxnyf\mapbase>ogrinfo test.tab >> Had to open data source read-only. >> INFO: Open of `test.tab' >> using driver `MapInfo File' successful. >> 1: Area_Mosaic (Line String) > > Miki, > > Try doing "ogrinfo -al -so C:\Tomcat5\webapps\rmxnyf\mapbase\test.tab" > from some different directory to see if the case similar to the > absolute path in mapserver works with ogrinfo. > >> However when i specify the full path of the tab file I get an error >> >> C:\Tomcat5\webapps\rmxnyf\mapbase>ogrinfo >> C:\Tomcat5\webapps\rmxnyf\mapbase\test >> .TAB >> FAILURE: >> Unable to open datasource `C:\Tomcat5\webapps\rmxnyf\mapbase\test.TAB' >> with >> the >> following drivers. >> -> OCI >> -> ESRI Shapefile >> -> MapInfo File > ... >> When I do this test on a normal (non seamless) tab file ogrinfo works >> fine >> regardless of whether or not I specify the full name. >> >> Is this a clue as to where it's all going wrong ?. > > I suspect path or permissions problems. Internally the OGR needs to > construct paths to the component files of the seamless layer, and > this might be broken in some situations. > > Also, are you sure you are using the same version of OGR for Mapserver > as in ogrinfo? Seamless mapinfo support is *relatively* new so if your > mapserver were built with an ancient version of OGR that might be > the issue, though I think this is unlikely. > > Daniel Morissette is the authority on mapinfo support in OGR as the > author of MITAB - the library used for it. If you have a very pressing > need of assistance on this you could likely contracted him (via MapGears) > for support. > > http://www.mapgears.com/ > > 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 | President OSGeo, http://osgeo.org > > -- View this message in context: http://www.nabble.com/Mapinfo-Seamless-Vector-tables-in-mapserver-tf3349859.html#a9335655 Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at MAPGEARS.COM Tue Mar 6 08:59:58 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 6 Mar 2007 11:59:58 -0500 Subject: Mapinfo Seamless Vector tables in mapserver In-Reply-To: <45ED8979.40408@pobox.com> Message-ID: Frank Warmerdam wrote: > > I suspect path or permissions problems. Internally the OGR needs to > construct paths to the component files of the seamless layer, and > this might be broken in some situations. > I think Frank is right that it must be something not working properly in the code that tries to construct the path to the individual files in the MITAB OGR driver. Is there a way you could share a sample dataset to reproduce this? (Perhaps off-list) ... or even better, file a MITAB bug and attach the sample dataset to the bug: http://bugzilla.maptools.org/enter_bug.cgi?product=MITAB > Also, are you sure you are using the same version of OGR for Mapserver > as in ogrinfo? Seamless mapinfo support is *relatively* new so if your > mapserver were built with an ancient version of OGR that might be > the issue, though I think this is unlikely. > I doubt that's the issue. Seamless table support was added in 2001 and the last serious fixes specific to seamless tables in MITAB were done in 2004 (just a memory leak), so it would have to be a quite ancient version of OGR... so ancient that it might not work at all with a recent version of MapServer. Daniel -- Daniel Morissette http://www.mapgears.com/ From dovidio at PLANETEK.IT Tue Mar 6 09:29:54 2007 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Tue, 6 Mar 2007 18:29:54 +0100 Subject: ms4w : mapserv.exe installation under Apache Message-ID: Hi ! I have installed ms4w and I have mapserv.exe in cgi-bin directory with its dll. Well, now I want to change under Apache my binary mapserv.exe. So I want to keep all setting for apache of my first ms4w installation, but I want to change only the cgi and its dll they are in another directory. Until now I have worked more with IIS. Which conf file I have to change in apache to install mapserver ? I have tried with : httpd.conf and I have changed path for mapserv.exe and its dll. Any help ? thanks -- Fabio D'Ovidio Web GIS Staff Planetek Italia s.r.l. Via Massaua 12, I-70123 Bari Tel.: +39 080 5343750 Fax: +39 080 5340280 dovidio at planetek.it - http://www.planetek.it -- From listario at GMAIL.COM Tue Mar 6 09:53:24 2007 From: listario at GMAIL.COM (J. Parapar) Date: Tue, 6 Mar 2007 18:53:24 +0100 Subject: problem in Dynamic query with postGIS In-Reply-To: Message-ID: Nimalika: For PostGIS the FILTER parameter must be set to a valid SQL WHERE clause like id=1 (numeric field) or name='Lugo' (string field) And you do not have to set the FILTERITEM parameter. Best regards Jorge 2007/3/6, nimalika Fernando : > Hi, > > Thank you very much for the guidence > Actually I tried with QUERYMAP and can get the work done if use data from > shape files , through a filter. > > But I am not clear about how to do the same using data in postGIS. My > requirement is to use data in the database. > > can you please help me on using QUERYMAP and postGIS query together ? > Any help is highly appriciated. > > best regards > > nimalika > > > On Fri, 2 Mar 2007 15:16:52 +0100, J. Parapar wrote: > > > Nimalika: > > > > It seems that in the qstring parameter you are specifying only the > >name of the village and not a condition like > >qstring=dsd_n='Ambalanthota. This results in an incorrect SQL > >condition. Changing this affects the use you do of qstring as a > >variable in DATA. I think you should try again with QueryMap, it is a > >simpler way to get the results of the query highlighted in the map. > > > > Best regards, > > Jorge > > > > > >2007/3/1, nimalika Fernando : > >> hi everybody, > >> > >> I am working in a disaster recovery application , using Mapserver and > postGIS > >> for mapping part. > >> > >> I need to implement a simple search facilty, for eaxmple if user already > knows > >> a village affected , by selecting that village name using a combo box in web > >> interface the related village should be highlighted in the map. > >> > >> I am not clear about how to implement such but I tried several options. > >> I have used a QUERYMAP object and tried . But I am not getting the work > >> done. My data resides in postGIS db and working with Maapserver in CGI > mode > >> is fine for basic operations. > >> My query in the map file is as follows > >> > >> DATA "the_geom from (select alldsdivisions.the_geom as > >> the_geom,alldsdivisions.gid as oid , > >> alldsdivisions.dsd_n as dsd_n from alldsdivisions > >> where alldsdivisions.dsd_n ='%qstring%') > >> > >> error mesage I get is as follows > >> > >> prepare_database(): Query error. Error executing POSTGIS DECLARE (the > >> actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > >> dsd_n::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),oid::text > >> from (select alldsdivisions.the_geom as the_geom,alldsdivisions.gid as oid , > >> alldsdivisions.dsd_n as dsd_n from alldsdivisions where alldsdivisions.dsd_n > >> ='Ambalanthota') AS selectedgs WHERE (Ambalanthota) and (the_geom && > >> setSRID( 'BOX3D(181659.373889 74242.41425975,303213.047119 > >> 165407.66918225)'::BOX3D,-1) )' > >> > >> Postgresql reports the error as 'ERROR: column "ambalanthota" does not > >> exist ' > >> > >> here , "Ambalanthota" mean a value of coumn dsd_n of table > >> alldsdivisions. qstring is replaced by the user selected value of the combo > box. > >> > >> I have tried to get help from postGIS users but still i couldn't solve this > >> > >> can anybody help me to figure out a solution , pls? > >> > >> thank you in advance, > >> > >> Nimalika > >> from Sri Lanka > >> > From atorresma at UC.CL Tue Mar 6 12:08:32 2007 From: atorresma at UC.CL (Adriano Torres) Date: Tue, 6 Mar 2007 17:08:32 -0300 Subject: Problems with Mapserver4.10.1--GD--Fedora Core 6 (espanol - english) In-Reply-To: <45EA9B26.208@geosignal.fr> Message-ID: Guillaume Sueur escribi?: > why don't you uninstall all rpms and build all from sources ? it's often > easier ! > > Guillaume eeeeeh... I uninstalled all gd rpms and builded from sources ... Now Mapserver 4.10.11 is working :D Thank you very much. Adriano From adams at TERRESTRIS.DE Wed Mar 7 02:44:02 2007 From: adams at TERRESTRIS.DE (Till Adams) Date: Wed, 7 Mar 2007 11:44:02 +0100 Subject: ms4w : mapserv.exe installation under Apache In-Reply-To: <45EDB322.11925.712BF45@dovidio.planetek.it> Message-ID: Fabio D'Ovidio schrieb: >Hi ! > >I have installed ms4w and I have mapserv.exe in cgi-bin directory with its dll. > >Well, now I want to change under Apache my binary mapserv.exe. So I want to keep all >setting for apache of my first ms4w installation, but I want to change only the cgi and its dll >they are in another directory. > >Until now I have worked more with IIS. Which conf file I have to change in apache to install >mapserver ? > >I have tried with : > >httpd.conf > >and I have changed path for mapserv.exe and its dll. > >Any help ? > >thanks > >-- >Fabio D'Ovidio > >Web GIS Staff >Planetek Italia s.r.l. >Via Massaua 12, I-70123 Bari >Tel.: +39 080 5343750 Fax: +39 080 5340280 >dovidio at planetek.it - http://www.planetek.it >-- > > > Fabio, there is no need to change so much. the easiest way is just to delete all dlls and mapserv.exe from the system and use the new ones. Your second possibility is to change the cgi-bin directory in the https.conf file or set a second one, if you want to use both mapservers, the one which came with ms4w and your new installation. You **may** define a second cgi-directory in the httpd.conf file. Therefore copy all the stuff where the cgi-bin is defined in the httpd.conf (from ScriptAlias /cgi-bin/ TO +/- 12 lines) and paste it into the httpd.conf file below (please make a backup-copy of the https.conf first), rename the alias name cgi-bin to whatever you want (e.g. cgi-bin_2) and set the path to another directory (e.g. from ms4w/apache/cgi-bin/ to ms4w/apache/cgi-bin_2/ (and create that directory of course!). Then copy all new mapserver stuff (all Dll's AND mapserv.exe) into ms4w/apache/cgi-bin_2/, restart apache (systempanel -> administration -> services) and you're fine. Just use the new cgi-directory in your mapfile! Greetings form Bonn, Till -- ***************************************** SensorGIS 'Geodaten in Echtzeit' http://www.sensorgis.de 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 dovidio at PLANETEK.IT Wed Mar 7 03:53:52 2007 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Wed, 7 Mar 2007 12:53:52 +0100 Subject: ms4w : mapserv.exe installation under Apache In-Reply-To: <45EE9772.4010101@terrestris.de> Message-ID: OK, thanks. I have just tried this and it works fine. Now my problem is : I have mapserv.exe, php-cgi and all dlls in cgi-bin (or cgi-bin2) directory and a PHP application in my /ms4w/apps directory so that I can see it from index.phtml in Apache/htdocs. My PHP application calls files and directories from its own root, of course, and so I want to call mapserv.exe from cgi-bin directory but I want to force the redirectory to My PHP apps root in order to configure evrything fine to work ! Is there any "REDIRECT_PATH" variable that I can set in Mapserver map file or in Apache conf file to separate cgi from php application that call it from another directory ? Thanks ! -- Fabio D'Ovidio Web GIS Staff Planetek Italia s.r.l. Via Massaua 12, I-70123 Bari Tel.: +39 080 5343750 Fax: +39 080 5340280 dovidio at planetek.it - http://www.planetek.it -- On 7 Mar 2007 at 11:44, Till Adams wrote: > Fabio D'Ovidio schrieb: > > >Hi ! > > > >I have installed ms4w and I have mapserv.exe in cgi-bin directory with its dll. > > > >Well, now I want to change under Apache my binary mapserv.exe. So I want to keep all > >setting for apache of my first ms4w installation, but I want to change only the cgi and its dll > >they are in another directory. > > > >Until now I have worked more with IIS. Which conf file I have to change in apache to install > >mapserver ? > > > >I have tried with : > > > >httpd.conf > > > >and I have changed path for mapserv.exe and its dll. > > > >Any help ? > > > >thanks > > > >-- > >Fabio D'Ovidio > > > >Web GIS Staff > >Planetek Italia s.r.l. > >Via Massaua 12, I-70123 Bari > >Tel.: +39 080 5343750 Fax: +39 080 5340280 > >dovidio at planetek.it - http://www.planetek.it > >-- > > > > > > > > Fabio, > > there is no need to change so much. > the easiest way is just to delete all dlls and mapserv.exe from the > system and use the new ones. > > Your second possibility is to change the cgi-bin directory in the > https.conf file or set a second one, if you want to use both mapservers, > the one which came with ms4w and your new installation. You **may** > define a second cgi-directory in the httpd.conf file. > > Therefore copy all the stuff where the cgi-bin is defined in the > httpd.conf (from ScriptAlias /cgi-bin/ TO +/- 12 lines) and > paste it into the httpd.conf file below (please make a backup-copy of > the https.conf first), rename the alias name cgi-bin to whatever you > want (e.g. cgi-bin_2) and set the path to another directory (e.g. from > ms4w/apache/cgi-bin/ to ms4w/apache/cgi-bin_2/ (and create that > directory of course!). > > Then copy all new mapserver stuff (all Dll's AND mapserv.exe) into > ms4w/apache/cgi-bin_2/, restart apache (systempanel -> administration -> > services) and you're fine. Just use the new cgi-directory in your mapfile! > > Greetings form Bonn, > > Till > > -- > ***************************************** > SensorGIS 'Geodaten in Echtzeit' > http://www.sensorgis.de > 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 hartpence_gis at CO.JASPER.IA.US Wed Mar 7 13:55:58 2007 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Wed, 7 Mar 2007 15:55:58 -0600 Subject: dBox Zoom out Message-ID: Hello, I am very new to using dBox, but almost have a mapping site that is ready to go. The only problem I have at this point is that I can not get teh zoom out tool to work. The code is pretty musch the same as the simple example Steve Lime gave me execpt I am trying to use a pulldown list instead of radio buttons. My site is at: http://216.203.113.94/JasperMaps/LandCorner/LandCorner.html Does anyone have any ideas what I am doing wrong? Thanks much!! Lawrence Hartpence From bfischer at HOUSTONENGINEERINGINC.COM Wed Mar 7 17:35:35 2007 From: bfischer at HOUSTONENGINEERINGINC.COM (Fischer, Brian) Date: Wed, 7 Mar 2007 19:35:35 -0600 Subject: dBox Zoom out In-Reply-To: A Message-ID: Hi Lawrence, It looks like you are well on your way to getting an application running, but I wanted to let you know about a collaborative project that is currently in the works. We are designing the application for local governments (Counties and Cities). It is still in the early stages, but taking shape. You can check out some demo's at: www.openmnnd.org. We should also have a MS4W plug-in by the end of the month. Just thought you might be interested. Brian Fischer Houston Engineering, Inc. Maple Grove, MN -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lawrence Hartpence Sent: Wednesday, March 07, 2007 3:56 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] dBox Zoom out Hello, I am very new to using dBox, but almost have a mapping site that is ready to go. The only problem I have at this point is that I can not get teh zoom out tool to work. The code is pretty musch the same as the simple example Steve Lime gave me execpt I am trying to use a pulldown list instead of radio buttons. My site is at: http://216.203.113.94/JasperMaps/LandCorner/LandCorner.html Does anyone have any ideas what I am doing wrong? Thanks much!! Lawrence Hartpence From richard.greenwood at GMAIL.COM Wed Mar 7 18:25:11 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 7 Mar 2007 19:25:11 -0700 Subject: dBox Zoom out In-Reply-To: Message-ID: On 3/7/07, Lawrence Hartpence wrote: > Hello, > > I am very new to using dBox, but almost have a mapping site that is ready to > go. The only problem I have at this point is that I can not get teh zoom out > tool to work. The code is pretty musch the same as the simple example Steve > Lime gave me execpt I am trying to use a pulldown list instead of radio buttons. > > My site is at: > http://216.203.113.94/JasperMaps/LandCorner/LandCorner.html > > Does anyone have any ideas what I am doing wrong? > > Thanks much!! > > Lawrence Hartpence > It looks like it partially works; clicking around recenters the map, but doesn't change the scale. The two parameters that MapServer is evaluating for a zoom-out are zoomdir and zoomsize. zoomdir needs to be -1, 0 , 1 for zoom-out, pan, zoom-in, respectively. zoomsize is scale factor, typically 2. Soo look at those two parameters. I'm betting that one is being set incorrectly. I use a chuck of code to display client side info which I am pasting below. I use it to quickly see what is being passed to MapServer. You declare a var "showDebugInfo" and to turn it on or off, and you add a

"debug"
at the bottom of your page to display the info. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com if (showDebugInfo) { e = document.getElementById("debug"); if(e) { var msg="Debug Info:<\/B>
"; msg+="getLayers = <\/EM><\/B>" +ms.getLayers(", ")+"
"; /* msg+="
Legend Object: <\/EM><\/B>
" for (var x in legend.treeLegend) { msg+=""+x + " = <\/EM><\/B>" + eval("legend.treeLegend."+x) + "
"; } */ msg+="
Map Object: <\/EM><\/B>
" for (var x in ms) { msg+=""+x + " = <\/EM><\/B>" + eval("ms."+x) + "
"; } e.innerHTML = msg; // "open current image in a new window<\/a>"; } } e = document.getElementById("printable"); if(e) e.innerHTML = "printable map<\/a>"; } From dovidio at PLANETEK.IT Thu Mar 8 05:23:09 2007 From: dovidio at PLANETEK.IT (Fabio D'Ovidio) Date: Thu, 8 Mar 2007 14:23:09 +0100 Subject: mapserver 4.10.0 : JBOX installation Message-ID: Does any one help me with installation under Apache ? I have configured /htdocs/java/jBox/ dir with class files for GIF, JPEG and PNG. What about built.xml file ? I have written : Must this file be in that directory ? Thank you ! -- Fabio D'Ovidio Web GIS Staff Planetek Italia s.r.l. Via Massaua 12, I-70123 Bari Tel.: +39 080 5343750 Fax: +39 080 5340280 dovidio at planetek.it - http://www.planetek.it -- From whildic3 at T8.CS.MAN.AC.UK Thu Mar 8 05:33:27 2007 From: whildic3 at T8.CS.MAN.AC.UK (Craig W) Date: Thu, 8 Mar 2007 13:33:27 +0000 Subject: php mapscript not saving raster layer,image blank Message-ID: I'm having a problem with the following script, it is just returning a black square of the map size and is not loading the raster image (correct directories have been deleted for mail): // Load MapScript extension if (!extension_loaded("MapScript")) dl('php_mapscript.'.PHP_SHLIB_SUFFIX); //create map object $map_file="C:/La2/Inetpub/wwwroot/phpscripts/ap_wcs8bit.map"; $map = ms_newMapObj($map_file); $img1 = $map->prepareimage(); $layer = $map->getLayerByName("ap040808_104124_vh"); // Render the map into an image object $layer->set("status", 1); $layer->draw($img1); // Save the map to an image file $img1->saveImage("C:/Lan/Inetpub/wwwroot/tmp/worldmap.jpg", $map); Returns the following in the browser: msDrawRasterLayerLow(ap040808_104124_vh): entering. Returns no errors in php.log although i get the errors: MapServer Error in :msSHPOpenFile() (C:/Land2/Inetpub/wwwroot/phpscripts/ap040808_104124_vh_pwr_fil_geo.tif) MapServer Error in :msSHPOpenFile() (C:/Lan2/Inetpub/wwwroot/phpscripts/ap040808_104124_vh_pwr_fil_geo.tif) If I attempt to do a getExtent() on the layer. Mapfile (some sensitive metadata taken out) is attached. MapServer Version MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG PHP MapScript Version ($Revision: 1.242.2.1 $ $Date: 2006/01/18 00:37:47 $) The layers download fine in mapserver: http://camber.mc.man.ac.uk:8080/cgi-bin/mapserv.exe?map=..\phpscripts\ap_wcs8bit.map&SERVICE=WCS&REQUEST=GetCoverage&Coverage=ap040808_104124_vh&BBOX=307912.50,594137.50,448112.50,722812.50&CRS=EPSG:27700&RESX=100&RESY=100&FORMAT=GEOTIFF and within chameleon. Anyone know what is wrong with my script, its for an OGC compliant download service. Hopefully I've given enough information. Thanks, Craig Whilding -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: mapfile.txt URL: From thesl at YAHOO.COM Thu Mar 8 07:50:20 2007 From: thesl at YAHOO.COM (Peter schrock) Date: Thu, 8 Mar 2007 07:50:20 -0800 Subject: WMS/WFS and (yearly) time-dependent data In-Reply-To: <45DD8FF3.7000903@dmsolutions.ca> Message-ID: Hello, I am having difficulties to make WMS time series work. I am using mapserver 4.10.0. I tested point data with time dimension, it worked. I tested tiled polygons, it worked. But I cannot get polygon shapefile work for time series WMS The part of my mapfile is: # Polygon layers, identitical polygon shapefiles, one shapefile for one year. tile index shapefile was created using tile4ms.exe # Test method 1: everything in one layer object LAYER NAME "timemap" TYPE RASTER STATUS ON METADATA "wms_title" "timemap" "wms_timeformat" "YYYYMMDD" "wms_timeextent" "20021130/20061130" "wms_timeitem" "DATETIME" "wms_timedefault" "20021130" "wms_srs" "EPSG:4326" END TILEINDEX "index1.shp" TILEITEM "Location" CLASSITEM "color_code" CLASS NAME "TYPE 1" EXPRESSION ([color_code]==1) COLOR 220 120 130 OUTLINECOLOR 150 150 150 END CLASS NAME "TYPE 2" EXPRESSION ([color_code]==2) COLOR 255 255 155 OUTLINECOLOR 150 150 150 END CLASS NAME "TYPE 3" EXPRESSION ([color_code]==0) COLOR 200 200 200 OUTLINECOLOR 100 100 100 END END # one layer object method # Test method 2: seperate tileindex layer and data layer LAYER NAME "mylayer" STATUS ON TYPE RASTER TILEINDEX "index1" TILEITEM "Location" PROJECTION "init=epsg:4326" END METADATA "DESCRIPTION" "mylayer" "wms_title" "mylayer" "WMS_SRS" "epsg:4326" "wms_timeformat" "YYYYMMDD" "wms_timeextent" "20021130/20061130" "wms_timeitem" "DATETIME" "wms_timedefault" "20030210" END SIZEUNITS PIXELS CLASSITEM "color_code" CLASS NAME "TYPE 1" EXPRESSION ([color_code]==1) COLOR 220 120 130 OUTLINECOLOR 150 150 150 END CLASS NAME "TYPE 2" EXPRESSION ([color_code]==2) COLOR 255 255 155 OUTLINECOLOR 150 150 150 END CLASS NAME "TYPE 3" EXPRESSION ([color_code]==0) COLOR 200 200 200 OUTLINECOLOR 100 100 100 END END LAYER NAME "tidx" TYPE TILEINDEX STATUS ON DATA index1 FILTERITEM 'DATETIME' FILTER '%DATETIME%' END # tile layer The error message is: msDrawMap(): Image handling error. Failed to draw layer named 'timemap'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. EPPL7 support is not available. Did mapserver support WMS time series using polygon shapefile? Yewondwossen Assefa wrote: > > If your are serving layers as wms you could do soemthing like this : > > - define a tileindex layer example: > > LAYER > NAME "mylayer" > STATUS ON > # TYPE POLYGON > TYPE RASTER > METADATA > "DESCRIPTION" "mylayer" > "wms_title" "mylayer" > "wms_timeitem" "time" > "wms_timeextent" "1970/2006" > "WMS_SRS" "epsg:4326" > END > SIZEUNITS PIXELS > TILEINDEX "tile_file" > TILEITEM "location" > > - have a tile index that has at least 2 field (localtion for the > files, and a time field) : > location time > mypath/myfile 2005 > ..... ... > > - doing a request of Getmap : something like > GetMap&Version=1.1.1&LAYERS=mylayer&Time=2005 > > Not sure if that fits your model. > > Best Regards > > -- View this message in context: http://www.nabble.com/Re%3A-WMS-WFS-and-%28yearly%29-time-dependent-data-tf3266243.html#a9374208 Sent from the Mapserver - User mailing list archive at Nabble.com. From pranjal_24 at YAHOO.COM Thu Mar 8 07:58:12 2007 From: pranjal_24 at YAHOO.COM (Pranjal Karwal) Date: Thu, 8 Mar 2007 07:58:12 -0800 Subject: help map is not getting displayed on some computers and being displayed on some... Message-ID: i made this mapfile routing.map and used it with kamap.... even if i use this mapfile with just mapserver still the map is not getting displayed.... surprisingly the same thing is getting displayed on one comp which is a very fast rig... the other 2 are p4 2.4 GHz .. . does processor power matters? and when i used shp2img the png file was made what could be possibly wrong? PranjaL ____________________________________________________________________________________ Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: routing.map URL: From Steve.Lime at DNR.STATE.MN.US Thu Mar 8 08:19:39 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 8 Mar 2007 10:19:39 -0600 Subject: Fwd: [UMN_MAPSERVER-DEV] Error Compiling MapServer 4.8.4 Message-ID: An embedded message was scrubbed... From: Juan Manuel Docile Subject: [UMN_MAPSERVER-DEV] Error Compiling MapServer 4.8.4 Date: Wed, 7 Mar 2007 16:46:43 -0300 Size: 9366 URL: From rodrigomlg at GMAIL.COM Thu Mar 8 08:30:51 2007 From: rodrigomlg at GMAIL.COM (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Thu, 8 Mar 2007 16:30:51 +0000 Subject: self overlaped linestring not drawed Message-ID: Hi everybody. I have a linestring layer with bus routes. Some buses pass two times over the same zone, so two different segments of the linestring overlaps (same start and end point). The strange thing is that mapserver sometimes dont show this segments even for the same zoom level (i.e. when i pan the map sometimes the segments shows and somtimes no). The rest of the linestring are draw perfectly. Obviously an easy workaround is move the segments so its don't overlaps one each other. But I think that it is quite strange. May be it could be a bug (I'm using ms4w). I dont think it could be a problem with my mapfile cause sometimes this segments are drawed an somtimes not. Thanks a lot and sorry my english. Rodrigo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Philip.Chau at EC.GC.CA Thu Mar 8 09:17:33 2007 From: Philip.Chau at EC.GC.CA (Chau,Philip [PYR]) Date: Thu, 8 Mar 2007 09:17:33 -0800 Subject: Multiple versions of mapserver on the same IIS Message-ID: I'm struggling to find out to see if this is possible or not: I have one application which requires the 4.9 version of Mapserver, while another app (Chameleon) requires the 4.8.1 version of Mapserver, and I'm trying to get it to run on the same machine. They are seperated into two different website in IIS, however, the Environment Variable PATH needs to be configured on either the 4.8.1 mapserver directory or the 4.9 directory, so only one application will run or the other. Is there anyway to get both running at the same time? Phil Philip Chau, B.Sc, PMP Water Quality Monitoring and Surveillance Science and Technology Environment Canada 201-401 Burrard Street Vancouver, BC V6C 3S5 Tel: 604.664.4066 Fax: 604.664.9126 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Thu Mar 8 09:50:38 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 8 Mar 2007 12:50:38 -0500 Subject: Multiple versions of mapserver on the same IIS In-Reply-To: Message-ID: Phil - Provided there are no differences in any supporting libraries that you need, this is pretty simple. You can either rename the two binaries so you refer to mapserv48.exe and mapserv49.exe, or create a different cgi-bin virtual directory on each Web site, each pointing to a directory with the preferred binary installed in it. - Ed -- Ed McNierney President and Chief Mapmaker Maps a la carte, Inc. / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com From: "Chau,Philip [PYR]" Reply-To: "Chau,Philip [PYR]" Date: Thu, 8 Mar 2007 09:17:33 -0800 To: Conversation: Multiple versions of mapserver on the same IIS Subject: [UMN_MAPSERVER-USERS] Multiple versions of mapserver on the same IIS I'm struggling to find out to see if this is possible or not: I have one application which requires the 4.9 version of Mapserver, while another app (Chameleon) requires the 4.8.1 version of Mapserver, and I'm trying to get it to run on the same machine. They are seperated into two different website in IIS, however, the Environment Variable PATH needs to be configured on either the 4.8.1 mapserver directory or the 4.9 directory, so only one application will run or the other. Is there anyway to get both running at the same time? Phil Philip Chau, B.Sc, PMP Water Quality Monitoring and Surveillance Science and Technology Environment Canada 201-401 Burrard Street Vancouver, BC V6C 3S5 Tel: 604.664.4066 Fax: 604.664.9126 -------------- next part -------------- An HTML attachment was scrubbed... URL: From debbie.sikora at MAPINFO.COM Thu Mar 8 13:00:55 2007 From: debbie.sikora at MAPINFO.COM (Deb Sikora) Date: Thu, 8 Mar 2007 15:00:55 -0600 Subject: raster reprojection question Message-ID: Hello, I've recently downloaded and installed MapServer, and I am trying to use the WMS to serve raster images stored as .png w/ .pgw. The image is displayed fine if I use the same projection in the request that I specified in the .map file. If, however, I specify a different projection in the request, I just get a solid gray rectangle. I am new to MapServer, so I apologize if this is an ignorant question, but could someone possibly let me know what I might be doing wrong? Thank you very much, Deb From boolean10001 at YAHOO.COM Thu Mar 8 13:35:31 2007 From: boolean10001 at YAHOO.COM (Carlos Ruiz) Date: Thu, 8 Mar 2007 13:35:31 -0800 Subject: Help using Java and Mapscript Message-ID: Hi to everyone, I started to develop some sample application using Java with Mapscript, i finally display some layer, but if i try to scale map or make a zoom, i get an empty map, don't know what went wrong. This is the code: package edu.umn.gis.mapserver; public final class Generate { private mapObj map = null; private imageObj image = null; Generate() { map = new mapObj("test.map"); image = map.draw("test1.png", map); // we're ok at this point map.scale(2); image = map.draw("test2.png", map); // empty map returned ! } public static void main(String[] args) { new Generate(); } } Does someone knows what is wrong with this ? Thanks in advance ! --------------------------------- 8:00? 8:25? 8:40? Find a flick in no time with theYahoo! Search movie showtime shortcut. -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Mar 8 14:55:54 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 8 Mar 2007 17:55:54 -0500 Subject: self overlaped linestring not drawed In-Reply-To: <10cf58b30703080830w4cdce383lda21f768a9907761@mail.gmail.com> Message-ID: Rodrigo Mart?n L?PEZ GREGORIO wrote: > Hi everybody. > > I have a linestring layer with bus routes. Some buses pass two times > over the same zone, so two different segments of the linestring overlaps > (same start and end point). The strange thing is that mapserver > sometimes dont show this segments even for the same zoom level ( i.e. > when i pan the map sometimes the segments shows and somtimes no). The > rest of the linestring are draw perfectly. > > Obviously an easy workaround is move the segments so its don't overlaps > one each other. But I think that it is quite strange. May be it could be > a bug (I'm using ms4w). I dont think it could be a problem with my > mapfile cause sometimes this segments are drawed an somtimes not. Rodrigo, If you can boil this down to a simple mapfile, and a simple shapefile and a command to render the map with shp2img that demonstrates the problem, then I think you should submit this as a bug report. I can't think of any reason self-intersection should be a problem for a linestring. 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 | President OSGeo, http://osgeo.org From myardbenoit at GMAIL.COM Thu Mar 8 14:39:57 2007 From: myardbenoit at GMAIL.COM (Benoit Myard) Date: Thu, 8 Mar 2007 23:39:57 +0100 Subject: About performances Message-ID: Hi list, We are on the process of replacing our custom GIS tools by MapServer because it offers greater flexibility and more features. We also appreciate its open approach to the GIS universe and the ability to integrate it in a wide variety of tools. We currently work with E00 data which we convert to Arc/Info Vector Coverage (with AVCE00) but we experience major performance issues. For a reduced set of data (about 2 MB), MapServer takes up to 15 seconds to render a rather small map (75,000 km?) on a pretty decent hardware (Sun-Fire-T1000 running Solaris 10). Note that MapServer doesn't have to reproject the data. We wonder if the slowness experienced is due to the data format used; if so, which format would you recommend ? Also, do you think that using the FastCGI approach would significantly improve the performances ? I read that FastCGI is good for databases but not of much use for files geographic databases; is that still true, and what's current status of FastCGI support in MapServer ? Could you share performance reports (data formats used, amount of data available, time to render and hardware specs) with the list so that we can compare ? Are any of you aware of recent performance benchmarks, so that we have a reference ? Do you have any ideas or tips to fasten MapServer besides tiles caching ? Thanks in advance. -- Benoit Myard From mr.bryn at GMAIL.COM Thu Mar 8 15:26:47 2007 From: mr.bryn at GMAIL.COM (Bryn Roberts) Date: Fri, 9 Mar 2007 10:26:47 +1100 Subject: queryByAttributes with Oracle Spatial Message-ID: Hi list, I am getting errors when attempting to use the queryByAttributes function on Oracle Spatial layers. Everything works perfectly when the query returns more than one result or no results, but if there is just one result returned then I see the following error message: Fatal error: [MapServer Error]: msDBFGetItemIndex(): Item '' not found. in C:\ms4w\Apache\htdocs\editor\includes\kaSearch.php on line 172 Lines 171 and 172 are: $oResultCache=$oLayer->getResult($i); $oShape=$oLayer->getShape($oResultCache->tileindex, $oResultCache->shapeindex); before these lines queryByAttributes is called as follows: $searchstring='"'.$szSearchfield.' LIKE \''.$_GET['searchstring'].'\'"'; if ($oLayer->queryByAttributes($szSearchfield, $searchstring, MS_MULTIPLE)==MS_SUCCESS) $szSearchfield contains the table field to search on and searchstring is the string I am searching for. any help on this error would be greatly appreciated. Cheers, Bryn PS. yes I am using kamap, I posted to their mailing list first but no one there has been able to help me! From warmerdam at POBOX.COM Thu Mar 8 16:52:33 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 8 Mar 2007 19:52:33 -0500 Subject: About performances In-Reply-To: <6fb81fc70703081439t2223828bv576a7ee032373b61@mail.gmail.com> Message-ID: Benoit Myard wrote: > Hi list, > > We are on the process of replacing our custom GIS tools by MapServer > because it offers greater flexibility and more features. We also > appreciate its open approach to the GIS universe and the ability to > integrate it in a wide variety of tools. > > We currently work with E00 data which we convert to Arc/Info Vector > Coverage (with AVCE00) but we experience major performance issues. > > For a reduced set of data (about 2 MB), MapServer takes up to 15 > seconds to render a rather small map (75,000 km?) on a pretty decent > hardware (Sun-Fire-T1000 running Solaris 10). Note that MapServer > doesn't have to reproject the data. > > We wonder if the slowness experienced is due to the data format used; > if so, which format would you recommend ? Benoit, I don't know the details of your data, or what rendering options you are using. But if you are rendering polygon layers from arcinfo binary coverages the polygons have to be assembled from arcs "on the fly" and this can result in quite a bit of extra seeking around to find data. I would suggest translating the layer(s) you want to use to shapefiles, and comparing the performance. If it is still slow then I think you will need to provide additional detail or examples of what you are doing that others can investigate. > Also, do you think that using the FastCGI approach would significantly > improve the performances ? I read that FastCGI is good for databases > but not of much use for files geographic databases; is that still > true, and what's current status of FastCGI support in MapServer ? FastCGI helps to make up for high connection costs. For files that would equate to formats that are expensive to open. I doubt very much that applies in this case. > Could you share performance reports (data formats used, amount of data > available, time to render and hardware specs) with the list so that we > can compare ? Are any of you aware of recent performance benchmarks, > so that we have a reference ? > > Do you have any ideas or tips to fasten MapServer besides tiles caching ? 1) Use shapefiles 2) Break source data into tiles if you have a very large dataset. 3) spatially index your files. 4) Produce reduced complexity datasets for overview maps that would otherwise include hundreds of thousands of features. I think you will find other performance hints in the email archives and perhaps amoung the web site documentation. The key is to set it up so that mapserver only needs to process a reasonable number of features for a given map request, and that it can find them quickly. 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 | President OSGeo, http://osgeo.org From ed at TOPOZONE.COM Thu Mar 8 18:45:39 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 8 Mar 2007 21:45:39 -0500 Subject: raster reprojection question In-Reply-To: A Message-ID: Deb - First, make sure your MapServer is built with PROJ support, by running "mapserv -v" from a command line and looking for SUPPORTS=PROJ in the output. If so, then we'll assume for the moment that you got PROJ installed correctly as you installed MapServer (that might not be true). Your .map file needs to advertise the EPSG projections your WMS is willing to advertise and support. Did you read the "WMS Servers with MapServer" page at http://mapserver.gis.umn.edu/docs/howto/wms_server and follow the instructions? Make sure you do so, and then use a "Request=GetCapabilities" call to your MapServer WMS server to make sure you're advertising what you expect. If you're still having trouble, please post your .map file and the WMS request you're making against it. 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 Deb Sikora Sent: Thursday, March 08, 2007 4:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] raster reprojection question Hello, I've recently downloaded and installed MapServer, and I am trying to use the WMS to serve raster images stored as .png w/ .pgw. The image is displayed fine if I use the same projection in the request that I specified in the .map file. If, however, I specify a different projection in the request, I just get a solid gray rectangle. I am new to MapServer, so I apologize if this is an ignorant question, but could someone possibly let me know what I might be doing wrong? Thank you very much, Deb From percyd at PDX.EDU Thu Mar 8 20:44:20 2007 From: percyd at PDX.EDU (percy) Date: Thu, 8 Mar 2007 20:44:20 -0800 Subject: About performances In-Reply-To: <45F0AFD1.5010008@pobox.com> Message-ID: Benoit, to be explicit about Frank's step #4 4) Produce reduced complexity datasets for overview maps that would > otherwise include hundreds of thousands of features. What I did for the Oregon Geology map (http://geospatial.research.pdx.edu/ogdc/) to simplify the polygons was to load the data into PostGIS and then execute a command like this: pgsql2shp -f simplelith -h localhost -u mapserve geology -s "select simplify(the_geom, 1000) as the_geom, gnlith_u from lithology" This connects to the geology database and outputs a shapefile called simplelith from the table lithology with a reduced set of vertices, in this case one every 1000 feet. I then serve this shapefile at zoomed out scales. When zoomed out at the initial scale this "generalization" is virtually undetectable and got my load time from ~30 seconds down to 4 seconds. That's one approach! :-) Frank Warmerdam wrote: > Benoit Myard wrote: >> Hi list, >> >> We are on the process of replacing our custom GIS tools by MapServer >> because it offers greater flexibility and more features. We also >> appreciate its open approach to the GIS universe and the ability to >> integrate it in a wide variety of tools. >> >> We currently work with E00 data which we convert to Arc/Info Vector >> Coverage (with AVCE00) but we experience major performance issues. >> >> For a reduced set of data (about 2 MB), MapServer takes up to 15 >> seconds to render a rather small map (75,000 km?) on a pretty decent >> hardware (Sun-Fire-T1000 running Solaris 10). Note that MapServer >> doesn't have to reproject the data. >> >> We wonder if the slowness experienced is due to the data format used; >> if so, which format would you recommend ? > > Benoit, > > I don't know the details of your data, or what rendering options you > are using. But if you are rendering polygon layers from arcinfo binary > coverages the polygons have to be assembled from arcs "on the fly" and > this can result in quite a bit of extra seeking around to find data. > > I would suggest translating the layer(s) you want to use to shapefiles, > and comparing the performance. If it is still slow then I think you will > need to provide additional detail or examples of what you are doing that > others can investigate. > >> Also, do you think that using the FastCGI approach would significantly >> improve the performances ? I read that FastCGI is good for databases >> but not of much use for files geographic databases; is that still >> true, and what's current status of FastCGI support in MapServer ? > > FastCGI helps to make up for high connection costs. For files that > would equate to formats that are expensive to open. I doubt very > much that applies in this case. > >> Could you share performance reports (data formats used, amount of data >> available, time to render and hardware specs) with the list so that we >> can compare ? Are any of you aware of recent performance benchmarks, >> so that we have a reference ? >> >> Do you have any ideas or tips to fasten MapServer besides tiles caching ? > > 1) Use shapefiles > 2) Break source data into tiles if you have a very large dataset. > 3) spatially index your files. > 4) Produce reduced complexity datasets for overview maps that would > otherwise > include hundreds of thousands of features. > > I think you will find other performance hints in the email archives and > perhaps amoung the web site documentation. The key is to set it up so > that mapserver only needs to process a reasonable number of features for > a given map request, and that it can find them quickly. > > Best regards, -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From funkbucket at GMAIL.COM Fri Mar 9 08:26:59 2007 From: funkbucket at GMAIL.COM (Ben Tuttle) Date: Fri, 9 Mar 2007 09:26:59 -0700 Subject: Adding a shape to a map dynamically Message-ID: Hi all- I'd like to overlay a polygon on my map based on coordinates input form a form. I'm wondering what the best way would be to do this. My first thoughts were to either add a layer dynamically as an inline feature or perhaps to create a shapeObj (not sure if this will work as expected) and draw it. Any thoughts on the best way to do something like this? From richard.greenwood at GMAIL.COM Fri Mar 9 08:50:40 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 9 Mar 2007 09:50:40 -0700 Subject: mapserver 4.10.0 : JBOX installation In-Reply-To: <45F01C4D.6765.107DA0F0@dovidio.planetek.it> Message-ID: On 3/8/07, Fabio D'Ovidio wrote: > Does any one help me with installation under Apache ? > > I have configured /htdocs/java/jBox/ dir with class files for GIF, JPEG and PNG. > > What about built.xml file ? > > I have written : > > > > > Must this file be in that directory ? > > > Thank you ! > > -- > Fabio D'Ovidio > > Web GIS Staff > Planetek Italia s.r.l. > Via Massaua 12, I-70123 Bari > Tel.: +39 080 5343750 Fax: +39 080 5340280 > dovidio at planetek.it - http://www.planetek.it > -- > build.xml is not required to run jBox. It is only used to compile a new version of jBox. It is an Ant build file, similar to a Makefile. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From Steve.Lime at DNR.STATE.MN.US Fri Mar 9 08:49:19 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 9 Mar 2007 10:49:19 -0600 Subject: Adding a shape to a map dynamically In-Reply-To: <259e26270703090826n232af065ndf0436ec711e2489@mail.gmail.com> Message-ID: What technology options do you have? Are you using MapScript, the CGI, any particular client? Many of the clients have their own abilities here. With MapScript I would define your presentation layer ahead of time in the mapfile, build a shapeObj and add it to the layer, then draw the layer or map. With the CGI you can define inline features at runtime. Here's an example (w/a point): http://maps.dnr.state.mn.us/cgi-bin/mapserv410?map=/usr/local/mapserver/apps/waters/csg/reference.map&mode=map&layer=site&map_site_feature_points=342601.236380747+5193344.65190589 There is a presentation layer called "site" that I add one point to. Same approach would apply to a polygon, just more points (first=last). Steve >>> On 3/9/2007 at 10:26 AM, in message <259e26270703090826n232af065ndf0436ec711e2489 at mail.gmail.com>, Ben Tuttle wrote: > Hi all- > I'd like to overlay a polygon on my map based on coordinates input > form a form. I'm wondering what the best way would be to do this. > My first thoughts were to either add a layer dynamically as an inline > feature or perhaps to create a shapeObj (not sure if this will work as > expected) and draw it. Any thoughts on the best way to do something > like this? From thesl at YAHOO.COM Fri Mar 9 10:03:34 2007 From: thesl at YAHOO.COM (Peter Shrock) Date: Fri, 9 Mar 2007 10:03:34 -0800 Subject: Does MapServer support WMS time series using polygon shapefiles? Message-ID: Hello,all: I am having difficulties to make WMS time series work. I am using mapserver 4.10.0. I tested point data with time dimension, it worked. I tested tiled polygons, it worked. But I cannot get polygon shapefile work for time series WMS I used identitical polygon shapefiles, one shapefile for one year. tile index shapefile (index1.shp) was created using tile4ms.exe, and I verified the contents of the file. I tried two methods in order to make the WMS time series work. Both failed. Could you please help me? # Test method 1: everything in one layer object LAYER NAME "timemap" TYPE RASTER STATUS ON METADATA "wms_title" "timemap" "wms_timeformat" "YYYYMMDD" "wms_timeextent" "20021130/20061130" "wms_timeitem" "DATETIME" "wms_timedefault" "20021130" "wms_srs" "EPSG:4326" END TILEINDEX "index1.shp" TILEITEM "Location" CLASSITEM "color_code" CLASS NAME "TYPE 1" EXPRESSION ([color_code]==1) COLOR 220 120 130 OUTLINECOLOR 150 150 150 END CLASS NAME "TYPE 2" EXPRESSION ([color_code]==2) COLOR 255 255 155 OUTLINECOLOR 150 150 150 END CLASS NAME "TYPE 3" EXPRESSION ([color_code]==0) COLOR 200 200 200 OUTLINECOLOR 100 100 100 END END # one layer object method # Test method 2: seperate tileindex layer and data layer LAYER NAME "mylayer" STATUS ON TYPE RASTER TILEINDEX "index1" TILEITEM "Location" PROJECTION "init=epsg:4326" END METADATA "wms_title" "mylayer" "wms_srs" "epsg:4326" "wms_timeformat" "YYYYMMDD" "wms_timeextent" "20021130/20061130" "wms_timeitem" "DATETIME" "wms_timedefault" "20030210" END SIZEUNITS PIXELS CLASSITEM "color_code" CLASS NAME "TYPE 1" EXPRESSION ([color_code]==1) COLOR 220 120 130 OUTLINECOLOR 150 150 150 END CLASS NAME "TYPE 2" EXPRESSION ([color_code]==2) COLOR 255 255 155 OUTLINECOLOR 150 150 150 END CLASS NAME "TYPE 3" EXPRESSION ([color_code]==0) COLOR 200 200 200 OUTLINECOLOR 100 100 100 END END LAYER NAME "tidx" TYPE TILEINDEX STATUS ON DATA index1 FILTERITEM 'DATETIME' FILTER '%DATETIME%' END # tile layer The error message is: msDrawMap(): Image handling error. Failed to draw layer named 'timemap'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. EPPL7 support is not available. The error message does not seem helpful. Thanks Peter ____________________________________________________________________________________ Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front From naci0002 at UMN.EDU Fri Mar 9 10:12:10 2007 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Fri, 9 Mar 2007 12:12:10 -0600 Subject: Does MapServer support WMS time series using polygon shapefiles? In-Reply-To: <817081.76297.qm@web38105.mail.mud.yahoo.com> Message-ID: Peter, What happens when you change the TYPE from RASTER to POLYGON? -Perry Peter Shrock wrote: > Hello,all: > > I am having difficulties to make WMS time series work. > > I am using mapserver 4.10.0. I tested point data with time dimension, it > worked. I tested tiled polygons, it worked. > > But I cannot get polygon shapefile work for time series WMS > > I used identitical polygon shapefiles, one shapefile for one year. tile index > shapefile (index1.shp) was created using tile4ms.exe, and I verified the > contents of the file. > > I tried two methods in order to make the WMS time series work. Both failed. > > Could you please help me? > > # Test method 1: everything in one layer object > LAYER > NAME "timemap" > TYPE RASTER > STATUS ON > METADATA > "wms_title" "timemap" > "wms_timeformat" "YYYYMMDD" > "wms_timeextent" "20021130/20061130" > "wms_timeitem" "DATETIME" > "wms_timedefault" "20021130" > "wms_srs" "EPSG:4326" > END > TILEINDEX "index1.shp" > TILEITEM "Location" > > CLASSITEM "color_code" > CLASS > NAME "TYPE 1" > EXPRESSION ([color_code]==1) > COLOR 220 120 130 > OUTLINECOLOR 150 150 150 > END > > CLASS > NAME "TYPE 2" > EXPRESSION ([color_code]==2) > COLOR 255 255 155 > OUTLINECOLOR 150 150 150 > END > > CLASS > NAME "TYPE 3" > EXPRESSION ([color_code]==0) > COLOR 200 200 200 > OUTLINECOLOR 100 100 100 > END > END # one layer object method > > > # Test method 2: seperate tileindex layer and data layer > LAYER > NAME "mylayer" > STATUS ON > TYPE RASTER > TILEINDEX "index1" > TILEITEM "Location" > PROJECTION > "init=epsg:4326" > END > > METADATA > "wms_title" "mylayer" > "wms_srs" "epsg:4326" > "wms_timeformat" "YYYYMMDD" > "wms_timeextent" "20021130/20061130" > "wms_timeitem" "DATETIME" > "wms_timedefault" "20030210" > END > SIZEUNITS PIXELS > > CLASSITEM "color_code" > CLASS > NAME "TYPE 1" > EXPRESSION ([color_code]==1) > COLOR 220 120 130 > OUTLINECOLOR 150 150 150 > END > > CLASS > NAME "TYPE 2" > EXPRESSION ([color_code]==2) > COLOR 255 255 155 > OUTLINECOLOR 150 150 150 > END > > CLASS > NAME "TYPE 3" > EXPRESSION ([color_code]==0) > COLOR 200 200 200 > OUTLINECOLOR 100 100 100 > END > END > > LAYER > NAME "tidx" > TYPE TILEINDEX > STATUS ON > DATA index1 > FILTERITEM 'DATETIME' > FILTER '%DATETIME%' > END # tile layer > > The error message is: > msDrawMap(): Image handling error. Failed to draw layer named 'timemap'. > msDrawRaster(): Image handling error. Unrecognized or unsupported image format > drawEPP(): Image handling error. EPPL7 support is not available. > > The error message does not seem helpful. > > Thanks > > Peter > > > > ____________________________________________________________________________________ > Bored stiff? Loosen up... > Download and play hundreds of games for free on Yahoo! Games. > http://games.yahoo.com/games/front > From funkbucket at GMAIL.COM Fri Mar 9 10:34:28 2007 From: funkbucket at GMAIL.COM (Ben Tuttle) Date: Fri, 9 Mar 2007 11:34:28 -0700 Subject: Adding a shape to a map dynamically In-Reply-To: <45F13C29.5157.008F.0@dnr.state.mn.us> Message-ID: I was planning on using ruby/mapscript. I am trying to build a small interface to be viewed through a web browser. I've considered some of the clients, but they tend to be more than I need, so I was thinking I'd just build it with mapscript. Your suggestion of adding a point to a layer sounds about like what I want to do. The only difference would be that we have quite a few mapfiles so ideally I'd like to add the layer dynamically as well, rather than add it to every mapfile. I have been playing with the code below, but it doesn't show the box. Any chance this is a limitation of adding the layer dynamically or am I just implementing it incorrectly? bbox = Mapscript::ShapeObj.new(2) p1 = Mapscript::PointObj.new(Request['West'], Request['North']) p2 = Mapscript::PointObj.new(Request['East'], Request['North']) p3 = Mapscript::PointObj.new(Request['East'], Request['South']) p4 = Mapscript::PointObj.new(Request['West'], Request['South']) line = Mapscript::LineObj.new line.add(p1) line.add(p2) line.add(p3) line.add(p4) line.add(p1) bbox.add(line) map = Mapscript::MapObj.new "#{map_path}countries.map" bboxLayer = Mapscript::LayerObj.new(map) bboxLayer.name = "bbox" bboxLayer.type = 2 bboxLayer.status = 0 bboxLayer.addFeature(bbox) cls = Mapscript::ClassObj.new(bboxLayer) style = Mapscript::StyleObj.new() color = Mapscript::ColorObj.new() color.red = 107 color.green = 158 color.blue = 160 style.color = color cls.insertStyle(style) image = Mapscript::ImageObj.new(width=800,height=382) image=map.draw() bboxLayer.draw(map, image) image.save("#{image_path}temp.png") image_url = image.imageurl On 3/9/07, Steve Lime wrote: > What technology options do you have? Are you using MapScript, the CGI, any particular client? > > Many of the clients have their own abilities here. > > With MapScript I would define your presentation layer ahead of time in the mapfile, build a shapeObj and add it to the layer, then draw the layer or map. > > With the CGI you can define inline features at runtime. Here's an example (w/a point): > > http://maps.dnr.state.mn.us/cgi-bin/mapserv410?map=/usr/local/mapserver/apps/waters/csg/reference.map&mode=map&layer=site&map_site_feature_points=342601.236380747+5193344.65190589 > > There is a presentation layer called "site" that I add one point to. Same approach would apply to a polygon, just more points (first=last). > > Steve > > >>> On 3/9/2007 at 10:26 AM, in message > <259e26270703090826n232af065ndf0436ec711e2489 at mail.gmail.com>, Ben Tuttle > wrote: > > Hi all- > > I'd like to overlay a polygon on my map based on coordinates input > > form a form. I'm wondering what the best way would be to do this. > > My first thoughts were to either add a layer dynamically as an inline > > feature or perhaps to create a shapeObj (not sure if this will work as > > expected) and draw it. Any thoughts on the best way to do something > > like this? > > From rdmailings at DUIF.NET Fri Mar 9 10:39:42 2007 From: rdmailings at DUIF.NET (Richard Duivenvoorde) Date: Fri, 9 Mar 2007 19:39:42 +0100 Subject: Mapserver, PostGIS and case Message-ID: Hi List, I've found some other postings about it. But think I've encountered a bug or otherwise some non-logical behaviour. I changed a PostGIS table with a geomety column name the_geom to LOCATIE. CREATE TABLE "POINTLAYER" ( ... "LOCATIE" geometry NOT NULL, ... After some fiddling (reading the postgresql help on 'Identifiers and Key Words' and the mapserver list etc) around I was able to show a MAP using the following DATA string in the mapfile: DATA '"LOCATIE" FROM (select *, oid from "public"."POINTLAYER") as foo using unique oid using SRID=28992' But the featureinfo requests keep failing then with an mapserver error: Fri Mar 09 19:23:53 2007 - msPOSTGISLayerGetItems(): Query error. msPOSTGISLayerGetItems: tried to find the geometry column in the results from the database, but couldnt find it. Is it miss-capitialized? '"LOCATIE"' After changing the column name LOCATIE to locatie: CREATE TABLE "POINTLAYER" ( ... locatie geometry NOT NULL, ... and datastring: DATA '"locatie" FROM (select *, oid from "public"."POINTLAYER") as foo using unique oid using SRID=28992' produces a map, but NO featureresponse, but errors: msPOSTGISLayerGetItems: tried to find the geometry column in the results from the database, but couldnt find it. Is it miss-capitialized? '"locatie"' changing the DATA-string to: DATA 'locatie FROM (select *, oid from "public"."POINTLAYER") as foo using unique oid using SRID=28992' is producing both a map and a featureinfo response :-) It looks like there is some fiddling around with double quotes in the mapserver code, but it looks like the mapping part and featureinfo part are working in different ways with quotes? So, it's working for me now, but I thought that it may be helpfull to others to read this. Should I post a bug for this? Richard From funkbucket at GMAIL.COM Fri Mar 9 11:27:54 2007 From: funkbucket at GMAIL.COM (Ben Tuttle) Date: Fri, 9 Mar 2007 12:27:54 -0700 Subject: Adding a shape to a map dynamically In-Reply-To: <259e26270703091034y5e4890a9i10510c84e2df1fbc@mail.gmail.com> Message-ID: Oops, just had my type and status set incorrectly, switched to the constants and now it seems to work. This does what I was looking for and from the responses sounds like a reasonable way to go about it. The code is below. Thanks to all who responded (and is anyone thinks I am going about this the wrong way I'd be happy to entertain alternatives). bbox = Mapscript::ShapeObj.new(Mapscript::MS_SHAPE_LINE) p1 = Mapscript::PointObj.new(Request['West'], Request['North']) p2 = Mapscript::PointObj.new(Request['East'], Request['North']) p3 = Mapscript::PointObj.new(Request['East'], Request['South']) p4 = Mapscript::PointObj.new(Request['West'], Request['South']) line = Mapscript::LineObj.new line.add(p1) line.add(p2) line.add(p3) line.add(p4) line.add(p1) bbox.add(line) map = Mapscript::MapObj.new "#{map_path}countries.map" bboxLayer = Mapscript::LayerObj.new(map) bboxLayer.name = "bbox" bboxLayer.type = Mapscript::MS_LAYER_LINE bboxLayer.status = Mapscript::MS_ON bboxLayer.addFeature(bbox) cls = Mapscript::ClassObj.new(bboxLayer) style = Mapscript::StyleObj.new() color = Mapscript::ColorObj.new() color.red = 107 color.green = 158 color.blue = 160 style.color = color cls.insertStyle(style) image = Mapscript::ImageObj.new(width=800,height=382) image=map.draw() bboxLayer.draw(map, image) image.save("#{image_path}temp.png") image_url = image.imageurl On 3/9/07, Ben Tuttle wrote: > I was planning on using ruby/mapscript. I am trying to build a small > interface to be viewed through a web browser. I've considered some of > the clients, but they tend to be more than I need, so I was thinking > I'd just build it with mapscript. Your suggestion of adding a point to > a layer sounds about like what I want to do. The only difference would > be that we have quite a few mapfiles so ideally I'd like to add the > layer dynamically as well, rather than add it to every mapfile. I have > been playing with the code below, but it doesn't show the box. Any > chance this is a limitation of adding the layer dynamically or am I > just implementing it incorrectly? > > bbox = Mapscript::ShapeObj.new(2) > p1 = Mapscript::PointObj.new(Request['West'], Request['North']) > p2 = Mapscript::PointObj.new(Request['East'], Request['North']) > p3 = Mapscript::PointObj.new(Request['East'], Request['South']) > p4 = Mapscript::PointObj.new(Request['West'], Request['South']) > line = Mapscript::LineObj.new > line.add(p1) > line.add(p2) > line.add(p3) > line.add(p4) > line.add(p1) > bbox.add(line) > > map = Mapscript::MapObj.new "#{map_path}countries.map" > bboxLayer = Mapscript::LayerObj.new(map) > bboxLayer.name = "bbox" > bboxLayer.type = 2 > bboxLayer.status = 0 > bboxLayer.addFeature(bbox) > cls = Mapscript::ClassObj.new(bboxLayer) > style = Mapscript::StyleObj.new() > color = Mapscript::ColorObj.new() > color.red = 107 > color.green = 158 > color.blue = 160 > style.color = color > cls.insertStyle(style) > > image = Mapscript::ImageObj.new(width=800,height=382) > image=map.draw() > bboxLayer.draw(map, image) > image.save("#{image_path}temp.png") > image_url = image.imageurl > > > On 3/9/07, Steve Lime wrote: > > What technology options do you have? Are you using MapScript, the CGI, any particular client? > > > > Many of the clients have their own abilities here. > > > > With MapScript I would define your presentation layer ahead of time in the mapfile, build a shapeObj and add it to the layer, then draw the layer or map. > > > > With the CGI you can define inline features at runtime. Here's an example (w/a point): > > > > http://maps.dnr.state.mn.us/cgi-bin/mapserv410?map=/usr/local/mapserver/apps/waters/csg/reference.map&mode=map&layer=site&map_site_feature_points=342601.236380747+5193344.65190589 > > > > There is a presentation layer called "site" that I add one point to. Same approach would apply to a polygon, just more points (first=last). > > > > Steve > > > > >>> On 3/9/2007 at 10:26 AM, in message > > <259e26270703090826n232af065ndf0436ec711e2489 at mail.gmail.com>, Ben Tuttle > > wrote: > > > Hi all- > > > I'd like to overlay a polygon on my map based on coordinates input > > > form a form. I'm wondering what the best way would be to do this. > > > My first thoughts were to either add a layer dynamically as an inline > > > feature or perhaps to create a shapeObj (not sure if this will work as > > > expected) and draw it. Any thoughts on the best way to do something > > > like this? > > > > > From debbie.sikora at MAPINFO.COM Fri Mar 9 14:49:25 2007 From: debbie.sikora at MAPINFO.COM (Deb Sikora) Date: Fri, 9 Mar 2007 16:49:25 -0600 Subject: Empty image from WMS Message-ID: Hello again list. I finally got my raster image displayed correctly on my local development machine, thanks to your help, but now I tried getting the whole thing up and running on a Windows 2003 server (via VMWare), and I'm just getting a blank image. I can't use port 80 for Apache, so I changed the httpd.conf file to use port 8088. The Itasca demo works fine, so it appears that everything is ok with MapServer, but the WMS isn't displaying my raster layer. I have the exact same .map file and .png/.pgw files as on my local machine, and am using the exact same WMS request (with the exception of specifying port 8088) so I don't know why this isn't working. I also ran gdalinfo against my image, just to make sure all the information was the same as it is on my machine (that nothing got lost in the ftp process), and indeed it was. I'm using the ms4w installation, version 2.2.2. If anyone can offer any suggestions, I would be extremely grateful! Of course, I'm under a serious time crunch, which is why I've resorted to bothering all of you fine people. Thank you very much in advance! Deb From jmpmcmanus at YAHOO.COM Fri Mar 9 17:06:25 2007 From: jmpmcmanus at YAHOO.COM (James McManus) Date: Fri, 9 Mar 2007 20:06:25 -0500 Subject: serving grass vector files Message-ID: I am trying to serve GRASS vector files form mapserver. I am following the instructions at: http://grass.gdf-hannover.de/wiki/GRASS_and_MapServer After running my example at: http://www.aratasystems.com/mapserver/MDI_i.html nothing appears, and I get 237 lines of errors in my httpd error_log beginning with the lines: [Fri Mar 09 19:53:17 2007] [error] [client 71.241.222.127] No such file or directory: Cannot open drivers directory, referer: http://www.aratasystems.com/mapserver/MDI_i.html [Fri Mar 09 19:53:17 2007] [error] [client 71.241.222.127] *** glibc detected *** /var/www/cgi-bin/mapserv: malloc(): memory corruption: 0x00000000007d7ec0 ***, referer: http://www.aratasystems.com/mapserver/MDI_i.html [Fri Mar 09 19:53:17 2007] [error] [client 71.241.222.127] ======= Backtrace: =========, referer: http://www.aratasystems.com/mapserver/MDI_i.html [Fri Mar 09 19:53:17 2007] [error] [client 71.241.222.127] /lib64/libc.so.6[0x397f86f0e4], referer: http://www.aratasystems.com/mapserver/MDI_i.html [Fri Mar 09 19:53:17 2007] [error] [client 71.241.222.127] /lib64/libc.so.6(__libc_malloc+0x7d)[0x397f87086d], referer: http://www.aratasystems.com/mapserver/MDI_i.html [Fri Mar 09 19:53:17 2007] [error] [client 71.241.222.127] /var/www/cgi-bin/mapserv[0x43a0de], referer: http://www.aratasystems.com/mapserver/MDI_i.html mapserver is having a memory error. Are there additional steps I have to take to enable mapserver to be able to access grass vector files? For the testing purposes, I created and example where I export the vector file to a shape file and reconfigure my .map file to read that shape file: http://www.aratasystems.com/mapserver/MDI1_i.html This example works. It is also able to access a GRASS raster (DEM) file. This made me think the problem was with access to the vectors files database. I found other mapserver-user emails that pointed to defining GISBASE, which I have attempted to do, without success. Any clues? Thanks Jim From debbie.sikora at MAPINFO.COM Fri Mar 9 19:18:53 2007 From: debbie.sikora at MAPINFO.COM (Deb Sikora) Date: Fri, 9 Mar 2007 21:18:53 -0600 Subject: Empty image from WMS Message-ID: Thank you anyway, list, but I ended up solving the problem. I simply copied the MapServer installation from my machine to the VMWare server, and that did the trick. Not sure why installing from scratch and copying my image and map files over didn't work, but in the interest of time, all's well that ends well. From ed at TOPOZONE.COM Fri Mar 9 19:22:40 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 9 Mar 2007 22:22:40 -0500 Subject: Empty image from WMS In-Reply-To: A Message-ID: Deb - If you are getting a BLANK image (as opposed to NO image or an error message), then it is likely that MapServer is simply doing the right thing and generating a map that simply doesn't contain any of your content. Are you requesting a WMS image in a different SRS than the source raster? If so, then I'd go back and look at those PROJ questions and make sure that PROJ and the supporting files (by default in C:\PROJ\NAD) are in fact installed correctly on the new server. It sounds like your original server was not a Windows server, and so you need to be sure that all the supporting libraries are installed and set up properly. I do not use the ms4w distribution so I can't say for sure, although I'd be surprised if it doesn't at least try to install a correct PROJ distribution. And if you are actually not getting a "blank image" (that is, a legitimate image that's only the background color), then ignore everything I said and tell us exactly what you ARE getting! - 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 Deb Sikora Sent: Friday, March 09, 2007 5:49 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Empty image from WMS Hello again list. I finally got my raster image displayed correctly on my local development machine, thanks to your help, but now I tried getting the whole thing up and running on a Windows 2003 server (via VMWare), and I'm just getting a blank image. I can't use port 80 for Apache, so I changed the httpd.conf file to use port 8088. The Itasca demo works fine, so it appears that everything is ok with MapServer, but the WMS isn't displaying my raster layer. I have the exact same .map file and .png/.pgw files as on my local machine, and am using the exact same WMS request (with the exception of specifying port 8088) so I don't know why this isn't working. I also ran gdalinfo against my image, just to make sure all the information was the same as it is on my machine (that nothing got lost in the ftp process), and indeed it was. I'm using the ms4w installation, version 2.2.2. If anyone can offer any suggestions, I would be extremely grateful! Of course, I'm under a serious time crunch, which is why I've resorted to bothering all of you fine people. Thank you very much in advance! Deb From flavio at TYDAC.CH Fri Mar 9 22:20:03 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Sat, 10 Mar 2007 07:20:03 +0100 Subject: Mapserver, PostGIS and case In-Reply-To: <45F1A9EE.4030103@duif.net> Message-ID: hi richard had the same problems ... seem not to like uppercase or mixed case in table names at all. if you use lower case for your table names in postgres it should do it without all the quotes stuff ... Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Richard Duivenvoorde To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Fri, 9 Mar 2007 19:39:42 +0100 Subject: [UMN_MAPSERVER-USERS] Mapserver, PostGIS and case > Hi List, > > I've found some other postings about it. But think I've encountered a > bug or otherwise some non-logical behaviour. > > I changed a PostGIS table with a geomety column name the_geom to > LOCATIE. > > CREATE TABLE "POINTLAYER" > ( > ... > "LOCATIE" geometry NOT NULL, > ... > > After some fiddling (reading the postgresql help on 'Identifiers and > Key > Words' and the mapserver list etc) around I was able to show a MAP > using > the following DATA string in the mapfile: > > DATA '"LOCATIE" FROM (select *, oid from "public"."POINTLAYER") > as > foo using unique oid using SRID=28992' > > But the featureinfo requests keep failing then with an mapserver > error: > > Fri Mar 09 19:23:53 2007 - msPOSTGISLayerGetItems(): Query error. > msPOSTGISLayerGetItems: tried to find the geometry column in the > results > from the database, but couldnt find it. Is it miss-capitialized? > '"LOCATIE"' > > After changing the column name LOCATIE to locatie: > > CREATE TABLE "POINTLAYER" > ( > ... > locatie geometry NOT NULL, > ... > and datastring: > > DATA '"locatie" FROM (select *, oid from "public"."POINTLAYER") as > foo > using unique oid using SRID=28992' > > produces a map, but NO featureresponse, but errors: > > msPOSTGISLayerGetItems: tried to find the geometry column in the > results > from the database, but couldnt find it. Is it miss-capitialized? > '"locatie"' > > changing the DATA-string to: > > DATA 'locatie FROM (select *, oid from "public"."POINTLAYER") as foo > using unique oid using SRID=28992' > > is producing both a map and a featureinfo response :-) > > It looks like there is some fiddling around with double quotes in the > mapserver code, but it looks like the mapping part and featureinfo > part > are working in different ways with quotes? > > So, it's working for me now, but I thought that it may be helpfull to > others to read this. Should I post a bug for this? > > Richard From gisaalter at GMAIL.COM Sat Mar 10 04:26:24 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Sat, 10 Mar 2007 13:26:24 +0100 Subject: [postgis-users] help with WMS query Mapserver and postgis In-Reply-To: Message-ID: Edu, Have you declared the WEB-parameter in your map-file ? Should be something like this: WEB IMAGEPATH "c:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "Aalter_WMS" "wms_onlineresource" "http://localhostcgi-bin/mapserv.exe?map=/ms4w/apps/chameleon/samples/map/wmsserver.map&" "wms_srs" "EPSG:31300" END END You have to define this before using mapserver as WMS-server. Regards, Steven On 3/10/07, Edu Monta?a wrote: > Hello, I'm newbie in mapserver and postgis, and I have a problem that I > don't know how to fix it. I have installed mapserver in a debian system with > postgis, but when I make a request WMS I obtain the following error: > > msDrawMap(): Image handling error. Failed to draw layer named 'layer_07'. > prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual > query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from layer_07 > WHERE the_geom && setSRID('BOX3D(63208.0999421528 > 4203763.49990343,404291.899999981 4487999.99999998)'::BOX3D, > find_srid('','layer_07','the_geom') )' Postgresql reports the error as > 'ERROR: function setsrid(box3d, integer) does not exist HINT: No function > matches the given name and argument types. You may need to add explicit type > casts. ' More Help: Error with POSTGIS data variable. You specified 'check > your .map file'. Standard ways of specifiying are : (1) 'geometry_column > from geometry_table' (2) 'geometry_column from (sub query) as foo using > unique column name using SRID=srid#' Make sure you put in the 'using unique > column name' and 'using SRID=#' clauses in. For more help, please see > http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan > 23/2004. > > I don't understand this error because I have defined in my database the > function setsrid. > I tried to define in the data declaration in my .map file the following: > DATA "the_geom from layer_07 using unique the_geom using SRID=23030" > but it doesn't work. > My WMS query is: > http://192.168.0.66:80/cgi-bin/mapserv40/mapserv?map=/usr/local/apache2/htdocs/mapservertest.mapSERVICE=WMS&Request=GetMap&LAYERS=layer_07&format=image/jpeg&bbox=222966.0,4416557.0,223027.0,4416597.0&srs=EPSG:23030&styles=default&VERSION=1.1.1&Height=600&Width=500 > My layer declaration on the .map file is the following: > > LAYER > NAME "layer_07" > TYPE POLYGON > STATUS ON > CONNECTIONTYPE POSTGIS > CONNECTION "host=192.168.0.147 dbname=testdb user=postgres > password=postgres port=5432" > DATA "the_geom from layer_07" > TRANSPARENCY 25 > > CLASS > NAME 'layer_07' > COLOR 188 229 193 > OUTLINECOLOR 0 0 0 > END > > METADATA > "wms_name" "layer_07" > "wms_title" "Layer 07." > END > > PROJECTION > "init=epsg:23030" > END > END > > > I hope that your can help me, it very urgent. > > Thanks in advance > > P.D.: Sorry for my poor english > > _________________________________________________________________ > Acepta el reto MSN Premium: Protecci?n para tus hijos en internet. > Desc?rgalo y pru?balo 2 meses gratis. > http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_proteccioninfantil > > _______________________________________________ > postgis-users mailing list > postgis-users at postgis.refractions.net > http://postgis.refractions.net/mailman/listinfo/postgis-users > From tzzbzzgf at HOTMAIL.COM Sat Mar 10 05:33:47 2007 From: tzzbzzgf at HOTMAIL.COM (=?GB2312?Q?SUBSCRIBE_MAPSERVER-USERS_lemay?=) Date: Sat, 10 Mar 2007 07:33:47 -0600 Subject: INTERPOLATION Message-ID: How can i make a interpolation vector map with mapserver, can anyone give me a detail example. thanks. From rdmailings at DUIF.NET Sat Mar 10 06:33:40 2007 From: rdmailings at DUIF.NET (Richard Duivenvoorde) Date: Sat, 10 Mar 2007 15:33:40 +0100 Subject: [postgis-users] help with WMS query Mapserver and postgis In-Reply-To: <8d2ea9d70703100426m3739918r1fa337e95ac53620@mail.gmail.com> Message-ID: Hi Edu, did you run the proper scripts in the debian postgresql-8.1-postgis package, as described in the README.Debian.gz? : quote: NOTE: To install PostGIS you must run the lwpostgis.sql script in each PostgreSQL database you want PostGIS in as the PostgreSQL superuser (generally the 'postgres' user)! The Debian utilities do not do this automatically as they can't be sure what state your database is in, what database(s) you would want PostGIS installed in, or how to authenticate as the PostgreSQL superuser to your database. It is likely that a PostGIS user would also want the Spatial References installed and so it is recommended that the spatial_ref_sys.sql also be run in each database you have PostGIS installed in. For me it looks like you either miss the spatial functions, or casts which are defined in these scripts? See the error: 'ERROR: function setsrid(box3d, integer) does not exist HINT: No function matches the given name and argument types. You may need to add explicit type casts. ' Hope this helps. Richard Steven De Vriendt wrote: > Edu, > > Have you declared the WEB-parameter in your map-file ? > Should be something like this: > > WEB > IMAGEPATH "c:/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wms_title" "Aalter_WMS" > "wms_onlineresource" > "http://localhostcgi-bin/mapserv.exe?map=/ms4w/apps/chameleon/samples/map/wmsserver.map&" > > "wms_srs" "EPSG:31300" > END > END > > You have to define this before using mapserver as WMS-server. > > Regards, > Steven > > On 3/10/07, Edu Monta?a wrote: >> Hello, I'm newbie in mapserver and postgis, and I have a problem that I >> don't know how to fix it. I have installed mapserver in a debian >> system with >> postgis, but when I make a request WMS I obtain the following error: >> >> msDrawMap(): Image handling error. Failed to draw layer named 'layer_07'. >> prepare_database(): Query error. Error executing POSTGIS DECLARE (the >> actual >> query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT >> asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from >> layer_07 >> WHERE the_geom && setSRID('BOX3D(63208.0999421528 >> 4203763.49990343,404291.899999981 4487999.99999998)'::BOX3D, >> find_srid('','layer_07','the_geom') )' Postgresql reports the error as >> 'ERROR: function setsrid(box3d, integer) does not exist HINT: No function >> matches the given name and argument types. You may need to add >> explicit type >> casts. ' More Help: Error with POSTGIS data variable. You specified >> 'check >> your .map file'. Standard ways of specifiying are : (1) 'geometry_column >> from geometry_table' (2) 'geometry_column from (sub query) as foo using >> unique column name using SRID=srid#' Make sure you put in the 'using >> unique >> column name' and 'using SRID=#' clauses in. For more help, please see >> http://postgis.refractions.net/documentation/ Mappostgis.c - version >> of Jan >> 23/2004. >> >> I don't understand this error because I have defined in my database the >> function setsrid. >> I tried to define in the data declaration in my .map file the following: >> DATA "the_geom from layer_07 using unique the_geom using >> SRID=23030" >> but it doesn't work. >> My WMS query is: >> http://192.168.0.66:80/cgi-bin/mapserv40/mapserv?map=/usr/local/apache2/htdocs/mapservertest.mapSERVICE=WMS&Request=GetMap&LAYERS=layer_07&format=image/jpeg&bbox=222966.0,4416557.0,223027.0,4416597.0&srs=EPSG:23030&styles=default&VERSION=1.1.1&Height=600&Width=500 >> >> My layer declaration on the .map file is the following: >> >> LAYER >> NAME "layer_07" >> TYPE POLYGON >> STATUS ON >> CONNECTIONTYPE POSTGIS >> CONNECTION "host=192.168.0.147 dbname=testdb >> user=postgres >> password=postgres port=5432" >> DATA "the_geom from layer_07" >> TRANSPARENCY 25 >> >> CLASS >> NAME 'layer_07' >> COLOR 188 229 193 >> OUTLINECOLOR 0 0 0 >> END >> >> METADATA >> "wms_name" "layer_07" >> "wms_title" "Layer 07." >> END >> >> PROJECTION >> "init=epsg:23030" >> END >> END >> >> >> I hope that your can help me, it very urgent. >> >> Thanks in advance >> >> P.D.: Sorry for my poor english >> >> _________________________________________________________________ >> Acepta el reto MSN Premium: Protecci?n para tus hijos en internet. >> Desc?rgalo y pru?balo 2 meses gratis. >> http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_proteccioninfantil >> >> >> _______________________________________________ >> postgis-users mailing list >> postgis-users at postgis.refractions.net >> http://postgis.refractions.net/mailman/listinfo/postgis-users >> > > > From rdmailings at DUIF.NET Sat Mar 10 11:26:11 2007 From: rdmailings at DUIF.NET (Richard Duivenvoorde) Date: Sat, 10 Mar 2007 20:26:11 +0100 Subject: [postgis-users] help with WMS query Mapserver and post In-Reply-To: Message-ID: Hi Edu, that shouldn't be neccesary as when a table is declared without a schema name, it is put/looked up in the public schema anyway??? Though..., I myself am doing some testing and have a DATA string like: DATA 'the_geom FROM (select *, oid from "public"."testpoints") as foo using unique oid using SRID=28992' (so I DO use the public schema string?), try and see. Some other tests/things you can do: - either in psql or in pgadmin3, connect to the same database as the same user as you have in your mapfile and try to fire the DATA-query select string and see if that results in your records/geometries. - do you have something like: CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=testgis password='xxxx' user=user" in your mapfile? (probably anyway, otherwise you should get those errormessages...) - I 'wrote' my first postgresql-mapfile by using the free qgis (http://qgis.org/) to connect to the database, and then use the option 'Export to Mapserver Map' to write a starting for a mapfile. It's a very fine tool for viewing postgis data! - you are sure you can see all functions and casts in the database you are using? You have to use the scripts for every db you have. pgadmin3 shows you all functions and casts in a nice and easy way for a given database. Ok that's all I know :-) Good luck. Richard Edu Monta?a wrote: > Hello Steven and Richard, thanks for yours quick responses. > In answer to Steven, yes I have in my .map file the WEB sentence like > following: > > WEB > METADATA > "wms_title" "Map File 01" > > "wms_fees" "none" > "wms_onlineresource" > "http://127.0.0.1:81/cgi-bin/mapserv40/mapserv?map=/usr/local/apache2/htdocs/mapfile_01.map&" > > "wms_latlonboundingbox" "-180,-180,180,180" > "wms_formatlist" > "image/gif,image/png,image/jpg,image/jpeg,image/tif,image/bmp" > END > > IMAGEPATH "/tmp/" > LOG "/usr/local/apache2/logs/mapserver.log" > END > > > In answer to Richard, yes when I installed postgis, I executed: > psql -d [yourdatabase] -f lwpostgis.sql > and > psql -d [yourdatabase] -f spatial_ref_sys.sql > > Watching several post with errors similar to mine , I don't know if it > can be because I don't have append in front of the table name the schema > public: > > DATA "the_geom from layer_07" > > I have't been able to prove this last one. > > Best regards, > > Edu > >> From: Richard Duivenvoorde >> To: edumon20 at hotmail.com >> CC: Steven De Vriendt , >> MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] [postgis-users] help with WMS query >> Mapserver and postgis >> Date: Sat, 10 Mar 2007 15:33:40 +0100 >> >> Hi Edu, >> >> did you run the proper scripts in the debian postgresql-8.1-postgis >> package, as described in the README.Debian.gz? : >> >> quote: >> >> NOTE: To install PostGIS you must run the lwpostgis.sql script in each >> PostgreSQL database you want PostGIS in as the PostgreSQL superuser >> (generally the 'postgres' user)! The Debian utilities do not do >> this automatically as they can't be sure what state your database is >> in, >> what database(s) you would want PostGIS installed in, or how to >> authenticate as the PostgreSQL superuser to your database. It is >> likely >> that a PostGIS user would also want the Spatial References installed >> and >> so it is recommended that the spatial_ref_sys.sql also be run in each >> database you have PostGIS installed in. >> >> For me it looks like you either miss the spatial functions, or casts >> which are defined in these scripts? See the error: >> 'ERROR: function setsrid(box3d, integer) does not exist HINT: No >> function matches the given name and argument types. You may need to >> add explicit type casts. ' >> >> Hope this helps. >> >> Richard >> >> Steven De Vriendt wrote: >>> Edu, >>> >>> Have you declared the WEB-parameter in your map-file ? >>> Should be something like this: >>> >>> WEB >>> IMAGEPATH "c:/ms4w/tmp/ms_tmp/" >>> IMAGEURL "/ms_tmp/" >>> METADATA >>> "wms_title" "Aalter_WMS" >>> "wms_onlineresource" >>> "http://localhostcgi-bin/mapserv.exe?map=/ms4w/apps/chameleon/samples/map/wmsserver.map&" >>> >>> >>> "wms_srs" "EPSG:31300" >>> END >>> END >>> >>> You have to define this before using mapserver as WMS-server. >>> >>> Regards, >>> Steven >>> >>> On 3/10/07, Edu Monta?a wrote: >>>> Hello, I'm newbie in mapserver and postgis, and I have a problem that I >>>> don't know how to fix it. I have installed mapserver in a debian >>>> system with >>>> postgis, but when I make a request WMS I obtain the following error: >>>> >>>> msDrawMap(): Image handling error. Failed to draw layer named >>>> 'layer_07'. >>>> prepare_database(): Query error. Error executing POSTGIS DECLARE >>>> (the actual >>>> query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT >>>> asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from >>>> layer_07 >>>> WHERE the_geom && setSRID('BOX3D(63208.0999421528 >>>> 4203763.49990343,404291.899999981 4487999.99999998)'::BOX3D, >>>> find_srid('','layer_07','the_geom') )' Postgresql reports the error as >>>> 'ERROR: function setsrid(box3d, integer) does not exist HINT: No >>>> function >>>> matches the given name and argument types. You may need to add >>>> explicit type >>>> casts. ' More Help: Error with POSTGIS data variable. You specified >>>> 'check >>>> your .map file'. Standard ways of specifiying are : (1) >>>> 'geometry_column >>>> from geometry_table' (2) 'geometry_column from (sub query) as foo using >>>> unique column name using SRID=srid#' Make sure you put in the 'using >>>> unique >>>> column name' and 'using SRID=#' clauses in. For more help, please see >>>> http://postgis.refractions.net/documentation/ Mappostgis.c - version >>>> of Jan >>>> 23/2004. >>>> >>>> I don't understand this error because I have defined in my database the >>>> function setsrid. >>>> I tried to define in the data declaration in my .map file the >>>> following: >>>> DATA "the_geom from layer_07 using unique the_geom using >>>> SRID=23030" >>>> but it doesn't work. >>>> My WMS query is: >>>> http://192.168.0.66:80/cgi-bin/mapserv40/mapserv?map=/usr/local/apache2/htdocs/mapservertest.mapSERVICE=WMS&Request=GetMap&LAYERS=layer_07&format=image/jpeg&bbox=222966.0,4416557.0,223027.0,4416597.0&srs=EPSG:23030&styles=default&VERSION=1.1.1&Height=600&Width=500 >>>> >>>> >>>> My layer declaration on the .map file is the following: >>>> >>>> LAYER >>>> NAME "layer_07" >>>> TYPE POLYGON >>>> STATUS ON >>>> CONNECTIONTYPE POSTGIS >>>> CONNECTION "host=192.168.0.147 dbname=testdb >>>> user=postgres >>>> password=postgres port=5432" >>>> DATA "the_geom from layer_07" >>>> TRANSPARENCY 25 >>>> >>>> CLASS >>>> NAME 'layer_07' >>>> COLOR 188 229 193 >>>> OUTLINECOLOR 0 0 0 >>>> END >>>> >>>> METADATA >>>> "wms_name" "layer_07" >>>> "wms_title" "Layer 07." >>>> END >>>> >>>> PROJECTION >>>> "init=epsg:23030" >>>> END >>>> END >>>> >>>> >>>> I hope that your can help me, it very urgent. >>>> >>>> Thanks in advance >>>> >>>> P.D.: Sorry for my poor english >>>> >>>> _________________________________________________________________ >>>> Acepta el reto MSN Premium: Protecci?n para tus hijos en internet. >>>> Desc?rgalo y pru?balo 2 meses gratis. >>>> http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_proteccioninfantil >>>> >>>> >>>> >>>> _______________________________________________ >>>> postgis-users mailing list >>>> postgis-users at postgis.refractions.net >>>> http://postgis.refractions.net/mailman/listinfo/postgis-users >>>> >>> >>> >>> >> > > _________________________________________________________________ > Grandes ?xitos, superh?roes, imitaciones, cine y TV... > http://es.msn.kiwee.com/ Lo mejor para tu m?vil. > > > From ucfsafo at GE.UCL.AC.UK Sun Mar 11 04:48:31 2007 From: ucfsafo at GE.UCL.AC.UK (Andy Fo) Date: Sun, 11 Mar 2007 11:48:31 -0000 Subject: Simple configuration PostgreSQL/MapServer/Openlayers Message-ID: Hi, Is there anybody out there that can help me with this very simple configuration? I?m new to WMS and I?m learning about it right now. I?m not completely new to programming though; I have experience in C, PL/SQL, MapBasic and a bit of JavaScript and HTML. I?m into GIS and used Oracle Spatial with MapInfo software at work. I only now started to appreciate open source. I decided to go onto practice straight away and opted for the following configuration: PostgreSQL/PostGIS (this is an excellent db and the documentation is impressive!) MapServer for rendering images and Openlayers as a simple way to interact with the map/information. Everything installed locally. All I need is some sort of ?Hello World? style example, some sort of launch pad where I can add or change bit and pieces as I learn. Seeing something actually working would give me the confidence to going through all the details. It should work with this configuration and I would be really grateful if someone could help me with this. I have loaded some vector data into Postgres, some polylines (or linestrings) representing road network. This is referenced to British National Grid (BNG) srid: 27700. The table has been spatially indexed. Here?s where I can smell some trouble. MapServer successfully outputs a png image with the following map file: MAP IMAGETYPE PNG EXTENT 525300 179800 536700 187600 SIZE 800 600 SHAPEPATH "/ms4w/apps/TestMaps/FirstTest" IMAGECOLOR 192 192 192 UNITS METERS LAYER CONNECTIONTYPE postgis NAME "tlrn_network" CONNECTION "user=??? password=??? dbname=mapping host=localhost" DATA "wkb_geometry FROM net" STATUS ON TYPE LINE CLASS COLOR 0 0 0 END METADATA "WMS_SRS" "EPSG:BNG" END PROJECTION "init=epsg:27700" END END END I tested this firefox and the following URL: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/TestMaps/FirstTest/tlrn.map&layer=tlrn_network&mode=map So far so good, but here?s the trouble:
It just doesn?t work. Openlayers kind of attempt to display the image, it shows the correct background color. However, instead of my road network, it shows the following error message on each tile: ?MsWMSLoadGetMapParams(): WMS server error. Cannot set new SRS on a map that doesn?t have any projection set. Please make sure your mapfile has a projection defined at the top level.? Well, obviously my map file has no defined projection at top level. It is only defined at the layer?s level (and probably wrongly). Whenever I attempt to do at the Map top level it seems that things get only worse or no change at all. When I get rid of the metadata, for example # METADATA # "WMS_SRS" "EPSG:BNG" # END the message changes to: ?msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. I?m stuck! As I said all I need is something that works and I can use as a base. I?ll go away and practice with all this without harassing the entire community (well, for a while at least!). Many thanks Andy From bartvde at OSGIS.NL Sun Mar 11 05:07:45 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Sun, 11 Mar 2007 13:07:45 +0100 Subject: Simple configuration PostgreSQL/MapServer/Openlayers Message-ID: Hi Andy, first of all, EPSG is a code number list, so use: EPSG:27700 instead of EPSG:BNG. Also advertize this in your WMS_SRS for all layers and the MAP METADATA section. Change your openlayers config for this as well ofcourse. Use projection blocks for all LAYERs and the MAP (this is the native projection of your data): PROJECTION "init=epsg:27700" END If you want Mapserver WMS to be able to reproject your data, then advertize more EPSG code in the WMS_SRS, for instance EPSG:4326 if you want to add WGS84 support. Let us know if you get it to work. Best regards, Bart Andy Fo schreef: > Hi, > Is there anybody out there that can help me with this very simple > configuration? > I?m new to WMS and I?m learning about it right now. I?m not completely new > to programming though; I have experience in C, PL/SQL, MapBasic and a bit > of JavaScript and HTML. I?m into GIS and used Oracle Spatial with MapInfo > software at work. I only now started to appreciate open source. > > I decided to go onto practice straight away and opted for the following > configuration: > > PostgreSQL/PostGIS (this is an excellent db and the documentation is > impressive!) > MapServer for rendering images and > Openlayers as a simple way to interact with the map/information. > Everything installed locally. > > All I need is some sort of ?Hello World? style example, some sort of > launch pad where I can add or change bit and pieces as I learn. Seeing > something actually working would give me the confidence to going through > all the details. > It should work with this configuration and I would be really grateful if > someone could help me with this. > > I have loaded some vector data into Postgres, some polylines (or > linestrings) representing road network. This is referenced to British > National Grid (BNG) srid: 27700. The table has been spatially indexed. > > Here?s where I can smell some trouble. > MapServer successfully outputs a png image with the following map file: > > MAP > IMAGETYPE PNG > EXTENT 525300 179800 536700 187600 > SIZE 800 600 > SHAPEPATH "/ms4w/apps/TestMaps/FirstTest" > IMAGECOLOR 192 192 192 > UNITS METERS > LAYER > CONNECTIONTYPE postgis > NAME "tlrn_network" > CONNECTION "user=??? password=??? dbname=mapping host=localhost" > DATA "wkb_geometry FROM net" > STATUS ON > TYPE LINE > CLASS > COLOR 0 0 0 > END > METADATA > "WMS_SRS" "EPSG:BNG" > END > PROJECTION > "init=epsg:27700" > END > END > END > > I tested this firefox and the following URL: > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/TestMaps/FirstTest/tlrn.map&layer=tlrn_network&mode=map > > So far so good, but here?s the trouble: > > > > > > >
> > > > > It just doesn?t work. Openlayers kind of attempt to display the image, it > shows the correct background color. However, instead of my road network, > it shows the following error message on each tile: > > ?MsWMSLoadGetMapParams(): WMS server error. Cannot set new SRS on a map > that doesn?t have any projection set. Please make sure your mapfile has a > projection defined at the top level.? > > Well, obviously my map file has no defined projection at top level. It is > only defined at the layer?s level (and probably wrongly). Whenever I > attempt to do at the Map top level it seems that things get only worse or > no change at all. > When I get rid of the metadata, for example > # METADATA > # "WMS_SRS" "EPSG:BNG" > # END > the message changes to: > ?msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must > be valid for all requested layers. > > I?m stuck! As I said all I need is something that works and I can use as a > base. I?ll go away and practice with all this without harassing the entire > community (well, for a while at least!). > > Many thanks > > Andy > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From woodbri at SWOODBRIDGE.COM Sun Mar 11 06:30:54 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 11 Mar 2007 08:30:54 -0500 Subject: Simple configuration PostgreSQL/MapServer/Openlayers In-Reply-To: <1453.82.35.94.132.1173613711.squirrel@webmail.ge.ucl.ac.uk> Message-ID: Andy, http://mapserver.gis.umn.edu/docs/howto/wms_server Have you seen this link? It should help. There are a bunch of Mapserver HowTo Docs off the Mapserver Documentation page. -Steve Andy Fo wrote: > Hi, > Is there anybody out there that can help me with this very simple > configuration? > I?m new to WMS and I?m learning about it right now. I?m not completely new > to programming though; I have experience in C, PL/SQL, MapBasic and a bit > of JavaScript and HTML. I?m into GIS and used Oracle Spatial with MapInfo > software at work. I only now started to appreciate open source. > > I decided to go onto practice straight away and opted for the following > configuration: > > PostgreSQL/PostGIS (this is an excellent db and the documentation is > impressive!) > MapServer for rendering images and > Openlayers as a simple way to interact with the map/information. > Everything installed locally. > > All I need is some sort of ?Hello World? style example, some sort of > launch pad where I can add or change bit and pieces as I learn. Seeing > something actually working would give me the confidence to going through > all the details. > It should work with this configuration and I would be really grateful if > someone could help me with this. > > I have loaded some vector data into Postgres, some polylines (or > linestrings) representing road network. This is referenced to British > National Grid (BNG) srid: 27700. The table has been spatially indexed. > > Here?s where I can smell some trouble. > MapServer successfully outputs a png image with the following map file: > > MAP > IMAGETYPE PNG > EXTENT 525300 179800 536700 187600 > SIZE 800 600 > SHAPEPATH "/ms4w/apps/TestMaps/FirstTest" > IMAGECOLOR 192 192 192 > UNITS METERS > LAYER > CONNECTIONTYPE postgis > NAME "tlrn_network" > CONNECTION "user=??? password=??? dbname=mapping host=localhost" > DATA "wkb_geometry FROM net" > STATUS ON > TYPE LINE > CLASS > COLOR 0 0 0 > END > METADATA > "WMS_SRS" "EPSG:BNG" > END > PROJECTION > "init=epsg:27700" > END > END > END > > I tested this firefox and the following URL: > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/TestMaps/FirstTest/tlrn.map&layer=tlrn_network&mode=map > > So far so good, but here?s the trouble: > > > > > > >
> > > > > It just doesn?t work. Openlayers kind of attempt to display the image, it > shows the correct background color. However, instead of my road network, > it shows the following error message on each tile: > > ?MsWMSLoadGetMapParams(): WMS server error. Cannot set new SRS on a map > that doesn?t have any projection set. Please make sure your mapfile has a > projection defined at the top level.? > > Well, obviously my map file has no defined projection at top level. It is > only defined at the layer?s level (and probably wrongly). Whenever I > attempt to do at the Map top level it seems that things get only worse or > no change at all. > When I get rid of the metadata, for example > # METADATA > # "WMS_SRS" "EPSG:BNG" > # END > the message changes to: > ?msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must > be valid for all requested layers. > > I?m stuck! As I said all I need is something that works and I can use as a > base. I?ll go away and practice with all this without harassing the entire > community (well, for a while at least!). > > Many thanks > > Andy From thesl at YAHOO.COM Sun Mar 11 07:18:53 2007 From: thesl at YAHOO.COM (Peter Shrock) Date: Sun, 11 Mar 2007 07:18:53 -0700 Subject: Does MapServer support WMS time series using polygon shapefiles? In-Reply-To: <45F1A37A.405@umn.edu> Message-ID: When I changed the TYPE from RASTER to POLYGON using both methods, I got this error: msDrawMap(): Image handling error. Failed to draw layer named 'timemap'. msDBFGetItemIndex(): DBASE file error. Item 'TIMES' not found I guess this means MapServer tried to find TIMES field in the time series shapefiles. But this field is only in the tile index shapefile. This error message is consistant in two PCs I have tested. However, to make things even more confusing, I tested on two PCs using TYPE RASTER, and both methods. On the second PC, I actually got a blank image (with the scale bar only), which means that MapServer does not think there is any error. I removed the &TIME parameter, and still got a blank image (with the scale bar only). The value in the "Times" field of the tile polygon was added using ArcView, so only YYYYMMDD date format is supported. The mapserver cgi progrmas were from the ms4w package (I deleted all the files starting with php* though). By the way, which method I used is the correct/prefereed method? Thanks Peter --- "Pericles S. Nacionales" wrote: > Peter, > > What happens when you change the TYPE from RASTER to POLYGON? > > -Perry > > Peter Shrock wrote: > > Hello,all: > > > > I am having difficulties to make WMS time series work. > > > > I am using mapserver 4.10.0. I tested point data with time dimension, it > > worked. I tested tiled polygons, it worked. > > > > But I cannot get polygon shapefile work for time series WMS > > > > I used identitical polygon shapefiles, one shapefile for one year. tile > index > > shapefile (index1.shp) was created using tile4ms.exe, and I verified the > > contents of the file. > > > > I tried two methods in order to make the WMS time series work. Both failed. > > > > > Could you please help me? > > > > # Test method 1: everything in one layer object > > LAYER > > NAME "timemap" > > TYPE RASTER > > STATUS ON > > METADATA > > "wms_title" "timemap" > > "wms_timeformat" "YYYYMMDD" > > "wms_timeextent" "20021130/20061130" > > "wms_timeitem" "DATETIME" > > "wms_timedefault" "20021130" > > "wms_srs" "EPSG:4326" > > END > > TILEINDEX "index1.shp" > > TILEITEM "Location" > > > > CLASSITEM "color_code" > > CLASS > > NAME "TYPE 1" > > EXPRESSION ([color_code]==1) > > COLOR 220 120 130 > > OUTLINECOLOR 150 150 150 > > END > > > > CLASS > > NAME "TYPE 2" > > EXPRESSION ([color_code]==2) > > COLOR 255 255 155 > > OUTLINECOLOR 150 150 150 > > END > > > > CLASS > > NAME "TYPE 3" > > EXPRESSION ([color_code]==0) > > COLOR 200 200 200 > > OUTLINECOLOR 100 100 100 > > END > > END # one layer object method > > > > > > # Test method 2: seperate tileindex layer and data layer > > LAYER > > NAME "mylayer" > > STATUS ON > > TYPE RASTER > > TILEINDEX "index1" > > TILEITEM "Location" > > PROJECTION > > "init=epsg:4326" > > END > > > > METADATA > > "wms_title" "mylayer" > > "wms_srs" "epsg:4326" > > "wms_timeformat" "YYYYMMDD" > > "wms_timeextent" "20021130/20061130" > > "wms_timeitem" "DATETIME" > > "wms_timedefault" "20030210" > > END > > SIZEUNITS PIXELS > > > > CLASSITEM "color_code" > > CLASS > > NAME "TYPE 1" > > EXPRESSION ([color_code]==1) > > COLOR 220 120 130 > > OUTLINECOLOR 150 150 150 > > END > > > > CLASS > > NAME "TYPE 2" > > EXPRESSION ([color_code]==2) > > COLOR 255 255 155 > > OUTLINECOLOR 150 150 150 > > END > > > > CLASS > > NAME "TYPE 3" > > EXPRESSION ([color_code]==0) > > COLOR 200 200 200 > > OUTLINECOLOR 100 100 100 > > END > > END > > > > LAYER > > NAME "tidx" > > TYPE TILEINDEX > > STATUS ON > > DATA index1 > > FILTERITEM 'DATETIME' > > FILTER '%DATETIME%' > > END # tile layer > > > > The error message is: > > msDrawMap(): Image handling error. Failed to draw layer named 'timemap'. > > msDrawRaster(): Image handling error. Unrecognized or unsupported image > format > > drawEPP(): Image handling error. EPPL7 support is not available. > > > > The error message does not seem helpful. ____________________________________________________________________________________ TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV. http://tv.yahoo.com/ From woodbri at SWOODBRIDGE.COM Sun Mar 11 14:18:58 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 11 Mar 2007 16:18:58 -0500 Subject: Todays mapserver head banging problem Message-ID: I have a problem with a shapefile(?) or mapfile(?) for street data that I have spent all day banging my head against. mapserver 4.10.0 and CVS both are reporting: > [Sun Mar 11 16:00:18 2007].666330 msDrawMap(): Layer 8 (Streets A30 Z3 0), 0.006s > Sun Mar 11 16:00:18 2007 - msDBFGetItemIndex(): DBASE file error. Invalid record number 81000. > Sun Mar 11 16:00:18 2007 - msDrawMap(): Image handling error. Failed to draw layer named 'Streets A20 Z3'. this shapefile only has 12121 records in it. I thought that maybe the file was bad so I loaded it into postgres and dumped it to a new file and I get the same error. The layer and shapefile definitions are below. Anyone have any idea what is going on or how to debug this? -Steve W LAYER NAME "Streets A30 Z3 0" GROUP "st" STATUS DEFAULT DATA "./Mexico/Major_roads/mexst" TYPE LINE MAXSCALE 500100 MINSCALE 50100 FILTERITEM "FCC" FILTER "A30" CLASS STYLE COLOR 170 153 34 WIDTH 4 ANTIALIAS TRUE END STYLE COLOR 238 187 34 WIDTH 2 ANTIALIAS TRUE END END END woodbri at carto:/u/data/Mexico/Major_roads$ dbfdump -info mexst Filename: mexst.dbf Version: 0x03 (ver. 3) Num of records: 12121 Header length: 449 Record length: 371 Last change: 1995/7/26 Num fields: 13 Field info: Num Name Type Len Decimal 1. ID N 19 11 2. NAME C 75 0 3. NAME_ALT C 80 0 4. FCC C 3 0 5. FCC_ALT C 6 0 6. LEN_MILES N 19 11 7. LEN_KM N 19 11 8. SPEED_MPH C 3 0 9. SPEED_KMH C 50 0 10. CITY C 16 0 11. CITY_ALT C 32 0 12. COUNTRY C 16 0 13. COUNTRYALT C 32 0 From woodbri at SWOODBRIDGE.COM Sun Mar 11 15:01:03 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 11 Mar 2007 17:01:03 -0500 Subject: Todays mapserver head banging problem In-Reply-To: <45F47242.7020403@swoodbridge.com> Message-ID: More information ... It looks like it is probably a tileindex problem and that there are two data layers in the same coverage area and the second one that I had not noticed seems to be the problem. I'm not sure what the problem is but removing that layer allowed the image to be drawn. If I can figure this out, I will file a bug, or take it up on the dev list. My feeling is that we should detect issues and report helpful messages so people don't waste hours and/or days fighting with issues and obscure error messages. We have had discussions about logging the filename that an associated error message is related to. If the error messages below had had the file name included, it would have taken about 5 minutes to diagnose the problem. -Steve W Stephen Woodbridge wrote: > I have a problem with a shapefile(?) or mapfile(?) for street data that > I have spent all day banging my head against. > > mapserver 4.10.0 and CVS both are reporting: > >> [Sun Mar 11 16:00:18 2007].666330 msDrawMap(): Layer 8 (Streets A30 Z3 >> 0), 0.006s >> Sun Mar 11 16:00:18 2007 - msDBFGetItemIndex(): DBASE file error. >> Invalid record number 81000. >> Sun Mar 11 16:00:18 2007 - msDrawMap(): Image handling error. Failed >> to draw layer named 'Streets A20 Z3'. > > this shapefile only has 12121 records in it. I thought that maybe the > file was bad so I loaded it into postgres and dumped it to a new file > and I get the same error. The layer and shapefile definitions are below. > Anyone have any idea what is going on or how to debug this? > > -Steve W > > LAYER > NAME "Streets A30 Z3 0" > GROUP "st" > STATUS DEFAULT > DATA "./Mexico/Major_roads/mexst" > TYPE LINE > MAXSCALE 500100 > MINSCALE 50100 > FILTERITEM "FCC" > FILTER "A30" > CLASS > STYLE > COLOR 170 153 34 > WIDTH 4 > ANTIALIAS TRUE > END > STYLE > COLOR 238 187 34 > WIDTH 2 > ANTIALIAS TRUE > END > END > END > > woodbri at carto:/u/data/Mexico/Major_roads$ dbfdump -info mexst > Filename: mexst.dbf > Version: 0x03 (ver. 3) > Num of records: 12121 > Header length: 449 > Record length: 371 > Last change: 1995/7/26 > Num fields: 13 > Field info: > Num Name Type Len Decimal > 1. ID N 19 11 > 2. NAME C 75 0 > 3. NAME_ALT C 80 0 > 4. FCC C 3 0 > 5. FCC_ALT C 6 0 > 6. LEN_MILES N 19 11 > 7. LEN_KM N 19 11 > 8. SPEED_MPH C 3 0 > 9. SPEED_KMH C 50 0 > 10. CITY C 16 0 > 11. CITY_ALT C 32 0 > 12. COUNTRY C 16 0 > 13. COUNTRYALT C 32 0 From ed at TOPOZONE.COM Sun Mar 11 15:35:46 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sun, 11 Mar 2007 18:35:46 -0400 Subject: Todays mapserver head banging problem In-Reply-To: A<45F47C1F.9060806@swoodbridge.com> Message-ID: Steve - Do all the shapefiles for that TILEINDEX set have the same number of attribute columns, in the same order? - 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 Stephen Woodbridge Sent: Sunday, March 11, 2007 6:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Todays mapserver head banging problem More information ... It looks like it is probably a tileindex problem and that there are two data layers in the same coverage area and the second one that I had not noticed seems to be the problem. I'm not sure what the problem is but removing that layer allowed the image to be drawn. If I can figure this out, I will file a bug, or take it up on the dev list. My feeling is that we should detect issues and report helpful messages so people don't waste hours and/or days fighting with issues and obscure error messages. We have had discussions about logging the filename that an associated error message is related to. If the error messages below had had the file name included, it would have taken about 5 minutes to diagnose the problem. -Steve W Stephen Woodbridge wrote: > I have a problem with a shapefile(?) or mapfile(?) for street data > that I have spent all day banging my head against. > > mapserver 4.10.0 and CVS both are reporting: > >> [Sun Mar 11 16:00:18 2007].666330 msDrawMap(): Layer 8 (Streets A30 >> Z3 0), 0.006s Sun Mar 11 16:00:18 2007 - msDBFGetItemIndex(): DBASE >> file error. >> Invalid record number 81000. >> Sun Mar 11 16:00:18 2007 - msDrawMap(): Image handling error. Failed >> to draw layer named 'Streets A20 Z3'. > > this shapefile only has 12121 records in it. I thought that maybe the > file was bad so I loaded it into postgres and dumped it to a new file > and I get the same error. The layer and shapefile definitions are below. > Anyone have any idea what is going on or how to debug this? > > -Steve W > > LAYER > NAME "Streets A30 Z3 0" > GROUP "st" > STATUS DEFAULT > DATA "./Mexico/Major_roads/mexst" > TYPE LINE > MAXSCALE 500100 > MINSCALE 50100 > FILTERITEM "FCC" > FILTER "A30" > CLASS > STYLE > COLOR 170 153 34 > WIDTH 4 > ANTIALIAS TRUE > END > STYLE > COLOR 238 187 34 > WIDTH 2 > ANTIALIAS TRUE > END > END > END > > woodbri at carto:/u/data/Mexico/Major_roads$ dbfdump -info mexst > Filename: mexst.dbf > Version: 0x03 (ver. 3) > Num of records: 12121 > Header length: 449 > Record length: 371 > Last change: 1995/7/26 > Num fields: 13 > Field info: > Num Name Type Len Decimal > 1. ID N 19 11 > 2. NAME C 75 0 > 3. NAME_ALT C 80 0 > 4. FCC C 3 0 > 5. FCC_ALT C 6 0 > 6. LEN_MILES N 19 11 > 7. LEN_KM N 19 11 > 8. SPEED_MPH C 3 0 > 9. SPEED_KMH C 50 0 > 10. CITY C 16 0 > 11. CITY_ALT C 32 0 > 12. COUNTRY C 16 0 > 13. COUNTRYALT C 32 0 From iant at NAPIER.GOVT.NZ Sun Mar 11 18:57:13 2007 From: iant at NAPIER.GOVT.NZ (Ian Tidy) Date: Sun, 11 Mar 2007 20:57:13 -0500 Subject: Changing QUERYMAP colour in PHP Message-ID: Hi All, I am trying to write a PHP file as a printing template and I want to change the QUERYMAP colour in my PHP script so that is stands out better when printed. Currently, I have: // Check for Query Layers if (file_exists($queryfilename)) { $map->loadquery($queryfilename); $hicolour = ms_newColorObj(); $hicolour->setRGB(255, 0, 255); $map->querymap->set(color, $hicolour); //$querymap->set("color", "255 0 255"); } This doesn't work, can some one please help me. Cheers Ian From JXA at COWI.DK Mon Mar 12 00:53:02 2007 From: JXA at COWI.DK (Jeppe Lund Andersen) Date: Mon, 12 Mar 2007 08:53:02 +0100 Subject: WKT and holes Message-ID: Hello all Iam looking to make holes in a polygon and found that it is done with this wkt POLYGON((1 1,5 1,5 5,1 5,1 1),(2 2, 3 2, 3 3, 2 3,2 2)) but what if I have a multipolygon - is it possible to make holes in one or more of the polygons in the multipolygons ? Jeppe From schut at SARVISION.NL Mon Mar 12 02:33:49 2007 From: schut at SARVISION.NL (Vincent Schut) Date: Mon, 12 Mar 2007 10:33:49 +0100 Subject: Group Layer In-Reply-To: <45F51A1B.9040104@geomatys.fr> Message-ID: Hi Olivier, (CCing the mapbuilder and mapserver lists because they might be interested in this) olivier.terral wrote: > yep vincent, > > I love your demo . Thanks :) > > I've question about mapserver, I begin to use it and I see You use too > so I ask you : > > visibly we can use a context doc , do you know how? > I've saw a docs on it but this doc explains how to generate a WMC > with a map file and not how to use a context directly in place of the > mapfile, Do you know if it possible? or do you know if it possible to > generate a mapfile with a WMC? I'm sorry, but I have never tried to do this. Actually, I don't think it's possible because a Context file lacks some important information for mapserver, like where a layer's data is physically stored on disk, postgis, etc. The map file does not only configure layers like a Context doc, but it is also the main configuration source for the mapserver rendering engine. That being said, there might actually be some WMC support in mapserver, and therefore I have CC'ed this message to the mapserver list too. Maybe one of the Mapserver users/developers can comment on this and enlighten Olivier and the rest of us? > > Do you have commit your change for the GroupLayer options in > mapbuilder trunk? because it is very useful I have not yet committed my custom legend to trunk. I might do so when it is more or less finished, though I think it should be more feasible to put it somewhere on the mapbuilder site as a legend xsl example, then to trunk as another legend renderer again. I think legend xsl/js files are typically widgets that can be changed and adapted by any user, and many users will have different opinions and needs about how a legend should look and behave. However, as an example of an advanced legend (ahum, if I may say so...) it might be good to post it somewhere. However, if other MapBuilder developers disagree with me and think the addition of my legend js/xsl code to trunk would be a good idea, I will commit it. If you would like to see my code, I can send you the files of course. Regards, Vincent. > > Thanks for all > bye > > Vincent Schut a ?crit : >> Hi Gertjan (Olivier, I cc you so you know I have answered Gj), >> >> I think it was me. It is a still ongoing project, but I regularly >> release a demo to our client so they can review the progress. I think >> it is no problem to give you the url, so you can view it too, as long >> as you focus on the technology, not on the data which might not be >> free (though viewing will be no problem, that's why I develop this >> thing in the first place). >> >> You can see the latest demo at >> http:www.sarvision.nl/vision2/ies/greatlakes/demo11/index.html >> >> For the thematic layer grouping I use the extension tag in the >> context document, which defines the groups and which layers belong >> where. It is parsed and rendered by a custom legend xslt file. >> If you have more questions regarding my implementation of MB, don't >> hesitate to ask. >> >> Cheers, >> Vincent. >> >> olivier.terral wrote: >>> Hi guys, >>> >>> I remender that one of yours have made a demo with Group Layer in >>> the legend . >>> >>> Could you give me the url of this demo please , if it is always in >>> place? >>> >>> Thanks in advance >>> >> >> > From lolivieri at IMTEAM.IT Mon Mar 12 02:16:17 2007 From: lolivieri at IMTEAM.IT (Leonardo Olivieri) Date: Mon, 12 Mar 2007 10:16:17 +0100 Subject: expression Message-ID: Hello, I Have installed mapserver phpmapscript on linux. In the shapefile using ArcMap I haved a column COD_PIANO and a value is = attivit? COD_PIANO attivit? In the mapfile on linux, I have the expression EXPRESSION ('[COD_PIANO]' eq 'attivit?') but this expression don't work Any hints? Thanks in advanced. Leonardo From bartvde at OSGIS.NL Mon Mar 12 02:49:49 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 12 Mar 2007 10:49:49 +0100 Subject: [Mapbuilder-users] Group Layer Message-ID: Mapscript has functions to convert from/to a Web Map Context document. So you need to script this, you can't use a WMC directly in Mapserver CGI AFAIK. Look for saveMapContext and loadMapContext functions on the Map object. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Vincent Schut Naar: olivier.terral Cc: mapbuilder-users , 'mapbuilder-devel at lists.sourceforge.net' , MAPSERVER-USERs at LISTS.UMN.EDU Onderwerp: Re: [Mapbuilder-users] Group Layer Datum: 12/03/07 07:34 > Hi Olivier, > > (CCing the mapbuilder and mapserver lists because they might be > interested in this) > > olivier.terral wrote: > > yep vincent, > > > > I love your demo . > Thanks :) > > > > I've question about mapserver, I begin to use it and I see You use too > > so I ask you : > > > > visibly we can use a context doc , do you know how? > > I've saw a docs on it but this doc explains how to generate a WMC > > with a map file and not how to use a context directly in place of the > > mapfile, Do you know if it possible? or do you know if it possible to > > generate a mapfile with a WMC? > I'm sorry, but I have never tried to do this. Actually, I don't think > it's possible because a Context file lacks some important information > for mapserver, like where a layer's data is physically stored on disk, > postgis, etc. The map file does not only configure layers like a Context > doc, but it is also the main configuration source for the mapserver > rendering engine. > That being said, there might actually be some WMC support in mapserver, > and therefore I have CC'ed this message to the mapserver list too. Maybe > one of the Mapserver users/developers can comment on this and enlighten > Olivier and the rest of us? > > > > > Do you have commit your change for the GroupLayer options in > > mapbuilder trunk? because it is very useful > I have not yet committed my custom legend to trunk. I might do so when > it is more or less finished, though I think it should be more feasible > to put it somewhere on the mapbuilder site as a legend xsl example, then > to trunk as another legend renderer again. I think legend xsl/js files > are typically widgets that can be changed and adapted by any user, and > many users will have different opinions and needs about how a legend > should look and behave. However, as an example of an advanced legend > (ahum, if I may say so...) it might be good to post it somewhere. > However, if other MapBuilder developers disagree with me and think the > addition of my legend js/xsl code to trunk would be a good idea, I will > commit it. > If you would like to see my code, I can send you the files of course. > > Regards, > Vincent. > > > > Thanks for all > > bye > > > > Vincent Schut a ?crit : > >> Hi Gertjan (Olivier, I cc you so you know I have answered Gj), > >> > >> I think it was me. It is a still ongoing project, but I regularly > >> release a demo to our client so they can review the progress. I think > >> it is no problem to give you the url, so you can view it too, as long > >> as you focus on the technology, not on the data which might not be > >> free (though viewing will be no problem, that's why I develop this > >> thing in the first place). > >> > >> You can see the latest demo at > >> http:www.sarvision.nl/vision2/ies/greatlakes/demo11/index.html > >> > >> For the thematic layer grouping I use the extension tag in the > >> context document, which defines the groups and which layers belong > >> where. It is parsed and rendered by a custom legend xslt file. > >> If you have more questions regarding my implementation of MB, don't > >> hesitate to ask. > >> > >> Cheers, > >> Vincent. > >> > >> olivier.terral wrote: > >>> Hi guys, > >>> > >>> I remender that one of yours have made a demo with Group Layer in > >>> the legend . > >>> > >>> Could you give me the url of this demo please , if it is always in > >>> place? > >>> > >>> Thanks in advance > >>> > >> > >> > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Mapbuilder-users mailing list > Mapbuilder-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mapbuilder-users > > From lolivieri at IMTEAM.IT Mon Mar 12 02:32:24 2007 From: lolivieri at IMTEAM.IT (Leonardo Olivieri) Date: Mon, 12 Mar 2007 10:32:24 +0100 Subject: expression Message-ID: Hello, I Have installed mapserver phpmapscript on linux. In the shapefile using ArcMap I haved a column COD_PIANO and a value is = attivit? COD_PIANO attivit? In the mapfile on linux, I have the expression EXPRESSION ('[COD_PIANO]' eq 'attivit?') but this expression don't work Any hints? Thanks in advanced. Leonardo -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Mon Mar 12 07:14:08 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 12 Mar 2007 09:14:08 -0500 Subject: expression In-Reply-To: <7C2921E7CC18CF4AAD2F9DF56E49F64F014BC3A0@produzione02.IMTEAM.LOCAL> Message-ID: Leonardo Olivieri wrote: > Hello, > > I Have installed mapserver phpmapscript on linux. > > > > In the shapefile using ArcMap I haved a column COD_PIANO and a value is = attivit? > > > COD_PIANO > > attivit? > > > In the mapfile on linux, I have the expression > > EXPRESSION ('[COD_PIANO]' eq 'attivit?') Try: EXPRESSION ([COD_PIANO] eq 'attivit?') > but this expression don't work > > > > Any hints? > > > Thanks in advanced. > > Leonardo From mapper75 at GOOGLEMAIL.COM Mon Mar 12 08:22:42 2007 From: mapper75 at GOOGLEMAIL.COM (a mapper) Date: Mon, 12 Mar 2007 16:22:42 +0100 Subject: Fwd: [UMN_MAPSERVER-USERS] Vertor PDF as data source for mapserver In-Reply-To: Message-ID: ---------- Forwarded message ---------- From: a mapper Date: 12.03.2007 15:36 Subject: Re: [UMN_MAPSERVER-USERS] Vertor PDF as data source for mapserver To: Barend K?bben I've tried some tools which convert PDF to DXF to ESRI shapefile, but the results are not really satisfactory, because by converting, some information is lost. The maps are created in Adobe Illustrator and the company creating the maps has provided me an .ai and a dwg file. But I haven't managed to make the dwg file work as a source of map server. How do you do this? Do you use OGR? If I run ogrinfo on the dwg file, it tells me that it can't open it. Maybe, a special driver is needed to open the dwg file. 2007/3/5, Barend K?bben : > > You'll need to do one or more conversions, depending on the software you > have available (eg. a way I use is to load the PDFs in Adobe Illustrator, > export them from there as AutoCad DWG/DXF and use that as a datasource). > > But whatever way, the main problem is the PDF has no georeferencing, ie. > the > coordinates in it will be 'paper coordinates'. To have a usefull map, > you'll > have to tranlate them to some menaingfull real world coordinates. > > __ > Barend K?bben > International Institute for Geo-information > Sciences and Earth Observation (ITC) > PO Box 6, 7500AA Enschede (The Netherlands) > ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 > > > On 05-03-2007 18:36, "a mapper" wrote: > > > Hello, > > > > I have some PDFs containing maps in vector format. > > Is there any possibility to use those as a datasource for mapserver > (like, > > for example, ESRI shapefiles?) without creating any raster image (like > > TIFF)? > > I want to keep the vector format because of the quality loss when > scaling a > > raster image. > > > > Is it possible to use multiple raster images for the same map for the > > different zoom levels the user can display? > > > > Thank you for your help. > > > > Mapper > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapper75 at GOOGLEMAIL.COM Mon Mar 12 08:22:55 2007 From: mapper75 at GOOGLEMAIL.COM (a mapper) Date: Mon, 12 Mar 2007 16:22:55 +0100 Subject: Fwd: [UMN_MAPSERVER-USERS] Vertor PDF as data source for mapserver In-Reply-To: Message-ID: ---------- Forwarded message ---------- From: a mapper Date: 12.03.2007 15:29 Subject: Re: [UMN_MAPSERVER-USERS] Vertor PDF as data source for mapserver To: afreed at pdx.edu I've tried some tools which convert PDF to DXF and from DXF to ESRI Shapefile. But during conversion, some information is lost. So the results are not really useful to me. Someone told me that mapserver supports DXF as input, but I haven't managed to make it work yet. Mapper 2007/3/8, Andy Freed : > > Did you ever get an answer about this - I was curious as well. I wonder > if SVG allows for a wolrd file, or if converting a PDF to a series of > DWG files in Illustrator then spatially referencing them would work. > > Andy > > a mapper wrote: > > Hello, > > > > I have some PDFs containing maps in vector format. > > Is there any possibility to use those as a datasource for mapserver > > (like, for example, ESRI shapefiles?) without creating any raster image > > (like TIFF)? > > I want to keep the vector format because of the quality loss when > > scaling a raster image. > > > > Is it possible to use multiple raster images for the same map for the > > different zoom levels the user can display? > > > > Thank you for your help. > > > > Mapper > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at CI.STPAUL.MN.US Mon Mar 12 08:32:47 2007 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 12 Mar 2007 10:32:47 -0500 Subject: Fwd: [UMN_MAPSERVER-USERS] Vertor PDF as data source for mapserver Message-ID: You may need to convert the DWG data with a utility of some sort. I use AutoCAD MAP for such conversions for example. There are likely others out on the net somewhere that will do the conversion for you as well. Some better than others depending on what type of elements they are. bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From wef1 at CEC.WUSTL.EDU Mon Mar 12 08:34:32 2007 From: wef1 at CEC.WUSTL.EDU (edfialk) Date: Mon, 12 Mar 2007 08:34:32 -0700 Subject: How to pull monthly data from a yearly netCDF? Message-ID: Hi, I have a good number of netCDF files that hold monthly data, but are seperated by year. I'm interested in serving this data through a WCS. I already have a WCS set up to read all the netCDF's, but I really have no idea how to access the individual months. I was told that a python script could be set up, but again I'm not sure what it would be doing. I'm thinking maybe writing to the dbf file some kind of NETCDF:"/myfile.netcdf/":my_parameter:my_month or something but so far I haven't had success. Does anyone have any idea how to pull out different bands from a netCDF file to serve in a WCS? Thanks so much. -Ed -- View this message in context: http://www.nabble.com/How-to-pull-monthly-data-from-a-yearly-netCDF--tf3390205.html#a9436838 Sent from the Mapserver - User mailing list archive at Nabble.com. From erik at IKS-JENA.DE Mon Mar 12 08:49:42 2007 From: erik at IKS-JENA.DE (Erik Heinz) Date: Mon, 12 Mar 2007 16:49:42 +0100 Subject: WMS, lines, and tile borders Message-ID: Hi, when using MapServer as WMS server to display a layer of TYPE LINE in connection with a tile-based client (e.g. Google Maps) the lines are not continuous across tile borders. Apparently, round line caps are drawn which lead to gaps at the tile borders particularly at low angles. I am using simple lines without SYMBOL definition. Lines drawn with SYMBOL "circle" seem do show the same behaviour. SYMBOL "cartoline" is not usable at all in my application due to poor rendering at low scale and artefacts at the tile borders. Anybody knows how to overcome this problem? Thank you in advance, Erik From noreply at GEOCARTIC.COM Mon Mar 12 09:49:35 2007 From: noreply at GEOCARTIC.COM (Tim Schaub) Date: Mon, 12 Mar 2007 10:49:35 -0600 Subject: WMS, lines, and tile borders In-Reply-To: <20070312154942.GA3863@iks-jena.de> Message-ID: Hi Erik- Erik Heinz wrote: > Hi, > > when using MapServer as WMS server to display a layer of TYPE LINE in > connection with a tile-based client (e.g. Google Maps) the lines are not > continuous across tile borders. Apparently, round line caps are drawn which > lead to gaps at the tile borders particularly at low angles. If you want to get around this bug and can use a client like OpenLayers, there should soon be support for tile "gutters" (buffers around tiles that are not displayed. You can see an example in my gutter sandbox: http://dev.openlayers.org/sandbox/tschaub/gutter/examples/gutter.html Other clients that do meta-tiling (requesting large tiles and slicing them up into smaller tiles) also get around this problem by discarding the tile edges. ka-Map and TileCache are two such clients. Don't think you'll have any luck getting around this in Google Maps. Of course it would be nice to have this fixed at the source. Until then, you can use an agile client. Tim From Steve.Lime at DNR.STATE.MN.US Mon Mar 12 12:22:01 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 12 Mar 2007 14:22:01 -0500 Subject: expression In-Reply-To: <45F56030.2010607@swoodbridge.com> Message-ID: I've got a feeling that ain't the problem. You need the quotes around the attribute name. I wonder if the special character is causing a problem. Leonardo, can you share the shapefile? Steve >>> On 3/12/2007 at 9:14 AM, in message <45F56030.2010607 at swoodbridge.com>, Stephen Woodbridge wrote: > Leonardo Olivieri wrote: >> Hello, >> >> I Have installed mapserver phpmapscript on linux. >> >> >> >> In the shapefile using ArcMap I haved a column COD_PIANO and a value is = > attivit? >> >> >> COD_PIANO >> >> attivit? >> >> >> In the mapfile on linux, I have the expression >> >> EXPRESSION ('[COD_PIANO]' eq 'attivit?') > > Try: > EXPRESSION ([COD_PIANO] eq 'attivit?') > >> but this expression don't work >> >> >> >> Any hints? >> >> >> Thanks in advanced. >> >> Leonardo From bigj at COLUMBUS.RR.COM Mon Mar 12 12:31:13 2007 From: bigj at COLUMBUS.RR.COM (Jason R. Moore) Date: Mon, 12 Mar 2007 15:31:13 -0400 Subject: Smooth panning with Dbox? Message-ID: I was wandering does any one know of an easy way of doing smooth panning with Dbox? ( i.e. like google map or Roza?) I have tried rendering a map image larger than the map display area and then clip the Dhtml layer to the display box of a table. Then for panning I move the image in the Dbox onDrag function. When doing this the image threw around the edges and some times it does not get clipped at all rather it becomes the background image for the page. This also requires generating images ~9 times larger than needed. Any ideas? Thanks Jason From Steve.Lime at DNR.STATE.MN.US Mon Mar 12 13:09:37 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 12 Mar 2007 15:09:37 -0500 Subject: Smooth panning with Dbox? In-Reply-To: <45F5AA81.4040401@columbus.rr.com> Message-ID: I know how ka-map (or Google) does it but I didn't know ROSA did it. That would be the approach to emulate. You're treading beyond the niche I originally envisioned for that application. Should look at OpenLayers too it may support smooth panning with untiled sources. Steve >>> On 3/12/2007 at 2:31 PM, in message <45F5AA81.4040401 at columbus.rr.com>, "Jason R. Moore" wrote: > I was wandering does any one know of an easy way of doing smooth panning > with Dbox? ( i.e. like google map or Roza?) I have tried rendering a > map image larger than the map display area and then clip the Dhtml > layer to the display box of a table. Then for panning I move the image > in the Dbox onDrag function. When doing this the image threw around the > edges and some times it does not get clipped at all rather it becomes > the background image for the page. This also requires generating > images ~9 times larger than needed. Any ideas? > > Thanks > Jason From janeks.kamerovskis at FORANBALTIC.LV Mon Mar 12 13:31:24 2007 From: janeks.kamerovskis at FORANBALTIC.LV (Janeks Kamerovskis) Date: Mon, 12 Mar 2007 22:31:24 +0200 Subject: sattelite image provider/resources Message-ID: Hi, Sorry about a bit off topic - I need ASAP couple of satellite images in couple places of Europe. Could somebody recommend me some reasonable links/companies/providers! I am just a bit confused within a lot of information I found in internet. The resolution of images should be at least 25 m. Thanks in advance, Janeks From bfraser at GEOANALYTIC.COM Mon Mar 12 15:01:15 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Mon, 12 Mar 2007 16:01:15 -0600 Subject: sattelite image provider/resources Message-ID: Janeks, The long story is it depends on your technical requirements, budget, capabilities, etc. The short story is for quick, free 15 meter Landsat mosaics (in MrSID format) go to NASA's Geocover site: https://zulu.ssc.nasa.gov/mrsid/. There are other sources of Landsat data, but they take some image processing get a nice geo-referenced seamless RGB mosaic of images. If you are interested more details, contact me off-list... Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Janeks Kamerovskis" To: Sent: Monday, March 12, 2007 2:31 PM Subject: [UMN_MAPSERVER-USERS] sattelite image provider/resources > Hi, > > Sorry about a bit off topic - I need ASAP couple of satellite images in > couple places of Europe. > Could somebody recommend me some reasonable links/companies/providers! > I am just a bit confused within a lot of information I found in internet. > > The resolution of images should be at least 25 m. > > Thanks in advance, > Janeks From pcreso at PCRESO.COM Mon Mar 12 15:02:56 2007 From: pcreso at PCRESO.COM (Brent Wood) Date: Mon, 12 Mar 2007 15:02:56 -0700 Subject: [MARMAM] Marine Ecosystem-based Management Funding Opportunity Message-ID: Hi everyone, Apologies for the cross posting, but I figured this might be of interest to various people on these lists using FOSS GIS tools in the maritime arena. After all, how often do we get offers of funding for development :-) Cheers, Brent Wood ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Subject: [MARMAM] Marine Ecosystem-based Management Funding Opportunity Date: Fri, 9 Mar 2007 17:17:42 -0500 From: Daniel Dunn Reply-To: daniel.dunn at duke.edu Organization: Marine Geospatial Ecology Lab To: The Marine Ecosystem-based Management Tool Innovation Fund Request for Letters of Intent The Marine Ecosystem-based Management Tool Innovation Fund is now accepting Letters of Intent to submit grant applications. The Fund is a two year initiative supported by the David & Lucile Packard Foundation to stimulate the development and dissemination of creative software tools for Marine Ecosystem-Based Management (MEBM). We seek to expand the network of MEBM tool developers through the establishment of targeted small grants and an associated technical support program. The program will grant approximately $500,000 a year for two years in small competitive grants to a broad range of organizations and developers. The initiative will aggressively provide detailed tool development guidelines, technical support, training workshops and assistance in tool development to the grantees for the duration of the fund. The primary deliverable products will be the innovative, interoperable and freely disseminated tools developed by the grantees. We encourage all applicants (there are currently no restrictions on who may apply) to submit letters of intent. To apply: please visit our website (http://mgel.env.duke.edu/mebm) and read the instructions under "Grant Application Process". Letters of Intent along with a 1-page letter of introduction are due by March 30th. If possible, please submit via email. Letters of Intent will be reviewed and full application packages sent to all relevant projects by April 10th. If you have any questions at all, please feel free to contact our project manager at daniel.dunn at duke.edu. Sincerely, Patrick N. Halpin Gabel Associate Professor of the Practice of Marine Geospatial Ecology, and Director Geospatial Analysis Program Nicholas School of the Environment and Earth Sciences Duke University Corresponding Contact: Daniel Dunn Research Associate Marine Geospatial Ecology Lab Nicholas School of the Environment and Earth Sciences Duke University Daniel.dunn at duke.edu __________________________ MARMAM mailing list MARMAM at lists.uvic.ca https://lists.uvic.ca/mailman/listinfo/marmam From bartvde at OSGIS.NL Tue Mar 13 02:29:06 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 13 Mar 2007 10:29:06 +0100 Subject: ArcSDE and SLD WMS (attribute queries) Message-ID: Hi list, using Mapserver on ArcSDE and trying to apply an SLD with a Filter I run into internal server errors all the time after about 30 seconds. My reasoning is that this is since the query-by-id mechanism will query ArcSDE for each item of the resultset and this just won't work. So can I safely conclude Mapserver on ArcSDE won't work well for non-spatial queries? I am using FastCGI already. Using cgi crashes as well, but after a longer period of waiting time (minutes). Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From steven.ottens at GEODAN.NL Tue Mar 13 04:04:00 2007 From: steven.ottens at GEODAN.NL (Steven M. Ottens) Date: Tue, 13 Mar 2007 12:04:00 +0100 Subject: [Mapbuilder-devel] Group Layer In-Reply-To: <45F51E7D.7030903@sarvision.nl> Message-ID: Vincent Schut wrote: > I have not yet committed my custom legend to trunk. I might do so when > it is more or less finished, though I think it should be more feasible > to put it somewhere on the mapbuilder site as a legend xsl example, then > to trunk as another legend renderer again. I think legend xsl/js files > are typically widgets that can be changed and adapted by any user, and > many users will have different opinions and needs about how a legend > should look and behave. However, as an example of an advanced legend > (ahum, if I may say so...) it might be good to post it somewhere. > However, if other MapBuilder developers disagree with me and think the > addition of my legend js/xsl code to trunk would be a good idea, I will > commit it. Hoi Vincent, There are indeed many ways to display the legend. Since it takes some XSL skills to modify the legend and those are not the easiest to acquire it is indeed a good idea to commit them to trunk. Not as the default xsl but for instance as a custom stylesheet/javascript in some demo. This way users can compare different legend visualizations and choose or adept the one they like most. Steven > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > mapbuilder-devel mailing list > mapbuilder-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel > From chrislist at NARX.NET Tue Mar 13 04:38:39 2007 From: chrislist at NARX.NET (Chris Tweedie) Date: Tue, 13 Mar 2007 20:38:39 +0900 Subject: ArcSDE and SLD WMS ( attribute queries) In-Reply-To: Message-ID: Bart, i may be grasping at straws here ... but have you had a look at CVS lately? Howard has checked in a lot of new stuff which solved some of our prior issues with SDE. I'd be interested to hear whether your issue remains as we are intending to use SLD's on the SDE layers as well. Chris Tweedie On Tue, 13 Mar 2007 10:29:06 +0100, "Bart van den Eijnden (OSGIS)" wrote: > Hi list, > > using Mapserver on ArcSDE and trying to apply an SLD with a Filter I run > into internal server errors all the time after about 30 seconds. > > My reasoning is that this is since the query-by-id mechanism will query > ArcSDE for each item of the resultset and this just won't work. > > So can I safely conclude Mapserver on ArcSDE won't work well for > non-spatial > queries? > > I am using FastCGI already. Using cgi crashes as well, but after a longer > period of waiting time (minutes). > > Best regards, > Bart > > -- Chris Tweedie From dirk at ADVTECHME.COM Tue Mar 13 07:29:57 2007 From: dirk at ADVTECHME.COM (Dirk Tilger) Date: Tue, 13 Mar 2007 18:29:57 +0400 Subject: expression In-Reply-To: <7C2921E7CC18CF4AAD2F9DF56E49F64F014BC3A3@produzione02.IMTEAM.LOCAL> Message-ID: On Mon, Mar 12, 2007 at 10:32:24AM +0100, Leonardo Olivieri wrote: > EXPRESSION ('[COD_PIANO]' eq 'attivit`a') What about... EXPRESSION ("[COD_PIANO]" == "attivit`a") ...? Dirk. From thomas.bonfort at GMAIL.COM Tue Mar 13 10:40:53 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Tue, 13 Mar 2007 18:40:53 +0100 Subject: Help using Java and Mapscript In-Reply-To: <402896.60427.qm@web38211.mail.mud.yahoo.com> Message-ID: i use something like pointObj oCenter = new pointObj(oMap.getWidth()/2,oMap.getHeight ()/2,0); oMap.zoomScale(scale, oCenter, oMap.getWidth(), oMap.getHeight (), oMap.getExtent(), oMap.getExtent()) where "scale" s is in fact the 1/s scale you are targetting. eg for 1/20000, scale = 20000 cheers, tb -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmpmcmanus at YAHOO.COM Tue Mar 13 13:37:57 2007 From: jmpmcmanus at YAHOO.COM (James McManus) Date: Tue, 13 Mar 2007 16:37:57 -0400 Subject: grass vector files Message-ID: I am trying to open a GRASS vector file with mapserver, using the following sequence in my .map file: NAME "roads" TYPE line STATUS on CONNECTIONTYPE OGR CONNECTION "/var/www/html/mapserver/grassdata/MDI/PERMANENT/vector/roads/head" DATA "1" # Layer number CLASS NAME "roads" COLOR 250 100 0 END When I try to initialize nothing appears in my web browser. I get a slew of error messages in my httpd erro_log file, beginning with the line: No such file or directory: Cannot open drivers directory, referer: http://www.aratasystems.com/mapserver/MDI_i.html This sounds a problem with accessing the file through my server. However, I am able to open a GRASS raster file in, with directory and files settings that are the same as the GRASS vector file. The next line in the error_log has the following statement: *** glibc detected *** /var/www/cgi-bin/mapserv: free(): invalid pointer: 0x00000000007fc540 *** This lead me (probably incorrectly) to think it may have to do with how I am compiling mapserver. I have tried recompiling mapserver in a variety of ways without success. Has anybody out there run into this problem before? Any hints would help! Jim From cavallini at FAUNALIA.IT Wed Mar 14 00:15:48 2007 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Wed, 14 Mar 2007 08:15:48 +0100 Subject: grass vector files In-Reply-To: <45F70BA5.7030602@yahoo.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ogrinfo --formats | grep GRASS? pc James McManus ha scritto: > I am trying to open a GRASS vector file with mapserver, using the ... - -- Paolo Cavallini email+jabber: cavallini at faunalia.it www.faunalia.it Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF96Ek/NedwLUzIr4RAlOIAJ9MkpYiEqIGSXsO9sJd8BNBerN3owCeM+wQ oBjJwf6x0AcvV8Q/e2y1I4I= =LkSd -----END PGP SIGNATURE----- From ian.maxfield at AIMTC.NHS.UK Wed Mar 14 05:04:52 2007 From: ian.maxfield at AIMTC.NHS.UK (Ian Maxfield) Date: Wed, 14 Mar 2007 07:04:52 -0500 Subject: Newbie and javascript problems Message-ID: Hello all, ms4w installed Windows XP (iis uninstalled) I have been working my way quite happily through the MapServer 4.6 tutorial, and have been doing fine until I have tried using the examples that include javascript. None of the code that includes javascript will work. E.g. when you click on a pan icon to call the javascript function pan(direction), nothing will happen. One of the function calls is as follows:
pan
northwest Should call; function pan(direction) { var x, y; if(direction == 'n') { x = (400-1)/2.0; y = 0 - (300 * pansize)/2.0; ....etc Tests I have tried: - created test functions to display alerts - changed the href to onclick calls - created new function calls elsewhere in the html document The javascript looks correct in that when you move the cursor onto the arrow the screen text at the bottom of the screen displays the function e.g. javascript:pan('nw'), but then nothing happens on the actual mouse click. As you can imagine the problem is driving me slightly insane. Is there something obvious that I am missing? Could it be to do with where the ms4w folder is stored? Any help would be greatly appreciated, Ian From umberto.nicoletti at GMAIL.COM Wed Mar 14 06:05:07 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 14 Mar 2007 14:05:07 +0100 Subject: Newbie and javascript problems In-Reply-To: Message-ID: In firefox under tools->error console you will find a log of all errors happening on the page. This could help in finding the cause. Umberto On 3/14/07, Ian Maxfield wrote: > Hello all, > > ms4w installed > Windows XP (iis uninstalled) > > I have been working my way quite happily through the MapServer 4.6 tutorial, > and have been doing fine until I have tried using the examples that include > javascript. None of the code that includes javascript will work. E.g. > when you click on a pan icon to call the javascript function pan(direction), > nothing will happen. One of the function calls is as follows: > > src="graphics/nw.png" width="18" height="18" border="0" alt="pan > northwest"> > > Should call; > > function pan(direction) { > var x, y; > if(direction == 'n') { > x = (400-1)/2.0; > y = 0 - (300 * pansize)/2.0; > ....etc > > Tests I have tried: > - created test functions to display alerts > - changed the href to onclick calls > - created new function calls elsewhere in the html document > > The javascript looks correct in that when you move the cursor onto the arrow > the screen text at the bottom of the screen displays the function e.g. > javascript:pan('nw'), but then nothing happens on the actual mouse click. > > As you can imagine the problem is driving me slightly insane. Is there > something obvious that I am missing? Could it be to do with where the ms4w > folder is stored? > > Any help would be greatly appreciated, > > Ian > From oyama.k at SA-SOLUTIONS.CO.ZA Wed Mar 14 06:31:30 2007 From: oyama.k at SA-SOLUTIONS.CO.ZA (Oyama Kula) Date: Wed, 14 Mar 2007 15:31:30 +0200 Subject: transparent symbols Message-ID: Hi Guys, There is nothing new; same old question ?How to make a Transparent PNG Symbol on Map Server?? I?ve tried to google it, but I only manage to get this http://lists.umn.edu/cgi-bin/wa?A2=ind0703 &L=mapserver-users&T=0&F=&S=&P=937 with no reply. Please help me guys. Best Regards Oyama Kula ND (Information Technology) Walter Sisulu University, CCNA ? Cisco Networking Academy -------------- next part -------------- An HTML attachment was scrubbed... URL: From epk.lists at GMAIL.COM Wed Mar 14 07:38:07 2007 From: epk.lists at GMAIL.COM (Eduardo Patto Kanegae) Date: Wed, 14 Mar 2007 11:38:07 -0300 Subject: how to submit a ROI defined by dBox? Message-ID: Hi folks, I'm using dBox as my MapServer CGI front end and have enabled draw area tool. Now I'd like to submit the points defined by area tool and then save the area as a polygon inside a PostGIS database. Have someone done something similar? How does dBox handle this area? As image coordinates? Or as UTM coordinates? best -- Eduardo Patto Kanegae From lichte at ICBM.DE Wed Mar 14 07:51:21 2007 From: lichte at ICBM.DE (Oliver Lichte) Date: Wed, 14 Mar 2007 15:51:21 +0100 Subject: transparent symbols In-Reply-To: Message-ID: Hi Oyama, the imagemode of the outputformat defined within the mapfile must be RGB and not PC256 or others. For instance like this ... OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END ... Hope that will solve it. Best regards, Oliver Am Mittwoch 14 M?rz 2007 14:31 schrieb Oyama Kula: > Hi Guys, > > > > > > There is nothing new; same old question ?How to make a Transparent PNG > Symbol on Map Server?? > > I?ve tried to google it, but I only manage to get this > http://lists.umn.edu/cgi-bin/wa?A2=ind0703 > 3 7> &L=mapserver-users&T=0&F=&S=&P=937 with no reply. > > > > Please help me guys. > > > > Best Regards > > Oyama Kula > > ND (Information Technology) Walter Sisulu University, CCNA ? Cisco > Networking Academy -- Nachwuchsforschergruppe IMPULSE Institut f?r Chemie und Biologie des Meeres (ICBM) Carl-von-Ossietzky-Stra?e 9-11 Postfach 2503 D-26129 Oldenburg www.icbm.de/impulse www.icbm.de/anemos www.kids4offshore.eu Tel.: +49-441-798-3622 Fax : +49-441-798-3404 Mail:lichte at icbm.de IMPULSE is also involved in the European project POWER Pushing Offshore Wind Energy Regions See the POWER Website: www.offshore-power.net From Walter.Pleyer at LFRZ.AT Wed Mar 14 08:17:48 2007 From: Walter.Pleyer at LFRZ.AT (Pleyer, Walter) Date: Wed, 14 Mar 2007 16:17:48 +0100 Subject: Display Lines as Points Message-ID: Hi Folks! We have a rather tricky problem and maybe someone out there knows a solution. We have a layer of rivers, divided in 500m Segments, stored in an Oracle Spatial DB. Each segment is a simple line with a starting point and an end point, but they shall not be displayed a slines, but rather as points. What we want is simnply to represent every segment by its starting point only. Is that possible? Walter LFRZ A-1200 Wien, Dresdner Strasse 89 Tel: ++43(1)33 176/421 Fax: ++43(1)33 176/999 Email: walter.pleyer at lfrz.at WWW: http://www.lfrz.at From ian.maxfield at AIMTC.NHS.UK Wed Mar 14 08:50:12 2007 From: ian.maxfield at AIMTC.NHS.UK (Ian Maxfield) Date: Wed, 14 Mar 2007 10:50:12 -0500 Subject: document.mapserv.submit(); problems in javascript Message-ID: Many thanks to those who gave solutions to problems that I was having with javascript. The error console in Firefox has proved particularly useful in identifying and fixing problems. The only message that I now currently have from the error console is: ' document.mapserv.submit is not a function ' I understand that this is the script to force mapserve to refresh within javascript. In all the examples I have seen on the the net the code above is perfectly valid - I cannot see why I should have an error using this code. Can anyone shed any light on this?? Thanks, Ian From mcompte at SIGTE.UDG.ES Wed Mar 14 09:01:06 2007 From: mcompte at SIGTE.UDG.ES (Marc Compte) Date: Wed, 14 Mar 2007 17:01:06 +0100 Subject: Smooth panning with Dbox? In-Reply-To: <45F56D31.5157.008F.0@dnr.state.mn.us> Message-ID: As far as I know, ka-map is based on MapServer and helps you build web interfaces that do precisely that. There was a demonstration about it at the 1st Meeting on FOS GIS in Girona (Spain) and it was very interesting. It sure deserves a try. Marc En/na Steve Lime ha escrit: > I know how ka-map (or Google) does it but I didn't know ROSA did it. That would be the approach > to emulate. You're treading beyond the niche I originally envisioned for that application. Should > look at OpenLayers too it may support smooth panning with untiled sources. > > Steve > > >>>> On 3/12/2007 at 2:31 PM, in message <45F5AA81.4040401 at columbus.rr.com>, "Jason >>>> > R. Moore" wrote: > >> I was wandering does any one know of an easy way of doing smooth panning >> with Dbox? ( i.e. like google map or Roza?) I have tried rendering a >> map image larger than the map display area and then clip the Dhtml >> layer to the display box of a table. Then for panning I move the image >> in the Dbox onDrag function. When doing this the image threw around the >> edges and some times it does not get clipped at all rather it becomes >> the background image for the page. This also requires generating >> images ~9 times larger than needed. Any ideas? >> >> Thanks >> Jason >> > > From jmpmcmanus at YAHOO.COM Wed Mar 14 09:01:04 2007 From: jmpmcmanus at YAHOO.COM (James McManus) Date: Wed, 14 Mar 2007 12:01:04 -0400 Subject: using CONFIG to set GISBASE Message-ID: I am getting the following error message when I try and read a grass vector file: msDrawMap(): Image handling error. Failed to draw layer named 'roads'. msOGRFileNextShape(): OGR error. Cannot open database dbf by driver /var/www/html/mapserver/grassdata/MDI/PERMANENT/dbf/, check if GISBASE environment variable is set, the driver is available and the database is accessible. I been trying to set GISBASE using the CONFIG keyword in my .map file: NAME "MDI" UNITS DD EXTENT -68.40 44.23 -68.23 44.39 SIZE 640 480 IMAGECOLOR 189 202 222 IMAGETYPE PNG CONFIG "GISBASE" "/usr/local/grass-6.2.0/" I have tried variations, such as not using quotes, but no success so far. How is this done? I'm using mapserver 4.10, so the CONFIG keyword should be available. Jim From pgiannini at BYTEWISE.IT Wed Mar 14 09:07:49 2007 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Wed, 14 Mar 2007 17:07:49 +0100 Subject: document.mapserv.submit(); problems in javascript In-Reply-To: Message-ID: try: document.mapserv.submit()with parenthesis ( ). without parenthesis 'submit' is a property, not a function, in javascript. regards .....................................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mer, 14 Marzo 2007 4:50 pm, Ian Maxfield wrote: > Many thanks to those who gave solutions to problems that I was having with > javascript. The error console in Firefox has proved particularly useful > in > identifying and fixing problems. > > The only message that I now currently have from the error console is: > > ' document.mapserv.submit is not a function ' > > I understand that this is the script to force mapserve to refresh within > javascript. In all the examples I have seen on the the net the code above > is perfectly valid - I cannot see why I should have an error using this > code. > > Can anyone shed any light on this?? > > Thanks, > > Ian > -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Wed Mar 14 09:42:59 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 14 Mar 2007 17:42:59 +0100 Subject: document.mapserv.submit(); problems in javascript In-Reply-To: Message-ID: document.rv is used in js to access a form called mapserv. Pay attention NOT to have another document element called mapserv or whose id is mapserv. The browser dunnows which one to pick and will return undef. This has bitten me in the past too... Umberto On 3/14/07, Ian Maxfield wrote: > Many thanks to those who gave solutions to problems that I was having with > javascript. The error console in Firefox has proved particularly useful in > identifying and fixing problems. > > The only message that I now currently have from the error console is: > > ' document.mapserv.submit is not a function ' > > I understand that this is the script to force mapserve to refresh within > javascript. In all the examples I have seen on the the net the code above > is perfectly valid - I cannot see why I should have an error using this code. > > Can anyone shed any light on this?? > > Thanks, > > Ian > From pgiannini at BYTEWISE.IT Wed Mar 14 09:55:02 2007 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Wed, 14 Mar 2007 17:55:02 +0100 Subject: document.mapserv.submit(); problems in javascript In-Reply-To: Message-ID: Hi Ian, try firs the answer of Umberto... if not: submit is not a function of mapserver, but a function of the javascript object form, which send the data of the form to the web server, accordin to the method (POST or GET, default GET, I suppose, but is not important yet) try some debug methods like alerts: ?? var oform = document.forms["mapserv"]; ??? if (!oform) { alert("form not recognized"); } and the problem is another. try too another browser. javascript need much patience bye ............................................ pg On Mer, 14 Marzo 2007 5:29 pm, Maxfield Ian wrote: > Hi Pietro, > > > > The actual code within the html file is " document.mapserv.submit() ", > whereas the error message within the Firefox error console removed the > parenthesis. I have tried examples such as: > > var oform = document.forms["mapserv"]; > > oform.submit(); > > > > but this did not work either. The same error came back. > > > > This is quite frustrating as everyone's examples online use " > document.mapserv.submit() " without any problems. Is submit() a function > within the mapserver program? > > > > Ian > > > > Ian Maxfield > GIS Specialist > Avon IM&T Consortium, King Square House, King Square, Bristol, BS2 8EE > T: 0117 9002490 / F: 0117 9002473 > E: Ian.Maxfield at aimtc.nhs.uk > W: http://nww.avon.nhs/imtconsortium/Information_Services/ > > ________________________________ > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Pietro Giannini > Sent: 14 March 2007 16:08 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] document.mapserv.submit(); problems in > javascript > > > > try: > document.mapserv.submit()with parenthesis ( ). > without parenthesis 'submit' is a property, not a function, in javascript. > > regards > .....................................pg > > -- > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > > On Mer, 14 Marzo 2007 4:50 pm, Ian Maxfield wrote: >> Many thanks to those who gave solutions to problems that I was having >> with >> javascript. The error console in Firefox has proved particularly useful >> in >> identifying and fixing problems. >> >> The only message that I now currently have from the error console is: >> >> ' document.mapserv.submit is not a function ' >> >> I understand that this is the script to force mapserve to refresh within >> javascript. In all the examples I have seen on the the net the code >> above >> is perfectly valid - I cannot see why I should have an error using this >> code. >> >> Can anyone shed any light on this?? >> >> Thanks, >> >> Ian >> > > ########################################### > > This message has been scanned by F-Secure Anti-Virus for Microsoft > Exchange. > For more information, connect to http://www.f-secure.com/ -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E -------------- next part -------------- An HTML attachment was scrubbed... URL: From ltrevinoh at GMAIL.COM Wed Mar 14 10:13:04 2007 From: ltrevinoh at GMAIL.COM (=?ISO-8859-1?Q?Luis_Trevi=F1o?=) Date: Wed, 14 Mar 2007 11:13:04 -0600 Subject: Newbie and javascript problems In-Reply-To: Message-ID: Ian: Remember to write the imgxy value (hidden variable on your template) with the resulting x,y values obtained on your pan function. something like: function pan(direction) { var x, y; if(direction == 'n') { x = (400-1)/2.0; y = 0 - (300 * pansize)/2.0; ....etc document.mapserv.imgxy.value = x + " " + y; document.mapserv.submit(); } it should work. Hope it helps Regards Luis 2007/3/14, Ian Maxfield : > > Hello all, > > ms4w installed > Windows XP (iis uninstalled) > > I have been working my way quite happily through the MapServer 4.6tutorial, > and have been doing fine until I have tried using the examples that > include > javascript. None of the code that includes javascript will work. E.g. > when you click on a pan icon to call the javascript function > pan(direction), > nothing will happen. One of the function calls is as follows: > > src="graphics/nw.png" width="18" height="18" border="0" alt="pan > northwest"> > > Should call; > > function pan(direction) { > var x, y; > if(direction == 'n') { > x = (400-1)/2.0; > y = 0 - (300 * pansize)/2.0; > ....etc > > Tests I have tried: > - created test functions to display alerts > - changed the href to onclick calls > - created new function calls elsewhere in the html document > > The javascript looks correct in that when you move the cursor onto the > arrow > the screen text at the bottom of the screen displays the function e.g. > javascript:pan('nw'), but then nothing happens on the actual mouse click. > > As you can imagine the problem is driving me slightly insane. Is there > something obvious that I am missing? Could it be to do with where the > ms4w > folder is stored? > > Any help would be greatly appreciated, > > Ian > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Wed Mar 14 10:17:47 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 14 Mar 2007 12:17:47 -0500 Subject: Display Lines as Points In-Reply-To: Message-ID: Forgot to mention, you could to this in mapscript by pulling the features from Oracle and adding the point you want to a layer and then drawing. Performance wouldn't be so hot... Steve >>> On 3/14/2007 at 10:17 AM, in message , "Pleyer, Walter" wrote: > Hi Folks! > > We have a rather tricky problem and maybe someone out there knows a > solution. > We have a layer of rivers, divided in 500m Segments, stored in an > Oracle Spatial DB. > Each segment is a simple line with a starting point and an end point, > but they shall not be displayed a slines, but rather as points. > What we want is simnply to represent every segment by its starting point > only. > Is that possible? > > Walter > > LFRZ > A-1200 Wien, Dresdner Strasse 89 > Tel: ++43(1)33 176/421 > Fax: ++43(1)33 176/999 > Email: walter.pleyer at lfrz.at > WWW: http://www.lfrz.at From Steve.Lime at DNR.STATE.MN.US Wed Mar 14 10:16:27 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 14 Mar 2007 12:16:27 -0500 Subject: Display Lines as Points In-Reply-To: Message-ID: MapServer itself cannot selectively display just one point from a feature. Perhaps there is a Oracle function to do the extraction on the database side? PostGIS users might have an idea that could be translated into Oracle. Steve >>> On 3/14/2007 at 10:17 AM, in message , "Pleyer, Walter" wrote: > Hi Folks! > > We have a rather tricky problem and maybe someone out there knows a > solution. > We have a layer of rivers, divided in 500m Segments, stored in an > Oracle Spatial DB. > Each segment is a simple line with a starting point and an end point, > but they shall not be displayed a slines, but rather as points. > What we want is simnply to represent every segment by its starting point > only. > Is that possible? > > Walter > > LFRZ > A-1200 Wien, Dresdner Strasse 89 > Tel: ++43(1)33 176/421 > Fax: ++43(1)33 176/999 > Email: walter.pleyer at lfrz.at > WWW: http://www.lfrz.at From woodbri at SWOODBRIDGE.COM Wed Mar 14 11:49:04 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 14 Mar 2007 13:49:04 -0500 Subject: Display Lines as Points In-Reply-To: <45F7E79B.5157.008F.0@dnr.state.mn.us> Message-ID: Walter, Setup the layer as a POINT layer and construct a SQL query that extracts the first point of the line segment. You might want to create a view to simplify the SQL in the mapfile or to create an index on the points. -Steve Steve Lime wrote: > MapServer itself cannot selectively display just one point from a > feature. Perhaps there is a Oracle function to do the extraction on > the database side? PostGIS users might have an idea that could be > translated into Oracle. > > Steve > >>>> On 3/14/2007 at 10:17 AM, in message > , > "Pleyer, Walter" wrote: >> Hi Folks! >> >> We have a rather tricky problem and maybe someone out there knows a >> solution. We have a layer of rivers, divided in 500m Segments, >> stored in an Oracle Spatial DB. Each segment is a simple line with >> a starting point and an end point, but they shall not be displayed >> a slines, but rather as points. What we want is simnply to >> represent every segment by its starting point only. Is that >> possible? >> >> Walter >> >> LFRZ A-1200 Wien, Dresdner Strasse 89 Tel: ++43(1)33 176/421 Fax: >> ++43(1)33 176/999 Email: walter.pleyer at lfrz.at WWW: >> http://www.lfrz.at From david.bitner at GMAIL.COM Wed Mar 14 11:26:04 2007 From: david.bitner at GMAIL.COM (David William Bitner) Date: Wed, 14 Mar 2007 14:26:04 -0400 Subject: Display Lines as Points In-Reply-To: <45F7E79B.5157.008F.0@dnr.state.mn.us> Message-ID: If your layer was in postgis, you would just need to use something like this in your data statement: DATA "spoint from (select startpoint(the_geom) as spoint,id from mytable) as mytable using unique id using srid=-1" On 3/14/07, Steve Lime wrote: > > MapServer itself cannot selectively display just one point from a feature. > Perhaps there > is a Oracle function to do the extraction on the database side? PostGIS > users might have > an idea that could be translated into Oracle. > > Steve > > >>> On 3/14/2007 at 10:17 AM, in message > , "Pleyer, > Walter" wrote: > > Hi Folks! > > > > We have a rather tricky problem and maybe someone out there knows a > > solution. > > We have a layer of rivers, divided in 500m Segments, stored in an > > Oracle Spatial DB. > > Each segment is a simple line with a starting point and an end point, > > but they shall not be displayed a slines, but rather as points. > > What we want is simnply to represent every segment by its starting point > > only. > > Is that possible? > > > > Walter > > > > LFRZ > > A-1200 Wien, Dresdner Strasse 89 > > Tel: ++43(1)33 176/421 > > Fax: ++43(1)33 176/999 > > Email: walter.pleyer at lfrz.at > > WWW: http://www.lfrz.at > -- ************************************ David William Bitner -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at OSGIS.NL Wed Mar 14 11:29:30 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 14 Mar 2007 19:29:30 +0100 Subject: ArcSDE and SLD WMS (attribute queries) Message-ID: Hi John, thanks for the info. I did get attribute queries to work, but what I can't get to work is a combination of a spatial filter and an attribute filter (combined with an ogc:And). Did anyone ever try that successfully? Best regards, Bart Bart, The Government of BC has an application which uses non-spatial filters in SLD documents to Mapserver, with an SDE back-end: http://openmaps.gov.bc.ca/imfows13/imf.jsp?site=idt Find Imagery --> Air Photos --> Search For Air Photos Zoom in to the resultant features, activate the "Centres" tool, and draw a box around a number of Air Photo centre points. This will show three separate SDE layers styled using an SLD with a filter (non-spatial), two of which have alternate symbolization and thus a more complex filter clause in the SLD. Incidentally, the other imagery types (Orthophotos, Satellite Imagery, etc) are primarily backed by shapefiles, so are not relevant to this discussion. I did run into timeout problems getting the SLD to work when there were > > 200 or so individual features that needed to be identified with the filter. I had been using a single PropertyIsEqualTo clause for each feature which I was able to change to a handful of PropertyIsBetween clauses due to the convenient sequential numbering of the ID values which I was filtering. This change allows the SLD filter to work quite well. Regards, John Fletcher Latitude Geographics Group Ltd. jfletcher at latitudegeo.com www.latitudegeo.com Head Office: 204 Market Square Victoria, BC Canada V8W 3C6 Tel: (250) 381-8130 Fax: (250) 381-8132 Geocortex Internet Mapping (www.geocortex.net) - Helping people succeed with web-based geography -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From jfletcher at LATITUDEGEO.COM Wed Mar 14 11:22:48 2007 From: jfletcher at LATITUDEGEO.COM (John Fletcher) Date: Wed, 14 Mar 2007 11:22:48 -0700 Subject: ArcSDE and SLD WMS (attribute queries) In-Reply-To: A Message-ID: Bart, The Government of BC has an application which uses non-spatial filters in SLD documents to Mapserver, with an SDE back-end: http://openmaps.gov.bc.ca/imfows13/imf.jsp?site=idt Find Imagery --> Air Photos --> Search For Air Photos Zoom in to the resultant features, activate the "Centres" tool, and draw a box around a number of Air Photo centre points. This will show three separate SDE layers styled using an SLD with a filter (non-spatial), two of which have alternate symbolization and thus a more complex filter clause in the SLD. Incidentally, the other imagery types (Orthophotos, Satellite Imagery, etc) are primarily backed by shapefiles, so are not relevant to this discussion. I did run into timeout problems getting the SLD to work when there were > 200 or so individual features that needed to be identified with the filter. I had been using a single PropertyIsEqualTo clause for each feature which I was able to change to a handful of PropertyIsBetween clauses due to the convenient sequential numbering of the ID values which I was filtering. This change allows the SLD filter to work quite well. Regards, John Fletcher Latitude Geographics Group Ltd. jfletcher at latitudegeo.com www.latitudegeo.com Head Office: 204 Market Square Victoria, BC Canada V8W 3C6 Tel: (250) 381-8130 Fax: (250) 381-8132 Geocortex Internet Mapping (www.geocortex.net) - Helping people succeed with web-based geography -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bart van den Eijnden (OSGIS) Sent: Tuesday, March 13, 2007 2:29 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] ArcSDE and SLD WMS (attribute queries) Hi list, using Mapserver on ArcSDE and trying to apply an SLD with a Filter I run into internal server errors all the time after about 30 seconds. My reasoning is that this is since the query-by-id mechanism will query ArcSDE for each item of the resultset and this just won't work. So can I safely conclude Mapserver on ArcSDE won't work well for non-spatial queries? I am using FastCGI already. Using cgi crashes as well, but after a longer period of waiting time (minutes). Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From szekerest at GMAIL.COM Wed Mar 14 11:44:20 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 14 Mar 2007 19:44:20 +0100 Subject: Display Lines as Points In-Reply-To: Message-ID: This kind of problems could be solved easily by creating 3rd party data adapters, if someday I could eventually finish the proposal can be found at: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-22 Best regards, Tamas 2007/3/14, Pleyer, Walter : > Hi Folks! > > We have a rather tricky problem and maybe someone out there knows a > solution. > We have a layer of rivers, divided in 500m Segments, stored in an > Oracle Spatial DB. > Each segment is a simple line with a starting point and an end point, > but they shall not be displayed a slines, but rather as points. > What we want is simnply to represent every segment by its starting point > only. > Is that possible? > > Walter > > LFRZ > A-1200 Wien, Dresdner Strasse 89 > Tel: ++43(1)33 176/421 > Fax: ++43(1)33 176/999 > Email: walter.pleyer at lfrz.at > WWW: http://www.lfrz.at > From dylan.beaudette at GMAIL.COM Wed Mar 14 12:25:57 2007 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Wed, 14 Mar 2007 12:25:57 -0700 Subject: how to cite mapserver in a manuscript Message-ID: Hi everyone is there an established way to cite mapserver in an article? thanks, -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From jfletcher at LATITUDEGEO.COM Wed Mar 14 11:56:09 2007 From: jfletcher at LATITUDEGEO.COM (John Fletcher) Date: Wed, 14 Mar 2007 11:56:09 -0700 Subject: ArcSDE and SLD WMS (attribute queries) In-Reply-To: A Message-ID: Bart, Not a true answer to your question, but it fails for me as well if I include a basic spatial filter (ogc:And) with the attribute query. John Fletcher Latitude Geographics Group Ltd. jfletcher at latitudegeo.com www.latitudegeo.com Head Office: 204 Market Square Victoria, BC Canada V8W 3C6 Tel: (250) 381-8130 Fax: (250) 381-8132 Geocortex Internet Mapping (www.geocortex.net) - Helping people succeed with web-based geography -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bart van den Eijnden (OSGIS) Sent: Wednesday, March 14, 2007 11:30 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] ArcSDE and SLD WMS (attribute queries) Hi John, thanks for the info. I did get attribute queries to work, but what I can't get to work is a combination of a spatial filter and an attribute filter (combined with an ogc:And). Did anyone ever try that successfully? Best regards, Bart Bart, The Government of BC has an application which uses non-spatial filters in SLD documents to Mapserver, with an SDE back-end: http://openmaps.gov.bc.ca/imfows13/imf.jsp?site=idt Find Imagery --> Air Photos --> Search For Air Photos Zoom in to the resultant features, activate the "Centres" tool, and draw a box around a number of Air Photo centre points. This will show three separate SDE layers styled using an SLD with a filter (non-spatial), two of which have alternate symbolization and thus a more complex filter clause in the SLD. Incidentally, the other imagery types (Orthophotos, Satellite Imagery, etc) are primarily backed by shapefiles, so are not relevant to this discussion. I did run into timeout problems getting the SLD to work when there were > > 200 or so individual features that needed to be identified with the filter. I had been using a single PropertyIsEqualTo clause for each feature which I was able to change to a handful of PropertyIsBetween clauses due to the convenient sequential numbering of the ID values which I was filtering. This change allows the SLD filter to work quite well. Regards, John Fletcher Latitude Geographics Group Ltd. jfletcher at latitudegeo.com www.latitudegeo.com Head Office: 204 Market Square Victoria, BC Canada V8W 3C6 Tel: (250) 381-8130 Fax: (250) 381-8132 Geocortex Internet Mapping (www.geocortex.net) - Helping people succeed with web-based geography -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From umn-ms at HYDROTEC.DE Thu Mar 15 00:35:08 2007 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Thu, 15 Mar 2007 08:35:08 +0100 Subject: Antwort: [UMN_MAPSERVER-USERS] Display Lines as Points In-Reply-To: Message-ID: Hi Maybe you could use an PL/SQL-Function, which converts the lines into multipoints. create or replace function Line2Point(aLine mdsys.sdo_geometry) return mdsys.sdo_geometry is dims integer; begin if (aLine is null) then return null; end if; if (aLine.SDO_ELEM_INFO is null or aLine.SDO_ORDINATES is null) then return null; end if; dims := aLine.SDO_GTYPE / 1000; return MDSYS.SDO_GEOMETRY( dims*1000+5, -- SDO_GTYPE: MULTIPOINT, aLine.SDO_SRID, NULL, -- No Singe-Point -- SDO_STARTING_OFFSET,SDO_ETYPE: Point type ,SDO_INTERPRETATION: Point cluster with n points. MDSYS.SDO_ELEM_INFO_ARRAY(1,2,aLine.SDO_ORDINATES. Count / dims), aLine.SDO_ORDINATES); -- Ticks don't change end Line2Point; / create or replace view XStream as Select Line2Point(shape) shape, name,nummer from Streams; Than use XStream in the Layer of the Mapserver-Map-File. Maybe you must dig a little bit in the SDO-Documentation to find correct settings for ELEM_INFO_ARRAY. Should be something like this. Benedikt Rothe UMN MapServer Users List schrieb am 14.03.2007 16:17:48: > Hi Folks! > > We have a rather tricky problem and maybe someone out there knows a > solution. > We have a layer of rivers, divided in 500m Segments, stored in an > Oracle Spatial DB. > Each segment is a simple line with a starting point and an end point, > but they shall not be displayed a slines, but rather as points. > What we want is simnply to represent every segment by its starting point > only. > Is that possible? > > Walter > > LFRZ > A-1200 Wien, Dresdner Strasse 89 > Tel: ++43(1)33 176/421 > Fax: ++43(1)33 176/999 > Email: walter.pleyer at lfrz.at > WWW: http://www.lfrz.at -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Mar 15 09:52:31 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 15 Mar 2007 12:52:31 -0400 Subject: using CONFIG to set GISBASE In-Reply-To: <45F81C40.1010702@yahoo.com> Message-ID: James McManus wrote: > I am getting the following error message when I try and read a grass > vector file: > > msDrawMap(): Image handling error. Failed to draw layer named 'roads'. > msOGRFileNextShape(): OGR error. Cannot open database dbf by driver > /var/www/html/mapserver/grassdata/MDI/PERMANENT/dbf/, check if GISBASE > environment variable is set, the driver is available and the database is > accessible. > > I been trying to set GISBASE using the CONFIG keyword in my .map file: > > NAME "MDI" > UNITS DD > EXTENT -68.40 44.23 -68.23 44.39 > SIZE 640 480 > IMAGECOLOR 189 202 222 > IMAGETYPE PNG > CONFIG "GISBASE" "/usr/local/grass-6.2.0/" > > I have tried variations, such as not using quotes, but no success so > far. How is this done? I'm using mapserver 4.10, so the CONFIG keyword > should be available. Jim, The CONFIG keyword in .map files does not actually set an environment variable which is what is required by the OGR GRASS driver and GRASS itself for GISBASE. The CONFIG keyword will set a "GDAL config option" but it seems the OGR GRASS driver was not setup to use that. Even if that was fixed, I suspect the GRASS libraries still require a real environment variable. I'd suggest you try setting GISBASE with an Apache SetEnv, or a MapServer wrapper script. 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 | President OSGeo, http://osgeo.org From Schoenhammer.Herbert at REGENSBURG.DE Thu Mar 15 05:54:54 2007 From: Schoenhammer.Herbert at REGENSBURG.DE (=?iso-8859-1?Q?=22Sch=F6nhammer=2C_Herbert=22?=) Date: Thu, 15 Mar 2007 13:54:54 +0100 Subject: No drawing of certain polygon rings stroed in Oracle Spatial Message-ID: Hi, I have some troubles drawing of certain geometries, stored in Oracle Spatial 9i. In general, I'm able to say, that polygon rings are drawn without problems (Connected by line strings or compound line strings connected by circular arcs AND line strings). But there are some types, which are not drawn by mapserver. There is no warning or error reported by mapserver ! These certain geometries only are not present in the drawn png-file (or what ever). The geometries in the neighbourhood are drawn ! My Environment ============== - Oracle 9i with Spatial Option on a Windows 2003 Server - MapServer 4.8.4 (Mapserver 4.10.1 does the same !) on a SuSE SLES 9 compiled with an Oracle 10g - Client - MapServer used as WMS-Server In detail the geometry, whis is NOT drawn by mapserver ====================================================== Our application (Autodesk Topoase 3) is not storing a circle as a circle in Oracle Spatial. The circle is splitted into two arcs, connected to each other at the end-/start-points of the arcs. The drawn picture should be the picture of a circle. The stored geometry has the properties: GTYPE 2003 (= 2-dim POLYGON) In Detail: (2003; 82032; ; (1; 1003; 2; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ); (4505542,97176542; 5430753,10554764; 4505541,58808944; 5430750,58265205; 4505544,16794032; 5430749,30831663; 4505545,28931113; 5430751,74858283; 4505542,97176542; 5430753,10554764; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; )) The geometry validates (SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT), the result is TRUE. The same geometry stored as LINE or CURVE IS drawn !! ===================================================== GTYPE 2002 (= 2-dim LINE or CURVE) (2002; 82032; ; (1; 2; 2; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ); (4505542,97176542; 5430753,10554764; 4505541,58808944; 5430750,58265206; 4505544,16794032; 5430749,30831663; 4505545,28931113; 5430751,74858283; 4505542,97176542; 5430753,10554764; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; )) Note ==== Changing the mapserver Layer TYPE from POLYGON to LINE (or vice versa) does not have any effect !!! In detail a "circle", which IS drawn by mapserver ================================================= GTYPE 2002 (= 2-dim LINE or CURVE) (2002; 82032; ; (1; 4; 1; 1; 2; 2; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ); (4506079,8746; 5430398,0938; 4506070,0144; 5430388,2336; 4506079,8746; 5430378,3734; 4506089,7348; 5430388,2336; 4506079,8746; 5430398,0938; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; )) The geometry also validates (SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT), the result is TRUE. BUT: ---- Please look at the first triplet of SDO_ELEM_INFO. Looking in Oracle Documentation, the combination of SDO_ETYPE=4 with a SDO_INTERPRETATION=1 is NOT allowed. SDO_INTERPRETATION MUST be bigger than 1. (Is there a bug in the doc ??????) My problem ========== Creating new circles, the application stores them as GTYPE 2003, which is not drawn ! Does anybody know, what's the matter? ===================================== Is there anybody, who has some tipps for me ? With kind regards Sch?nhammer Herbert -------------- next part -------------- An HTML attachment was scrubbed... URL: From myardbenoit at GMAIL.COM Thu Mar 15 08:49:58 2007 From: myardbenoit at GMAIL.COM (Benoit Myard) Date: Thu, 15 Mar 2007 16:49:58 +0100 Subject: GetFeatureInfo - text/plain output Message-ID: Hi list, I'm trying to set up a GetFeatureInfo-enabled installation of MapServer and, strangely, I managed to alter the fields shown in a request except for text/plain output. As far as text/html is concerned, you have templates, as far as Gml is concerned, you have gml_[include|exclude]_items and it works pretty well. As far as text/plain is concerned, there doesn't seem to be any way to alter the fields displayed and I actually can't get a single one displayed. I tried text_include_items with no luck; it seems to be valid syntax though. Googling and struggling with the doc didn't help either. Does anyone know of a way to specify which fields to display for text/plain output of a GetFeatureInfo request and even a way to change the fashion they are displayed (templates ?) ? Thanks in advance. -- Benoit Myard From myardbenoit at GMAIL.COM Thu Mar 15 09:03:53 2007 From: myardbenoit at GMAIL.COM (Benoit Myard) Date: Thu, 15 Mar 2007 17:03:53 +0100 Subject: GetFeatureInfo - text/plain output In-Reply-To: <6fb81fc70703150849o434e79fdqb10011f8aa82aad8@mail.gmail.com> Message-ID: Errr. 'ows_include_items' controls both text/plain AND Gml output. LAYER NAME "cities" STATUS On TYPE Point DUMP True METADATA wms_title "Cities" ows_include_items "PPPTNAME,PPPTFLAG" END DATA "cities/LAB" LABELITEM "PPPTNAME" CLASSITEM "Type" CLASS EXPRESSION "Capital" NAME "Capital" TEMPLATE "templates/cities.html" Have a nice day. -- Benoit Myard From beaart at XS4ALL.NL Thu Mar 15 09:05:47 2007 From: beaart at XS4ALL.NL (Chris Beaart) Date: Thu, 15 Mar 2007 17:05:47 +0100 Subject: Show labels at all scales Message-ID: Hello, I have added a layer in my mapfile, just like below. The labels only appear when completely zoomed out. Can somebody solve this problem? The next question is how to show the labels between scale 1:500 - 1:2000. How can I realize this. Thanks, Chris Beaart. LAYER NAME Huisnummers DATA Huisnummers STATUS DEFAULT TYPE POINT METADATA "DESCRIPTION" "Huisnummers" END # Metadata LABELITEM 'TxtValue' CLASS LABEL FORCE true COLOR 0 0 0 SIZE small POSITION cc END #label NAME "Huisnummers" STYLE #OUTLINECOLOR 0 0 0 END END END #layer -------------- next part -------------- An HTML attachment was scrubbed... URL: From beaart at XS4ALL.NL Thu Mar 15 09:24:12 2007 From: beaart at XS4ALL.NL (Chris Beaart) Date: Thu, 15 Mar 2007 17:24:12 +0100 Subject: Labels disappear when zooming in Message-ID: Hello, I am using the mapfile below. When I zoom in the labels disapper. Can somebody help me. Thanks, Chris Beaart. LAYER NAME Huisnummers DATA Huisnummers STATUS DEFAULT TYPE POINT METADATA "DESCRIPTION" "Huisnummers" END # Metadata LABELITEM 'TxtValue' CLASS LABEL FORCE true COLOR 0 0 0 SIZE small POSITION cc END #label NAME "Huisnummers" STYLE #OUTLINECOLOR 0 0 0 END END END #layer -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Thu Mar 15 09:36:32 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 15 Mar 2007 11:36:32 -0500 Subject: Labels disappear when zooming in In-Reply-To: A<200703151624.l2FGOCm1049605@smtp-vbr13.xs4all.nl> Message-ID: Chris, Do all of the labels disappear, or just some of them? Does every record in your data source have text in the column 'TxtValue'? Are there other layers in your map file that could complicate the situation? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chris Beaart Sent: Thursday, March 15, 2007 11:24 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Labels disappear when zooming in Hello, I am using the mapfile below. When I zoom in the labels disapper. Can somebody help me. Thanks, Chris Beaart. LAYER NAME Huisnummers DATA Huisnummers STATUS DEFAULT TYPE POINT METADATA "DESCRIPTION" "Huisnummers" END # Metadata LABELITEM 'TxtValue' CLASS LABEL FORCE true COLOR 0 0 0 SIZE small POSITION cc END #label NAME "Huisnummers" STYLE #OUTLINECOLOR 0 0 0 END END END #layer -------------- next part -------------- An HTML attachment was scrubbed... URL: From prodriguez at ADASASISTEMAS.COM Thu Mar 15 09:12:03 2007 From: prodriguez at ADASASISTEMAS.COM (=?iso-8859-1?Q?Pablo__Rodr=EDguez_Madro=F1o?=) Date: Thu, 15 Mar 2007 17:12:03 +0100 Subject: Show labels at all scales Message-ID: Hello, This is my first message on the list. I hope I can help a bit... You can use the layer attributes LABELMINSCALE and LABELMAXSCALE, as well as the label attributes FORCE and POSITION. You can find more info at: http://mapserver.gis.umn.edu/docs/reference/mapfile/layer http://mapserver.gis.umn.edu/docs/reference/mapfile/label Bye, Pablo Rodr?guez Madro?o Divisi?n de Sistemas de Informaci?n ADASA Sistemas 93.264.06.02 600.92.65.10 _____ De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de Chris Beaart Enviado el: jueves, 15 de marzo de 2007 17:06 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: [UMN_MAPSERVER-USERS] Show labels at all scales Hello, I have added a layer in my mapfile, just like below. The labels only appear when completely zoomed out. Can somebody solve this problem? The next question is how to show the labels between scale 1:500 - 1:2000. How can I realize this. Thanks, Chris Beaart. LAYER NAME Huisnummers DATA Huisnummers STATUS DEFAULT TYPE POINT METADATA "DESCRIPTION" "Huisnummers" END # Metadata LABELITEM 'TxtValue' CLASS LABEL FORCE true COLOR 0 0 0 SIZE small POSITION cc END #label NAME "Huisnummers" STYLE #OUTLINECOLOR 0 0 0 END END END #layer -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter_7003 at YAHOO.COM Thu Mar 15 10:04:42 2007 From: peter_7003 at YAHOO.COM (Peter Fischer) Date: Thu, 15 Mar 2007 10:04:42 -0700 Subject: UMN MapServer and 4D data? Message-ID: Hello, I'm relatively new to map services and have some questions to UMN MapServer: 1. Is it possible to store 3D data of a terrain and display it in a viewer, e.g. the one used by GRASS GIS? 2. If getting GPS data, overlay the moving objects over this view (e.g. using WFS for representing them in vectorial form)? ? Is this possible by parallelly forwarding the incoming data directly to the viewer and during this also writing it into the database to save the movements (in the WFS via transactional WFS, which UMN mapserver doesn?t support as I?ve read in the web, but GeoServer does)? 3. Is there support for layer management, switching on/off layers (vector- and raster-), overlays? Or do I have to implement this by myself? 4. Is there a good viewer which can display the 4D data (the 3D terrain plus the moving objects, the overlays) all at once? If anyone could answer you would greatly help me. Best regards, Peter. --------------------------------- Don't get soaked. Take a quick peek at the forecast with theYahoo! Search weather shortcut. -------------- next part -------------- An HTML attachment was scrubbed... URL: From myardbenoit at GMAIL.COM Thu Mar 15 10:33:17 2007 From: myardbenoit at GMAIL.COM (Benoit Myard) Date: Thu, 15 Mar 2007 18:33:17 +0100 Subject: WFS Server - GML3 support Message-ID: Hi again, I wonder why my MapServer installation can't serve GML3 whereas it can serve GML2 (according to its GetCapabilities output). GML3 is supposed to be built-in. Although GML3 and SFE_XMLSCHEMA are not listed in my capabilities, I couldn't find any relevant compilation difference compared to this server : http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WFS&VERSION=1.0.0&REQUEST=getcapabilities Has anyone an idea of what's going on ? Thanks. -- Benoit Myard From bartvde at OSGIS.NL Thu Mar 15 10:43:09 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 15 Mar 2007 18:43:09 +0100 Subject: WFS Server - GML3 support Message-ID: Hi, which version of Mapserver are you running? This was removed just after the Lausanne conference, but note it is only removed from the GetCapabilities response. Reason is that otherwise the WFS 1.0 GetCapabilities response does not validate. It is still in there, just not advertized, so you can still ask for OUTPUTFORMAT=GML3 in your GetFeature request. Best regards, Bart Hi again, I wonder why my MapServer installation can't serve GML3 whereas it can serve GML2 (according to its GetCapabilities output). GML3 is supposed to be built-in. Although GML3 and SFE_XMLSCHEMA are not listed in my capabilities, I couldn't find any relevant compilation difference compared to this server : http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WFS&VERSION=1.0.0&REQUEST=getcapabilities Has anyone an idea of what's going on ? Thanks. -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From ale.pas at TISCALI.IT Thu Mar 15 11:41:25 2007 From: ale.pas at TISCALI.IT (Alessandro Pasotti) Date: Thu, 15 Mar 2007 19:41:25 +0100 Subject: Problems with zoomrectangle and MINSCALE with php mapscript In-Reply-To: Message-ID: Il 17:07, marted? 6 marzo 2007, BJSVW PraktiantIn AGI ha scritto: > Hi everybody, > > I have some problems with zoomrectangle and minscale. I`ve set the > minscale in the WEB Object of my mapfile to 10.000 > Now I try to zoom in with zoomrectangle and this works fine untill a > scale of 1:10.000. I'm using php mapscript 4.8.1 > But when I zoom to a scale bigger as 1:10.000 (eg 1:8000 it doesn't > matter which scale) zoomrectangle gives me back an extent for my > map with a scale around 1:14.000. > > Is this the result which zoomrectangle should deliver in this case? Exactly the same happens to me with zoompoint. There are two things you can try: 1 - set your minscale to MINSCALE - 1 ( 9999 in your case) 2 - check in your mapscript that you are not trying to zoom bigger than minscale and change the zoom value to minscale if true. For example (my minscale is 25000): $new_scale = ($this->zoom_factor > 0) ? $this->old_geo_scale / $this->zoom_factor : $this->old_geo_scale * ( - $this->zoom_factor); if($new_scale < 25000){ return $this->map->zoomscale(25000 + 0.1, $xy_pix, $this->mapwidth, $this->mapheight, $this->geoext0, $this->maxextent); } This code is in a wrapper class from p.mapper, but it sould be easy to understand. I see you have already opened a bug report, well done, I also feel this is a bug. -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502 From fsozzi at INTERCAD.CH Fri Mar 16 00:26:16 2007 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Fri, 16 Mar 2007 08:26:16 +0100 Subject: No drawing of certain polygon rings stroed in Oracle Spatial Message-ID: No drawing of certain polygon rings stroed in Oracle SpatialHi Herbert, I'm using Topobase with Mapserver too (but I'm still on Topobase 2). Can you run from SQL*Plus the following statement on record with rendering problems and post exactly what you get? "SELECT geom FROM WHERE FID=<...> I'will try to make some test. Regards Francesco ----- Original Message ----- From: "Sch?nhammer, Herbert" To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, March 15, 2007 1:54 PM Subject: [UMN_MAPSERVER-USERS] No drawing of certain polygon rings stroed in Oracle Spatial Hi, I have some troubles drawing of certain geometries, stored in Oracle Spatial 9i. In general, I'm able to say, that polygon rings are drawn without problems (Connected by line strings or compound line strings connected by circular arcs AND line strings). But there are some types, which are not drawn by mapserver. There is no warning or error reported by mapserver ! These certain geometries only are not present in the drawn png-file (or what ever). The geometries in the neighbourhood are drawn ! My Environment ============== - Oracle 9i with Spatial Option on a Windows 2003 Server - MapServer 4.8.4 (Mapserver 4.10.1 does the same !) on a SuSE SLES 9 compiled with an Oracle 10g - Client - MapServer used as WMS-Server In detail the geometry, whis is NOT drawn by mapserver ====================================================== Our application (Autodesk Topoase 3) is not storing a circle as a circle in Oracle Spatial. The circle is splitted into two arcs, connected to each other at the end-/start-points of the arcs. The drawn picture should be the picture of a circle. The stored geometry has the properties: GTYPE 2003 (= 2-dim POLYGON) In Detail: (2003; 82032; ; (1; 1003; 2; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ); (4505542,97176542; 5430753,10554764; 4505541,58808944; 5430750,58265205; 4505544,16794032; 5430749,30831663; 4505545,28931113; 5430751,74858283; 4505542,97176542; 5430753,10554764; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; )) The geometry validates (SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT), the result is TRUE. The same geometry stored as LINE or CURVE IS drawn !! ===================================================== GTYPE 2002 (= 2-dim LINE or CURVE) (2002; 82032; ; (1; 2; 2; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ); (4505542,97176542; 5430753,10554764; 4505541,58808944; 5430750,58265206; 4505544,16794032; 5430749,30831663; 4505545,28931113; 5430751,74858283; 4505542,97176542; 5430753,10554764; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; )) Note ==== Changing the mapserver Layer TYPE from POLYGON to LINE (or vice versa) does not have any effect !!! In detail a "circle", which IS drawn by mapserver ================================================= GTYPE 2002 (= 2-dim LINE or CURVE) (2002; 82032; ; (1; 4; 1; 1; 2; 2; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ); (4506079,8746; 5430398,0938; 4506070,0144; 5430388,2336; 4506079,8746; 5430378,3734; 4506089,7348; 5430388,2336; 4506079,8746; 5430398,0938; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; )) The geometry also validates (SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT), the result is TRUE. BUT: ---- Please look at the first triplet of SDO_ELEM_INFO. Looking in Oracle Documentation, the combination of SDO_ETYPE=4 with a SDO_INTERPRETATION=1 is NOT allowed. SDO_INTERPRETATION MUST be bigger than 1. (Is there a bug in the doc ??????) My problem ========== Creating new circles, the application stores them as GTYPE 2003, which is not drawn ! Does anybody know, what's the matter? ===================================== Is there anybody, who has some tipps for me ? With kind regards Sch?nhammer Herbert -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsozzi at INTERCAD.CH Fri Mar 16 00:30:41 2007 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Fri, 16 Mar 2007 08:30:41 +0100 Subject: No drawing of certain polygon rings stroed in Oracle Spatial Message-ID: No drawing of certain polygon rings stroed in Oracle SpatialAnother tip: what does it happen if you use "CIRCLE" instead of "POLYGON" in the layer definition in map file?... Regards Francesco ----- Original Message ----- From: "Sch?nhammer, Herbert" To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, March 15, 2007 1:54 PM Subject: [UMN_MAPSERVER-USERS] No drawing of certain polygon rings stroed in Oracle Spatial Hi, I have some troubles drawing of certain geometries, stored in Oracle Spatial 9i. In general, I'm able to say, that polygon rings are drawn without problems (Connected by line strings or compound line strings connected by circular arcs AND line strings). But there are some types, which are not drawn by mapserver. There is no warning or error reported by mapserver ! These certain geometries only are not present in the drawn png-file (or what ever). The geometries in the neighbourhood are drawn ! My Environment ============== - Oracle 9i with Spatial Option on a Windows 2003 Server - MapServer 4.8.4 (Mapserver 4.10.1 does the same !) on a SuSE SLES 9 compiled with an Oracle 10g - Client - MapServer used as WMS-Server In detail the geometry, whis is NOT drawn by mapserver ====================================================== Our application (Autodesk Topoase 3) is not storing a circle as a circle in Oracle Spatial. The circle is splitted into two arcs, connected to each other at the end-/start-points of the arcs. The drawn picture should be the picture of a circle. The stored geometry has the properties: GTYPE 2003 (= 2-dim POLYGON) In Detail: (2003; 82032; ; (1; 1003; 2; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ); (4505542,97176542; 5430753,10554764; 4505541,58808944; 5430750,58265205; 4505544,16794032; 5430749,30831663; 4505545,28931113; 5430751,74858283; 4505542,97176542; 5430753,10554764; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; )) The geometry validates (SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT), the result is TRUE. The same geometry stored as LINE or CURVE IS drawn !! ===================================================== GTYPE 2002 (= 2-dim LINE or CURVE) (2002; 82032; ; (1; 2; 2; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ); (4505542,97176542; 5430753,10554764; 4505541,58808944; 5430750,58265206; 4505544,16794032; 5430749,30831663; 4505545,28931113; 5430751,74858283; 4505542,97176542; 5430753,10554764; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; )) Note ==== Changing the mapserver Layer TYPE from POLYGON to LINE (or vice versa) does not have any effect !!! In detail a "circle", which IS drawn by mapserver ================================================= GTYPE 2002 (= 2-dim LINE or CURVE) (2002; 82032; ; (1; 4; 1; 1; 2; 2; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ); (4506079,8746; 5430398,0938; 4506070,0144; 5430388,2336; 4506079,8746; 5430378,3734; 4506089,7348; 5430388,2336; 4506079,8746; 5430398,0938; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; )) The geometry also validates (SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT), the result is TRUE. BUT: ---- Please look at the first triplet of SDO_ELEM_INFO. Looking in Oracle Documentation, the combination of SDO_ETYPE=4 with a SDO_INTERPRETATION=1 is NOT allowed. SDO_INTERPRETATION MUST be bigger than 1. (Is there a bug in the doc ??????) My problem ========== Creating new circles, the application stores them as GTYPE 2003, which is not drawn ! Does anybody know, what's the matter? ===================================== Is there anybody, who has some tipps for me ? With kind regards Sch?nhammer Herbert -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitchelljj98 at GMAIL.COM Fri Mar 16 09:37:21 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Fri, 16 Mar 2007 12:37:21 -0400 Subject: The size of a line is always 1 pixel even when I change the size from 1 to 2 or more Message-ID: Hi, The size of a line is always 1 pixel even when I change the size from 1 to 2 or more: LAYER NAME MajorRoads TYPE Line DATA "F:\GV_Data\ShapeFiles\usa\majrdnet" STATUS ON CLASS COLOR 0 0 0 SIZE 2 END END -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Fri Mar 16 10:50:24 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 16 Mar 2007 12:50:24 -0500 Subject: The size of a line is always 1 pixel even when I change the size from 1 to 2 or more In-Reply-To: A Message-ID: John, Try using a symbol to draw your line. e.g. add SYMBOL 'circle' to your CLASS, where circle is the name of a symbol in your symbols file or a symbol definition in your map file. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Mitchell Sent: Friday, March 16, 2007 11:37 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] The size of a line is always 1 pixel even when I change the size from 1 to 2 or more Hi, The size of a line is always 1 pixel even when I change the size from 1 to 2 or more: LAYER NAME MajorRoads TYPE Line DATA "F:\GV_Data\ShapeFiles\usa\majrdnet" STATUS ON CLASS COLOR 0 0 0 SIZE 2 END END -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From tkirstine at JDBARNES.COM Fri Mar 16 10:27:31 2007 From: tkirstine at JDBARNES.COM (Travis Kirstine) Date: Fri, 16 Mar 2007 13:27:31 -0400 Subject: The size of a line is always 1 pixel even when I change the size from 1 to 2 or more Message-ID: -----Original Message----- From: Travis Kirstine [mailto:tkirstine at jdbarnes.com] Sent: Friday, March 16, 2007 1:27 PM To: John Mitchell Subject: RE: [UMN_MAPSERVER-USERS] The size of a line is always 1 pixel even when I change the size from 1 to 2 or more John, You have to define a line symbol in the class and the corrosponding symbol in your symbol.sys file (only if the symbol dosen't already exist). mapfile: LAYER NAME MajorRoads TYPE Line DATA "F:\GV_Data\ShapeFiles\usa\majrdnet" STATUS ON CLASS SYMBOL "line" COLOR 0 0 0 SIZE 2 END END symbol.sys file SYMBOL NAME "line" TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END check out: http://mapserver.gis.umn.edu/docs/howto/cartosymbols -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of John Mitchell Sent: Friday, March 16, 2007 12:37 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] The size of a line is always 1 pixel even when I change the size from 1 to 2 or more Hi, The size of a line is always 1 pixel even when I change the size from 1 to 2 or more: LAYER NAME MajorRoads TYPE Line DATA "F:\GV_Data\ShapeFiles\usa\majrdnet" STATUS ON CLASS COLOR 0 0 0 SIZE 2 END END -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodrigomartin at LOPEZGREGORIO.COM.AR Fri Mar 16 11:16:52 2007 From: rodrigomartin at LOPEZGREGORIO.COM.AR (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Fri, 16 Mar 2007 15:16:52 -0300 Subject: The size of a line is always 1 pixel even when I change the size from 1 to 2 or more In-Reply-To: Message-ID: Hi John. The SIZE option of CLASS element doesn't work as "line width". This is how I solved this: First I create a Symbol in my symbol file like: SYMBOL NAME "cartoline" TYPE cartoline LINECAP round #[butt|round|square|triangle] LINEJOIN round #[round|miter|bevel] #LINEJOINMAXSIZE 3 END Then, in the layer I want to set line width I do: LAYER NAME "mylinelayer" ...................................... SIZEUNITS PIXELS CLASS NAME "mylinelayer" STYLE ANTIALIAS TRUE COLOR 255 0 0 SIZE 2 SYMBOL "cartoline" END END END Now, the SIZE property in CLASS element work as you want. Maybe you want to take a look at: http://mapserver.gis.umn.edu/docs/howto/cartosymbols/ there are more examples and all the cartoline options full explained. I hope it helps you. Rodrigo. On 3/16/07, John Mitchell wrote: > > Hi, > > The size of a line is always 1 pixel even when I change the size from 1 to > 2 or more: > > LAYER > NAME MajorRoads > TYPE Line > DATA "F:\GV_Data\ShapeFiles\usa\majrdnet" > > STATUS ON > > CLASS > COLOR 0 0 0 > SIZE 2 > END > > END > > > -- > John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at GEOANALYTIC.COM Fri Mar 16 11:35:30 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 16 Mar 2007 12:35:30 -0600 Subject: OT: Open source networking magazine Message-ID: This may be of interest to some: http://www.o3magazine.com/, "o3 magazine is a monthly electronic publication focused on using open source technology in enterprise data networking environments..." I liked Issue #5, especially the article on "TurboGears: Deployment and Scaling" I've been looking for info on using Python and Ajax in a production environment (hopefully with a smooth integration with Mapserver!) Brent Fraser GeoAnalytic Inc. Calgary, Alberta From rodrigomlg at GMAIL.COM Fri Mar 16 11:40:03 2007 From: rodrigomlg at GMAIL.COM (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Fri, 16 Mar 2007 15:40:03 -0300 Subject: The size of a line is always 1 pixel even when I change the size from 1 to 2 or more In-Reply-To: Message-ID: Hi John. The SIZE option of CLASS element doesn't work as "line width". This is how I solved this: First I create a Symbol in my symbol file like: SYMBOL NAME "cartoline" TYPE cartoline LINECAP round #[butt|round|square|triangle] LINEJOIN round #[round|miter|bevel] #LINEJOINMAXSIZE 3 END Then, in the layer I want to set line width I do: LAYER NAME "mylinelayer" ...................................... SIZEUNITS PIXELS CLASS NAME "mylinelayer" STYLE ANTIALIAS TRUE COLOR 255 0 0 SIZE 2 SYMBOL "cartoline" END END END Now, the SIZE property in CLASS element work as you want. Maybe you want to take a look at: http://mapserver.gis.umn.edu/docs/howto/cartosymbols/ there are more examples and all the cartoline options full explained. I hope it helps you. Rodrigo. On 3/16/07, John Mitchell wrote: > > Hi, > > The size of a line is always 1 pixel even when I change the size from 1 to > 2 or more: > > LAYER > NAME MajorRoads > TYPE Line > DATA "F:\GV_Data\ShapeFiles\usa\majrdnet" > > STATUS ON > > CLASS > COLOR 0 0 0 > SIZE 2 > END > > END > > > -- > John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Fri Mar 16 13:23:30 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 16 Mar 2007 15:23:30 -0500 Subject: how to submit a ROI defined by dBox? In-Reply-To: <2d1782780703140738m3ca79487y3ce9436665cf4d5e@mail.gmail.com> Message-ID: Hi Eduardo: This is possible once you know how. The coordinates from drawing are held in two arrays in the dBox object, called x and y. They are held in screen coordinates and need to be converted to image and then map coordinates before being used. I'll make this more transparent in the future. Anyhow, you'd do this with code like this: for (var i=0; i>> On 3/14/2007 at 9:38 AM, in message <2d1782780703140738m3ca79487y3ce9436665cf4d5e at mail.gmail.com>, Eduardo Patto Kanegae wrote: > Hi folks, > > I'm using dBox as my MapServer CGI front end and have enabled draw area > tool. > > Now I'd like to submit the points defined by area tool and then save > the area as a polygon inside a PostGIS database. > > Have someone done something similar? How does dBox handle this area? > As image coordinates? Or as UTM coordinates? > > best From nbarker at ITTVIS.COM Fri Mar 16 13:50:55 2007 From: nbarker at ITTVIS.COM (Norman Barker) Date: Fri, 16 Mar 2007 20:50:55 -0000 Subject: Public WCS Message-ID: Hi, If you have a public Web Coverage Service that you don't mind me indexing could you send me the link please? I am concentrating on MapServer WCS since I don't want to write code to parse different nuances of GetCapabilities as I am looking to index the metadata in an ebRIM catalog (ebxmlrr). I have already put in ICEDS metadata (with UCL's permission), but really want to load up this metadata server to see how it works. Many thanks, Norman From gerard.troost at SOVON.NL Fri Mar 16 13:58:45 2007 From: gerard.troost at SOVON.NL (Gerard Troost) Date: Fri, 16 Mar 2007 15:58:45 -0500 Subject: The size of a line is always 1 pixel even when I change the size from 1 to 2 or more Message-ID: use the width element... (Line's dont have a size but a width) CLASS STYLE OUTLINECOLOR 255 0 0 WIDTH 2 END END Regards, Gerard Troost ---------------------------------------------------------------------------- ---- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Rodrigo Mart?n L?PEZ GREGORIO Sent: vrijdag 16 maart 2007 19:40 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] The size of a line is always 1 pixel even when I change the size from 1 to 2 or more Hi John. The SIZE option of CLASS element doesn't work as "line width". This is how I solved this: First I create a Symbol in my symbol file like: SYMBOL NAME "cartoline" TYPE cartoline LINECAP round #[butt|round|square|triangle] LINEJOIN round #[round|miter|bevel] #LINEJOINMAXSIZE 3 END Then, in the layer I want to set line width I do: LAYER NAME "mylinelayer" ...................................... SIZEUNITS PIXELS CLASS NAME "mylinelayer" STYLE ANTIALIAS TRUE COLOR 255 0 0 SIZE 2 SYMBOL "cartoline" END END END Now, the SIZE property in CLASS element work as you want. Maybe you want to take a look at: http://mapserver.gis.umn.edu/docs/howto/cartosymbols/ there are more examples and all the cartoline options full explained. I hope it helps you. Rodrigo. On 3/16/07, John Mitchell wrote: Hi, The size of a line is always 1 pixel even when I change the size from 1 to 2 or more: LAYER NAME MajorRoads TYPE Line DATA "F:\GV_Data\ShapeFiles\usa\majrdnet" STATUS ON CLASS COLOR 0 0 0 SIZE 2 END END -- John J. Mitchell From epk.lists at GMAIL.COM Fri Mar 16 17:47:26 2007 From: epk.lists at GMAIL.COM (Eduardo Patto Kanegae) Date: Fri, 16 Mar 2007 21:47:26 -0300 Subject: how to submit a ROI defined by dBox? In-Reply-To: <45FAB672.5157.008F.0@dnr.state.mn.us> Message-ID: Kudos! Thanks a lot, Steve. It?s working: http://www.webmapit.com.br/downloads/area_drawing.png - during drawing http://www.webmapit.com.br/downloads/area_submited.png - after submiting and as feature objects. Eduardo On 3/16/07, Steve Lime wrote: > Hi Eduardo: This is possible once you know how. The coordinates from drawing are held in two > arrays in the dBox object, called x and y. They are held in screen coordinates and need to be > converted to image and then map coordinates before being used. I'll make this more transparent > in the future. Anyhow, you'd do this with code like this: > > for (var i=0; i img_x[i] = myDbox.x[i] - myDbox.offsetx; // convert from screen to image coordinates > img_y[i] = myDbox.y[i] - myDbox.offsety; > map_x[i] = myDbox.extent[0] + img_x[i]* myDbox.cellsize; // convert from image to map coordinates > map_y[i] = myDbox.extent[3] - img_y[i]* myDbox.cellsize; > } > > Dbox's polygon drawing does not make the first coordinate the same as the last so you'll have to > do that yourself. Hope this helps. > > Steve > > >>> On 3/14/2007 at 9:38 AM, in message > <2d1782780703140738m3ca79487y3ce9436665cf4d5e at mail.gmail.com>, Eduardo Patto > Kanegae wrote: > > Hi folks, > > > > I'm using dBox as my MapServer CGI front end and have enabled draw area > > tool. > > > > Now I'd like to submit the points defined by area tool and then save > > the area as a polygon inside a PostGIS database. > > > > Have someone done something similar? How does dBox handle this area? > > As image coordinates? Or as UTM coordinates? > > > > best > > -- Eduardo Patto Kanegae From dps1 at UALBERTA.CA Sat Mar 17 00:05:34 2007 From: dps1 at UALBERTA.CA (Shorthouse, David) Date: Sat, 17 Mar 2007 01:05:34 -0600 Subject: points variable substitution Message-ID: I am wanting to plot one point as provided by a cgi query parameter for a very simple application, but substituting something like POINTS -113 45 END with POINTS %lng% %lat% END doesn't work like I thought it would. Any suggestions for how to pass a point via URL parameters (e.g. &lng=-113&lat=45) & have it appear on a resultant map? Thanks, David P. Shorthouse ------------------------------------------------------ Department of Biological Sciences CW-403, Biological Sciences Centre University of Alberta Edmonton, AB T6G 2E9 mailto:dps1 at ualberta.ca http://canadianarachnology.webhop.net http://arachnidforum.webhop.net http://www.spiderwebwatch.org ------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dps1 at UALBERTA.CA Sat Mar 17 00:17:31 2007 From: dps1 at UALBERTA.CA (Shorthouse, David) Date: Sat, 17 Mar 2007 01:17:31 -0600 Subject: points variable substitution Message-ID: Should have done a bit more thinking and reading. A dummy OGR Connection does the trick: CONNECTIONTYPE OGR CONNECTION ' ODBC:Whatever/whatever at whatever SELECT %lng% as Longitude, %lat% as Latitude wkbPoint WGS84 ' David P. Shorthouse ------------------------------------------------------ Department of Biological Sciences CW-403, Biological Sciences Centre University of Alberta Edmonton, AB T6G 2E9 mailto:dps1 at ualberta.ca http://canadianarachnology.webhop.net http://arachnidforum.webhop.net http://www.spiderwebwatch.org ------------------------------------------------------ From: Shorthouse, David [mailto:dps1 at ualberta.ca] Sent: Saturday, March 17, 2007 1:06 AM To: 'mapserver-users at lists.umn.edu' Subject: points variable substitution I am wanting to plot one point as provided by a cgi query parameter for a very simple application, but substituting something like POINTS -113 45 END with POINTS %lng% %lat% END doesn't work like I thought it would. Any suggestions for how to pass a point via URL parameters (e.g. &lng=-113&lat=45) & have it appear on a resultant map? Thanks, David P. Shorthouse ------------------------------------------------------ Department of Biological Sciences CW-403, Biological Sciences Centre University of Alberta Edmonton, AB T6G 2E9 mailto:dps1 at ualberta.ca http://canadianarachnology.webhop.net http://arachnidforum.webhop.net http://www.spiderwebwatch.org ------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.b at GRITECHNOLOGIES.COM Sat Mar 17 10:43:45 2007 From: bob.b at GRITECHNOLOGIES.COM (Bob Basques) Date: Sat, 17 Mar 2007 11:43:45 -0600 Subject: nquery (can a NOT condition be used for drawing?) Message-ID: All, Can a nquery draw based on a NOT condition? Basically what I want to do is a draw (fill) all polygons in the view, except for the NQUERY results. How would something like that look in the MapFILE? Thanks bobb From dpinte at ITAE.BE Sun Mar 18 05:11:30 2007 From: dpinte at ITAE.BE (Didrik Pinte) Date: Sun, 18 Mar 2007 13:11:30 +0100 Subject: python mapscript - imagemaps and dynamic layer Message-ID: Hi, I'm trying to create an imagemap based on a layer create dynamically with mapscript. I've read that to get the id's of the objects into the imagemap I need to use the FILTERITEM in the mapfile but with a dynamic layer, all the objects are created using shapeObj and I cannot add attributes to them. So my imagemap is the following : How is it possible to output some identifier of the shapeObj in the imagemap ? Thanks Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From samnyoung at HOTMAIL.COM Sun Mar 18 10:23:06 2007 From: samnyoung at HOTMAIL.COM (Sam Young) Date: Sun, 18 Mar 2007 09:23:06 -0800 Subject: dbox question Message-ID: I am trying to set up a mapserver application using dbox at the following url: http//:www.trailweb.net The error message I get out of the Firefox error console is: Error: this.treeLegend has no properties Source File: http://www.trailweb.net/src/javascript/mapserver/dlegend.js Line: 56 Does anyone have any suggestions on how to resolve this? Thanks, Sam _________________________________________________________________ Exercise your brain! Try Flexicon. http://games.msn.com/en/flexicon/default.htm?icid=flexicon_hmemailtaglinemarch07 From richard.greenwood at GMAIL.COM Sun Mar 18 11:16:54 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sun, 18 Mar 2007 12:16:54 -0600 Subject: dbox question In-Reply-To: Message-ID: On 3/18/07, Sam Young wrote: > I am trying to set up a mapserver application using dbox at the following > url: http//:www.trailweb.net > The error message I get out of the Firefox error console is: > > Error: this.treeLegend has no properties > Source File: http://www.trailweb.net/src/javascript/mapserver/dlegend.js > Line: 56 > > Does anyone have any suggestions on how to resolve this? > > Thanks, > > Sam Check that you have make_dlegend_xml_cgi.py in your cgi directory and that the permissions are right (-rwxr-xr-x). When I go to: http://www.trailweb.net/cgi-bin/make_dlegend_xml_cgi.py I get a 404 not found. I'm anxious to get out on all those trails... Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From fsimon at UNIVALI.BR Sun Mar 18 20:33:16 2007 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Sun, 18 Mar 2007 23:33:16 -0400 Subject: No drawing of certain polygon rings stroed in Oracle Spatial In-Reply-To: <22A5B28BED748F46B128ACE1C39FDD1502784FAF@mail01.Regensburg.de> Message-ID: Hi, The problem that you report it's strange, I need to investigate more to try find the solution. This approach to draw the circle I never used. Maybe (very possible) that the problem with the SDO_INTERPRETATION and SDO_GTYPE that you relate is the core of the problem. You can try to simplify your arc's as lines, Oracle 9i contains a function that transform arc's to lines, I don't remember the name now (I don't have the docs here now). You can try this way to solve the problem, you need to test the interoperability of these converted polygons with Topoase. Now I can't test (I'm starting my Master), I just can test, change the code and report a solution after the day 26. Best regards. ------------------------------------------------------------------- Fernando Simon UMN Mapserver and Oracle Spatial developer ------------------------------------------------------------------- Sch?nhammer, Herbert wrote: > > Hi, > > I have some troubles drawing of certain geometries, stored in Oracle > Spatial 9i. > > In general, I'm able to say, that polygon rings are drawn without > problems (Connected by line strings or compound line strings connected > by circular arcs AND line strings). But there are some types, which > are not drawn by mapserver. There is no warning or error reported by > mapserver ! These certain geometries only are not present in the drawn > png-file (or what ever). The geometries in the neighbourhood are drawn ! > > My Environment > ============== > > - Oracle 9i with Spatial Option on a Windows 2003 Server > - MapServer 4.8.4 (Mapserver 4.10.1 does the same !) on a SuSE SLES 9 > compiled with an Oracle 10g - Client > - MapServer used as WMS-Server > > > > > In detail the geometry, whis is NOT drawn by mapserver > ====================================================== > Our application (Autodesk Topoase 3) is not storing a circle as a > circle in Oracle Spatial. The circle is splitted into two arcs, > connected to each other at the end-/start-points of the arcs. The > drawn picture should be the picture of a circle. > > The stored geometry has the properties: > GTYPE 2003 (= 2-dim POLYGON) > > In Detail: > (2003; 82032; ; (1; 1003; 2; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; > ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; > ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; > ; ; ; ; ; ); (4505542,97176542; 5430753,10554764; 4505541,58808944; > 5430750,58265205; 4505544,16794032; 5430749,30831663; > 4505545,28931113; 5430751,74858283; 4505542,97176542; > 5430753,10554764; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; > ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; > ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; )) > > The geometry validates (SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT), the > result is TRUE. > > > > > The same geometry stored as LINE or CURVE IS drawn !! > ===================================================== > > GTYPE 2002 (= 2-dim LINE or CURVE) > > > (2002; 82032; ; (1; 2; 2; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; > ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; > ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; > ; ; ; ; ); (4505542,97176542; 5430753,10554764; 4505541,58808944; > 5430750,58265206; 4505544,16794032; 5430749,30831663; > 4505545,28931113; 5430751,74858283; 4505542,97176542; > 5430753,10554764; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; > ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; > ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; )) > > > Note > ==== > > Changing the mapserver Layer TYPE from POLYGON to LINE (or vice versa) > does not have any effect !!! > > > > In detail a "circle", which IS drawn by mapserver > ================================================= > > GTYPE 2002 (= 2-dim LINE or CURVE) > > (2002; 82032; ; (1; 4; 1; 1; 2; 2; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; > ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; > ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; > ; ; ; ; ; ); (4506079,8746; 5430398,0938; 4506070,0144; 5430388,2336; > 4506079,8746; 5430378,3734; 4506089,7348; 5430388,2336; 4506079,8746; > 5430398,0938; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; > ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; > ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; )) > > The geometry also validates (SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT), > the result is TRUE. > > BUT: > ---- > Please look at the first triplet of SDO_ELEM_INFO. > Looking in Oracle Documentation, the combination of SDO_ETYPE=4 with a > SDO_INTERPRETATION=1 is NOT allowed. SDO_INTERPRETATION MUST be bigger > than 1. > > (Is there a bug in the doc ??????) > > > My problem > ========== > Creating new circles, the application stores them as GTYPE 2003, which > is not drawn ! > > > Does anybody know, what's the matter? > ===================================== > > Is there anybody, who has some tipps for me ? > > > With kind regards > > *Sch?nhammer Herbert* > > From gabe at AGTRIX.COM Sun Mar 18 20:10:26 2007 From: gabe at AGTRIX.COM (Gabe) Date: Mon, 19 Mar 2007 14:10:26 +1100 Subject: multiple shapepath directives Message-ID: Hi Apologies if this is not the right place for this ... I would like to be able to define multiple SHAPEPATH objects in my mapfile - each time a SHAPEPATH is defined it superseeds the previous definition so that each layer uses the most recently defined shapepath. This is only useful really since 4.10 (the INCLUDE directive) but will also be handy seeing that with TILEINDEX layers the TILEITEM is relative to the SHAPEPATH. Thanks Gabe From mitchelljj98 at GMAIL.COM Mon Mar 19 04:37:37 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Mon, 19 Mar 2007 07:37:37 -0400 Subject: fastcgi under Mapserver MS4W environment Message-ID: Hi,I would like to use fastcgi for the MS4W environment, and I have explored the following link: http://mapserver.gis.umn.edu/docs/howto/fastcgi which says the following: FastCGI on Win32 MS4W Users MS4W (MapServer for Windows) >= version 2.2.2 contains MapServer compiled with FastCGI support. However MS4W does not contain the required Apache module mod_fastcgi, because the module must be compiled to work with the Apache 2.2.x series (MS4W contains Apache 2.2.4). If you compile this please contribute it back to the MS4W mailing list . It appears from above that I need module mod_fastcgi compiled. Has anyone done this? Is fast-cgi running within mapserver when setup in the following way: MS4W setup with latest FWTools bin content copied into MS4W apache\cgi-bin. I run mapserv -v and it says fastcgi. Is their anything else that I have to do? Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From thesl at YAHOO.COM Mon Mar 19 08:18:48 2007 From: thesl at YAHOO.COM (Peter Shrock) Date: Mon, 19 Mar 2007 08:18:48 -0700 Subject: problem with MapServer WMS -T using polygon shapefiles Message-ID: Hello, all: I have been trying to get WMS time series working with MapServer. I used point shapefiles and it worked well. But I cannot get MapServer work with polygon shapefiles. LAYER NAME "timemap" TYPE POLYGON STATUS ON METADATA "wms_title" "timemap" "wms_timeformat" "YYYYMMDD" "wms_timeextent" "20021130/20061130" "wms_timeitem" "TIMES" "wms_timedefault" "20021130" "wms_srs" "EPSG:4326" END TILEINDEX "index1.shp" TILEITEM "Location" CLASSITEM "color_code" CLASS NAME "TYPE 1" EXPRESSION ([color_code]==1) COLOR 220 120 130 OUTLINECOLOR 150 150 150 END CLASS NAME "TYPE 2" EXPRESSION ([color_code]==2) COLOR 255 255 155 OUTLINECOLOR 150 150 150 END CLASS NAME "TYPE 3" EXPRESSION ([color_code]==0) COLOR 200 200 200 OUTLINECOLOR 100 100 100 END END index1 polygon shapefile was created using tile4ms, its data is: Location DATETIME times\year2002 20021130 times\year2003 20031130 times\year2004 20041130 times\year2005 20051130 times\year2006 20061130 error message: msDrawMap(): Image handling error. Failed to draw layer named 'timemap'. msDBFGetItemIndex(): DBASE file error. Item 'TIMES' not found. It seems that MapServer tried to find the "TIMES" field from the yearly shapefiles. But TIMES field only exists in the tile index polygon shapefile. Could anyone help me to make WMS time series working using polygon shapefile data with MapServer? or is this a MapServer Bug? I also tried seperating index layer and data layer, and it did not work either. Thanks Peter ____________________________________________________________________________________ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html From peturkirke at FDS.FO Mon Mar 19 08:31:11 2007 From: peturkirke at FDS.FO (Petur Kirke) Date: Mon, 19 Mar 2007 15:31:11 +0000 Subject: Installing mapserver on windows Message-ID: 2 years ago we did install mapserver on our windows server, and we did use IIS. Now i want to install the newest version of mapserver on our Windows 2003 server. So i choose the Download section, CURRENT, Windows, MS4W, but at this page it looks like i need to use Apache web-server on Windows, and not IIS ? Is it true that there is no installation/version for IIS anymore ? From nicolas.fortin at EC.GC.CA Mon Mar 19 09:09:04 2007 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Mon, 19 Mar 2007 12:09:04 -0400 Subject: Installing mapserver on windows Message-ID: Hi Petur, You can use the exe and libraries included in the ms4w package with windows/IIS. Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Petur Kirke Envoy? : 19 mars 2007 11:31 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Installing mapserver on windows 2 years ago we did install mapserver on our windows server, and we did use IIS. Now i want to install the newest version of mapserver on our Windows 2003 server. So i choose the Download section, CURRENT, Windows, MS4W, but at this page it looks like i need to use Apache web-server on Windows, and not IIS ? Is it true that there is no installation/version for IIS anymore ? From siukola.antti at GMAIL.COM Mon Mar 19 09:21:47 2007 From: siukola.antti at GMAIL.COM (antti siukola) Date: Mon, 19 Mar 2007 18:21:47 +0200 Subject: MapServer performance Message-ID: Hi! This might have been answered several times but here goes. I have some performance problems when mapserver (GD) produces map images (jpeg). It shows as apache takes about 80-90% of cpu time when there's just about a dozen users online. Are there any tips and tricks for this? Thanks in advance! Antti S From jmckenna at DMSOLUTIONS.CA Mon Mar 19 10:11:12 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 19 Mar 2007 13:11:12 -0400 Subject: fastcgi under Mapserver MS4W environment In-Reply-To: Message-ID: Comments inline: John Mitchell wrote: > > Hi, > > I would like to use fastcgi for the MS4W environment, and I have > explored the following link: > > > http://mapserver.gis.umn.edu/docs/howto/fastcgi > > > which says the following: > > > > FastCGI on Win32 > > > > MS4W Users > > > MS4W (MapServer for Windows) >= version > 2.2.2 contains MapServer compiled with FastCGI support. However MS4W > does not contain the required Apache module mod_fastcgi, because the > module must be compiled to work with the Apache 2.2.x series (MS4W > contains Apache 2.2.4). If you compile this please contribute it back to > the MS4W mailing list > . That doc is uptodate and correct for this. > > > It appears from above that I need module mod_fastcgi compiled. Has > anyone done this? > No one has contributed this yet. > > Is fast-cgi running within mapserver when setup in the following way: > MS4W setup with latest FWTools bin content copied into MS4W > apache\cgi-bin. I run mapserv -v and it says fastcgi. Is their anything > else that I have to do? > Using the latest MS4W out-of-the-box will also give you that mapserv -v fastcgi message. Also, are you aware that MS4W has it's own mailing list? (you even included the link in your email) jeff -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From naci0002 at UMN.EDU Mon Mar 19 10:28:40 2007 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Mon, 19 Mar 2007 12:28:40 -0500 Subject: MapServer performance In-Reply-To: Message-ID: antti siukola wrote: > Hi! > > This might have been answered several times but here goes. I have some > performance problems when mapserver (GD) produces map images (jpeg). > It shows as apache takes about 80-90% of cpu time when there's just > about a dozen users online. Are there any tips and tricks for this? > > Thanks in advance! > > Antti S Antti, At the bottom of MS4W's readme is a section called Installing the MS4W MapServer Binaries in Other Environments. Here's a link to that readme: http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.txt This document might be more useful to you: http://mapserver.gis.umn.edu/docs/howto/setupiis Cheers! -Perry From naci0002 at UMN.EDU Mon Mar 19 10:35:10 2007 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Mon, 19 Mar 2007 12:35:10 -0500 Subject: Installing mapserver on windows In-Reply-To: Message-ID: Oops, It seems I answered your question and addressed to Antti Siukola. Sorry about that! -Perry Petur Kirke wrote: > 2 years ago we did install mapserver on our windows server, and we did use > IIS. > > Now i want to install the newest version of mapserver on our Windows 2003 > server. > So i choose the Download section, CURRENT, Windows, MS4W, but at this page > it looks like i need to use Apache web-server on Windows, and not IIS ? > > Is it true that there is no installation/version for IIS anymore ? > From arndw at WTAL.DE Mon Mar 19 11:22:10 2007 From: arndw at WTAL.DE (Arnd Wippermann) Date: Mon, 19 Mar 2007 19:22:10 +0100 Subject: AW: [UMN_MAPSERVER-USERS] points variable substitution In-Reply-To: <000601c76864$54440270$fccc0750$@ca> Message-ID: Hello David, via cgi you have also this way &map_credits_feature=new &map_credits_feature_points=2572146+5669256 &map_credits_feature_text=0566 &map_credits2_feature=new &map_credits2_feature_points=10+588 &map_credits2_feature_text=yourText &map_credits2_class_color=255+0+255 with this layers in the mapfile #&map_credits_feature=new&map_credits_feature_points=2605395+5705380&map_cre dits_feature_text=Hallo LAYER NAME credits STATUS on TYPE ANNOTATION FEATURE #POINTS 104 396 END #TEXT '© GINFO' END CLASS COLOR 0 0 255 OUTLINECOLOR 255 0 0 SYMBOL 'circle' SIZE 10 LABEL TYPE TRUETYPE FONT VERDANA SIZE 14 #ANTIALIAS COLOR 0 0 0 POSITION UR FORCE true END END END LAYER NAME credits2 STATUS on TRANSFORM FALSE TYPE ANNOTATION FEATURE #POINTS 10 530 END #TEXT 'aa' END CLASS #OUTLINECOLOR 255 0 0 COLOR 255 0 0 SYMBOL 'Struktur' SIZE 9 LABEL TYPE TRUETYPE FONT VERDANA SIZE 12 #ANTIALIAS COLOR 0 0 0 POSITION CR FORCE true END END END The difference between the first and second layer is the TRANSFORM parameter. The credits text and circle will set at the defined coordinate, the credits2 text and circle will drawn in the bottom left corner. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ ________________________________ Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Shorthouse, David Gesendet: Samstag, 17. M?rz 2007 08:18 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] points variable substitution Should have done a bit more thinking and reading. A dummy OGR Connection does the trick: CONNECTIONTYPE OGR CONNECTION ' ODBC:Whatever/whatever at whatever SELECT %lng% as Longitude, %lat% as Latitude wkbPoint WGS84 ' David P. Shorthouse ------------------------------------------------------ Department of Biological Sciences CW-403, Biological Sciences Centre University of Alberta Edmonton, AB T6G 2E9 mailto:dps1 at ualberta.ca http://canadianarachnology.webhop.net http://arachnidforum.webhop.net http://www.spiderwebwatch.org ------------------------------------------------------ From: Shorthouse, David [mailto:dps1 at ualberta.ca] Sent: Saturday, March 17, 2007 1:06 AM To: 'mapserver-users at lists.umn.edu' Subject: points variable substitution I am wanting to plot one point as provided by a cgi query parameter for a very simple application, but substituting something like POINTS -113 45 END with POINTS %lng% %lat% END doesn?t work like I thought it would. Any suggestions for how to pass a point via URL parameters (e.g. &lng=-113&lat=45) & have it appear on a resultant map? Thanks, David P. Shorthouse ------------------------------------------------------ Department of Biological Sciences CW-403, Biological Sciences Centre University of Alberta Edmonton, AB T6G 2E9 mailto:dps1 at ualberta.ca http://canadianarachnology.webhop.net http://arachnidforum.webhop.net http://www.spiderwebwatch.org ------------------------------------------------------ From arndw at WTAL.DE Mon Mar 19 14:00:17 2007 From: arndw at WTAL.DE (Arnd Wippermann) Date: Mon, 19 Mar 2007 22:00:17 +0100 Subject: AW: [UMN_MAPSERVER-USERS] points variable substitution In-Reply-To: <001901c76a63$47629ca0$d627d5e0$@ca> Message-ID: Hello David, I would think, you have to submit the coordinate in the projection, you will use to display your map. I myself have only used the projection I have defined on map level. Second. This approach works only with a mapserver request. Perhaps your example can be used with a WMS request (with vendor parameter lon and lat). Arnd -----Urspr?ngliche Nachricht----- Von: Shorthouse, David [mailto:dps1 at ualberta.ca] Gesendet: Montag, 19. M?rz 2007 21:15 An: 'Arnd Wippermann' Betreff: RE: [UMN_MAPSERVER-USERS] points variable substitution Arnd, Thanks for the tip. I just tried this, but without success. Do annotations like this permit projection? David P. Shorthouse ------------------------------------------------------ Department of Biological Sciences CW-403, Biological Sciences Centre University of Alberta Edmonton, AB T6G 2E9 mailto:dps1 at ualberta.ca http://canadianarachnology.webhop.net http://arachnidforum.webhop.net http://www.spiderwebwatch.org ------------------------------------------------------ -----Original Message----- From: Arnd Wippermann [mailto:arndw at wtal.de] Sent: Monday, March 19, 2007 12:22 PM To: 'Shorthouse, David' Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: AW: [UMN_MAPSERVER-USERS] points variable substitution Hello David, via cgi you have also this way &map_credits_feature=new &map_credits_feature_points=2572146+5669256 &map_credits_feature_text=0566 &map_credits2_feature=new &map_credits2_feature_points=10+588 &map_credits2_feature_text=yourText &map_credits2_class_color=255+0+255 with this layers in the mapfile #&map_credits_feature=new&map_credits_feature_points=2605395+5705380&map_cre dits_feature_text=Hallo LAYER NAME credits STATUS on TYPE ANNOTATION FEATURE #POINTS 104 396 END #TEXT '© GINFO' END CLASS COLOR 0 0 255 OUTLINECOLOR 255 0 0 SYMBOL 'circle' SIZE 10 LABEL TYPE TRUETYPE FONT VERDANA SIZE 14 #ANTIALIAS COLOR 0 0 0 POSITION UR FORCE true END END END LAYER NAME credits2 STATUS on TRANSFORM FALSE TYPE ANNOTATION FEATURE #POINTS 10 530 END #TEXT 'aa' END CLASS #OUTLINECOLOR 255 0 0 COLOR 255 0 0 SYMBOL 'Struktur' SIZE 9 LABEL TYPE TRUETYPE FONT VERDANA SIZE 12 #ANTIALIAS COLOR 0 0 0 POSITION CR FORCE true END END END The difference between the first and second layer is the TRANSFORM parameter. The credits text and circle will set at the defined coordinate, the credits2 text and circle will drawn in the bottom left corner. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ ________________________________ Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Shorthouse, David Gesendet: Samstag, 17. M?rz 2007 08:18 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] points variable substitution Should have done a bit more thinking and reading. A dummy OGR Connection does the trick: CONNECTIONTYPE OGR CONNECTION ' ODBC:Whatever/whatever at whatever SELECT %lng% as Longitude, %lat% as Latitude wkbPoint WGS84 ' David P. Shorthouse ------------------------------------------------------ Department of Biological Sciences CW-403, Biological Sciences Centre University of Alberta Edmonton, AB T6G 2E9 mailto:dps1 at ualberta.ca http://canadianarachnology.webhop.net http://arachnidforum.webhop.net http://www.spiderwebwatch.org ------------------------------------------------------ From: Shorthouse, David [mailto:dps1 at ualberta.ca] Sent: Saturday, March 17, 2007 1:06 AM To: 'mapserver-users at lists.umn.edu' Subject: points variable substitution I am wanting to plot one point as provided by a cgi query parameter for a very simple application, but substituting something like POINTS -113 45 END with POINTS %lng% %lat% END doesn?t work like I thought it would. Any suggestions for how to pass a point via URL parameters (e.g. &lng=-113&lat=45) & have it appear on a resultant map? Thanks, David P. Shorthouse ------------------------------------------------------ Department of Biological Sciences CW-403, Biological Sciences Centre University of Alberta Edmonton, AB T6G 2E9 mailto:dps1 at ualberta.ca http://canadianarachnology.webhop.net http://arachnidforum.webhop.net http://www.spiderwebwatch.org ------------------------------------------------------ From janos.gonzales at GMAIL.COM Mon Mar 19 14:18:30 2007 From: janos.gonzales at GMAIL.COM (=?ISO-8859-1?Q?J=E1nos_Gonzales?=) Date: Mon, 19 Mar 2007 15:18:30 -0600 Subject: command line works, browser fails Message-ID: Hello, I am running mapserver on Windows/Apache with the binaries from maptools.org. One of my layers is an ArcSDE layer. When I run mapserver through the command line with QUERY_STRING , like so: mapserv.exe QUERY_STRING="map=test.map&layer=sdelayer ..." I get the output that would normally go into an html page. If I check the output directory I see that the image created from the SDE layer is there. However, when accessing mapserver via a url with the same query string, I get a "500 internal server error". Apache error log just reports "Premature end of script headers" and the mapserver log reports nothing. My questions: 1. Does this have anything to do with setting permissions for the sde dlls? 2. Does anybody know how to see what errors are actually happening in this case? Thanks From ryanollerenshaw at GMAIL.COM Mon Mar 19 15:36:27 2007 From: ryanollerenshaw at GMAIL.COM (Ryan Ollerenshaw) Date: Mon, 19 Mar 2007 15:36:27 -0700 Subject: merc projection changing lat_0 has no effect Message-ID: I am trying to reproject my map which is in the geographic projection 4326 to a Mercator projection, which works, however, when i change lat_0 to anything it has no effect. I can change lon_0 and the images shifts appropriatly but for some reason lat_0 has no effect. -Thank you. From assefa at DMSOLUTIONS.CA Mon Mar 19 16:29:26 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 19 Mar 2007 19:29:26 -0400 Subject: problem with MapServer WMS -T using polygon shapefiles In-Reply-To: <919328.18768.qm@web38112.mail.mud.yahoo.com> Message-ID: Hi There, comments inline Peter Shrock wrote: > Hello, all: > > I have been trying to get WMS time series working with MapServer. I used point > shapefiles and it worked well. But I cannot get MapServer work with polygon > shapefiles. > > LAYER > NAME "timemap" > TYPE POLYGON > STATUS ON > METADATA > "wms_title" "timemap" > "wms_timeformat" "YYYYMMDD" > "wms_timeextent" "20021130/20061130" > "wms_timeitem" "TIMES" > "wms_timedefault" "20021130" > "wms_srs" "EPSG:4326" > END > TILEINDEX "index1.shp" > TILEITEM "Location" > > CLASSITEM "color_code" > CLASS > NAME "TYPE 1" > EXPRESSION ([color_code]==1) > COLOR 220 120 130 > OUTLINECOLOR 150 150 150 > END > > CLASS > NAME "TYPE 2" > EXPRESSION ([color_code]==2) > COLOR 255 255 155 > OUTLINECOLOR 150 150 150 > END > > CLASS > NAME "TYPE 3" > EXPRESSION ([color_code]==0) > COLOR 200 200 200 > OUTLINECOLOR 100 100 100 > END > END > > > index1 polygon shapefile was created using tile4ms, its data is: > > Location DATETIME > times\year2002 20021130 > times\year2003 20031130 > times\year2004 20041130 > times\year2005 20051130 > times\year2006 20061130 > > error message: msDrawMap(): Image handling error. Failed to draw layer named > 'timemap'. msDBFGetItemIndex(): DBASE file error. Item 'TIMES' not found. > > It seems that MapServer tried to find the "TIMES" field from the yearly > shapefiles. But TIMES field only exists in the tile index polygon shapefile. > The wms time value is converted and set on the FILTER parameter of the layer. In your case, the Filter is set on the tileindex layer (timestamp). From the description you gave, the value of the "wms_timeitem" would have to be "DATETIME". If set like this, the wms request time=20021130 would have the effect of selecting your 2002 yearly file. > Could anyone help me to make WMS time series working using polygon shapefile > data with MapServer? or is this a MapServer Bug? > Is your setting using points similar to what you have described here ? I am not sure how you wms/point layers are setup but in theory there should not be a difference between a point and polygon layers. Later, > I also tried seperating index layer and data layer, and it did not work either. > > Thanks > > Peter > > > > > > ____________________________________________________________________________________ > Expecting? Get great news right away with email Auto-Check. > Try the Yahoo! Mail Beta. > http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From ryanollerenshaw at GMAIL.COM Mon Mar 19 17:19:02 2007 From: ryanollerenshaw at GMAIL.COM (Ryan Ollerenshaw) Date: Mon, 19 Mar 2007 17:19:02 -0700 Subject: merc projection changing lat_0 has no effect Message-ID: When I change lat_0 it has no effect on the map that is produced. When i change lon_0 the map is shifted the appropriate amount, but nothing seems to happen when i change lat_0. Any ideas on what i could be doing wrong? From ryanollerenshaw at GMAIL.COM Mon Mar 19 17:32:25 2007 From: ryanollerenshaw at GMAIL.COM (Ryan Ollerenshaw) Date: Mon, 19 Mar 2007 17:32:25 -0700 Subject: merc projection changing lat_0 has no effect Message-ID: When i change the lat_0 variable in my projection string it seems to have to effect. when i change the lon_0 variable my map is shifted appropriately but for some reason lat_0 does not change how my map is displayed at all. does anyone know how i can change the center latitude that my projected map is based on? From percyd at PDX.EDU Mon Mar 19 17:42:44 2007 From: percyd at PDX.EDU (percy) Date: Mon, 19 Mar 2007 17:42:44 -0700 Subject: merc projection changing lat_0 has no effect In-Reply-To: <20b31d4d0703191536i5381738ap80208e97143feb6d@mail.gmail.com> Message-ID: http://topomaps.usgs.gov/drg/mercproj/index.html The way I read this is that you can ONLY change longitude, and that latitude is fixed at the equator. And the opposite holds true for Transverse Mercator... Happy to be corrected if this is not the case :-) I typically use Albers Equal Area and shift the lat/lon settings for maps of larger regions... Ryan Ollerenshaw wrote: > I am trying to reproject my map which is in the geographic projection > 4326 to a Mercator projection, which works, however, when i change > lat_0 to anything it has no effect. I can change lon_0 and the images > shifts appropriatly but for some reason lat_0 has no effect. > > -Thank you. > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From ed at TOPOZONE.COM Mon Mar 19 17:40:05 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 19 Mar 2007 20:40:05 -0400 Subject: merc projection changing lat_0 has no effect In-Reply-To: A<20b31d4d0703191536i5381738ap80208e97143feb6d@mail.gmail.com> Message-ID: Ryan - Can you post the MAP file or the PROJECTION block you are using for the modified projection? - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ryan Ollerenshaw Sent: Monday, March 19, 2007 6:36 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] merc projection changing lat_0 has no effect I am trying to reproject my map which is in the geographic projection 4326 to a Mercator projection, which works, however, when i change lat_0 to anything it has no effect. I can change lon_0 and the images shifts appropriatly but for some reason lat_0 has no effect. -Thank you. From ed at TOPOZONE.COM Mon Mar 19 18:13:43 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 19 Mar 2007 21:13:43 -0400 Subject: merc projection changing lat_0 has no effect In-Reply-To: A<45FF2E04.2080907@pdx.edu> Message-ID: David - The Mercator family of projections includes the conventional Mercator (projection on to a cylinder wrapped around the Earth at the Equator), the Transverse Mercator (cylinder is wrapped around the poles and a specified meridian), the Universal Transverse Mercator (just a special case of the former), and the Oblique Mercator, in which the cylinder is wrapped around the Earth at another location. What Ryan is trying to do is create an Oblique Mercator (assume that the value he wants to use for lat_0 is not 90 degrees!). That's fine, but it's a complex projection, as it is really more or less the general case for all Mercator-type projections (with limitations). There are a few national grid systems based on Oblique Mercator projections, and they are used in satellite imaging (Space Oblique Mercator) applications. - Ed P.S. Even if you're not an Oblique Mercator user, Larry's article is excellent and well worth reading! Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of percy Sent: Monday, March 19, 2007 8:43 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] merc projection changing lat_0 has no effect http://topomaps.usgs.gov/drg/mercproj/index.html The way I read this is that you can ONLY change longitude, and that latitude is fixed at the equator. And the opposite holds true for Transverse Mercator... Happy to be corrected if this is not the case :-) I typically use Albers Equal Area and shift the lat/lon settings for maps of larger regions... Ryan Ollerenshaw wrote: > I am trying to reproject my map which is in the geographic projection > 4326 to a Mercator projection, which works, however, when i change > lat_0 to anything it has no effect. I can change lon_0 and the images > shifts appropriatly but for some reason lat_0 has no effect. > > -Thank you. > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From joseramonlopez at GMAIL.COM Tue Mar 20 00:47:27 2007 From: joseramonlopez at GMAIL.COM (=?ISO-8859-1?Q?Jos=E9_Ram=F3n_L=F3pez?=) Date: Tue, 20 Mar 2007 08:47:27 +0100 Subject: fastcgi under Mapserver MS4W environment In-Reply-To: <7efce0ed0703200039i280b2283y3bde2ad8d1f48556@mail.gmail.com> Message-ID: Hi people. I have found this mod_fastcgi module compiled for windows in this site. http://www.apachelounge.com/download/ I have configured apache to load this module, with directive "Loadmodule ... " but i dont know what more thing i have to do to works fine. Does anybody knows how to configure apache (ms4w) to works with mod_fastcgi? Thxs. 2007/3/19, Jeff McKenna : > > Comments inline: > > > John Mitchell wrote: > > > > Hi, > > > > I would like to use fastcgi for the MS4W environment, and I have > > explored the following link: > > > > > > http://mapserver.gis.umn.edu/docs/howto/fastcgi > > > > > > which says the following: > > > > > > > > > FastCGI on Win32 > > < > http://mapserver.gis.umn.edu/docs/howto/fastcgi/#table-of-contents > > > > > > > MS4W Users > > < > http://mapserver.gis.umn.edu/docs/howto/fastcgi/#table-of-contents> > > > > MS4W (MapServer for Windows) >= version > > 2.2.2 contains MapServer compiled with FastCGI support. However MS4W > > does not contain the required Apache module mod_fastcgi, because the > > module must be compiled to work with the Apache 2.2.x series (MS4W > > contains Apache 2.2.4). If you compile this please contribute it back to > > the MS4W mailing list > > < http://lists.maptools.org/mailman/listinfo/ms4w-users>. > > That doc is uptodate and correct for this. > > > > > > > It appears from above that I need module mod_fastcgi compiled. Has > > anyone done this? > > > > No one has contributed this yet. > > > > > Is fast-cgi running within mapserver when setup in the following way: > > MS4W setup with latest FWTools bin content copied into MS4W > > apache\cgi-bin. I run mapserv -v and it says fastcgi. Is their anything > > > else that I have to do? > > > > Using the latest MS4W out-of-the-box will also give you that mapserv -v > fastcgi message. > > Also, are you aware that MS4W has it's own mailing list? (you even > included the link in your email) > > jeff > > > > -- > Jeff McKenna > DM Solutions Group Inc. > http://www.dmsolutions.ca > -- Jos? Ram?n L?pez Tfno: 627 88 88 24 -- Jos? Ram?n L?pez Tfno: 627 88 88 24 -------------- next part -------------- An HTML attachment was scrubbed... URL: From knozi at GMX.AT Tue Mar 20 00:53:34 2007 From: knozi at GMX.AT (Gernot Katzlberger) Date: Tue, 20 Mar 2007 08:53:34 +0100 Subject: =?iso-8859-1?Q?=D6ROK-Atlas?= Austria launched Message-ID: Dear MapServer-Users, After two years of development, ??ROK Atlas Austria? (http://www.oerok-atlas.at) was finalized and is open to the general public. ??ROK Atlas Austria? is a cooperative scientific project with the goal of developing an online system that enables the user to explore national (Austrian) as well as international (European) statistical information. It is fully based on Open-Source Software, having UMN MapServer as one of its core components. Major focus in the development was put on high cartographic quality. To focus on this approach, a true vector map output was incorporated besides the digital interactive Web mapping interface. To support further development of the system, your feedback is very welcome! Regards, Gernot Katzlberger ?ROK-Atlas Austria Team --------------------------------------------------------- UNIVERSITY of VIENNA DEPARTMENT of GEOGRAPHY and REGIONAL RESEARCH Cartography and GIS Tel: (+43 1) 4277 48647 Email: gernot.katzlberger at univie.ac.at Mail: Universitaetsstr. 7, A-1010 Wien, Austria --------------------------------------------------------- From ezenaide at GMAIL.COM Tue Mar 20 11:02:57 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Tue, 20 Mar 2007 15:02:57 -0300 Subject: Polygons extents Message-ID: hi all, MapServer can return - as an query, for example - extents for any polygon in a .shp? If so, how? There's a list of parameters to do that? thanks! -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From williampaul28 at YAHOO.COM Tue Mar 20 12:07:39 2007 From: williampaul28 at YAHOO.COM (william paul) Date: Tue, 20 Mar 2007 12:07:39 -0700 Subject: NaN results for itemquery with Dbox Message-ID: Hi: I am using Dbox and the example provided by Rich Greenwood, to map the results from a database query. I have modified the script so you can change the queryfile, qitem and qstring. The script works OK on 1 layer, but for others I get NaN. Before to map the results I test ( alert(qlayer, qitem, qstring)) to see if the queryfile, qitem and qstring are correct. Even though I have the core ct names for each one I still get NaN results What could be the problem? script from the database query results modified itemQuery script ms.itemqueryoptions = "&mapext=shapes&savequery=true&"; function itemQueryModified(qstring, qitem, qlayer) { //ms.setLayer(qlayer, true); var uri = ms.mapserver + '?map=' + ms.mapfile + "&layers=" + ms.getLayers("+") + "&mapsize=" + ms.width + "+" + ms.height; uri += ms.itemqueryoptions; uri += '&mode=itemquery' uri += '&qlayer=' + qlayer; uri += '&qitem=' + qitem; uri += '&qstring=' + qstring; var response = get_content(uri); var tokens = response.split(','); alert(qstring + qitem + qlayer + ", " + Number(tokens[1]), Number(tokens[2]), Number(tokens[3]), Number(tokens[4])); ms.setExtent(Number(tokens[1]), Number(tokens[2]), Number(tokens[3]), Number(tokens[4])); main.setImage(tokens[5]); ms.savedqueryfile=tokens[6]; domouseclick('pan'); } --------------------------------- Need Mail bonding? Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Tue Mar 20 14:07:15 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 20 Mar 2007 16:07:15 -0500 Subject: =?UTF-8?Q?=C3=96ROK-Atlas?= Aust ria launched In-Reply-To: <002501c76ac4$dcef19e0$96cd4da0$@at> Message-ID: A gorgeous application, great looking interface and maps. Well done! I wasn't always sure what I was looking at, but it sure seemed to be snappy... Steve >>> On 3/20/2007 at 2:53 AM, in message <002501c76ac4$dcef19e0$96cd4da0$@at>, Gernot Katzlberger wrote: > Dear MapServer-Users, > > After two years of development, ??ROK Atlas Austria? > (http://www.oerok-atlas.at) was finalized and is open to the general public. > ??ROK Atlas Austria? is a cooperative scientific project with the goal of > developing an online system that enables the user to explore national > (Austrian) as well as international (European) statistical information. It > is fully based on Open-Source Software, having UMN MapServer as one of its > core components. Major focus in the development was put on high cartographic > quality. To focus on this approach, a true vector map output was > incorporated besides the digital interactive Web mapping interface. > > To support further development of the system, your feedback is very welcome! > > Regards, > Gernot Katzlberger > ?ROK-Atlas Austria Team > > > --------------------------------------------------------- > UNIVERSITY of VIENNA > DEPARTMENT of GEOGRAPHY and REGIONAL RESEARCH > Cartography and GIS > > Tel: (+43 1) 4277 48647 > Email: gernot.katzlberger at univie.ac.at > Mail: Universitaetsstr. 7, A-1010 Wien, Austria > --------------------------------------------------------- From Steve.Lime at DNR.STATE.MN.US Tue Mar 20 14:53:08 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 20 Mar 2007 16:53:08 -0500 Subject: Polygons extents In-Reply-To: <7af310f80703201102s67f1096cuf7a322ff46618a35@mail.gmail.com> Message-ID: Through a query template you can access: - a shape extent using [shpext] or [shpminx], [shpmaxx], ... - the shape coordinates itself using [shpxy] See the template reference guide on the MapServer website. Steve >>> On 3/20/2007 at 1:02 PM, in message <7af310f80703201102s67f1096cuf7a322ff46618a35 at mail.gmail.com>, Eduardo Zenaide wrote: > hi all, > > MapServer can return - as an query, for example - extents for any polygon in > a .shp? > If so, how? There's a list of parameters to do that? > > thanks! From frezzz_54 at YAHOO.COM Tue Mar 20 19:57:02 2007 From: frezzz_54 at YAHOO.COM (theresia freska) Date: Tue, 20 Mar 2007 19:57:02 -0700 Subject: double check between postgis and queryByAttribute Message-ID: hello, can someone pls check my code? just wonder if i use too much resource. seems like i do double check here, between postgis and queryByAttribute. does mapserver do this kind of check in the queryByAttribute? if yes, how can i access it? thank you. if ($_POST['mode'] == "itemnquery") { $qstring = $_POST['qstring']; $inputLayer = array('Highway', 'Street'); //check whether the query layers are active or not if (array_intersect($inputLayer, $listLayer) != $inputLayer) { echo ""; } else { //if yes, check if user's input returns >1 name if ($_POST['qstring']) { $conn = pg_connect("host=".$host." dbname=".$database." user=".$user." password=".$password) or die ("Error connect!"); $result = pg_query("select distinct road, class from tbRoad where road like '%$qstring%'"); $m = 0; while ($row = pg_fetch_row($result)) { $res[$m] = $row; $m++; } $result_table = makeTable($res); //if it returns only 1 name, display the query map if (count($res)==1) { for ($k=0; $kgetLayerByName($inputLayer[$k]); $qry = "road LIKE '%" . $qstring . "%'"; @$qLayer->queryByAttributes("road", $qry, MS_MULTIPLE); $showquery = TRUE; drawQueryRes(); } } } else { echo ""; } } } --------------------------------- It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. -------------- next part -------------- An HTML attachment was scrubbed... URL: From siukola.antti at GMAIL.COM Wed Mar 21 00:00:25 2007 From: siukola.antti at GMAIL.COM (antti siukola) Date: Wed, 21 Mar 2007 09:00:25 +0200 Subject: MapServer performance In-Reply-To: Message-ID: Hi! Oh, yes. I'm on linux with mapserver 4.8.4 and php mapscript. The server is quite new and powerful with dual xeon and 1024M of memory. Data sources are mostly SHP-files and few TABs for vector data and labels. The actual maps are .tif images. I'm using tiled tiff's and low-res images on upper scales. Thanks! Antti S On 3/20/07, Romolo Manfredini wrote: > > ----- Original Message ----- > From: "antti siukola" > To: > Sent: Monday, March 19, 2007 5:21 PM > Subject: [UMN_MAPSERVER-USERS] MapServer performance > > > > Hi! > > > > This might have been answered several times but here goes. I have some > > performance problems when mapserver (GD) produces map images (jpeg). > > It shows as apache takes about 80-90% of cpu time when there's just > > about a dozen users online. Are there any tips and tricks for this? > > > > Thanks in advance! > > > > Antti S > > > > Maybe some information more about platform (linux/windows) and version, data > source type may be helpful. > I have a Linux / Apache / PHP Mapscript / Postgis setup on a 2GB ram P4 3200 > machine that support more than 100 user at time without too much troubles. > (The postgis datasource has a table with more than 50M polygons inside). > Romolo Manfredini > > From sacchetti at NEPERO.NET Wed Mar 21 05:52:29 2007 From: sacchetti at NEPERO.NET (Giacomo Sacchetti) Date: Wed, 21 Mar 2007 13:52:29 +0100 Subject: Pattern file Message-ID: Hi All, I'm in trouble with Mapfile Symbols. I've a .pat file (pattern file) and I want to know if is possibile to convert it to a list of mapfile symbols/hatchs. Any suggestion? Cheers GS From prodriguez at ADASASISTEMAS.COM Wed Mar 21 11:13:19 2007 From: prodriguez at ADASASISTEMAS.COM (=?iso-8859-1?Q?Pablo__Rodr=EDguez_Madro=F1o?=) Date: Wed, 21 Mar 2007 19:13:19 +0100 Subject: SLD ignoring fill-opacity Message-ID: Good afternoon, I am using a very simple SLD document in a Java mapscript application under Windows, and it seems to ignore the fill-opacity and the width CSSParameters. This is my SLD document, which is correctly loaded: Demarcaciones TRANSPARENT-POLYGON-GRAY 0.5 1 The document is parsed with default values (so it ignores fill-opacity and width). If the other two CssParameters are uncommented only them are taken into consideration. The Java code is very simple, so I am not attaching it (if you need it I can post it). Is there any solution which does not pass through a mapfile workaround? Thank you very much, Pablo Rodr?guez Madro?o Divisi?n de Sistemas de Informaci?n ADASA Sistemas 93.264.06.02 600.92.65.10 From tkirstine at JDBARNES.COM Wed Mar 21 12:22:52 2007 From: tkirstine at JDBARNES.COM (Travis Kirstine) Date: Wed, 21 Mar 2007 15:22:52 -0400 Subject: WMS Scale hint insight Message-ID: Hi All, I was hoping someone could provide some insight into minscale / maxscale and wms scalehints. In my mapfile I have defined the scales as: LAYER NAME "6km_tiles" TILEINDEX "6km_tiles/6km_tindex" TILEITEM "location" METADATA "wms_title" "6km Tiles" END PROJECTION "init=epsg:26917" # utm nad 83 zone 17 END TYPE RASTER STATUS OFF MAXSCALE 250000 MINSCALE 10000 END and in my get capabilities request the layer / scale hints are defined as: 6km_tiles 6km Tiles EPSG:26917 and when I view the data as a client with the scales are defined as: max = 1:333,332 min = 1:13,333 How do these all relate? Why does the client's min/max scale "respect" scales defined in the mapfile? How are the scalehints calculated? Any insight would be great. Thanks, Travis Kirstine First Base Solutions Limited Markham, ON Canada From dmorissette at MAPGEARS.COM Wed Mar 21 12:42:44 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 21 Mar 2007 15:42:44 -0400 Subject: WMS Scale hint insight In-Reply-To: Message-ID: Here is the definition of WMS ScaleHint: ** (see WMS 1.1.0 sect. 7.1.5.4) The WMS defines the scalehint values as ** the ground distance in meters of the southwest to northeast diagonal of ** the central pixel of a map. ScaleHint values are the min and max ** recommended values of that diagonal. The reason why you get different scale values in your client is that scale is meaningless in a web environment since the server has no idea of the resolution of the screen of the client, so we have to go with assumptions. MapServer uses a default screen resolution of 72 pixels per inch for its scale calculations, which can be changed with the RESOLUTION mapfile parameter (see http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj/?searchterm=resolution%20reference) and I am guessing that your client uses an assumption of 96dpi based on the values that you see. Setting RESOLUTION 96 in your mapfile would give you numbers that match in your client, but that are not necessarily true since the actual screen resolution may be a different value. This issue has been discussed multiple times on this list, look for the very complete posts from Ed McNierney on this topic in the list archives. Daniel Travis Kirstine wrote: > Hi All, > I was hoping someone could provide some insight into minscale / maxscale and > wms scalehints. > > In my mapfile I have defined the scales as: > > LAYER > NAME "6km_tiles" > TILEINDEX "6km_tiles/6km_tindex" > TILEITEM "location" > METADATA > "wms_title" "6km Tiles" > END > PROJECTION > "init=epsg:26917" # utm nad 83 zone 17 > END > TYPE RASTER > STATUS OFF > MAXSCALE 250000 > MINSCALE 10000 > END > > and in my get capabilities request the layer / scale hints are defined as: > > > 6km_tiles > 6km Tiles > EPSG:26917 > > > > and when I view the data as a client with the scales are defined as: > > max = 1:333,332 > min = 1:13,333 > > How do these all relate? Why does the client's min/max scale "respect" > scales defined in the mapfile? How are the scalehints calculated? > > Any insight would be great. > > Thanks, > > Travis Kirstine > First Base Solutions Limited > Markham, ON > Canada -- Daniel Morissette http://www.mapgears.com/ From richard.greenwood at GMAIL.COM Wed Mar 21 19:16:57 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 21 Mar 2007 20:16:57 -0600 Subject: NaN results for itemquery with Dbox In-Reply-To: <494214.98282.qm@web38412.mail.mud.yahoo.com> Message-ID: On 3/20/07, william paul wrote: > Hi: > > I am using Dbox and the example provided by Rich Greenwood, to map the > results from a database query. I have modified the script so you can change > the queryfile, qitem and qstring. The script works OK on 1 layer, but for > others I get NaN. Before to map the results I test ( alert(qlayer, qitem, > qstring)) to see if the queryfile, qitem and qstring are correct. Even > though I have the core ct names for each one I still get NaN results > What could be the problem? > > script from the database query results > > > > modified itemQuery script > ms.itemqueryoptions = "&mapext=shapes&savequery=true&"; > function itemQueryModified(qstring, qitem, qlayer) > { > //ms.setLayer(qlayer, true); > var uri = ms.mapserver + '?map=' + ms.mapfile + "&layers=" + > ms.getLayers("+") + "&mapsize=" + ms.width + "+" + ms.height; > uri += ms.itemqueryoptions; > uri += '&mode=itemquery' > uri += '&qlayer=' + qlayer; > uri += '&qitem=' + qitem; > uri += '&qstring=' + qstring; > var response = get_content(uri); > var tokens = response.split(','); > alert(qstring + qitem + qlayer + ", " + Number(tokens[1]), > Number(tokens[2]), Number(tokens[3]), Number(tokens[4])); > ms.setExtent(Number(tokens[1]), Number(tokens[2]), Number(tokens[3]), > Number(tokens[4])); > main.setImage(tokens[5]); > ms.savedqueryfile=tokens[6]; > domouseclick('pan'); > } You probably didn't get a match in your database. NaN means "Not a Number". MapServer did not return an extent for the selection because it could not find anything, and so your browser was not able to convert the tokens 1-4 into numbers. I try to catch that and tell the user something like "no results found". Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From peturkirke at FDS.FO Thu Mar 22 05:07:20 2007 From: peturkirke at FDS.FO (Petur Kirke) Date: Thu, 22 Mar 2007 12:07:20 +0000 Subject: Are they needed ? Message-ID: Please help a dummy ! The readme-install file says: 4) Technically, at this point, MS4W is installed! However, as you may have noticed from the MS4W main index.html page, there are no applications running. What this means is that there are no Web applications like MapLab or Chameleon found within MS4W's Web-accessible directory, /ms4w/apps/. The MS4W-configured Web applications can be found on http://maptools.org/ms4w/index.phtml? page=downloads.html as separate zip files. My question is: Do I need MapLab or Chameleon to run Mapserver ? What are these programs for ? From guillaume.sueur at GEOSIGNAL.FR Thu Mar 22 05:48:55 2007 From: guillaume.sueur at GEOSIGNAL.FR (Guillaume Sueur) Date: Thu, 22 Mar 2007 13:48:55 +0100 Subject: Are they needed ? In-Reply-To: Message-ID: no, you absolutly don't need these. They're almost ready-to-use application for designing cartographic application. You can build your own Mapserver app without using them. Petur Kirke a ?crit : > Please help a dummy ! > > The readme-install file says: > > 4) > Technically, at this point, MS4W is installed! However, as you may have noticed > from the MS4W main index.html page, there are no applications running. What > this means is that there are no Web applications like MapLab or Chameleon found > within MS4W's Web-accessible directory, /ms4w/apps/. The MS4W-configured Web > applications can be found on http://maptools.org/ms4w/index.phtml? > page=downloads.html as separate zip files. > > My question is: > Do I need MapLab or Chameleon to run Mapserver ? > What are these programs for ? > > -- Guillaume SUEUR From pb at GIS.UMCS.LUBLIN.PL Thu Mar 22 06:12:18 2007 From: pb at GIS.UMCS.LUBLIN.PL (=?ISO-8859-2?B?UHJ6ZW15c7Nhdw==?= Bojczuk) Date: Thu, 22 Mar 2007 14:12:18 +0100 Subject: Are they needed ? In-Reply-To: Message-ID: Petur Kirke wrote: > Technically, at this point, MS4W is installed! However, as you may have noticed > from the MS4W main index.html page, there are no applications running. What > this means is that there are no Web applications like MapLab or Chameleon found > within MS4W's Web-accessible directory, /ms4w/apps/. The MS4W-configured Web > applications can be found on http://maptools.org/ms4w/index.phtml? > page=downloads.html as separate zip files. > My question is: > Do I need MapLab or Chameleon to run Mapserver ? > What are these programs for ? No, you don't *need* them to run Mapserver, it can perfectly well run on its own. Chameleon is just a frontend to Mapserver that makes it a bit easier to build a web application (you don't have to do it from scratch) and MapLab allows for interacting with maps served by MS. Other apps that you can install within MS4W serve similar purposes, they are mainly frontends to display what MS serves in a more fancy way. Hope that helps. PB -- Geographical Information Systems Laboratory Institute of Earth Sciences, UMCS http://gis.umcs.lublin.pl/en/ From williampaul28 at YAHOO.COM Thu Mar 22 07:24:55 2007 From: williampaul28 at YAHOO.COM (william paul) Date: Thu, 22 Mar 2007 07:24:55 -0700 Subject: NaN results for itemquery with Dbox In-Reply-To: Message-ID: As usually: Thank you Rich The strange part is that I have a match in my database, but I still get the NaN results. If I use the query tool from mapserver I get the proper results. The only difference is that when I send text (the qstring is a text) from the database to mapserver I get the proper results. When I send numbers (the qstring is a number) I get NaN results. Do you think it could be related to the type of the data used for query? I will make other tests William Richard Greenwood wrote: On 3/20/07, william paul wrote: > Hi: > > I am using Dbox and the example provided by Rich Greenwood, to map the > results from a database query. I have modified the script so you can change > the queryfile, qitem and qstring. The script works OK on 1 layer, but for > others I get NaN. Before to map the results I test ( alert(qlayer, qitem, > qstring)) to see if the queryfile, qitem and qstring are correct. Even > though I have the core ct names for each one I still get NaN results > What could be the problem? > > script from the database query results > > var qlayer = "anyQlayer"; > var qitem = "anyQitem"; > function map(qstring) > { > opener.itemQueryModified(qstring, qitem, qlayer); > window.close(); > opener.focus(); > } > > > > modified itemQuery script > ms.itemqueryoptions = "&mapext=shapes&savequery=true&"; > function itemQueryModified(qstring, qitem, qlayer) > { > //ms.setLayer(qlayer, true); > var uri = ms.mapserver + '?map=' + ms.mapfile + "&layers=" + > ms.getLayers("+") + "&mapsize=" + ms.width + "+" + ms.height; > uri += ms.itemqueryoptions; > uri += '&mode=itemquery' > uri += '&qlayer=' + qlayer; > uri += '&qitem=' + qitem; > uri += '&qstring=' + qstring; > var response = get_content(uri); > var tokens = response.split(','); > alert(qstring + qitem + qlayer + ", " + Number(tokens[1]), > Number(tokens[2]), Number(tokens[3]), Number(tokens[4])); > ms.setExtent(Number(tokens[1]), Number(tokens[2]), Number(tokens[3]), > Number(tokens[4])); > main.setImage(tokens[5]); > ms.savedqueryfile=tokens[6]; > domouseclick('pan'); > } You probably didn't get a match in your database. NaN means "Not a Number". MapServer did not return an extent for the selection because it could not find anything, and so your browser was not able to convert the tokens 1-4 into numbers. I try to catch that and tell the user something like "no results found". Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com --------------------------------- It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Eric.Lemoine at CAMPTOCAMP.COM Thu Mar 22 07:58:57 2007 From: Eric.Lemoine at CAMPTOCAMP.COM (Eric Lemoine) Date: Thu, 22 Mar 2007 15:58:57 +0100 Subject: does PARTIALS FALSE work? Message-ID: Hi I have an WMS layer with labels and I don't want my labels to be cut off at tiles boundaries when displayed in OpenLayers. So I thought I should use PARTIALS FALSE but that doesn't change anything! Can someone shed some light? Thanks a lot. My layer section looks like that LAYER NAME "voies" TYPE LINE DATA Referentiel/Cadastre/75/voiep.shp PROJECTION "init=epsg:27591" END LABELITEM "TL_TP" LABELMAXSCALE 4000 CLASS NAME "Rue de Paris" COLOR -1 -1 -1 OUTLINECOLOR -1 -1 -1 LABEL ANGLE FOLLOW ANTIALIAS true COLOR 30 30 30 SIZE 7 TYPE TRUETYPE FONT "arial" PARTIALS FALSE END END METADATA "wms_title" "voies" END END -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine at camptocamp.com http://www.camptocamp.com From assefa at DMSOLUTIONS.CA Thu Mar 22 08:08:49 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 22 Mar 2007 11:08:49 -0400 Subject: SLD ignoring fill-opacity In-Reply-To: <08DB3BF4E427DA4BAD62B6514DA3391B03B9FDF7@BCN-SERVIDOR-E.agbaring.com> Message-ID: Hi There, There was a thread explaining the status on the support of opacity at feature level and sld : http://www.nabble.com/mapserver-support-for-sld-opacity-fills-tf3439962.html Later, Pablo Rodr?guez Madro?o wrote: > Good afternoon, > > I am using a very simple SLD document in a Java mapscript application under Windows, and it seems to ignore the fill-opacity and the width CSSParameters. > > This is my SLD document, which is correctly loaded: > > > 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.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> > > Demarcaciones > > TRANSPARENT-POLYGON-GRAY > > > > > > 0.5 > > > > 1 > > > > > > > > > The document is parsed with default values (so it ignores fill-opacity and width). If the other two CssParameters are uncommented only them are taken into consideration. > > The Java code is very simple, so I am not attaching it (if you need it I can post it). > > Is there any solution which does not pass through a mapfile workaround? > > Thank you very much, > > Pablo Rodr?guez Madro?o > Divisi?n de Sistemas de Informaci?n > ADASA Sistemas > 93.264.06.02 > 600.92.65.10 > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From dmorissette at MAPGEARS.COM Thu Mar 22 08:23:02 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 22 Mar 2007 11:23:02 -0400 Subject: does PARTIALS FALSE work? In-Reply-To: <5ec103de0703220758s1b194dbvfae20d41bd916033@mail.gmail.com> Message-ID: It might be that ANGLE FOLLOW doesn't respect the PARTIALS FALSE setting? Daniel Eric Lemoine wrote: > Hi > > I have an WMS layer with labels and I don't want my labels to be cut > off at tiles boundaries when displayed in OpenLayers. So I thought I > should use PARTIALS FALSE but that doesn't change anything! Can > someone shed some light? Thanks a lot. > > My layer section looks like that > > LAYER > NAME "voies" > TYPE LINE > DATA Referentiel/Cadastre/75/voiep.shp > PROJECTION > "init=epsg:27591" > END > LABELITEM "TL_TP" > LABELMAXSCALE 4000 > CLASS > NAME "Rue de Paris" > COLOR -1 -1 -1 > OUTLINECOLOR -1 -1 -1 > LABEL > ANGLE FOLLOW > ANTIALIAS true > COLOR 30 30 30 > SIZE 7 > TYPE TRUETYPE > FONT "arial" > PARTIALS FALSE > END > END > METADATA > "wms_title" "voies" > END > END > -- Daniel Morissette http://www.mapgears.com/ From williampaul28 at YAHOO.COM Thu Mar 22 08:55:12 2007 From: williampaul28 at YAHOO.COM (william paul) Date: Thu, 22 Mar 2007 08:55:12 -0700 Subject: NaN results for itemquery with Dbox In-Reply-To: <919350.59902.qm@web38414.mail.mud.yahoo.com> Message-ID: I have solve the problem. It was the scale parameter. I was trying to display point data without the scale parameter, so mapserver couldn't create the mapext values. I have modified the script by adding a scale variable William william paul wrote: As usually: Thank you Rich The strange part is that I have a match in my database, but I still get the NaN results. If I use the query tool from mapserver I get the proper results. The only difference is that when I send text (the qstring is a text) from the database to mapserver I get the proper results. When I send numbers (the qstring is a number) I get NaN results. Do you think it could be related to the type of the data used for query? I will make other tests William Richard Greenwood wrote: On 3/20/07, william paul wrote: > Hi: > > I am using Dbox and the example provided by Rich Greenwood, to map the > results from a database query. I have modified the script so you can change > the queryfile, qitem and qstring. The script works OK on 1 layer, but for > others I get NaN. Before to map the results I test ( alert(qlayer, qitem, > qstring)) to see if the queryfile, qitem and qstring are correct. Even > though I have the core ct names for each one I still get NaN results > What could be the problem? > > script from the database query results > > var qlayer = "anyQlayer"; > var qitem = "anyQitem"; > function map(qstring) > { > opener.itemQueryModified(qstring, qitem, qlayer); > window.close(); > opener.focus(); > } > > > > modified itemQuery script > ms.itemqueryoptions = "&mapext=shapes&savequery=true&"; > function itemQueryModified(qstring, qitem, qlayer) > { > //ms.setLayer(qlayer, true); > var uri = ms.mapserver + '?map=' + ms.mapfile + "&layers=" + > ms.getLayers("+") + "&mapsize=" + ms.width + "+" + ms.height; > uri += ms.itemqueryoptions; > uri += '&mode=itemquery' > uri += '&qlayer=' + qlayer; > uri += '&qitem=' + qitem; > uri += '&qstring=' + qstring; > var response = get_content(uri); > var tokens = response.split(','); > alert(qstring + qitem + qlayer + ", " + Number(tokens[1]), > Number(tokens[2]), Number(tokens[3]), Number(tokens[4])); > ms.setExtent(Number(tokens[1]), Number(tokens[2]), Number(tokens[3]), > Number(tokens[4])); > main.setImage(tokens[5]); > ms.savedqueryfile=tokens[6]; > domouseclick('pan'); > } You probably didn't get a match in your database. NaN means "Not a Number". MapServer did not return an extent for the selection because it could not find anything, and so your browser was not able to convert the tokens 1-4 into numbers. I try to catch that and tell the user something like "no results found". Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com --------------------------------- It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. --------------------------------- Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Eric.Lemoine at CAMPTOCAMP.COM Thu Mar 22 09:19:43 2007 From: Eric.Lemoine at CAMPTOCAMP.COM (Eric Lemoine) Date: Thu, 22 Mar 2007 17:19:43 +0100 Subject: does PARTIALS FALSE work? In-Reply-To: <46029F56.7020508@mapgears.com> Message-ID: On 3/22/07, Daniel Morissette wrote: > It might be that ANGLE FOLLOW doesn't respect the PARTIALS FALSE setting? Sorry. Everything works as expected, I was doing something wrong. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine at camptocamp.com http://www.camptocamp.com From daniel.regis at HOTMAIL.COM Thu Mar 22 10:00:05 2007 From: daniel.regis at HOTMAIL.COM (daniel regis filho) Date: Thu, 22 Mar 2007 17:00:05 +0000 Subject: How to center map? Message-ID: An HTML attachment was scrubbed... URL: From yecarrillo at YAHOO.COM Thu Mar 22 15:58:34 2007 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Thu, 22 Mar 2007 15:58:34 -0700 Subject: queryByFeatures,oids,postgis Message-ID: I were unable to query a postgis table using queryByFeatures. That table is big (18000 records), but it is indexed with GIST. It hasn't oid field, but it has a gid field (integer) as primary key. Quering another table with less records(7) returns records as expected. Another post to the list points that issue (http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0310/msg00320.html) EXPLAIN ANALYSE SELECT the_geom,gid FROM problematiclayer Seq Scan on problematiclayer (cost=0.00..2390.95 rows=18895 width=3407) (actual time=0.225..195.622 rows=18895 loops=1) 2 rows fetched (297 ms) DEBUG: StartTransactionCommand DEBUG: StartTransaction DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 187638/1/0, nestlvl: 1, children: <> DEBUG: ProcessUtility DEBUG: CommitTransactionCommand DEBUG: CommitTransaction DEBUG: name: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 187638/1/0, nestlvl: 1, children: <> DEBUG: StartTransactionCommand DEBUG: StartTransaction DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 187639/1/0, nestlvl: 1, children: <> DEBUG: ProcessUtility DEBUG: CommitTransactionCommand DEBUG: CommitTransaction DEBUG: name: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 187639/1/1, nestlvl: 1, children: <> Software: PostgreSQL 8.2.1 POSTGIS="1.2.1" GEOS="2.2.3-CAPI-1.1.1" PROJ="Rel. 4.5.0, 22 Oct 2006" USE_STATS FIST 2.2.1 __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.espanol.yahoo.com/ From samnyoung at HOTMAIL.COM Thu Mar 22 18:45:37 2007 From: samnyoung at HOTMAIL.COM (Sam Young) Date: Thu, 22 Mar 2007 17:45:37 -0800 Subject: dbox question Message-ID: Rich- Good call on the make_dlegend_xml_cgi.py, I did not have that on the server. However, after installing it I am still getting the same error. Do you have any other suggestions? Thanks, Sam On 3/18/07, Sam Young wrote: I am trying to set up a mapserver application using dbox at the following url: http//:www.trailweb.net The error message I get out of the Firefox error console is: Error: this.treeLegend has no properties Source File: http://www.trailweb.net/src/javascript/mapserver/dlegend.js Line: 56 Does anyone have any suggestions on how to resolve this? Thanks, Sam Check that you have make_dlegend_xml_cgi.py in your cgi directory and that the permissions are right (-rwxr-xr-x). When I go to: http://www.trailweb.net/cgi-bin/make_dlegend_xml_cgi.py I get a 404 not found. I'm anxious to get out on all those trails... Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com _________________________________________________________________ It?s tax season, make sure to follow these few simple tips http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMMartagline From richard.greenwood at GMAIL.COM Thu Mar 22 19:56:54 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 22 Mar 2007 20:56:54 -0600 Subject: dbox question In-Reply-To: Message-ID: On 3/22/07, Sam Young wrote: > Rich- > > Good call on the make_dlegend_xml_cgi.py, I did not have that on the server. > However, after installing it I am still getting the same error. Do you > have any other suggestions? > > Thanks, > > Sam And you got make_dlegend_xml.py and make_dlegend_xml.pyc in there, too? And you got permissions set (-rwxr-xr-x)? -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From siukola.antti at GMAIL.COM Fri Mar 23 02:11:18 2007 From: siukola.antti at GMAIL.COM (antti siukola) Date: Fri, 23 Mar 2007 11:11:18 +0200 Subject: MapServer performance In-Reply-To: Message-ID: Hi! Thanks for the reply! My tiff's are from 15M to 10G tiff tiles (about 500M each tile) and depending on the map theres the one 15M tiff or from 2 to 3 of the 500M tiles displayed (I have couple of map apps running on the server). It doesn't seem to matter how big the tiff's are since the performance is the quite the same. I also have the .shx files for my shape's. The server doesn't get very much hit's since it's not an open for public application. I believe the average usage is about 1-10 users at the same time. Hope this helps! Antti S On 3/21/07, Romolo Manfredini wrote: > From: "antti siukola" : > > > Oh, yes. I'm on linux with mapserver 4.8.4 and php mapscript. The > > server is quite new and powerful with dual xeon and 1024M of memory. > > Data sources are mostly SHP-files and few TABs for vector data and > > labels. The actual maps are .tif images. I'm using tiled tiff's and > > low-res images on upper scales. > > > > SHP and tiff files are typically bad beast to manage expecially if they are > big shape and big tiff, also dependig on file system type you may have some > performance issues related to locking and caching. (1 GB ram with large > files is not so much) > Also, do you have spatial index on your files (.shx) ? > Spatial index improve performances a lot. > May you tell me the size of your files and how many of them are involved in > a single map ? > > Best Regards, > Romolo > > From harri.kiiskinen at UTU.FI Fri Mar 23 06:16:12 2007 From: harri.kiiskinen at UTU.FI (Harri Kiiskinen) Date: Fri, 23 Mar 2007 08:16:12 -0500 Subject: processlegendtemplate() Message-ID: Hello all, I'm having a problem with the processlegendtemplate(array) in PHP/Mapcript. According to the documentation, it should accept a similar parameter array as processtemplate(arra?, bool). However, it seems, that while processtemplate() does do the replacements from the array, processlegendtemplate() does not. Example: In php: $template_params["program"]=$_SERVER['PHP_SELF']; echo $map->processtemplate($template_params,MS_TRUE); $ltemplate_params["lprogram"]=$_SERVER['PHP_SELF']; echo $map->processlegendtemplate($ltemplate_params); In template_map:
In template_legend: [leg_header_html] [/leg_header_html] In resulting html, for the map template: and for the legend template: Might be I have misunderstood the documentation, but at least the PHP/Mapscript documentation indicates, that this should work. Greetings, Harri K. From ian.maxfield at AIMTC.NHS.UK Fri Mar 23 07:04:36 2007 From: ian.maxfield at AIMTC.NHS.UK (Ian Maxfield) Date: Fri, 23 Mar 2007 09:04:36 -0500 Subject: Query does not return map Message-ID: Hello all, I am trying to do a simple query within my application, whereby you click on a point and the details are sent back along with a map. Using mode=query when I click on a point the details are sent back but the map does not appear. The properties for the map give a png that does not appear to have been created by the cgi (and stored within the tmp folder). Ideally I would like the cgi to return the results to the main html that the application sits in, but at present no map is displayed using a new template html, or the current main html. Is the problem anything to do with savequery / querymap, or that I use the template pattern within the .map and don't use map_web_imagepath or map_web_urlpath values? I am sure that it is something something simple but I seem to spend hours getting nowhere. Any help would be greatly appreciated. Ian From tkirstine at JDBARNES.COM Fri Mar 23 08:00:25 2007 From: tkirstine at JDBARNES.COM (Travis Kirstine) Date: Fri, 23 Mar 2007 11:00:25 -0400 Subject: MapServer performance In-Reply-To: Message-ID: Antti, I will think you will find that if you create a mapserver spatial index files (.qix) for all shapefiles using the shptree utility performance will improve. Also if you have large shp files you may consider 1. chopping up the files into smaller tiles and referencing the files with a tiles with a index (use tile4ms) and/or 2. extracting classes from the shapefile based on attributes eg separating a roads layer to major, highways, local etc... Increasing performance of raster data has been written about quite a bit on the list but the basic idea is to create a series of rasters of varying resolutions and sizes that will be turned on and off using the MINSCALE MAXSCALE in you mapfile. For example if you have high resolution imagery (1m pixel resolution) you could create a reduced resolution tile or merge together a group of tiles with a resolution of 10m that would be viewed when the user is zoomed out. You may also consider chopping some of your large files to smaller tiles. The rasters should have overviews (created with gdaladdo) have internal tiles and referenced with a tile index (created with gdaltindex). See: http://mapserver.gis.umn.edu/docs/howto/raster_data/#raster-display-performa nce-tips Travis -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of antti siukola Sent: Friday, March 23, 2007 5:11 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer performance Hi! Thanks for the reply! My tiff's are from 15M to 10G tiff tiles (about 500M each tile) and depending on the map theres the one 15M tiff or from 2 to 3 of the 500M tiles displayed (I have couple of map apps running on the server). It doesn't seem to matter how big the tiff's are since the performance is the quite the same. I also have the .shx files for my shape's. The server doesn't get very much hit's since it's not an open for public application. I believe the average usage is about 1-10 users at the same time. Hope this helps! Antti S On 3/21/07, Romolo Manfredini wrote: > From: "antti siukola" : > > > Oh, yes. I'm on linux with mapserver 4.8.4 and php mapscript. The > > server is quite new and powerful with dual xeon and 1024M of memory. > > Data sources are mostly SHP-files and few TABs for vector data and > > labels. The actual maps are .tif images. I'm using tiled tiff's and > > low-res images on upper scales. > > > > SHP and tiff files are typically bad beast to manage expecially if they are > big shape and big tiff, also dependig on file system type you may have some > performance issues related to locking and caching. (1 GB ram with large > files is not so much) > Also, do you have spatial index on your files (.shx) ? > Spatial index improve performances a lot. > May you tell me the size of your files and how many of them are involved in > a single map ? > > Best Regards, > Romolo > > From ed at TOPOZONE.COM Fri Mar 23 08:30:05 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 23 Mar 2007 11:30:05 -0400 Subject: MapServer performance In-Reply-To: Message-ID: Antti - 1 GB of RAM is not a lot for dealing with large raster files. Could you describe your hard disk subsystem in detail? What kind of hardware are you using to store the TIFF images? - Ed -- Ed McNierney President and Chief Mapmaker Maps a la carte, Inc. / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com > From: antti siukola > Reply-To: antti siukola > Date: Fri, 23 Mar 2007 11:11:18 +0200 > To: > Subject: Re: [UMN_MAPSERVER-USERS] MapServer performance > > Hi! > > Thanks for the reply! > > My tiff's are from 15M to 10G tiff tiles (about 500M each tile) and > depending on the map theres the one 15M tiff or from 2 to 3 of the > 500M tiles displayed (I have couple of map apps running on the > server). It doesn't seem to matter how big the tiff's are since the > performance is the quite the same. I also have the .shx files for my > shape's. > > The server doesn't get very much hit's since it's not an open for > public application. I believe the average usage is about 1-10 users at > the same time. > > Hope this helps! > > Antti S > > On 3/21/07, Romolo Manfredini wrote: >> From: "antti siukola" : >> >>> Oh, yes. I'm on linux with mapserver 4.8.4 and php mapscript. The >>> server is quite new and powerful with dual xeon and 1024M of memory. >>> Data sources are mostly SHP-files and few TABs for vector data and >>> labels. The actual maps are .tif images. I'm using tiled tiff's and >>> low-res images on upper scales. >>> >> >> SHP and tiff files are typically bad beast to manage expecially if they are >> big shape and big tiff, also dependig on file system type you may have some >> performance issues related to locking and caching. (1 GB ram with large >> files is not so much) >> Also, do you have spatial index on your files (.shx) ? >> Spatial index improve performances a lot. >> May you tell me the size of your files and how many of them are involved in >> a single map ? >> >> Best Regards, >> Romolo >> >> From siukola.antti at GMAIL.COM Fri Mar 23 09:14:04 2007 From: siukola.antti at GMAIL.COM (antti siukola) Date: Fri, 23 Mar 2007 18:14:04 +0200 Subject: MapServer performance In-Reply-To: Message-ID: Hi! The tiff's are stored on a RAID stack on the same server and the filesystem is ext3. I don't have very detailed description to give since I'm not administrating the server or have ever even seen it :) Antti S On 3/23/07, Ed McNierney wrote: > Antti - > > 1 GB of RAM is not a lot for dealing with large raster files. Could you > describe your hard disk subsystem in detail? What kind of hardware are you > using to store the TIFF images? > > - Ed > > -- > Ed McNierney > President and Chief Mapmaker > Maps a la carte, Inc. / TopoZone.com > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: (978) 251-4242 > Fax: (978) 251-1396 > ed at topozone.com > > > From: antti siukola > > Reply-To: antti siukola > > Date: Fri, 23 Mar 2007 11:11:18 +0200 > > To: > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer performance > > > > Hi! > > > > Thanks for the reply! > > > > My tiff's are from 15M to 10G tiff tiles (about 500M each tile) and > > depending on the map theres the one 15M tiff or from 2 to 3 of the > > 500M tiles displayed (I have couple of map apps running on the > > server). It doesn't seem to matter how big the tiff's are since the > > performance is the quite the same. I also have the .shx files for my > > shape's. > > > > The server doesn't get very much hit's since it's not an open for > > public application. I believe the average usage is about 1-10 users at > > the same time. > > > > Hope this helps! > > > > Antti S > > > > On 3/21/07, Romolo Manfredini wrote: > >> From: "antti siukola" : > >> > >>> Oh, yes. I'm on linux with mapserver 4.8.4 and php mapscript. The > >>> server is quite new and powerful with dual xeon and 1024M of memory. > >>> Data sources are mostly SHP-files and few TABs for vector data and > >>> labels. The actual maps are .tif images. I'm using tiled tiff's and > >>> low-res images on upper scales. > >>> > >> > >> SHP and tiff files are typically bad beast to manage expecially if they are > >> big shape and big tiff, also dependig on file system type you may have some > >> performance issues related to locking and caching. (1 GB ram with large > >> files is not so much) > >> Also, do you have spatial index on your files (.shx) ? > >> Spatial index improve performances a lot. > >> May you tell me the size of your files and how many of them are involved in > >> a single map ? > >> > >> Best Regards, > >> Romolo > >> > >> > > From ed at TOPOZONE.COM Fri Mar 23 09:33:49 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 23 Mar 2007 12:33:49 -0400 Subject: MapServer performance In-Reply-To: Message-ID: Antti - Well, then that would be a good thing to learn about if you want to understand your system performance. "RAID stack" is a pretty generic description, covering several different disk storage strategies, and covering both IDE and SCSI drives with various interface channels. Reading from a parallel IDE 5,400 RPM RAID 1 system can be several times slower than reading from a SAS 15K RPM RAID 5 array! If you're going to optimize performance, find out more about your disk subsystem. Your hard disks are the slowest things in your computer. If you want to speed things up, it makes sense to see whether the slowest hardware in your system is a bottleneck before you start looking elsewhere. - Ed -- Ed McNierney President and Chief Mapmaker Maps a la carte, Inc. / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com > From: antti siukola > Date: Fri, 23 Mar 2007 18:14:04 +0200 > To: Ed McNierney > Cc: > Subject: Re: [UMN_MAPSERVER-USERS] MapServer performance > > Hi! > > The tiff's are stored on a RAID stack on the same server and the > filesystem is ext3. I don't have very detailed description to give > since I'm not administrating the server or have ever even seen it :) > > Antti S > > On 3/23/07, Ed McNierney wrote: >> Antti - >> >> 1 GB of RAM is not a lot for dealing with large raster files. Could you >> describe your hard disk subsystem in detail? What kind of hardware are you >> using to store the TIFF images? >> >> - Ed >> >> -- >> Ed McNierney >> President and Chief Mapmaker >> Maps a la carte, Inc. / TopoZone.com >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> Phone: (978) 251-4242 >> Fax: (978) 251-1396 >> ed at topozone.com >> >>> From: antti siukola >>> Reply-To: antti siukola >>> Date: Fri, 23 Mar 2007 11:11:18 +0200 >>> To: >>> Subject: Re: [UMN_MAPSERVER-USERS] MapServer performance >>> >>> Hi! >>> >>> Thanks for the reply! >>> >>> My tiff's are from 15M to 10G tiff tiles (about 500M each tile) and >>> depending on the map theres the one 15M tiff or from 2 to 3 of the >>> 500M tiles displayed (I have couple of map apps running on the >>> server). It doesn't seem to matter how big the tiff's are since the >>> performance is the quite the same. I also have the .shx files for my >>> shape's. >>> >>> The server doesn't get very much hit's since it's not an open for >>> public application. I believe the average usage is about 1-10 users at >>> the same time. >>> >>> Hope this helps! >>> >>> Antti S >>> >>> On 3/21/07, Romolo Manfredini wrote: >>>> From: "antti siukola" : >>>> >>>>> Oh, yes. I'm on linux with mapserver 4.8.4 and php mapscript. The >>>>> server is quite new and powerful with dual xeon and 1024M of memory. >>>>> Data sources are mostly SHP-files and few TABs for vector data and >>>>> labels. The actual maps are .tif images. I'm using tiled tiff's and >>>>> low-res images on upper scales. >>>>> >>>> >>>> SHP and tiff files are typically bad beast to manage expecially if they are >>>> big shape and big tiff, also dependig on file system type you may have some >>>> performance issues related to locking and caching. (1 GB ram with large >>>> files is not so much) >>>> Also, do you have spatial index on your files (.shx) ? >>>> Spatial index improve performances a lot. >>>> May you tell me the size of your files and how many of them are involved in >>>> a single map ? >>>> >>>> Best Regards, >>>> Romolo >>>> >>>> >> >> From siukola.antti at GMAIL.COM Fri Mar 23 10:15:31 2007 From: siukola.antti at GMAIL.COM (antti siukola) Date: Fri, 23 Mar 2007 19:15:31 +0200 Subject: MapServer performance In-Reply-To: Message-ID: Ed Of course. I understand. Unfortunately I am forced to develop these applications in an environment where I have no control over what hardware I have and can't do nothing about it. So, if there's any just-works kind of things I can do I would appreciate it. However thank you very much for your time and effort. Cheers! Antti S On 3/23/07, Ed McNierney wrote: > Antti - > > Well, then that would be a good thing to learn about if you want to > understand your system performance. "RAID stack" is a pretty generic > description, covering several different disk storage strategies, and > covering both IDE and SCSI drives with various interface channels. Reading > from a parallel IDE 5,400 RPM RAID 1 system can be several times slower than > reading from a SAS 15K RPM RAID 5 array! > > If you're going to optimize performance, find out more about your disk > subsystem. Your hard disks are the slowest things in your computer. If you > want to speed things up, it makes sense to see whether the slowest hardware > in your system is a bottleneck before you start looking elsewhere. > > - Ed > > -- > Ed McNierney > President and Chief Mapmaker > Maps a la carte, Inc. / TopoZone.com > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: (978) 251-4242 > Fax: (978) 251-1396 > ed at topozone.com > > > From: antti siukola > > Date: Fri, 23 Mar 2007 18:14:04 +0200 > > To: Ed McNierney > > Cc: > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer performance > > > > Hi! > > > > The tiff's are stored on a RAID stack on the same server and the > > filesystem is ext3. I don't have very detailed description to give > > since I'm not administrating the server or have ever even seen it :) > > > > Antti S > > > > On 3/23/07, Ed McNierney wrote: > >> Antti - > >> > >> 1 GB of RAM is not a lot for dealing with large raster files. Could you > >> describe your hard disk subsystem in detail? What kind of hardware are you > >> using to store the TIFF images? > >> > >> - Ed > >> > >> -- > >> Ed McNierney > >> President and Chief Mapmaker > >> Maps a la carte, Inc. / TopoZone.com > >> 73 Princeton Street, Suite 305 > >> North Chelmsford, MA 01863 > >> Phone: (978) 251-4242 > >> Fax: (978) 251-1396 > >> ed at topozone.com > >> > >>> From: antti siukola > >>> Reply-To: antti siukola > >>> Date: Fri, 23 Mar 2007 11:11:18 +0200 > >>> To: > >>> Subject: Re: [UMN_MAPSERVER-USERS] MapServer performance > >>> > >>> Hi! > >>> > >>> Thanks for the reply! > >>> > >>> My tiff's are from 15M to 10G tiff tiles (about 500M each tile) and > >>> depending on the map theres the one 15M tiff or from 2 to 3 of the > >>> 500M tiles displayed (I have couple of map apps running on the > >>> server). It doesn't seem to matter how big the tiff's are since the > >>> performance is the quite the same. I also have the .shx files for my > >>> shape's. > >>> > >>> The server doesn't get very much hit's since it's not an open for > >>> public application. I believe the average usage is about 1-10 users at > >>> the same time. > >>> > >>> Hope this helps! > >>> > >>> Antti S > >>> > >>> On 3/21/07, Romolo Manfredini wrote: > >>>> From: "antti siukola" : > >>>> > >>>>> Oh, yes. I'm on linux with mapserver 4.8.4 and php mapscript. The > >>>>> server is quite new and powerful with dual xeon and 1024M of memory. > >>>>> Data sources are mostly SHP-files and few TABs for vector data and > >>>>> labels. The actual maps are .tif images. I'm using tiled tiff's and > >>>>> low-res images on upper scales. > >>>>> > >>>> > >>>> SHP and tiff files are typically bad beast to manage expecially if they are > >>>> big shape and big tiff, also dependig on file system type you may have some > >>>> performance issues related to locking and caching. (1 GB ram with large > >>>> files is not so much) > >>>> Also, do you have spatial index on your files (.shx) ? > >>>> Spatial index improve performances a lot. > >>>> May you tell me the size of your files and how many of them are involved in > >>>> a single map ? > >>>> > >>>> Best Regards, > >>>> Romolo > >>>> > >>>> > >> > >> > > From samnyoung at HOTMAIL.COM Fri Mar 23 11:00:37 2007 From: samnyoung at HOTMAIL.COM (Sam Young) Date: Fri, 23 Mar 2007 10:00:37 -0800 Subject: dbox question In-Reply-To: Message-ID: Rich- Thanks for the help. The good folks at htmlx.com pointed out that my font lists weren't on the server and that solved the problem. Sam _________________________________________________________________ 5.5%* 30 year fixed mortgage rate. Good credit refinance. Up to 5 free quotes - *Terms https://www2.nextag.com/goto.jsp?product=100000035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h2a5d&s=4056&p=5117&disc=y&vers=910 From ed at TOPOZONE.COM Fri Mar 23 11:40:27 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 23 Mar 2007 14:40:27 -0400 Subject: MapServer performance In-Reply-To: Message-ID: Antti - Even if you don't have control over it, you should still know what it is. If you KNOW you're forced to live with a hideously slow disk system, then you don't need to waste your time trying to optimize the rest of the application. If you know you have a really high-performing disk system for this application, you can focus on performance improvements in other areas and expect them to have some visible effect. - Ed > From: antti siukola > Date: Fri, 23 Mar 2007 19:15:31 +0200 > To: Ed McNierney > Cc: > Subject: Re: [UMN_MAPSERVER-USERS] MapServer performance > > Ed > > Of course. I understand. Unfortunately I am forced to develop these > applications in an environment where I have no control over what > hardware I have and can't do nothing about it. So, if there's any > just-works kind of things I can do I would appreciate it. However > thank you very much for your time and effort. > > Cheers! > > Antti S > > > On 3/23/07, Ed McNierney wrote: >> Antti - >> >> Well, then that would be a good thing to learn about if you want to >> understand your system performance. "RAID stack" is a pretty generic >> description, covering several different disk storage strategies, and >> covering both IDE and SCSI drives with various interface channels. Reading >> from a parallel IDE 5,400 RPM RAID 1 system can be several times slower than >> reading from a SAS 15K RPM RAID 5 array! >> >> If you're going to optimize performance, find out more about your disk >> subsystem. Your hard disks are the slowest things in your computer. If you >> want to speed things up, it makes sense to see whether the slowest hardware >> in your system is a bottleneck before you start looking elsewhere. >> >> - Ed >> >> -- >> Ed McNierney >> President and Chief Mapmaker >> Maps a la carte, Inc. / TopoZone.com >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> Phone: (978) 251-4242 >> Fax: (978) 251-1396 >> ed at topozone.com >> >>> From: antti siukola >>> Date: Fri, 23 Mar 2007 18:14:04 +0200 >>> To: Ed McNierney >>> Cc: >>> Subject: Re: [UMN_MAPSERVER-USERS] MapServer performance >>> >>> Hi! >>> >>> The tiff's are stored on a RAID stack on the same server and the >>> filesystem is ext3. I don't have very detailed description to give >>> since I'm not administrating the server or have ever even seen it :) >>> >>> Antti S >>> >>> On 3/23/07, Ed McNierney wrote: >>>> Antti - >>>> >>>> 1 GB of RAM is not a lot for dealing with large raster files. Could you >>>> describe your hard disk subsystem in detail? What kind of hardware are you >>>> using to store the TIFF images? >>>> >>>> - Ed >>>> >>>> -- >>>> Ed McNierney >>>> President and Chief Mapmaker >>>> Maps a la carte, Inc. / TopoZone.com >>>> 73 Princeton Street, Suite 305 >>>> North Chelmsford, MA 01863 >>>> Phone: (978) 251-4242 >>>> Fax: (978) 251-1396 >>>> ed at topozone.com >>>> >>>>> From: antti siukola >>>>> Reply-To: antti siukola >>>>> Date: Fri, 23 Mar 2007 11:11:18 +0200 >>>>> To: >>>>> Subject: Re: [UMN_MAPSERVER-USERS] MapServer performance >>>>> >>>>> Hi! >>>>> >>>>> Thanks for the reply! >>>>> >>>>> My tiff's are from 15M to 10G tiff tiles (about 500M each tile) and >>>>> depending on the map theres the one 15M tiff or from 2 to 3 of the >>>>> 500M tiles displayed (I have couple of map apps running on the >>>>> server). It doesn't seem to matter how big the tiff's are since the >>>>> performance is the quite the same. I also have the .shx files for my >>>>> shape's. >>>>> >>>>> The server doesn't get very much hit's since it's not an open for >>>>> public application. I believe the average usage is about 1-10 users at >>>>> the same time. >>>>> >>>>> Hope this helps! >>>>> >>>>> Antti S >>>>> >>>>> On 3/21/07, Romolo Manfredini wrote: >>>>>> From: "antti siukola" : >>>>>> >>>>>>> Oh, yes. I'm on linux with mapserver 4.8.4 and php mapscript. The >>>>>>> server is quite new and powerful with dual xeon and 1024M of memory. >>>>>>> Data sources are mostly SHP-files and few TABs for vector data and >>>>>>> labels. The actual maps are .tif images. I'm using tiled tiff's and >>>>>>> low-res images on upper scales. >>>>>>> >>>>>> >>>>>> SHP and tiff files are typically bad beast to manage expecially if they >>>>>> are >>>>>> big shape and big tiff, also dependig on file system type you may have >>>>>> some >>>>>> performance issues related to locking and caching. (1 GB ram with large >>>>>> files is not so much) >>>>>> Also, do you have spatial index on your files (.shx) ? >>>>>> Spatial index improve performances a lot. >>>>>> May you tell me the size of your files and how many of them are involved >>>>>> in >>>>>> a single map ? >>>>>> >>>>>> Best Regards, >>>>>> Romolo >>>>>> >>>>>> >>>> >>>> >> >> From ezenaide at GMAIL.COM Fri Mar 23 11:45:52 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Fri, 23 Mar 2007 15:45:52 -0300 Subject: linebreak on NAME string Message-ID: hi list, is it possible to insert linebreaks on NAME string? i'm having some trouble to manage my legend because names are too big. other solution would be setting a maximum width to the legend img, but i think it would mess with its resolution. thanks. -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabio at GEOJA.COM.BR Fri Mar 23 12:09:41 2007 From: fabio at GEOJA.COM.BR (Fabio Leme de Almeida) Date: Fri, 23 Mar 2007 16:09:41 -0300 Subject: mapObj.scale Message-ID: Hello All, I?m looking at Mapserver mapscript API. The mapObj have a propriety called ?scale?. At mapscript API manual, we have the following: ?scale : float The nominal map scale. A value of 25000 means 1:25000 scale.? My question: Supposing the map is scaled at 1:5000. If I set initially the value to 10000, it means 1:10000 scale. What?ll be drawn ? A Map with full extent ?? Other question: Defining the scale with this propriety (supposing scale = 2000 and map scale = 10000), when redraw the map, what?ll be drawn ? Plus one more question: Can I set the mapObj.scale value on the fly ? If I do this, what?ll occur ? I?m using .Net C# with mapscript 4.10.0 Thank?s, Fabio Leme S?o Paulo - Brazil Fabio Leme de Almeida GeoJ? Mapas Digitais http://www.geoja.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: From epk.lists at GMAIL.COM Fri Mar 23 12:11:58 2007 From: epk.lists at GMAIL.COM (Eduardo Patto Kanegae) Date: Fri, 23 Mar 2007 16:11:58 -0300 Subject: linebreak on NAME string In-Reply-To: <7af310f80703231145k4d9d1c0br498fe1139da51ce@mail.gmail.com> Message-ID: Have you tried HTML legends? http://mapserver.gis.umn.edu/docs/howto/html_legend best Eduardo Patto Kanegae On 3/23/07, Eduardo Zenaide wrote: > hi list, > > is it possible to insert linebreaks on NAME string? i'm having some trouble > to manage my legend because names are too big. other solution would be > setting a maximum width to the legend img, but i think it would mess with > its resolution. > > thanks. > > -- > Eduardo Zenaide -- From dmorissette at MAPGEARS.COM Fri Mar 23 12:43:19 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 23 Mar 2007 15:43:19 -0400 Subject: processlegendtemplate() In-Reply-To: Message-ID: I had a look in the code, and it seems that ProcessLegendTemplate() doesn't make much use of the parameters array. You could possibly file a enhancement bug about this. Daniel Harri Kiiskinen wrote: > Hello all, > > I'm having a problem with the processlegendtemplate(array) in PHP/Mapcript. > According to the documentation, it should accept a similar parameter array > as processtemplate(arra?, bool). However, it seems, that while > processtemplate() does do the replacements from the array, > processlegendtemplate() does not. Example: > > In php: > $template_params["program"]=$_SERVER['PHP_SELF']; > echo $map->processtemplate($template_params,MS_TRUE); > $ltemplate_params["lprogram"]=$_SERVER['PHP_SELF']; > echo $map->processlegendtemplate($ltemplate_params); > > In template_map: > > > In template_legend: > [leg_header_html] > > [/leg_header_html] > > In resulting html, for the map template: > > > and for the legend template: > > > Might be I have misunderstood the documentation, but at least the > PHP/Mapscript documentation indicates, that this should work. > > Greetings, > > Harri K. -- Daniel Morissette http://www.mapgears.com/ From romoloman at HOTMAIL.COM Fri Mar 23 13:07:55 2007 From: romoloman at HOTMAIL.COM (Romolo Manfredini) Date: Fri, 23 Mar 2007 21:07:55 +0100 Subject: MapServer performance Message-ID: Ed wrote: > Antti - > > Even if you don't have control over it, you should still know what it is. > If you KNOW you're forced to live with a hideously slow disk system, then > you don't need to waste your time trying to optimize the rest of the > application. If you know you have a really high-performing disk system for > this application, you can focus on performance improvements in other areas > and expect them to have some visible effect. > I fully agree with Ed. Antti you should know server performance, also if you have no control on hardware, if the problem is the hardware then you should suggest to limit data size to fit the hardware. (maybe reducing the raster size). 15GB Tiff with 1GB Ram and maybe a slow disk subsystem are something that cannot be improved with application optimization but only with a deep hardware change. With 1GB and 15GB file you have really no hope to be able to read from cache. If you have a shell access on that server try to look to memory and swap file usage (free), if an application get paged its slowdown is normal. If you have 10 client connected probably you have 2 or more apache child serving them, each child allocating memory for file reading and rendering. When physical memory ends one of the child get paged so on the next request it we be reloaded and the other paged. This obvioulsy slow down serving requests. This explanation is a simplified version of what is going on with paging and virtual memory but from a practical point of view is not so far from reality. Best Regards, Romolo From wer at CSTONE.NET Fri Mar 23 20:13:50 2007 From: wer at CSTONE.NET (William Reid) Date: Fri, 23 Mar 2007 23:13:50 -0400 Subject: geotiff problem since update Message-ID: Since upgrading my rasters have left the map. They are there, but the scale is wrong and they are waaaaay off the map. I think something changed with the way projections are handled since the upgrade. The TIF takes up the entire extents here. EXTENTS: 188.403478037 179.62236063 1273.20347804 993.222360634 188.406478037 Layers = 4 SCALE: 533894978.163 Where it used to live here. EXTENTS: -78.924 37.78625 -78.246 38.29475 -78.921 Layers = 4 SCALE: 333684.36135 The image itself is readable by gdal. Driver: GTiff/GeoTIFF Size is 1600, 1200 Coordinate System is `' (Is this a problem?) GCP Projection = 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]] GCP[ 0]: Id=, Info= (0,0) -> (-78.7842,38.1912,0) GCP[ 1]: Id=, Info= (0,1200) -> (-78.7824,37.7893,0) GCP[ 2]: Id=, Info= (1600,0) -> (-78.118,38.1912,0) GCP[ 3]: Id=, Info= (1600,1200) -> (-78.1198,37.7893,0) Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 1200.0) Upper Right ( 1600.0, 0.0) Lower Right ( 1600.0, 1200.0) Center ( 800.0, 600.0) Band 1 Block=1600x8 Type=Byte, ColorInterp=Red Band 2 Block=1600x8 Type=Byte, ColorInterp=Green Band 3 Block=1600x8 Type=Byte, ColorInterp=Blue The map file has only this for the layer. LAYER NAME "FF_2623" DATA "geotiff/Carters.tif" TYPE RASTER STATUS ON debug on END I have also tried this. LAYER NAME "FF_Piny" TYPE RASTER STATUS off DEBUG on PROJECTION "proj=latlong" "ellps=WGS84" "no_defs" END TRANSPARENCY 30 OFFSITE 255 255 255 DATA "geotiff/Carters2.tif" END I can't find what changed since my upgrade and I am at my wits end. Mapservers debug gives me nothing. It has been working so long that I am having to relearn my mapping skills. Can anyone out there point out the obvious mistake I must have been making all along? Best wishes, -=Bill Debian Etch...... Versions: ii cgi-mapserver 4.10.0-5+etch1 cgi module of mapserver ii php5-mapscript 4.10.0-5+etch1 module for php5-cgi to use mapserver ii cgi-mapserver 4.10.0-5+etch1 cgi module of mapserver ii gdal-bin 1.3.2-4 Geospatial Data Abstraction Library - Utilit ii libgdal1-1.3.2 1.3.2-4 Geospatial Data Abstraction Library Old Versions: libgdal1 1.2.6-1 Geospatial Data Abstraction Library php4-mapscript_4.8.1 cgi-mapserver_4.8.1- mapserver-bin_4.8.1-0 From warmerdam at POBOX.COM Fri Mar 23 21:21:37 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 24 Mar 2007 00:21:37 -0400 Subject: geotiff problem since update In-Reply-To: <4604976E.9000102@cstone.net> Message-ID: William Reid wrote: > Since upgrading my rasters have left the map. ... > The image itself is readable by gdal. > > Driver: GTiff/GeoTIFF > Size is 1600, 1200 > Coordinate System is `' (Is this a problem?) > GCP Projection = 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]] > > GCP[ 0]: Id=, Info= > (0,0) -> (-78.7842,38.1912,0) > GCP[ 1]: Id=, Info= > (0,1200) -> (-78.7824,37.7893,0) > GCP[ 2]: Id=, Info= > (1600,0) -> (-78.118,38.1912,0) > GCP[ 3]: Id=, Info= > (1600,1200) -> (-78.1198,37.7893,0) Bill, It was my understanding that MapServer has never supported GDAL images with only GCPs for control information. So I don't know how this used to work. Is it possible you have a .wld file associated with this GeoTIFF? It may be that the internal geotiff info is now taking precidence over the .wld. If that is the case, you can do an operation like: gdal_translate -co PROFILE=BASELINE old.tif new.tif mv new.tif old.tif to strip away the geotiff information from a geotiff 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 | President OSGeo, http://osgeo.org From wer at CSTONE.NET Fri Mar 23 20:53:08 2007 From: wer at CSTONE.NET (William Reid) Date: Fri, 23 Mar 2007 23:53:08 -0400 Subject: geotiff problem since update In-Reply-To: <4604A751.3090808@pobox.com> Message-ID: Frank Warmerdam wrote: > William Reid wrote: > >> Since upgrading my rasters have left the map. > > > ... > >> The image itself is readable by gdal. >> >> Driver: GTiff/GeoTIFF >> Size is 1600, 1200 >> Coordinate System is `' (Is this a problem?) >> GCP Projection = 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]] >> >> GCP[ 0]: Id=, Info= >> (0,0) -> (-78.7842,38.1912,0) >> GCP[ 1]: Id=, Info= >> (0,1200) -> (-78.7824,37.7893,0) >> GCP[ 2]: Id=, Info= >> (1600,0) -> (-78.118,38.1912,0) >> GCP[ 3]: Id=, Info= >> (1600,1200) -> (-78.1198,37.7893,0) > > > Bill, > > It was my understanding that MapServer has never supported GDAL > images with only GCPs for control information. So I don't know how > this used to work. I am trying to digest this as I am not super familiar with all the various control information. > > Is it possible you have a .wld file associated with this GeoTIFF? It > may be that the internal geotiff info is now taking precidence over the > .wld. > Frank, You are tireless. Thank you for the response. I have a TAB file with the Geotiff (sorry I didn't mention this). If I don't let gdal see it then the output from gdalinfo looks like this. Driver: GTiff/GeoTIFF Size is 1600, 1200 Coordinate System is `' Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 1200.0) Upper Right ( 1600.0, 0.0) Lower Right ( 1600.0, 1200.0) Center ( 800.0, 600.0) Band 1 Block=1600x8 Type=Byte, ColorInterp=Red Band 2 Block=1600x8 Type=Byte, ColorInterp=Green Band 3 Block=1600x8 Type=Byte, ColorInterp=Blue This is also the same output I get after using your gdaltranslate suggestion. I may not have fully understood the PROFILE=BASELINE portion of the command. The TAB file has this. (originates from EDX software for doing RF predictions, so if I find the problem I would like to help clue them in as well) !table !version 300 !charset WindowsLatin1 Definition Table File "Carters2.tif" Type "RASTER" (-78.784164,38.19123) (0,0) Label "", (-78.782352,37.789336) (0,1200) Label "", (-78.117974,38.19123) (1600,0) Label "", (-78.119787,37.789336) (1600,1200) Label "" CoordSys Earth Projection 1, 104 Units "degree" Finally, Earlier in the week I attempted to create a simple .wld file to fix the situation but it didn't seem to help (I no longer have the attempt but I recall it being pretty easy). I am off to read about GCP. -=Bill > If that is the case, you can do an operation like: > > gdal_translate -co PROFILE=BASELINE old.tif new.tif > mv new.tif old.tif > > to strip away the geotiff information from a geotiff file. > > Best regards, From warmerdam at POBOX.COM Fri Mar 23 22:39:38 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 24 Mar 2007 01:39:38 -0400 Subject: geotiff problem since update In-Reply-To: <4604A0A4.2090002@cstone.net> Message-ID: William Reid wrote: > The TAB file has this. (originates from EDX software for doing RF > predictions, so if I find the problem I would like to help clue them in > as well) > > !table > !version 300 > !charset WindowsLatin1 > > Definition Table > File "Carters2.tif" > Type "RASTER" > (-78.784164,38.19123) (0,0) Label "", > (-78.782352,37.789336) (0,1200) Label "", > (-78.117974,38.19123) (1600,0) Label "", > (-78.119787,37.789336) (1600,1200) Label "" > CoordSys Earth Projection 1, 104 > Units "degree" William, Ah! That could explain it. The handling of TAB files for georeferencing of TIFFs has no doubt changed. At the point where gdalinfo reports the GCPs associated with your image, do the following to "warp to north up": gdalwarp your.tif your_simple.tif In fact your image is already *almost* north up so this shouldn't change it much, but it will turn it into a geotiff with simple "world file like" information. The output file should work fine with 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 | President OSGeo, http://osgeo.org From wer at CSTONE.NET Fri Mar 23 21:48:06 2007 From: wer at CSTONE.NET (William Reid) Date: Sat, 24 Mar 2007 00:48:06 -0400 Subject: geotiff problem since update In-Reply-To: <4604B99A.8090907@pobox.com> Message-ID: Frank. You are a gentlemen and a scholar! Thank you so much for all you do! -=Bill Frank Warmerdam wrote: > William Reid wrote: > >> The TAB file has this. (originates from EDX software for doing RF >> predictions, so if I find the problem I would like to help clue them >> in as well) >> >> !table >> !version 300 >> !charset WindowsLatin1 >> >> Definition Table >> File "Carters2.tif" >> Type "RASTER" >> (-78.784164,38.19123) (0,0) Label "", >> (-78.782352,37.789336) (0,1200) Label "", >> (-78.117974,38.19123) (1600,0) Label "", >> (-78.119787,37.789336) (1600,1200) Label "" >> CoordSys Earth Projection 1, 104 >> Units "degree" > > > William, > > Ah! That could explain it. The handling of TAB files for georeferencing > of TIFFs has no doubt changed. At the point where gdalinfo reports the > GCPs associated with your image, do the following to "warp to north up": > > gdalwarp your.tif your_simple.tif > > In fact your image is already *almost* north up so this shouldn't change > it much, but it will turn it into a geotiff with simple "world file like" > information. The output file should work fine with mapserver. > > Best regards, From jasone at ROGERS.COM Fri Mar 23 21:45:19 2007 From: jasone at ROGERS.COM (Jason Elson) Date: Fri, 23 Mar 2007 23:45:19 -0500 Subject: loadMap(): Web application error. CGI variable "map" is not set. Message-ID: Hello all: Building my first map and I can't get passed an error I keep getting. "(loadMap (): Web application error. CGI variable "map" is not set.)" THe first html page loads my map image correctly after starting mapserver but when I click on the image to zoom in, etc, i get the error. Any thoughts? Map file...(html page follows) # Map file created from QGIS project file C:/wwwroot/map/canada map.qgs # Edit this file to customize for your map interface MAP SIZE 600 457 EXTENT -145.954 26.8972 -47.2402 97.3579 UNITS dd IMAGECOLOR 255 255 255 SCALEBAR STATUS on UNITS KILOMETERS INTERVALS 3 TRANSPARENT TRUE OUTLINECOLOR 0 0 0 END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END #Reference Map REFERENCE STATUS ON IMAGE reference.png EXTENT -180 -90 180 90 SIZE 241 121 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END WEB IMAGEPATH "\ms4w\tmp\ms_tmp\" IMAGEURL "/ms_tmp/" TEMPLATE "template.html" END LAYER NAME 'LANDSAT' TYPE RASTER DATA 'C:/wwwroot/map/canada.tif' METADATA 'wms_title' 'LANDSAT' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' '' END END LAYER NAME 'provinces' TYPE POLYGON DATA 'C:/wwwroot/map/province_dd.shp' METADATA 'wms_title' 'Provincal Boundaries' END STATUS DEFAULT TRANSPARENCY 35 PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END CLASSITEM 'NAME_ENG' CLASS NAME 'Provincial boundary of Alberta' EXPRESSION 'Alberta' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 170 170 127 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Provincial boundary of British Columbia' EXPRESSION 'British Columbia' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 0 170 0 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Provincial boundary of Manitoba' EXPRESSION 'Manitoba' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 85 85 127 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Provincial boundary of New Brunswick' EXPRESSION 'New Brunswick' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 255 255 127 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Provincial boundary of Newfoundland' EXPRESSION 'Newfoundland' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 0 0 127 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Territorial boundary of Northwest Territories' EXPRESSION 'Northwest Territories' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 118 61 220 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Provincial boundary of Nova Scotia' EXPRESSION 'Nova Scotia' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 85 255 255 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Territorial boundary of Nunavut' EXPRESSION 'Nunavut' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 0 85 0 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Provincial boundary of Ontario' EXPRESSION 'Ontario' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 232 0 0 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Provincial boundary of Prince Edward Island' EXPRESSION 'Prince Edward Island' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 215 7 96 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Provincial boundary of Quebec' EXPRESSION 'Quebec' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 255 0 255 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Provincial boundary of Saskatchewan' EXPRESSION 'Saskatchewan' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 170 150 50 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Territorial boundary of Yukon Territory' EXPRESSION 'Yukon Territory' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 70 150 177 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END END LAYER NAME 'province_labels' TYPE ANNOTATION STATUS default DATA province_dd.shp LABELITEM 'NAME_ENG' LABELMAXSCALE 2250000 CLASS LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 POSITION LR MINFEATURESIZE 10 MINDISTANCE 10 END # End for label END # end for class PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END # End for projection END # End for layer LAYER NAME 'Large Water' TYPE POLYGON DATA 'C:/wwwroot/map/big_water.shp' METADATA 'wms_title' 'Large Water' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END LABELITEM 'NAME' LABELMAXSCALE 250000 CLASS NAME "Large Lakes" STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 0 0 255 COLOR 85 170 225 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END END LAYER NAME 'Small Water' TYPE POLYGON DATA 'C:/wwwroot/Map/small_water.shp' METADATA 'wms_title' 'Small Water' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' '' END LABELITEM 'NAME' LABELMAXSCALE 250000 CLASS NAME "Small Lakes" STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 0 0 255 COLOR 85 170 255 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END END LAYER NAME 'Roads' TYPE LINE DATA 'C:/wwwroot/map/mjrroads_1-3.shp' METADATA 'wms_title' 'Roads' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END CLASS NAME "Roads" STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 170 94 58 COLOR 0 0 0 END END END LAYER NAME 'road_labels' TYPE ANNOTATION STATUS OFF DATA mjrroads_1-3.shp LABELITEM 'NAME' CLASS LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 POSITION LR END # End for label END # end for class PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END # End for projection END # End for layer LAYER NAME 'capitals' TYPE POINT DATA 'C:/wwwroot/map/capitals_cities.shp' METADATA 'wms_title' 'Provincial Capitals' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END CLASS NAME "Provincial Capitals" STYLE SYMBOL 'CIRCLE' SIZE 6 OUTLINECOLOR 0 0 0 COLOR 255 0 0 END END END LAYER NAME 'capitals_labels' TYPE ANNOTATION STATUS OFF DATA capitals_cities.shp LABELITEM 'NAME' LABELMAXSCALE 2000000 CLASS LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 POSITION LR END # End for label END # end for class PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END # End for projection END # End for layer LAYER NAME 'Major Cities' TYPE POINT DATA 'C:/wwwroot/map/major_cities.shp' METADATA 'wms_title' 'Major Cities' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END CLASS NAME "Major Cities" STYLE SYMBOL 'CIRCLE' SIZE 6 OUTLINECOLOR 0 0 0 COLOR 255 255 0 END END END LAYER NAME 'major_cities_labels' TYPE ANNOTATION STATUS OFF DATA major_cities.shp LABELITEM 'NAME' LABELMAXSCALE 2000000 CLASS LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 POSITION LR END # End for label END # end for class PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END # End for projection END # End for layer LAYER NAME 'other_sites' TYPE POINT DATA 'C:/wwwroot/map/other_sites.shp' METADATA 'wms_title' 'Other Sites to See' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END CLASS NAME "Other Sites to See" STYLE SYMBOL 'CIRCLE' SIZE 6 OUTLINECOLOR 0 0 0 COLOR 255 170 0 END END END LAYER NAME 'other_sites_labels' TYPE ANNOTATION STATUS OFF DATA other_sites.shp LABELITEM 'OtherSites' LABELMAXSCALE 2000000 CLASS LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 POSITION LR END # End for label END # end for class PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END # End for projection END # End for layer LAYER NAME 'sites' TYPE POINT DATA 'C:/wwwroot/map/sites.shp' METADATA 'wms_title' 'National Historic Sites of Canada' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END CLASS NAME "National Historic Sites of Canada" STYLE SYMBOL 'CIRCLE' SIZE 6 OUTLINECOLOR 0 0 0 COLOR 170 0 127 END END END LAYER NAME 'sites_labels' TYPE ANNOTATION STATUS OFF DATA sites.shp LABELITEM 'NationalHi' LABELMAXSCALE 2000000 CLASS LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 POSITION LR END # End for label END # end for class PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END # End for projection END # End for layer #Circle symbol SYMBOL NAME 'CIRCLE' TYPE ellipse FILLED true POINTS 1 1 END END END (end of map file) begin html page... Road Map of Canada

Road Map of Canada


Zoom In Re-center Zoom out Zoom Size

Layers Labels
Roads Label Roads
Major Cities Label Major Cities
Provincial Capitals Label Capital Cities
National Historic Sites Label Historic Sites
More sites to see Label other sites
Large Water
Small Water
LANDSAT image


Scale Help
-------------- next part -------------- # Map file created from QGIS project file C:/wwwroot/map/canada map.qgs # Edit this file to customize for your map interface MAP SIZE 600 457 EXTENT -145.954 26.8972 -47.2402 97.3579 UNITS dd IMAGECOLOR 255 255 255 SCALEBAR STATUS on UNITS KILOMETERS INTERVALS 3 TRANSPARENT TRUE OUTLINECOLOR 0 0 0 END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END #Reference Map REFERENCE STATUS ON IMAGE reference.png EXTENT -180 -90 180 90 SIZE 241 121 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END WEB IMAGEPATH "\ms4w\tmp\ms_tmp\" IMAGEURL "/ms_tmp/" TEMPLATE "template.html" END LAYER NAME 'LANDSAT' TYPE RASTER DATA 'C:/wwwroot/map/canada.tif' METADATA 'wms_title' 'LANDSAT' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' '' END END LAYER NAME 'provinces' TYPE POLYGON DATA 'C:/wwwroot/map/province_dd.shp' METADATA 'wms_title' 'Provincal Boundaries' END STATUS DEFAULT TRANSPARENCY 35 PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END CLASSITEM 'NAME_ENG' CLASS NAME 'Provincial boundary of Alberta' EXPRESSION 'Alberta' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 170 170 127 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Provincial boundary of British Columbia' EXPRESSION 'British Columbia' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 0 170 0 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Provincial boundary of Manitoba' EXPRESSION 'Manitoba' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 85 85 127 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Provincial boundary of New Brunswick' EXPRESSION 'New Brunswick' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 255 255 127 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Provincial boundary of Newfoundland' EXPRESSION 'Newfoundland' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 0 0 127 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Territorial boundary of Northwest Territories' EXPRESSION 'Northwest Territories' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 118 61 220 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Provincial boundary of Nova Scotia' EXPRESSION 'Nova Scotia' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 85 255 255 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Territorial boundary of Nunavut' EXPRESSION 'Nunavut' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 0 85 0 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Provincial boundary of Ontario' EXPRESSION 'Ontario' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 232 0 0 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Provincial boundary of Prince Edward Island' EXPRESSION 'Prince Edward Island' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 215 7 96 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Provincial boundary of Quebec' EXPRESSION 'Quebec' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 255 0 255 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Provincial boundary of Saskatchewan' EXPRESSION 'Saskatchewan' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 170 150 50 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END CLASS NAME 'Territorial boundary of Yukon Territory' EXPRESSION 'Yukon Territory' STYLE SYMBOL 0 OUTLINECOLOR 0 0 0 COLOR 70 150 177 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END END LAYER NAME 'province_labels' TYPE ANNOTATION STATUS default DATA province_dd.shp LABELITEM 'NAME_ENG' LABELMAXSCALE 2250000 CLASS LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 POSITION LR MINFEATURESIZE 10 MINDISTANCE 10 END # End for label END # end for class PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END # End for projection END # End for layer LAYER NAME 'Large Water' TYPE POLYGON DATA 'C:/wwwroot/map/big_water.shp' METADATA 'wms_title' 'Large Water' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END LABELITEM 'NAME' LABELMAXSCALE 250000 CLASS NAME "Large Lakes" STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 0 0 255 COLOR 85 170 225 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END END LAYER NAME 'Small Water' TYPE POLYGON DATA 'C:/wwwroot/Map/small_water.shp' METADATA 'wms_title' 'Small Water' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' '' END LABELITEM 'NAME' LABELMAXSCALE 250000 CLASS NAME "Small Lakes" STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 0 0 255 COLOR 85 170 255 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 0 END END END LAYER NAME 'Roads' TYPE LINE DATA 'C:/wwwroot/map/mjrroads_1-3.shp' METADATA 'wms_title' 'Roads' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END CLASS NAME "Roads" STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 170 94 58 COLOR 0 0 0 END END END LAYER NAME 'road_labels' TYPE ANNOTATION STATUS OFF DATA mjrroads_1-3.shp LABELITEM 'NAME' CLASS LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 POSITION LR END # End for label END # end for class PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END # End for projection END # End for layer LAYER NAME 'capitals' TYPE POINT DATA 'C:/wwwroot/map/capitals_cities.shp' METADATA 'wms_title' 'Provincial Capitals' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END CLASS NAME "Provincial Capitals" STYLE SYMBOL 'CIRCLE' SIZE 6 OUTLINECOLOR 0 0 0 COLOR 255 0 0 END END END LAYER NAME 'capitals_labels' TYPE ANNOTATION STATUS OFF DATA capitals_cities.shp LABELITEM 'NAME' LABELMAXSCALE 2000000 CLASS LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 POSITION LR END # End for label END # end for class PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END # End for projection END # End for layer LAYER NAME 'Major Cities' TYPE POINT DATA 'C:/wwwroot/map/major_cities.shp' METADATA 'wms_title' 'Major Cities' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END CLASS NAME "Major Cities" STYLE SYMBOL 'CIRCLE' SIZE 6 OUTLINECOLOR 0 0 0 COLOR 255 255 0 END END END LAYER NAME 'major_cities_labels' TYPE ANNOTATION STATUS OFF DATA major_cities.shp LABELITEM 'NAME' LABELMAXSCALE 2000000 CLASS LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 POSITION LR END # End for label END # end for class PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END # End for projection END # End for layer LAYER NAME 'other_sites' TYPE POINT DATA 'C:/wwwroot/map/other_sites.shp' METADATA 'wms_title' 'Other Sites to See' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END CLASS NAME "Other Sites to See" STYLE SYMBOL 'CIRCLE' SIZE 6 OUTLINECOLOR 0 0 0 COLOR 255 170 0 END END END LAYER NAME 'other_sites_labels' TYPE ANNOTATION STATUS OFF DATA other_sites.shp LABELITEM 'OtherSites' LABELMAXSCALE 2000000 CLASS LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 POSITION LR END # End for label END # end for class PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END # End for projection END # End for layer LAYER NAME 'sites' TYPE POINT DATA 'C:/wwwroot/map/sites.shp' METADATA 'wms_title' 'National Historic Sites of Canada' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END CLASS NAME "National Historic Sites of Canada" STYLE SYMBOL 'CIRCLE' SIZE 6 OUTLINECOLOR 0 0 0 COLOR 170 0 127 END END END LAYER NAME 'sites_labels' TYPE ANNOTATION STATUS OFF DATA sites.shp LABELITEM 'NationalHi' LABELMAXSCALE 2000000 CLASS LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 POSITION LR END # End for label END # end for class PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END # End for projection END # End for layer #Circle symbol SYMBOL NAME 'CIRCLE' TYPE ellipse FILLED true POINTS 1 1 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From joydip at ETRANSINFO.COM Sun Mar 25 03:20:39 2007 From: joydip at ETRANSINFO.COM (Joydip Shome) Date: Sun, 25 Mar 2007 05:20:39 -0500 Subject: Mapserver And Oracle Client 10g Integration Problem Message-ID: I am configuring Mapserver with Oracle Spatial 10g on RedHat 4 ES. Though I have cleared all comilation error, but I do not get "INPUT=ORACLESPATIAL" with "mapserv -v" Please Help. Joydip Shome joydip at etransinfo.com +919831077172 -------------------------------------------------------------------------------------------------------------------------------- checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for bison... bison -y checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strlcat... no checking for vsnprintf... yes MapServer Version from map.h: '4.10.1' configure: checking where FreeType 2.x is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). configure: checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... no XPM (libXpm) library cannot be found, possibly needed for GD configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no using libiconv from system libs. libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.16 or higher... checking for gdFontCacheSetup in -lgd... yes using libgd 2.0.16 (or higher) from system libs (-L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz ). checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... yes checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageOpenPolygon in -lgd... no checking for gdImageGifPtr in -lgd... yes checking for gdFontGetTiny in -lgd... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS) from system libs. configure: checking whether we should include PDF support... checking for PDF_setlinewidth in -lpdf... no checking for PDF_setrgbcolor in -lpdf... no checking for PDF_moveto in -lpdf... no checking for PDF_curveto in -lpdf... no checking for PDF_show_xy in -lpdf... no libpdf not found... PDF support not included. configure: checking whether we should include EPPL7 support... including EPPL7 support. configure: checking whether we should include PROJ.4 support... checking for pj_init in -lproj... yes checking for pj_transform in -lproj... yes using PROJ.4 from system libs. configure: checking whether we should include thread safe support... thread safe support disabled. configure: checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking if GEOS support requested... no configure: checking whether we should include OGR support... checking for gdal-config... /usr/local/bin/gdal-config OGR enabled (-DUSE_OGR). checking if GDAL support requested... yes checking checking ms JPEG output... no we, have GDAL available. configure: checking whether we should include TIFF support... disabled since gdal is in use checking if PostGIS support requested... no checking if MyGIS support requested... no checking if OracleSpatial support requested... yes, set from ORACLE_HOME environment variable Oracle Spatial found in /oracle/u01/product/CLIENT/10.1.0.3. checking if MING/Flash support requested... no configure: checking whether we should include WMS Server support... OGC WMS compatibility enabled (-DUSE_WMS_SVR). configure: checking whether we should include WFS Server support... OGC WFS Server support not requested. configure: checking whether we should include WCS Server support... OGC WCS Server support not requested. configure: checking whether we should include WMS Client Connections support... configure: checking whether we should include WFS Client Connections support... configure: checking whether we should include OGC SOS Server support... configure: checking for curl-config... configure: checking for xml2-config... configure: checking whether FastCGI support should be enabled... FastCGI support not enabled. configure: checking HTTPD server (Apache) version... checking for httpd... /usr/sbin/httpd /usr/sbin/httpd version is Apache/2.0.52 (2000052). Compiling with fast MS_NINT checking compiler warnings... basic configure: checking whether we should enable debug features... configure: checking for PHP/MapScript module options... PHP/MapScript module not configured. checking for g++ -shared ... yes checking if --enable-runpath requested... no checking if --with-java-include-os-name specified... no, autodetected linux configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/java/Makefile config.status: creating mapscript/csharp/Makefile usage: more [-dflpcsu] [+linenum | +/pattern] name1 name2 ... touch mapscriptvars pwd > mapscriptvars echo -DHAVE_VSNPRINTF -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_WMS_SVR >> mapscriptvars echo -I. -I/usr/include -I/usr/local/include >> mapscriptvars echo -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg -lfreetype -lpng -lz -lproj -ljpeg -L/usr/local/lib -lgdal -L/oracle/u01/product/DB/10.1.0.3/lib -lclntsh -lodbc -lodbcinst -lgif -ljpeg -ltiff -lpng -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl -L/usr/lib -lcurl -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -L/usr/kerberos/lib -lidn -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -L/oracle/u01/product/CLIENT/10.1.0.3/lib -lclntsh -lc -lz -lm -lstdc++ >> mapscriptvars echo >> mapscriptvars grep '#define MS_VERSION' map.h >> mapscriptvars MapServer version 4.10.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE From neuhausr at BITSTREAM.NET Sun Mar 25 13:01:11 2007 From: neuhausr at BITSTREAM.NET (Brad Neuhauser) Date: Sun, 25 Mar 2007 15:01:11 -0500 Subject: loadMap(): Web application error. CGI variable \'map\' is not set. Message-ID: Jason, I think you're having problems because in your html page, you've got a form to call the legend nested within the larger form, which I think is a no-no. Hope this helps, Brad > Hello all: > > Building my first map and I can't get passed an error I keep getting. > "(loadMap > (): Web application error. CGI variable "map" is not set.)" > > THe first html page loads my map image correctly after starting mapserver > but > when I click on the image to zoom in, etc, i get the error. > > Any thoughts? > > Map file...(html page follows) > > # Map file created from QGIS project file C:/wwwroot/map/canada map.qgs > # Edit this file to customize for your map interface > MAP > SIZE 600 457 > EXTENT -145.954 26.8972 -47.2402 97.3579 > UNITS dd > IMAGECOLOR 255 255 255 > > SCALEBAR > STATUS on > UNITS KILOMETERS > INTERVALS 3 > TRANSPARENT TRUE > OUTLINECOLOR 0 0 0 > END > > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > > #Reference Map > REFERENCE > STATUS ON > IMAGE reference.png > EXTENT -180 -90 180 90 > SIZE 241 121 > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > END > > WEB > IMAGEPATH "\ms4w\tmp\ms_tmp\" > IMAGEURL "/ms_tmp/" > TEMPLATE "template.html" > END > > LAYER > NAME 'LANDSAT' > TYPE RASTER > DATA 'C:/wwwroot/map/canada.tif' > METADATA > 'wms_title' 'LANDSAT' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=GRS80' > 'datum=NAD83' > 'no_defs' > '' > END > END > > LAYER > NAME 'provinces' > TYPE POLYGON > DATA 'C:/wwwroot/map/province_dd.shp' > METADATA > 'wms_title' 'Provincal Boundaries' > END > STATUS DEFAULT > TRANSPARENCY 35 > PROJECTION > 'proj=longlat' > 'ellps=GRS80' > 'datum=NAD83' > 'no_defs' > END > CLASSITEM 'NAME_ENG' > CLASS > NAME 'Provincial boundary of Alberta' > EXPRESSION 'Alberta' > STYLE > SYMBOL 0 > OUTLINECOLOR 0 0 0 > COLOR 170 170 127 > END > LABEL > SIZE medium > COLOR 0 0 0 > ANGLE 0 > BUFFER 0 > END > END > CLASS > NAME 'Provincial boundary of British Columbia' > EXPRESSION 'British Columbia' > STYLE > SYMBOL 0 > OUTLINECOLOR 0 0 0 > COLOR 0 170 0 > END > LABEL > SIZE medium > COLOR 0 0 0 > ANGLE 0 > BUFFER 0 > END > END > CLASS > NAME 'Provincial boundary of Manitoba' > EXPRESSION 'Manitoba' > STYLE > SYMBOL 0 > OUTLINECOLOR 0 0 0 > COLOR 85 85 127 > END > LABEL > SIZE medium > COLOR 0 0 0 > ANGLE 0 > BUFFER 0 > END > END > CLASS > NAME 'Provincial boundary of New Brunswick' > EXPRESSION 'New Brunswick' > STYLE > SYMBOL 0 > OUTLINECOLOR 0 0 0 > COLOR 255 255 127 > END > LABEL > SIZE medium > COLOR 0 0 0 > ANGLE 0 > BUFFER 0 > END > END > CLASS > NAME 'Provincial boundary of Newfoundland' > EXPRESSION 'Newfoundland' > STYLE > SYMBOL 0 > OUTLINECOLOR 0 0 0 > COLOR 0 0 127 > END > LABEL > SIZE medium > COLOR 0 0 0 > ANGLE 0 > BUFFER 0 > END > END > CLASS > NAME 'Territorial boundary of Northwest Territories' > EXPRESSION 'Northwest Territories' > STYLE > SYMBOL 0 > OUTLINECOLOR 0 0 0 > COLOR 118 61 220 > END > LABEL > SIZE medium > COLOR 0 0 0 > ANGLE 0 > BUFFER 0 > END > END > CLASS > NAME 'Provincial boundary of Nova Scotia' > EXPRESSION 'Nova Scotia' > STYLE > SYMBOL 0 > OUTLINECOLOR 0 0 0 > COLOR 85 255 255 > END > LABEL > SIZE medium > COLOR 0 0 0 > ANGLE 0 > BUFFER 0 > END > END > CLASS > NAME 'Territorial boundary of Nunavut' > EXPRESSION 'Nunavut' > STYLE > SYMBOL 0 > OUTLINECOLOR 0 0 0 > COLOR 0 85 0 > END > LABEL > SIZE medium > COLOR 0 0 0 > ANGLE 0 > BUFFER 0 > END > END > CLASS > NAME 'Provincial boundary of Ontario' > EXPRESSION 'Ontario' > STYLE > SYMBOL 0 > OUTLINECOLOR 0 0 0 > COLOR 232 0 0 > END > LABEL > SIZE medium > COLOR 0 0 0 > ANGLE 0 > BUFFER 0 > END > END > CLASS > NAME 'Provincial boundary of Prince Edward Island' > EXPRESSION 'Prince Edward Island' > STYLE > SYMBOL 0 > OUTLINECOLOR 0 0 0 > COLOR 215 7 96 > END > LABEL > SIZE medium > COLOR 0 0 0 > ANGLE 0 > BUFFER 0 > END > END > CLASS > NAME 'Provincial boundary of Quebec' > EXPRESSION 'Quebec' > STYLE > SYMBOL 0 > OUTLINECOLOR 0 0 0 > COLOR 255 0 255 > END > LABEL > SIZE medium > COLOR 0 0 0 > ANGLE 0 > BUFFER 0 > END > END > CLASS > NAME 'Provincial boundary of Saskatchewan' > EXPRESSION 'Saskatchewan' > STYLE > SYMBOL 0 > OUTLINECOLOR 0 0 0 > COLOR 170 150 50 > END > LABEL > SIZE medium > COLOR 0 0 0 > ANGLE 0 > BUFFER 0 > END > END > CLASS > NAME 'Territorial boundary of Yukon Territory' > EXPRESSION 'Yukon Territory' > STYLE > SYMBOL 0 > OUTLINECOLOR 0 0 0 > COLOR 70 150 177 > END > LABEL > SIZE medium > COLOR 0 0 0 > ANGLE 0 > BUFFER 0 > END > END > END > > LAYER > NAME 'province_labels' > TYPE ANNOTATION > STATUS default > DATA province_dd.shp > LABELITEM 'NAME_ENG' > LABELMAXSCALE 2250000 > CLASS > LABEL > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > POSITION LR > MINFEATURESIZE 10 > MINDISTANCE 10 > END # End for label > END # end for class > PROJECTION > 'proj=longlat' > 'ellps=GRS80' > 'datum=NAD83' > 'no_defs' > END # End for projection > END # End for layer > > > LAYER > NAME 'Large Water' > TYPE POLYGON > DATA 'C:/wwwroot/map/big_water.shp' > METADATA > 'wms_title' 'Large Water' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=GRS80' > 'datum=NAD83' > 'no_defs' > END > LABELITEM 'NAME' > LABELMAXSCALE 250000 > CLASS > NAME "Large Lakes" > STYLE > SYMBOL 0 > SIZE 6 > OUTLINECOLOR 0 0 255 > COLOR 85 170 225 > END > LABEL > SIZE medium > COLOR 0 0 0 > ANGLE 0 > BUFFER 0 > END > END > END > > LAYER > NAME 'Small Water' > TYPE POLYGON > DATA 'C:/wwwroot/Map/small_water.shp' > METADATA > 'wms_title' 'Small Water' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=GRS80' > 'datum=NAD83' > 'no_defs' > '' > END > LABELITEM 'NAME' > LABELMAXSCALE 250000 > CLASS > NAME "Small Lakes" > STYLE > SYMBOL 0 > SIZE 6 > OUTLINECOLOR 0 0 255 > COLOR 85 170 255 > END > LABEL > SIZE medium > COLOR 0 0 0 > ANGLE 0 > BUFFER 0 > END > END > END > > LAYER > NAME 'Roads' > TYPE LINE > DATA 'C:/wwwroot/map/mjrroads_1-3.shp' > METADATA > 'wms_title' 'Roads' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=GRS80' > 'datum=NAD83' > 'no_defs' > END > CLASS > NAME "Roads" > STYLE > SYMBOL 0 > SIZE 6 > OUTLINECOLOR 170 94 58 > COLOR 0 0 0 > END > END > END > > LAYER > NAME 'road_labels' > TYPE ANNOTATION > STATUS OFF > DATA mjrroads_1-3.shp > LABELITEM 'NAME' > CLASS > LABEL > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > POSITION LR > END # End for label > END # end for class > PROJECTION > 'proj=longlat' > 'ellps=GRS80' > 'datum=NAD83' > 'no_defs' > END # End for projection > END # End for layer > > LAYER > NAME 'capitals' > TYPE POINT > DATA 'C:/wwwroot/map/capitals_cities.shp' > METADATA > 'wms_title' 'Provincial Capitals' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=GRS80' > 'datum=NAD83' > 'no_defs' > END > CLASS > NAME "Provincial Capitals" > STYLE > SYMBOL 'CIRCLE' > SIZE 6 > OUTLINECOLOR 0 0 0 > COLOR 255 0 0 > END > END > END > > LAYER > NAME 'capitals_labels' > TYPE ANNOTATION > STATUS OFF > DATA capitals_cities.shp > LABELITEM 'NAME' > LABELMAXSCALE 2000000 > CLASS > LABEL > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > POSITION LR > END # End for label > END # end for class > PROJECTION > 'proj=longlat' > 'ellps=GRS80' > 'datum=NAD83' > 'no_defs' > END # End for projection > END # End for layer > > LAYER > NAME 'Major Cities' > TYPE POINT > DATA 'C:/wwwroot/map/major_cities.shp' > METADATA > 'wms_title' 'Major Cities' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=GRS80' > 'datum=NAD83' > 'no_defs' > END > CLASS > NAME "Major Cities" > STYLE > SYMBOL 'CIRCLE' > SIZE 6 > OUTLINECOLOR 0 0 0 > COLOR 255 255 0 > END > END > END > > LAYER > NAME 'major_cities_labels' > TYPE ANNOTATION > STATUS OFF > DATA major_cities.shp > LABELITEM 'NAME' > LABELMAXSCALE 2000000 > CLASS > LABEL > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > POSITION LR > END # End for label > END # end for class > PROJECTION > 'proj=longlat' > 'ellps=GRS80' > 'datum=NAD83' > 'no_defs' > END # End for projection > END # End for layer > > LAYER > NAME 'other_sites' > TYPE POINT > DATA 'C:/wwwroot/map/other_sites.shp' > METADATA > 'wms_title' 'Other Sites to See' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=GRS80' > 'datum=NAD83' > 'no_defs' > END > CLASS > NAME "Other Sites to See" > STYLE > SYMBOL 'CIRCLE' > SIZE 6 > OUTLINECOLOR 0 0 0 > COLOR 255 170 0 > END > END > END > > LAYER > NAME 'other_sites_labels' > TYPE ANNOTATION > STATUS OFF > DATA other_sites.shp > LABELITEM 'OtherSites' > LABELMAXSCALE 2000000 > CLASS > LABEL > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > POSITION LR > END # End for label > END # end for class > PROJECTION > 'proj=longlat' > 'ellps=GRS80' > 'datum=NAD83' > 'no_defs' > END # End for projection > END # End for layer > > LAYER > NAME 'sites' > TYPE POINT > DATA 'C:/wwwroot/map/sites.shp' > METADATA > 'wms_title' 'National Historic Sites of Canada' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=GRS80' > 'datum=NAD83' > 'no_defs' > END > CLASS > NAME "National Historic Sites of Canada" > STYLE > SYMBOL 'CIRCLE' > SIZE 6 > OUTLINECOLOR 0 0 0 > COLOR 170 0 127 > END > END > END > > LAYER > NAME 'sites_labels' > TYPE ANNOTATION > STATUS OFF > DATA sites.shp > LABELITEM 'NationalHi' > LABELMAXSCALE 2000000 > CLASS > LABEL > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > POSITION LR > END # End for label > END # end for class > PROJECTION > 'proj=longlat' > 'ellps=GRS80' > 'datum=NAD83' > 'no_defs' > END # End for projection > END # End for layer > > #Circle symbol > SYMBOL > NAME 'CIRCLE' > TYPE ellipse > FILLED true > POINTS > 1 1 > END > END > END > > > (end of map file) > > begin html page... > > > > Road Map of Canada > > >
>

Road Map of Canada

>
> >
action="/cgi-bin/mapserv.exe"> width="[mapwidth]"> >
> > > > > > > > > > >
Zoom In [zoomdir_1_check]>Re-center [zoomdir_0_check]>Zoom out [zoomdir_-1_check]>Zoom Size value=[zoomsize]>
> >
> > style="font-size:100%"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
target="_blank" > style="text-decoration:none">Layers target="_blank" > style="text-decoration:none">Labels
> Roads [road_labels_check]> Label Roads
Cities_check]> Major Cities [major_cities_labels_check]> Label Major Cities
[capitals_check]> Provincial Capitals [capitals_labels_check]> Label Capital Cities
> National Historic Sites [sites_labels_check]> Label Historic Sites
[other_sites_check]> More sites to see [other_sites_labels_check]> Label other sites
Water_check]> Large Water
Water_check] > Small Water
[LANDSAT_check]> LANDSAT image > > >
>
>
> > > > > > > > >
src="[scalebar]" alt="Scale">Help ALT="Reference Map">
> > > > > > > > > > > > > > > From Jukka.Rahkonen at MMMTIKE.FI Mon Mar 26 03:26:35 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 26 Mar 2007 13:26:35 +0300 Subject: MapServer performance Message-ID: Hi, My test system has 3 GHz prosessor and 1 GB of memory. I have on an external Firewire 400 unit worth 2 TB of imagery, consisting or individual 300 MB GeoTIFF images. Those are uncompressed and with overviews, but untiled. I have made layers out of those by creating tileindices. When I run test with Jmeter by sending simple, unique WMS request hitting 1-4 original GeoTIFF files the throughput is around 200 requests per minute. The size of the output image is 500 by 500 pixels and the requests are tuned to suit the original resolution. I have been thinking that this is close to the most simple way of using Mapserver so the throughput should be about the best possible with this setup. In my case tiling might help a bit but having overviews is unnecessary because I am hitting always the full resolution. Perhaps you could make some very basic and strictly controlled performance test like this so you could measure in a somehow reliable way the maximum performance you could have now? If performance with simple WMS or direct Mapserver cgi calls is better than you experience now then I guess the bottle neck could be the application. Regards, -Jukka Rahkonen- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: antti siukola L?hetetty: ma 19.3.2007 18:21 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] MapServer performance Hi! This might have been answered several times but here goes. I have some performance problems when mapserver (GD) produces map images (jpeg). It shows as apache takes about 80-90% of cpu time when there's just about a dozen users online. Are there any tips and tricks for this? Thanks in advance! Antti S From mikesaunt at GMAIL.COM Mon Mar 26 14:53:33 2007 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Mon, 26 Mar 2007 22:53:33 +0100 Subject: Selecting and then querying using multiple features Message-ID: Hi all In essence this is what I'm trying to achieve but I'm trying to work out the best way of doing it - I want to use the CGI as it is powerful, very stable and extremley fast. I've had great success with MapServer before where it can perform queries against tens of layers in under 2 seconds when having one feature to select against. Here is the problem... I want a user to be able to interactively from multiple clicks on a map to select features and then they can issue a query taking all selected features and doing feature intersect queries against multiple other layers. Pretty simple! I'm fine with writing wrapper code to allow the user to select a feature at a point - MODE=QUERY - and then find and store the feature id's for subsequent calls to the CGI Is there a way to be able to pass multiple feature id's to MapServer to highlight as selected in a maps? Then in the same fashion can I pass multiple feature id's (acting as the selection again) to then be used in a NQUERY to find which features from other layers intersect. Should I be looking at using a QUERYFILE? Is this possible - I'm sure it is as everything else I've wanted to do the CGI seems to be able to do it! Thanks in advance Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From romoloman at HOTMAIL.COM Mon Mar 26 17:28:03 2007 From: romoloman at HOTMAIL.COM (Romolo Manfredini) Date: Tue, 27 Mar 2007 02:28:03 +0200 Subject: MapServer performance Message-ID: From: "Rahkonen Jukka" > My test system has 3 GHz prosessor and 1 GB of memory. I have on an external Firewire 400 unit worth 2 TB of imagery, consisting or > individual 300 MB GeoTIFF images. Those are uncompressed and with overviews, but untiled. I have made layers out of those by creating > tileindices. When I run test with Jmeter by sending simple, unique WMS request hitting 1-4 original GeoTIFF files the throughput is around 200 > requests per minute. The size of the output image is 500 by 500 pixels and the requests are tuned to suit the original resolution. You can try performing Jmeter test against a very simple php script that output a map, so you can understand the phpmapscript overhead. I'm not in condition to perform such a test on my high-end server and the test server is really downsized so i would not take my results as reliable, sorry. Romolo Manfredini From Tom.Kralidis at EC.GC.CA Mon Mar 26 17:39:13 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 26 Mar 2007 20:39:13 -0400 Subject: layer filters issue Message-ID: Hi, using: MapServer latest CVS GDAL 1.4.0 Windows Server 2003 Using MS SQL Server GDAL / OGR VRT driver LAYER object: LAYER NAME "water_data" STATUS ON CONNECTIONTYPE OGR DATA "water_data" TYPE POINT DEBUG ON FILTER "where Site_Number = 'NF02YC0001'" # this works, filter is passed #FILTER "Site_Number = 'NF02YC0001'" # no results DUMP TRUE #GROUP WaterMonitoring CONNECTION " ODBC:foo/bar at foodb SELECT * FROM foodata VMVCode wkbPoint WGS84 " PROJECTION "init=epsg:4326" END docs say (http://mapserver.gis.umn.edu/docs/reference/mapfile/layer#filter): "FILTER [string] This parameter allows for data specific attribute filtering that is done at the same time spatial filtering is done, but before any CLASS expressions are evaluated. For OGR and shapefiles the string is simply a mapserver regular expression. For spatial databases the string is a SQL WHERE clause that is valid with respect to the underlying database. For example: FILTER "type='road' and size <2" " ...so, according to the docs, this means that the FILTER statement above should be invalid, and I should NOT include a WHERE clause because this is an OGR type, NOT a spatial database. Is this is a bug in the code, or should the docs be modified? Thanks ..Tom From mitchelljj98 at GMAIL.COM Mon Mar 26 19:24:01 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Mon, 26 Mar 2007 22:24:01 -0400 Subject: [Gdal-dev] when are overviews displayed for a 6 inch geotiff that has gdaladdo -r average file.tif 2 4 8 16 32 64 128 In-Reply-To: <46083F91.5080009@pobox.com> Message-ID: Frank, Thanks for the information. I am creating external overviews and would like to use the same algorithm that you described below for internal overviews. If I would like an overview to display if the overviews resolution is no more than 1.2 times the requested resolution, then how can I convert from resolution to scale so that my minimum scale within mapserver for an overview matches the correct resolution? Thanks, John Mitchell On 3/26/07, Frank Warmerdam wrote: > > John Mitchell wrote: > > Hi, > > > > When are overviews displayed (i.e. at what scale range will a 1/2 > > resolution overview be displayed) for a 6 inch geotiff that has gdaladdo > > -r average file.tif 2 4 8 16 32 64 128 > > run against. > > John, > > Based on my re-reading of GDALRasterBand::OverviewRasterIO() in > gdal/gcore/rasterio.cpp an overview level will be used if the overviews > resolution is no more than 1.2 times the requested resolution of a > RasterIO() request. > > So if you had a base layer of 30m x 30m pixels, and an overview of 60m x > 60m > pixels, and you made a request at 49m resolution the full resolution > imagery > would be used, while at 51m resolution the 60m overview would be used. > > Does this help? > > Rules may vary for format drivers that implement their own overview > support - but this rule of thumb should apply to the generic GDAL overview > support. > > 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 | President OSGeo, http://osgeo.org > > -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Mon Mar 26 20:28:03 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 26 Mar 2007 23:28:03 -0400 Subject: [Gdal-dev] when are overviews displayed for a 6 inch geotiff that has gdaladdo -r average file.tif 2 4 8 16 32 64 128 In-Reply-To: Message-ID: John Mitchell wrote: > Frank, > > Thanks for the information. I am creating external overviews and would > like to use the same algorithm that you described below for internal > overviews. If I would like an overview to display if the overviews > resolution is no more than 1.2 times the requested resolution, then how > can I convert from resolution to scale so that my minimum scale within > mapserver for an overview matches the correct resolution? John, I'm sorry, but I've not really mastered how the scale numbers in mapserver works. 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 | President OSGeo, http://osgeo.org From friendvn2000 at YAHOO.COM Mon Mar 26 19:33:48 2007 From: friendvn2000 at YAHOO.COM (Jedi Knight) Date: Mon, 26 Mar 2007 21:33:48 -0500 Subject: How to publish Mapserver on internet Message-ID: The simple method is I install ms4w package on my computer and then point everyone on internet to it... But I want to publish Mapserver on a Apache host from far distance. May I must install Mapserver from source? Many thanks! From ed at TOPOZONE.COM Mon Mar 26 19:51:24 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 26 Mar 2007 22:51:24 -0400 Subject: [Gdal-dev] when are overviews displayed for a 6 inch geotiff that has gdaladdo -r average file.tif 2 4 8 16 32 64 128 In-Reply-To: A Message-ID: John - In order to calculate a scale ratio, like 1:10,000 you need to know the output resolution of the image. The conversion is governed by the value specified by the MapServer RESOLUTION keyword, which has a default value of 72 if not otherwise specified. This is the assumed resolution of the output image device in pixels per inch. A scale of 1:10,000 means that one something on the map equals 10,000 somethings on the ground. So one inch on the map equals 10,000 inches on the ground. Since you know that one inch on the map equals 72 pixels (through the RESOLUTION setting), you now know that 72 pixels equals 10,000 inches. That's a resolution of 10,000/72 = 138.89 inches per pixel. - 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 John Mitchell Sent: Monday, March 26, 2007 10:24 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] [Gdal-dev] when are overviews displayed for a 6 inch geotiff that has gdaladdo -r average file.tif 2 4 8 16 32 64 128 Frank, Thanks for the information. I am creating external overviews and would like to use the same algorithm that you described below for internal overviews. If I would like an overview to display if the overviews resolution is no more than 1.2 times the requested resolution, then how can I convert from resolution to scale so that my minimum scale within mapserver for an overview matches the correct resolution? Thanks, John Mitchell On 3/26/07, Frank Warmerdam wrote: John Mitchell wrote: > Hi, > > When are overviews displayed (i.e. at what scale range will a 1/2 > resolution overview be displayed) for a 6 inch geotiff that has gdaladdo > -r average file.tif 2 4 8 16 32 64 128 > run against. John, Based on my re-reading of GDALRasterBand::OverviewRasterIO() in gdal/gcore/rasterio.cpp an overview level will be used if the overviews resolution is no more than 1.2 times the requested resolution of a RasterIO() request. So if you had a base layer of 30m x 30m pixels, and an overview of 60m x 60m pixels, and you made a request at 49m resolution the full resolution imagery would be used, while at 51m resolution the 60m overview would be used. Does this help? Rules may vary for format drivers that implement their own overview support - but this rule of thumb should apply to the generic GDAL overview support. 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 | President OSGeo, http://osgeo.org -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim.bowden at WESTNET.COM.AU Mon Mar 26 19:54:15 2007 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Tue, 27 Mar 2007 10:54:15 +0800 Subject: How to publish Mapserver on internet In-Reply-To: Message-ID: On Mon, 2007-03-26 at 21:33 -0500, Jedi Knight wrote: > The simple method is I install ms4w package on my computer and then > point everyone on internet to it... > But I want to publish Mapserver on a Apache host from far distance. > May I must install Mapserver from source? > Many thanks! What platform? What version of Apache? What access do you have to the remote host? What functionality do you need compiled into mapserver? Are you trying to run a wms server? Not enough information to help you! Regards, Tim Bowden From friendvn2000 at YAHOO.COM Mon Mar 26 20:33:32 2007 From: friendvn2000 at YAHOO.COM (Jedi Knight) Date: Mon, 26 Mar 2007 22:33:32 -0500 Subject: How to publish Mapserver on internet Message-ID: Sorry for my carelessness! I use Windows platform, Apache 2 ( depend on my ISP ). I use FTP to access the remote host. I want to use like the ms4w package which I installed on my localhost. At this time I really don't need to use WMS. Thank you! From tim.bowden at WESTNET.COM.AU Mon Mar 26 23:42:51 2007 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Tue, 27 Mar 2007 14:42:51 +0800 Subject: How to publish Mapserver on internet In-Reply-To: Message-ID: On Mon, 2007-03-26 at 22:33 -0500, Jedi Knight wrote: > Sorry for my carelessness! > I use Windows platform, Apache 2 ( depend on my ISP ). I use FTP to > access the remote host. I want to use like the ms4w package which I > installed on my localhost. At this time I really don't need to use WMS. > Thank you! I think you need to talk first to your isp. You're wanting to install and run an executable on their server. What sort of policy does your isp have about this? Tim Bowden From friendvn2000 at YAHOO.COM Tue Mar 27 01:21:39 2007 From: friendvn2000 at YAHOO.COM (Jedi Knight) Date: Tue, 27 Mar 2007 03:21:39 -0500 Subject: How to publish Mapserver on internet Message-ID: On Tue, 27 Mar 2007 14:42:51 +0800, Tim Bowden wrote: >On Mon, 2007-03-26 at 22:33 -0500, Jedi Knight wrote: >> Sorry for my carelessness! >> I use Windows platform, Apache 2 ( depend on my ISP ). I use FTP to >> access the remote host. I want to use like the ms4w package which I >> installed on my localhost. At this time I really don't need to use WMS. >> Thank you! > >I think you need to talk first to your isp. You're wanting to install >and run an executable on their server. What sort of policy does your >isp have about this? > >Tim Bowden I find that page: http://lists.maptools.org/pipermail/ms4w-users/2005- September/000304.html Must I do follow his instrution to publish Mapserver on internet? But you said right! The ISP have their own Apache but the ms4w requires a modify one. Thanks! From siukola.antti at GMAIL.COM Tue Mar 27 03:51:26 2007 From: siukola.antti at GMAIL.COM (antti siukola) Date: Tue, 27 Mar 2007 13:51:26 +0300 Subject: MapServer performance In-Reply-To: Message-ID: Hi! I finally got some specs for our server. We have an vmware Virtual infrastructure 3 with fysical hardware of Dell PE 6850 dual dual-core cpu with 12 GB of RAM. Hard drives are EMC CX3-20 SAN system. And the system allocates 1GB RAM for us. Antti S On 3/27/07, Romolo Manfredini wrote: > From: "Rahkonen Jukka" > > My test system has 3 GHz prosessor and 1 GB of memory. I have on an > external Firewire 400 unit worth 2 TB of imagery, consisting or > > individual 300 MB GeoTIFF images. Those are uncompressed and with > overviews, but untiled. I have made layers out of those by creating > > tileindices. When I run test with Jmeter by sending simple, unique WMS > request hitting 1-4 original GeoTIFF files the throughput is around 200 > > requests per minute. The size of the output image is 500 by 500 pixels > and the requests are tuned to suit the original resolution. > > You can try performing Jmeter test against a very simple php script that > output a map, so you can understand the phpmapscript overhead. > I'm not in condition to perform such a test on my high-end server and the > test server is really downsized so i would not take my results as reliable, > sorry. > > Romolo Manfredini > From bartvde at OSGIS.NL Tue Mar 27 03:54:03 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 27 Mar 2007 12:54:03 +0200 Subject: MapServer performance Message-ID: Hi Antti, which version of VMWare? 3 or 4? We have a significant performance drop in Mapserver (about a factor 3) running on VMWare 3. VMWare 4 is supposed to have better performance for this type of application. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: antti siukola Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] MapServer performance Datum: 27/03/07 08:52 > Hi! > > I finally got some specs for our server. We have an vmware Virtual > infrastructure 3 with fysical hardware of Dell PE 6850 dual dual-core > cpu with 12 GB of RAM. Hard drives are EMC CX3-20 SAN system. And the > system allocates 1GB RAM for us. > > Antti S > > > On 3/27/07, Romolo Manfredini <romoloman at hotmail.com> wrote: > > From: "Rahkonen Jukka" > > > My test system has 3 GHz prosessor and 1 GB of memory. I have on an > > external Firewire 400 unit worth 2 TB of imagery, consisting or > > > individual 300 MB GeoTIFF images. Those are uncompressed and with > > overviews, but untiled. I have made layers out of those by creating > > > tileindices. When I run test with Jmeter by sending simple, unique WMS > > request hitting 1-4 original GeoTIFF files the throughput is around 200 > > > requests per minute. The size of the output image is 500 by 500 pixels > > and the requests are tuned to suit the original resolution. > > > > You can try performing Jmeter test against a very simple php script that > > output a map, so you can understand the phpmapscript overhead. > > I'm not in condition to perform such a test on my high-end server and the > > test server is really downsized so i would not take my results as reliable, > > sorry. > > > > Romolo Manfredini > > > > From work at XWB.COM Tue Mar 27 04:53:05 2007 From: work at XWB.COM (Chip Taylor) Date: Tue, 27 Mar 2007 04:53:05 -0700 Subject: Ortho and Elevation sources In-Reply-To: Message-ID: I am looking for commercial grade sources for ortho and digital photos as well as elevation data. I would prefer a WFS or WMS source. We presently use USGS and Terraserver data but we are looking for quality and currency on the order of that found in Google Maps, etc. If you know of vendors for such data, any leads you could provide would be appreciated. Chip Taylor Prepared Response, Inc From AGilbert at KOREM.COM Tue Mar 27 06:40:36 2007 From: AGilbert at KOREM.COM (Gilbert, Antoine) Date: Tue, 27 Mar 2007 09:40:36 -0400 Subject: Java MapScript on windows Message-ID: Hi I'm new to MapServer. I have installed the windows version and some samples and this is working. Now what I am trying is to use Java MapScript. I made a Java test application (not a Web one) using mapscript.jar and mapscript.dll coming from \ms4w\Apache\cgi-bin\mapscript\java I m getting this error message : Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jdk1.5.0_09\jre\bin\mapscript.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:993) at edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:23) at edu.umn.gis.mapscript.mapObj.(mapObj.java:276) at testjavamapscript.Main.main(Main.java:31) Any ideas ? It's very difficult for me to find documentation and examples about Java mapscript. If anyone can provide me with some URLs -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Tue Mar 27 07:22:38 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 27 Mar 2007 16:22:38 +0200 Subject: Java MapScript on windows In-Reply-To: Message-ID: On 3/27/07, Gilbert, Antoine wrote: > Hi > I'm new to MapServer. I have installed the windows version and some samples > and this is working. > Now what I am trying is to use Java MapScript. > I made a Java test application (not a Web one) using mapscript.jar and > mapscript.dll coming from > \ms4w\Apache\cgi-bin\mapscript\java > I m getting this error message : > Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program > Files\Java\jdk1.5.0_09\jre\bin\mapscript.dll: Can't find > dependent libraries The linker is saying that the dlls mapscript.dll depends on or perhaps mapscript.dll itself are not found in path. The solution is to add them to the path. Umberto From umberto.nicoletti at GMAIL.COM Tue Mar 27 07:39:06 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 27 Mar 2007 16:39:06 +0200 Subject: Java MapScript on windows In-Reply-To: Message-ID: Google for "dll dependency" and pick whichever you like most.... Umberto On 3/27/07, Gilbert, Antoine wrote: > My mapscript.dll file is at the place designed by the error message : > C:\Program > > Files\Java\jdk1.5.0_09\jre\bin\mapscript.dll > > If I remove the dll from that place I get this error message : > Exception in thread "main" java.lang.UnsatisfiedLinkError: no mapscript > in java.library.path > > How I can figure what are the dlls needed by mapscript.dll ? All dlls of > the windows installation (ms4w) seems to be related to Apache > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Umberto Nicoletti > Sent: Tuesday, March 27, 2007 10:23 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Java MapScript on windows > > On 3/27/07, Gilbert, Antoine wrote: > > Hi > > I'm new to MapServer. I have installed the windows version and some > samples > > and this is working. > > Now what I am trying is to use Java MapScript. > > I made a Java test application (not a Web one) using mapscript.jar and > > mapscript.dll coming from > > \ms4w\Apache\cgi-bin\mapscript\java > > I m getting this error message : > > Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program > > Files\Java\jdk1.5.0_09\jre\bin\mapscript.dll: Can't find > > dependent libraries > > The linker is saying that the dlls mapscript.dll depends on or perhaps > mapscript.dll itself are not found in path. The solution is to add > them to the path. > > Umberto > > From AGilbert at KOREM.COM Tue Mar 27 07:34:04 2007 From: AGilbert at KOREM.COM (Gilbert, Antoine) Date: Tue, 27 Mar 2007 10:34:04 -0400 Subject: Java MapScript on windows Message-ID: My mapscript.dll file is at the place designed by the error message : C:\Program > Files\Java\jdk1.5.0_09\jre\bin\mapscript.dll If I remove the dll from that place I get this error message : Exception in thread "main" java.lang.UnsatisfiedLinkError: no mapscript in java.library.path How I can figure what are the dlls needed by mapscript.dll ? All dlls of the windows installation (ms4w) seems to be related to Apache -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Umberto Nicoletti Sent: Tuesday, March 27, 2007 10:23 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Java MapScript on windows On 3/27/07, Gilbert, Antoine wrote: > Hi > I'm new to MapServer. I have installed the windows version and some samples > and this is working. > Now what I am trying is to use Java MapScript. > I made a Java test application (not a Web one) using mapscript.jar and > mapscript.dll coming from > \ms4w\Apache\cgi-bin\mapscript\java > I m getting this error message : > Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program > Files\Java\jdk1.5.0_09\jre\bin\mapscript.dll: Can't find > dependent libraries The linker is saying that the dlls mapscript.dll depends on or perhaps mapscript.dll itself are not found in path. The solution is to add them to the path. Umberto From richard.greenwood at GMAIL.COM Tue Mar 27 08:33:17 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 27 Mar 2007 09:33:17 -0600 Subject: getting itemquery extent w/o drawing image Message-ID: itemquery and itemnquery seem to draw a map (create an image on the server) even when the map file's status is off. All I am using itemquery for is to get the extent of the queried object(s), which I then use to "zoom to" those objects. Is there anything besides itemquery and itemnquery that return an extent? I've been thinking about using a WMS call to get an extent, but I think I recall that WMS can only return one queried object, and I may have many. Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From AGilbert at KOREM.COM Tue Mar 27 08:18:07 2007 From: AGilbert at KOREM.COM (Gilbert, Antoine) Date: Tue, 27 Mar 2007 11:18:07 -0400 Subject: Java MapScript on windows Message-ID: I added all the /ms4w/Apache/cgi-bin directory in my path environnement and now it's working Now I'm getting the error message : Exception in thread "main" java.lang.UnknownError: msProcessProjection(): Projection library error. No such file or directory at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) at edu.umn.gis.mapscript.mapObj.(mapObj.java:276) I'm just trying this tiny sample code : mapObj mapa=new mapObj("C:/ms4w/apps/chameleon/samples/map/world_wms.map"); imageObj imagen=mapa.draw(); imagen.save("c:/test.png", mapa); From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gilbert, Antoine Sent: Tuesday, March 27, 2007 9:41 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Java MapScript on windows Hi I'm new to MapServer. I have installed the windows version and some samples and this is working. Now what I am trying is to use Java MapScript. I made a Java test application (not a Web one) using mapscript.jar and mapscript.dll coming from \ms4w\Apache\cgi-bin\mapscript\java I m getting this error message : Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jdk1.5.0_09\jre\bin\mapscript.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:993) at edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:23) at edu.umn.gis.mapscript.mapObj.(mapObj.java:276) at testjavamapscript.Main.main(Main.java:31) Any ideas ? It's very difficult for me to find documentation and examples about Java mapscript. If anyone can provide me with some URLs -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Tue Mar 27 10:25:03 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 27 Mar 2007 13:25:03 -0400 Subject: MapServer performance In-Reply-To: Message-ID: Antti - Does that mean there are other applications running on the same server, of which you are unaware? That's generally a very good hardware setup, unless you're competing with other apps. The only other obvious question is to check your overviews against the images you're requesting. Are your test WMS requests asking for image resolutions for which overviews are available, or is MapServer doing a lot of resampling for you? Resampling can be very expensive. - Ed -- Ed McNierney President and Chief Mapmaker Maps a la carte, Inc. / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com > From: antti siukola > Reply-To: antti siukola > Date: Tue, 27 Mar 2007 13:51:26 +0300 > To: > Subject: Re: [UMN_MAPSERVER-USERS] MapServer performance > > Hi! > > I finally got some specs for our server. We have an vmware Virtual > infrastructure 3 with fysical hardware of Dell PE 6850 dual dual-core > cpu with 12 GB of RAM. Hard drives are EMC CX3-20 SAN system. And the > system allocates 1GB RAM for us. > > Antti S > > > On 3/27/07, Romolo Manfredini wrote: >> From: "Rahkonen Jukka" >>> My test system has 3 GHz prosessor and 1 GB of memory. I have on an >> external Firewire 400 unit worth 2 TB of imagery, consisting or >>> individual 300 MB GeoTIFF images. Those are uncompressed and with >> overviews, but untiled. I have made layers out of those by creating >>> tileindices. When I run test with Jmeter by sending simple, unique WMS >> request hitting 1-4 original GeoTIFF files the throughput is around 200 >>> requests per minute. The size of the output image is 500 by 500 pixels >> and the requests are tuned to suit the original resolution. >> >> You can try performing Jmeter test against a very simple php script that >> output a map, so you can understand the phpmapscript overhead. >> I'm not in condition to perform such a test on my high-end server and the >> test server is really downsized so i would not take my results as reliable, >> sorry. >> >> Romolo Manfredini >> From ed at TOPOZONE.COM Tue Mar 27 10:36:30 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 27 Mar 2007 13:36:30 -0400 Subject: Ortho and Elevation sources In-Reply-To: <009b01c77066$7cb48950$025aa8c0@DevChip> Message-ID: Chip - TopoZone continues to provide commercial WMS services for USGS topographic maps, DOQQ aerial photos, and High-Res Urban Area imagery. We've been doing that for quite a while now. For much of this data Microsoft TerraServer is very far behind the times - I don't think they've updated any DOQQs for several years, and of course they converted all the CIR imagery to black and white. Comparisons to Google Maps depend a lot on what you're looking for. They tend to have very good coverage in urban areas (a lot of which is the USGS high-res urban data) but many rural areas are terrible. Google Maps does not seem to use USGS DOQQ images at all, and in many part of the country has very low-resolution satellite imagery (15m or lower resolution) instead of 1m DOQQ data. The perceived quality of their data depends a lot on what you're looking for. The other thing that we and other commercial providers do is provide a commercial service. If TerraServer goes down (and it does), too bad - Microsoft is under no obligation to you to continue operating it at all. If your most important criterion is price above all else, use the free stuff. But the biggest thing commercial providers offer is maintenance and support, and that's not free. I'm sure there are others out there, too. If you'd like more info on what we do, contact me off-list; thanks. - Ed -- Ed McNierney President and Chief Mapmaker Maps a la carte, Inc. / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com > From: Chip Taylor > Reply-To: Chip Taylor > Date: Tue, 27 Mar 2007 04:53:05 -0700 > To: > Subject: [UMN_MAPSERVER-USERS] Ortho and Elevation sources > > I am looking for commercial grade sources for ortho and digital photos as > well as elevation data. I would prefer a WFS or WMS source. We presently > use USGS and Terraserver data but we are looking for quality and currency on > the order of that found in Google Maps, etc. If you know of vendors for > such data, any leads you could provide would be appreciated. > > Chip Taylor > Prepared Response, Inc From AGilbert at KOREM.COM Tue Mar 27 10:42:48 2007 From: AGilbert at KOREM.COM (Gilbert, Antoine) Date: Tue, 27 Mar 2007 13:42:48 -0400 Subject: Java MapScript on windows Message-ID: Ok, got it finally... Sorry for my annoying posts... I added the environment variable PROJ_LIB and now I'm able to generate the image from the map file. From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gilbert, Antoine Sent: Tuesday, March 27, 2007 11:18 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Java MapScript on windows I added all the /ms4w/Apache/cgi-bin directory in my path environnement and now it's working Now I'm getting the error message : Exception in thread "main" java.lang.UnknownError: msProcessProjection(): Projection library error. No such file or directory at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) at edu.umn.gis.mapscript.mapObj.(mapObj.java:276) I'm just trying this tiny sample code : mapObj mapa=new mapObj("C:/ms4w/apps/chameleon/samples/map/world_wms.map"); imageObj imagen=mapa.draw(); imagen.save("c:/test.png", mapa); From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gilbert, Antoine Sent: Tuesday, March 27, 2007 9:41 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Java MapScript on windows Hi I'm new to MapServer. I have installed the windows version and some samples and this is working. Now what I am trying is to use Java MapScript. I made a Java test application (not a Web one) using mapscript.jar and mapscript.dll coming from \ms4w\Apache\cgi-bin\mapscript\java I m getting this error message : Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jdk1.5.0_09\jre\bin\mapscript.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:993) at edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:23) at edu.umn.gis.mapscript.mapObj.(mapObj.java:276) at testjavamapscript.Main.main(Main.java:31) Any ideas ? It's very difficult for me to find documentation and examples about Java mapscript. If anyone can provide me with some URLs -------------- next part -------------- An HTML attachment was scrubbed... URL: From janc44 at GMX.DE Tue Mar 27 14:15:17 2007 From: janc44 at GMX.DE (Jan Ciriack) Date: Tue, 27 Mar 2007 23:15:17 +0200 Subject: Problem with zoomPoint() Message-ID: Hi, I am using the mapscript libraries that came with the current ms4w package. Here is my problem: When I use the zoomPoint method like this everything works fine: public static void main(String[] args) { mapObj map = new mapObj("global.map"); pointObj point = new pointObj(300, 150, 0, 0); map.zoomPoint( 2, point, map.getWidth(), map.getHeight(), map.getExtent(), null); imageObj img = map.draw(); img.save("worldmap.gif", map); } But when put the call of zoomPoint in a separate method like this it zooms to a different point than the one I specified. public static void main(String[] args) { mapObj map = new mapObj("global.map"); pointObj point = new pointObj(300, 150, 0, 0); zoomToPoint(map, point, 2); imageObj img = map.draw(); img.save("worldmap.gif", map); } public static void zoomToPoint(mapObj map, pointObj point, int mode) { map.zoomPoint(mode, point, map.getHeight(), map.getWidth(),map.getExtent(), null); } It is quite weird, isn't it? The other zooming methods work okay. Any help more than appreciated. Cheers, Jan From porath at WEB.DE Tue Mar 27 23:24:11 2007 From: porath at WEB.DE (H. Porath) Date: Wed, 28 Mar 2007 01:24:11 -0500 Subject: turn off certain output formats Message-ID: Hi list, i want to turn off some output formats, e.g. image/wbmp, so that they do not go in the wms getcapabilites response. Is there a chance to do this in the mapfile? I don't want to recompile GD, GDAL and MapSerer to turn off gif and wbmp. Regards, Holger From kobben at ITC.NL Wed Mar 28 00:48:40 2007 From: kobben at ITC.NL (Barend K=?ISO-8859-1?B?9g==?=bben) Date: Wed, 28 Mar 2007 09:48:40 +0200 Subject: turn off certain output formats In-Reply-To: Message-ID: In your WEB object: "wms_formatlist" "image/png, image/gif" On 28-03-2007 08:24, "H. Porath" wrote: > Hi list, > > i want to turn off some output formats, e.g. image/wbmp, so that they do not > go in the wms getcapabilites response. Is there a chance to do this in the > mapfile? I don't want to recompile GD, GDAL and MapSerer to turn off gif and > wbmp. > > Regards, > > Holger From luca.casagrande at GMAIL.COM Wed Mar 28 06:36:55 2007 From: luca.casagrande at GMAIL.COM (Luca Casagrande) Date: Wed, 28 Mar 2007 15:36:55 +0200 Subject: Big project using mapserver Message-ID: Hi to all. I am working on my thesis about a web application that uses WPS with PyWPS and Embrio. Right now I started describing Mapserver and I'd like to add some info about big project that use it. Anyone got some hints? Thank you very much Luca -- "Don't lose the dreams inside your head they'll only be there til' you're dead dream" Dave Matthews Band jabber: casagrande at jabber.linux.it Gentoo Gis Overlay: http://gentoo-gis.sourceforge.net/ From gerry.creager at TAMU.EDU Wed Mar 28 06:41:24 2007 From: gerry.creager at TAMU.EDU (Gerry Creager) Date: Wed, 28 Mar 2007 08:41:24 -0500 Subject: Big project using mapserver In-Reply-To: <1175089015.25631.7.camel@gentoobox> Message-ID: http://mesonet.tamu.edu/currentwx.html http://mesonet.tamu.edu/svr-wx.html http://mesonet.tamu.edu/PolygonTest/ That should give you some idea of our extents. I'm sure others will respond. Luca Casagrande wrote: > Hi to all. > > I am working on my thesis about a web application that uses WPS with > PyWPS and Embrio. > Right now I started describing Mapserver and I'd like to add some info > about big project that use it. > Anyone got some hints? > > Thank you very much > > Luca -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983 Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843 From reh2 at PRODIGY.NET Wed Mar 28 08:44:46 2007 From: reh2 at PRODIGY.NET (Robert Hollingsworth) Date: Wed, 28 Mar 2007 10:44:46 -0500 Subject: Ortho and Elevation sources Message-ID: You might check into ESRI ArcWeb Services -- they host a variety of other commercial data sources (teleatlas, navteq, globexplorer, etc.). They don't have native WMS or WFS (last year I did some work integrating ArcWeb into Mapserver as a means of WMS access). I know ArcWeb has some hillshade imagery, Natl Geographic TOPO! imagery. not sure about additional DEM sources. hope this helps, REH From porath at WEB.DE Wed Mar 28 09:13:11 2007 From: porath at WEB.DE (H. Porath) Date: Wed, 28 Mar 2007 11:13:11 -0500 Subject: turn off certain output formats Message-ID: Hi, i have added the following line to my mapfile in the web->metadata section but the capabilities document still advertises all formats (image/png, ...): "wms_formatlist" "image/jpeg" What am i doing wrong? I am using Mapserver 4.6.2. Regards, Holger On Wed, 28 Mar 2007 09:48:40 +0200, Barend K?bben wrote: >In your WEB object: >"wms_formatlist" "image/png, image/gif" > > > >On 28-03-2007 08:24, "H. Porath" wrote: > >> Hi list, >> >> i want to turn off some output formats, e.g. image/wbmp, so that they do not >> go in the wms getcapabilites response. Is there a chance to do this in the >> mapfile? I don't want to recompile GD, GDAL and MapSerer to turn off gif and >> wbmp. >> >> Regards, >> >> Holger From dmorissette at MAPGEARS.COM Wed Mar 28 09:31:53 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 28 Mar 2007 12:31:53 -0400 Subject: turn off certain output formats In-Reply-To: Message-ID: H. Porath wrote: > Hi, > > i have added the following line to my mapfile in the web->metadata section > but the capabilities document still advertises all formats (image/png, ...): > "wms_formatlist" "image/jpeg" > > What am i doing wrong? I am using Mapserver 4.6.2. > There is currently no way to filter the list of GetMap output formats listed in the GetCapabilities response. The "wms_formatlist" metadata serves another purpose: it is used with CONNECTIONTYPE WMS (i.e. client WMS connections) to indicate to MapServer which formats the remote server supports. This information is also used when reading/writing Web Map Context documents. Daniel -- Daniel Morissette http://www.mapgears.com/ From percyd at PDX.EDU Wed Mar 28 10:24:20 2007 From: percyd at PDX.EDU (percy) Date: Wed, 28 Mar 2007 10:24:20 -0700 Subject: wrapping around the dateline using geographic coordinates In-Reply-To: Message-ID: Hi all, I've asked this question before, trolled through the archives and googled everything I could think of. *Has anyone come up with an elegant way of displaying data that crosses the dateline, while keeping the coordinate system in decimal degrees?* My Aleutian islands currently get chopped off, and similar problems ensue with the Pacific Protectorates (Guam, Midway, Samoa, etc) Thanks for any hints! I hope I'm missing something obvious :-) Percy -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From ljfong at SDF.LONESTAR.ORG Wed Mar 28 11:06:04 2007 From: ljfong at SDF.LONESTAR.ORG (Hong) Date: Wed, 28 Mar 2007 11:06:04 -0700 Subject: [phamyenle19@gmail.com: Hi Hong] Message-ID: Hi Pham, I have forwarded your help request to the mapserver-users list so others can help you as well. Please reply to the list unless circumstances require private correspondence. Read the compilation instruction on the MapServer official website carefully and experiment, experiment a lot, then you can ask specific questions. Hong ----- Forwarded message from phamyenle19 at gmail.com ----- From: phamyenle19 at gmail.com To: ljfong at SDF.LONESTAR.ORG Subject: Hi Hong Date: Tue, 27 Mar 2007 21:17:22 -0700 My name is Pham yen Le, I am VNmese.are you VNese? can you help me about Mapserver? I am trying recompile Mapserver, but without success. Can you help me? ----- End forwarded message ----- From rodrigo.andrade at DIGITRO.COM.BR Wed Mar 28 11:18:06 2007 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Wed, 28 Mar 2007 15:18:06 -0300 Subject: Mapscript crashing Tomcat --> [Panic] Message-ID: Greetings. dear list. We are experiencing some troubling difficulties developing an application with mapscript on a Java web based environment with tomcat. Here is the deal: while using the app (not nearly done, but functional enough at this stage) when one tries to zoom (in or out) or pan the map more than a few times, Tomcat often will go down screaming and the JVM just gives up on life. I know this is probably not the right or best place to ask about it, but it seems to be caused by the interaction of mapscript and the GD library. Here is the JVM output short version (long version is attached at the bottom): # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0xada54182, pid=7851, tid=2955426704 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_07-b03 mixed mode, sharing) # Problematic frame: # C [libgd.so.2+0x8182] # If it helps narrowing down the cause: we have had this problem with every windows box running a binary distro of MS4W version 4.8 (if I am not mistaken) so far. We had one linux box running RHES 4 and mapscript 4.10 beta3 without this problem, but that machine has then been decommissioned and replaced with a Fedora 6 box, the mapserver 4.10.1 install presented the problem. I have then replaced 4.10.1 with the old 4.10 beta3 and recompiled, but the problem still occurs. Compile options where: ./configure --prefix=$MAPSERVER_HOME --without-pdf --with-threads --with-zlib=/home2/mapserver/zlib --with-png=/home2/mapserver/libpng --with-tiff=/home2/mapserver/libtiff --with-jpeg=/home2/mapserver/libjpeg --with-freetype=/home2/mapserver/freetype --with-proj=/home2/mapserver/proj4 --with-geos=/home2/mapserver/geos/bin/geos-config --with-gd=/home2/mapserver/gd --with-ogr=/home2/mapserver/gdal/bin/gdal-config --with-gdal=/home2/mapserver/gdal/bin/gdal-config --with-curl-config=/home2/mapserver/libcurl/bin/curl-config --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-php=/usr/local/include/phpcm I know theres a hell lot of addons in there, but as far as I know this shouldnt be a problem. Also, every one of these libraries where cleanly compiled from source. Mapscript passes all the tests in "make test" after compiled it creates a sane libmapscript.so and mapscript.jar. Like I said, it all works fine for a while, but then it kills Tomcat after some use. Any ideas? Full JVM error log is at the bottom. I am ready to give in more info if needed. Thanks in advance; Rodrigo # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0xada54182, pid=7851, tid=2955426704 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_07-b03 mixed mode, sharing) # Problematic frame: # C [libgd.so.2+0x8182] # --------------- T H R E A D --------------- Current thread (0x094619e8): JavaThread "http-8080-Processor25" daemon [_thread_in_native, id=7913] siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x61747cda Registers: EAX=0x61746f6e, EBX=0xada68618, ECX=0xffffff31, EDX=0x00000000 ESP=0xb0279ed4, EBP=0xb0279f0c, ESI=0x0000035b, EDI=0xffff47b9 EIP=0xada54182, CR2=0x61747cda, EFLAGS=0x00210246 Top of Stack: (sp=0xb0279ed4) 0xb0279ed4: 098ea978 0000035b 000001b8 000000cf 0xb0279ee4: 098ea0e0 61746f6e 000001b8 0000035b 0xb0279ef4: 098ea978 000000b9 00000075 ada68618 0xb0279f04: 01b70000 0000035b b0279ffc ada55a16 0xb0279f14: 00cfb975 000000ff 000001b7 00000000 0xb0279f24: b027a528 0013cc71 0000035b 00000000 0xb0279f34: 00000000 00000000 00000000 00000000 0xb0279f44: 00000000 00000000 00000000 00000000 Instructions: (pc=0xada54182) 0xada54172: 00 00 c1 f8 08 03 45 ec c1 e0 08 01 c2 8b 45 dc 0xada54182: 89 14 b0 8b 5d f4 8b 75 f8 8b 7d fc 89 ec 5d c3 Stack: [0xb0203000,0xb0284000), sp=0xb0279ed4, free space=475k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libgd.so.2+0x8182] C [libgd.so.2+0x9a16] gdImageLine+0x4a6 C [libmapscript.so+0xad355] C [libmapscript.so+0xb310e] msDrawLineSymbolGD+0xe7e C [libmapscript.so+0xa75fb] msDrawLineSymbol+0x8b C [libmapscript.so+0xa9cb2] msDrawShape+0x17e2 C [libmapscript.so+0xaa6d8] msDrawVectorLayer+0x398 C [libmapscript.so+0xaa97a] msDrawLayer+0xaa C [libmapscript.so+0xaba67] msDrawMap+0x6a7 C [libmapscript.so+0x552b5] Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1draw+0x45 j edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 j edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4 j br.com.company.appgis.model.appGisMapFactory.drawMap(Ledu/umn/gis/mapscript/mapObj;Ljava/io/File;Ljava/io/File;)V+6 j br.com.company.appgis.model.appGisMapFactory.createMapa(Ljava/util/Map;Ljava/util/List;)Lbr/com/company/appgis/model/vo/MapaVO;+208 j br.com.company.appgis.model.appGisService.buildMapa(Ljava/util/Map;Ljava/util/List;)Lbr/com/company/appgis/model/vo/MapaVO;+2 j br.com.company.app.gis.action.MapaAction.criaMapa(Ljavax/servlet/http/HttpServletRequest;)V+11 j br.com.company.app.gis.action.MapaAction.dvimgmapa(Lorg/apache/struts/action/ActionMapping;Lorg/apache/struts/action/DynaActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Lorg/apache/struts/action/ActionMessages;)Lorg/apache/struts/action/ActionForward;+2 v ~StubRoutines::call_stub V [libjvm.so+0x17900c] V [libjvm.so+0x286278] V [libjvm.so+0x178e3f] V [libjvm.so+0x2affec] V [libjvm.so+0x2b2cea] V [libjvm.so+0x1ecd62] C [libjava.so+0x13764] Java_sun_reflect_NativeMethodAccessorImpl_invoke0+0x34 J sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; J sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; J sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; J java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; j br.com.company.utilweb.action.AGISAction.execute(Lorg/apache/struts/action/ActionMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lorg/apache/struts/action/ActionForward;+81 j org.apache.struts.action.RequestProcessor.processActionPerform(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Lorg/apache/struts/action/Action;Lorg/apache/struts/action/ActionForm;Lorg/apache/struts/action/ActionMapping;)Lorg/apache/struts/action/ActionForward;+7 j org.apache.struts.action.RequestProcessor.process(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+219 j org.apache.struts.action.ActionServlet.process(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+40 j org.apache.struts.action.ActionServlet.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 j sun.reflect.GeneratedMethodAccessor81.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+48 J sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; J java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; j org.apache.catalina.security.SecurityUtil$1.run()Ljava/lang/Object;+12 v ~StubRoutines::call_stub V [libjvm.so+0x17900c] V [libjvm.so+0x286278] V [libjvm.so+0x178e3f] V [libjvm.so+0x1d64fd] C [libjava.so+0x93bc] Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedExceptionAction_2Ljava_security_AccessControlContext_2+0x3c j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0 j javax.security.auth.Subject.doAsPrivileged(Ljavax/security/auth/Subject;Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+60 j org.apache.catalina.security.SecurityUtil.execute(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;Ljava/security/Principal;)V+136 j org.apache.catalina.security.SecurityUtil.doAsPrivilege(Ljava/lang/String;Ljavax/servlet/Servlet;[Ljava/lang/Class;[Ljava/lang/Object;Ljava/security/Principal;)V+70 j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+333 j org.apache.catalina.core.ApplicationFilterChain.access$000(Lorg/apache/catalina/core/ApplicationFilterChain;Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+3 j org.apache.catalina.core.ApplicationFilterChain$1.run()Ljava/lang/Object;+12 v ~StubRoutines::call_stub V [libjvm.so+0x17900c] V [libjvm.so+0x286278] V [libjvm.so+0x178e3f] V [libjvm.so+0x1d64fd] C [libjava.so+0x936d] Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedExceptionAction_2+0x3d j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;+0 j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+22 j br.com.company.app.filter.AuthFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+276 v ~StubRoutines::call_stub V [libjvm.so+0x17900c] V [libjvm.so+0x286278] V [libjvm.so+0x178e3f] V [libjvm.so+0x2affec] V [libjvm.so+0x2b2cea] V [libjvm.so+0x1ecd62] C [libjava.so+0x13764] Java_sun_reflect_NativeMethodAccessorImpl_invoke0+0x34 J sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; J sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; J sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; J java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; v ~RuntimeStub::alignment_frame_return Runtime1 stub j org.apache.catalina.security.SecurityUtil$1.run()Ljava/lang/Object;+12 v ~StubRoutines::call_stub V [libjvm.so+0x17900c] V [libjvm.so+0x286278] V [libjvm.so+0x178e3f] V [libjvm.so+0x1d64fd] C [libjava.so+0x93bc] Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedExceptionAction_2Ljava_security_AccessControlContext_2+0x3c j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0 j javax.security.auth.Subject.doAsPrivileged(Ljavax/security/auth/Subject;Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+60 j org.apache.catalina.security.SecurityUtil.execute(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;Ljava/security/Principal;)V+136 j org.apache.catalina.security.SecurityUtil.doAsPrivilege(Ljava/lang/String;Ljavax/servlet/Filter;[Ljava/lang/Class;[Ljava/lang/Object;)V+69 j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+103 j org.apache.catalina.core.ApplicationFilterChain.access$000(Lorg/apache/catalina/core/ApplicationFilterChain;Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+3 j org.apache.catalina.core.ApplicationFilterChain$1.run()Ljava/lang/Object;+12 v ~StubRoutines::call_stub V [libjvm.so+0x17900c] V [libjvm.so+0x286278] V [libjvm.so+0x178e3f] V [libjvm.so+0x1d64fd] C [libjava.so+0x936d] Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedExceptionAction_2+0x3d j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;+0 j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+22 j org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670 j org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 j org.apache.catalina.authenticator.AuthenticatorBase.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+675 ...... Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 j edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4 j br.com.company.appgis.model.appGisMapFactory.drawMap(Ledu/umn/gis/mapscript/mapObj;Ljava/io/File;Ljava/io/File;)V+6 j br.com.company.appgis.model.appGisMapFactory.createMapa(Ljava/util/Map;Ljava/util/List;)Lbr/com/company/appgis/model/vo/MapaVO;+208 j br.com.company.appgis.model.appGisService.buildMapa(Ljava/util/Map;Ljava/util/List;)Lbr/com/company/appgis/model/vo/MapaVO;+2 j br.com.company.app.gis.action.MapaAction.criaMapa(Ljavax/servlet/http/HttpServletRequest;)V+11 j br.com.company.app.gis.action.MapaAction.dvimgmapa(Lorg/apache/struts/action/ActionMapping;Lorg/apache/struts/action/DynaActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Lorg/apache/struts/action/ActionMessages;)Lorg/apache/struts/action/ActionForward;+2 v ~StubRoutines::call_stub J sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; J sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; J sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; J java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; j br.com.company.utilweb.action.AGISAction.execute(Lorg/apache/struts/action/ActionMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lorg/apache/struts/action/ActionForward;+81 j org.apache.struts.action.RequestProcessor.processActionPerform(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Lorg/apache/struts/action/Action;Lorg/apache/struts/action/ActionForm;Lorg/apache/struts/action/ActionMapping;)Lorg/apache/struts/action/ActionForward;+7 j org.apache.struts.action.RequestProcessor.process(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+219 j org.apache.struts.action.ActionServlet.process(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+40 j org.apache.struts.action.ActionServlet.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+3 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+139 j javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30 j sun.reflect.GeneratedMethodAccessor81.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+48 J sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; J java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; j org.apache.catalina.security.SecurityUtil$1.run()Ljava/lang/Object;+12 v ~StubRoutines::call_stub j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0 j javax.security.auth.Subject.doAsPrivileged(Ljavax/security/auth/Subject;Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+60 j org.apache.catalina.security.SecurityUtil.execute(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;Ljava/security/Principal;)V+136 j org.apache.catalina.security.SecurityUtil.doAsPrivilege(Ljava/lang/String;Ljavax/servlet/Servlet;[Ljava/lang/Class;[Ljava/lang/Object;Ljava/security/Principal;)V+70 j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+333 j org.apache.catalina.core.ApplicationFilterChain.access$000(Lorg/apache/catalina/core/ApplicationFilterChain;Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+3 j org.apache.catalina.core.ApplicationFilterChain$1.run()Ljava/lang/Object;+12 v ~StubRoutines::call_stub j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;+0 j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+22 j br.com.company.app.filter.AuthFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V+276 v ~StubRoutines::call_stub J sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; J sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; J sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; J java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; v ~RuntimeStub::alignment_frame_return Runtime1 stub j org.apache.catalina.security.SecurityUtil$1.run()Ljava/lang/Object;+12 v ~StubRoutines::call_stub j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0 j javax.security.auth.Subject.doAsPrivileged(Ljavax/security/auth/Subject;Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+60 j org.apache.catalina.security.SecurityUtil.execute(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;Ljava/security/Principal;)V+136 j org.apache.catalina.security.SecurityUtil.doAsPrivilege(Ljava/lang/String;Ljavax/servlet/Filter;[Ljava/lang/Class;[Ljava/lang/Object;)V+69 j org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+103 j org.apache.catalina.core.ApplicationFilterChain.access$000(Lorg/apache/catalina/core/ApplicationFilterChain;Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+3 j org.apache.catalina.core.ApplicationFilterChain$1.run()Ljava/lang/Object;+12 v ~StubRoutines::call_stub j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;+0 j org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+22 j org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+670 j org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+285 j org.apache.catalina.authenticator.AuthenticatorBase.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+675 j org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+64 j org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6 j org.apache.catalina.authenticator.SingleSignOn.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+451 j org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+42 j org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+141 j org.apache.coyote.http11.Http11Processor.process(Ljava/io/InputStream;Ljava/io/OutputStream;)V+566 j org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+113 j org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Ljava/net/Socket;Lorg/apache/tomcat/util/net/TcpConnection;[Ljava/lang/Object;)V+45 j org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt([Ljava/lang/Object;)V+102 j org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()V+167 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x09923858 JavaThread "Prototyper" daemon [_thread_blocked, id=7930] 0x09924e38 JavaThread "HouseKeeper" daemon [_thread_blocked, id=7929] 0x098b9f40 JavaThread "Thread-40" daemon [_thread_blocked, id=7928] 0x098b91c8 JavaThread "Thread-39" daemon [_thread_blocked, id=7927] 0x098b8cf0 JavaThread "Thread-38" daemon [_thread_blocked, id=7926] 0x094d9770 JavaThread "TP-Monitor" daemon [_thread_blocked, id=7919] 0x09857630 JavaThread "TP-Processor4" daemon [_thread_in_native, id=7918] 0x098568b8 JavaThread "TP-Processor3" daemon [_thread_blocked, id=7917] 0x0981eb48 JavaThread "TP-Processor2" daemon [_thread_blocked, id=7916] 0x0981e720 JavaThread "TP-Processor1" daemon [_thread_blocked, id=7915] 0x094628e8 JavaThread "http-8080-Monitor" [_thread_blocked, id=7914] =>0x094619e8 JavaThread "http-8080-Processor25" daemon [_thread_in_native, id=7913] 0x09460ae8 JavaThread "http-8080-Processor24" daemon [_thread_in_native, id=7912] 0x09790bb0 JavaThread "http-8080-Processor23" daemon [_thread_in_native, id=7911] 0x0978fcb0 JavaThread "http-8080-Processor22" daemon [_thread_blocked, id=7910] 0x0978edb0 JavaThread "http-8080-Processor21" daemon [_thread_blocked, id=7909] 0x09327cf8 JavaThread "http-8080-Processor20" daemon [_thread_blocked, id=7908] 0x09326df8 JavaThread "http-8080-Processor19" daemon [_thread_blocked, id=7907] 0x09325d80 JavaThread "http-8080-Processor18" daemon [_thread_blocked, id=7906] 0x0938f2b0 JavaThread "http-8080-Processor17" daemon [_thread_blocked, id=7905] 0x0938e3b0 JavaThread "http-8080-Processor16" daemon [_thread_blocked, id=7904] 0x0938d500 JavaThread "http-8080-Processor15" daemon [_thread_blocked, id=7903] 0x09471b00 JavaThread "http-8080-Processor14" daemon [_thread_blocked, id=7902] 0x09470c88 JavaThread "http-8080-Processor13" daemon [_thread_blocked, id=7901] 0x09283a18 JavaThread "http-8080-Processor12" daemon [_thread_blocked, id=7900] 0x09282b18 JavaThread "http-8080-Processor11" daemon [_thread_blocked, id=7899] 0x09281c18 JavaThread "http-8080-Processor10" daemon [_thread_blocked, id=7898] 0x092f2a78 JavaThread "http-8080-Processor9" daemon [_thread_blocked, id=7897] 0x092e49d0 JavaThread "http-8080-Processor8" daemon [_thread_blocked, id=7896] 0x093437d0 JavaThread "http-8080-Processor7" daemon [_thread_blocked, id=7895] 0x0978bc10 JavaThread "http-8080-Processor6" daemon [_thread_blocked, id=7894] 0x092580d8 JavaThread "http-8080-Processor5" daemon [_thread_blocked, id=7893] 0x092382b0 JavaThread "http-8080-Processor4" daemon [_thread_blocked, id=7892] 0x09238128 JavaThread "http-8080-Processor3" daemon [_thread_blocked, id=7891] 0x09485198 JavaThread "http-8080-Processor2" daemon [_thread_blocked, id=7890] 0x094fe210 JavaThread "http-8080-Processor1" daemon [_thread_blocked, id=7889] 0x092e53a8 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=7888] 0x09324c10 JavaThread "Prototyper" daemon [_thread_blocked, id=7868] 0x09325028 JavaThread "HouseKeeper" daemon [_thread_blocked, id=7867] 0x0937a190 JavaThread "Thread-3" daemon [_thread_blocked, id=7866] 0x093ad958 JavaThread "Thread-2" daemon [_thread_blocked, id=7865] 0x0937b4b0 JavaThread "Thread-1" daemon [_thread_blocked, id=7864] 0x0924c618 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=7862] 0x0924b070 JavaThread "CompilerThread0" daemon [_thread_blocked, id=7861] 0x0924a0c8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=7860] 0x09243300 JavaThread "Finalizer" daemon [_thread_blocked, id=7859] 0x092425a8 JavaThread "Reference Handler" daemon [_thread_blocked, id=7858] 0x092057a0 JavaThread "main" [_thread_in_native, id=7851] Other Threads: 0x0923fa10 VMThread [id=7857] 0x0924db00 WatcherThread [id=7863] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 1344K, used 541K [0x88b70000, 0x88ce0000, 0x89050000) eden space 1216K, 39% used [0x88b70000, 0x88be8a90, 0x88ca0000) from space 128K, 46% used [0x88cc0000, 0x88ccebf0, 0x88ce0000) to space 128K, 0% used [0x88ca0000, 0x88ca0000, 0x88cc0000) tenured generation total 17356K, used 13779K [0x89050000, 0x8a143000, 0x8cb70000) the space 17356K, 79% used [0x89050000, 0x89dc4f80, 0x89dc5000, 0x8a143000) compacting perm gen total 23296K, used 23043K [0x8cb70000, 0x8e230000, 0x90b70000) the space 23296K, 98% used [0x8cb70000, 0x8e1f0e98, 0x8e1f1000, 0x8e230000) ro space 8192K, 68% used [0x90b70000, 0x910ee070, 0x910ee200, 0x91370000) rw space 12288K, 48% used [0x91370000, 0x91935130, 0x91935200, 0x91f70000) Dynamic libraries: 00101000-00238000 r-xp 00000000 03:03 963025 /lib/libc-2.5.so 00238000-0023a000 r-xp 00137000 03:03 963025 /lib/libc-2.5.so 0023a000-0023b000 rwxp 00139000 03:03 963025 /lib/libc-2.5.so 0023b000-0023e000 rwxp 0023b000 00:00 0 00240000-0033e000 r-xp 00000000 03:03 254862 /usr/lib/libX11.so.6.2.0 0033e000-00342000 rwxp 000fe000 03:03 254862 /usr/lib/libX11.so.6.2.0 00344000-0034b000 r-xp 00000000 03:03 1035444 /lib/librt-2.5.so 0034b000-0034c000 r-xp 00006000 03:03 1035444 /lib/librt-2.5.so 0034c000-0034d000 rwxp 00007000 03:03 1035444 /lib/librt-2.5.so 0034f000-0035a000 r-xp 00000000 03:03 1035450 /lib/libgcc_s-4.1.1-20061011.so.1 0035a000-0035b000 rwxp 0000a000 03:03 1035450 /lib/libgcc_s-4.1.1-20061011.so.1 00362000-0037b000 r-xp 00000000 03:03 963015 /lib/ld-2.5.so 0037b000-0037c000 r-xp 00018000 03:03 963015 /lib/ld-2.5.so 0037c000-0037d000 rwxp 00019000 03:03 963015 /lib/ld-2.5.so 003ad000-003bd000 r-xp 00000000 03:03 232848 /usr/lib/libXpm.so.4.11.0 003bd000-003be000 rwxp 00010000 03:03 232848 /usr/lib/libXpm.so.4.11.0 0040e000-00410000 r-xp 00000000 03:03 1035459 /lib/libcom_err.so.2.1 00410000-00411000 rwxp 00001000 03:03 1035459 /lib/libcom_err.so.2.1 00413000-00498000 r-xp 00000000 03:03 254912 /usr/lib/libkrb5.so.3.2 00498000-0049a000 rwxp 00084000 03:03 254912 /usr/lib/libkrb5.so.3.2 0049c000-004c1000 r-xp 00000000 03:03 254911 /usr/lib/libk5crypto.so.3.0 004c1000-004c2000 rwxp 00025000 03:03 254911 /usr/lib/libk5crypto.so.3.0 004c4000-004cb000 r-xp 00000000 03:03 233178 /usr/lib/libkrb5support.so.0.1 004cb000-004cc000 rwxp 00006000 03:03 233178 /usr/lib/libkrb5support.so.0.1 00649000-00673000 r-xp 00000000 03:03 254913 /usr/lib/libgssapi_krb5.so.2.2 00673000-00674000 rwxp 00029000 03:03 254913 /usr/lib/libgssapi_krb5.so.2.2 00cf3000-00d23000 r-xp 00000000 03:03 254886 /usr/lib/libidn.so.11.5.19 00d23000-00d24000 rwxp 0002f000 03:03 254886 /usr/lib/libidn.so.11.5.19 00d31000-00d56000 r-xp 00000000 03:03 1035448 /lib/libm-2.5.so 00d56000-00d57000 r-xp 00024000 03:03 1035448 /lib/libm-2.5.so 00d57000-00d58000 rwxp 00025000 03:03 1035448 /lib/libm-2.5.so 00d5a000-00d5c000 r-xp 00000000 03:03 1035442 /lib/libdl-2.5.so 00d5c000-00d5d000 r-xp 00001000 03:03 1035442 /lib/libdl-2.5.so 00d5d000-00d5e000 rwxp 00002000 03:03 1035442 /lib/libdl-2.5.so 00d60000-00d73000 r-xp 00000000 03:03 1035443 /lib/libpthread-2.5.so 00d73000-00d74000 r-xp 00012000 03:03 1035443 /lib/libpthread-2.5.so 00d74000-00d75000 rwxp 00013000 03:03 1035443 /lib/libpthread-2.5.so 00d75000-00d77000 rwxp 00d75000 00:00 0 00d79000-00d8b000 r-xp 00000000 03:03 254856 /usr/lib/libz.so.1.2.3 00d8b000-00d8c000 rwxp 00011000 03:03 254856 /usr/lib/libz.so.1.2.3 00d8e000-00d93000 r-xp 00000000 03:03 254861 /usr/lib/libXdmcp.so.6.0.0 00d93000-00d94000 rwxp 00004000 03:03 254861 /usr/lib/libXdmcp.so.6.0.0 00d96000-00d98000 r-xp 00000000 03:03 254860 /usr/lib/libXau.so.6.0.0 00d98000-00d99000 rwxp 00001000 03:03 254860 /usr/lib/libXau.so.6.0.0 00d9b000-00dba000 r-xp 00000000 03:03 1035449 /lib/libexpat.so.0.5.0 00dba000-00dbc000 rwxp 0001e000 03:03 1035449 /lib/libexpat.so.0.5.0 05378000-0539f000 r-xp 00000000 03:03 254858 /usr/lib/libfontconfig.so.1.1.0 0539f000-053a7000 rwxp 00027000 03:03 254858 /usr/lib/libfontconfig.so.1.1.0 053d1000-054b2000 r-xp 00000000 03:03 254883 /usr/lib/libstdc++.so.6.0.8 054b2000-054b6000 r-xp 000e0000 03:03 254883 /usr/lib/libstdc++.so.6.0.8 054b6000-054b7000 rwxp 000e4000 03:03 254883 /usr/lib/libstdc++.so.6.0.8 054b7000-054bd000 rwxp 054b7000 00:00 0 054e6000-05507000 r-xp 00000000 03:03 242303 /usr/lib/libjpeg.so.62.0.0 05507000-05508000 rwxp 00020000 03:03 242303 /usr/lib/libjpeg.so.62.0.0 05b41000-05b50000 r-xp 00000000 03:03 1035458 /lib/libresolv-2.5.so 05b50000-05b51000 r-xp 0000e000 03:03 1035458 /lib/libresolv-2.5.so 05b51000-05b52000 rwxp 0000f000 03:03 1035458 /lib/libresolv-2.5.so 05b52000-05b54000 rwxp 05b52000 00:00 0 05b56000-05b68000 r-xp 00000000 03:03 1035457 /lib/libnsl-2.5.so 05b68000-05b69000 r-xp 00012000 03:03 1035457 /lib/libnsl-2.5.so 05b69000-05b6a000 rwxp 00013000 03:03 1035457 /lib/libnsl-2.5.so 05b6a000-05b6c000 rwxp 05b6a000 00:00 0 08048000-08057000 r-xp 00000000 03:05 671332 /home2/java/jdk1.5.0_07/jre/bin/java 08057000-08059000 rwxp 0000e000 03:05 671332 /home2/java/jdk1.5.0_07/jre/bin/java 09201000-0a87c000 rwxp 09201000 00:00 0 88b70000-88ce0000 rwxp 88b70000 00:00 0 88ce0000-89050000 rwxp 88ce0000 00:00 0 89050000-8a143000 rwxp 89050000 00:00 0 8a143000-8cb70000 rwxp 8a143000 00:00 0 8cb70000-8e230000 rwxp 8cb70000 00:00 0 8e230000-90b70000 rwxp 8e230000 00:00 0 90b70000-910ef000 r-xs 00001000 03:05 671961 /home2/java/jdk1.5.0_07/jre/lib/i386/client/classes.jsa 910ef000-91370000 rwxp 910ef000 00:00 0 91370000-91936000 rwxp 00580000 03:05 671961 /home2/java/jdk1.5.0_07/jre/lib/i386/client/classes.jsa 91936000-91f70000 rwxp 91936000 00:00 0 91f70000-9203f000 rwxp 00b46000 03:05 671961 /home2/java/jdk1.5.0_07/jre/lib/i386/client/classes.jsa 9203f000-92370000 rwxp 9203f000 00:00 0 92370000-92374000 r-xs 00c15000 03:05 671961 /home2/java/jdk1.5.0_07/jre/lib/i386/client/classes.jsa 92374000-92770000 rwxp 92374000 00:00 0 ad295000-ad29d000 r-xp 00000000 03:03 232920 /usr/lib/libgif.so.4.1.3 ad29d000-ad29e000 rwxp 00007000 03:03 232920 /usr/lib/libgif.so.4.1.3 ad29e000-ad393000 r-xp 00000000 03:05 32522 /home2/mapserver/geos/lib/libgeos.so.2.2.3 ad393000-ad398000 rwxp 000f5000 03:05 32522 /home2/mapserver/geos/lib/libgeos.so.2.2.3 ad398000-ad3a4000 r-xp 00000000 03:05 32526 /home2/mapserver/geos/lib/libgeos_c.so.1.1.1 ad3a4000-ad3a5000 rwxp 0000c000 03:05 32526 /home2/mapserver/geos/lib/libgeos_c.so.1.1.1 ad3a5000-ad4c1000 r-xp 00000000 03:03 960018 /lib/libcrypto.so.0.9.8b ad4c1000-ad4d3000 rwxp 0011c000 03:03 960018 /lib/libcrypto.so.0.9.8b ad4d3000-ad4d7000 rwxp ad4d3000 00:00 0 ad4d7000-ad518000 r-xp 00000000 03:03 960029 /lib/libssl.so.0.9.8b ad518000-ad51c000 rwxp 00040000 03:03 960029 /lib/libssl.so.0.9.8b ad51c000-ad55f000 r-xp 00000000 03:05 32446 /home2/mapserver/libcurl/lib/libcurl.so.3.0.0 ad55f000-ad560000 rwxp 00043000 03:05 32446 /home2/mapserver/libcurl/lib/libcurl.so.3.0.0 ad560000-ad89c000 r-xp 00000000 03:05 64015 /home2/mapserver/gdal/lib/libgdal.so.1.10.0 ad89c000-ad8e9000 rwxp 0033b000 03:05 64015 /home2/mapserver/gdal/lib/libgdal.so.1.10.0 ad8e9000-ad8ff000 rwxp ad8e9000 00:00 0 ad8ff000-ad93f000 r-xp 00000000 03:05 63977 /home2/mapserver/proj4/lib/libproj.so.0.5.0 ad93f000-ad941000 rwxp 0003f000 03:05 63977 /home2/mapserver/proj4/lib/libproj.so.0.5.0 ad941000-ad9ad000 r-xp 00000000 03:05 32127 /home2/mapserver/libtiff/lib/libtiff.so.3.8.2 ad9ad000-ad9af000 rwxp 0006c000 03:05 32127 /home2/mapserver/libtiff/lib/libtiff.so.3.8.2 ad9b9000-ad9c7000 r-xp 00000000 03:05 322918 /home2/mapserver/fonts/lsansd.ttf ad9c7000-ad9e8000 r-xp 00000000 03:05 31974 /home2/mapserver/libpng/lib/libpng12.so.0.12.0 ad9e8000-ad9e9000 rwxp 00020000 03:05 31974 /home2/mapserver/libpng/lib/libpng12.so.0.12.0 ad9e9000-ada49000 r-xp 00000000 03:05 32011 /home2/mapserver/freetype/lib/libfreetype.so.6.3.10 ada49000-ada4c000 rwxp 00060000 03:05 32011 /home2/mapserver/freetype/lib/libfreetype.so.6.3.10 ada4c000-ada68000 r-xp 00000000 03:05 32096 /home2/mapserver/gd/lib/libgd.so.2.0.0 ada68000-ada88000 rwxp 0001b000 03:05 32096 /home2/mapserver/gd/lib/libgd.so.2.0.0 ada88000-ada9c000 rwxp ada88000 00:00 0 ada9c000-adbef000 r-xp 00000000 03:05 386273 /home2/install/mapserver/mapscript/java/libmapscript.so adbef000-adbf3000 rwxp 00153000 03:05 386273 /home2/install/mapserver/mapscript/java/libmapscript.so adbf3000-adbf4000 rwxp adbf3000 00:00 0 adbf4000-adbf7000 --xp adbf4000 00:00 0 adbf7000-adc75000 rwxp adbf7000 00:00 0 adc75000-adc78000 --xp adc75000 00:00 0 adc78000-adcf6000 rwxp adc78000 00:00 0 adcf6000-adcf9000 --xp adcf6000 00:00 0 adcf9000-add77000 rwxp adcf9000 00:00 0 add77000-add7a000 --xp add77000 00:00 0 add7a000-addf8000 rwxp add7a000 00:00 0 addf8000-addfb000 --xp addf8000 00:00 0 addfb000-ade79000 rwxp addfb000 00:00 0 ade79000-ade97000 r-xs 00000000 03:07 1057549 /company/workspaces/app/GISappWEB/WEB-INF/lib/xpp3-1.1.3_8.jar ade97000-adeb3000 r-xs 00000000 03:07 1057535 /company/workspaces/app/GISappWEB/WEB-INF/lib/xmlrpc.jar adeb3000-adeb4000 r-xs 00000000 03:07 1057531 /company/workspaces/app/GISappWEB/WEB-INF/lib/toggletag.jar adeb4000-adf39000 r-xs 00000000 03:07 1057544 /company/workspaces/app/GISappWEB/WEB-INF/lib/struts.jar adf39000-adf3c000 r-xs 00000000 03:07 1057499 /company/workspaces/app/GISappWEB/WEB-INF/lib/struts-legacy.jar adf3c000-adfa2000 r-xs 00000000 03:07 1057541 /company/workspaces/app/GISappWEB/WEB-INF/lib/standard.jar adfa2000-ae01c000 r-xs 00000000 03:07 1057474 /company/workspaces/app/GISappWEB/WEB-INF/lib/proxool.jar ae01c000-ae0f5000 r-xs 00000000 03:07 1057486 /company/workspaces/app/GISappWEB/WEB-INF/lib/prefuse.jar ae0f5000-ae194000 r-xs 00000000 03:07 1057562 /company/workspaces/app/GISappWEB/WEB-INF/lib/poi-scratchpad-3.0-alpha1-20050704.jar ae194000-ae266000 r-xs 00000000 03:07 1057553 /company/workspaces/app/GISappWEB/WEB-INF/lib/poi-3.0-alpha1-20050704.jar ae266000-ae38f000 r-xs 00000000 03:07 1057910 /company/workspaces/app/GISappWEB/WEB-INF/lib/oracle.jar ae38f000-ae507000 r-xs 00000000 03:07 1057540 /company/workspaces/app/GISappWEB/WEB-INF/lib/ojdbc14.jar ae507000-ae52b000 r-xs 00000000 03:07 1057563 /company/workspaces/app/GISappWEB/WEB-INF/lib/mapscript.jar ae52b000-ae580000 r-xs 00000000 03:07 1057548 /company/workspaces/app/GISappWEB/WEB-INF/lib/mail.jar ae580000-ae5d0000 r-xs 00000000 03:07 1057530 /company/workspaces/app/GISappWEB/WEB-INF/lib/lucene-1.4.3.jar ae5d0000-ae62a000 r-xs 00000000 03:07 1057488 /company/workspaces/app/GISappWEB/WEB-INF/lib/looks-2.0.1.jar ae62a000-ae682000 r-xs 00000000 03:07 1057561 /company/workspaces/app/GISappWEB/WEB-INF/lib/log4j-1.2.13.jar ae682000-ae6ec000 r-xs 00000000 03:07 1057558 /company/workspaces/app/GISappWEB/WEB-INF/lib/jxl.jar ae6ec000-ae70a000 r-xs 00000000 03:07 1057555 /company/workspaces/app/GISappWEB/WEB-INF/lib/junit-3.8.1.jar ae70a000-ae70d000 r-xs 00000000 03:07 1057532 /company/workspaces/app/GISappWEB/WEB-INF/lib/jta.jar ae70d000-ae713000 r-xs 00000000 03:07 1057533 /company/workspaces/app/GISappWEB/WEB-INF/lib/jstl.jar ae713000-ae71d000 r-xs 00000000 03:07 1057559 /company/workspaces/app/GISappWEB/WEB-INF/lib/json-1.0.0.jar ae71d000-ae73c000 r-xs 00000000 03:07 1057477 /company/workspaces/app/GISappWEB/WEB-INF/lib/jcalendar-1.3.2.jar ae73c000-ae8b0000 r-xs 00000000 03:07 1057543 /company/workspaces/app/GISappWEB/WEB-INF/lib/jasperreports-1.2.7.jar ae8b0000-ae8c0000 r-xs 00000000 03:07 1057484 /company/workspaces/app/GISappWEB/WEB-INF/lib/jakarta-oro.jar ae8c0000-ae8ce000 r-xs 00000000 03:07 1057293 /company/workspaces/app/GISappWEB/WEB-INF/lib/app-util-1.0.0.jar ae8ce000-ae8dc000 r-xs 00000000 03:07 1057328 /company/workspaces/app/GISappWEB/WEB-INF/lib/app-pojo-1.0.0.jar ae8dc000-ae8de000 r-xs 00000000 03:07 1057417 /company/workspaces/app/GISappWEB/WEB-INF/lib/app-pessoas-1.0.0.jar ae8de000-ae8e1000 r-xs 00000000 03:07 1057389 /company/workspaces/app/GISappWEB/WEB-INF/lib/app-gis-1.0.0.jar ae8e1000-ae8e7000 r-xs 00000000 03:07 1057373 /company/workspaces/app/GISappWEB/WEB-INF/lib/app-dao-1.0.0.jar ae8e7000-aeafb000 r-xs 00000000 03:07 1057506 /company/workspaces/app/GISappWEB/WEB-INF/lib/hibernate3.jar aeafb000-aeb54000 r-xs 00000000 03:07 1057536 /company/workspaces/app/GISappWEB/WEB-INF/lib/hibernate-annotations.jar aeb54000-aeb57000 r-xs 00000000 03:07 1057339 /company/workspaces/app/GISappWEB/WEB-INF/lib/generic-dao-1.0.1.jar aeb57000-aeb58000 r-xs 00000000 03:07 1057554 /company/workspaces/app/GISappWEB/WEB-INF/lib/fileupload-ext.jar aeb58000-aeb65000 r-xs 00000000 03:07 1057482 /company/workspaces/app/GISappWEB/WEB-INF/lib/ejb3-persistence.jar aeb65000-aeb71000 r-xs 00000000 03:07 1057480 /company/workspaces/app/GISappWEB/WEB-INF/lib/ehcache-1.1.jar aeb71000-aeb9e000 r-xs 00000000 03:07 1057492 /company/workspaces/app/GISappWEB/WEB-INF/lib/dwr.jar aeb9e000-aebeb000 r-xs 00000000 03:07 1057478 /company/workspaces/app/GISappWEB/WEB-INF/lib/dom4j-1.6.1.jar aebeb000-aebf3000 r-xs 00000000 03:07 1057537 /company/workspaces/app/GISappWEB/WEB-INF/lib/company-util-0.4.0.jar aebf3000-aebfb000 r-xs 00000000 03:07 1057483 /company/workspaces/app/GISappWEB/WEB-INF/lib/company-license.jar aebfb000-aebfe000 r-xs 00000000 03:07 1057505 /company/workspaces/app/GISappWEB/WEB-INF/lib/company-license-0.1.9.jar aebfe000-aec07000 r-xs 00000000 03:07 1057327 /company/workspaces/app/GISappWEB/WEB-INF/lib/GIS-utilweb-1.0.0.jar aec07000-aec24000 r-xs 00000000 03:07 1057209 /company/workspaces/app/GISappWEB/WEB-INF/lib/GIS-util-1.0.0.jar aec24000-aec32000 r-xs 00000000 03:07 1057547 /company/workspaces/app/GISappWEB/WEB-INF/lib/daisy-util-1.4.1.jar aec32000-aec47000 r-xs 00000000 03:07 1057476 /company/workspaces/app/GISappWEB/WEB-INF/lib/commons-validator.jar aec47000-aec76000 r-xs 00000000 03:07 1057479 /company/workspaces/app/GISappWEB/WEB-INF/lib/commons-net.jar aec76000-aec80000 r-xs 00000000 03:07 1057545 /company/workspaces/app/GISappWEB/WEB-INF/lib/commons-logging-1.0.4.jar aec80000-aecac000 r-xs 00000000 03:07 1057551 /company/workspaces/app/GISappWEB/WEB-INF/lib/commons-lang.jar aecac000-aecc1000 r-xs 00000000 03:07 1057560 /company/workspaces/app/GISappWEB/WEB-INF/lib/commons-io-1.3.jar aecc1000-aed05000 r-xs 00000000 03:07 1057556 /company/workspaces/app/GISappWEB/WEB-INF/lib/commons-httpclient-3.0-rc2.jar aed05000-aed0b000 r-xs 00000000 03:07 1057489 /company/workspaces/app/GISappWEB/WEB-INF/lib/commons-fileupload.jar aed0b000-aed13000 r-xs 00000000 03:07 1057557 /company/workspaces/app/GISappWEB/WEB-INF/lib/commons-fileupload-1.1.jar aed13000-aed2f000 r-xs 00000000 03:07 1057490 /company/workspaces/app/GISappWEB/WEB-INF/lib/commons-digester.jar aed2f000-aedbf000 r-xs 00000000 03:07 1057487 /company/workspaces/app/GISappWEB/WEB-INF/lib/commons-collections.jar aedbf000-aedde000 r-xs 00000000 03:07 1057485 /company/workspaces/app/GISappWEB/WEB-INF/lib/commons-beanutils.jar aedde000-aee23000 r-xs 00000000 03:07 1057542 /company/workspaces/app/GISappWEB/WEB-INF/lib/cglib-2.1.3.jar aee23000-aee40000 r-xs 00000000 03:07 1057546 /company/workspaces/app/GISappWEB/WEB-INF/lib/cewolf.jar aee40000-aee47000 r-xs 00000000 03:07 1057539 /company/workspaces/app/GISappWEB/WEB-INF/lib/asm.jar aee47000-aee4c000 r-xs 00000000 03:07 1057475 /company/workspaces/app/GISappWEB/WEB-INF/lib/asm-attrs.jar aee4c000-aeeb9000 r-xs 00000000 03:07 1057534 /company/workspaces/app/GISappWEB/WEB-INF/lib/antlr-2.7.6rc1.jar aeeb9000-aef23000 r-xs 00000000 03:07 1057491 /company/workspaces/app/GISappWEB/WEB-INF/lib/antlr-2.7.5H3.jar aef23000-aef25000 r-xs 00000000 03:07 1057405 /company/workspaces/app/GISappWEB/WEB-INF/lib/analise-grafica-1.0.0.jar aef25000-aef47000 r-xs 00000000 03:07 1057550 /company/workspaces/app/GISappWEB/WEB-INF/lib/Tidy.jar aef47000-af26d000 r-xs 00000000 03:07 1057552 /company/workspaces/app/GISappWEB/WEB-INF/lib/PDFBox-0.7.2-log4j.jar af26d000-af288000 r-xs 00000000 03:07 992141 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/xmlrpc-1.2-b1.jar af288000-af2f4000 r-xs 00000000 03:07 992140 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/proxool-0.9.0RC2.jar af2f4000-af323000 r-xs 00000000 03:07 992139 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/pg73jdbc3.jar af323000-af442000 r-xs 00000000 03:07 993362 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/ojdbc14.jar af442000-af499000 r-xs 00000000 03:07 992138 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/log4j-1.2.9.jar af499000-af49c000 r-xs 00000000 03:07 992137 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/jta.jar af49c000-af49e000 r-xs 00000000 03:07 992136 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/jdbc2_0-stdext.jar af49e000-af6b7000 r-xs 00000000 03:07 992135 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/hibernate3.jar af6b7000-af6ba000 r-xs 00000000 03:07 992133 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/fonetiza.jar af6ba000-af707000 r-xs 00000000 03:07 992132 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/dom4j-1.6.jar af707000-af70f000 r-xs 00000000 03:07 992131 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/company-util-0.3.1.jar af70f000-af712000 r-xs 00000000 03:07 992130 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/company-seguranca.jar af712000-af719000 r-xs 00000000 03:07 992129 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/company-license-0.3.2.jar af719000-af723000 r-xs 00000000 03:07 992128 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/commons-logging-1.0.4.jar af723000-af74d000 r-xs 00000000 03:07 992127 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/commons-lang-2.0.jar af74d000-af778000 r-xs 00000000 03:07 992126 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/commons-collections-2.1.1.jar af778000-af795000 r-xs 00000000 03:07 992125 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/commons-beanutils-1.6.1.jar af795000-af7da000 r-xs 00000000 03:07 992124 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/cglib-2.1.jar af7da000-af800000 r-xs 00000000 03:07 992123 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/cadpessoas.jar af800000-af86d000 r-xs 00000000 03:07 992119 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/antlr-2.7.6.jar af86d000-af889000 r-xs 00000000 03:07 993279 /company/workspaces/app/GISappInterface/WEB-INF/lib/xmlrpc.jar af889000-af8a4000 r-xs 00000000 03:07 993278 /company/workspaces/app/GISappInterface/WEB-INF/lib/xmlrpc-1.2-b1.jar af8a4000-af8a7000 r-xs 00000000 03:07 993275 /company/workspaces/app/GISappInterface/WEB-INF/lib/struts-legacy.jar af8a7000-af90d000 r-xs 00000000 03:07 993272 /company/workspaces/app/GISappInterface/WEB-INF/lib/standard.jar af90d000-af987000 r-xs 00000000 03:07 993268 /company/workspaces/app/GISappInterface/WEB-INF/lib/proxool.jar af987000-af9fc000 r-xs 00000000 03:07 993267 /company/workspaces/app/GISappInterface/WEB-INF/lib/proxool-0.8.3.jar af9fc000-afa20000 r-xs 00000000 03:07 993266 /company/workspaces/app/GISappInterface/WEB-INF/lib/mapscript.jar afa20000-afa7b000 r-xs 00000000 03:07 993265 /company/workspaces/app/GISappInterface/WEB-INF/lib/log4j.jar afa7b000-afa7e000 r-xs 00000000 03:07 993264 /company/workspaces/app/GISappInterface/WEB-INF/lib/jta.jar afa7e000-afa84000 r-xs 00000000 03:07 993263 /company/workspaces/app/GISappInterface/WEB-INF/lib/jstl.jar afa84000-afa94000 r-xs 00000000 03:07 993262 /company/workspaces/app/GISappInterface/WEB-INF/lib/jakarta-oro.jar afa94000-afaa2000 r-xs 00000000 03:07 992496 /company/workspaces/app/GISappInterface/WEB-INF/lib/app-pojo-1.0.0.jar afaa2000-afac4000 r-xs 00000000 03:07 993261 /company/workspaces/app/GISappInterface/WEB-INF/lib/guardiaoWebPojo.jar afac4000-afaf1000 r-xs 00000000 03:07 993260 /company/workspaces/app/GISappInterface/WEB-INF/lib/dwr.jar afaf1000-afb68000 r-xs 00000000 03:07 993259 /company/workspaces/app/GISappInterface/WEB-INF/lib/dom4j-1.4.jar afb68000-afc80000 r-xs 00000000 03:07 993254 /company/workspaces/app/GISappInterface/WEB-INF/lib/db2jcc.jar afc80000-afd05000 r-xs 00000000 03:07 1057567 /company/workspaces/app/GISappWEB/WEB-INF/lib/struts.jar (deleted) afd0d000-afd12000 r-xs 00000000 03:07 1057481 /company/workspaces/app/GISappWEB/WEB-INF/lib/OtherAppServer.jar afd12000-afd19000 r-xs 00000000 03:07 992122 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/asm.jar afd19000-afd48000 r-xs 00000000 03:07 993252 /company/workspaces/app/GISappInterface/WEB-INF/lib/commons-net.jar afd48000-afd51000 r-xs 00000000 03:07 993251 /company/workspaces/app/GISappInterface/WEB-INF/lib/commons-logging.jar afd51000-afd5b000 r-xs 00000000 03:07 993250 /company/workspaces/app/GISappInterface/WEB-INF/lib/commons-logging-1.0.4.jar afd5b000-afd87000 r-xs 00000000 03:07 993249 /company/workspaces/app/GISappInterface/WEB-INF/lib/commons-lang.jar afd87000-afdb1000 r-xs 00000000 03:07 993248 /company/workspaces/app/GISappInterface/WEB-INF/lib/commons-lang-2.0.jar afdb1000-afdcd000 r-xs 00000000 03:07 993246 /company/workspaces/app/GISappInterface/WEB-INF/lib/commons-digester.jar afdcd000-afde4000 r-xs 00000000 03:07 993245 /company/workspaces/app/GISappInterface/WEB-INF/lib/commons-digester-1.3.jar afde4000-afe74000 r-xs 00000000 03:07 993244 /company/workspaces/app/GISappInterface/WEB-INF/lib/commons-collections.jar afe74000-afefd000 r-xs 00000000 03:07 993242 /company/workspaces/app/GISappInterface/WEB-INF/lib/commons-collections-3.1.jar afefd000-aff00000 --xp afefd000 00:00 0 aff00000-aff7e000 rwxp aff00000 00:00 0 aff7e000-aff81000 --xp aff7e000 00:00 0 aff81000-affff000 rwxp aff81000 00:00 0 affff000-b0002000 --xp affff000 00:00 0 b0002000-b0080000 rwxp b0002000 00:00 0 b0080000-b0083000 --xp b0080000 00:00 0 b0083000-b0101000 rwxp b0083000 00:00 0 b0101000-b0104000 --xp b0101000 00:00 0 b0104000-b0182000 rwxp b0104000 00:00 0 b0182000-b0185000 --xp b0182000 00:00 0 b0185000-b0203000 rwxp b0185000 00:00 0 b0203000-b0206000 --xp b0203000 00:00 0 b0206000-b0284000 rwxp b0206000 00:00 0 b0284000-b0287000 --xp b0284000 00:00 0 b0287000-b0305000 rwxp b0287000 00:00 0 b0305000-b0308000 --xp b0305000 00:00 0 b0308000-b0386000 rwxp b0308000 00:00 0 b0386000-b0389000 --xp b0386000 00:00 0 b0389000-b0407000 rwxp b0389000 00:00 0 b0407000-b040a000 --xp b0407000 00:00 0 b040a000-b0488000 rwxp b040a000 00:00 0 b0488000-b048b000 --xp b0488000 00:00 0 b048b000-b0509000 rwxp b048b000 00:00 0 b0509000-b050c000 --xp b0509000 00:00 0 b050c000-b058a000 rwxp b050c000 00:00 0 b058a000-b058d000 --xp b058a000 00:00 0 b058d000-b060b000 rwxp b058d000 00:00 0 b060b000-b060e000 --xp b060b000 00:00 0 b060e000-b068c000 rwxp b060e000 00:00 0 b068c000-b068f000 --xp b068c000 00:00 0 b068f000-b070d000 rwxp b068f000 00:00 0 b070d000-b0710000 --xp b070d000 00:00 0 b0710000-b078e000 rwxp b0710000 00:00 0 b078e000-b0791000 --xp b078e000 00:00 0 b0791000-b080f000 rwxp b0791000 00:00 0 b080f000-b0812000 --xp b080f000 00:00 0 b0812000-b0890000 rwxp b0812000 00:00 0 b0890000-b0893000 --xp b0890000 00:00 0 b0893000-b0911000 rwxp b0893000 00:00 0 b0911000-b0914000 --xp b0911000 00:00 0 b0914000-b0992000 rwxp b0914000 00:00 0 b0992000-b0995000 --xp b0992000 00:00 0 b0995000-b0a13000 rwxp b0995000 00:00 0 b0a13000-b0a16000 --xp b0a13000 00:00 0 b0a16000-b0a94000 rwxp b0a16000 00:00 0 b0a94000-b0a97000 --xp b0a94000 00:00 0 b0a97000-b0b15000 rwxp b0a97000 00:00 0 b0b15000-b0b18000 --xp b0b15000 00:00 0 b0b18000-b0b96000 rwxp b0b18000 00:00 0 b0b96000-b0b99000 --xp b0b96000 00:00 0 b0b99000-b0c17000 rwxp b0b99000 00:00 0 b0c17000-b0c90000 r-xs 00000000 03:07 993276 /company/workspaces/app/GISappInterface/WEB-INF/lib/struts.jar b0c90000-b0c95000 r-xs 00000000 03:07 992121 /company/workspaces/app/pessoasProcesso/WEB-INF/lib/asm-attrs.jar b0c95000-b0cb4000 r-xs 00000000 03:07 993239 /company/workspaces/app/GISappInterface/WEB-INF/lib/commons-beanutils.jar b0cb4000-b0cf9000 r-xs 00000000 03:07 993237 /company/workspaces/app/GISappInterface/WEB-INF/lib/cglib-2.1.jar b0cf9000-b0cfc000 --xp b0cf9000 00:00 0 b0cfc000-b0d7a000 rwxp b0cfc000 00:00 0 b0d7a000-b0d7d000 --xp b0d7a000 00:00 0 b0d7d000-b0dfb000 rwxp b0d7d000 00:00 0 b0dfb000-b0dfe000 --xp b0dfb000 00:00 0 b0dfe000-b0e7c000 rwxp b0dfe000 00:00 0 b0e7c000-b0e7f000 --xp b0e7c000 00:00 0 b0e7f000-b0efd000 rwxp b0e7f000 00:00 0 b0efd000-b0f00000 --xp b0efd000 00:00 0 b0f00000-b0f7e000 rwxp b0f00000 00:00 0 b0f7e000-b0f81000 --xp b0f7e000 00:00 0 b0f81000-b0fff000 rwxp b0f81000 00:00 0 b0fff000-b1002000 --xp b0fff000 00:00 0 b1002000-b1080000 rwxp b1002000 00:00 0 b1080000-b108c000 r-xs 00000000 03:07 993253 /company/workspaces/app/GISappInterface/WEB-INF/lib/commons-validator.jar b108f000-b1090000 rwxp b108f000 00:00 0 b1090000-b1098000 r-xs 00000000 03:07 993258 /company/workspaces/app/GISappInterface/WEB-INF/lib/company-util-0.4.0.jar b1098000-b10b5000 r-xs 00000000 03:07 993238 /company/workspaces/app/GISappInterface/WEB-INF/lib/commons-beanutils-1.6.1.jar b10b5000-b10b9000 r-xp 00000000 03:03 960039 /lib/libnss_dns-2.5.so b10b9000-b10ba000 r-xp 00003000 03:03 960039 /lib/libnss_dns-2.5.so b10ba000-b10bb000 rwxp 00004000 03:03 960039 /lib/libnss_dns-2.5.so b10bb000-b10bd000 rwxp b10bb000 00:00 0 b10bd000-b10be000 r-xs 00000000 03:07 993277 /company/workspaces/app/GISappInterface/WEB-INF/lib/toggletag.jar b10be000-b10c6000 r-xs 00000000 03:07 993257 /company/workspaces/app/GISappInterface/WEB-INF/lib/company-license.jar b10c6000-b10cc000 r-xs 00000000 03:07 993247 /company/workspaces/app/GISappInterface/WEB-INF/lib/commons-fileupload.jar b10cc000-b10d3000 r-xs 00000000 03:07 993236 /company/workspaces/app/GISappInterface/WEB-INF/lib/asm.jar b10d3000-b10d6000 --xp b10d3000 00:00 0 b10d6000-b1154000 rwxp b10d6000 00:00 0 b1154000-b1157000 r-xs 00000000 03:07 993256 /company/workspaces/app/GISappInterface/WEB-INF/lib/company-license-0.1.9.jar b1157000-b115c000 r-xs 00000000 03:07 993235 /company/workspaces/app/GISappInterface/WEB-INF/lib/asm-attrs.jar b115c000-b11c6000 r-xs 00000000 03:07 993234 /company/workspaces/app/GISappInterface/WEB-INF/lib/antlr-2.7.5H3.jar b11c6000-b11cb000 r-xs 00000000 03:07 993233 /company/workspaces/app/GISappInterface/WEB-INF/lib/OtherAppServer.jar b11cb000-b11ce000 --xp b11cb000 00:00 0 b11ce000-b124c000 rwxp b11ce000 00:00 0 b124c000-b124f000 --xp b124c000 00:00 0 b124f000-b12cd000 rwxp b124f000 00:00 0 b12cd000-b12d0000 --xp b12cd000 00:00 0 b12d0000-b134e000 rwxp b12d0000 00:00 0 b134e000-b1372000 r-xs 00000000 03:05 32533 /home2/mapserver/mapscript/mapscript.jar b1372000-b1386000 r-xp 00000000 03:05 671370 /home2/java/jdk1.5.0_07/jre/lib/i386/libnet.so b1386000-b1387000 rwxp 00013000 03:05 671370 /home2/java/jdk1.5.0_07/jre/lib/i386/libnet.so b1387000-b138c000 r-xs 00000000 03:05 639611 /home2/java/apache-tomcat-5.5.17/server/lib/tomcat-jkstatus-ant.jar b138c000-b138e000 r-xs 00000000 03:05 639604 /home2/java/apache-tomcat-5.5.17/server/lib/servlets-invoker.jar b138e000-b13b7000 r-xs 00000000 03:05 639607 /home2/java/apache-tomcat-5.5.17/server/lib/tomcat-ajp.jar b13b7000-b13bd000 r-xs 00000000 03:05 639595 /home2/java/apache-tomcat-5.5.17/server/lib/catalina-ant-jmx.jar b13bd000-b13c2000 r-xs 00000000 03:05 639609 /home2/java/apache-tomcat-5.5.17/server/lib/tomcat-coyote.jar b13c2000-b13df000 r-xs 00000000 03:05 639598 /home2/java/apache-tomcat-5.5.17/server/lib/catalina-optional.jar b13df000-b147f000 r-xs 00000000 03:05 639600 /home2/java/apache-tomcat-5.5.17/server/lib/catalina.jar b147f000-b1486000 r-xs 00000000 03:05 639596 /home2/java/apache-tomcat-5.5.17/server/lib/catalina-ant.jar b1486000-b14c7000 r-xs 00000000 03:05 639612 /home2/java/apache-tomcat-5.5.17/server/lib/tomcat-util.jar b14c7000-b14d7000 r-xs 00000000 03:05 639599 /home2/java/apache-tomcat-5.5.17/server/lib/catalina-storeconfig.jar b14d7000-b14ed000 r-xs 00000000 03:05 639610 /home2/java/apache-tomcat-5.5.17/server/lib/tomcat-http.jar b14ed000-b1520000 r-xs 00000000 03:05 639597 /home2/java/apache-tomcat-5.5.17/server/lib/catalina-cluster.jar b1520000-b153b000 r-xs 00000000 03:05 639601 /home2/java/apache-tomcat-5.5.17/server/lib/commons-modeler.jar b153b000-b1541000 r-xs 00000000 03:05 639606 /home2/java/apache-tomcat-5.5.17/server/lib/servlets-webdav.jar b1541000-b1548000 r-xs 00000000 03:05 639608 /home2/java/apache-tomcat-5.5.17/server/lib/tomcat-apr.jar b1548000-b154d000 r-xs 00000000 03:05 639603 /home2/java/apache-tomcat-5.5.17/server/lib/servlets-default.jar b154d000-b155a000 r-xs 00000000 03:05 639590 /home2/java/apache-tomcat-5.5.17/common/lib/jsp-api.jar b155a000-b155b000 r-xs 00000000 03:05 640464 /home2/java/apache-tomcat-5.5.17/common/lib/db2jcc_license_cu.jar b155b000-b1581000 r-xs 00000000 03:05 639591 /home2/java/apache-tomcat-5.5.17/common/lib/naming-factory-dbcp.jar b1581000-b16aa000 r-xs 00000000 03:05 639587 /home2/java/apache-tomcat-5.5.17/common/lib/jasper-compiler-jdt.jar b16aa000-b16ac000 r-xs 00000000 03:05 640470 /home2/java/apache-tomcat-5.5.17/common/lib/company-login2.jar b16ac000-b16bf000 r-xs 00000000 03:05 639589 /home2/java/apache-tomcat-5.5.17/common/lib/jasper-runtime.jar b16bf000-b1741000 r-xs 00000000 03:05 640471 /home2/java/apache-tomcat-5.5.17/common/lib/ifxjdbc.jar b1741000-b175d000 r-xs 00000000 03:05 639586 /home2/java/apache-tomcat-5.5.17/common/lib/commons-el.jar b175d000-b1769000 r-xs 00000000 03:05 639593 /home2/java/apache-tomcat-5.5.17/common/lib/naming-resources.jar b1769000-b1781000 r-xs 00000000 03:05 639594 /home2/java/apache-tomcat-5.5.17/common/lib/servlet-api.jar b1781000-b17e5000 r-xs 00000000 03:05 639588 /home2/java/apache-tomcat-5.5.17/common/lib/jasper-compiler.jar b17e5000-b17ef000 r-xs 00000000 03:05 639592 /home2/java/apache-tomcat-5.5.17/common/lib/naming-factory.jar b17ef000-b1907000 r-xs 00000000 03:05 640462 /home2/java/apache-tomcat-5.5.17/common/lib/db2jcc.jar b1907000-b1fc1000 r-xs 00000000 03:05 640472 /home2/java/apache-tomcat-5.5.17/common/lib/tools.jar b1fc1000-b1fc9000 r-xs 00000000 03:05 639584 /home2/java/apache-tomcat-5.5.17/common/i18n/tomcat-i18n-fr.jar b1fc9000-b1fd2000 r-xs 00000000 03:05 639585 /home2/java/apache-tomcat-5.5.17/common/i18n/tomcat-i18n-ja.jar b1fd2000-b1fdb000 r-xs 00000000 03:05 639583 /home2/java/apache-tomcat-5.5.17/common/i18n/tomcat-i18n-es.jar b1fdb000-b1fe5000 r-xs 00000000 03:05 639582 # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0xada54182, pid=7851, tid=2955426704 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_07-b03 mixed mode, sharing) # Problematic frame: # C [libgd.so.2+0x8182] # --------------- T H R E A D --------------- Current thread (0x094619e8): JavaThread "http-8080-Processor25" daemon [_thread_in_native, id=7913] si /home2/java/apache-tomcat-5.5.17/common/i18n/tomcat-i18n-en.jar b1fe5000-b1fe9000 r-xs 00000000 03:05 639575 /home2/java/apache-tomcat-5.5.17/bin/tomcat-juli.jar b1fe9000-b1ff0000 r-xs 00000000 03:05 639565 /home2/java/apache-tomcat-5.5.17/bin/commons-logging-api.jar b1ff0000-b1ff6000 r-xs 00000000 03:05 639561 /home2/java/apache-tomcat-5.5.17/bin/bootstrap.jar b1ff6000-b1ff8000 r-xs 00000000 03:05 671406 /home2/java/jdk1.5.0_07/jre/lib/ext/dnsns.jar b1ff8000-b201f000 r-xs 00000000 03:05 671404 /home2/java/jdk1.5.0_07/jre/lib/ext/sunjce_provider.jar b201f000-b204a000 r-xs 00000000 03:05 671405 /home2/java/jdk1.5.0_07/jre/lib/ext/sunpkcs11.jar b204a000-b210e000 r-xs 00000000 03:05 671977 /home2/java/jdk1.5.0_07/jre/lib/ext/localedata.jar b210e000-b210f000 --xp b210e000 00:00 0 b210f000-b218f000 rwxp b210f000 00:00 0 b218f000-b2192000 --xp b218f000 00:00 0 b2192000-b2210000 rwxp b2192000 00:00 0 b2210000-b2213000 --xp b2210000 00:00 0 b2213000-b2291000 rwxp b2213000 00:00 0 b2291000-b2294000 --xp b2291000 00:00 0 b2294000-b2312000 rwxp b2294000 00:00 0 b2312000-b2313000 r-xp 01720000 03:03 230559 /usr/lib/locale/locale-archive b2313000-b2318000 r-xp 016c4000 03:03 230559 /usr/lib/locale/locale-archive b2318000-b234c000 r-xp 0167a000 03:03 230559 /usr/lib/locale/locale-archive b234c000-b254c000 r-xp 00000000 03:03 230559 /usr/lib/locale/locale-archive b254c000-b254f000 --xp b254c000 00:00 0 b254f000-b25cd000 rwxp b254f000 00:00 0 b25cd000-b25d0000 --xp b25cd000 00:00 0 b25d0000-b264e000 rwxp b25d0000 00:00 0 b264e000-b264f000 --xp b264e000 00:00 0 b264f000-b26e7000 rwxp b264f000 00:00 0 b26e7000-b26fc000 rwxp b26e7000 00:00 0 b26fc000-b2705000 rwxp b26fc000 00:00 0 b2705000-b271a000 rwxp b2705000 00:00 0 b271a000-b271b000 rwxp b271a000 00:00 0 b271b000-b271c000 rwxp b271b000 00:00 0 b271c000-b2725000 rwxp b271c000 00:00 0 b2725000-b273a000 rwxp b2725000 00:00 0 b273a000-b2746000 rwxp b273a000 00:00 0 b2746000-b275a000 rwxp b2746000 00:00 0 b275a000-b2774000 rwxp b275a000 00:00 0 b2774000-b27e5000 rwxp b2774000 00:00 0 b27e5000-b2b8d000 rwxp b27e5000 00:00 0 b2b8d000-b47e5000 rwxp b2b8d000 00:00 0 b47e5000-b5052000 r-xs 00000000 03:05 671976 /home2/java/jdk1.5.0_07/jre/lib/charsets.jar b5052000-b5067000 r-xs 00000000 03:05 671408 /home2/java/jdk1.5.0_07/jre/lib/jce.jar b5067000-b50ec000 r-xs 00000000 03:05 671919 /home2/java/jdk1.5.0_07/jre/lib/jsse.jar b50ec000-b5155000 rwxp b50ec000 00:00 0 b5155000-b7759000 r-xs 00000000 03:05 671998 /home2/java/jdk1.5.0_07/jre/lib/rt.jar b7759000-b776c000 r-xp 00000000 03:05 671367 /home2/java/jdk1.5.0_07/jre/lib/i386/libzip.so b776c000-b776e000 rwxp 00012000 03:05 671367 /home2/java/jdk1.5.0_07/jre/lib/i386/libzip.so b776e000-b778f000 r-xp 00000000 03:05 671365 /home2/java/jdk1.5.0_07/jre/lib/i386/libjava.so b778f000-b7791000 rwxp 00020000 03:05 671365 /home2/java/jdk1.5.0_07/jre/lib/i386/libjava.so b7791000-b779c000 r-xp 00000000 03:05 671364 /home2/java/jdk1.5.0_07/jre/lib/i386/libverify.so b779c000-b779d000 rwxp 0000b000 03:05 671364 /home2/java/jdk1.5.0_07/jre/lib/i386/libverify.so b779d000-b77a5000 rwxs 00000000 03:03 192030 /tmp/hsperfdata_root/7851 b77a5000-b7b09000 r-xp 00000000 03:05 671358 /home2/java/jdk1.5.0_07/jre/lib/i386/client/libjvm.so b7b09000-b7b28000 rwxp 00363000 03:05 671358 /home2/java/jdk1.5.0_07/jre/lib/i386/client/libjvm.so b7b28000-b7f3f000 rwxp b7b28000 00:00 0 b7f3f000-b7f40000 r-xs 00000000 03:07 993255 /company/workspaces/app/GISappInterface/WEB-INF/lib/db2jcc_license_cu.jar b7f40000-b7f43000 r-xs 00000000 03:05 639564 /home2/java/apache-tomcat-5.5.17/bin/commons-daemon.jar b7f43000-b7f4c000 r-xp 00000000 03:03 960041 /lib/libnss_files-2.5.so b7f4c000-b7f4d000 r-xp 00008000 03:03 960041 /lib/libnss_files-2.5.so b7f4d000-b7f4e000 rwxp 00009000 03:03 960041 /lib/libnss_files-2.5.so b7f4e000-b7f54000 r-xp 00000000 03:05 671352 /home2/java/jdk1.5.0_07/jre/lib/i386/native_threads/libhpi.so b7f54000-b7f55000 rwxp 00006000 03:05 671352 /home2/java/jdk1.5.0_07/jre/lib/i386/native_threads/libhpi.so b7f55000-b7f56000 rwxp b7f55000 00:00 0 b7f56000-b7f57000 r-xp b7f56000 00:00 0 b7f57000-b7f58000 rwxp b7f57000 00:00 0 b7f58000-b7f59000 r-xp b7f58000 00:00 0 [vdso] bfad5000-bfad8000 --xp bfad5000 00:00 0 bfad8000-bfcd5000 rwxp bfad8000 00:00 0 [stack] VM Arguments: jvm_args: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/java/tomcat/conf/logging.properties -Djava.endorsed.dirs=/usr/java/tomcat/common/endorsed -Djava.security.manager -Djava.security.auth.login.config=/usr/java/tomcat/conf/jaas.config -Djava.security.policy==/usr/java/tomcat/conf/catalina.policy -Dcatalina.base=/usr/java/tomcat -Dcatalina.home=/usr/java/tomcat -Djava.io.tmpdir=/usr/java/tomcat/temp java_command: org.apache.catalina.startup.Bootstrap start Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=/usr/java/jdk JRE_HOME=/usr/java/jre CLASSPATH=:/usr/java/tomcat/bin/bootstrap.jar:/usr/java/tomcat/bin/commons-logging-api.jar PATH=/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jre/bin:/usr/java/jdk/bin:/home2/mapserver/mapscript:/root/bin LD_LIBRARY_PATH=/home2/java/jdk1.5.0_07/jre/lib/i386/client:/home2/java/jdk1.5.0_07/jre/lib/i386:/home2/java/jdk1.5.0_07/jre/../lib/i386:::/home2/mapserver/proj4/lib:/home2/mapserver/gdal/lib:/home2/mapserver/geos/lib:/home2/mapserver/libcurl/lib:/home2/mapserver/libpng/lib:/home2/mapserver/libjpeg/lib:/home2/mapserver/libtiff/lib:/home2/mapserver/libgeotiff/lib:/home2/mapserver/ogdi/lib:/home2/mapserver/freetype/lib:/home2/mapserver/gd/lib:/home2/mapserver/zlib/lib:/home2/mapserver/proj4/share/proj:/home2/mapserver/mapscript:/home2/mapserver/proj4/lib:/home2/mapserver/gdal/lib:/home2/mapserver/geos/lib:/home2/mapserver/libcurl/lib:/home2/mapserver/libpng/lib:/home2/mapserver/libjpeg/lib:/home2/mapserver/libtiff/lib:/home2/mapserver/libgeotiff/lib:/home2/mapserver/ogdi/lib:/home2/mapserver/freetype/lib:/home2/mapserver/gd/lib:/home2/mapserver/zlib/lib:/home2/mapserver/proj4/share/proj SHELL=/bin/bash DISPLAY=:0 Signal Handlers: SIGSEGV: [libjvm.so+0x31fae0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGBUS: [libjvm.so+0x31fae0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGFPE: [libjvm.so+0x2852b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGPIPE: [libjvm.so+0x2852b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGILL: [libjvm.so+0x2852b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000 SIGUSR2: [libjvm.so+0x287700], sa_mask[0]=0x00000000, sa_flags=0x10000004 SIGHUP: [libjvm.so+0x287130], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGINT: [libjvm.so+0x287130], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGQUIT: [libjvm.so+0x287130], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGTERM: [libjvm.so+0x287130], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 --------------- S Y S T E M --------------- OS:Fedora Core release 6 (Zod) uname:Linux 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:54:20 EDT 2006 i686 libc:glibc 2.5 NPTL 2.5 rlimit: STACK 10240k, CORE 0k, NPROC 7935, NOFILE 1024, AS infinity load average:2.67 1.54 0.82 CPU:total 1 family 6, cmov, cx8, fxsr, mmx, sse Memory: 4k page, physical 498976k(21720k free), swap 522072k(473592k free) vm_info: Java HotSpot(TM) Client VM (1.5.0_07-b03) for linux-x86, built on May 3 2006 01:46:28 by java_re with gcc 3.2.1-7a (J2SE release) From warmerdam at POBOX.COM Wed Mar 28 11:54:06 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 28 Mar 2007 14:54:06 -0400 Subject: wrapping around the dateline using geographic coordinates In-Reply-To: <460AA4C4.9040502@pdx.edu> Message-ID: percy wrote: > Hi all, > > I've asked this question before, trolled through the archives and > googled everything I could think of. > > *Has anyone come up with an elegant way of displaying data that crosses > the dateline, while keeping the coordinate system in decimal degrees?* > > My Aleutian islands currently get chopped off, and similar problems > ensue with the Pacific Protectorates (Guam, Midway, Samoa, etc) > > Thanks for any hints! I hope I'm missing something obvious :-) Percy, The obvious is to rewrap your original data to 0-360 and to not tell mapserver anything about the coordinate system at all. Then you can work over the dateline without problems. This does not work well with WMS or anything else that needs to be coordinate system aware though. 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 | President OSGeo, http://osgeo.org From warmerdam at POBOX.COM Wed Mar 28 13:53:59 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 28 Mar 2007 16:53:59 -0400 Subject: Mapscript crashing Tomcat --> [Panic] In-Reply-To: <460AB15E.30106@digitro.com.br> Message-ID: Rodrigo Del C. Andrade wrote: > Greetings. dear list. > We are experiencing some troubling difficulties developing an > application with mapscript on a Java web based environment with tomcat. > Here is the deal: while using the app (not nearly done, but > functional enough at this stage) when one tries to zoom (in or out) or > pan the map more than a few times, Tomcat often will go down screaming > and the JVM just gives up on life. > I know this is probably not the right or best place to ask about it, > but it seems to be caused by the interaction of mapscript and the GD > library. > Here is the JVM output short version (long version is attached > at the bottom): ... > Any ideas? Full JVM error log is at the bottom. I am ready to give in > more info if needed. > Thanks in advance; ... > Stack: [0xb0203000,0xb0284000), sp=0xb0279ed4, free space=475k > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, > C=native code) > C [libgd.so.2+0x8182] > C [libgd.so.2+0x9a16] gdImageLine+0x4a6 > C [libmapscript.so+0xad355] > C [libmapscript.so+0xb310e] msDrawLineSymbolGD+0xe7e > C [libmapscript.so+0xa75fb] msDrawLineSymbol+0x8b > C [libmapscript.so+0xa9cb2] msDrawShape+0x17e2 > C [libmapscript.so+0xaa6d8] msDrawVectorLayer+0x398 > C [libmapscript.so+0xaa97a] msDrawLayer+0xaa > C [libmapscript.so+0xaba67] msDrawMap+0x6a7 > C [libmapscript.so+0x552b5] Rodrigo, I'd suggesting seeing if you can reproduce this without Java involved. I suspect there is some sort of memory error in msDrawLineSymbolGD() (possibly the infamous antialiasing bug?). Capture your map configuration into a map file, and run the map through shp2img or mapserv with the appropriate layers turned on, and similar view configuration *and* run it under "valgrind" to quickly highly memory corruption as soon as it happens. If you can reproduce it this way,then you have something you can file as a bug report. MapServer is not bug free, and it is important to be able to narrow down bugs without too much extraneous stuff. 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 | President OSGeo, http://osgeo.org From arul_gi at REDIFFMAIL.COM Wed Mar 28 21:31:03 2007 From: arul_gi at REDIFFMAIL.COM (SUBSCRIBE MAPSERVER-USERS Arulraj.M) Date: Wed, 28 Mar 2007 23:31:03 -0500 Subject: Basic Problem Message-ID: Dear friends, i am very new to this UMN map server. I have installed the mapserver windows edition and checked with gmap75 application. Its working fine. when i tried with one small example, its not working . the codes are ---------------------------------- hi.html hi
---------------------------------------------- hi.map NAME "hi" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.0 -1.0 1.0 1.0 WEB IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.00 0.00 END TEXT "hi" END # end feature CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END ------------------------------ when i am click my event it is passing into mapserv.exe , but it neither creates a image nor dipalying a image. It s not generating a image. i have physically verified int he folder too. So . where is the error in the code, please help me. Arul. From percyd at PDX.EDU Wed Mar 28 21:50:50 2007 From: percyd at PDX.EDU (percy) Date: Wed, 28 Mar 2007 21:50:50 -0700 Subject: wrapping around the dateline using geographic coordinates In-Reply-To: <460AB9CE.40205@pobox.com> Message-ID: Thanks Frank! I'd rather stick with something more standard so that we can integrate with other services. Any other ideas, anyone? :-) Frank Warmerdam wrote: > percy wrote: >> Hi all, >> >> I've asked this question before, trolled through the archives and >> googled everything I could think of. >> >> *Has anyone come up with an elegant way of displaying data that >> crosses the dateline, while keeping the coordinate system in decimal >> degrees?* >> >> My Aleutian islands currently get chopped off, and similar problems >> ensue with the Pacific Protectorates (Guam, Midway, Samoa, etc) >> >> Thanks for any hints! I hope I'm missing something obvious :-) > > Percy, > > The obvious is to rewrap your original data to 0-360 and to not tell > mapserver anything about the coordinate system at all. Then you can > work over the dateline without problems. > > This does not work well with WMS or anything else that needs to be > coordinate system aware though. > > Best regards, -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From umberto.nicoletti at GMAIL.COM Thu Mar 29 00:09:33 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 29 Mar 2007 09:09:33 +0200 Subject: Mapscript crashing Tomcat --> [Panic] In-Reply-To: <460AD5E7.1050603@pobox.com> Message-ID: On 3/28/07, Frank Warmerdam wrote: > Rodrigo Del C. Andrade wrote: > > Greetings. dear list. > > We are experiencing some troubling difficulties developing an > > application with mapscript on a Java web based environment with tomcat. > > Here is the deal: while using the app (not nearly done, but > > functional enough at this stage) when one tries to zoom (in or out) or > > pan the map more than a few times, Tomcat often will go down screaming > > and the JVM just gives up on life. > > I know this is probably not the right or best place to ask about it, > > but it seems to be caused by the interaction of mapscript and the GD > > library. > > Here is the JVM output short version (long version is attached > > at the bottom): > ... > > Any ideas? Full JVM error log is at the bottom. I am ready to give in > > more info if needed. > > Thanks in advance; > ... > > > Stack: [0xb0203000,0xb0284000), sp=0xb0279ed4, free space=475k > > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, > > C=native code) > > C [libgd.so.2+0x8182] > > C [libgd.so.2+0x9a16] gdImageLine+0x4a6 > > C [libmapscript.so+0xad355] > > C [libmapscript.so+0xb310e] msDrawLineSymbolGD+0xe7e > > C [libmapscript.so+0xa75fb] msDrawLineSymbol+0x8b > > C [libmapscript.so+0xa9cb2] msDrawShape+0x17e2 > > C [libmapscript.so+0xaa6d8] msDrawVectorLayer+0x398 > > C [libmapscript.so+0xaa97a] msDrawLayer+0xaa > > C [libmapscript.so+0xaba67] msDrawMap+0x6a7 > > C [libmapscript.so+0x552b5] > > Rodrigo, > > I'd suggesting seeing if you can reproduce this without Java involved. I > suspect there is some sort of memory error in msDrawLineSymbolGD() (possibly > the infamous antialiasing bug?). Frank, I bet it is exactly that! Rodrigo: upgrade to gd 2.0.34 (http://www.libgd.org/Main_Page) and tell us if the problem goes away. Umberto > > Capture your map configuration into a map file, and run the map through > shp2img or mapserv with the appropriate layers turned on, and similar > view configuration *and* run it under "valgrind" to quickly highly > memory corruption as soon as it happens. > > If you can reproduce it this way,then you have something you can file > as a bug report. > > MapServer is not bug free, and it is important to be able to narrow > down bugs without too much extraneous stuff. > > 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 | President OSGeo, http://osgeo.org > From pcreso at PCRESO.COM Thu Mar 29 01:20:08 2007 From: pcreso at PCRESO.COM (Brent Wood) Date: Thu, 29 Mar 2007 01:20:08 -0700 Subject: wrapping around the dateline using geographic coordinates In-Reply-To: <460B45AA.2050100@pdx.edu> Message-ID: --- percy wrote: > Thanks Frank! > > I'd rather stick with something more standard so that we can integrate > with other services. Hi Percy. We have done this two ways (New Zealand has the same problem). By a custom mercator with a central meridian at 100 & lat of true scale at -41. Geographic coordinates are noticeably lacking however :-( I have used for some years a 0-360 longitude EPSG:4326 coordinate system. Note that EPSG:4326 does not explictly define the longitude range, but most implementations assume +-180, although many, including mapserver, are quite happy with 0-360 data. I have a request in to EPSG to consider tidying this up & providing a 0-360 WGS84 "projection" with a formally specified EPSG code. I'm not sure where this is at, hoping to hear soon. Proj.4 now allows users to specify the central meridian of a lat/long coordinate system, so you can specify 0 (default) or 180 (ie, 0-360). GMT supports (effectively) a mod360 longitudinal model, which is great, but not much use with mapserver. With raster tiles, I have used +-180 based tiles, then symbolic linked the -180-0 tiles & generated world files which are 180-360 for the same tiles. This avoided having to replicate tiles & gives a -180 to 360 cover. Using PostGIS for my vector data, something along the lines of create table temp as select id + (select max(id), ..., setsrid(translate(the_geom,360,0,0),4327); insert into table select * from temp; replicates all the -180 to 0 features with 180-360 longitudes, (where my 4327 is a custom projection, 4326 with the proj central meridian at 180). I'd guess a view on the 4326 tables unioning translated vectors would also work. Lines & points work fine, polygons require tidying up by selecting intersections with a polygon of each longitudinal hemisphere to close them at the new limits, but it is quite workable. Hope this makes sense... If you have to work with other data which is stuck at +-180, I think stuck might describe the situation well. If EPSG come to the party it may provide a solution longer term. Cheers, Brent Wood From prodriguez at ADASASISTEMAS.COM Thu Mar 29 01:39:53 2007 From: prodriguez at ADASASISTEMAS.COM (=?iso-8859-1?Q?Pablo__Rodr=EDguez_Madro=F1o?=) Date: Thu, 29 Mar 2007 10:39:53 +0200 Subject: Basic Problem Message-ID: Hi, Arul I am also quite new to MapServer, so may the veterans out there excuse me if I say silly things. I think you should include the html page as a TEMPLATE in the WEB section of your mapfile: WEB TEMPLATE "whatever/hi.html" IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END Bye, Pablo Rodr?guez Madro?o Divisi?n de Sistemas de Informaci?n ADASA Sistemas 93.264.06.02 600.92.65.10 -----Mensaje original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de SUBSCRIBE MAPSERVER-USERS Arulraj.M Enviado el: jueves, 29 de marzo de 2007 6:31 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: [UMN_MAPSERVER-USERS] Basic Problem Dear friends, i am very new to this UMN map server. I have installed the mapserver windows edition and checked with gmap75 application. Its working fine. when i tried with one small example, its not working . the codes are ---------------------------------- hi.html hi
---------------------------------------------- hi.map NAME "hi" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.0 -1.0 1.0 1.0 WEB IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.00 0.00 END TEXT "hi" END # end feature CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END ------------------------------ when i am click my event it is passing into mapserv.exe , but it neither creates a image nor dipalying a image. It s not generating a image. i have physically verified int he folder too. So . where is the error in the code, please help me. Arul. From baj.verlinden at PRVLIMBURG.NL Thu Mar 29 03:11:05 2007 From: baj.verlinden at PRVLIMBURG.NL (Bart Verlinden) Date: Thu, 29 Mar 2007 03:11:05 -0700 Subject: GetFeatureInfo response 2de gml:coordinates tag Message-ID: I'am using 4.10.1 on Linux RHE. I updated from 4.4.2 to 4.10.1 and in my GetFeatureInfo GML response there use to be a second gml:coordinates tag with the coordinates of the polygon (datasource =shape). But now it is gone, see below: 142263.981366,316298.961207 142508.335362,316532.859621 580996 30991.3159 5 5 5 1 2 5 6 How do i get the second gml:coordinates tag with the coordinates of the polygon back? Thanks in advance. Bart Verlinden Provincie Limburg (NL) -- View this message in context: http://www.nabble.com/GetFeatureInfo-response-2de-gml%3Acoordinates-tag-tf3485481.html#a9730385 Sent from the Mapserver - User mailing list archive at Nabble.com. From umn-ms at HYDROTEC.DE Thu Mar 29 07:56:43 2007 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Thu, 29 Mar 2007 16:56:43 +0200 Subject: Mapscript-Java and Swig-Versions Message-ID: Hello list-members I have a problem with java-mapscript, swig-versions and enums. Download mapserver4.10.0: File mapscript\java\edu\umn\gis\mapscript\layerObj.java has a method public int getType() { ...} Download mapserver4.10.1: File mapscript\java\edu\umn\gis\mapscript\layerObj.java has a method public MS_LAYER_TYPE getType() { ...} My own code depends on the enums-as-int-Style (like mapserver4.10.0) I do remember, that some time ago was a discussion on this issue ("Swig version used for nightly builds and releases..."). But I didn't find a "working instruction" for users like me. Question: Is it possible to produce the "mapserver4.10.0"-style with swig-1.3.29? Is there any command-line-option "swig -j -enums_as_int" or somethink like this? Thank you Benedikt Rothe -------------- next part -------------- An HTML attachment was scrubbed... URL: From AGilbert at KOREM.COM Thu Mar 29 08:24:42 2007 From: AGilbert at KOREM.COM (Gilbert, Antoine) Date: Thu, 29 Mar 2007 11:24:42 -0400 Subject: set center Message-ID: Hi Does it's possible, using MapScript, to set the center of a mapObj instance with a non-pixel coordinates (any projection) ? Antoine -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephan.holl at INTEVATION.DE Thu Mar 29 08:22:55 2007 From: stephan.holl at INTEVATION.DE (Stephan Holl) Date: Thu, 29 Mar 2007 17:22:55 +0200 Subject: negativ labelsize Message-ID: Hallo List, we have created a python script which generates a high-resolution png from the current MS-settings using python mapscript. Basically it grabes the mapfile and multiplys all label-sizes by 4 which results in a large image with also large labels. I have encountered some problems if there is no label-size given the soze value is -1. So multiplying by 4 results in -4 which makes mapscript crash: Traceback (most recent call last): File "/var/www/cgi-bin/printmapimg", line 162, in ? imgobj = theMap.draw() File "/usr/lib/python2.2/site-packages/mapscript.py", line 1419, in draw def draw(*args): return _mapscript.mapObj_draw(*args) _mapscript.MapServerError: msGetBitmapFont(): GD library error. Invalid bitmap font. Must be one of tiny, small, medium, large or giant. [Thu Mar 29 10:06:15 2007] [error] [client 127.0.0.1] Premature end of script headers: /var/www/cgi-bin/printmapimg As you can see, MS is running with python2.2; MS is version 4.4.2, no current version. Is this behaviour known? Shouldnt all negative values be ignored? Best Stephan From umn-ms at HYDROTEC.DE Thu Mar 29 08:52:07 2007 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Thu, 29 Mar 2007 17:52:07 +0200 Subject: Mapscript-Java and Swig-Versions In-Reply-To: Message-ID: Found it on my own ... http://mapserver.gis.umn.edu/download/current/migration_guide_48_410 Chapter Java Mapscript and ENUMERATED VALUES "FIX You can instruct swig to revert to the old behaviour by uncommenting line 6 in mapscript/java/javamodule.i" Benedikt UMN MapServer Users List schrieb am 29.03.2007 16:56:43: > > Hello list-members > > I have a problem with java-mapscript, swig-versions and enums. > Download mapserver4.10.0: File > mapscript\java\edu\umn\gis\mapscript\layerObj.java > has a method > public int getType() { ...} > > Download mapserver4.10.1: File > mapscript\java\edu\umn\gis\mapscript\layerObj.java > has a method > public MS_LAYER_TYPE getType() { ...} > > My own code depends on the enums-as-int-Style (like mapserver4.10.0) > > I do remember, that some time ago was a discussion on this issue > ("Swig version used for nightly builds and releases..."). > But I didn't find a "working instruction" for users like me. > > Question: > Is it possible to produce the "mapserver4.10.0"-style with swig-1.3.29? > > Is there any command-line-option "swig -j -enums_as_int" or > somethink like this? > > Thank you > Benedikt Rothe -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Thu Mar 29 09:18:20 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Thu, 29 Mar 2007 18:18:20 +0200 Subject: Tracing Application with MapServer Message-ID: Hi guys, I am in a project about tracing with MapServer. I am glad that it's running very well. But there is still one situation that I can not handle, I know that this may not be a problem about MapServer itself, but the GIS and GPS GURUs here may have some ideas . Sometimes the coordinate obtained with GPS is not accurate enough, it may be totally out of the street, even about 10 meters, if this point is displayed on a map with a large map scale, it should be a mistake. Does anyone has any idea to interpolate such a point, so that it gets back to its "right" position. thanks for any advice. Best Regards Zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From rhow at I3.COM Thu Mar 29 09:26:10 2007 From: rhow at I3.COM (Randy How) Date: Thu, 29 Mar 2007 09:26:10 -0700 Subject: Randy How - out of the office - Auto Reply Message-ID: Thank you for your correspondance. To let you know I'll be out of the office until Monday, June 6th. If you need an immediate reply please contact Russ Cowart ( rcowart at i3.com) or Yusuf Siddiqui ( ysiddiqui at i3.com). Randy How ________________________________________________ Randy How Geospatial Applications Developer rhow at i3.com Voice: +1-970-482-4400 Fax: +1-970-482-4499 Web: www.i3.com i-cubed 201 Linden, Third Floor Fort Collins, CO 80524 -------------- next part -------------- An HTML attachment was scrubbed... URL: From roland.w.martin at GMAIL.COM Thu Mar 29 09:57:55 2007 From: roland.w.martin at GMAIL.COM (Roland Martin) Date: Thu, 29 Mar 2007 17:57:55 +0100 Subject: Tiled datasets with OGR Message-ID: Hi, I'm having a bit of trouble with a tiled dataset - I suspect there's a number of things at play, so I'll phrase this as a question! Is it possible to tile MapInfo TABs; display them as a single layer in MapServer; and still use 'STYLEITEM AUTO'? I've managed the first 2 without any problems, by storing the tiles as a shapefile, but the styling wasn't working ("not available for this datasource" or somesuch). I then tried using a TAB as the TILEINDEX, but that didn't seem to be working at all (not clear if this was a MapServer or OGR problem though). So, am I missing something here, or is it not possible? Thanks for your help, Roland. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodrigo.andrade at DIGITRO.COM.BR Thu Mar 29 10:44:59 2007 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Thu, 29 Mar 2007 14:44:59 -0300 Subject: Mapscript crashing Tomcat --> [Panic] In-Reply-To: <75b4b93e0703290009k7d232246q9ac793a84e070471@mail.gmail.com> Message-ID: Dear Frank and Umberto: Thanks a lot for the advice, you really nailed it. I haven't tried reproducing it on mapserver cgi yet, but upgrading GD to 2.0.34 (I had 2.0.33) apparently did the trick. I am testing it as I type, but it has been running for 20 min now and it haven't crashed yet, as opposed to the 20 secs crash. I tracked down that linux machine where it used to work fine and sure enough, that one had the newer GD in it. Thanks a whole lot. Sincerely Rodrigo Umberto Nicoletti wrote: > On 3/28/07, Frank Warmerdam wrote: >> Rodrigo Del C. Andrade wrote: >> > Greetings. dear list. >> > We are experiencing some troubling difficulties developing an >> > application with mapscript on a Java web based environment with >> tomcat. >> > Here is the deal: while using the app (not nearly done, but >> > functional enough at this stage) when one tries to zoom (in or out) or >> > pan the map more than a few times, Tomcat often will go down screaming >> > and the JVM just gives up on life. >> > I know this is probably not the right or best place to ask about >> it, >> > but it seems to be caused by the interaction of mapscript and the GD >> > library. >> > Here is the JVM output short version (long version is attached >> > at the bottom): >> ... >> > Any ideas? Full JVM error log is at the bottom. I am ready to >> give in >> > more info if needed. >> > Thanks in advance; >> ... >> >> > Stack: [0xb0203000,0xb0284000), sp=0xb0279ed4, free space=475k >> > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, >> > C=native code) >> > C [libgd.so.2+0x8182] >> > C [libgd.so.2+0x9a16] gdImageLine+0x4a6 >> > C [libmapscript.so+0xad355] >> > C [libmapscript.so+0xb310e] msDrawLineSymbolGD+0xe7e >> > C [libmapscript.so+0xa75fb] msDrawLineSymbol+0x8b >> > C [libmapscript.so+0xa9cb2] msDrawShape+0x17e2 >> > C [libmapscript.so+0xaa6d8] msDrawVectorLayer+0x398 >> > C [libmapscript.so+0xaa97a] msDrawLayer+0xaa >> > C [libmapscript.so+0xaba67] msDrawMap+0x6a7 >> > C [libmapscript.so+0x552b5] >> >> Rodrigo, >> >> I'd suggesting seeing if you can reproduce this without Java >> involved. I >> suspect there is some sort of memory error in msDrawLineSymbolGD() >> (possibly >> the infamous antialiasing bug?). > > Frank, > I bet it is exactly that! > Rodrigo: upgrade to gd 2.0.34 (http://www.libgd.org/Main_Page) and > tell us if the problem goes away. > > Umberto > >> >> Capture your map configuration into a map file, and run the map through >> shp2img or mapserv with the appropriate layers turned on, and similar >> view configuration *and* run it under "valgrind" to quickly highly >> memory corruption as soon as it happens. >> >> If you can reproduce it this way,then you have something you can file >> as a bug report. >> >> MapServer is not bug free, and it is important to be able to narrow >> down bugs without too much extraneous stuff. >> >> 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 | President OSGeo, >> http://osgeo.org >> > > From dmorissette at MAPGEARS.COM Thu Mar 29 11:00:36 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 29 Mar 2007 14:00:36 -0400 Subject: Tiled datasets with OGR In-Reply-To: Message-ID: Um... not sure why the STYLEITEM AUTO would not work with a tiled OGR layer, but anyway, a workaround for this issue would be to convert your tiled TAB files to a Seamless TAB Dataset using MapInfo. Seamless Tables are similar to tiled dataset, but the tiling is handled in the MapInfo driver inside OGR so MapServer sees the seamless table as a single MapInfo file. Then you'd just point to the seamless table (.tab file) in the CONNECTION string and STYLEITEM AUTO should work. Daniel Roland Martin wrote: > Hi, > > I'm having a bit of trouble with a tiled dataset - I suspect there's a > number of things at play, so I'll phrase this as a question! > > Is it possible to tile MapInfo TABs; display them as a single layer in > MapServer; and still use 'STYLEITEM AUTO'? > > I've managed the first 2 without any problems, by storing the tiles as a > shapefile, but the styling wasn't working ("not available for this > datasource" or somesuch). I then tried using a TAB as the TILEINDEX, but > that didn't seem to be working at all (not clear if this was a MapServer > or OGR problem though). > > So, am I missing something here, or is it not possible? > > Thanks for your help, > Roland. -- Daniel Morissette http://www.mapgears.com/ From sunxj at YAHOO.COM Thu Mar 29 11:00:48 2007 From: sunxj at YAHOO.COM (Shannon Sun) Date: Thu, 29 Mar 2007 11:00:48 -0700 Subject: Anyone compared the performance between ArcIMS, MapServer, ArcGIS Message-ID: Hi Folks, is anyone compared the performance between ArcIMS, MapServer and ArcGIS Server? or if you know some good articles related to this, could you also please drop me an email? Thanks a lot. Shannon Sun ____________________________________________________________________________________ Need Mail bonding? Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=list&sid=396546091 From pramsey at REFRACTIONS.NET Thu Mar 29 11:17:40 2007 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Thu, 29 Mar 2007 11:17:40 -0700 Subject: Anyone compared the performance between ArcIMS, MapServer, ArcGIS In-Reply-To: <927822.67206.qm@web39604.mail.mud.yahoo.com> Message-ID: http://mapserver.gis.umn.edu/community/conferences/MUM3/present/session10/msvsarcims/view Shannon Sun wrote: > is anyone compared the performance between ArcIMS, > MapServer and ArcGIS Server? > > or if you know some good articles related to this, > could you also please drop me an email? > -- Paul Ramsey Refractions Research http://www.refractions.net pramsey at refractions.net Phone: 250-383-3022 Cell: 250-885-0632 From john.cole at UAI.COM Thu Mar 29 11:51:05 2007 From: john.cole at UAI.COM (John Cole) Date: Thu, 29 Mar 2007 11:51:05 -0700 Subject: issue with classitem and tileindex... Message-ID: I have a couple of county shapefiles where I've created a tileindex using tile4ms. When I render these with MS, things work fine until I set the classitem, and then it can't find the classitem column on the shapefile (in this case 'cfcc'). Is there something special you have to do to use a class item or label item with a tileindex? Thanks, John -- View this message in context: http://www.nabble.com/issue-with-classitem-and-tileindex...-tf3488200.html#a9740262 Sent from the Mapserver - User mailing list archive at Nabble.com. From earevaloch at GMAIL.COM Thu Mar 29 12:24:17 2007 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Thu, 29 Mar 2007 14:24:17 -0500 Subject: error en mapserv? Message-ID: Hello List: There am instaldo mapserver-4.8 in Linux. the moment for doing tests: http://10.1.6.46/cgi-bin/mapserv? it does not leave the mesaje to me: Not query information to decode. QUERY_STRING is Seth, but empty. help please -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Thu Mar 29 13:33:30 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 29 Mar 2007 15:33:30 -0500 Subject: issue with classitem and tileindex... In-Reply-To: <9740262.post@talk.nabble.com> Message-ID: John, In shapefiles attribute are all upper case. try: classitem 'CFCC' -Steve W John Cole wrote: > I have a couple of county shapefiles where I've created a tileindex using > tile4ms. When I render these with MS, things work fine until I set the > classitem, and then it can't find the classitem column on the shapefile (in > this case 'cfcc'). > > Is there something special you have to do to use a class item or label item > with a tileindex? > > Thanks, > > John From john.cole at UAI.COM Thu Mar 29 13:04:19 2007 From: john.cole at UAI.COM (John Cole) Date: Thu, 29 Mar 2007 13:04:19 -0700 Subject: issue with classitem and tileindex... In-Reply-To: <460C229A.30701@swoodbridge.com> Message-ID: Steve, Thanks for the quick reply, unfortunately I had already tried that :-( msDBFGetItemIndex(): DBASE file error. Item 'CFCC' not found. Is there anything else that could be wrong? Here is my layer: LAYER NAME "landmark_polys" GROUP "bound" TILEINDEX "lpy_idx" METADATA "wms_title" "landmark_polys" "wms_group_title" "landmark" END PROJECTION "init=epsg:4326" END STATUS ON CLASSITEM "CFCC" TYPE POLYGON CLASS EXPRESSION "D82" NAME 'Cemetary' MAXSCALE 250000 STYLE COLOR 209 208 204 END END END We are using the current version of MS4W. Thanks, John Stephen Woodbridge wrote: > > John, > > In shapefiles attribute are all upper case. try: > classitem 'CFCC' > > -Steve W > > John Cole wrote: >> I have a couple of county shapefiles where I've created a tileindex using >> tile4ms. When I render these with MS, things work fine until I set the >> classitem, and then it can't find the classitem column on the shapefile >> (in >> this case 'cfcc'). >> >> Is there something special you have to do to use a class item or label >> item >> with a tileindex? >> >> Thanks, >> >> John > > -- View this message in context: http://www.nabble.com/issue-with-classitem-and-tileindex...-tf3488200.html#a9741591 Sent from the Mapserver - User mailing list archive at Nabble.com. From dlowther at COORDINATESOLUTIONS.COM Thu Mar 29 13:30:17 2007 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Thu, 29 Mar 2007 16:30:17 -0400 Subject: MapScript_csharp issue with layerObj.queryByAttributes at 4.10 Message-ID: Hi everyone, I recently upgraded an ASP.NET application from 4.9 (that Tamas compiled for me) to 4.10 (from the ms4w installation) and found existing code calling queryByAttributes (that worked previously) no longer returns MS_SUCCESS. Tamas mentioned that the bug could have been a result of one of the following changes, though I do not know for certain if the changes were the cause: 2006 02 02 1:53 sdlime Fixed bug when doing repeated queries where you make a layer not queryable then it is possible the results for that layer can persist. (bug 1550) 2006 02 02 2:00 sdlime Moved the code to free previous query results a bit higher in the msQueryByAttribute() function. Tamas eliminated the issue by disabling PHP_REGEX in nmake.opt. I've tested the binaries he sent me and can confirm that this fixes the problem. I'm posting to notify of the bug and remedy. David Lowther Coordinate Solutions, Inc. 501 N.E. 15th Street Oklahoma City, OK 73104 405.246.9396 (Voice) 904.471.5548 (Fax) www.coordinatesolutions.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlowther at COORDINATESOLUTIONS.COM Thu Mar 29 13:35:46 2007 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Thu, 29 Mar 2007 16:35:46 -0400 Subject: OGR OVF with WKT Poly and Line or just Point? Message-ID: Has anyone tested the OGR OVF connection with WKT poly or line data? The old Mapserver wiki says only point but was curious if this had changed. David Lowther Coordinate Solutions, Inc. 501 N.E. 15th Street Oklahoma City, OK 73104 405.246.9396 (Voice) 904.471.5548 (Fax) www.coordinatesolutions.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at GEOANALYTIC.COM Thu Mar 29 13:52:30 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 29 Mar 2007 14:52:30 -0600 Subject: issue with classitem and tileindex... Message-ID: John, You could try the newer (and more flexible?) "two-layer" style of tileindex specification: LAYER NAME "lpy_idx_lyr" TYPE TILEINDEX DATA "lpy_idx" END LAYER NAME "landmark_polys" GROUP "bound" TILEINDEX "lpy_idx_lyr" # this points to the above layer METADATA "wms_title" "landmark_polys" "wms_group_title" "landmark" END PROJECTION "init=epsg:4326" END STATUS ON CLASSITEM "CFCC" CLASS EXPRESSION "D82" NAME 'Cemetary' MAXSCALE 250000 STYLE COLOR 209 208 204 END END END I haven't tested this, so it may not work. The trick is to tell Mapserver the CLASS is to be applied to the files pointed to by the tileindex, not the tile index itself (I'm sure it doesn't have an attributed named "CFCC"). Steve Woodbridge may have some insight into this, since it's tiled vectors; I've only done tiled raster.... Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "John Cole" To: Sent: Thursday, March 29, 2007 2:04 PM Subject: Re: [UMN_MAPSERVER-USERS] issue with classitem and tileindex... > Steve, > Thanks for the quick reply, unfortunately I had already tried that :-( > > msDBFGetItemIndex(): DBASE file error. Item 'CFCC' not found. > > Is there anything else that could be wrong? > > Here is my layer: > > LAYER > NAME "landmark_polys" > GROUP "bound" > TILEINDEX "lpy_idx" > METADATA > "wms_title" "landmark_polys" > "wms_group_title" "landmark" > END > PROJECTION > "init=epsg:4326" > END > STATUS ON > CLASSITEM "CFCC" > TYPE POLYGON > > CLASS > EXPRESSION "D82" > NAME 'Cemetary' > MAXSCALE 250000 > STYLE > COLOR 209 208 204 > END > END > END > > We are using the current version of MS4W. > > Thanks, > > John > > > Stephen Woodbridge wrote: > > > > John, > > > > In shapefiles attribute are all upper case. try: > > classitem 'CFCC' > > > > -Steve W > > > > John Cole wrote: > >> I have a couple of county shapefiles where I've created a tileindex using > >> tile4ms. When I render these with MS, things work fine until I set the > >> classitem, and then it can't find the classitem column on the shapefile > >> (in > >> this case 'cfcc'). > >> > >> Is there something special you have to do to use a class item or label > >> item > >> with a tileindex? > >> > >> Thanks, > >> > >> John > > > > > > -- > View this message in context: http://www.nabble.com/issue-with-classitem-and-tileindex...-tf3488200.html#a9741591 > Sent from the Mapserver - User mailing list archive at Nabble.com. From dlowther at COORDINATESOLUTIONS.COM Thu Mar 29 14:12:04 2007 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Thu, 29 Mar 2007 17:12:04 -0400 Subject: shapeObj.getCentroid question - Mapscript_csharp Message-ID: Sorry for the mass postings. I've noticed that getCentroid behaves differently after projection of the shapeObj based on whether you reproject the shape or a clone of the shape. Not clear? No lie, I had a hard time typing the sentence. In the following example you can see that I can get the right answer, I was just wondering if someone could explain the difference in behavior. Here's an example: Partial Class ProjectPointGetCentroid Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load '//project a shapeObj and getCentroid returns coordinates in previous projection TestProjectNOClone() TestProjectClone() End Sub Private Sub TestProjectNOClone() '//Incorrect Result '//pCent will equal oCent Dim albProj As String = "+proj=aea +lat_1=29.500000000 +lat_2=45.500000000 +lat_0=23.000000000 " _ & "+lon_0=-96.000000000 +x_0=0.000 +y_0=0.000 +datum=NAD83 +ellps=GRS80 +no_defs" Dim llProj As String = "+proj=longlat +ellps=GRS80 + no_defs" Dim shp As New shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POLYGON) Dim shp2 As New shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POLYGON) Dim line As New lineObj() Dim pt As New pointObj(-100, 35, Nothing, Nothing) line.add(pt) pt = New pointObj(-100, 36, Nothing, Nothing) line.add(pt) pt = New pointObj(-101, 36, Nothing, Nothing) line.add(pt) pt = New pointObj(-101, 35, Nothing, Nothing) line.add(pt) pt = New pointObj(-100, 35, Nothing, Nothing) line.add(pt) shp.add(line) Dim oCent As pointObj = shp.getCentroid() Dim result As Integer result = shp.project(New projectionObj(llProj), New projectionObj(albProj)) Dim pCent As pointObj = shp.getCentroid() End Sub Private Sub TestProjectClone() '//Correct Result '//pCent will NOT equal oCent Dim albProj As String = "+proj=aea +lat_1=29.500000000 +lat_2=45.500000000 +lat_0=23.000000000 " _ & "+lon_0=-96.000000000 +x_0=0.000 +y_0=0.000 +datum=NAD83 +ellps=GRS80 +no_defs" Dim llProj As String = "+proj=longlat +ellps=GRS80 + no_defs" Dim shp As New shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POLYGON) Dim shp2 As New shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POLYGON) Dim line As New lineObj() Dim pt As New pointObj(-100, 35, Nothing, Nothing) line.add(pt) pt = New pointObj(-100, 36, Nothing, Nothing) line.add(pt) pt = New pointObj(-101, 36, Nothing, Nothing) line.add(pt) pt = New pointObj(-101, 35, Nothing, Nothing) line.add(pt) pt = New pointObj(-100, 35, Nothing, Nothing) line.add(pt) shp.add(line) Dim oCent As pointObj = shp.getCentroid() Dim pShp As shapeObj pShp = shp.clone() Dim result As Integer result = pShp.project(New projectionObj(llProj), New projectionObj(albProj)) Dim pCent As pointObj = pShp.getCentroid() End Sub End Class Thanks, David Lowther Coordinate Solutions, Inc. 501 N.E. 15th Street Oklahoma City, OK 73104 405.246.9396 (Voice) 904.471.5548 (Fax) www.coordinatesolutions.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.cole at UAI.COM Thu Mar 29 14:21:47 2007 From: john.cole at UAI.COM (John Cole) Date: Thu, 29 Mar 2007 14:21:47 -0700 Subject: issue with classitem and tileindex... In-Reply-To: <039601c77244$2b063c40$160002c0@shark> Message-ID: Brent, Well, I didn't know about the 'newer' method. I got it working similar to the 'old' one but it still doesn't recognize the 'CFCC' column when I add the class item. Thanks, John Brent Fraser wrote: > > John, > > You could try the newer (and more flexible?) "two-layer" > style of tileindex specification: > > LAYER > NAME "lpy_idx_lyr" > TYPE TILEINDEX > DATA "lpy_idx" > END > > > LAYER > NAME "landmark_polys" > GROUP "bound" > TILEINDEX "lpy_idx_lyr" # this points to the above layer > METADATA > "wms_title" "landmark_polys" > "wms_group_title" "landmark" > END > PROJECTION > "init=epsg:4326" > END > STATUS ON > CLASSITEM "CFCC" > CLASS > EXPRESSION "D82" > NAME 'Cemetary' > MAXSCALE 250000 > STYLE > COLOR 209 208 204 > END > END > END > > I haven't tested this, so it may not work. The trick is to > tell Mapserver the CLASS is to be applied to the files > pointed to by the tileindex, not the tile index itself (I'm > sure it doesn't have an attributed named "CFCC"). > > Steve Woodbridge may have some insight into this, since it's > tiled vectors; I've only done tiled raster.... > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > ----- Original Message ----- > From: "John Cole" > To: > Sent: Thursday, March 29, 2007 2:04 PM > Subject: Re: [UMN_MAPSERVER-USERS] issue with classitem and > tileindex... > > >> Steve, >> Thanks for the quick reply, unfortunately I had already > tried that :-( >> >> msDBFGetItemIndex(): DBASE file error. Item 'CFCC' not > found. >> >> Is there anything else that could be wrong? >> >> Here is my layer: >> >> LAYER >> NAME "landmark_polys" >> GROUP "bound" >> TILEINDEX "lpy_idx" >> METADATA >> "wms_title" "landmark_polys" >> "wms_group_title" "landmark" >> END >> PROJECTION >> "init=epsg:4326" >> END >> STATUS ON >> CLASSITEM "CFCC" >> TYPE POLYGON >> >> CLASS >> EXPRESSION "D82" >> NAME 'Cemetary' >> MAXSCALE 250000 >> STYLE >> COLOR 209 208 204 >> END >> END >> END >> >> We are using the current version of MS4W. >> >> Thanks, >> >> John >> >> >> Stephen Woodbridge wrote: >> > >> > John, >> > >> > In shapefiles attribute are all upper case. try: >> > classitem 'CFCC' >> > >> > -Steve W >> > >> > John Cole wrote: >> >> I have a couple of county shapefiles where I've created > a tileindex using >> >> tile4ms. When I render these with MS, things work fine > until I set the >> >> classitem, and then it can't find the classitem column > on the shapefile >> >> (in >> >> this case 'cfcc'). >> >> >> >> Is there something special you have to do to use a > class item or label >> >> item >> >> with a tileindex? >> >> >> >> Thanks, >> >> >> >> John >> > >> > >> >> -- >> View this message in context: > http://www.nabble.com/issue-with-classitem-and-tileindex...-tf3488200.html#a9741591 >> Sent from the Mapserver - User mailing list archive at > Nabble.com. > > -- View this message in context: http://www.nabble.com/issue-with-classitem-and-tileindex...-tf3488200.html#a9742947 Sent from the Mapserver - User mailing list archive at Nabble.com. From bfraser at GEOANALYTIC.COM Thu Mar 29 15:33:02 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 29 Mar 2007 16:33:02 -0600 Subject: issue with classitem and tileindex... Message-ID: John, Make sure all the tile shapefiles have the same attributes (name, type, and order). Other than that, I'm tempted to fire up the debugger... Searching the email archive shows some posts about Tiger data working with a tileindex, and classes with expressions, so it should work (I know, that doesn't help much). Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "John Cole" To: Sent: Thursday, March 29, 2007 3:21 PM Subject: Re: [UMN_MAPSERVER-USERS] issue with classitem and tileindex... > Brent, > Well, I didn't know about the 'newer' method. I got it working similar to > the 'old' one but it still doesn't recognize the 'CFCC' column when I add > the class item. > > Thanks, > > John > > > Brent Fraser wrote: > > > > John, > > > > You could try the newer (and more flexible?) "two-layer" > > style of tileindex specification: > > > > LAYER > > NAME "lpy_idx_lyr" > > TYPE TILEINDEX > > DATA "lpy_idx" > > END > > > > > > LAYER > > NAME "landmark_polys" > > GROUP "bound" > > TILEINDEX "lpy_idx_lyr" # this points to the above layer > > METADATA > > "wms_title" "landmark_polys" > > "wms_group_title" "landmark" > > END > > PROJECTION > > "init=epsg:4326" > > END > > STATUS ON > > CLASSITEM "CFCC" > > CLASS > > EXPRESSION "D82" > > NAME 'Cemetary' > > MAXSCALE 250000 > > STYLE > > COLOR 209 208 204 > > END > > END > > END > > > > I haven't tested this, so it may not work. The trick is to > > tell Mapserver the CLASS is to be applied to the files > > pointed to by the tileindex, not the tile index itself (I'm > > sure it doesn't have an attributed named "CFCC"). > > > > Steve Woodbridge may have some insight into this, since it's > > tiled vectors; I've only done tiled raster.... > > > > Brent Fraser > > GeoAnalytic Inc. > > Calgary, Alberta > > > > ----- Original Message ----- > > From: "John Cole" > > To: > > Sent: Thursday, March 29, 2007 2:04 PM > > Subject: Re: [UMN_MAPSERVER-USERS] issue with classitem and > > tileindex... > > > > > >> Steve, > >> Thanks for the quick reply, unfortunately I had already > > tried that :-( > >> > >> msDBFGetItemIndex(): DBASE file error. Item 'CFCC' not > > found. > >> > >> Is there anything else that could be wrong? > >> > >> Here is my layer: > >> > >> LAYER > >> NAME "landmark_polys" > >> GROUP "bound" > >> TILEINDEX "lpy_idx" > >> METADATA > >> "wms_title" "landmark_polys" > >> "wms_group_title" "landmark" > >> END > >> PROJECTION > >> "init=epsg:4326" > >> END > >> STATUS ON > >> CLASSITEM "CFCC" > >> TYPE POLYGON > >> > >> CLASS > >> EXPRESSION "D82" > >> NAME 'Cemetary' > >> MAXSCALE 250000 > >> STYLE > >> COLOR 209 208 204 > >> END > >> END > >> END > >> > >> We are using the current version of MS4W. > >> > >> Thanks, > >> > >> John > >> > >> > >> Stephen Woodbridge wrote: > >> > > >> > John, > >> > > >> > In shapefiles attribute are all upper case. try: > >> > classitem 'CFCC' > >> > > >> > -Steve W > >> > > >> > John Cole wrote: > >> >> I have a couple of county shapefiles where I've created > > a tileindex using > >> >> tile4ms. When I render these with MS, things work fine > > until I set the > >> >> classitem, and then it can't find the classitem column > > on the shapefile > >> >> (in > >> >> this case 'cfcc'). > >> >> > >> >> Is there something special you have to do to use a > > class item or label > >> >> item > >> >> with a tileindex? > >> >> > >> >> Thanks, > >> >> > >> >> John > >> > > >> > > >> > >> -- > >> View this message in context: > > http://www.nabble.com/issue-with-classitem-and-tileindex...-tf3488200.html#a9741591 > >> Sent from the Mapserver - User mailing list archive at > > Nabble.com. > > > > > > -- > View this message in context: http://www.nabble.com/issue-with-classitem-and-tileindex...-tf3488200.html#a9742947 > Sent from the Mapserver - User mailing list archive at Nabble.com. From john.cole at UAI.COM Thu Mar 29 15:42:30 2007 From: john.cole at UAI.COM (John Cole) Date: Thu, 29 Mar 2007 15:42:30 -0700 Subject: issue with classitem and tileindex... In-Reply-To: <04c701c77252$361be130$160002c0@shark> Message-ID: Brent, Thanks, I'm not up to the task of debugging mapserver just yet :-) I've check the column names and the appear to be the same. If I remember correctly, the tile4ms program chokes if the schemas are different, doesn't it? I'd be happy to send anyone an example who wanted to debug this. It's only two county landmark polyogns shapefiles and the tile index. John Brent Fraser wrote: > > John, > > Make sure all the tile shapefiles have the same attributes > (name, type, and order). Other than that, I'm tempted to > fire up the debugger... > > Searching the email archive shows some posts about Tiger > data working with a tileindex, and classes with expressions, > so it should work (I know, that doesn't help much). > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > ----- Original Message ----- > From: "John Cole" > To: > Sent: Thursday, March 29, 2007 3:21 PM > Subject: Re: [UMN_MAPSERVER-USERS] issue with classitem and > tileindex... > > >> Brent, >> Well, I didn't know about the 'newer' method. I got it > working similar to >> the 'old' one but it still doesn't recognize the 'CFCC' > column when I add >> the class item. >> >> Thanks, >> >> John >> >> >> Brent Fraser wrote: >> > >> > John, >> > >> > You could try the newer (and more flexible?) > "two-layer" >> > style of tileindex specification: >> > >> > LAYER >> > NAME "lpy_idx_lyr" >> > TYPE TILEINDEX >> > DATA "lpy_idx" >> > END >> > >> > >> > LAYER >> > NAME "landmark_polys" >> > GROUP "bound" >> > TILEINDEX "lpy_idx_lyr" # this points to the above > layer >> > METADATA >> > "wms_title" "landmark_polys" >> > "wms_group_title" "landmark" >> > END >> > PROJECTION >> > "init=epsg:4326" >> > END >> > STATUS ON >> > CLASSITEM "CFCC" >> > CLASS >> > EXPRESSION "D82" >> > NAME 'Cemetary' >> > MAXSCALE 250000 >> > STYLE >> > COLOR 209 208 204 >> > END >> > END >> > END >> > >> > I haven't tested this, so it may not work. The trick is > to >> > tell Mapserver the CLASS is to be applied to the files >> > pointed to by the tileindex, not the tile index itself > (I'm >> > sure it doesn't have an attributed named "CFCC"). >> > >> > Steve Woodbridge may have some insight into this, since > it's >> > tiled vectors; I've only done tiled raster.... >> > >> > Brent Fraser >> > GeoAnalytic Inc. >> > Calgary, Alberta >> > >> > ----- Original Message ----- >> > From: "John Cole" >> > To: >> > Sent: Thursday, March 29, 2007 2:04 PM >> > Subject: Re: [UMN_MAPSERVER-USERS] issue with classitem > and >> > tileindex... >> > >> > >> >> Steve, >> >> Thanks for the quick reply, unfortunately I had > already >> > tried that :-( >> >> >> >> msDBFGetItemIndex(): DBASE file error. Item 'CFCC' not >> > found. >> >> >> >> Is there anything else that could be wrong? >> >> >> >> Here is my layer: >> >> >> >> LAYER >> >> NAME "landmark_polys" >> >> GROUP "bound" >> >> TILEINDEX "lpy_idx" >> >> METADATA >> >> "wms_title" "landmark_polys" >> >> "wms_group_title" "landmark" >> >> END >> >> PROJECTION >> >> "init=epsg:4326" >> >> END >> >> STATUS ON >> >> CLASSITEM "CFCC" >> >> TYPE POLYGON >> >> >> >> CLASS >> >> EXPRESSION "D82" >> >> NAME 'Cemetary' >> >> MAXSCALE 250000 >> >> STYLE >> >> COLOR 209 208 204 >> >> END >> >> END >> >> END >> >> >> >> We are using the current version of MS4W. >> >> >> >> Thanks, >> >> >> >> John >> >> >> >> >> >> Stephen Woodbridge wrote: >> >> > >> >> > John, >> >> > >> >> > In shapefiles attribute are all upper case. try: >> >> > classitem 'CFCC' >> >> > >> >> > -Steve W >> >> > >> >> > John Cole wrote: >> >> >> I have a couple of county shapefiles where I've > created >> > a tileindex using >> >> >> tile4ms. When I render these with MS, things work > fine >> > until I set the >> >> >> classitem, and then it can't find the classitem > column >> > on the shapefile >> >> >> (in >> >> >> this case 'cfcc'). >> >> >> >> >> >> Is there something special you have to do to use a >> > class item or label >> >> >> item >> >> >> with a tileindex? >> >> >> >> >> >> Thanks, >> >> >> >> >> >> John >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> > > http://www.nabble.com/issue-with-classitem-and-tileindex...-tf3488200.html#a9741591 >> >> Sent from the Mapserver - User mailing list archive at >> > Nabble.com. >> > >> > >> >> -- >> View this message in context: > http://www.nabble.com/issue-with-classitem-and-tileindex...-tf3488200.html#a9742947 >> Sent from the Mapserver - User mailing list archive at > Nabble.com. > > -- View this message in context: http://www.nabble.com/issue-with-classitem-and-tileindex...-tf3488200.html#a9744231 Sent from the Mapserver - User mailing list archive at Nabble.com. From gooogle at FREE.FR Thu Mar 29 16:37:12 2007 From: gooogle at FREE.FR (=?ISO-8859-1?Q?J=E9r=F4me_Martin?=) Date: Fri, 30 Mar 2007 01:37:12 +0200 Subject: WCS from multiple netCDF returning only background image In-Reply-To: <9224663.post@talk.nabble.com> Message-ID: Hello Edfialk, When i begin to use mapserv for WCS requests, I had the same probleme as you on my DTED tileindex : all my requests were blank. In fact, they were with the height 0. But when i tried with my rasters to have png or gif, the results were only blank, so exactly like you. I don't know if what will explain to you will resolve your problem, but i can give my my solution to resolve mine. When I request tile images on my server WMS, this works perfectly. but when I sent the same boundingbox for the DTED on WCS server, I had blank files. The error was the ratio X and Y was different so mapserv sent me blank file. In fact the resolution pixel X must be the same as the resolution pixel Y, to do not strech on one axe the data. In WMS Server, this is not a problem : - a normal ratio resX/resY on WMS : http://iceds.ge.ucl.ac.uk/cgi-bin/icedswms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=landsat&width=512&height=512&srs=epsg:4326&bbox=-5,43,2,50&format=image/png - a streched ratio X on WMS : http://iceds.ge.ucl.ac.uk/cgi-bin/icedswms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=landsat&width=512&height=512&srs=epsg:4326&bbox=-5,43,20,50&format=image/png You can see the results are good without any problem. In WCS server, you cannot do this, because mapserv refuse to compress data on one axe. So if you have blank results, this is maybe because your request is not with good ratios. Personnaly, when i ask a bbox (minx,miny,maxx,maxy) for a size (width x height) for example, i have to check the resolution of X and Y (i have only 2D data) resolution_asked_x_pixel = (maxx-minx)/width resolution_asked_y_pixel = (maxy-miny)/height if resolution_asked_(x or y) are not equal, then i take one of them (x or y, depends what you want) to re-computing width or height value. An example in WCS request : a request 512x512 for bbox=-5,43,2,50, normal ratio X/Y for square size : http://iceds.ge.ucl.ac.uk/cgi-bin/icedswcs?VERSION=1.0.0&SERVICE=WCS&REQUEST=GetCoverage&coverage=srtm&width=512&height=512&bbox=-5,43,2,50&crs=epsg:4326&FORMAT=image/png The result is good, because the resolution_pixel x and y are the same (this layer has native_resolution x and y at (+/-) 0.00083333, has you can see with this request : http://iceds.ge.ucl.ac.uk/cgi-bin/icedswcs?SERVICE=WCS&REQUEST=describecoverage&coverage=srtm ). Now if your strech the axe x : http://iceds.ge.ucl.ac.uk/cgi-bin/icedswcs?VERSION=1.0.0&SERVICE=WCS&REQUEST=GetCoverage&coverage=srtm&width=512&height=512&bbox=-5,43,20,50&crs=epsg:4326&FORMAT=image/png you can see the picture is always 512x512, but the data as keept the same ratio X/Y, and you have blank result on bottom. Personnaly on my server, i don't have this result for this last request, i have only blank file. So I suspect you have the same problem than me. Other solution could be to keep the size 512x512 but to modify the bbox to respect the ratio, Another solution could be to use the resX=??&resY=?? inside of width=??&height=?? in your request, depends on your needs. To finish, be careful if you have to reproject (like me), by asking requests with crs value different from the native crs from data. You will have to warn the units (meter / degrees for UTM / latlon), and to use resolution_asked_(x/y)_pixel AND native_resolution_(x/y) to computing height or width value. Moreover, take care ! only 1 pixel difference on width or height value can give you blank or good results !! I hope this could be helpful for you, sincerely, J?r?me Martin edfialk a ?crit : > Something else I thought I should add, I seem to have forgotten each netCDF > file I'm using (1960-2000) contains 12 months worth of data (only 12 > values), but so far I have seen the time extracted from the filename. > > I extracted the year but statically-added 01-01T00 to each, when what I > really need is MM-01T00... > > So I'm curious when I make the request for a certain year (1960-01-01) how > to control which data comes out or if the netCDF automatically takes care of > that. > > -Ed > From warmerdam at POBOX.COM Thu Mar 29 17:17:06 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 29 Mar 2007 20:17:06 -0400 Subject: WCS from multiple netCDF returning only background image In-Reply-To: <460C4DA8.3010008@free.fr> Message-ID: J?r?me Martin wrote: > In fact the resolution pixel X must be the same as the resolution pixel > Y, to do not strech on one axe the data. Ed / J?r?me, This is not expected behavior and if it persists in MapServer 4.10.1 and/or CVS-head I'd appreciate a bug report. One thing that is different when the aspect ratio is non-square is that MapServer goes through more general resampling code (similar to when reprojection is taking place), so if there are problems with the coordinate system definitions on layers or the WCS request things might fail. 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 | President OSGeo, http://osgeo.org From sunxj at YAHOO.COM Thu Mar 29 17:20:23 2007 From: sunxj at YAHOO.COM (Shannon Sun) Date: Thu, 29 Mar 2007 17:20:23 -0700 Subject: How to get logs during developement. New user questions. Message-ID: Dear folks, I created a map file and template file. I am using ArcSDE as a data source. Now the web browser return nothing. and no error message, no log. What should I do to know where is the problem? Thanks a lot for your advice. Shannon ____________________________________________________________________________________ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 From IANT at NAPIER.GOVT.NZ Thu Mar 29 20:26:00 2007 From: IANT at NAPIER.GOVT.NZ (Ian Tidy) Date: Fri, 30 Mar 2007 15:26:00 +1200 Subject: Running MapServer from CD or DVD Message-ID: Hi All, Is it possible to run MapServer (and Apache) from a CD or DVD? Cheers Ian ______________________ Ian Tidy GIS Administrator Works Asset Department Napier City Council Hastings St, Private Bag 6010, Napier, New Zealand Phone +64-6-835-7579 Ext. 8115 Fax +64-6-834-4195 mailto:iant at napier.govt.nz http://www.napier.govt.nz ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at PCRESO.COM Thu Mar 29 21:11:26 2007 From: pcreso at PCRESO.COM (Brent Wood) Date: Thu, 29 Mar 2007 21:11:26 -0700 Subject: Running MapServer from CD or DVD In-Reply-To: Message-ID: --- Ian Tidy wrote: > Hi All, > > Is it possible to run MapServer (and Apache) from a CD or DVD? Hi Ian, A reply from not so far away :-) I've run it from a LiveCD, along with QGIS & PostGIS. A useful link here: http://www.livecdlist.com/wiki/index.php/LiveCD_Creation_Resources I haven't run it from a CD when booting from a hard drive, but I imagine if you configured the httpd init script to point to a CD/DVD it would be possible. Or are you still struggling with Windows? :-) Cheers, Brent Wood From tim.bowden at WESTNET.COM.AU Thu Mar 29 21:14:03 2007 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Fri, 30 Mar 2007 12:14:03 +0800 Subject: Running MapServer from CD or DVD In-Reply-To: Message-ID: On Fri, 2007-03-30 at 15:26 +1200, Ian Tidy wrote: > Hi All, > > Is it possible to run MapServer (and Apache) from a CD or DVD? > > Cheers Ian In principle, I can't see why not. You're obviously running from a windows system (or building a portable demo disk), otherwise under *nix you'd just mount a hdd partition as read only. Google is good for running Apache off a CD. There will be some need for writing to disk though; Log files, tmp directory. And it will be slow from cd. Lots of ram will probably help this a little. Can windows create and mount a ram disk read only? That might be another option if you have gobs of ram. See http://lists.maptools.org/pipermail/ms4w-users/2006-September/000631.html from the archives for a few hints. HTH, Tim Bowden From frezzz_54 at YAHOO.COM Thu Mar 29 21:16:14 2007 From: frezzz_54 at YAHOO.COM (theresia freska) Date: Thu, 29 Mar 2007 21:16:14 -0700 Subject: multiple extent Message-ID: hi list, i'm using queryByAttribute in an application to find a street. a street might consists of 3 or 4 lines. if i want to zoom in to that street, how to get an extent for those lines? i've tried using oExtents = oShape->bounds, but it only returns an extent for a line. also, i'm a bit confused about MapServer's keyword, FILTER and CLASSITEM. i guess FILTER is applied in the same time as the spatial data is rendered. does that give a performance improvement compared to CLASSITEM? the more i know MapServer, the more questions come in :D --------------------------------- Don't get soaked. Take a quick peek at the forecast with theYahoo! Search weather shortcut. -------------- next part -------------- An HTML attachment was scrubbed... URL: From naci0002 at UMN.EDU Thu Mar 29 21:18:58 2007 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Thu, 29 Mar 2007 23:18:58 -0500 Subject: Running MapServer from CD or DVD In-Reply-To: Message-ID: Sure! You can use MapServer's map mode (mode=map) to generate your maps without having to create a temporary directory. You won't be able to use WMS (and WFS/WCS) as they require IMAGEPATH and IMAGEURL (which needs to be writeable) but chances are you don't want to use those anyway. You might also be able to use OpenLayers if you don't want to create your own interface. To make this work on any CD/Drive drive, make sure to omit the drive letter when defining paths in Apache and MapServer. See MS4W to get an idea of what I'm talking about. Cheers! -Perry Ian Tidy wrote: > > Hi All, > > Is it possible to run MapServer (and Apache) from a CD or DVD? > > Cheers Ian > ______________________ > * Ian Tidy * > * GIS Administrator * > Works Asset Department > Napier City Council > Hastings St, Private Bag 6010, Napier, New Zealand > * Phone +64-6-835-7579 Ext. 8115 * > Fax +64-6-834-4195 > mailto:iant at napier.govt.nz > http://www.napier.govt.nz > From peter_sykora at GMX.AT Thu Mar 29 22:39:42 2007 From: peter_sykora at GMX.AT (Peter Sykora) Date: Fri, 30 Mar 2007 00:39:42 -0500 Subject: Problem: ANGLEITEM and TRANSPARENT Message-ID: > As a follow up. The patch was not as complete as I hoped. I worked on the > problem until late last night but did not end up committing anything- still > working on it though. Hello Steve, what ist the current status concerning that problem? I?ve experienced the following problems (ms4w, mapserver 4.10.0) creating a road sign renderer where I want to align road signs along the street path: - As described in the previous posts the transparency does not work correctly when the symbols are rotated. My experience is that the resulting image is transparent, but overlapping symbols are excluding each other (see attachment and view roadsigns_rotated.png in a viewer that is able to display transparency) - The transparency works fine when the symbols are not rotated using png export, but when using jpeg output the transparency is gone. I really hope there is a solution for that ... Best regards Peter -------------- next part -------------- A non-text attachment was scrubbed... Name: roadsigns_no_rotation.jpg Type: image/jpeg Size: 19181 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: roadsigns_no_rotation.png Type: image/png Size: 10933 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: roadsigns_rotated.png Type: image/png Size: 11784 bytes Desc: not available URL: From umberto.nicoletti at GMAIL.COM Thu Mar 29 23:31:22 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 30 Mar 2007 08:31:22 +0200 Subject: Mapscript crashing Tomcat --> [Panic] In-Reply-To: <460BFB1B.1090704@digitro.com.br> Message-ID: This problem with GD has been a long-standing issue and it is worsened by the fact that gd development stalled for quite some time. Gd 2.0.34 is a most welcome release! Umberto On 3/29/07, Rodrigo Del C. Andrade wrote: > > Dear Frank and Umberto: > > Thanks a lot for the advice, you really nailed it. I haven't tried > reproducing it on mapserver cgi yet, but upgrading GD to 2.0.34 (I had > 2.0.33) apparently did the trick. > I am testing it as I type, but it has been running for 20 min now > and it haven't crashed yet, as opposed to the 20 secs crash. > I tracked down that linux machine where it used to work fine and > sure enough, that one had the newer GD in it. > > Thanks a whole lot. > Sincerely > > Rodrigo > > Umberto Nicoletti wrote: > > On 3/28/07, Frank Warmerdam wrote: > >> Rodrigo Del C. Andrade wrote: > >> > Greetings. dear list. > >> > We are experiencing some troubling difficulties developing an > >> > application with mapscript on a Java web based environment with > >> tomcat. > >> > Here is the deal: while using the app (not nearly done, but > >> > functional enough at this stage) when one tries to zoom (in or out) or > >> > pan the map more than a few times, Tomcat often will go down screaming > >> > and the JVM just gives up on life. > >> > I know this is probably not the right or best place to ask about > >> it, > >> > but it seems to be caused by the interaction of mapscript and the GD > >> > library. > >> > Here is the JVM output short version (long version is attached > >> > at the bottom): > >> ... > >> > Any ideas? Full JVM error log is at the bottom. I am ready to > >> give in > >> > more info if needed. > >> > Thanks in advance; > >> ... > >> > >> > Stack: [0xb0203000,0xb0284000), sp=0xb0279ed4, free space=475k > >> > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, > >> > C=native code) > >> > C [libgd.so.2+0x8182] > >> > C [libgd.so.2+0x9a16] gdImageLine+0x4a6 > >> > C [libmapscript.so+0xad355] > >> > C [libmapscript.so+0xb310e] msDrawLineSymbolGD+0xe7e > >> > C [libmapscript.so+0xa75fb] msDrawLineSymbol+0x8b > >> > C [libmapscript.so+0xa9cb2] msDrawShape+0x17e2 > >> > C [libmapscript.so+0xaa6d8] msDrawVectorLayer+0x398 > >> > C [libmapscript.so+0xaa97a] msDrawLayer+0xaa > >> > C [libmapscript.so+0xaba67] msDrawMap+0x6a7 > >> > C [libmapscript.so+0x552b5] > >> > >> Rodrigo, > >> > >> I'd suggesting seeing if you can reproduce this without Java > >> involved. I > >> suspect there is some sort of memory error in msDrawLineSymbolGD() > >> (possibly > >> the infamous antialiasing bug?). > > > > Frank, > > I bet it is exactly that! > > Rodrigo: upgrade to gd 2.0.34 (http://www.libgd.org/Main_Page) and > > tell us if the problem goes away. > > > > Umberto > > > >> > >> Capture your map configuration into a map file, and run the map through > >> shp2img or mapserv with the appropriate layers turned on, and similar > >> view configuration *and* run it under "valgrind" to quickly highly > >> memory corruption as soon as it happens. > >> > >> If you can reproduce it this way,then you have something you can file > >> as a bug report. > >> > >> MapServer is not bug free, and it is important to be able to narrow > >> down bugs without too much extraneous stuff. > >> > >> 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 | President OSGeo, > >> http://osgeo.org > >> > > > > > From umberto.nicoletti at GMAIL.COM Thu Mar 29 23:34:52 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 30 Mar 2007 08:34:52 +0200 Subject: shapeObj.getCentroid question - Mapscript_csharp In-Reply-To: <011901c77246$e6b4e340$660ba8c0@dnr.state.in.us> Message-ID: Which one do you find to be correct: the centroid of the clone or of the original shape? It *could* be that the clone function is not entirely correct. Umberto On 3/29/07, David Lowther wrote: > > > > > Sorry for the mass postings? > > > > I've noticed that getCentroid behaves differently after projection of the > shapeObj based on whether you reproject the shape or a clone of the shape. > Not clear? No lie, I had a hard time typing the sentence. > > > > In the following example you can see that I can get the right answer, I was > just wondering if someone could explain the difference in behavior. > > > > Here's an example: > > > > Partial Class ProjectPointGetCentroid > > Inherits System.Web.UI.Page > > > > Protected Sub Page_Load(ByVal sender As Object, ByVal e As > System.EventArgs) Handles Me.Load > > '//project a shapeObj and getCentroid returns coordinates in > previous projection > > TestProjectNOClone() > > TestProjectClone() > > End Sub > > > > Private Sub TestProjectNOClone() > > '//Incorrect Result > > '//pCent will equal oCent > > > > Dim albProj As String = "+proj=aea +lat_1=29.500000000 > +lat_2=45.500000000 +lat_0=23.000000000 " _ > > & "+lon_0=-96.000000000 +x_0=0.000 +y_0=0.000 +datum=NAD83 > +ellps=GRS80 +no_defs" > > Dim llProj As String = "+proj=longlat +ellps=GRS80 + no_defs" > > > > Dim shp As New > shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POLYGON) > > Dim shp2 As New > shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POLYGON) > > Dim line As New lineObj() > > Dim pt As New pointObj(-100, 35, Nothing, Nothing) > > line.add(pt) > > pt = New pointObj(-100, 36, Nothing, Nothing) > > line.add(pt) > > pt = New pointObj(-101, 36, Nothing, Nothing) > > line.add(pt) > > pt = New pointObj(-101, 35, Nothing, Nothing) > > line.add(pt) > > pt = New pointObj(-100, 35, Nothing, Nothing) > > line.add(pt) > > shp.add(line) > > > > Dim oCent As pointObj = shp.getCentroid() > > Dim result As Integer > > result = shp.project(New projectionObj(llProj), New > projectionObj(albProj)) > > Dim pCent As pointObj = shp.getCentroid() > > > > End Sub > > > > Private Sub TestProjectClone() > > '//Correct Result > > '//pCent will NOT equal oCent > > > > Dim albProj As String = "+proj=aea +lat_1=29.500000000 > +lat_2=45.500000000 +lat_0=23.000000000 " _ > > & "+lon_0=-96.000000000 +x_0=0.000 +y_0=0.000 +datum=NAD83 > +ellps=GRS80 +no_defs" > > Dim llProj As String = "+proj=longlat +ellps=GRS80 + no_defs" > > > > Dim shp As New > shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POLYGON) > > Dim shp2 As New > shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POLYGON) > > Dim line As New lineObj() > > Dim pt As New pointObj(-100, 35, Nothing, Nothing) > > line.add(pt) > > pt = New pointObj(-100, 36, Nothing, Nothing) > > line.add(pt) > > pt = New pointObj(-101, 36, Nothing, Nothing) > > line.add(pt) > > pt = New pointObj(-101, 35, Nothing, Nothing) > > line.add(pt) > > pt = New pointObj(-100, 35, Nothing, Nothing) > > line.add(pt) > > shp.add(line) > > > > Dim oCent As pointObj = shp.getCentroid() > > Dim pShp As shapeObj > > pShp = shp.clone() > > Dim result As Integer > > result = pShp.project(New projectionObj(llProj), New > projectionObj(albProj)) > > Dim pCent As pointObj = pShp.getCentroid() > > > > End Sub > > End Class > > > > Thanks, > > > > > > David Lowther > > > > > > Coordinate Solutions, Inc. > > > 501 N.E. 15th Street > > > Oklahoma City, OK 73104 > > > 405.246.9396 (Voice) > > > 904.471.5548 (Fax) > > > www.coordinatesolutions.com From prodriguez at ADASASISTEMAS.COM Fri Mar 30 01:44:56 2007 From: prodriguez at ADASASISTEMAS.COM (=?iso-8859-1?Q?Pablo__Rodr=EDguez_Madro=F1o?=) Date: Fri, 30 Mar 2007 10:44:56 +0200 Subject: error en mapserv? Message-ID: Hi, This behaviour is normal. You should include some reference to a mapfile in the URL, as you can see in the MapServer tutorial samples (http://biometry.gis.umn.edu/tutorial/) Pablo Rodr?guez Madro?o Divisi?n de Sistemas de Informaci?n ADASA Sistemas 93.264.06.02 600.92.65.10 _____ De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de Eduardo Ar?valo Enviado el: jueves, 29 de marzo de 2007 21:24 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: [UMN_MAPSERVER-USERS] error en mapserv? Hello List: There am instaldo mapserver-4.8 in Linux. the moment for doing tests: http://10.1.6.46/cgi-bin/mapserv? it does not leave the mesaje to me: Not query information to decode. QUERY_STRING is Seth, but empty. help please -------------- next part -------------- An HTML attachment was scrubbed... URL: From prodriguez at ADASASISTEMAS.COM Fri Mar 30 01:52:16 2007 From: prodriguez at ADASASISTEMAS.COM (=?iso-8859-1?Q?Pablo__Rodr=EDguez_Madro=F1o?=) Date: Fri, 30 Mar 2007 10:52:16 +0200 Subject: How to get logs during developement. New user questions. Message-ID: Hello, As long as no error is returned the problem is surely a misconfiguration. First try to see if your extent limits are correct. Please post more details about your configuration... Can you paste here your mapfile and your template file? Pablo Rodr?guez Madro?o Divisi?n de Sistemas de Informaci?n ADASA Sistemas 93.264.06.02 600.92.65.10 -----Mensaje original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de Shannon Sun Enviado el: viernes, 30 de marzo de 2007 2:20 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: [UMN_MAPSERVER-USERS] How to get logs during developement. New user questions. Dear folks, I created a map file and template file. I am using ArcSDE as a data source. Now the web browser return nothing. and no error message, no log. What should I do to know where is the problem? Thanks a lot for your advice. Shannon ____________________________________________________________________________________ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 From tim.bowden at WESTNET.COM.AU Fri Mar 30 01:55:48 2007 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Fri, 30 Mar 2007 16:55:48 +0800 Subject: error en mapserv? In-Reply-To: <95f68e530703291224o691de6dfi58eff9c57666f3ea@mail.gmail.com> Message-ID: On Thu, 2007-03-29 at 14:24 -0500, Eduardo Ar?valo wrote: > Hello List: There am instaldo mapserver-4.8 in Linux. the moment for > doing tests: http://10.1.6.46/cgi-bin/mapserv? > it does not leave the mesaje to me: Not query information to decode. > QUERY_STRING is Seth, but empty. > help please If you're not getting this message, what does the url return? Have you copied the mapserv cgi application to the correct location? What message do you get when you run it from the command line (./mapserv)? You should get: This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. Tim Bowden From tim.bowden at WESTNET.COM.AU Fri Mar 30 02:01:37 2007 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Fri, 30 Mar 2007 17:01:37 +0800 Subject: How to get logs during developement. New user questions. In-Reply-To: <539925.5249.qm@web39606.mail.mud.yahoo.com> Message-ID: On Thu, 2007-03-29 at 17:20 -0700, Shannon Sun wrote: > Dear folks, > > I created a map file and template file. > > I am using ArcSDE as a data source. > > > Now the web browser return nothing. and no error > message, no log. > > > What should I do to know where is the problem? > Thanks a lot for your advice. > > > Shannon 1. Is it retuning a blank gif/png? Maybe a scale or extents issue. 2. Have you set debug on in your map file? 3. Check apache logs to see if apache is handling the request ok. Tim Bowden From umn-ms at HYDROTEC.DE Fri Mar 30 02:40:54 2007 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Fri, 30 Mar 2007 11:40:54 +0200 Subject: [UMN_MAPSERVER-DEV] [UMN_MAPSERVER-USERS] Anyone compared the performance between ArcIMS, MapServer, ArcGIS In-Reply-To: <75b4b93e0703300018r5a4f6686v83799deca54a6218@mail.gmail.com> Message-ID: Umberto, > This program of mine also translates .axl to .map I'm interested in this also. Did you forget to attach a link or did I overlook something or ...? Thanks Benedikt UMN MapServer Developers List schrieb am 30.03.2007 09:18:15: > > > This program of mine also translates .axl to .map > > Umberto > > > > On 3/30/07, Benedikt Rothe wrote: > > > > Hi, > > > > In the presentation a XSLT-Stylesheet is mentioned, which transforms from > > AXL > > to Map-Server-Files. > > Is this stylesheet available? > > > > Benedikt > > > > UMN MapServer Users List schrieb am > > 29.03.2007 20:17:40: > > > > > > > http://mapserver.gis.umn. > > > > > edu/community/conferences/MUM3/present/session10/msvsarcims/view > > > > > > Shannon Sun wrote: > > > > > > > is anyone compared the performance between ArcIMS, > > > > MapServer and ArcGIS Server? > > > > > > > > or if you know some good articles related to this, > > > > could you also please drop me an email? > > > > > > > > > > > > > -- > > > > > > Paul Ramsey > > > Refractions Research > > > http://www.refractions.net > > > pramsey at refractions.net > > > Phone: 250-383-3022 > > > Cell: 250-885-0632 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Fri Mar 30 02:44:33 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 30 Mar 2007 11:44:33 +0200 Subject: [UMN_MAPSERVER-DEV] [UMN_MAPSERVER-USERS] Anyone compared the performance between ArcIMS, MapServer, ArcGIS In-Reply-To: Message-ID: Oooops! http://msconsole.sourceforge.net/ Umberto On 3/30/07, umn-ms at hydrotec.de wrote: > > Umberto, > > > This program of mine also translates .axl to .map > I'm interested in this also. Did you forget to attach a link or did I > overlook something or ...? > Thanks > Benedikt > > UMN MapServer Developers List schrieb am > 30.03.2007 09:18:15: > > > > > > > > This program of mine also translates .axl to .map > > > > Umberto > > > > > > > > On 3/30/07, Benedikt Rothe wrote: > > > > > > Hi, > > > > > > In the presentation a XSLT-Stylesheet is mentioned, which transforms > from > > > AXL > > > to Map-Server-Files. > > > Is this stylesheet available? > > > > > > Benedikt > > > > > > UMN MapServer Users List schrieb am > > > 29.03.2007 20:17:40: > > > > > > > > > > http://mapserver.gis.umn. > > > > > > > > edu/community/conferences/MUM3/present/session10/msvsarcims/view > > > > > > > > Shannon Sun wrote: > > > > > > > > > is anyone compared the performance between ArcIMS, > > > > > MapServer and ArcGIS Server? > > > > > > > > > > or if you know some good articles related to this, > > > > > could you also please drop me an email? > > > > > > > > > > > > > > > > > -- > > > > > > > > Paul Ramsey > > > > Refractions Research > > > > http://www.refractions.net > > > > pramsey at refractions.net > > > > Phone: 250-383-3022 > > > > Cell: 250-885-0632 > > > > From luper.rouch at GMAIL.COM Thu Mar 29 17:54:35 2007 From: luper.rouch at GMAIL.COM (Luper Rouch) Date: Fri, 30 Mar 2007 02:54:35 +0200 Subject: Enabling antialiasing on an OGR polygon layer with STYLEITEM "AUTO" Message-ID: Hello, Is it possible to enable antialiasing on an OGR polygon layer with STYLEITEM "AUTO" ? I tried : LAYER NAME foo STATUS ON TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "foo.TAB" STYLEITEM "AUTO" CLASS NAME "foo" STYLE ANTIALIAS true END END END But the style seems to be ignored. Thanks, Luper Rouch From D.A.Kilham at BRISTOL.AC.UK Fri Mar 30 03:13:38 2007 From: D.A.Kilham at BRISTOL.AC.UK (David Kilham, Geographical Sciences) Date: Fri, 30 Mar 2007 11:13:38 +0100 Subject: A 'simple' query question- php/mapscript/mysql? Message-ID: Folks, I've searched high and low, up and down, but I'm stumped. I've got a simple dataset, 1000 points or so, with 10 attributes, running in MapServer. It's so small I can attach them to a shapefile.dbf and use them directly in the Nquery, Itemnquery, etc. to produce searches and output to tables (so far so good). 'All' I want to do is have the user search from two attributes (or more), to produce a map with only these results, e.g. counties and population. In fact, the exact example I'd like to follow is in the search part of: but this uses ArcIMS. I 'think' the mapscript/php/mysql route seems the most profitable, but any any help, advice (short of buying ArcIMS), would be gladly appreciated. Cheers, David. ---------------------- Dr David Kilham, Geographical Sciences University of Bristol D.A.Kilham at bristol.ac.uk From dlowther at COORDINATESOLUTIONS.COM Fri Mar 30 04:08:45 2007 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Fri, 30 Mar 2007 07:08:45 -0400 Subject: shapeObj.getCentroid question - Mapscript_csharp In-Reply-To: <75b4b93e0703292334x3709c64fw8a3b44735793361@mail.gmail.com> Message-ID: I find TestProjectClone to be correct. TestProjectNOClone returns .bounds in a different projection than .getCentroid. David Lowther -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Umberto Nicoletti Sent: Friday, March 30, 2007 2:35 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] shapeObj.getCentroid question - Mapscript_csharp Which one do you find to be correct: the centroid of the clone or of the original shape? It *could* be that the clone function is not entirely correct. Umberto On 3/29/07, David Lowther wrote: > > > > > Sorry for the mass postings. > > > > I've noticed that getCentroid behaves differently after projection of the > shapeObj based on whether you reproject the shape or a clone of the shape. > Not clear? No lie, I had a hard time typing the sentence. > > > > In the following example you can see that I can get the right answer, I was > just wondering if someone could explain the difference in behavior. > > > > Here's an example: > > > > Partial Class ProjectPointGetCentroid > > Inherits System.Web.UI.Page > > > > Protected Sub Page_Load(ByVal sender As Object, ByVal e As > System.EventArgs) Handles Me.Load > > '//project a shapeObj and getCentroid returns coordinates in > previous projection > > TestProjectNOClone() > > TestProjectClone() > > End Sub > > > > Private Sub TestProjectNOClone() > > '//Incorrect Result > > '//pCent will equal oCent > > > > Dim albProj As String = "+proj=aea +lat_1=29.500000000 > +lat_2=45.500000000 +lat_0=23.000000000 " _ > > & "+lon_0=-96.000000000 +x_0=0.000 +y_0=0.000 +datum=NAD83 > +ellps=GRS80 +no_defs" > > Dim llProj As String = "+proj=longlat +ellps=GRS80 + no_defs" > > > > Dim shp As New > shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POLYGON) > > Dim shp2 As New > shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POLYGON) > > Dim line As New lineObj() > > Dim pt As New pointObj(-100, 35, Nothing, Nothing) > > line.add(pt) > > pt = New pointObj(-100, 36, Nothing, Nothing) > > line.add(pt) > > pt = New pointObj(-101, 36, Nothing, Nothing) > > line.add(pt) > > pt = New pointObj(-101, 35, Nothing, Nothing) > > line.add(pt) > > pt = New pointObj(-100, 35, Nothing, Nothing) > > line.add(pt) > > shp.add(line) > > > > Dim oCent As pointObj = shp.getCentroid() > > Dim result As Integer > > result = shp.project(New projectionObj(llProj), New > projectionObj(albProj)) > > Dim pCent As pointObj = shp.getCentroid() > > > > End Sub > > > > Private Sub TestProjectClone() > > '//Correct Result > > '//pCent will NOT equal oCent > > > > Dim albProj As String = "+proj=aea +lat_1=29.500000000 > +lat_2=45.500000000 +lat_0=23.000000000 " _ > > & "+lon_0=-96.000000000 +x_0=0.000 +y_0=0.000 +datum=NAD83 > +ellps=GRS80 +no_defs" > > Dim llProj As String = "+proj=longlat +ellps=GRS80 + no_defs" > > > > Dim shp As New > shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POLYGON) > > Dim shp2 As New > shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POLYGON) > > Dim line As New lineObj() > > Dim pt As New pointObj(-100, 35, Nothing, Nothing) > > line.add(pt) > > pt = New pointObj(-100, 36, Nothing, Nothing) > > line.add(pt) > > pt = New pointObj(-101, 36, Nothing, Nothing) > > line.add(pt) > > pt = New pointObj(-101, 35, Nothing, Nothing) > > line.add(pt) > > pt = New pointObj(-100, 35, Nothing, Nothing) > > line.add(pt) > > shp.add(line) > > > > Dim oCent As pointObj = shp.getCentroid() > > Dim pShp As shapeObj > > pShp = shp.clone() > > Dim result As Integer > > result = pShp.project(New projectionObj(llProj), New > projectionObj(albProj)) > > Dim pCent As pointObj = pShp.getCentroid() > > > > End Sub > > End Class > > > > Thanks, > > > > > > David Lowther > > > > > > Coordinate Solutions, Inc. > > > 501 N.E. 15th Street > > > Oklahoma City, OK 73104 > > > 405.246.9396 (Voice) > > > 904.471.5548 (Fax) > > > www.coordinatesolutions.com From dmorissette at MAPGEARS.COM Fri Mar 30 04:53:41 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 30 Mar 2007 07:53:41 -0400 Subject: Problem: ANGLEITEM and TRANSPARENT In-Reply-To: Message-ID: I didn't follow the previous posts in this thread, but just in case I thought I'd ask: did you try setting TRANSPARENCY ALPHA in your layer? Daniel Peter Sykora wrote: >> As a follow up. The patch was not as complete as I hoped. I worked on the >> problem until late last night but did not end up committing anything- still >> working on it though. > > Hello Steve, > what ist the current status concerning that problem? > I?ve experienced the following problems (ms4w, mapserver 4.10.0) creating a > road sign renderer where I want to align road signs along the street path: > - As described in the previous posts the transparency does not work > correctly when the symbols are rotated. My experience is that the resulting > image is transparent, but overlapping symbols are excluding each other (see > attachment and view roadsigns_rotated.png in a viewer that is able to > display transparency) > - The transparency works fine when the symbols are not rotated using png > export, but when using jpeg output the transparency is gone. > > I really hope there is a solution for that ... > > Best regards > Peter > > -- Daniel Morissette http://www.mapgears.com/ From woodbri at SWOODBRIDGE.COM Fri Mar 30 06:47:01 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 30 Mar 2007 08:47:01 -0500 Subject: issue with classitem and tileindex... In-Reply-To: <9742947.post@talk.nabble.com> Message-ID: John, Here is my layer setup and it works just fine. But I think you need to go back to your ROOT error message. >>> msDBFGetItemIndex(): DBASE file error. Item 'CFCC' not For example what to you get if you run dbfdump or ogrinfo -so landmark.dbf landmark -Steve # # Area Landmarks # LAYER NAME "Area_Landmarks" STATUS DEFAULT DATA "landmark" TYPE POLYGON TILEINDEX "tgrindex" MAXSCALE 500100.0 LABELMAXSCALE 10100.0 CLASSITEM "CFCC" LABELITEM "NAME" CLASS NAME "Military" EXPRESSION /^D10/ COLOR 153 153 102 # Military Installation or Reservation OUTLINECOLOR -1 -1 -1 LABEL FONT "arial" TYPE TRUETYPE POSITION CC SIZE 7 BUFFER 4 COLOR 0 0 0 OUTLINECOLOR 245 245 231 ANTIALIAS TRUE PARTIALS FALSE END END ... END John Cole wrote: > Brent, > Well, I didn't know about the 'newer' method. I got it working similar to > the 'old' one but it still doesn't recognize the 'CFCC' column when I add > the class item. > > Thanks, > > John > > > Brent Fraser wrote: >> John, >> >> You could try the newer (and more flexible?) "two-layer" >> style of tileindex specification: >> >> LAYER >> NAME "lpy_idx_lyr" >> TYPE TILEINDEX >> DATA "lpy_idx" >> END >> >> >> LAYER >> NAME "landmark_polys" >> GROUP "bound" >> TILEINDEX "lpy_idx_lyr" # this points to the above layer >> METADATA >> "wms_title" "landmark_polys" >> "wms_group_title" "landmark" >> END >> PROJECTION >> "init=epsg:4326" >> END >> STATUS ON >> CLASSITEM "CFCC" >> CLASS >> EXPRESSION "D82" >> NAME 'Cemetary' >> MAXSCALE 250000 >> STYLE >> COLOR 209 208 204 >> END >> END >> END >> >> I haven't tested this, so it may not work. The trick is to >> tell Mapserver the CLASS is to be applied to the files >> pointed to by the tileindex, not the tile index itself (I'm >> sure it doesn't have an attributed named "CFCC"). >> >> Steve Woodbridge may have some insight into this, since it's >> tiled vectors; I've only done tiled raster.... >> >> Brent Fraser >> GeoAnalytic Inc. >> Calgary, Alberta >> >> ----- Original Message ----- >> From: "John Cole" >> To: >> Sent: Thursday, March 29, 2007 2:04 PM >> Subject: Re: [UMN_MAPSERVER-USERS] issue with classitem and >> tileindex... >> >> >>> Steve, >>> Thanks for the quick reply, unfortunately I had already >> tried that :-( >>> msDBFGetItemIndex(): DBASE file error. Item 'CFCC' not >> found. >>> Is there anything else that could be wrong? >>> >>> Here is my layer: >>> >>> LAYER >>> NAME "landmark_polys" >>> GROUP "bound" >>> TILEINDEX "lpy_idx" >>> METADATA >>> "wms_title" "landmark_polys" >>> "wms_group_title" "landmark" >>> END >>> PROJECTION >>> "init=epsg:4326" >>> END >>> STATUS ON >>> CLASSITEM "CFCC" >>> TYPE POLYGON >>> >>> CLASS >>> EXPRESSION "D82" >>> NAME 'Cemetary' >>> MAXSCALE 250000 >>> STYLE >>> COLOR 209 208 204 >>> END >>> END >>> END >>> >>> We are using the current version of MS4W. >>> >>> Thanks, >>> >>> John >>> >>> >>> Stephen Woodbridge wrote: >>>> John, >>>> >>>> In shapefiles attribute are all upper case. try: >>>> classitem 'CFCC' >>>> >>>> -Steve W >>>> >>>> John Cole wrote: >>>>> I have a couple of county shapefiles where I've created >> a tileindex using >>>>> tile4ms. When I render these with MS, things work fine >> until I set the >>>>> classitem, and then it can't find the classitem column >> on the shapefile >>>>> (in >>>>> this case 'cfcc'). >>>>> >>>>> Is there something special you have to do to use a >> class item or label >>>>> item >>>>> with a tileindex? >>>>> >>>>> Thanks, >>>>> >>>>> John >>>> >>> -- >>> View this message in context: >> http://www.nabble.com/issue-with-classitem-and-tileindex...-tf3488200.html#a9741591 >>> Sent from the Mapserver - User mailing list archive at >> Nabble.com. >> >> > From thesl at YAHOO.COM Fri Mar 30 06:19:41 2007 From: thesl at YAHOO.COM (Peter Shrock) Date: Fri, 30 Mar 2007 06:19:41 -0700 Subject: issue with classitem and tileindex... In-Reply-To: <9744231.post@talk.nabble.com> Message-ID: I have had the same problem. I have sent my data to MapServer people for testing. I assume it is a bug. Peter --- John Cole wrote: > Brent, > Thanks, I'm not up to the task of debugging mapserver just yet :-) > > I've check the column names and the appear to be the same. If I remember > correctly, the tile4ms program chokes if the schemas are different, doesn't > it? > > I'd be happy to send anyone an example who wanted to debug this. It's > only two county landmark polyogns shapefiles and the tile index. > > John > > > > Brent Fraser wrote: > > > > John, > > > > Make sure all the tile shapefiles have the same attributes > > (name, type, and order). Other than that, I'm tempted to > > fire up the debugger... > > > > Searching the email archive shows some posts about Tiger > > data working with a tileindex, and classes with expressions, > > so it should work (I know, that doesn't help much). > > > > Brent Fraser > > GeoAnalytic Inc. > > Calgary, Alberta > > > > ----- Original Message ----- > > From: "John Cole" > > To: > > Sent: Thursday, March 29, 2007 3:21 PM > > Subject: Re: [UMN_MAPSERVER-USERS] issue with classitem and > > tileindex... > > > > > >> Brent, > >> Well, I didn't know about the 'newer' method. I got it > > working similar to > >> the 'old' one but it still doesn't recognize the 'CFCC' > > column when I add > >> the class item. > >> > >> Thanks, > >> > >> John > >> > >> > >> Brent Fraser wrote: > >> > > >> > John, > >> > > >> > You could try the newer (and more flexible?) > > "two-layer" > >> > style of tileindex specification: > >> > > >> > LAYER > >> > NAME "lpy_idx_lyr" > >> > TYPE TILEINDEX > >> > DATA "lpy_idx" > >> > END > >> > > >> > > >> > LAYER > >> > NAME "landmark_polys" > >> > GROUP "bound" > >> > TILEINDEX "lpy_idx_lyr" # this points to the above > > layer > >> > METADATA > >> > "wms_title" "landmark_polys" > >> > "wms_group_title" "landmark" > >> > END > >> > PROJECTION > >> > "init=epsg:4326" > >> > END > >> > STATUS ON > >> > CLASSITEM "CFCC" > >> > CLASS > >> > EXPRESSION "D82" > >> > NAME 'Cemetary' > >> > MAXSCALE 250000 > >> > STYLE > >> > COLOR 209 208 204 > >> > END > >> > END > >> > END > >> > > >> > I haven't tested this, so it may not work. The trick is > > to > >> > tell Mapserver the CLASS is to be applied to the files > >> > pointed to by the tileindex, not the tile index itself > > (I'm > >> > sure it doesn't have an attributed named "CFCC"). > >> > > >> > Steve Woodbridge may have some insight into this, since > > it's > >> > tiled vectors; I've only done tiled raster.... > >> > > >> > Brent Fraser > >> > GeoAnalytic Inc. > >> > Calgary, Alberta > >> > > >> > ----- Original Message ----- > >> > From: "John Cole" > >> > To: > >> > Sent: Thursday, March 29, 2007 2:04 PM > >> > Subject: Re: [UMN_MAPSERVER-USERS] issue with classitem > > and > >> > tileindex... > >> > > >> > > >> >> Steve, > >> >> Thanks for the quick reply, unfortunately I had > > already > >> > tried that :-( > >> >> > >> >> msDBFGetItemIndex(): DBASE file error. Item 'CFCC' not > >> > found. > >> >> > >> >> Is there anything else that could be wrong? > >> >> > >> >> Here is my layer: > >> >> > >> >> LAYER > >> >> NAME "landmark_polys" > >> >> GROUP "bound" > >> >> TILEINDEX "lpy_idx" > >> >> METADATA > >> >> "wms_title" "landmark_polys" > >> >> "wms_group_title" "landmark" > >> >> END > >> >> PROJECTION > >> >> "init=epsg:4326" > >> >> END > >> >> STATUS ON > >> >> CLASSITEM "CFCC" > >> >> TYPE POLYGON > >> >> > >> >> CLASS > >> >> EXPRESSION "D82" > >> >> NAME 'Cemetary' > >> >> MAXSCALE 250000 > >> >> STYLE > >> >> COLOR 209 208 204 > >> >> END > >> >> END > >> >> END > >> >> > >> >> We are using the current version of MS4W. > >> >> > >> >> Thanks, > >> >> > >> >> John > >> >> > >> >> > >> >> Stephen Woodbridge wrote: > >> >> > > >> >> > John, > >> >> > > >> >> > In shapefiles attribute are all upper case. try: > >> >> > classitem 'CFCC' > >> >> > > >> >> > -Steve W > >> >> > > >> >> > John Cole wrote: > >> >> >> I have a couple of county shapefiles where I've > > created > >> > a tileindex using > >> >> >> tile4ms. When I render these with MS, things work > > fine > >> > until I set the > >> >> >> classitem, and then it can't find the classitem > > column > >> > on the shapefile > >> >> >> (in > >> >> >> this case 'cfcc'). > >> >> >> > >> >> >> Is there something special you have to do to use a > >> > class item or label > >> >> >> item > >> >> >> with a tileindex? > >> >> >> > >> >> >> Thanks, > >> >> >> > >> >> >> John > >> >> > > >> >> > > >> >> > >> >> -- > >> >> View this message in context: > >> > > > > http://www.nabble.com/issue-with-classitem-and-tileindex...-tf3488200.html#a9741591 > >> >> Sent from the Mapserver - User mailing list archive at > >> > Nabble.com. > >> > > >> > > >> > >> -- > === message truncated === ____________________________________________________________________________________ Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html From David.Fawcett at STATE.MN.US Fri Mar 30 06:26:02 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 30 Mar 2007 08:26:02 -0500 Subject: Running MapServer from CD or DVD In-Reply-To: A<460C8FB2.2010000@umn.edu> Message-ID: Several years ago, I created a demo app that ran off of a CD. I used a 'small footprint' Web server called SambarServer. It worked fine. With a DVD and much faster machines, this should perform even better. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Pericles S. Nacionales Sent: Thursday, March 29, 2007 11:19 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Running MapServer from CD or DVD Sure! You can use MapServer's map mode (mode=map) to generate your maps without having to create a temporary directory. You won't be able to use WMS (and WFS/WCS) as they require IMAGEPATH and IMAGEURL (which needs to be writeable) but chances are you don't want to use those anyway. You might also be able to use OpenLayers if you don't want to create your own interface. To make this work on any CD/Drive drive, make sure to omit the drive letter when defining paths in Apache and MapServer. See MS4W to get an idea of what I'm talking about. Cheers! -Perry Ian Tidy wrote: > > Hi All, > > Is it possible to run MapServer (and Apache) from a CD or DVD? > > Cheers Ian > ______________________ > * Ian Tidy * > * GIS Administrator * > Works Asset Department > Napier City Council > Hastings St, Private Bag 6010, Napier, New Zealand > * Phone +64-6-835-7579 Ext. 8115 * > Fax +64-6-834-4195 > mailto:iant at napier.govt.nz > http://www.napier.govt.nz > From JHoude at KOREM.COM Fri Mar 30 09:38:58 2007 From: JHoude at KOREM.COM (Houde, Jonathan) Date: Fri, 30 Mar 2007 12:38:58 -0400 Subject: MapScript Java problem Message-ID: Hi, I'm trying to make MapScript java work under tomcat 5.5.17 / jdk 6.0 / windows xp And I'm getting the following error: java.lang.UnsatisfiedLinkError: C:\mapscript\mapscript.dll: The operating system cannot run %1 I already included the following folder in the path system variable C:\ms4w\Apache\cgi-bin C:\ms4w\Apache\cgi-bin\mapscript\java As well as the proj lib variable. PROJ_LIB C:\ms4w\proj\nad The package I installed is from ms4w_2.2.3.zip I have tried several variation of my setup including change of jdk to 5.0 and I keep getting that error... I know that the actual dlls are found in the path since when I remove one folder from the path variable I receive either, UnsatisfiedLinkError: C:\mapscript\mapscript.dll, ddl not in the java.library.path Or Dll dependency not found in the java.library.path This seems to be related with dll version mismatch. For example: http://support.borland.com/entry.jspa?externalID=6065&categoryID=447 Any ideas? Thanks, Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From nbarker at ITTVIS.COM Fri Mar 30 09:58:20 2007 From: nbarker at ITTVIS.COM (Norman Barker) Date: Fri, 30 Mar 2007 17:58:20 +0100 Subject: WCS from multiple netCDF returning only background image Message-ID: Hi Frank, all, I raised this as a bug report about 18 months or so ago, and put in a proposed fix, and it was put into the main code with a bit of twist, and I noticed that it didn't fix the problem with my data, thinking it was just a problem with my dataset I just continue to patch MapServer. It might be the same problem you are seeing. (Must add this isn't a criticism, I am not a c++ programmer, and I could never write anything as fast as mapserver, just trying to help :-) ). Can you try this in mapresample.c (Fixed msSimpleRasterResample() so that if in raw mode it loops through all the available bands) and see if it works (it is probably horribly inefficient) /************************************************************************/ /* msSimpleRasterResample() */ /************************************************************************/ static int msSimpleRasterResampler( imageObj *psSrcImage, colorObj offsite, imageObj *psDstImage, int *panCMap, SimpleTransformer pfnTransform, void *pCBData, int debug ) { double *x, *y; int nDstX, nDstY; int *panSuccess; int nDstXSize = psDstImage->width; int nDstYSize = psDstImage->height; int nSrcXSize = psSrcImage->width; int nSrcYSize = psSrcImage->height; int nFailedPoints = 0, nSetPoints = 0; gdImagePtr srcImg, dstImg; srcImg = psSrcImage->img.gd; dstImg = psDstImage->img.gd; x = (double *) malloc( sizeof(double) * nDstXSize ); y = (double *) malloc( sizeof(double) * nDstXSize ); panSuccess = (int *) malloc( sizeof(int) * nDstXSize ); int band; for (band =0; band < psSrcImage->format->bands; band++) { for( nDstY = 0; nDstY < nDstYSize; nDstY++ ) { for( nDstX = 0; nDstX < nDstXSize; nDstX++ ) { x[nDstX] = nDstX + 0.5; y[nDstX] = nDstY + 0.5; } pfnTransform( pCBData, nDstXSize, x, y, panSuccess ); for( nDstX = 0; nDstX < nDstXSize; nDstX++ ) { int nSrcX, nSrcY; int nValue; if( !panSuccess[nDstX] ) { nFailedPoints++; continue; } nSrcX = (int) x[nDstX]; nSrcY = (int) y[nDstX]; /* * We test the original floating point values to * avoid errors related to asymmetric rounding around zero. */ if( x[nDstX] < 0.0 || y[nDstX] < 0.0 || nSrcX >= nSrcXSize || nSrcY >= nSrcYSize ) { continue; } if( MS_RENDERER_GD(psSrcImage->format) ) { if( !gdImageTrueColor(psSrcImage->img.gd) ) { nValue = panCMap[srcImg->pixels[nSrcY][nSrcX]]; if( nValue == -1 ) continue; nSetPoints++; dstImg->pixels[nDstY][nDstX] = nValue; } else { int nValue = srcImg->tpixels[nSrcY][nSrcX]; int gd_alpha = gdTrueColorGetAlpha(nValue); if( gd_alpha == 0 ) { nSetPoints++; dstImg->tpixels[nDstY][nDstX] = nValue; } else if( gd_alpha == 127 ) /* overlay is transparent, do nothing */; else { nSetPoints++; dstImg->tpixels[nDstY][nDstX] = gdAlphaBlend( dstImg->tpixels[nDstY][nDstX], nValue ); } } } else if( MS_RENDERER_RAWDATA(psSrcImage->format) ) { if( psSrcImage->format->imagemode == MS_IMAGEMODE_INT16 ) { int nValue; nValue = psSrcImage->img.raw_16bit[ nSrcX + nSrcY * psSrcImage->width + band*psSrcImage->width*psSrcImage->height]; if( nValue == offsite.red ) continue; nSetPoints++; psDstImage->img.raw_16bit[ nDstX + nDstY * psDstImage->width + band*psDstImage->width*psDstImage->height] = nValue; } else if( psSrcImage->format->imagemode == MS_IMAGEMODE_FLOAT32) { float fValue; fValue = psSrcImage->img.raw_float[ nSrcX + nSrcY * psSrcImage->width + band*psSrcImage->width*psSrcImage->height]; if( fValue == offsite.red ) continue; nSetPoints++; psDstImage->img.raw_float[ nDstX + nDstY * psDstImage->width + band*psDstImage->width*psDstImage->height] = fValue; } else if( psSrcImage->format->imagemode == MS_IMAGEMODE_BYTE) { int nValue; nValue = psSrcImage->img.raw_byte[ nSrcX + nSrcY * psSrcImage->width + band*psSrcImage->width*psSrcImage->height]; if( nValue == offsite.red ) continue; nSetPoints++; psDstImage->img.raw_byte[nDstX + nDstY * psDstImage->width + band*psDstImage->width*psDstImage->height] = (unsigned char) nValue; } else { assert( 0 ); } } } } } free( panSuccess ); free( x ); free( y ); /* -------------------------------------------------------------------- */ /* Some debugging output. */ /* -------------------------------------------------------------------- */ if( nFailedPoints > 0 && debug ) { char szMsg[256]; sprintf( szMsg, "msSimpleRasterResampler: " "%d failed to transform, %d actually set.\n", nFailedPoints, nSetPoints ); msDebug( szMsg ); } return 0; } -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: 29 March 2007 18:17 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WCS from multiple netCDF returning only background image J?r?me Martin wrote: > In fact the resolution pixel X must be the same as the resolution pixel > Y, to do not strech on one axe the data. Ed / J?r?me, This is not expected behavior and if it persists in MapServer 4.10.1 and/or CVS-head I'd appreciate a bug report. One thing that is different when the aspect ratio is non-square is that MapServer goes through more general resampling code (similar to when reprojection is taking place), so if there are problems with the coordinate system definitions on layers or the WCS request things might fail. 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 | President OSGeo, http://osgeo.org From percyd at PDX.EDU Fri Mar 30 10:47:55 2007 From: percyd at PDX.EDU (percy) Date: Fri, 30 Mar 2007 10:47:55 -0700 Subject: wrapping around the dateline using geographic coordinates In-Reply-To: <624365.30254.qm@web33208.mail.mud.yahoo.com> Message-ID: Brent, thanks for taking the time to tell me about your tactics! This gives me some ideas to chew on... It will take a while to work it all out :-) Brent Wood wrote: > --- percy wrote: > >> Thanks Frank! >> >> I'd rather stick with something more standard so that we can integrate >> with other services. > > Hi Percy. > > We have done this two ways (New Zealand has the same problem). > > By a custom mercator with a central meridian at 100 & lat of true scale at -41. > Geographic coordinates are noticeably lacking however :-( > > > I have used for some years a 0-360 longitude EPSG:4326 coordinate system. > > Note that EPSG:4326 does not explictly define the longitude range, but most > implementations assume +-180, although many, including mapserver, are quite > happy with 0-360 data. > > I have a request in to EPSG to consider tidying this up & providing a 0-360 > WGS84 "projection" with a formally specified EPSG code. I'm not sure where this > is at, hoping to hear soon. > > Proj.4 now allows users to specify the central meridian of a lat/long > coordinate system, so you can specify 0 (default) or 180 (ie, 0-360). > > GMT supports (effectively) a mod360 longitudinal model, which is great, but not > much use with mapserver. > > > With raster tiles, I have used +-180 based tiles, then symbolic linked the > -180-0 tiles & generated world files which are 180-360 for the same tiles. This > avoided having to replicate tiles & gives a -180 to 360 cover. > > Using PostGIS for my vector data, something along the lines of > > create table temp as > select id + (select max(id), > ..., > setsrid(translate(the_geom,360,0,0),4327); > > insert into table > select * from temp; > > replicates all the -180 to 0 features with 180-360 longitudes, (where my 4327 > is a custom projection, 4326 with the proj central meridian at 180). > > I'd guess a view on the 4326 tables unioning translated vectors would also > work. > > > Lines & points work fine, polygons require tidying up by selecting > intersections with a polygon of each longitudinal hemisphere to close them at > the new limits, but it is quite workable. Hope this makes sense... > > If you have to work with other data which is stuck at +-180, I think stuck > might describe the situation well. > > If EPSG come to the party it may provide a solution longer term. > > > Cheers, > > Brent Wood > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From hartpence_gis at CO.JASPER.IA.US Fri Mar 30 10:49:13 2007 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Fri, 30 Mar 2007 12:49:13 -0500 Subject: dBox & Firefox Message-ID: Hello. I am using MapServer 4.8. I am working on an implementation using dbox in a CGI environment so i am not using mapserv.js. What I have so far, works with Internet Explorer, but not Firefox. the way I have it setup, the user needs to click on the map image to initialize dbox. Again, this works fine when using IE, but not firefox. Here is the URL: http://216.203.113.94/JasperMaps/cgi-bin/mapserv.exe?&program=%2FJasperMaps%2Fcgi-bin%2Fmapserv.exe&map=C%3A%5CInetpub%5Cwwwroot%5Cmapdocs%5CParcels.map&zoomsize=2&layers=ortho+Parcels+Lots+ROW+Survey+Section+Sub+ParcelPt+Water+Shields+Highways+Roads+County+Towns&mode=browse&slayer=Parcels&imgxy=320+240&imgext=1680507.39+547052.00+1844030.00+680312.51&mapshape=&imgshape=&imgbox=&qstring=&qlayer=Parcels&qitem=&shapeindex=&savequery= Thanks! Lawrence Hartpence Jasper County Iowa hartpence_gis at co.jasper.ia.us From lichte at ICBM.DE Fri Mar 30 12:09:09 2007 From: lichte at ICBM.DE (Oliver Lichte) Date: Fri, 30 Mar 2007 21:09:09 +0200 Subject: [SPAM][PROB=81%] Re: [UMN_MAPSERVER-USERS] dBox & Firefox Message-ID: Hello Lawrence, maybe the name of your image 'main' is ambigue. main is also this dbox-object. Perhaps firefox cannot resolve this. However I'm woundering why there does not appear any error message. Try to rename the main image. Regards, Oliver Am Freitag 30 M?rz 2007 19:49 schrieben Sie : > Hello. > I am using MapServer 4.8. ?I am working on an implementation using dbox in > a CGI environment so i am not using mapserv.js. ?What I have so far, works > with Internet Explorer, but not Firefox. ?the way I have it setup, the user > needs to click on the map image to initialize dbox. ?Again, this works fine > when using IE, but not firefox. > Here is the URL: > http://216.203.113.94/JasperMaps/cgi-bin/mapserv.exe?&program=%2FJasperMaps >%2Fcgi-bin%2Fmapserv.exe&map=C%3A%5CInetpub%5Cwwwroot%5Cmapdocs%5CParcels.ma >p&zoomsize=2&layers=ortho+Parcels+Lots+ROW+Survey+Section+Sub+ParcelPt+Water >+Shields+Highways+Roads+County+Towns&mode=browse&slayer=Parcels&imgxy=320+24 >0&imgext=1680507.39+547052.00+1844030.00+680312.51&mapshape=&imgshape=&imgbo >x=&qstring=&qlayer=Parcels&qitem=&shapeindex=&savequery= > > Thanks! > > Lawrence Hartpence > Jasper County Iowa > hartpence_gis at co.jasper.ia.us -- Nachwuchsforschergruppe IMPULSE Institut f?r Chemie und Biologie des Meeres (ICBM) Carl-von-Ossietzky-Stra?e 9-11 Postfach 2503 D-26129 Oldenburg www.icbm.de/impulse www.icbm.de/anemos www.kids4offshore.eu Tel.: +49-441-798-3622 Fax : +49-441-798-3404 Mail:lichte at icbm.de IMPULSE is also involved in the European project POWER Pushing Offshore Wind Energy Regions See the POWER Website: www.offshore-power.net -- Nachwuchsforschergruppe IMPULSE Institut f?r Chemie und Biologie des Meeres (ICBM) Carl-von-Ossietzky-Stra?e 9-11 Postfach 2503 D-26129 Oldenburg www.icbm.de/impulse www.icbm.de/anemos www.kids4offshore.eu Tel.: +49-441-798-3622 Fax : +49-441-798-3404 Mail:lichte at icbm.de IMPULSE is also involved in the European project POWER Pushing Offshore Wind Energy Regions See the POWER Website: www.offshore-power.net From XIJIANG.SUN at SAIC.COM Fri Mar 30 12:57:24 2007 From: XIJIANG.SUN at SAIC.COM (Sun, Xijiang) Date: Fri, 30 Mar 2007 15:57:24 -0400 Subject: FW: Help: SDE error. SE_layer_get_info(): Layer not found. (-20) Message-ID: Dear folks, I am using the MapServer 4.10.1, the data source is from ArcSDE 9.1 for Oracle. My settings is like below: NAME 'GDT.SDE_BAY_ZIPI' GROUP 'GDT.SDE_BAY_ZIPI' CONNECTIONTYPE sde #CONNECTION 'SunServer,5151,sde,ps,ps' CONNECTION "SunServer,port:5151,sde,ps,ps" DATA "GDT.SDE_BAY_ZIPI, SHAPE" #DATA "GDT.SDE_BAY_ZIPI, SHAPE, SDE.DEFAULT" Now I get message like below: msDrawMap(): Image handling error. Failed to draw layer named 'GDT.SDE_BAY_ZIPI'. msSDELayerOpen(): SDE error. SE_layer_get_info(): . (1) msSDEGetLayerInfo(): SDE error. SE_layer_get_info(): Layer not found. (-20) CGI Request 1 on process 5032 msDrawMap(): Layer 0 (GDT.SDE_BAY_ZIP), 0.020s Another interesting thing is that I can not specify "SDE.DEFAULT". if I use setting like below. DATA "GDT.SDE_BAY_ZIPI, SHAPE, SDE.DEFAULT" When I am using DATA "GDT.SDE_BAY_ZIPI, SHAPE, SDE.DEFAULT" I got the following error. msDrawMap(): Image handling error. Failed to draw layer named 'GDT.SDE_BAY_ZIPI'. msSDELayerOpen(): SDE error. SE_version_get_info(): Version not found. (-126) CGI Request 1 on process 4676 msDrawMap(): Layer 0 (GDT.SDE_BAY_ZIP), 0.010s The data connection looks correct. I am able to view the same data through ArcCatalog. Any hint to help me continue my work? Thanks a lot. Have a great weekend. Sun -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikesaunt at GMAIL.COM Fri Mar 30 13:25:08 2007 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Fri, 30 Mar 2007 21:25:08 +0100 Subject: Fwd: Selecting and then querying using multiple features In-Reply-To: <5a9686e80703261453l739ec961w982932b9e9489a93@mail.gmail.com> Message-ID: I sent this earlier in the week but it appears that I have hit the limit of the MapServer CGI as I haven't had any replies - sorry sarcastic but I've had a long week I guess the next question would be what would it take to be able to pass multiple items in an ITEMQUERY style command? Would it be much coding? Would there be anyone up for it? Many thanks Mike ---------- Forwarded message ---------- From: Mike Saunt Date: 26-Mar-2007 22:53 Subject: Selecting and then querying using multiple features To: MAPSERVER USERS Hi all In essence this is what I'm trying to achieve but I'm trying to work out the best way of doing it - I want to use the CGI as it is powerful, very stable and extremley fast. I've had great success with MapServer before where it can perform queries against tens of layers in under 2 seconds when having one feature to select against. Here is the problem... I want a user to be able to interactively from multiple clicks on a map to select features and then they can issue a query taking all selected features and doing feature intersect queries against multiple other layers. Pretty simple! I'm fine with writing wrapper code to allow the user to select a feature at a point - MODE=QUERY - and then find and store the feature id's for subsequent calls to the CGI Is there a way to be able to pass multiple feature id's to MapServer to highlight as selected in a maps? Then in the same fashion can I pass multiple feature id's (acting as the selection again) to then be used in a NQUERY to find which features from other layers intersect. Should I be looking at using a QUERYFILE? Is this possible - I'm sure it is as everything else I've wanted to do the CGI seems to be able to do it! Thanks in advance Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From XIJIANG.SUN at SAIC.COM Fri Mar 30 13:31:36 2007 From: XIJIANG.SUN at SAIC.COM (Sun, Xijiang) Date: Fri, 30 Mar 2007 16:31:36 -0400 Subject: Help. SDE error. SE_stream_set_spatial_constraints(): Spatial index does not exist . (-321) Message-ID: Hi Folks, Now I get the following error message. msDrawMap(): Image handling error. Failed to draw layer named 'GDT.SDE_BAY_ZIPI'. msSDELayerWhichShapes(): SDE error. SE_stream_set_spatial_constraints(): Spatial index does not exist . (-321) CGI Request 1 on process 6112 msDrawMap(): Layer 0 (GDT.SDE_BAY_ZIP), 0.020s 1. ArcSDE 9.1 for Oracle. 2. Mapserver 4.10.1 3. I am able to view the data from ArcCatalog. Any hint or suggestion for this? Thanks a lot and have a great weekend. Sun -------------- next part -------------- An HTML attachment was scrubbed... URL: From XIJIANG.SUN at SAIC.COM Fri Mar 30 13:32:18 2007 From: XIJIANG.SUN at SAIC.COM (Sun, Xijiang) Date: Fri, 30 Mar 2007 16:32:18 -0400 Subject: Help: SDE error. SE_layer_get_info(): Layer not found. (-20) Message-ID: I Solved this problem by myself. Rewrite the connection string, full computer name and no space between. Now it solved the problem. Thanks and Regards, Sun -----Original Message----- From: Sun, Xijiang [mailto:XIJIANG.SUN at saic.com] Sent: Fri 3/30/2007 3:57 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: FW: Help: SDE error. SE_layer_get_info(): Layer not found. (-20) Dear folks, I am using the MapServer 4.10.1, the data source is from ArcSDE 9.1 for Oracle. My settings is like below: NAME 'GDT.SDE_BAY_ZIPI' GROUP 'GDT.SDE_BAY_ZIPI' CONNECTIONTYPE sde #CONNECTION 'SunServer,5151,sde,ps,ps' CONNECTION "SunServer,port:5151,sde,ps,ps" DATA "GDT.SDE_BAY_ZIPI, SHAPE" #DATA "GDT.SDE_BAY_ZIPI, SHAPE, SDE.DEFAULT" Now I get message like below: msDrawMap(): Image handling error. Failed to draw layer named 'GDT.SDE_BAY_ZIPI'. msSDELayerOpen(): SDE error. SE_layer_get_info(): . (1) msSDEGetLayerInfo(): SDE error. SE_layer_get_info(): Layer not found. (-20) CGI Request 1 on process 5032 msDrawMap(): Layer 0 (GDT.SDE_BAY_ZIP), 0.020s Another interesting thing is that I can not specify "SDE.DEFAULT". if I use setting like below. DATA "GDT.SDE_BAY_ZIPI, SHAPE, SDE.DEFAULT" When I am using DATA "GDT.SDE_BAY_ZIPI, SHAPE, SDE.DEFAULT" I got the following error. msDrawMap(): Image handling error. Failed to draw layer named 'GDT.SDE_BAY_ZIPI'. msSDELayerOpen(): SDE error. SE_version_get_info(): Version not found. (-126) CGI Request 1 on process 4676 msDrawMap(): Layer 0 (GDT.SDE_BAY_ZIP), 0.010s The data connection looks correct. I am able to view the same data through ArcCatalog. Any hint to help me continue my work? Thanks a lot. Have a great weekend. Sun -------------- next part -------------- An HTML attachment was scrubbed... URL: From boice at RUNSKIP.COM Fri Mar 30 18:53:22 2007 From: boice at RUNSKIP.COM (boice tomlin) Date: Fri, 30 Mar 2007 21:53:22 -0400 Subject: map extent Message-ID: Hello, I have a few different shape files at different resolutions that I want to load based on the extent of the map the user is viewing. So if they are viewing the entire country for instance I want to load in my low resolution data set. The problem I'm having is that if a user zooms in on the map I have to create the map object using the map file which specifies which shapefile I am using, then use phpmapscript to zoom in, and then retrieve the extent using phpmapscript functions. This obviously doesn't help me load in the appropriate shapefile because I have to create the map object in order to do any of the previous steps. A bit of a paradox - load in the shapefile only to find out that I might have wanted to use a different shapefile... So the short question is how can I zoom in and get the extent before loading the shapefile? thanks, boice //////////////////////////// Run Skip http://runskip.com/ boice tomlin boice at runskip.com 503-528-6204 -------------- next part -------------- An HTML attachment was scrubbed... URL: From boolean10001 at YAHOO.COM Sat Mar 31 11:12:59 2007 From: boolean10001 at YAHOO.COM (Carlos Ruiz) Date: Sat, 31 Mar 2007 11:12:59 -0700 Subject: MapScript Java problem In-Reply-To: Message-ID: You can specify the -D java's parameter you can stablish the path where the dlls required are. Java -Djava.library.path=c:\MyMapscriptDLLPath MyApp Try it IC Carlos Ruiz --------------------------------- Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thesl at YAHOO.COM Sat Mar 31 18:32:24 2007 From: thesl at YAHOO.COM (Peter Shrock) Date: Sat, 31 Mar 2007 18:32:24 -0700 Subject: issue with classitem and tileindex... In-Reply-To: <460D14D5.8070102@swoodbridge.com> Message-ID: My layer setup is like this, but I got the same error message (msDBFGetItemIndex(): DBASE file error. Item 'DATETIME' not found). In my case, when I used point shapefile, it worked. In point shapefile, the wms_timeitem field and the classitem are both in the point shapefile. But if we use tile index file, the wms_timeitem field is in the tile index shapefile, but the classitem field is in the data shapefile. I guess this is why mapserver shows the error message. This may mean that mapserver design only supports point shapefile (WMS-timeitem and classitem are both in the data shapefile) and raster tile (TYEP RASTER) , not good for polygon shapefiles with seperate tile index. Is this the case? Peter # Tile Index layer LAYER STATUS ON NAME "time_idx1" TYPE POLYGON DATA "tile_index2.shp" METADATA "wms_title" "TIME INDEX" "wms_srs" "EPSG:4326" "wms_extent" "142 40 -50 85" "wms_timeextent" "2002-11-30-/2006-11-30" "wms_timeitem" "DATETIME" "wms_timedefault" "2006-11-30" END END # Data layer LAYER NAME "timemap1" TYPE POLYGON STATUS ON DEBUG ON PROJECTION "init=epsg:4326" END METADATA "wms_title" "sample WMS-T" "wms_srs" "EPSG:4326" "wms_extent" "142 40 -50 85" "wms_timeextent" "2002-11-30-/2006-11-30" "wms_timeitem" "DATETIME" #datetime is a column of type date/timestamp "wms_timedefault" "2006-11-30" END TILEITEM "Location" TILEINDEX "time_idx1" END --- Stephen Woodbridge wrote: > John, > > Here is my layer setup and it works just fine. But I think you need to > go back to your ROOT error message. > > >>> msDBFGetItemIndex(): DBASE file error. Item 'CFCC' not > > For example what to you get if you run dbfdump or > ogrinfo -so landmark.dbf landmark > > -Steve > > # > # Area Landmarks > # > LAYER > NAME "Area_Landmarks" > STATUS DEFAULT > DATA "landmark" > TYPE POLYGON > TILEINDEX "tgrindex" > MAXSCALE 500100.0 > LABELMAXSCALE 10100.0 > CLASSITEM "CFCC" > LABELITEM "NAME" > CLASS > NAME "Military" > EXPRESSION /^D10/ > COLOR 153 153 102 > # Military Installation or Reservation > OUTLINECOLOR -1 -1 -1 > LABEL > FONT "arial" > TYPE TRUETYPE > POSITION CC > SIZE 7 > BUFFER 4 > COLOR 0 0 0 > OUTLINECOLOR 245 245 231 > ANTIALIAS TRUE > PARTIALS FALSE > END > END > ... > END > > > John Cole wrote: > > Brent, > > Well, I didn't know about the 'newer' method. I got it working similar > to > > the 'old' one but it still doesn't recognize the 'CFCC' column when I add > > the class item. > > > > Thanks, > > > > John > > ____________________________________________________________________________________ Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html From john.cole at UAI.COM Sat Mar 31 19:56:32 2007 From: john.cole at UAI.COM (John Cole) Date: Sat, 31 Mar 2007 19:56:32 -0700 Subject: issue with classitem and tileindex... In-Reply-To: <895739.52074.qm@web38114.mail.mud.yahoo.com> Message-ID: We discovered that the batch file creating the tile index was picking up the tile index itself, and adding a reference. The tile index, of course, did NOT have any attributes on it. We found out by opening up the tile index in qgis and saw that it had an extra row. Modifying the batch file to delete the tile indexes before creating them solved the problem. This would be a good thing to add to the tile index page. We are now using tile indexes for points, lines, polygons, and annotation. John -- View this message in context: http://www.nabble.com/issue-with-classitem-and-tileindex...-tf3488200.html#a9774378 Sent from the Mapserver - User mailing list archive at Nabble.com.