From crane_ba at YAHOO.COM Wed Mar 1 01:16:47 2006 From: crane_ba at YAHOO.COM (Ben Crane) Date: Wed, 1 Mar 2006 01:16:47 -0800 Subject: Preventing browser refresh using Mapserver In-Reply-To: Message-ID: To true. Looks good... I'm still trying to get ka-map off the ground for some reason! Problems...:) Thank you Ben --- Steve Lime wrote: > You can also do something like is done on this site: > > http://www.dnr.state.mn.us/maps/landview.html > > The coordinates are managed entirely on the client > using javascript. Only the > images are ever swapped. In this example the legend > is swapped using AJAX > each time the map changes (to deal with > layers/scaling). We're getting away > from that though using XML extracted via a mapfile > and hooking that together > with the Yahoo developer tools (tree/task/folder > view). I hope to have a > something that sits atop the Yahoo libs along with a > bit of custom stuff > very soon (call it dBox2)... > > Combine this or something like ka-map with a bit of > AJAX and you can do a > lot without ever refreshing the page. > > Steve > > >>> Ben Crane 02/28/06 3:16 AM > >>> > Hi all, > > In Mapserver applications, is there anyway of > stopped > the page being refreshed every time a request is > made > to the server? I have heard of using XML HTTP > Request > Object? > > Regards > Ben > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From crane_ba at YAHOO.COM Wed Mar 1 01:25:26 2006 From: crane_ba at YAHOO.COM (Ben Crane) Date: Wed, 1 Mar 2006 01:25:26 -0800 Subject: ka-map query Message-ID: Hey all, I've downloaded ka-map and dumped it under the mapserver folder on my pc. I have looked at the O'Reilly website which explains how to get it all up and running but I have a couple questions because things aren't quite working out: 1. I can get mapserver.exe to run without a problem, but kamap doesn't unpack into the htdocs folder under msmw. Where do I need to put the kamap htdocs folder for it to be accessed? The tutorial doesn't specifically tell you. I'm presuming ALL the data/html, etc it will need to be under the msmw htdocs folder? 2. I now have to servers running on my laptop, apache and mapserver. Where does kamap fit in and with an additional http.default config file present with kamap I need to understand just how it fits in with mapserver. Are there any more basic tutorials explaining this addon? I can get mapserver up and running without a problem and parse maps, label, etc...so I'm pretty confident with that at the moment, but using AJAX is quite important to me as a development. Regards Ben Crane __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Wolfgang.Qual at MUENCHEN.DE Wed Mar 1 02:13:46 2006 From: Wolfgang.Qual at MUENCHEN.DE (Wolfgang Qual) Date: Wed, 1 Mar 2006 11:13:46 +0100 Subject: Place reference map inside map window - possible? Message-ID: Hi list, I would like to place the reference map inside the map window. I heard that this should be possible, but I do not know how? I would be very glad to receive some hints. Best regards, Wolfgang -- Wolfgang Qual Landeshauptstadt M?nchen Referat f?r Gesundheit und Umwelt RGU-UW 11 Sg. 1 Gesundheits- und Umweltberichterstattung, Energie und Klimaschutz Bayerstr. 28a, 80335 M?nchen Tel.: +49 (0)89 233-477 17 Fax.: +49 (0)89 233-477 05 E-Mail: wolfgang.qual at muenchen.de From sc0rp10nau at YAHOO.COM.AU Wed Mar 1 02:59:47 2006 From: sc0rp10nau at YAHOO.COM.AU (a j) Date: Wed, 1 Mar 2006 21:59:47 +1100 Subject: Serving ECW's with Mapserver 4.8.1 In-Reply-To: <03b301c63984$96494b90$160002c0@shark> Message-ID: Hi Brent, Thanks for the help. It worked. Also, I had to set the UNITS and EXTENT in METERS as the raster was projected in that. Your post helped see that. Thanks again. Cheers Ajay Brent Fraser wrote: Ajay, Try adding the following to your LAYER definition for the ECW files: PROJECTION "AUTO" END Assuming that: 1. your ECW file has a coordinate system definition 2. you have GDAL with ECW capability linked in to mapserver 3. your map file EXTENTS and UNITS are set so the mapserver generated graphics geographically overlap your ECW file, then you should get the ECW contents rendered into the output image. You mention that you have many ecw's across zones 54 to 56. If you've many ecw files, you'll likely want to create a TILEINDEX layer to access them. And in that case you'll actually have to create one LAYER definition (and one TILEINDEX) for each zone. And you may need to explicitly state the coordinate system in each layer: PROJECTION "proj=utm" "zone=54" "north" "datum=WGS84" "no_defs" END (you'll need to find out which datum or ellipsoid to use). Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Ajay Ranipeta" To: Sent: Thursday, February 23, 2006 3:10 AM Subject: [UMN_MAPSERVER-USERS] Serving ECW's with Mapserver 4.8.1 > Hi guys, > > I have some ecw's that I wanna serve with Mapserver, but I can't seem to get > them to display. These ecw's are projected in GDA94 with Zones 54-56. No > error's come up and other layers (shapes, wbmp's, tiff) come up fine. I use > the CGI mapserver which obviously has GDAL with ECW's already included. I've > gone thru' a few posts regarding ecw's and but no help. Also, as one post > suggested, i've got the header info within the image itself, but that's no > help either. > > I'm sure i'm missing something obvious, so any help would be greatly > appreciated. > > cheers, > Ajay --------------------------------- Do you Yahoo!? Find a local business fast with Yahoo! Local Search -------------- next part -------------- An HTML attachment was scrubbed... URL: From oyvind.eide at MUSPRO.UIO.NO Wed Mar 1 05:57:50 2006 From: oyvind.eide at MUSPRO.UIO.NO (=?iso-8859-1?Q?=D8yvind?= Eide) Date: Wed, 1 Mar 2006 14:57:50 +0100 Subject: Compiling mapserver fails on Solaris Message-ID: We are installing Mapserver to test it as a tool for serving web maps, but have trouble running the configure command. We are using Mapserver 4.8.1 on Solaris 8. Any help or suggestions would be helpful! Here is the relevant output with the error message (we try a barebone installation without links to database, webserver etc. first to try to isolate the problem): hedvig ~/utv/mapserver/mapserver-4.8.1 71> ./configure --with-gd=/local --with-freetype=/local --with-libiconv=/local --with-jpeg=/local --with-png=/local --with-zlib=/local --with-xpm=/local/X11R6 checking for gcc... no checking for cc... cc 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... no checking whether cc accepts -g... yes checking for cc option to accept ANSI C... none needed checking for g++... no checking for c++... no checking for gpp... no checking for aCC... no checking for CC... CC checking whether we are using the GNU C++ compiler... no checking whether CC accepts -g... yes checking for ranlib... : checking for flex... flex checking for yywrap in -lfl... no checking for yywrap in -ll... 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... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... no checking how to run the C preprocessor... cc -E checking for egrep... egrep checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strlcat... yes checking for vsnprintf... yes MapServer Version from map.h: '4.8.1' configure: checking where FreeType 2.x is installed... using libfreetype from -L/local/lib -R/local/lib -lfreetype -lz checking for FT_Init_FreeType in -lfreetype... no using libfreetype -L/local/lib -R/local/lib -lfreetype -lz from system libs. configure: checking where Zlib is installed... using libz from -L/local/lib -lz (-DUSE_ZLIB) configure: checking where PNG is installed... using libpng from -L/local/lib -lpng configure: checking whether we should include JPEG support... using libjpeg from system -L/local/lib -ljpeg configure: checking where libXpm is installed... using libXpm from -L/local/X11R6/lib -lXpm -lX11 configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no using libiconv from -L/local/lib -lc 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 /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). hedvig ~/utv/mapserver/mapserver-4.8.1 72> As far as I can see, I have all the necessary libraries as documented in http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix. As seen above, configure fails before the "using GD" output is reached. The gd files are where they should be: hedvig /local/lib 248> ls /local/include/gd* /local/include/gd.h /local/include/gd_io.h /local/include/gdbm.h ... hedvig /local/lib 249> ls /local/lib/libgd* /local/lib/libgd.a /local/lib/libgd.la /local/lib/libgd.so /local/lib/libgd.so.2 /local/lib/libgd.so.2.0.0 /local/lib/libgdbm.a ... Kind regards, ?yvind Eide From jmckenna at DMSOLUTIONS.CA Wed Mar 1 06:17:02 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 1 Mar 2006 09:17:02 -0500 Subject: ka-map query In-Reply-To: <20060301092526.88710.qmail@web52813.mail.yahoo.com> Message-ID: Hi Ben, Use the ka-map package for ms4w (http://www.maptools.org/ms4w/index.phtml?page=downloads.html) and extract it to the same drive root as your ms4w install - it will extract the ka-map files into ms4w properly. Note that you may want to use the ka-map mailing list (http://lists.maptools.org/mailman/listinfo/ka-map-users), or the IRC online chat room for ka-map at: Server: irc.freenode.net Channel: #kamap jeff Ben Crane wrote: > 1. I can get mapserver.exe to run without a problem, > but kamap doesn't unpack into the htdocs folder under > msmw. Where do I need to put the kamap htdocs folder > for it to be accessed? The tutorial doesn't > specifically tell you. I'm presuming ALL the > data/html, etc it will need to be under the msmw > htdocs folder? > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From baris_999 at YAHOO.COM Wed Mar 1 06:45:56 2006 From: baris_999 at YAHOO.COM (Baris YILMAZ) Date: Wed, 1 Mar 2006 06:45:56 -0800 Subject: Shape layer is not shown. Please help In-Reply-To: <75b4b93e0602282350w632a561auf5a59a9639c1dee3@mail.gmail.com> Message-ID: Hi, I have a map file, which has two layers, one a raster layer, and the other a shapefile. But the raster layer is shown whereas the layer Brunnen (shapefile) is not shown. Can anyone help? I checked the path of the shape file and it is ok.. Can anyone help me please? Is there anything missing in the layer definitions of the layer "Brunnen"? My shapefile contains just cross symbols. Thank you. Baris Below my mapfile; MAP EXTENT 3439438.15784499212000 5501464.74457754190000 3440160.4830 5511464.6416 IMAGECOLOR 240 240 240 IMAGETYPE png SHAPEPATH "C:/ms4w/apps/Data/KartenSHP/GWMshp/" SIZE 500 400 STATUS ON UNITS METERS NAME "Hessischer Ried" OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE "PC256" TRANSPARENT FALSE END PROJECTION "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL STATUS EMBED TEMPLATE "C:/ms4w/apps/maplab-2.2.1/htdocs/mapbrowser/legend_template.html" END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END SCALEBAR COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 4 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL SIZE 200 3 STATUS OFF STYLE 0 UNITS MILES END WEB IMAGEPATH "C:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA END QUERYFORMAT text/html END LAYER DATA "C:\ms4w\apps\Data\KartenSHP\Karten\TK25\60xx\6015SI_96.tif" METADATA END NAME "Ried" SIZEUNITS METERS STATUS ON TOLERANCEUNITS PIXELS TYPE RASTER UNITS METERS END LAYER NAME "Brunnen" STATUS DEFAULT DATA "Brunnen" TYPE POINT UNITS METERS SIZEUNITS PIXELS TOLERANCEUNITS PIXELS METADATA END PROJECTION "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" END CLASS NAME "Brunnen" END END END --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Wed Mar 1 07:07:23 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 1 Mar 2006 17:07:23 +0200 Subject: VS: [UMN_MAPSERVER-USERS] Shape layer is not shown. Please help Message-ID: Hi, I suppose your extents are OK, so the next that comes to my mind is that possibly you do not have enough information in your mapfile about how you would like to present your points. It might be helpful to add something to your CLASS object, like COLOR with some r g b values, or maybe a STYLE object in here: CLASS NAME "Brunnen" END ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Baris YILMAZ L?hetetty: ke 1.3.2006 16:45 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] Shape layer is not shown. Please help Hi, I have a map file, which has two layers, one a raster layer, and the other a shapefile. But the raster layer is shown whereas the layer Brunnen (shapefile) is not shown. Can anyone help? I checked the path of the shape file and it is ok.. Can anyone help me please? Is there anything missing in the layer definitions of the layer "Brunnen"? My shapefile contains just cross symbols. Thank you. Baris Below my mapfile; MAP EXTENT 3439438.15784499212000 5501464.74457754190000 3440160.4830 5511464.6416 IMAGECOLOR 240 240 240 IMAGETYPE png SHAPEPATH "C:/ms4w/apps/Data/KartenSHP/GWMshp/" SIZE 500 400 STATUS ON UNITS METERS NAME "Hessischer Ried" OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE "PC256" TRANSPARENT FALSE END PROJECTION "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIAL S TRUE END POSITION LL STATUS EMBED TEMPLATE "C:/ms4w/apps/maplab-2.2.1/htdocs/mapbrowser/legend_template.html" END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END SCALEBAR COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 4 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIA LS TRUE END POSITION LL SIZE 200 3 STATUS OFF STYLE 0 UNITS MILES END WEB IMAGEPATH "C:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA END QUERYFORMAT text/html END LAYER DATA "C:\ms4w\apps\Data\KartenSHP\Karten\TK25\60xx\6015SI_96.tif" METADATA END NAME "Ried" SIZEUNITS METERS STATUS ON TOLERANCEUNITS PIXELS TYPE RASTER UNITS METERS END LAYER NAME "Brunnen" STATUS DEFAULT DATA "Brunnen" TYPE POINT UNITS METERS SIZEUNITS PIXELS TOLERANCEUNITS PIXELS METADATA END PROJECTION "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" END CLASS NAME "Brunnen" END END END ________________________________ Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. From tkirstine at JDBARNES.COM Wed Mar 1 08:07:36 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Wed, 1 Mar 2006 11:07:36 -0500 Subject: Shape layer is not shown. Please help In-Reply-To: <20060301144556.44660.qmail@web52412.mail.yahoo.com> Message-ID: Firstly, you should define a symbols.sym file that will be used to draw your map symbols (points, lines, polygons) It is declared in the map object just liike SHAPEPATH. By default mapserver will only draw points as one pixel if there is no symbol defined SYMBOLSET your path to the symbol.sym file e.g. /var/www/html/map_symbols/symbols.sym open the symbol.sym file with a text editor and add the following SYMBOL NAME 'circle' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END Save the file and close, Add the following to your Brunnen CLASS in the mapfile CLASS NAME "Brunnen" COLOR 255 0 0 OUTLINECOLOR 0 255 0 SYMBOL 'circle' SIZE 12 END Travis -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Baris YILMAZ Sent: Wednesday, March 01, 2006 9:46 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Shape layer is not shown. Please help Hi, I have a map file, which has two layers, one a raster layer, and the other a shapefile. But the raster layer is shown whereas the layer Brunnen (shapefile) is not shown. Can anyone help? I checked the path of the shape file and it is ok.. Can anyone help me please? Is there anything missing in the layer definitions of the layer "Brunnen"? My shapefile contains just cross symbols. Thank you. Baris Below my mapfile; MAP EXTENT 3439438.15784499212000 5501464.74457754190000 3440160.4830 5511464.6416 IMAGECOLOR 240 240 240 IMAGETYPE png SHAPEPATH "C:/ms4w/apps/Data/KartenSHP/GWMshp/" SIZE 500 400 STATUS ON UNITS METERS NAME "Hessischer Ried" OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE "PC256" TRANSPARENT FALSE END PROJECTION "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL STATUS EMBED TEMPLATE "C:/ms4w/apps/maplab-2.2.1/htdocs/mapbrowser/legend_template.html" END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END SCALEBAR COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 4 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL SIZE 200 3 STATUS OFF STYLE 0 UNITS MILES END WEB IMAGEPATH "C:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA END QUERYFORMAT text/html END LAYER DATA "C:\ms4w\apps\Data\KartenSHP\Karten\TK25\60xx\6015SI_96.tif" METADATA END NAME "Ried" SIZEUNITS METERS STATUS ON TOLERANCEUNITS PIXELS TYPE RASTER UNITS METERS END LAYER NAME "Brunnen" STATUS DEFAULT DATA "Brunnen" TYPE POINT UNITS METERS SIZEUNITS PIXELS TOLERANCEUNITS PIXELS METADATA END PROJECTION "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" END CLASS NAME "Brunnen" END END END ---------------------------------------------------------------------------- -- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. -------------- next part -------------- An HTML attachment was scrubbed... URL: From John.C.Cartwright at NOAA.GOV Wed Mar 1 08:32:27 2006 From: John.C.Cartwright at NOAA.GOV (John Cartwright) Date: Wed, 1 Mar 2006 09:32:27 -0700 Subject: mapserver as WCS client Message-ID: Hello All, I understand that mapserver cannot function as a WCS client (like it can as a WMS client) - is this correct? Thanks! -- john From naci0002 at UMN.EDU Wed Mar 1 09:25:57 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Wed, 1 Mar 2006 11:25:57 -0600 Subject: mapserver as WCS client In-Reply-To: <4405CC9B.8040305@noaa.gov> Message-ID: Hi John, That is correct. I don't know what the rationale is for not supporting it other than the huge bandwidth requirement. Maybe lack of interest? I would imagine most WCS clients have very powerful analytical capabilities whereas with MapServer you'll be pulling large amounts of data for display on the web. I also don't know if MapServer can easily cascade WCS services like it does with WMS. I would think though that a basic support can be implemented fairly easily via GDAL. But this isn't my cup of tea. -Perry John Cartwright wrote: > Hello All, > > I understand that mapserver cannot function as a WCS client (like it can > as a WMS client) - is this correct? > > Thanks! > > -- john > > . > From warmerdam at POBOX.COM Wed Mar 1 09:27:07 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 1 Mar 2006 12:27:07 -0500 Subject: mapserver as WCS client In-Reply-To: <4405CC9B.8040305@noaa.gov> Message-ID: John Cartwright wrote: > Hello All, > > I understand that mapserver cannot function as a WCS client (like it can > as a WMS client) - is this correct? John, That is correct. MapServer does not support reading from remote WCS servers. It likely wouldn't be all that hard to implement but there are no plans to do so for now. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From emmanuel.belo at MICROGIS.CH Wed Mar 1 09:25:42 2006 From: emmanuel.belo at MICROGIS.CH (Emmanuel BELO) Date: Wed, 1 Mar 2006 11:25:42 -0600 Subject: Mapserver caching and map generation Message-ID: Hello, after cleaning the cache, mapserver generates the new images on request. What happens if 10 users ask for the same map during the generation of the first map? Are their request delayed or will 10 processes in parallel be initiated? Best regards, Emmanuel BELO emmanuel.belo at microgis.ch From akrherz at IASTATE.EDU Wed Mar 1 10:01:43 2006 From: akrherz at IASTATE.EDU (Daryl Herzmann) Date: Wed, 1 Mar 2006 12:01:43 -0600 Subject: symbol size In-Reply-To: <200602271242.01257.lluisgarcia@tecnics.org> Message-ID: On Mon, 27 Feb 2006, Llu?s Garcia i Mestres wrote: > hi list, > > I'm using mapserver 4.8 in a Debian. I have a mapfile that was working > propertly under windows (ms4w) but now I'm not getting the symbol size > working. It's allways shown as the default image size. > > Here is the layer > > LAYER > NAME obres_punts > TYPE POINT > STATUS ON > SYMBOLSCALE 30000 > TRANSPARENCY 1000 > DATA "/maps/santguim/shp/obres_punts.shp" > CLASS > STYLE > SYMBOL 'obres' > MAXSIZE 15 > SIZE 5 > END > END > END > > the symbol is correctly defined in the marker file > > SYMBOL > NAME 'obres' > TYPE PIXMAP > IMAGE 'obres3.png' > END I am having the same problem with 4.8.1 php mapscript. My bug is here: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1684 perhaps we are having the same problem? I never tested CGI 4.8.1 to see if it exists there as well. daryl -- /** * Daryl Herzmann (akrherz at iastate.edu) * Program Assistant -- Iowa Environmental Mesonet * http://mesonet.agron.iastate.edu */ From naci0002 at UMN.EDU Wed Mar 1 10:07:29 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Wed, 1 Mar 2006 12:07:29 -0600 Subject: Mapserver on Solaris 10 In-Reply-To: <27325.192.94.41.42.1141191572.squirrel@zeus.crc.id.au> Message-ID: Steven, I don't have Solaris 10 but have compiled everything you mentioned on Solaris 9 successfully using a combination of GNU (gcc, etc.) and Sun's tools. Are you trying to compile using Sun's compilers and utilities? If you use GCC and GNU autoconf, automake, libtool, make, flex and bison, you shouldn't have problems compiling things. Read through the Unix Compilation HOWTO for MapServer at http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix/#obtaining-the-necessary-software for more info. Attached you will also find the configure parameters I've used for each software I compiled in support of MapServer--it should give you an idea of how much time you'll need just to get to compiling MapServer (but now all you need are the source packages). ;) Good luck! -Perry Steven Haigh wrote: > As said on the other reply, this isn't an Athlon machine. I will only have > it for 60 days - so I'm looking at getting some things up and running ASAP > when it arrives. > > At the moment, I know very little about mapserver (I do the sysadmin on > the wireless.org.au server - not the map coding) however I could put > people in here with the people that do the coding for the site to see if > they can enhance the map database that we currently have to try to bog > down this Sun machine. > > My aim is to throw as much as I can at it to see if I can make it slow. > Then review it based on this. > > I personally know very little about GEOS and PostGIS - but I've joined > this list to try to learn a little more about what I'm dealing with. > > On Wed, March 1, 2006 2:20 pm, Paul Ramsey wrote: > >>Steve, >>Any chance you could also do some testing with GEOS and PostGIS on >>that machine? This is Solaris 10 on Athlon 64, right? An interesting >>platform combination, would be nice to know we handle it... >>Paul >> >>On Feb 27, 2006, at 11:51 PM, Steven Haigh wrote: >> >> >>>Hi all, >>> >>>Sun are sending me a Sun Fire T2000 CoolThreads system to play around >>>with, and I'd like to throw mapserver on it and give it a major >>>workout. >>>The current site we run is at http://melbourne.wireless.org.au - >>>with the >>>mapserver part being at http://melbourne.wireless.org.au/maps. >>> >>>While looking through the archives etc, I don't see any mention of >>>Mapserver running on Solaris 10. Does anyone have any experience in >>>running this combination? > > > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ms_configure.txt URL: From ed at TOPOZONE.COM Wed Mar 1 11:02:52 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 1 Mar 2006 14:02:52 -0500 Subject: Mapserver caching and map generation Message-ID: Emmanuel - Each map request generates a unique image, and the URL for that image is returned to the client browser requesting that image. Since your Web server can process several HTTP requests at one time, there can be several MapServer instances all running at the same time. There will be some interaction with the disk subsystem on which the temporary images are written, and from which they are read by the client browsers. Some disk systems can handle multiple simultaneous read/write requests better than others. Nothing will break - but some disk subsystems will take longer than others to respond when multiple reads and writes are happening. In case you haven't discovered it yet, using MapServer as a WMS server or in the CGI "mode=map" mode, the output image is written directly to the client and no temporary files are written to disk. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Emmanuel BELO Sent: Wednesday, March 01, 2006 12:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver caching and map generation Hello, after cleaning the cache, mapserver generates the new images on request. What happens if 10 users ask for the same map during the generation of the first map? Are their request delayed or will 10 processes in parallel be initiated? Best regards, Emmanuel BELO emmanuel.belo at microgis.ch From mtrp36 at HOTMAIL.COM Wed Mar 1 11:43:14 2006 From: mtrp36 at HOTMAIL.COM (K Kuo) Date: Wed, 1 Mar 2006 19:43:14 +0000 Subject: label position Message-ID: Hi list, Since each road has different orientation, is it possible that I can label the road name parallel to each road automatically? thanks Kurt From woodbri at SWOODBRIDGE.COM Wed Mar 1 11:49:26 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 1 Mar 2006 14:49:26 -0500 Subject: label position In-Reply-To: Message-ID: Yes, use Truetype fonts and POSITION AUTO -Steve K Kuo wrote: > Hi list, > Since each road has different orientation, is it possible that I can > label the road name parallel to each road automatically? > > thanks > > Kurt > From woodbri at SWOODBRIDGE.COM Wed Mar 1 12:51:10 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 1 Mar 2006 15:51:10 -0500 Subject: label position In-Reply-To: Message-ID: Kurt, Try something like this: LABEL ANGLE AUTO FONT "arial" TYPE TRUETYPE POSITION AUTO SIZE 7 BUFFER 4 COLOR 0 0 0 ANTIALIAS TRUE PARTIALS FALSE MINDISTANCE 250 MINFEATURESIZE 10 END -Steve K Kuo wrote: > > Thanks Steve, > I have tried your suggestion. However, all labels have the same > orientation which is horizontal. What I am trying to do is to embed the > road name along the road. How can I accomplish it? > Thank you very much > > Kurt > > >> From: Stephen Woodbridge >> To: K Kuo >> CC: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] label position >> Date: Wed, 01 Mar 2006 14:49:26 -0500 >> >> Yes, use Truetype fonts and POSITION AUTO >> >> -Steve >> >> K Kuo wrote: >> >>> Hi list, >>> Since each road has different orientation, is it possible that I can >>> label the road name parallel to each road automatically? >>> >>> thanks >>> >>> Kurt >>> >> > > > From ed at TOPOZONE.COM Wed Mar 1 13:19:28 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 1 Mar 2006 16:19:28 -0500 Subject: Mapserver caching and map generation Message-ID: Emmanuel - The client ALWAYS requests an image that's "not in the cache". It's not a cache. It's a temporary directory where MapServer writes files. If five clients request the same image from MapServer five times in one second, MapServer will ALWAYS create five different temporary files, and will return five unique URLs to five different files - even though they're all the same image. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Emmanuel BELO [mailto:emmanuel.belo at microgis.ch] Sent: Wednesday, March 01, 2006 4:15 PM To: Ed McNierney Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapserver caching and map generation To clarify my first question: If a client requests an image that doesn't yet exists in the cache, the application will launch the process to create the file (I suppose with a pseudo-random filename) and give back the link. That's ok. Now imagine you have 5 more requests for the same image (same query) while the first one is still being processed. Will the application detect that and queue these requests for a while to give them the link created by the first once it has finished, or will it just launch five other processes, just as if it was other queries, resulting of the creation of 6 images that will be exactly the same (result of the same query) ? I tend to imagine that actually the second case will happen, but maybe is there some kind of a "query caching mechanism" that may take care of that and avoid duplicated work... regards, eb Ed McNierney wrote: > Emmanuel - > > Each map request generates a unique image, and the URL for that image is > returned to the client browser requesting that image. Since your Web > server can process several HTTP requests at one time, there can be > several MapServer instances all running at the same time. > > There will be some interaction with the disk subsystem on which the > temporary images are written, and from which they are read by the client > browsers. Some disk systems can handle multiple simultaneous read/write > requests better than others. Nothing will break - but some disk > subsystems will take longer than others to respond when multiple reads > and writes are happening. > > In case you haven't discovered it yet, using MapServer as a WMS server > or in the CGI "mode=map" mode, the output image is written directly to > the client and no temporary files are written to disk. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Emmanuel BELO > Sent: Wednesday, March 01, 2006 12:26 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Mapserver caching and map generation > > Hello, > > after cleaning the cache, mapserver generates the new images on request. > > What happens if 10 users ask for the same map during the generation of > the first map? Are their request delayed or will 10 processes in > parallel be initiated? > > Best regards, > > Emmanuel BELO > emmanuel.belo at microgis.ch From dbkeon.ml at GMAIL.COM Wed Mar 1 13:26:43 2006 From: dbkeon.ml at GMAIL.COM (Dylan Keon) Date: Wed, 1 Mar 2006 13:26:43 -0800 Subject: label position In-Reply-To: <4405FAC6.1040707@swoodbridge.com> Message-ID: Use ANGLE AUTO. --Dylan On 03/01/2006 11:49 AM, Stephen Woodbridge wrote: > Yes, use Truetype fonts and POSITION AUTO > > -Steve > > K Kuo wrote: > >> Hi list, >> Since each road has different orientation, is it possible that I can >> label the road name parallel to each road automatically? From emmanuel.belo at MICROGIS.CH Wed Mar 1 13:15:01 2006 From: emmanuel.belo at MICROGIS.CH (Emmanuel BELO) Date: Wed, 1 Mar 2006 22:15:01 +0100 Subject: Mapserver caching and map generation In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DD9E2@ptolemy.topozone.com> Message-ID: To clarify my first question: If a client requests an image that doesn't yet exists in the cache, the application will launch the process to create the file (I suppose with a pseudo-random filename) and give back the link. That's ok. Now imagine you have 5 more requests for the same image (same query) while the first one is still being processed. Will the application detect that and queue these requests for a while to give them the link created by the first once it has finished, or will it just launch five other processes, just as if it was other queries, resulting of the creation of 6 images that will be exactly the same (result of the same query) ? I tend to imagine that actually the second case will happen, but maybe is there some kind of a "query caching mechanism" that may take care of that and avoid duplicated work... regards, eb Ed McNierney wrote: > Emmanuel - > > Each map request generates a unique image, and the URL for that image is > returned to the client browser requesting that image. Since your Web > server can process several HTTP requests at one time, there can be > several MapServer instances all running at the same time. > > There will be some interaction with the disk subsystem on which the > temporary images are written, and from which they are read by the client > browsers. Some disk systems can handle multiple simultaneous read/write > requests better than others. Nothing will break - but some disk > subsystems will take longer than others to respond when multiple reads > and writes are happening. > > In case you haven't discovered it yet, using MapServer as a WMS server > or in the CGI "mode=map" mode, the output image is written directly to > the client and no temporary files are written to disk. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Emmanuel BELO > Sent: Wednesday, March 01, 2006 12:26 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Mapserver caching and map generation > > Hello, > > after cleaning the cache, mapserver generates the new images on request. > > What happens if 10 users ask for the same map during the generation of > the first map? Are their request delayed or will 10 processes in > parallel be initiated? > > Best regards, > > Emmanuel BELO > emmanuel.belo at microgis.ch -------------- next part -------------- A non-text attachment was scrubbed... Name: emmanuel.belo.vcf Type: text/x-vcard Size: 337 bytes Desc: not available URL: From emmanuel.belo at MICROGIS.CH Wed Mar 1 13:07:18 2006 From: emmanuel.belo at MICROGIS.CH (Emmanuel BELO) Date: Wed, 1 Mar 2006 22:07:18 +0100 Subject: Mapserver caching and map generation In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DD9E2@ptolemy.topozone.com> Message-ID: Thank you Ed for your answer, We are working with data supplied from postgis. Images will mainly be cached (neither pan neither zoom, only defined shortcuts). After some test, it occurs that images that are often requested are faster delivered that others. Is there an "expire after time" parameter for cached images? eb Ed McNierney wrote: > Emmanuel - > > Each map request generates a unique image, and the URL for that image is > returned to the client browser requesting that image. Since your Web > server can process several HTTP requests at one time, there can be > several MapServer instances all running at the same time. > > There will be some interaction with the disk subsystem on which the > temporary images are written, and from which they are read by the client > browsers. Some disk systems can handle multiple simultaneous read/write > requests better than others. Nothing will break - but some disk > subsystems will take longer than others to respond when multiple reads > and writes are happening. > > In case you haven't discovered it yet, using MapServer as a WMS server > or in the CGI "mode=map" mode, the output image is written directly to > the client and no temporary files are written to disk. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Emmanuel BELO > Sent: Wednesday, March 01, 2006 12:26 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Mapserver caching and map generation > > Hello, > > after cleaning the cache, mapserver generates the new images on request. > > What happens if 10 users ask for the same map during the generation of > the first map? Are their request delayed or will 10 processes in > parallel be initiated? > > Best regards, > > Emmanuel BELO > emmanuel.belo at microgis.ch -------------- next part -------------- A non-text attachment was scrubbed... Name: emmanuel.belo.vcf Type: text/x-vcard Size: 337 bytes Desc: not available URL: From sysadmin at SATSHOT.COM Wed Mar 1 14:49:00 2006 From: sysadmin at SATSHOT.COM (Avi A Blackmore) Date: Wed, 1 Mar 2006 16:49:00 -0600 Subject: Outputting 8-bit GeoTIFF with PCT: extra entry? Message-ID: Hi there, I'm working on a raster density-slicing application using Mapserver 4.6.0, which classifies the pixels into discrete "zones" based on the range of pixel values. What I'm shooting for is a single band GeoTIFF, whose raster cell values are either 0 (meaning "no data") or a number corresponding to the zone that the source cell was classified as by Mapserver, and then a color table entry which corresponds to the zone's coloring in the style object. That is, if I sliced an NIR satellite image into 7 zones, what I want is for the raster cells to have values 1-7, and color table entries 0-7 to be filled with the corresponding color for that class (or the OFFSITE color for values of 0). This way, an application can determine the zone just by reading the raster cell value. What I get, however, is a raster whose cells have values 2-8, with the color table entries 2-8 having the zone color values, and color table entry 1 being set to 0, 0, 0. GDAL in Python reports that the resulting raster does not have any pixels with value of 1: the values are either 0 or 2-8. This effect shows up regardless of the number of zones I slice the image into: at 30 zones, I get color table entries 0-31 filled, with this spurious "black" at entry 1. I have checked carefully, the number of classes in the raster layer, and they always match exactly the number of zones. So, what's going on here? I'm using the GDAL output driver to write the GeoTIFFs. I'm not sure if there is any other information that might be useful or necessary. -- Avi Blackmore System Administrator/Programmer Agri ImaGIS Technologies, Inc. From warmerdam at POBOX.COM Wed Mar 1 15:31:16 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 1 Mar 2006 18:31:16 -0500 Subject: Outputting 8-bit GeoTIFF with PCT: extra entry? In-Reply-To: <200603011649.00476.sysadmin@satshot.com> Message-ID: Avi A Blackmore wrote: > Hi there, > > I'm working on a raster density-slicing application using Mapserver 4.6.0, which classifies the pixels into discrete "zones" based on the range > of pixel values. What I'm shooting for is a single band GeoTIFF, whose raster cell values are either 0 (meaning "no data") or a number corresponding > to the zone that the source cell was classified as by Mapserver, and then a color table entry which corresponds to the zone's coloring in the style object. > > That is, if I sliced an NIR satellite image into 7 zones, what I want is for the raster cells to have values 1-7, and color table entries 0-7 to be filled with > the corresponding color for that class (or the OFFSITE color for values of 0). This way, an application can determine the zone just by reading the raster cell value. > > What I get, however, is a raster whose cells have values 2-8, with the color table entries 2-8 having the zone color values, and color table entry 1 being set > to 0, 0, 0. GDAL in Python reports that the resulting raster does not have any pixels with value of 1: the values are either 0 or 2-8. This effect shows up regardless > of the number of zones I slice the image into: at 30 zones, I get color table entries 0-31 filled, with this spurious "black" at entry 1. I have checked carefully, the number > of classes in the raster layer, and they always match exactly the number of zones. > > So, what's going on here? I'm using the GDAL output driver to write the GeoTIFFs. I'm not sure if there is any other information that might be useful or necessary. Avi, There are a number of reasons various color cells can get allocated by MapServer whether used or not. I *suspect* 0,0,0 is your background color and (IMAGECOLOR on the map object, implicit or explicit). You might want to try setting that to one of your class colors to avoid it being allocated separately. The problem you are running into is basically why MapServer in pseudocolor WMS or normal map drawing mode is not very suitable for serving raw data. It does too much fooling around allocating colors and remapping them as things are drawn. But, you might just fiddle with things to get it working. 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 OSGF, http://osgeo.org From condit at SDSC.EDU Wed Mar 1 16:18:33 2006 From: condit at SDSC.EDU (Christopher Condit) Date: Wed, 1 Mar 2006 16:18:33 -0800 Subject: Oracle Multitable Join Message-ID: Is it possible to use multiple relations when adding an native oracle connection? I want to use something like this, but can't quite figure out how: SELECT p.SHAPE, p.NAME FROM POINTS p, AREAS a WHERE a.NAME = 'California' AND SDO_FILTER(p.shape, o.shape, 'querytype = WINDOW') = 'true' The idea is that I've got two Oracle spatial tables, one with points, the other with polygons. Given a polygon from the latter, I want all the points appearing in it to be drawn on the map. Is this possible with the existing Oracle spatial implementation? How would my DATA definition look? Thanks, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Wed Mar 1 16:58:35 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Wed, 1 Mar 2006 21:58:35 -0300 Subject: Oracle Multitable Join In-Reply-To: <845AADAC1106E44996327D62097E4C6B860843@et.ad.sdsc.edu> Message-ID: Hi Christopher, You can do this query using a DATA parameter like: DATA "shape FROM (SELECT p.SHAPE, p.NAME FROM POINTS p, AREAS a WHERE a.NAME = ?California? AND SDO_FILTER(p.shape, o.shape, ?querytype = WINDOW?) = ?true?) USING NONE" You can see more details about Oracle Spatial and Mapserver integration in this link: "http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto" Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Christopher Condit wrote: > > Is it possible to use multiple relations when adding an native oracle > connection? I want to use something like this, but can?t quite figure > out how: > > SELECT p.SHAPE, p.NAME FROM POINTS p, AREAS a WHERE a.NAME = > ?California? AND SDO_FILTER(p.shape, o.shape, ?querytype = WINDOW?) = > ?true? > > The idea is that I?ve got two Oracle spatial tables, one with points, > the other with polygons. Given a polygon from the latter, I want all > the points appearing in it to be drawn on the map. Is this possible > with the existing Oracle spatial implementation? How would my DATA > definition look? > > Thanks, > > Chris > From javerbach at EXTENDTHEREACH.COM Wed Mar 1 18:09:13 2006 From: javerbach at EXTENDTHEREACH.COM (Jani Averbach) Date: Wed, 1 Mar 2006 19:09:13 -0700 Subject: symbol size Message-ID: > -----Original Message----- > Subject: Re: [UMN_MAPSERVER-USERS] symbol size > > > > I'm using mapserver 4.8 in a Debian. I have a mapfile that > > was working propertly under windows (ms4w) but now I'm not > > getting the symbol size working. It's allways shown as the > > default image size. > > I am having the same problem with 4.8.1 php mapscript. My > bug is here: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1684 > This should be fixed with CVS-head, and I will propose this fix to be backported for 4.8.2. If you have a change to test the cvs-head and verify the fix resolves your problems, that would be nice. BR, Jani Jani Averbach SRC,LLC SRC in Action: http://www.DemographicsNow.com Join SRC at Extend 2006 - Disruptive Technology June 5-7, 2006 at the Hyatt Regency, Huntington Beach, CA For more details, click here: http://www.extendthereach.com/extend06/ From simbiotico at HOTMAIL.COM Wed Mar 1 20:22:45 2006 From: simbiotico at HOTMAIL.COM (Frank Fica) Date: Wed, 1 Mar 2006 22:22:45 -0600 Subject: gmap demo Message-ID: Hi, I recently configured the gmap demo in my mapserver box and is working fine. When I tried loading my own data and changing the required variables for my data, everything works fine except for the quick list menu. When I click to zoom on the quick list, the main map gets redrawn but with the same extents, thought it shows ViewRegion=-90.210352%2C14.252371%2C-90.760314%2C14.937117 but it doesn't zoom to that extent. my conf. in the .phtml file is: and the .php file: /* -------------------------------------------------------------------- */ /* province selection. */ /* -------------------------------------------------------------------- */ if ($HTTP_FORM_VARS["ViewRegion"]) { if (ereg("(-?[0-9]+),(-?[0-9]+),(-?[0-9]+),(-?[0-9]+)", $HTTP_FORM_VARS["ViewRegion"], $ProvExtents)) { $dfMinX = doubleval($ProvExtents[1]); $dfMinY = doubleval($ProvExtents[2]); $dfMaxX = doubleval($ProvExtents[3]); $dfMaxY = doubleval($ProvExtents[4]); SetMapExtents($dfMinX, $dfMinY, $dfMaxX, $dfMaxY); } } Any ideas? Thanks, Frank From ed at TOPOZONE.COM Wed Mar 1 20:38:09 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 1 Mar 2006 23:38:09 -0500 Subject: Mapserver caching and map generation Message-ID: Emmanuel - There is no cache. Therefore, there are no cached images, and there cannot be an "expire after" time, because there's no image cache. Really - there's no cache. You can certainly have your Web server cache requests, but that's not MapServer. MapServer does not cache output images - it never does that. Your OS will cache disk reads, but that's not MapServer caching. It is very difficult to do accurate multi-user performance testing, but it is entirely possible that several factors can contribute to the performance differences you see. For example, the PostGIS queries may run faster if the same query is made several times in quick succession (under the right circumstances). All data read from disk may be in operating system's disk cache. If the MapServer CGI requests, followed by the image retrieval requests, happen in such a way that the disk subsystem does several writes followed by several reads (write-write-write-read-read-read) you will probably get faster performance than if they are interleaved (write-read-write-read-write-read). - 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 Emmanuel BELO Sent: Wednesday, March 01, 2006 4:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapserver caching and map generation Thank you Ed for your answer, We are working with data supplied from postgis. Images will mainly be cached (neither pan neither zoom, only defined shortcuts). After some test, it occurs that images that are often requested are faster delivered that others. Is there an "expire after time" parameter for cached images? eb Ed McNierney wrote: > Emmanuel - > > Each map request generates a unique image, and the URL for that image > is returned to the client browser requesting that image. Since your > Web server can process several HTTP requests at one time, there can be > several MapServer instances all running at the same time. > > There will be some interaction with the disk subsystem on which the > temporary images are written, and from which they are read by the > client browsers. Some disk systems can handle multiple simultaneous > read/write requests better than others. Nothing will break - but some > disk subsystems will take longer than others to respond when multiple > reads and writes are happening. > > In case you haven't discovered it yet, using MapServer as a WMS server > or in the CGI "mode=map" mode, the output image is written directly to > the client and no temporary files are written to disk. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Emmanuel BELO > Sent: Wednesday, March 01, 2006 12:26 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Mapserver caching and map generation > > Hello, > > after cleaning the cache, mapserver generates the new images on request. > > What happens if 10 users ask for the same map during the generation of > the first map? Are their request delayed or will 10 processes in > parallel be initiated? > > Best regards, > > Emmanuel BELO > emmanuel.belo at microgis.ch From akrherz at IASTATE.EDU Wed Mar 1 22:08:27 2006 From: akrherz at IASTATE.EDU (Daryl Herzmann) Date: Thu, 2 Mar 2006 00:08:27 -0600 Subject: symbol size In-Reply-To: <3B6819E719271748B923CE3CDBD4EC980B3BE7@srcmail1.src> Message-ID: On Wed, 1 Mar 2006, Jani Averbach wrote: >> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1684 >> > > This should be fixed with CVS-head, and I will propose this fix to be > backported for 4.8.2. If you have a change to test the cvs-head and > verify the fix resolves your problems, that would be nice. Unfortunately I am still seeing this bug after a fresh checkout of CVS. daryl -- /** * Daryl Herzmann (akrherz at iastate.edu) * Program Assistant -- Iowa Environmental Mesonet * http://mesonet.agron.iastate.edu */ From williams at WEBSAWYER.COM Wed Mar 1 23:57:50 2006 From: williams at WEBSAWYER.COM (Doug Williams) Date: Thu, 2 Mar 2006 00:57:50 -0700 Subject: javascript rubberband zoom box Message-ID: I guess I've 'borrowed' enough code that I can share some. Below are the pieces for implementing a rubberband zoom box using only client-side javascript. The way I use this I can zoom to the extent defined by the box, or I can jsut click on the map to zoom to a point. I don't think it would be hard to modify to give distance measurements, if that is what was desired. Feel free to contact me if you have any questions. Sorry for the formatting. I use these spans to display the x,y coords as the mouse moves over the map. Stick them somewhere you might want to see this info. - -: - These two divs replace the that typically holds the map. The is crippling... forcing form submission and only giving one x,y pair. So... The first div holds the map, the second one is a layer for drawing the rubberband zoom box on. Note the "positioning" of the div elements, the second div positioned absolutely inside the first.
The mouse events drive the scripts below to display the coords and draw the zoom box. I submit the form on mouseup, but it does not have to be submitted if that was not wanted. //////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////// I found the following web pages interesting... http://evolt.org/article/Mission_Impossible_mouse_position/17/23335/index.html http://www.quirksmode.org/ From beproject06 at YAHOO.COM Thu Mar 2 01:27:24 2006 From: beproject06 at YAHOO.COM (Apeksha Bhambhani) Date: Thu, 2 Mar 2006 01:27:24 -0800 Subject: Raster data experience In-Reply-To: <8b502010602281055r1a3fdbbk3e7c17a840558bea@mail.gmail.com> Message-ID: hiii, I am sending you the mapfile alongwith the raster image and the point shapefile . I don't have enough information about projection. I have tried finding a lot of info and read also on the Mapserver site about the same . But couldn't come to any conclusion . What is the projection used for . I accept user clicks(pixel values) on the image and convert into the latitude and longitude making use of the extent specified in the mapfile . Is that incorrect ? thanks a lot for your help. apeksha luca marletta wrote: Hi Apeksha, in order to write in world file where the map is I need to know it and it can be done if you send me at least 2 point (better far on the tif) with long and lat and also the coordinates system you use. better use the WGS84 that is world wide used. if the shp is random doesn't help at all. ok send also the map file I'll have a look cheers luca On 2/28/06, Apeksha Bhambhani wrote: > Hii Luca, > Thanks a lot for your help . > We have the tiff image of the base map with us . However , what shapefile > are you talking about . We have the shapefile of the point layer which will > be plotted on the base map . These points are random points that we chose in > order to test our application . > We can also send you the mapfile. > Thanking you , > > Regards > Apeksha > luca marletta wrote: > > On 2/28/06, Apeksha Bhambhani wrote: > > Hi luca , > > > > We have developed a web-mapping application . Our mapping application uses > > Mapserver , Php/Mapscript as the scripitng language and MySql as the > > database.And this application accepts user clicks and allows the user to > > edit the map : adding points, etc. > > Now for this map , we require a base map - which is a raster layer . > > We have tried editing the mapfile as follows: > > > > LAYER > > NAME "base" > > TYPE raster > > DATA "india.tif" > > END > > > > But this is of no help. The tiff file resides in the shapefiles directory > > .There is no world file for this tiff file. Do we have to create one on > our > > own ? How is it possible to create a world file out of a plain image. > > We want to include this raster image as our base map. Is this the right > way > > or is there any other way? > > > > Could someone please help us. > > Thanks > > Apeksha > > World file is needed at for sure with tif. You can produce it with > some tools or also just writing it but it could be a boring and long > job for a lot of tentatives. > > In both cases you need to know the coordinates system of some pints on > the tif or better have a georeferenced vector file to match with tif > and use to georeference it. > > I could do it for you if you provide both of them to me (tif and > vector DWG or shp) > > I'm interested on your application also. let me know more of it > > cheers > > luca > > > > > > -- > luca marletta > > > > ________________________________ > Yahoo! Mail > Bring photos to life! New PhotoMail makes sharing a breeze. > > -- luca marletta --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fportaneri.ext at RD.FRANCETELECOM.COM Thu Mar 2 03:42:21 2006 From: fportaneri.ext at RD.FRANCETELECOM.COM (PORTANERI Franck) Date: Thu, 2 Mar 2006 12:42:21 +0100 Subject: Mapserver Labels Message-ID: Hi all, Is it possible to use different fonts or style within a label text? I would like to hilight in bold one word of a label... Thanks in advance, Franck From baris_999 at YAHOO.COM Thu Mar 2 07:21:48 2006 From: baris_999 at YAHOO.COM (Baris YILMAZ) Date: Thu, 2 Mar 2006 07:21:48 -0800 Subject: Shape layer is not shown. Please help In-Reply-To: Message-ID: I did the changes you told me and now it works. Thank you all who helped on the matter. Best regards Baris Travis Kirstine GIS Tech wrote: Firstly, you should define a symbols.sym file that will be used to draw your map symbols (points, lines, polygons) It is declared in the map object just liike SHAPEPATH. By default mapserver will only draw points as one pixel if there is no symbol defined SYMBOLSET your path to the symbol.sym file e.g. /var/www/html/map_symbols/symbols.sym open the symbol.sym file with a text editor and add the following SYMBOL NAME 'circle' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END Save the file and close, Add the following to your Brunnen CLASS in the mapfile CLASS NAME "Brunnen" COLOR 255 0 0 OUTLINECOLOR 0 255 0 SYMBOL 'circle' SIZE 12 END Travis -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Baris YILMAZ Sent: Wednesday, March 01, 2006 9:46 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Shape layer is not shown. Please help Hi, I have a map file, which has two layers, one a raster layer, and the other a shapefile. But the raster layer is shown whereas the layer Brunnen (shapefile) is not shown. Can anyone help? I checked the path of the shape file and it is ok.. Can anyone help me please? Is there anything missing in the layer definitions of the layer "Brunnen"? My shapefile contains just cross symbols. Thank you. Baris Below my mapfile; MAP EXTENT 3439438.15784499212000 5501464.74457754190000 3440160.4830 5511464.6416 IMAGECOLOR 240 240 240 IMAGETYPE png SHAPEPATH "C:/ms4w/apps/Data/KartenSHP/GWMshp/" SIZE 500 400 STATUS ON UNITS METERS NAME "Hessischer Ried" OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE "PC256" TRANSPARENT FALSE END PROJECTION "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL STATUS EMBED TEMPLATE "C:/ms4w/apps/maplab-2.2.1/htdocs/mapbrowser/legend_template.html" END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END SCALEBAR COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 4 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL SIZE 200 3 STATUS OFF STYLE 0 UNITS MILES END WEB IMAGEPATH "C:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA END QUERYFORMAT text/html END LAYER DATA "C:\ms4w\apps\Data\KartenSHP\Karten\TK25\60xx\6015SI_96.tif" METADATA END NAME "Ried" SIZEUNITS METERS STATUS ON TOLERANCEUNITS PIXELS TYPE RASTER UNITS METERS END LAYER NAME "Brunnen" STATUS DEFAULT DATA "Brunnen" TYPE POINT UNITS METERS SIZEUNITS PIXELS TOLERANCEUNITS PIXELS METADATA END PROJECTION "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" END CLASS NAME "Brunnen" END END END --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sysadmin at SATSHOT.COM Thu Mar 2 08:15:25 2006 From: sysadmin at SATSHOT.COM (Avi A Blackmore) Date: Thu, 2 Mar 2006 10:15:25 -0600 Subject: Outputting 8-bit GeoTIFF with PCT: extra entry? In-Reply-To: <44062EC4.4060607@pobox.com> Message-ID: On Wednesday 01 March 2006 05:31 pm, Frank Warmerdam wrote: > > There are a number of reasons various color cells can get allocated by > MapServer whether used or not. I *suspect* 0,0,0 is your background > color and (IMAGECOLOR on the map object, implicit or explicit). You might > want to try setting that to one of your class colors to avoid it being > allocated separately. I didn't know about the IMAGECOLOR attribute, actually. I discovered that the problem is, it was NOT set to 0 0 0. Mapserver seems to want to allocate that color at the lowest end of the palette, but since my imagecolor was 255, 255, 255, that was stuck into the 0 slot. So color 1 was made to be 0, 0, 0. So I explicitly set IMAGECOLOR to 0 0 0 in the Mapscript app, and now it works properly! Thanks very much! > The problem you are running into is basically why MapServer in pseudocolor > WMS or normal map drawing mode is not very suitable for serving raw data. > It does too much fooling around allocating colors and remapping them as > things are drawn. But, you might just fiddle with things to get it > working. That has been our MO all along. "If it doesn't work, abuse it until it does." :-) -- Avi Blackmore System Administrator/Programmer Agri ImaGIS Technologies, Inc. From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Thu Mar 2 08:38:01 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Thu, 2 Mar 2006 11:38:01 -0500 Subject: Problems with Label Placement and Symbols Anti-Aliasing (I think) Message-ID: Hello, I upgraded to MapServer 4.8.1 with the latest GD and FreeType, and have discovered some problems on our maps :( First, diagonally placed labels seems to have moved from what they used to be with say, 4.6.1 ... This however seems inconsistent. Some layers have fine looking POSITION ll labels, while some others show offsets that are wayyy off. For a while even th wrapping was acting strangely, adding lots of vertical spacing between 2 lines of a label. I've tried in vain to get one layer's label's to appear like another's in vain. The one that looks "wrong" always does, no matter what we do. We can have 2 layers with the exact same font, font size, placement, and so on, and one will label as expected, and one won't. I have NO idea how/why this happens. We've noticed things like this before between versions of mapserver ... We use lots of basolutely positionned labels, so this is problematic. Also, the symbols now seem to be anti-aliased or something, in a different way? The symbols in the legend look blurry and deformed. The symbols within the map also seem to be bleeding colors ... It's all very weird. I'm going to get some screen shots and put them up somewhere so everyone can look at them, I'd be very interested in hearing about other's experiences with this! Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support / Sp?cialiste de d?veloppements internet et soutien technique Canada Centre for Remote Sensing/Centre Canadien de t?l?d?tection Natural Resources Canada/Ressources Naturelles Canada http://atlas.gc.ca Tel./T?l.: (613) 992-4902 Fax: (613) 947-2410 From mscharber at UCSD.EDU Thu Mar 2 08:47:55 2006 From: mscharber at UCSD.EDU (Michael Scharber) Date: Thu, 2 Mar 2006 08:47:55 -0800 Subject: Oracle Spatial : Geodetic data : queries fail In-Reply-To: Message-ID: Hi There, How exactly does one get MapServer to play with Geodetic data (SRID=8307) in Oracle Spatial (9i)? I cannot get past: > "Element of type Extent is not supported for Geodetic data" > msDrawMap(): Image handling error. Failed to draw layer named 'gps'. > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-29902: > error in executing ODCIIndexStart() routine ORA-13373: Element of type Extent > is not supported for Geodetic data ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", > line 368 ORA-06512: at line 1 . Query statement: SELECT SITE_ID, SHAPE FROM > SITE WHERE SDO_RELATE( SHAPE, MDSYS.SDO_GEOMETRY(2003, 8307, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-8.94375,36.73125,13.55625,59.23125) > ),'mask=anyinteract querytype=window') = 'TRUE' . Check your data statement For example, in other applications (Java, Perl, etc) I use the following with success: select site_code,site_name from site where SDO_RELATE(shape,MDSYS.SDO_GEOMETRY(2003,8307,null, MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1), MDSYS.SDO_ORDINATE_ARRAY(-118.0,32.0,-116.0,32.0,-116.0,35.0,-118.0,35.0,-118.0,32.0)), 'mask=inside querytype=WINDOW') = 'TRUE' My MapServer config parameters are: CONNECTIONTYPE oraclespatial DATA "SHAPE FROM SITE USING UNIQUE SITE_ID SRID 8307 RELATE" Any suggestions? Thanks in advance. Michael From fsimon at UNIVALI.BR Thu Mar 2 09:14:38 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Thu, 2 Mar 2006 14:14:38 -0300 Subject: Oracle Spatial : Geodetic data : queries fail In-Reply-To: Message-ID: Hi Michael, For 9i version you can use the VERSION parameter in your layer DATA definition, in your case: DATA "SHAPE FROM SITE USING UNIQUE SITE_ID SRID 8307 RELATE VERSION 9i" Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Michael Scharber wrote: > Hi There, > > How exactly does one get MapServer to play with Geodetic data > (SRID=8307) in Oracle Spatial (9i)? I cannot get past: > >> "Element of type Extent is not supported for Geodetic data" >> msDrawMap(): Image handling error. Failed to draw layer named 'gps'. >> msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: >> ORA-29902: error in executing ODCIIndexStart() routine ORA-13373: >> Element of type Extent is not supported for Geodetic data ORA-06512: >> at "MDSYS.SDO_INDEX_METHOD_9I", line 368 ORA-06512: at line 1 . Query >> statement: SELECT SITE_ID, SHAPE FROM SITE WHERE SDO_RELATE( SHAPE, >> MDSYS.SDO_GEOMETRY(2003, 8307, >> NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-8.94375,36.73125,13.55625,59.23125) >> ),'mask=anyinteract querytype=window') = 'TRUE' . Check your data >> statement > > For example, in other applications (Java, Perl, etc) I use the > following with success: > > select site_code,site_name from site where > SDO_RELATE(shape,MDSYS.SDO_GEOMETRY(2003,8307,null, > MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1), > MDSYS.SDO_ORDINATE_ARRAY(-118.0,32.0,-116.0,32.0,-116.0,35.0,-118.0,35.0,-118.0,32.0)), > > 'mask=inside querytype=WINDOW') = 'TRUE' > > My MapServer config parameters are: > > CONNECTIONTYPE oraclespatial > DATA "SHAPE FROM SITE USING UNIQUE SITE_ID SRID 8307 RELATE" > > Any suggestions? > > Thanks in advance. > > Michael > From mtrp36 at HOTMAIL.COM Thu Mar 2 09:39:15 2006 From: mtrp36 at HOTMAIL.COM (K Kuo) Date: Thu, 2 Mar 2006 17:39:15 +0000 Subject: PHP/Mapscript installation problem Message-ID: Hi list, I have followed the instruction for PHP/Mapsript installation. I think that I did not successfully install it. I verified it with following code, however, I did not see 'Mapscript' listed anywhere in the page. I am using ms4w, apache 2.0.55 and php5. This is extension_dir in my php.ini ; Directory in which the loadable extensions (modules) reside. extension_dir = "c:\php\extensions" I found that php5 has not been supported yet while the last update of PHP/Mapscript installation doucment. Is this the reason why I failed? or should I check other configurations for success? Thanks in advance Best, Kurt From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Thu Mar 2 10:45:29 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Thu, 2 Mar 2006 13:45:29 -0500 Subject: FW: [UMN_MAPSERVER-USERS] Problems with Label Placement and Symbo ls Anti-Aliasing (I think) Message-ID: Here is a visual sample of the symbology problem: http://atlas.gc.ca/mapserver-symbol-problem.png Note on the left a sample of the legend. The most obvious problem is for the symbol for Aurora ... Though others also have issues. This is using: MapServer 4.8.1 GD 2.0.33 FreeType 2.1.10 Forcing ANTIALIASING OFF on the symbol definitions doesn't really seem to help. In the cases where symbols have overlays, playing with the sizes helps some, but often circles insist on coming out ever so slightly distorted (i.e. a slightly oval shape). There's also reports that a certain symbol will have the proper shape only with a specific size. Res-sizing the symbol distorts it? Anybody run into anything like this, or have any idea what's going on here??? The cartographers are going crazy here ... Thanks, J.F. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Doyon, Jean-Francois Sent: March 2, 2006 11:38 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problems with Label Placement and Symbols Anti-Aliasing (I think) Hello, I upgraded to MapServer 4.8.1 with the latest GD and FreeType, and have discovered some problems on our maps :( First, diagonally placed labels seems to have moved from what they used to be with say, 4.6.1 ... This however seems inconsistent. Some layers have fine looking POSITION ll labels, while some others show offsets that are wayyy off. For a while even th wrapping was acting strangely, adding lots of vertical spacing between 2 lines of a label. I've tried in vain to get one layer's label's to appear like another's in vain. The one that looks "wrong" always does, no matter what we do. We can have 2 layers with the exact same font, font size, placement, and so on, and one will label as expected, and one won't. I have NO idea how/why this happens. We've noticed things like this before between versions of mapserver ... We use lots of basolutely positionned labels, so this is problematic. Also, the symbols now seem to be anti-aliased or something, in a different way? The symbols in the legend look blurry and deformed. The symbols within the map also seem to be bleeding colors ... It's all very weird. I'm going to get some screen shots and put them up somewhere so everyone can look at them, I'd be very interested in hearing about other's experiences with this! Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support / Sp?cialiste de d?veloppements internet et soutien technique Canada Centre for Remote Sensing/Centre Canadien de t?l?d?tection Natural Resources Canada/Ressources Naturelles Canada http://atlas.gc.ca Tel./T?l.: (613) 992-4902 Fax: (613) 947-2410 From williams at WEBSAWYER.COM Thu Mar 2 10:53:12 2006 From: williams at WEBSAWYER.COM (Doug Williams) Date: Thu, 2 Mar 2006 11:53:12 -0700 Subject: javascript rubberband zoom box Message-ID: Forgive me, I simplified something and did not look at it in Interent Explorer. To fix this for IE you will have to change the first div. This was the code that does not work in IE:
This is what does work:
So the div pair should be:
Additionally, I added the following javascript to handle the case where the user drags the mouse off the map with the mouse button pushed. It can just sit somewhere in a script section. I'll try to get it righter the first time next time. From mscharber at UCSD.EDU Thu Mar 2 11:00:14 2006 From: mscharber at UCSD.EDU (Michael Scharber) Date: Thu, 2 Mar 2006 11:00:14 -0800 Subject: Oracle Spatial : Geodetic data : queries fail In-Reply-To: <440727FE.90407@univali.br> Message-ID: Fernando, That did it. Thanks a bunch! Michael ******************************************************* Michael Scharber Scripps Institution of Oceanography Institute of Geophysics and Planetary Physics 8785 Biological Grade IGPP Room 4212 La Jolla, CA 92037 mscharber at gpsmail.ucsd.edu (858)534-1750 ******************************************************* On Thu, 2 Mar 2006, Fernando Simon wrote: > Hi Michael, > For 9i version you can use the VERSION parameter in your layer DATA > definition, in your case: > DATA "SHAPE FROM SITE USING UNIQUE SITE_ID SRID 8307 RELATE VERSION > 9i" > Best regards. > ------------------------------------------------------------------------ > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://www.univali.br/g10 - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > > > Michael Scharber wrote: >> Hi There, >> >> How exactly does one get MapServer to play with Geodetic data (SRID=8307) >> in Oracle Spatial (9i)? I cannot get past: >> >>> "Element of type Extent is not supported for Geodetic data" >>> msDrawMap(): Image handling error. Failed to draw layer named 'gps'. >>> msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-29902: >>> error in executing ODCIIndexStart() routine ORA-13373: Element of type >>> Extent is not supported for Geodetic data ORA-06512: at >>> "MDSYS.SDO_INDEX_METHOD_9I", line 368 ORA-06512: at line 1 . Query >>> statement: SELECT SITE_ID, SHAPE FROM SITE WHERE SDO_RELATE( SHAPE, >>> MDSYS.SDO_GEOMETRY(2003, 8307, >>> NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-8.94375,36.73125,13.55625,59.23125) >>> ),'mask=anyinteract querytype=window') = 'TRUE' . Check your data >>> statement >> >> For example, in other applications (Java, Perl, etc) I use the following >> with success: >> >> select site_code,site_name from site where >> SDO_RELATE(shape,MDSYS.SDO_GEOMETRY(2003,8307,null, >> MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1), >> MDSYS.SDO_ORDINATE_ARRAY(-118.0,32.0,-116.0,32.0,-116.0,35.0,-118.0,35.0,-118.0,32.0)), >> 'mask=inside querytype=WINDOW') = 'TRUE' >> >> My MapServer config parameters are: >> >> CONNECTIONTYPE oraclespatial >> DATA "SHAPE FROM SITE USING UNIQUE SITE_ID SRID 8307 RELATE" >> >> Any suggestions? >> >> Thanks in advance. >> >> Michael >> > From simbiotico at HOTMAIL.COM Thu Mar 2 11:19:30 2006 From: simbiotico at HOTMAIL.COM (Frank Fica) Date: Thu, 2 Mar 2006 13:19:30 -0600 Subject: PHP/Mapscript installation problem Message-ID: Hi Kurt, I'm using PHP 5.0.4 and php_mapscript is working fine, I'm running a linux box though. Frank From mhe at ITSC.UAH.EDU Thu Mar 2 11:51:19 2006 From: mhe at ITSC.UAH.EDU (He, Matt Yubin) Date: Thu, 2 Mar 2006 13:51:19 -0600 Subject: layer with JPG image and world file Message-ID: Hi All: I added a layer in my map file to display a JPG file with world file. If I put both files in the Data directory (Shape file directory), this layer can be shown in my map viewer. However, if I use an http link for this jpg file, it can't find the World file, so this layer can't be shown in map viewer. Is there a way to specify the location of World file for JPG image? Thanks. Matt Following is my layer definition in map file: LAYER NAME "MY IMAGE" DATA "http://myserver/myimage.jpg" TYPE RASTER TRANSPARENCY 50 STATUS ON END From karrarm at YAHOO.COM Thu Mar 2 14:05:05 2006 From: karrarm at YAHOO.COM (Ramesh Karra) Date: Thu, 2 Mar 2006 16:05:05 -0600 Subject: Labelling roads Message-ID: Hi, I have POINT data in shape files (.shp, .shx and .dbf) with shapefiles containing the co-ordinates of the points and .dbf file containing three field records as NAME, x-coordinate, y-coordinate and when I use the following layer in the map file LAYER NAME ly1 DATA lydata1 STATUS ON TYPE POINT LABELITEM "NAME" CLASS NAME "Points" STYLE SYMBOL 7 COLOR 255 255 0 OUTLINECOLOR 0 100 0 SIZE 7 END LABEL FORCE TRUE COLOR 25 25 25 TYPE TRUETYPE FONT verdana SIZE 6 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE MINDISTANCE 0 BUFFER 0 END # end of label END END The point and the label are shown correctly on the map. I want to do the same for roads represented as lines. The shape files (.shp and .shx) have the co-ordinates and connecting arc data and are displayed properly. My question is how do I store the label related data for the line in .dbf file? How many fields need to be stored in the .dbf file record? Obviously, all roads are not going to have equal number of vertices and connecting arcs. How do I represent the line related data and name in the .dbf file? Thanks for your help, Ramesh From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Thu Mar 2 14:08:05 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Thu, 2 Mar 2006 17:08:05 -0500 Subject: MapServer incompatibility with RHEL4/CENTOS4.2 Message-ID: Hello, OK well I've tracked down the source of my problem to the operating system itself it seems. Regardless of the versions/combinations of mapserver/gd/freetype I use, there are definite visual rendering problems when on this OS. On RedHat 7.3, everything is fine! Example: http://atlas.gc.ca/family-good.gif http://atlas.gc.ca/family-bad.gif Note the small dot that appears on the symbol? Also: http://atlas.gc.ca/the-market-good.gif http://atlas.gc.ca/the-market-bad.gif Notice how on the bad version, a bunch of point symbols are missing? I tried various combinations of: MapServer 4.6.1 and 4.8.1 FreeType 2.0.9 and 2.1.9 GD 2.0.28 and 2.0.33 A given combination works on 7.3, but not on CentOS. Without luck. The problem with the strange shape of the symbols ( http://atlas.gc.ca/mapserver-symbol-problem.png ) seemes to be related to the version of FreeType for some reason? FreeType 2.0.9 acts as we expect it to, FreeType 2.1.9 does not. There may be cumulative effects also. CentOS 4.2 uses GCC 3.4.4 and GLIBC 2.3.4. I had gotten a horrible crash message at some point with a version of mapserver on this OS (http://lists.umn.edu/cgi-bin/wa?A2=ind0602&L=mapserver-users&P=R60802&I=-3& X=106ECE1CAE6B73E23F), but upgrading from 4.6.1 to 4.8.1 had fixed it. This was related to memory allocation. Could something related to that be causing this? Turns out I've got 4.6.1 running on this platform now, but that really didn't help. I'm out of ideas :( Anyone? Jean-Fran?ois Doyon Internet Service Development and Systems Support / Sp?cialiste de d?veloppements internet et soutien technique Canada Centre for Remote Sensing/Centre Canadien de t?l?d?tection Natural Resources Canada/Ressources Naturelles Canada http://atlas.gc.ca Tel./T?l.: (613) 992-4902 Fax: (613) 947-2410 From Miles.Jordan at AAD.GOV.AU Thu Mar 2 15:03:58 2006 From: Miles.Jordan at AAD.GOV.AU (Miles Jordan) Date: Fri, 3 Mar 2006 10:03:58 +1100 Subject: Using SLD with GetLegendGraphic Message-ID: Hi List, Is it possible to make a getLegendGraphic request, using a SLD to define the style? I'm using the same SLD in a getMap request, which styles the layers appropriately, as I am for a getLegendGraphic request, which shows nothing. If I don't use the SLD, or use a different value in the element of , the default style is shown in the LegendGraphic. I'm only just starrting to look at mapserver, so I might be missing something simple. This is the request I'm using: http://myserver/cgi-bin/mapserv.exe?map=/ms4w/apps/layers/service/sample _collection.map&service=WMS&REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMA T=image/png&WIDTH=50&HEIGHT=50&LAYER=Humpback_whale_migration&SLD=http:/ /myserver/test.sld The SLD: Humpback_whale_migration Humpback Whale Migration GEOMETRY #000000 1 2 Round Square 2.0 4.0 4.0 4.0 0 I'd appreciate any help anyone can offer, thanks. Miles Jordan Applications Developer The Australian Antarctic Data Centre [p] +61 3 6232 3486 [f] +61 3 6232 3359 [e] miles.jordan at aad.gov.au [w] http://www.aad.gov.au/ ___________________________________________________________________________ Australian Antarctic Division - Commonwealth of Australia IMPORTANT: This transmission is intended for the addressee only. If you are not the intended recipient, you are notified that use or dissemination of this communication is strictly prohibited by Commonwealth law. If you have received this transmission in error, please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and DELETE the message. Visit our web site at http://www.aad.gov.au/ ___________________________________________________________________________ From akrherz at IASTATE.EDU Thu Mar 2 16:49:29 2006 From: akrherz at IASTATE.EDU (Daryl Herzmann) Date: Thu, 2 Mar 2006 18:49:29 -0600 Subject: 4.8 change in pixmap SIZE value Message-ID: Hi, I have recently been educated that the way to specify pixmap symbol sizes has changed in the 4.8 series. Previously, the SIZE setting would control the pixmap symbol height. In 4.8, the SIZE setting controls the largest pixmap dimension either the height or the width. IMHO, this is bad behaviour. Is there rationale for this change? I am facing going thru all of my symbology and checking to make sure it is still correct when I upgrade to 4.8. Moreover, I can't find mention of this change in HISTORY.txt . Did I miss a discussion of this change on this list? I can live with this change, but think it is horribly confusing for new users and presents an un-needed complication when upgrading from 4.6 to 4.8 daryl -- /** * Daryl Herzmann (akrherz at iastate.edu) * Program Assistant -- Iowa Environmental Mesonet * http://mesonet.agron.iastate.edu */ From jacob.delfos at MAUNSELL.COM Thu Mar 2 17:01:51 2006 From: jacob.delfos at MAUNSELL.COM (Delfos, Jacob) Date: Fri, 3 Mar 2006 09:01:51 +0800 Subject: Tileindex of DGN's being opened as shapefile layer Message-ID: Hi, Just to provide some additional information: the map displays fine in mapserver, but not in php_mapscript. It appears that php_mapscript assigns a shapefile connectiontype to this layer, causing it to try to open the DGN's as shapefile. In the mapserver CGI, this doesn't happen. Can anyone with a better understanding of the difference between the two tell me what I can do to get around it? regards, Jacob ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Delfos, Jacob Sent: 20 February 2006 15:00 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Tileindex of DGN's being opened as shapefile layer Hi All, I'm having some trouble creating a tile-index of DGN's, using php_mapscript (Chameleon). My tileindex is a shapefile. But I think the layer should be treated as OGR, yet the connectiontype seems to indicate it thinks it is a shapefile layer. According to my PHP log, it tries to open it as a shapefile, which obviously fails: [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'DGNs'. in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: msTiledSHPOpenFile(): Unable to open a single tile to use as a template in layer DGNs. in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: msSHPOpenFile(): (c:/data/hongkong/10nwb.dgn) in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: msSHPOpenFile(): (c:/data/hongkong/10nwb.dgn) in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: msSHPOpenFile(): (c:/data/hongkong/10nwa.dgn) in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: msSHPOpenFile(): (c:/data/hongkong/10nwa.dgn) in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 I based my layer definition on http://mapserver.gis.umn.edu/docs/howto/ogr_howto/#tileindex-with-ogr : LAYER NAME "DGNs" TYPE LINE STYLEITEM "AUTO" CONNECTIONTYPE OGR TILEINDEX "dindex.shp,0" STATUS ON CLASS COLOR 150 150 150 END END The DBF of the shapefile has 1 column, with these values: location C:\data\10nwa.dgn,0 C:\data\10nwb.dgn,0 I am using php_mapscript 4.6.1, with php 5.05. Can someone tell me what I'm doing wrong? Regards, Jacob JACOB DELFOS GIS ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Thu Mar 2 19:17:16 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 2 Mar 2006 21:17:16 -0600 Subject: 4.8 change in pixmap SIZE value Message-ID: Daryl: This is my fault. As part of a patch I applied that provided symbol rotation capabilities I transfered some other functionality that the user had also made in their version of mapgd.c. I guess I would vote to revert symbol size computation back to the traditional behavior- making the change in both CVS head and 4.8 (would be part of 4.8.2). CC'ing the -dev list for comment. So, I'd hang on for a moment. 4.8.2 should be out soon... Steve >>> Daryl Herzmann 03/02/06 6:49 PM >>> Hi, I have recently been educated that the way to specify pixmap symbol sizes has changed in the 4.8 series. Previously, the SIZE setting would control the pixmap symbol height. In 4.8, the SIZE setting controls the largest pixmap dimension either the height or the width. IMHO, this is bad behaviour. Is there rationale for this change? I am facing going thru all of my symbology and checking to make sure it is still correct when I upgrade to 4.8. Moreover, I can't find mention of this change in HISTORY.txt . Did I miss a discussion of this change on this list? I can live with this change, but think it is horribly confusing for new users and presents an un-needed complication when upgrading from 4.6 to 4.8 daryl -- /** * Daryl Herzmann (akrherz at iastate.edu) * Program Assistant -- Iowa Environmental Mesonet * http://mesonet.agron.iastate.edu */ From steve.lime at DNR.STATE.MN.US Thu Mar 2 19:20:04 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 2 Mar 2006 21:20:04 -0600 Subject: FW: [UMN_MAPSERVER-USERS] Problems with Label Placement and Symbo ls Anti- Message-ID: J.F. Do you have symbol and layer definitions handy? Steve >>> "Doyon, Jean-Francois" 03/02/06 12:45 PM >>> Here is a visual sample of the symbology problem: http://atlas.gc.ca/mapserver-symbol-problem.png Note on the left a sample of the legend. The most obvious problem is for the symbol for Aurora ... Though others also have issues. This is using: MapServer 4.8.1 GD 2.0.33 FreeType 2.1.10 Forcing ANTIALIASING OFF on the symbol definitions doesn't really seem to help. In the cases where symbols have overlays, playing with the sizes helps some, but often circles insist on coming out ever so slightly distorted (i.e. a slightly oval shape). There's also reports that a certain symbol will have the proper shape only with a specific size. Res-sizing the symbol distorts it? Anybody run into anything like this, or have any idea what's going on here??? The cartographers are going crazy here ... Thanks, J.F. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Doyon, Jean-Francois Sent: March 2, 2006 11:38 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problems with Label Placement and Symbols Anti-Aliasing (I think) Hello, I upgraded to MapServer 4.8.1 with the latest GD and FreeType, and have discovered some problems on our maps :( First, diagonally placed labels seems to have moved from what they used to be with say, 4.6.1 ... This however seems inconsistent. Some layers have fine looking POSITION ll labels, while some others show offsets that are wayyy off. For a while even th wrapping was acting strangely, adding lots of vertical spacing between 2 lines of a label. I've tried in vain to get one layer's label's to appear like another's in vain. The one that looks "wrong" always does, no matter what we do. We can have 2 layers with the exact same font, font size, placement, and so on, and one will label as expected, and one won't. I have NO idea how/why this happens. We've noticed things like this before between versions of mapserver ... We use lots of basolutely positionned labels, so this is problematic. Also, the symbols now seem to be anti-aliased or something, in a different way? The symbols in the legend look blurry and deformed. The symbols within the map also seem to be bleeding colors ... It's all very weird. I'm going to get some screen shots and put them up somewhere so everyone can look at them, I'd be very interested in hearing about other's experiences with this! Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support / Sp?cialiste de d?veloppements internet et soutien technique Canada Centre for Remote Sensing/Centre Canadien de t?l?d?tection Natural Resources Canada/Ressources Naturelles Canada http://atlas.gc.ca Tel./T?l.: (613) 992-4902 Fax: (613) 947-2410 From tim.bowden at WESTNET.COM.AU Thu Mar 2 20:27:49 2006 From: tim.bowden at WESTNET.COM.AU (tim) Date: Fri, 3 Mar 2006 12:27:49 +0800 Subject: threads in mapserv Message-ID: Hi, the unix compile howto at http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix gives as an example ./configure --with-threads (as one of many options) however the thread safe faq http://mapserver.gis.umn.edu/docs/faq/thread_safety says mapserver is /not/ thread safe. Does this mean that the --thread-safe switch should not normally be used or am I not seeing something obvious here? If so perhaps it should be noted in the howto. Thanks, Tim Bowden -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From warmerdam at POBOX.COM Thu Mar 2 20:58:02 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 2 Mar 2006 23:58:02 -0500 Subject: threads in mapserv In-Reply-To: <1141360069.4288.14.camel@localhost.localdomain> Message-ID: tim wrote: > Hi, > > the unix compile howto at > http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix > gives as an example ./configure --with-threads (as one of many options) > however the thread safe faq > http://mapserver.gis.umn.edu/docs/faq/thread_safety > says mapserver is /not/ thread safe. Does this mean that the > --thread-safe switch should not normally be used or am I not seeing > something obvious here? If so perhaps it should be noted in the howto. Tim, The thread-safe faq question goes on to explain that mapserver likely can be used safely in some contexts. The --with-threads switch basically turns on mutex locking for various components. In many cases (ie. GDAL) this amounts to a BigLock(tm) around the whole subsystem substantially limiting the amount of benefit from multi-threading. But at least it keeps things known to be problematic working pretty safely. The --with-threads switch does not need to be used in normal cgi or single threaded mapscript use. It does add a modest overhead. It should be used in any situations where you think multiple threads might be going through mapserver code at the same time. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGF, http://osgeo.org From tim.bowden at WESTNET.COM.AU Thu Mar 2 21:36:45 2006 From: tim.bowden at WESTNET.COM.AU (tim) Date: Fri, 3 Mar 2006 13:36:45 +0800 Subject: threads in mapserv In-Reply-To: <4407CCDA.4000809@pobox.com> Message-ID: On Thu, 2006-03-02 at 23:58 -0500, Frank Warmerdam wrote: > tim wrote: > > Hi, > > > > the unix compile howto at > > http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix > > gives as an example ./configure --with-threads (as one of many options) > > however the thread safe faq > > http://mapserver.gis.umn.edu/docs/faq/thread_safety > > says mapserver is /not/ thread safe. Does this mean that the > > --thread-safe switch should not normally be used or am I not seeing > > something obvious here? If so perhaps it should be noted in the howto. > > Tim, > > The thread-safe faq question goes on to explain that mapserver likely > can be used safely in some contexts. The --with-threads switch basically > turns on mutex locking for various components. In many cases (ie. GDAL) > this amounts to a BigLock(tm) around the whole subsystem substantially > limiting the amount of benefit from multi-threading. But at least it > keeps things known to be problematic working pretty safely. > > The --with-threads switch does not need to be used in normal cgi or > single threaded mapscript use. It does add a modest overhead. It > should be used in any situations where you think multiple threads might > be going through mapserver code at the same time. > > Best regards, Thanks Frank. Does 'normal' cgi use include --with-fastcgi? the mapserver I am building gets almost all its data from a variety of sde servers (think large state govt depts). In our testing so far (4.6.2 and 4.8.1) we keep hitting the limit of sde's connections before we hit mapservers limits (though we do have good hardware: Dell 3ghz dual xeons with 4gb ram), hence our decision to re-do testing with fastcgi. Thanks, Tim -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From pramsey at REFRACTIONS.NET Thu Mar 2 22:28:06 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Thu, 2 Mar 2006 22:28:06 -0800 Subject: threads in mapserv In-Reply-To: <1141364205.4288.34.camel@localhost.localdomain> Message-ID: Tim, FastCGI does not require thread-safety. You will find your SDE tests work much much better with fcgi: in fact, the fcgi support got finished precisely because of an SDE contract we were working on that needed to get decent performance. Don't forget to defer connection closing in your map file, otherwise you'll get no benefit from the fcgi connection pool. We found that 2-3 mapserver fcgi processes per CPU was the sweet spot. The fcgi module queues up requests if all the child processes are busy, which is actually preferable to running them all concurrently (and making them all finish slower). It is a nice way to smooth out bursts of load so they don't simply drop the machine to it's knees by firing up 10 concurrent mapservers. Paul On Mar 2, 2006, at 9:36 PM, tim wrote: > anks Frank. Does 'normal' cgi use include --with-fastcgi? the > mapserver I am building gets almost all its data from a variety of sde > servers (think large state govt depts). In our testing so far (4.6.2 > and 4.8.1) we keep hitting the limit of sde's connections before we > hit > mapservers limits (though we do have good hardware: Dell 3ghz dual > xeons > with 4gb ram), hence our decision to re-do testing with fastcgi. > > Thanks, > Tim > -- > Mapforge Geospatial > Level 3/ 267 St Georges Tce > Perth 6000 > Western Australia From tim.bowden at WESTNET.COM.AU Thu Mar 2 23:09:46 2006 From: tim.bowden at WESTNET.COM.AU (tim) Date: Fri, 3 Mar 2006 15:09:46 +0800 Subject: threads in mapserv In-Reply-To: <0C8C5801-AA5B-49CD-8A63-45E147A79EA9@refractions.net> Message-ID: On Thu, 2006-03-02 at 22:28 -0800, Paul Ramsey wrote: > Tim, > FastCGI does not require thread-safety. You will find your SDE tests > work much much better with fcgi: in fact, the fcgi support got > finished precisely because of an SDE contract we were working on that > needed to get decent performance. Don't forget to defer connection > closing in your map file, otherwise you'll get no benefit from the > fcgi connection pool. Thanks Paul, that's just what I needed to hear! > We found that 2-3 mapserver fcgi processes per > CPU was the sweet spot. Can you elaborate on what you mean here? Does this mean having more than 1 instance of apache on each machine or have I missed something? > The fcgi module queues up requests if all > the child processes are busy, which is actually preferable to running > them all concurrently (and making them all finish slower). It is a > nice way to smooth out bursts of load so they don't simply drop the > machine to it's knees by firing up 10 concurrent mapservers. > Paul > Bringing the server to its knees is easy! We are setting up wms/wfs to serve data from 15 different govt departments and agencies (for stage 1) with over 150 data sets. All we have to do is try and suck the entire cadastre for Western Australia through wfs and the server can do nothing else for 5 mins. We are working on some ideas to try and filter the requests by data volume rather than bbox size or scale or number of layers as there can be large discrepancies between rural and urban data densities. Regards, Tim Bowden > > On Mar 2, 2006, at 9:36 PM, tim wrote: > > > anks Frank. Does 'normal' cgi use include --with-fastcgi? the > > mapserver I am building gets almost all its data from a variety of sde > > servers (think large state govt depts). In our testing so far (4.6.2 > > and 4.8.1) we keep hitting the limit of sde's connections before we > > hit > > mapservers limits (though we do have good hardware: Dell 3ghz dual > > xeons > > with 4gb ram), hence our decision to re-do testing with fastcgi. > > > > Thanks, > > Tim > > -- > > Mapforge Geospatial > > Level 3/ 267 St Georges Tce > > Perth 6000 > > Western Australia -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From tim.bowden at WESTNET.COM.AU Thu Mar 2 23:26:49 2006 From: tim.bowden at WESTNET.COM.AU (tim) Date: Fri, 3 Mar 2006 15:26:49 +0800 Subject: threads in mapserv In-Reply-To: <1141369786.4288.49.camel@localhost.localdomain> Message-ID: On Fri, 2006-03-03 at 15:09 +0800, tim wrote: > On Thu, 2006-03-02 at 22:28 -0800, Paul Ramsey wrote: > > We found that 2-3 mapserver fcgi processes per > > CPU was the sweet spot. > > Can you elaborate on what you mean here? Does this mean having more > than 1 instance of apache on each machine or have I missed something? *Me smacks self on head*. A re-read of the fastcgi howto explains all. Always happens just after hitting send... Tim Bowden -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From bartvde at XS4ALL.NL Thu Mar 2 23:57:29 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 3 Mar 2006 08:57:29 +0100 Subject: Tileindex of DGN's being opened as shapefile layer In-Reply-To: <4997F456680DAD4DA1E042C40C463611426FAA@auper1ex002.au.aecomnet.com> Message-ID: Hi Jacob, I can only state that I have seen this problem as well myself with Mapinfo TAB files in a tileindex, I was also using them through PHP/Mapscript. In the end I used Mapinfo seamless layers to get around that, but that won't be an option for your DGN's. Best regards, Bart Delfos, Jacob wrote: > Hi, > > Just to provide some additional information: the map displays fine in > mapserver, but not in php_mapscript. It appears that php_mapscript > assigns a shapefile connectiontype to this layer, causing it to try to > open the DGN's as shapefile. In the mapserver CGI, this doesn't > happen. Can anyone with a better understanding of the difference > between the two tell me what I can do to get around it? > > regards, > > Jacob > > > ------------------------------------------------------------------------ > *From:* UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of *Delfos, Jacob > *Sent:* 20 February 2006 15:00 > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] Tileindex of DGN's being opened > as shapefile layer > > Hi All, > > I'm having some trouble creating a tile-index of DGN's, using > php_mapscript (Chameleon). My tileindex is a shapefile. But I > think the layer should be treated as OGR, yet the connectiontype > seems to indicate it thinks it is a shapefile layer. According to > my PHP log, it tries to open it as a shapefile, which obviously fails: > > [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: > msDrawMap(): Failed to draw layer named 'DGNs'. > in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 > [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: > msTiledSHPOpenFile(): Unable to open a single tile to use as a > template in layer DGNs. > > in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 > [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: > msSHPOpenFile(): (c:/data/hongkong/10nwb.dgn) > in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 > [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: > msSHPOpenFile(): (c:/data/hongkong/10nwb.dgn) > in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 > [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: > msSHPOpenFile(): (c:/data/hongkong/10nwa.dgn) > in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 > [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: > msSHPOpenFile(): (c:/data/hongkong/10nwa.dgn) > in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 > > I based my layer definition on > _http://mapserver.gis.umn.edu/docs/howto/ogr_howto/#tileindex-with-ogr_ > : > > LAYER > NAME "DGNs" > TYPE LINE > STYLEITEM "AUTO" > CONNECTIONTYPE OGR > TILEINDEX "dindex.shp,0" > STATUS ON > CLASS > COLOR 150 150 150 > END > END > > The DBF of the shapefile has 1 column, with these values: > > location > C:\data\10nwa.dgn,0 > C:\data\10nwb.dgn,0 > > I am using php_mapscript 4.6.1, with php 5.05. Can someone tell me > what I'm doing wrong? > > Regards, > > Jacob > > > *JACOB DELFOS > GIS ANALYST > *Maunsell Australia Pty Ltd > 629 Newcastle Street, Leederville, WA 6007 > PO Box 81, Leederville, WA 6902 > Western Australia > ABN 20 093 846 925 > > Tel + 61 8 9281 6185 > Fax + 61 8 9281 6297 > _jacob.delfos at maunsell.com_ > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bartvde at XS4ALL.NL Fri Mar 3 00:17:34 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 3 Mar 2006 09:17:34 +0100 Subject: Using SLD with GetLegendGraphic In-Reply-To: Message-ID: Hi, this should be possible, I have done it in the past but with SLD_BODY and the SLD inline in the HTTP GET request. Are you able to give that a try? But do check your webserver access logs to see that the full request is getting to Mapserver when using the SLD_BODY option. Also, which Mapserver version are you trying this on? Best regards, Bart Miles Jordan wrote: >Hi List, > >Is it possible to make a getLegendGraphic request, using a SLD to define >the style? > >I'm using the same SLD in a getMap request, which styles the layers >appropriately, as I am for a getLegendGraphic request, which shows >nothing. If I don't use the SLD, or use a different value in the >element of , the default style is shown in the >LegendGraphic. > >I'm only just starrting to look at mapserver, so I might be missing >something simple. > >This is the request I'm using: >http://myserver/cgi-bin/mapserv.exe?map=/ms4w/apps/layers/service/sample >_collection.map&service=WMS&REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMA >T=image/png&WIDTH=50&HEIGHT=50&LAYER=Humpback_whale_migration&SLD=http:/ >/myserver/test.sld > > >The SLD: > >xmlns="http://www.opengis.net/sld" >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 >StyledLayerDescriptor.xsd"> > > > Humpback_whale_migration > > Humpback Whale Migration > > > > > >GEOMETRY > > > name="stroke">#000000 > name="stroke-opacity">1 > name="stroke-width">2 > name="stroke-linejoin">Round > name="stroke-linecap">Square > name="stroke-dasharray">2.0 4.0 4.0 4.0 > name="stroke-dashoffset">0 > > > > > > > > > > >I'd appreciate any help anyone can offer, thanks. > > >Miles Jordan >Applications Developer >The Australian Antarctic Data Centre > >[p] +61 3 6232 3486 >[f] +61 3 6232 3359 >[e] miles.jordan at aad.gov.au >[w] http://www.aad.gov.au/ >___________________________________________________________________________ > > Australian Antarctic Division - Commonwealth of Australia >IMPORTANT: This transmission is intended for the addressee only. If you are not the >intended recipient, you are notified that use or dissemination of this communication is >strictly prohibited by Commonwealth law. If you have received this transmission in error, >please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and >DELETE the message. > Visit our web site at http://www.aad.gov.au/ >___________________________________________________________________________ > > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From mschulz at WEBGIS.DE Fri Mar 3 00:19:50 2006 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Fri, 3 Mar 2006 09:19:50 +0100 Subject: Using SLD with GetLegendGraphic In-Reply-To: Message-ID: Hi, yes, mapserver will use the sld also for the legendgraphic. It is however important that you have a class name defined for the layer to return a legendgraphic. Some minimal legend configuration should also be present in the mapfile. HTH, Michael Miles Jordan schrieb: > Hi List, > > Is it possible to make a getLegendGraphic request, using a SLD to define > the style? > > I'm using the same SLD in a getMap request, which styles the layers > appropriately, as I am for a getLegendGraphic request, which shows > nothing. If I don't use the SLD, or use a different value in the > element of , the default style is shown in the > LegendGraphic. > > I'm only just starrting to look at mapserver, so I might be missing > something simple. > > This is the request I'm using: > http://myserver/cgi-bin/mapserv.exe?map=/ms4w/apps/layers/service/sample > _collection.map&service=WMS&REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMA > T=image/png&WIDTH=50&HEIGHT=50&LAYER=Humpback_whale_migration&SLD=http:/ > /myserver/test.sld > > > The SLD: > > xmlns="http://www.opengis.net/sld" > 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 > StyledLayerDescriptor.xsd"> > > > Humpback_whale_migration > > Humpback Whale Migration > > > > > > GEOMETRY > > > name="stroke">#000000 > name="stroke-opacity">1 > name="stroke-width">2 > name="stroke-linejoin">Round > name="stroke-linecap">Square > name="stroke-dasharray">2.0 4.0 4.0 4.0 > name="stroke-dashoffset">0 > > > > > > > > > > > I'd appreciate any help anyone can offer, thanks. > > > Miles Jordan > Applications Developer > The Australian Antarctic Data Centre > > [p] +61 3 6232 3486 > [f] +61 3 6232 3359 > [e] miles.jordan at aad.gov.au > [w] http://www.aad.gov.au/ > ___________________________________________________________________________ > > Australian Antarctic Division - Commonwealth of Australia > IMPORTANT: This transmission is intended for the addressee only. If you are not the > intended recipient, you are notified that use or dissemination of this communication is > strictly prohibited by Commonwealth law. If you have received this transmission in error, > please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and > DELETE the message. > Visit our web site at http://www.aad.gov.au/ > ___________________________________________________________________________ > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 Tel +49 (0)761 556959-5 79108 Freiburg Fax +49 (0)761 556959-6 www.webgis.de / www.zopecms.de ----------------------------------------------------------- NEU ++ UMN MapServer Hosting ++ http://www.webgis.de ++ NEU ----------------------------------------------------------- From mschulz at WEBGIS.DE Fri Mar 3 00:35:15 2006 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Fri, 3 Mar 2006 09:35:15 +0100 Subject: Using SLD with GetLegendGraphic In-Reply-To: <4407FC26.2030904@webgis.de> Message-ID: Ha! Forgot a crucial part of the whole story: "Note here that you need to put a class1 inside the Rule element so that a class name is created from the SLD and therefore a correct legend image." (wms server howto) Cheers, Michael Michael Schulz schrieb: > Hi, > > yes, mapserver will use the sld also for the legendgraphic. It is > however important that you have a class name defined for the layer to > return a legendgraphic. Some minimal legend configuration should also be > present in the mapfile. > > HTH, Michael > > Miles Jordan schrieb: > >> Hi List, >> >> Is it possible to make a getLegendGraphic request, using a SLD to define >> the style? >> >> I'm using the same SLD in a getMap request, which styles the layers >> appropriately, as I am for a getLegendGraphic request, which shows >> nothing. If I don't use the SLD, or use a different value in the >> element of , the default style is shown in the >> LegendGraphic. >> >> I'm only just starrting to look at mapserver, so I might be missing >> something simple. >> >> This is the request I'm using: >> http://myserver/cgi-bin/mapserv.exe?map=/ms4w/apps/layers/service/sample >> _collection.map&service=WMS&REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMA >> T=image/png&WIDTH=50&HEIGHT=50&LAYER=Humpback_whale_migration&SLD=http:/ >> /myserver/test.sld >> >> >> The SLD: >> >> > xmlns="http://www.opengis.net/sld" >> 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 >> StyledLayerDescriptor.xsd"> >> >> >> Humpback_whale_migration >> >> Humpback Whale Migration >> >> >> >> >> >> GEOMETRY >> >> >> > name="stroke">#000000 >> > name="stroke-opacity">1 >> > name="stroke-width">2 >> > name="stroke-linejoin">Round >> > name="stroke-linecap">Square >> > name="stroke-dasharray">2.0 4.0 4.0 4.0 >> > name="stroke-dashoffset">0 >> >> >> >> >> >> >> >> >> >> >> I'd appreciate any help anyone can offer, thanks. >> >> >> Miles Jordan >> Applications Developer >> The Australian Antarctic Data Centre >> >> [p] +61 3 6232 3486 >> [f] +61 3 6232 3359 >> [e] miles.jordan at aad.gov.au >> [w] http://www.aad.gov.au/ >> ___________________________________________________________________________ >> >> >> Australian Antarctic Division - Commonwealth of Australia >> IMPORTANT: This transmission is intended for the addressee only. If >> you are not the >> intended recipient, you are notified that use or dissemination of this >> communication is >> strictly prohibited by Commonwealth law. If you have received this >> transmission in error, >> please notify the sender immediately by e-mail or by telephoning +61 3 >> 6232 3209 and >> DELETE the message. >> Visit our web site at http://www.aad.gov.au/ >> ___________________________________________________________________________ >> >> > > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 Tel +49 (0)761 556959-5 79108 Freiburg Fax +49 (0)761 556959-6 www.webgis.de / www.zopecms.de ----------------------------------------------------------- NEU ++ UMN MapServer Hosting ++ http://www.webgis.de ++ NEU ----------------------------------------------------------- From chris at NARX.NET Fri Mar 3 03:20:21 2006 From: chris at NARX.NET (Chris Tweedie) Date: Fri, 3 Mar 2006 19:20:21 +0800 Subject: threads in mapserv In-Reply-To: <4407CCDA.4000809@pobox.com> Message-ID: Hi Frank/Paul Tim and myself have been trying to get fcgi support running with no success. Briefly, we cannot get past the following exception when submitting a standard getcapabilities call ... [Fri Mar 3 12:04:44 2006] [warn] FastCGI: (dynamic) server "/MapServer/www/cgi-bin/mapserv.fcgi" started (pid 32471) This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. [Fri Mar 3 12:04:44 2006] [warn] FastCGI: (dynamic) server "/MapServer/www/cgi-bin/mapserv.fcgi" (pid 32471) terminated by calling exit with status '0' Does this ring any bells with you in your implementations? It seems as though the fcgi handler is not passing on the query string, which is causing mapserv to throw the usual "Should be initiated as a cgi process". The reason though, i have no idea. The same executable, when fcgi is disabled works as expected ... all the SDE connections have the defer parameter defined in the map file. Our complete configuration is as follows .. any thoughts/ideas would be muchly appreciated. 1. Unpacked fcgi-2.4.0 to /WSPACE5/fcgi-2.4.0 2. Built and installed library to /WSPACE5/fcgi_bin 3. Unpacked mod_fastcgi.so 4. Modified httpd.conf Options Indexes FollowSymLinks MultiViews ExecCGI AddHandler fastcgi-script fcgi FastCgiConfig -initial-env PROJ_LIB=/MapServer/lib -initial-env LD_LIBRARY_PATH=/MapServer/lib -appConnTimeout 60 -idle-timeout 60 -init-start-delay 1 -minProcesses 2 -maxClassProcesses 20 -startDelay 5 LoadModule fastcgi_module /MapServer/mod_fastcgi.so 5. Built mapserv.fcgi with the following configuration ./configure --with-proj --with-ogr --with-gdal --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-sde-version=91 --with-sde=/arcsdesdk/sdeexe91/lib/ --with-fastcgi=/WSPACE5/fcgi_bin [root at t2lin cgi-bin]# ./mapserv.fcgi -v MapServer version 4.6.2 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=WCS_SERVER INPUT=EPPL7 INPUT=SDE INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE [root at t2lin cgi-bin]# ldd ./mapserv.fcgi libgd.so.2 => /MapServer/lib/libgd.so.2 (0x00fa9000) libjpeg.so.62 => /MapServer/lib/libjpeg.so.62 (0x00789000) libfreetype.so.6 => /MapServer/lib/libfreetype.so.6 (0x00ed9000) libpng.so.3 => /MapServer/lib/libpng.so.3 (0x006d8000) libz.so.1 => /usr/lib/libz.so.1 (0x00b2f000) libproj.so.0 => /MapServer/lib/libproj.so.0 (0x008dd000) libsde91.so => /arcsdesdk/sdeexe91/lib/libsde91.so (0x00cae000) libpe91.so => /arcsdesdk/sdeexe91/lib/libpe91.so (0x00246000) libsg91.so => /arcsdesdk/sdeexe91/lib/libsg91.so (0x00b58000) libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00111000) libdl.so.2 => /lib/libdl.so.2 (0x00f92000) libgdal.so.1 => /MapServer/lib/libgdal.so.1 (0x00ff8000) libcurl.so.3 => /MapServer/lib/libcurl.so.3 (0x00377000) libssl.so.4 => /lib/libssl.so.4 (0x00af1000) libcrypto.so.4 => /lib/libcrypto.so.4 (0x00121000) libgssapi_krb5.so.2 => /usr/kerberos/lib/libgssapi_krb5.so.2 (0x00213000) libkrb5.so.3 => /usr/kerberos/lib/libkrb5.so.3 (0x004db000) libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0x00226000) libk5crypto.so.3 => /usr/kerberos/lib/libk5crypto.so.3 (0x005a7000) libresolv.so.2 => /lib/libresolv.so.2 (0x00539000) libc.so.6 => /lib/tls/libc.so.6 (0x00911000) libfcgi.so.0 => /fcgi_lib/lib/libfcgi.so.0 (0x0054b000) libm.so.6 => /lib/tls/libm.so.6 (0x00c69000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x007f3000) libpng12.so.0 => /MapServer/lib/libpng12.so.0 (0x00554000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00585000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00230000) libodbc.so.1 => /MapServer/lib/libodbc.so.1 (0x005b9000) libxerces-c.so.26 => /MapServer/lib/libxerces-c.so.26 (0x060ee000) libNCSEcw.so => /ecwsdk/lib/libNCSEcw.so (0x05ecb000) libNCSCNet.so => /ecwsdk/lib/libNCSCNet.so (0x0058e000) libNCSUtil.so => /ecwsdk/lib/libNCSUtil.so (0x0061d000) libgeotiff.so => /MapServer/lib/libgeotiff.so (0x0062e000) libtiff.so.3 => /MapServer/lib/libtiff.so.3 (0x00650000) libnetcdf.so => /MapServer/lib/libnetcdf.so (0x0069c000) libpq.so.4 => /MapServer/lib/libpq.so.4 (0x00c15000) librt.so.1 => /lib/tls/librt.so.1 (0x006c1000) libnsl.so.1 => /lib/libnsl.so.1 (0x00709000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x0071e000) *** Although no SUPPORTS=FASTCGI displayed for mapserv.fcgi -v, the ldd shows libfcgi.so.0 => /fcgi_lib/lib/libfcgi.so.0 (0x0054b000) indicating it is using the library. Or is it? 6. Pressed on to see if we got lucky, so did a getcapabilities [root at t2lin logs]# tail -f error_log [Fri Mar 3 12:04:17 2006] [notice] caught SIGTERM, shutting down Processing config directory: /MapServer/www/conf.d/*.conf Processing config file: /MapServer/www/conf.d/gdal.conf Processing config file: /MapServer/www/conf.d/mapserver.conf Processing config file: /MapServer/www/conf.d/php.conf Processing config file: /MapServer/www/conf.d/proj.conf [Fri Mar 3 12:04:19 2006] [warn] NameVirtualHost *:80 has no VirtualHosts [Fri Mar 3 12:04:19 2006] [notice] FastCGI: process manager initialized (pid 32464) [Fri Mar 3 12:04:19 2006] [notice] Apache/1.3.34 (Unix) mod_fastcgi/2.4.2 configured -- resuming normal operations [Fri Mar 3 12:04:19 2006] [notice] Accept mutex: sysvsem (Default: sysvsem) ***** SUBMITTED GETCAPABILITIES START HERE ********* [Fri Mar 3 12:04:44 2006] [warn] FastCGI: (dynamic) server "/MapServer/www/cgi-bin/mapserv.fcgi" started (pid 32471) This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. [Fri Mar 3 12:04:44 2006] [warn] FastCGI: (dynamic) server "/MapServer/www/cgi-bin/mapserv.fcgi" (pid 32471) terminated by calling exit with status '0' [Fri Mar 3 12:04:49 2006] [warn] FastCGI: (dynamic) server "/MapServer/www/cgi-bin/mapserv.fcgi" restarted (pid 32473) This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. [Fri Mar 3 12:04:49 2006] [warn] FastCGI: (dynamic) server "/MapServer/www/cgi-bin/mapserv.fcgi" (pid 32473) terminated by calling exit with status '0' [Fri Mar 3 12:04:54 2006] [warn] FastCGI: (dynamic) server "/MapServer/www/cgi-bin/mapserv.fcgi" restarted (pid 32476) This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. [Fri Mar 3 12:04:54 2006] [warn] FastCGI: (dynamic) server "/MapServer/www/cgi-bin/mapserv.fcgi" (pid 32476) terminated by calling exit with status '0' [Fri Mar 3 12:04:59 2006] [warn] FastCGI: (dynamic) server "/MapServer/www/cgi-bin/mapserv.fcgi" restarted (pid 32477) This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. [Fri Mar 3 12:04:59 2006] [warn] FastCGI: (dynamic) server "/MapServer/www/cgi-bin/mapserv.fcgi" (pid 32477) terminated by calling exit with status '0' [Fri Mar 3 12:04:59 2006] [warn] FastCGI: (dynamic) server "/MapServer/www/cgi-bin/mapserv.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds 7. FastCGI continues to output Error 500 while looping thru the above continuously. *pulls hair out* From kappu72 at GMAIL.COM Fri Mar 3 05:33:48 2006 From: kappu72 at GMAIL.COM (Andrea Cappugi) Date: Fri, 3 Mar 2006 14:33:48 +0100 Subject: php mapscript question Message-ID: Hi, anybody knows if is possible to store a map object in a php Session variable. I have tired but map object stored in session variable loses its internal handle. I apologize form my English Thanks in advance Andrea -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim.bowden at WESTNET.COM.AU Fri Mar 3 05:51:46 2006 From: tim.bowden at WESTNET.COM.AU (tim) Date: Fri, 3 Mar 2006 21:51:46 +0800 Subject: threads in mapserv In-Reply-To: <20060303192021.alu06efjksgg88wk@webmail.narx.net> Message-ID: On Fri, 2006-03-03 at 19:20 +0800, Chris Tweedie wrote: > Hi Frank/Paul > > Tim and myself have been trying to get fcgi support running with no success. > I think I may have this one sorted- a problem with the fcgi library at ./configure stage. It looks like I have it running on an alternate build. I'll send you the details on Monday Chris. Regards, Tim Bowden -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From warmerdam at POBOX.COM Fri Mar 3 06:11:47 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 3 Mar 2006 09:11:47 -0500 Subject: threads in mapserv In-Reply-To: <20060303192021.alu06efjksgg88wk@webmail.narx.net> Message-ID: chris at narx.net wrote: > 5. Built mapserv.fcgi with the following configuration > > ./configure --with-proj --with-ogr --with-gdal --with-wfs --with-wcs > --with-wmsclient --with-wfsclient --with-sde-version=91 > --with-sde=/arcsdesdk/sdeexe91/lib/ --with-fastcgi=/WSPACE5/fcgi_bin > > [root at t2lin cgi-bin]# ./mapserv.fcgi -v > MapServer version 4.6.2 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=WCS_SERVER INPUT=EPPL7 INPUT=SDE INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE Chris, If MapServer isn't reporting SUPPORTS=FASTCGI then it did not get built in successfully (link or not). What does the FastCGI section of Makefile look like? It should read something like: # Optional FastCGI FASTCGI=-DUSE_FASTCGI FASTCGI_INC= FASTCGI_LIB=-lfcgi I *suspect* you need to use --with-fastcgi=/WSPACES/fcgi-2.4.0. I sympathize with the challenges of getting fastcgi support working. It makes me appreciate how relatively easy it is to debug issues int he traditional cgi mechanism. 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 OSGF, http://osgeo.org From igorpsc at YAHOO.COM.BR Fri Mar 3 06:17:08 2006 From: igorpsc at YAHOO.COM.BR (igor pinheiro) Date: Fri, 3 Mar 2006 11:17:08 -0300 Subject: Query result in a center Message-ID: Hi list, How can I put the query result in a center. In other words, to show the map area with the query resulting element in the center and with a default scale. Thanks in advanced, Igor Cabral --------------------------------- Yahoo! Acesso Gr?tis Internet r?pida e gr?tis. Instale o discador agora! -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim.bowden at WESTNET.COM.AU Fri Mar 3 06:39:41 2006 From: tim.bowden at WESTNET.COM.AU (tim) Date: Fri, 3 Mar 2006 22:39:41 +0800 Subject: Mapserver caching and map generation In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DD9EC@ptolemy.topozone.com> Message-ID: On Wed, 2006-03-01 at 16:19 -0500, Ed McNierney wrote: > Emmanuel - > > The client ALWAYS requests an image that's "not in the cache". It's not > a cache. It's a temporary directory where MapServer writes files. If > five clients request the same image from MapServer five times in one > second, MapServer will ALWAYS create five different temporary files, and > will return five unique URLs to five different files - even though > they're all the same image. > > - Ed I have seen this appear to happen when 'chaining' wfs requests. The setup is as follows: Central wfs/wms server -----> agency wms/wfs server ---> sde server The central server 'chains' to multiple agency servers that point to the sde server of the respective data custodian. When a request on a layer is made against the central server it then makes a request on the relevant agency server which returns the required gml which is stored in a temp file on the central server. So far, so good. We can turn off the agency box and make the same request of the central server and get the same response back, despite the agency box being turned off. This behaviour was picked up by one of our testers helping evaluate various ogc servers for a large whole of govt implementation. His report to me: Tim, MapServer appears to use the tmp directory as a cache (intentionally or not) during cascaded WFS requests. MapServer stores the GML returned from the remote service in the tmp directory. Subsequent WFS requests for the same layer are not forwarded to the remote server (nothing in Apache logs on the remote); however, deleting the contents of the tmp directory causes the next WFS request to be forwarded to the remote service. Interestingly, the file names in the tmp directory appear to be related to the request: similar requests (same layers, different bbox) cause the same file name to be created in the tmp. Regards, Geoff This was with 4.6.2. Haven't tried it yet with 4.8.1. Is it possible a bug has crept in? Regards, Tim Bowden > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Emmanuel BELO [mailto:emmanuel.belo at microgis.ch] > Sent: Wednesday, March 01, 2006 4:15 PM > To: Ed McNierney > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Mapserver caching and map generation > > To clarify my first question: > > If a client requests an image that doesn't yet exists in the cache, the > application will launch the process to create the file (I suppose with a > pseudo-random filename) and give back the link. That's ok. > Now imagine you have 5 more requests for the same image (same query) > while the first one is still being processed. > Will the application detect that and queue these requests for a while to > give them the link created by the first once it has finished, or will it > just launch five other processes, just as if it was other queries, > resulting of the creation of 6 images that will be exactly the same > (result of the same query) ? > I tend to imagine that actually the second case will happen, but maybe > is there some kind of a "query caching mechanism" that may take care of > that and avoid duplicated work... > > regards, > > eb > > Ed McNierney wrote: > > Emmanuel - > > > > Each map request generates a unique image, and the URL for that image > is > > returned to the client browser requesting that image. Since your Web > > server can process several HTTP requests at one time, there can be > > several MapServer instances all running at the same time. > > > > There will be some interaction with the disk subsystem on which the > > temporary images are written, and from which they are read by the > client > > browsers. Some disk systems can handle multiple simultaneous > read/write > > requests better than others. Nothing will break - but some disk > > subsystems will take longer than others to respond when multiple reads > > and writes are happening. > > > > In case you haven't discovered it yet, using MapServer as a WMS server > > or in the CGI "mode=map" mode, the output image is written directly to > > the client and no temporary files are written to disk. > > > > - Ed > > > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > ed at topozone.com > > (978) 251-4242 > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > > Behalf Of Emmanuel BELO > > Sent: Wednesday, March 01, 2006 12:26 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Mapserver caching and map generation > > > > Hello, > > > > after cleaning the cache, mapserver generates the new images on > request. > > > > What happens if 10 users ask for the same map during the generation of > > the first map? Are their request delayed or will 10 processes in > > parallel be initiated? > > > > Best regards, > > > > Emmanuel BELO > > emmanuel.belo at microgis.ch -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From lfilak at MEDINACO.ORG Fri Mar 3 06:41:05 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Fri, 3 Mar 2006 09:41:05 -0500 Subject: MapServer incompatibility with RHEL4/CENTOS4.2 In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7DAE@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: Doyon, Jean-Francois writes: > Hello, > > OK well I've tracked down the source of my problem to the operating system > itself it seems. > > Regardless of the versions/combinations of mapserver/gd/freetype I use, > there are definite visual rendering problems when on this OS. On RedHat > 7.3, everything is fine! > > Example: > > http://atlas.gc.ca/family-good.gif > http://atlas.gc.ca/family-bad.gif > > Note the small dot that appears on the symbol? > > Also: > > http://atlas.gc.ca/the-market-good.gif > http://atlas.gc.ca/the-market-bad.gif > > Notice how on the bad version, a bunch of point symbols are missing? > > I tried various combinations of: > > MapServer 4.6.1 and 4.8.1 > FreeType 2.0.9 and 2.1.9 > GD 2.0.28 and 2.0.33 > > A given combination works on 7.3, but not on CentOS. > > Without luck. The problem with the strange shape of the symbols ( > http://atlas.gc.ca/mapserver-symbol-problem.png ) seemes to be related to > the version of FreeType for some reason? FreeType 2.0.9 acts as we expect > it to, FreeType 2.1.9 does not. There may be cumulative effects also. > > CentOS 4.2 uses GCC 3.4.4 and GLIBC 2.3.4. I had gotten a horrible crash > message at some point with a version of mapserver on this OS > (http://lists.umn.edu/cgi-bin/wa?A2=ind0602&L=mapserver-users&P=R60802&I=-3& > X=106ECE1CAE6B73E23F), but upgrading from 4.6.1 to 4.8.1 had fixed it. This > was related to memory allocation. Could something related to that be > causing this? Turns out I've got 4.6.1 running on this platform now, but > that really didn't help. > > I'm out of ideas :( Anyone? J.F., Is the 7.3 box a 32-bit and the RHEL box a 64-bit kernel by any chance (you may have already stated that in your previous "double free detected.." post but I don't remember). Not that I know of a particular fix, but we have certainly had strange problems here also. Lowell From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Fri Mar 3 06:56:02 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Fri, 3 Mar 2006 09:56:02 -0500 Subject: MapServer incompatibility with RHEL4/CE NTOS4.2 Message-ID: Lowell, Indeed! These are 64 bit CPU's! (Intel Xeon, Dell PowerEdge 1850's) And we're running CentOS, though I'm not sure whether it's the i386 version, or the x86_64 one, I'll look into that. I've also replicated the problem on a Pentium 4 machine though, which is 32 bit, though with what intel calls EM64T technology. Could it be the HyperThreading? J.F. -----Original Message----- From: Lowell.Filak [mailto:lfilak at medinaco.org] Sent: March 3, 2006 9:41 AM To: Doyon, Jean-Francois Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with RHEL4/CENTOS4.2 Doyon, Jean-Francois writes: > Hello, > > OK well I've tracked down the source of my problem to the operating > system itself it seems. > > Regardless of the versions/combinations of mapserver/gd/freetype I > use, there are definite visual rendering problems when on this OS. On > RedHat 7.3, everything is fine! > > Example: > > http://atlas.gc.ca/family-good.gif > http://atlas.gc.ca/family-bad.gif > > Note the small dot that appears on the symbol? > > Also: > > http://atlas.gc.ca/the-market-good.gif > http://atlas.gc.ca/the-market-bad.gif > > Notice how on the bad version, a bunch of point symbols are missing? > > I tried various combinations of: > > MapServer 4.6.1 and 4.8.1 > FreeType 2.0.9 and 2.1.9 > GD 2.0.28 and 2.0.33 > > A given combination works on 7.3, but not on CentOS. > > Without luck. The problem with the strange shape of the symbols ( > http://atlas.gc.ca/mapserver-symbol-problem.png ) seemes to be related > to the version of FreeType for some reason? FreeType 2.0.9 acts as we > expect it to, FreeType 2.1.9 does not. There may be cumulative effects also. > > CentOS 4.2 uses GCC 3.4.4 and GLIBC 2.3.4. I had gotten a horrible > crash message at some point with a version of mapserver on this OS > (http://lists.umn.edu/cgi-bin/wa?A2=ind0602&L=mapserver-users&P=R60802 > &I=-3& X=106ECE1CAE6B73E23F), but upgrading from 4.6.1 to 4.8.1 had > fixed it. This was related to memory allocation. Could something > related to that be causing this? Turns out I've got 4.6.1 running on > this platform now, but that really didn't help. > > I'm out of ideas :( Anyone? J.F., Is the 7.3 box a 32-bit and the RHEL box a 64-bit kernel by any chance (you may have already stated that in your previous "double free detected.." post but I don't remember). Not that I know of a particular fix, but we have certainly had strange problems here also. Lowell From kappu72 at GMAIL.COM Fri Mar 3 06:56:50 2006 From: kappu72 at GMAIL.COM (Andrea Cappugi) Date: Fri, 3 Mar 2006 15:56:50 +0100 Subject: php mapscript question In-Reply-To: <440857AB.709@home.nl> Message-ID: Thank for your answer John, but what I'm doing is generating a new map fail based on a client request to draw something, and at the moment I'm doing as you suggest but i would like to maintain the server clean from writing a lot of temp map files. Thanks Andrea 2006/3/3, openwereld.net : > > Andrea Cappugi schreef: > > Hi, > > anybody knows if is possible to store a map object in a php Session > > variable. > > I have tired but map object stored in session variable loses its > > internal handle. > Hi Andrea, > > If I remember well, the serialize/unserialize of php is not symmetric > with respect to the handles or null values. So probably you can't store > the map object in a session variable, but a possible alternative is to > store the path to the map file in a session variable, and read that map > file in an object at the start of the session. > > Cheers, > John. > > I apologize form my English > > Thanks in advance > > Andrea > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From openwereld.net at HOME.NL Fri Mar 3 06:50:19 2006 From: openwereld.net at HOME.NL (openwereld.net) Date: Fri, 3 Mar 2006 15:50:19 +0100 Subject: php mapscript question In-Reply-To: Message-ID: Andrea Cappugi schreef: > Hi, > anybody knows if is possible to store a map object in a php Session > variable. > I have tired but map object stored in session variable loses its > internal handle. Hi Andrea, If I remember well, the serialize/unserialize of php is not symmetric with respect to the handles or null values. So probably you can't store the map object in a session variable, but a possible alternative is to store the path to the map file in a session variable, and read that map file in an object at the start of the session. Cheers, John. > I apologize form my English > Thanks in advance > Andrea From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Fri Mar 3 07:28:25 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Fri, 3 Mar 2006 10:28:25 -0500 Subject: MapServer incompatibility with RHEL4/CE NTOS4.2 Message-ID: OK, we're running 32 bit CentOS 4.2, on Xeon processors. I'm thinking there's some problem with the newer glibc or something like that, which would also explain the crashes I was having at first on a specific map? J.F. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Doyon, Jean-Francois Sent: March 3, 2006 9:56 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with RHEL4/CE NTOS4.2 Lowell, Indeed! These are 64 bit CPU's! (Intel Xeon, Dell PowerEdge 1850's) And we're running CentOS, though I'm not sure whether it's the i386 version, or the x86_64 one, I'll look into that. I've also replicated the problem on a Pentium 4 machine though, which is 32 bit, though with what intel calls EM64T technology. Could it be the HyperThreading? J.F. -----Original Message----- From: Lowell.Filak [mailto:lfilak at medinaco.org] Sent: March 3, 2006 9:41 AM To: Doyon, Jean-Francois Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with RHEL4/CENTOS4.2 Doyon, Jean-Francois writes: > Hello, > > OK well I've tracked down the source of my problem to the operating > system itself it seems. > > Regardless of the versions/combinations of mapserver/gd/freetype I > use, there are definite visual rendering problems when on this OS. On > RedHat 7.3, everything is fine! > > Example: > > http://atlas.gc.ca/family-good.gif > http://atlas.gc.ca/family-bad.gif > > Note the small dot that appears on the symbol? > > Also: > > http://atlas.gc.ca/the-market-good.gif > http://atlas.gc.ca/the-market-bad.gif > > Notice how on the bad version, a bunch of point symbols are missing? > > I tried various combinations of: > > MapServer 4.6.1 and 4.8.1 > FreeType 2.0.9 and 2.1.9 > GD 2.0.28 and 2.0.33 > > A given combination works on 7.3, but not on CentOS. > > Without luck. The problem with the strange shape of the symbols ( > http://atlas.gc.ca/mapserver-symbol-problem.png ) seemes to be related > to the version of FreeType for some reason? FreeType 2.0.9 acts as we > expect it to, FreeType 2.1.9 does not. There may be cumulative > effects also. > > CentOS 4.2 uses GCC 3.4.4 and GLIBC 2.3.4. I had gotten a horrible > crash message at some point with a version of mapserver on this OS > (http://lists.umn.edu/cgi-bin/wa?A2=ind0602&L=mapserver-users&P=R60802 > &I=-3& X=106ECE1CAE6B73E23F), but upgrading from 4.6.1 to 4.8.1 had > fixed it. This was related to memory allocation. Could something > related to that be causing this? Turns out I've got 4.6.1 running on > this platform now, but that really didn't help. > > I'm out of ideas :( Anyone? J.F., Is the 7.3 box a 32-bit and the RHEL box a 64-bit kernel by any chance (you may have already stated that in your previous "double free detected.." post but I don't remember). Not that I know of a particular fix, but we have certainly had strange problems here also. Lowell From john.cole at UAI.COM Fri Mar 3 07:41:13 2006 From: john.cole at UAI.COM (John Cole) Date: Fri, 3 Mar 2006 09:41:13 -0600 Subject: C# mapscript... Message-ID: Tamas, Starting into this and got the following compile error on mapservers Makefile.vc maputil.c(123) : fatal error C1083: Cannot open include file: 'mapparser.h': No such file or directory NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c l.EXE"' : return code '0x2' Stop. I've downloaded rel-4-8-1 from cvs. Is there a file missing? Thanks, John Cole -----Original Message----- From: Tamas Szekeres [mailto:szekeres.tamas at FREEMAIL.HU] Sent: Tuesday, February 28, 2006 2:54 PM To: MAPSERVER-USERS at LISTS.UMN.EDU; John Cole Subject: Re: C# mapscript... John, As far as I know precompiled binaries targeting the .NET framework 2.0 is not avaiable to download. However I suggest to compile one from the source. It is highly recommended to compile mapserver and mapscript with the same compiler version VS2005 in this case. You should enable only the options will be actually used in order to minimize the dependency from high number of libraries. Both of the current stable release (4.8.1) and the CVS version is known compilable with VS2005 with the following notes: 1. Pre download and compile all of subsequent libraries to be used along with mapserver according to http://mapserver.gis.umn.edu/docs/howto/win32_compiling 2. edit nmake.opt to enable the libraries 3. Heck regex according to http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1651 4. To compile mapserver use Visual Studio 2005 Command Prompt issue nmake -f makefile.vc in the mapserver directory. 5. To compile mapscript C# download swigwin-1.3.28 edit makefile.vc in the mapscript/csharp directory and give your swigwin path 6. To eliminate high number of warnings you should define _CRT_SECURE_NO_DEPRECATE and _CRT_NONSTDC_NO_DEPRECATE like this: OPTFLAGS = /nologo /MD /Zi /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE $(WARNING_LEVEL) $(DEBUG) 7. If you are not using the CVS version modify owsrequest.i according to http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1677 8. Use nmake -f makefile.vc in the mapscript/csharp directory To test your compilation: 1. Create a new VS project 2. Add reference to mapscript_csharp.dll 3. Add reference to Microsoft Visual Studio8\VC\redist\x86\Microsoft.VC80.CRT\Microsoft.VC80.CRT.manifest 4. Use mapscript objects within your code 5. Compile your solution 6. Copy the compiled mapscript.dll, libmap.dll and the dependent dll-s into your app directory. 7. Run If your are not using the IDE (eg. to try the samples like drawmap.exe) you should create a proper manifest file along with your .exe declaring a reference to the CRT assemblies, otherwise the program will not run. I hope not to forget anything. If it is required precompiled binaries could be created for download, but one should define the possible reasonable variations of the required library usage. Best Regards, Tamas Szekeres On Tue, 28 Feb 2006 08:44:39 -0600, John Cole wrote: >Hello, > Is someone maintaining a binary of C# mapscript (.net 2.0)? > >Thanks, > >John Cole From kernu11 at YAHOO.COM Fri Mar 3 07:38:31 2006 From: kernu11 at YAHOO.COM (Ker Nulov) Date: Fri, 3 Mar 2006 09:38:31 -0600 Subject: shapes to MySQL Message-ID: Hi, I have been looking for info about migrating my shapefiles to MySQL but I can't find anything. Is it possible to convert all my shapefiles to MySQL and draw layers using MySQL access? I need it to improove speed. My application uses mapscript with php. Thanks Nikolai ___________________________________________________________ Do You Yahoo!? La mejor conexi?n a Internet y 2GB extra a tu correo por $100 al mes. http://net.yahoo.com.mx From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Fri Mar 3 08:58:07 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Fri, 3 Mar 2006 11:58:07 -0500 Subject: MapServer incompatibility with RHEL4/CE NTOS4.2 Message-ID: I tried moving the RedHat 7.3 binary that I know works fine to a CentOS 4.2 system, and wham, the problem appeared! I also investigated trying to run multiple glibc's to see if that might be the problem (i.e. install the RedHat 7.3 glibc on CentOS for the use of MapServer), but that looks like quite the nightmare to try out ... J.F. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Doyon, Jean-Francois Sent: March 3, 2006 10:28 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with RHEL4/CE NTOS4.2 OK, we're running 32 bit CentOS 4.2, on Xeon processors. I'm thinking there's some problem with the newer glibc or something like that, which would also explain the crashes I was having at first on a specific map? J.F. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Doyon, Jean-Francois Sent: March 3, 2006 9:56 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with RHEL4/CE NTOS4.2 Lowell, Indeed! These are 64 bit CPU's! (Intel Xeon, Dell PowerEdge 1850's) And we're running CentOS, though I'm not sure whether it's the i386 version, or the x86_64 one, I'll look into that. I've also replicated the problem on a Pentium 4 machine though, which is 32 bit, though with what intel calls EM64T technology. Could it be the HyperThreading? J.F. -----Original Message----- From: Lowell.Filak [mailto:lfilak at medinaco.org] Sent: March 3, 2006 9:41 AM To: Doyon, Jean-Francois Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with RHEL4/CENTOS4.2 Doyon, Jean-Francois writes: > Hello, > > OK well I've tracked down the source of my problem to the operating > system itself it seems. > > Regardless of the versions/combinations of mapserver/gd/freetype I > use, there are definite visual rendering problems when on this OS. On > RedHat 7.3, everything is fine! > > Example: > > http://atlas.gc.ca/family-good.gif > http://atlas.gc.ca/family-bad.gif > > Note the small dot that appears on the symbol? > > Also: > > http://atlas.gc.ca/the-market-good.gif > http://atlas.gc.ca/the-market-bad.gif > > Notice how on the bad version, a bunch of point symbols are missing? > > I tried various combinations of: > > MapServer 4.6.1 and 4.8.1 > FreeType 2.0.9 and 2.1.9 > GD 2.0.28 and 2.0.33 > > A given combination works on 7.3, but not on CentOS. > > Without luck. The problem with the strange shape of the symbols ( > http://atlas.gc.ca/mapserver-symbol-problem.png ) seemes to be related > to the version of FreeType for some reason? FreeType 2.0.9 acts as we > expect it to, FreeType 2.1.9 does not. There may be cumulative > effects also. > > CentOS 4.2 uses GCC 3.4.4 and GLIBC 2.3.4. I had gotten a horrible > crash message at some point with a version of mapserver on this OS > (http://lists.umn.edu/cgi-bin/wa?A2=ind0602&L=mapserver-users&P=R60802 > &I=-3& X=106ECE1CAE6B73E23F), but upgrading from 4.6.1 to 4.8.1 had > fixed it. This was related to memory allocation. Could something > related to that be causing this? Turns out I've got 4.6.1 running on > this platform now, but that really didn't help. > > I'm out of ideas :( Anyone? J.F., Is the 7.3 box a 32-bit and the RHEL box a 64-bit kernel by any chance (you may have already stated that in your previous "double free detected.." post but I don't remember). Not that I know of a particular fix, but we have certainly had strange problems here also. Lowell From ed at TOPOZONE.COM Fri Mar 3 09:05:20 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 3 Mar 2006 12:05:20 -0500 Subject: Mapserver WFS Request Caching Message-ID: Tim - First, let's not confuse Emmanuel - the scenario you describe is a completely different situation than what he was asking about. The discussion here isn't relevant to his problem, and my earlier replies are not relevant to this problem! You're reporting that WFS requests made by MapServer to a remote WFS server have their responses cached locally, and subsequent requests use the cached replies. Is that correct? I'm a little confused by your last point - if the request is for a similar set of layers but a different BBOX, are you saying the (wrong) cached data is used, or does the correct data get used, overwriting the cached file? Thanks. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of tim Sent: Friday, March 03, 2006 9:40 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapserver caching and map generation On Wed, 2006-03-01 at 16:19 -0500, Ed McNierney wrote: > Emmanuel - > > The client ALWAYS requests an image that's "not in the cache". It's > not a cache. It's a temporary directory where MapServer writes files. > If five clients request the same image from MapServer five times in > one second, MapServer will ALWAYS create five different temporary > files, and will return five unique URLs to five different files - even > though they're all the same image. > > - Ed I have seen this appear to happen when 'chaining' wfs requests. The setup is as follows: Central wfs/wms server -----> agency wms/wfs server ---> sde server The central server 'chains' to multiple agency servers that point to the sde server of the respective data custodian. When a request on a layer is made against the central server it then makes a request on the relevant agency server which returns the required gml which is stored in a temp file on the central server. So far, so good. We can turn off the agency box and make the same request of the central server and get the same response back, despite the agency box being turned off. This behaviour was picked up by one of our testers helping evaluate various ogc servers for a large whole of govt implementation. His report to me: Tim, MapServer appears to use the tmp directory as a cache (intentionally or not) during cascaded WFS requests. MapServer stores the GML returned from the remote service in the tmp directory. Subsequent WFS requests for the same layer are not forwarded to the remote server (nothing in Apache logs on the remote); however, deleting the contents of the tmp directory causes the next WFS request to be forwarded to the remote service. Interestingly, the file names in the tmp directory appear to be related to the request: similar requests (same layers, different bbox) cause the same file name to be created in the tmp. Regards, Geoff This was with 4.6.2. Haven't tried it yet with 4.8.1. Is it possible a bug has crept in? Regards, Tim Bowden > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Emmanuel BELO [mailto:emmanuel.belo at microgis.ch] > Sent: Wednesday, March 01, 2006 4:15 PM > To: Ed McNierney > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Mapserver caching and map > generation > > To clarify my first question: > > If a client requests an image that doesn't yet exists in the cache, > the application will launch the process to create the file (I suppose > with a pseudo-random filename) and give back the link. That's ok. > Now imagine you have 5 more requests for the same image (same query) > while the first one is still being processed. > Will the application detect that and queue these requests for a while > to give them the link created by the first once it has finished, or > will it just launch five other processes, just as if it was other > queries, resulting of the creation of 6 images that will be exactly > the same (result of the same query) ? > I tend to imagine that actually the second case will happen, but maybe > is there some kind of a "query caching mechanism" that may take care > of that and avoid duplicated work... > > regards, > > eb > > Ed McNierney wrote: > > Emmanuel - > > > > Each map request generates a unique image, and the URL for that > > image > is > > returned to the client browser requesting that image. Since your > > Web server can process several HTTP requests at one time, there can > > be several MapServer instances all running at the same time. > > > > There will be some interaction with the disk subsystem on which the > > temporary images are written, and from which they are read by the > client > > browsers. Some disk systems can handle multiple simultaneous > read/write > > requests better than others. Nothing will break - but some disk > > subsystems will take longer than others to respond when multiple > > reads and writes are happening. > > > > In case you haven't discovered it yet, using MapServer as a WMS > > server or in the CGI "mode=map" mode, the output image is written > > directly to the client and no temporary files are written to disk. > > > > - Ed > > > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > ed at topozone.com > > (978) 251-4242 > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > > Behalf Of Emmanuel BELO > > Sent: Wednesday, March 01, 2006 12:26 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Mapserver caching and map generation > > > > Hello, > > > > after cleaning the cache, mapserver generates the new images on > request. > > > > What happens if 10 users ask for the same map during the generation > > of the first map? Are their request delayed or will 10 processes in > > parallel be initiated? > > > > Best regards, > > > > Emmanuel BELO > > emmanuel.belo at microgis.ch -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From plists at PROMETHEUS.ORG.YU Fri Mar 3 09:40:31 2006 From: plists at PROMETHEUS.ORG.YU (Attila Csipa) Date: Fri, 3 Mar 2006 18:40:31 +0100 Subject: shapes to MySQL In-Reply-To: <20060303153831.56814.qmail@web54215.mail.yahoo.com> Message-ID: On Friday 03 March 2006 16:38, Ker Nulov wrote: > draw layers using MySQL access? I need it to improove > speed. My application uses mapscript with php. Shapefiles are likely the fastest storage for small/generic data, moving to mysql (or any other database for that matter) will probably not speed up things on itself unless you're really using some DBMS specific feature. From lfilak at MEDINACO.ORG Fri Mar 3 09:49:25 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Fri, 3 Mar 2006 12:49:25 -0500 Subject: MapServer incompatibility with RHEL4/CE NTOS4.2 In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7DB4@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: Doyon, Jean-Francois writes: > OK, we're running 32 bit CentOS 4.2, on Xeon processors. > > I'm thinking there's some problem with the newer glibc or something like > that, which would also explain the crashes I was having at first on a > specific map? > > J.F. J.F., I guess that takes the EM64T out of the equation. Do you mean you actually compiled the version of mapserver you have on the RHEL box against an older coy of GD and you're sure it's using the older version of the libs at runtime? Lowell From lfilak at MEDINACO.ORG Fri Mar 3 10:05:38 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Fri, 3 Mar 2006 13:05:38 -0500 Subject: MapServer incompatibility with RHEL4/CE NTOS4.2 In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7DB7@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: Doyon, Jean-Francois writes: > I tried moving the RedHat 7.3 binary that I know works fine to a CentOS 4.2 > system, and wham, the problem appeared! > > I also investigated trying to run multiple glibc's to see if that might be > the problem (i.e. install the RedHat 7.3 glibc on CentOS for the use of > MapServer), but that looks like quite the nightmare to try out ... J.F., Wouldn't the binary from the 7.3 box still be using the gd libs on the RHEL box though, or did you statically links things.? Lowell From kernu11 at YAHOO.COM Fri Mar 3 10:10:25 2006 From: kernu11 at YAHOO.COM (Ker Nulov) Date: Fri, 3 Mar 2006 12:10:25 -0600 Subject: shapes to MySQL In-Reply-To: <200603031840.31843.plists@prometheus.org.yu> Message-ID: Ohh, well, my shapefile 78 MB and it has 140,000 polygons. displaying 1km of zoom taks 1 sec, this is too much for our application. I bet a query in MySQL will be faster. --- Attila Csipa escribi?: > On Friday 03 March 2006 16:38, Ker Nulov wrote: > > draw layers using MySQL access? I need it to > improove > > speed. My application uses mapscript with php. > > Shapefiles are likely the fastest storage for > small/generic data, moving to > mysql (or any other database for that matter) will > probably not speed up > things on itself unless you're really using some > DBMS specific feature. > > ___________________________________________________________ Do You Yahoo!? La mejor conexi?n a Internet y 2GB extra a tu correo por $100 al mes. http://net.yahoo.com.mx From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Fri Mar 3 10:11:57 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Fri, 3 Mar 2006 13:11:57 -0500 Subject: MapServer incompatibility with RHEL4/CE NTOS4.2 Message-ID: No, the linking is dynamic so you just move the executable, and it starts using the libs on the current box. There was some incompatibility between libraries, so I had to remove PNG and SSL/Crypto support from the excutable I was compiling on 7.3 before moving it over. Like I said, it ran fine on CentOS, using CentOS' libs, but the "bug" was still there ... -----Original Message----- From: Lowell.Filak [mailto:lfilak at medinaco.org] Sent: March 3, 2006 1:06 PM To: Doyon, Jean-Francois Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with RHEL4/CE NTOS4.2 Doyon, Jean-Francois writes: > I tried moving the RedHat 7.3 binary that I know works fine to a > CentOS 4.2 system, and wham, the problem appeared! > > I also investigated trying to run multiple glibc's to see if that > might be the problem (i.e. install the RedHat 7.3 glibc on CentOS for > the use of MapServer), but that looks like quite the nightmare to try out ... J.F., Wouldn't the binary from the 7.3 box still be using the gd libs on the RHEL box though, or did you statically links things.? Lowell From lfilak at MEDINACO.ORG Fri Mar 3 10:20:03 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Fri, 3 Mar 2006 13:20:03 -0500 Subject: MapServer incompatibility with RHEL4/CE NTOS4.2 In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7DB9@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: Doyon, Jean-Francois writes: > No, the linking is dynamic so you just move the executable, and it starts > using the libs on the current box. There was some incompatibility between > libraries, so I had to remove PNG and SSL/Crypto support from the excutable > I was compiling on 7.3 before moving it over. Like I said, it ran fine on > CentOS, using CentOS' libs, but the "bug" was still there ... Then if the libs aren't the same the bug is in the libs, no? This doesn't point to gcc being the problem. Lowell From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Fri Mar 3 10:22:50 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Fri, 3 Mar 2006 13:22:50 -0500 Subject: MapServer incompatibility with RHEL4/CE NTOS4.2 Message-ID: Correct, I never suspected the compiler. I suspect the mapserver code, for some reason, isn't interacting properly with glibc ... I'm going to try and explore the possibility of chrooting mapserver and linking it against a separate older glibc. CentOS comes with glibc 2.3.4 ... If I can install/compile link mapserver and it's dependencies on CentOS against glibc 2.2.5 (the version from RH 7.3) ... Then that might give us a clue as to what the problem is. That's a fair emount of work though, so I'm going to revert back to my older servers for now :( J.F. -----Original Message----- From: Lowell.Filak [mailto:lfilak at medinaco.org] Sent: March 3, 2006 1:20 PM To: Doyon, Jean-Francois Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with RHEL4/CE NTOS4.2 Doyon, Jean-Francois writes: > No, the linking is dynamic so you just move the executable, and it > starts using the libs on the current box. There was some > incompatibility between libraries, so I had to remove PNG and > SSL/Crypto support from the excutable I was compiling on 7.3 before > moving it over. Like I said, it ran fine on CentOS, using CentOS' libs, but the "bug" was still there ... Then if the libs aren't the same the bug is in the libs, no? This doesn't point to gcc being the problem. Lowell From lfilak at MEDINACO.ORG Fri Mar 3 10:33:05 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Fri, 3 Mar 2006 13:33:05 -0500 Subject: MapServer incompatibility with RHEL4/CE NTOS4.2 In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7DBB@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: Doyon, Jean-Francois writes: > Correct, I never suspected the compiler. I suspect the mapserver code, for > some reason, isn't interacting properly with glibc ... > > I'm going to try and explore the possibility of chrooting mapserver and > linking it against a separate older glibc. CentOS comes with glibc 2.3.4 > ... If I can install/compile link mapserver and it's dependencies on CentOS > against glibc 2.2.5 (the version from RH 7.3) ... Then that might give us a > clue as to what the problem is. That's a fair emount of work though, so I'm > going to revert back to my older servers for now :( J.F., Sorry, typo. How do you know it's not the gd libs on the RHEL box causing the problem (or even ft)? Is the version of gd on the 7.3 box the same as the CentOS box? Lowell From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Fri Mar 3 10:36:28 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Fri, 3 Mar 2006 13:36:28 -0500 Subject: MapServer incompatibility with RHEL4/CE NTOS4.2 Message-ID: As mentionned in the initial post, tried a wide variety of combinations of libraries and mapserver :) At the root though, a given combination of mapserver/libs works on RH 7.3, the exact same combination on CentOS doesn't. (GD 2.0.33 with FreeType 2.0.9 and MapServer 4.8.1). I suppose it is possible GD or FreeType have problems on CentOS, but I'm hoping/guessing google would've told me about it by now, I've had no luck trying to find out about similar problems, they're hard to describe in a search engine :) I'm going ot try taking the mapserver from RH7.3 and "chrooting" it on CentOS, and see how that works, I'll let you know :) J.F. -----Original Message----- From: Lowell.Filak [mailto:lfilak at medinaco.org] Sent: March 3, 2006 1:33 PM To: Doyon, Jean-Francois Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with RHEL4/CE NTOS4.2 Doyon, Jean-Francois writes: > Correct, I never suspected the compiler. I suspect the mapserver > code, for some reason, isn't interacting properly with glibc ... > > I'm going to try and explore the possibility of chrooting mapserver > and linking it against a separate older glibc. CentOS comes with > glibc 2.3.4 ... If I can install/compile link mapserver and it's > dependencies on CentOS against glibc 2.2.5 (the version from RH 7.3) > ... Then that might give us a clue as to what the problem is. That's > a fair emount of work though, so I'm going to revert back to my older > servers for now :( J.F., Sorry, typo. How do you know it's not the gd libs on the RHEL box causing the problem (or even ft)? Is the version of gd on the 7.3 box the same as the CentOS box? Lowell From lfilak at MEDINACO.ORG Fri Mar 3 10:45:57 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Fri, 3 Mar 2006 13:45:57 -0500 Subject: MapServer incompatibility with RHEL4/CE NTOS4.2 In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7DBD@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: Doyon, Jean-Francois writes: > As mentionned in the initial post, tried a wide variety of combinations of > libraries and mapserver :) > > At the root though, a given combination of mapserver/libs works on RH 7.3, > the exact same combination on CentOS doesn't. > > (GD 2.0.33 with FreeType 2.0.9 and MapServer 4.8.1). > > I suppose it is possible GD or FreeType have problems on CentOS, but I'm > hoping/guessing google would've told me about it by now, I've had no luck > trying to find out about similar problems, they're hard to describe in a > search engine :) > > I'm going ot try taking the mapserver from RH7.3 and "chrooting" it on > CentOS, and see how that works, I'll let you know :) J.F., I did see you mention that in your original post, but considering the amount of work it is to do that I guess I was hoping that you hadn't. Either way you/this-thread do seem to have narrowed down how to reproduce the problem without requiring specific hardware. Of course without any solution as of yet ;-) Lowell From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Fri Mar 3 10:57:00 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Fri, 3 Mar 2006 13:57:00 -0500 Subject: MapServer incompatibility with RHEL4/CE NTOS4.2 Message-ID: I've got a few more tricks in my back pocket :) 1) chrooted environment 2) using LD_PRELOAD Keep your fingers crossed! J.F. -----Original Message----- From: Lowell.Filak [mailto:lfilak at medinaco.org] Sent: March 3, 2006 1:46 PM To: Doyon, Jean-Francois Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with RHEL4/CE NTOS4.2 Doyon, Jean-Francois writes: > As mentionned in the initial post, tried a wide variety of > combinations of libraries and mapserver :) > > At the root though, a given combination of mapserver/libs works on RH > 7.3, the exact same combination on CentOS doesn't. > > (GD 2.0.33 with FreeType 2.0.9 and MapServer 4.8.1). > > I suppose it is possible GD or FreeType have problems on CentOS, but > I'm hoping/guessing google would've told me about it by now, I've had > no luck trying to find out about similar problems, they're hard to > describe in a search engine :) > > I'm going ot try taking the mapserver from RH7.3 and "chrooting" it on > CentOS, and see how that works, I'll let you know :) J.F., I did see you mention that in your original post, but considering the amount of work it is to do that I guess I was hoping that you hadn't. Either way you/this-thread do seem to have narrowed down how to reproduce the problem without requiring specific hardware. Of course without any solution as of yet ;-) Lowell From woodbri at SWOODBRIDGE.COM Fri Mar 3 10:57:20 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 3 Mar 2006 13:57:20 -0500 Subject: shapes to MySQL In-Reply-To: <20060303181025.66735.qmail@web54204.mail.yahoo.com> Message-ID: Ker Nulov wrote: > Ohh, well, my shapefile 78 MB and it has 140,000 > polygons. displaying 1km of zoom taks 1 sec, this is > too much for our application. I bet a query in MySQL > will be faster. What makes you think that? Where IS the performance going to? Search for the objects, reading them from disk, of rendering the objects? If you don't know then you are probably trying to optimize the wrong thing. Many of us have been working with mapserver for years and we have looked into these questions and I can tell you (as Attila did) that shapefile are the fastest. Do all you shapefiles have spatial indexes *.qix files associated with them? Start there. To answer your question, NO, you can not put your shapefiles in MySQL and render then via mapserver. You can put them in postGIS, but they will be slower than shapefiles. -Steve W. > --- Attila Csipa escribi?: > > >>On Friday 03 March 2006 16:38, Ker Nulov wrote: >> >>>draw layers using MySQL access? I need it to >> >>improove >> >>>speed. My application uses mapscript with php. >> >>Shapefiles are likely the fastest storage for >>small/generic data, moving to >>mysql (or any other database for that matter) will >>probably not speed up >>things on itself unless you're really using some >>DBMS specific feature. >> >> > > > > > > > > ___________________________________________________________ > Do You Yahoo!? > La mejor conexi?n a Internet y 2GB extra a tu correo por $100 al mes. http://net.yahoo.com.mx > From kernu11 at YAHOO.COM Fri Mar 3 11:08:49 2006 From: kernu11 at YAHOO.COM (Ker Nulov) Date: Fri, 3 Mar 2006 13:08:49 -0600 Subject: shapes to MySQL In-Reply-To: <44089190.20109@swoodbridge.com> Message-ID: I guess the time is wasted on searching, not drawing (because small shapefiles are drown very fast) and I thought .shx is the Shapefile index, I have no .qix index at all and I have hunderds of shapefiles. This is what I have: -rwxr-xr-x 1 root root 1687086 Feb 17 08:27 Cdmexm_region.dbf -rwxr-xr-x 1 root root 187 Feb 17 08:27 Cdmexm_region.prj -rwxr-xr-x 1 root root 78934876 Feb 17 08:27 Cdmexm_region.shp -rwxr-xr-x 1 root root 1124780 Feb 17 08:27 Cdmexm_region.shx Is there a open source utility to create .qix? Never heard of them, looks interesting. --- Stephen Woodbridge escribi?: > Ker Nulov wrote: > > Ohh, well, my shapefile 78 MB and it has 140,000 > > polygons. displaying 1km of zoom taks 1 sec, this > is > > too much for our application. I bet a query in > MySQL > > will be faster. > > What makes you think that? Where IS the performance > going to? Search for > the objects, reading them from disk, of rendering > the objects? If you > don't know then you are probably trying to optimize > the wrong thing. > > Many of us have been working with mapserver for > years and we have looked > into these questions and I can tell you (as Attila > did) that shapefile > are the fastest. Do all you shapefiles have spatial > indexes *.qix files > associated with them? Start there. > > To answer your question, NO, you can not put your > shapefiles in MySQL > and render then via mapserver. You can put them in > postGIS, but they > will be slower than shapefiles. > > -Steve W. > > > --- Attila Csipa > escribi?: > > > > > >>On Friday 03 March 2006 16:38, Ker Nulov wrote: > >> > >>>draw layers using MySQL access? I need it to > >> > >>improove > >> > >>>speed. My application uses mapscript with php. > >> > >>Shapefiles are likely the fastest storage for > >>small/generic data, moving to > >>mysql (or any other database for that matter) will > >>probably not speed up > >>things on itself unless you're really using some > >>DBMS specific feature. > >> > >> > > > > > > > > > > > > > > > > > ___________________________________________________________ > > > Do You Yahoo!? > > La mejor conexi?n a Internet y 2GB extra a > tu correo por $100 al mes. http://net.yahoo.com.mx > > > > ___________________________________________________________ Do You Yahoo!? La mejor conexi?n a Internet y 2GB extra a tu correo por $100 al mes. http://net.yahoo.com.mx From punkish at EIDESIS.ORG Fri Mar 3 11:18:44 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Fri, 3 Mar 2006 13:18:44 -0600 Subject: shapes to MySQL In-Reply-To: <44089190.20109@swoodbridge.com> Message-ID: Stephen Woodbridge wrote: > Ker Nulov wrote: >> Ohh, well, my shapefile 78 MB and it has 140,000 >> polygons. displaying 1km of zoom taks 1 sec, this is >> too much for our application. I bet a query in MySQL >> will be faster. > Ker, The problem with your assertion is that someone might take you up on your bet ;-) > To answer your question, NO, you can not put your shapefiles in MySQL and render then via mapserver. You can put them in postGIS, but they will be slower than shapefiles. > > -Steve W. As Steve W and Attila suggested, just stuffing your data into a database is not going to make the process faster. Actually, you _can_ put shape data into MySQL (as Attila can testify), but PostGIS is the more well-supported way, and well indexed shapefiles really are the fastest. You might want to benchmark your code. You might want to create new scaled and tiled versions of your data, so only relevant portions are munged by MapServer. You might want to benchmark your code (I said that already). Really. Only that will tell you what is it that is actually slowing things down. -- Puneet Kishor From woodbri at SWOODBRIDGE.COM Fri Mar 3 11:30:51 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 3 Mar 2006 14:30:51 -0500 Subject: shapes to MySQL In-Reply-To: <20060303190849.40543.qmail@web54215.mail.yahoo.com> Message-ID: Ker Nulov wrote: > I guess the time is wasted on searching, not drawing > (because small shapefiles are drown very fast) and I > thought .shx is the Shapefile index, I have no .qix > index at all and I have hunderds of shapefiles. This > is what I have: > -rwxr-xr-x 1 root root 1687086 Feb 17 08:27 > Cdmexm_region.dbf > -rwxr-xr-x 1 root root 187 Feb 17 08:27 > Cdmexm_region.prj > -rwxr-xr-x 1 root root 78934876 Feb 17 08:27 > Cdmexm_region.shp > -rwxr-xr-x 1 root root 1124780 Feb 17 08:27 > Cdmexm_region.shx > > Is there a open source utility to create .qix? Never > heard of them, looks interesting. shptree is the utility and it is part of the mapserver build -Steve > --- Stephen Woodbridge > escribi?: > > >>Ker Nulov wrote: >> >>>Ohh, well, my shapefile 78 MB and it has 140,000 >>>polygons. displaying 1km of zoom taks 1 sec, this >> >>is >> >>>too much for our application. I bet a query in >> >>MySQL >> >>>will be faster. >> >>What makes you think that? Where IS the performance >>going to? Search for >>the objects, reading them from disk, of rendering >>the objects? If you >>don't know then you are probably trying to optimize >>the wrong thing. >> >>Many of us have been working with mapserver for >>years and we have looked >>into these questions and I can tell you (as Attila >>did) that shapefile >>are the fastest. Do all you shapefiles have spatial >>indexes *.qix files >>associated with them? Start there. >> >>To answer your question, NO, you can not put your >>shapefiles in MySQL >>and render then via mapserver. You can put them in >>postGIS, but they >>will be slower than shapefiles. >> >>-Steve W. >> >> >>> --- Attila Csipa >> >>escribi?: >> >>> >>>>On Friday 03 March 2006 16:38, Ker Nulov wrote: >>>> >>>> >>>>>draw layers using MySQL access? I need it to >>>> >>>>improove >>>> >>>> >>>>>speed. My application uses mapscript with php. >>>> >>>>Shapefiles are likely the fastest storage for >>>>small/generic data, moving to >>>>mysql (or any other database for that matter) will >>>>probably not speed up >>>>things on itself unless you're really using some >>>>DBMS specific feature. >>>> >>>> >>> >>> >>> >>> >>> >>> >>> >>> >> > ___________________________________________________________ > >>>Do You Yahoo!? >>>La mejor conexi?n a Internet y 2GB extra a >> >>tu correo por $100 al mes. http://net.yahoo.com.mx >> >> > > > > > > > ___________________________________________________________ > Do You Yahoo!? > La mejor conexi?n a Internet y 2GB extra a tu correo por $100 al mes. http://net.yahoo.com.mx > > From beproject06 at YAHOO.COM Fri Mar 3 11:46:35 2006 From: beproject06 at YAHOO.COM (Apeksha Bhambhani) Date: Fri, 3 Mar 2006 11:46:35 -0800 Subject: To develop a plug-in for Wikipedia Message-ID: Hii all , We have developed a web mapping application . And would like to integrate it with Wikipedia . Our mapping application uses MapServer,Php/Mapscript , as the scripting language and MySql as the database. Our application accepts user clicks on the image provided by us .And points are plotted .We have developed a Php file to accomplish this. Could anybody tell us how to go about for creating a plug-in for Wikipedia ? Thanks a lot for your help, Apeksha --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.wolf at GMAIL.COM Fri Mar 3 12:42:19 2006 From: christian.wolf at GMAIL.COM (Christian Wolf) Date: Fri, 3 Mar 2006 14:42:19 -0600 Subject: How to edit your PostGIS data Message-ID: Since a lot of people are using Mapserver together with a PostGIS db I'm curious as how you maintain your data? It seems there are no Tools to visually add/delete/edit spacial data in a safe and reliable way. OpenJUMP, uDig, QGis, GDV Spatial Command, they all show data alright, but come editing, they all more or less fail. Is the only way to maintain your spatial data up to date by editing shapefiles (or similar) and importing them to the db? I'm just looking for a reliable way of users adding/modifying a line or splitting a ploygon once in while. Do I really have to my own tool to access the db directly? How do YOU handle this? I'm sure I'm not the only one with these tasks at hand. From pcreso at PCRESO.COM Fri Mar 3 13:30:39 2006 From: pcreso at PCRESO.COM (Brent Wood) Date: Fri, 3 Mar 2006 13:30:39 -0800 Subject: shapes to MySQL In-Reply-To: <4408996B.4030809@swoodbridge.com> Message-ID: > To answer your question, NO, you can not put your shapefiles in MySQL > and render then via mapserver. You can put them in postGIS, but they > will be slower than shapefiles. Umm... by my (totally subjective & unauthoritative) benchmarks, if you have a spatial & aspatial query applied to a properly indexed dataset in PostGIS, it can be faster than a shapefile. A shapefile was faster for plotting the entire dataset, but, for example, a national elevation contour dataset (20m intervals) is faster than the same data as shapefiles when zooming & the zoom layers have different sets of contours (from all at 20m when zoomed in to 100, to 200, to 500m when zoomed right out). I haven't tried as much with query layers, but when working with a dataset of millions of records, the PostGIS data seems more responsive, quite significantly in some cases. Generally I find that the larger the dataset & the more complex the query/filter you apply, the more PostGIS is likely to be faster. Conversely, for smaller & simpler datasets/filters, shapefiles are indeed faster. Given the nature of databases & their overhead this is about what I'd expect. So just to check that my impressions are not colored too much by my expectations, do others agree with this or not? Brent Wood From mike.merrett at WHITEHORSE.CA Fri Mar 3 13:36:32 2006 From: mike.merrett at WHITEHORSE.CA (Merrett, Mike) Date: Fri, 3 Mar 2006 13:36:32 -0800 Subject: When drawing a shape is it supposed to use the layer transparency? Message-ID: Hi: I have a queryByAttributes result which gives me a shapeobj -- if I then try to draw that shape it does draw but it is not transparent like the layer is set to Should it? (is this a feature or a bug) Below is the code I am using ( assume a zoom in to show the features at a scale which show that it isn't transparent - I cut out that part for clarity) $oParcelLayer = $gpoMap->getLayerByName("City Streets" ); $y = @$oParcelLayer->queryByAttributes('street_name', $the_street, MS_SINGLE ); // assume it found one (real code has an if) $oResult = $oParcelLayer->getResult(0 ); $oParcelLayer->open(); $oShape = $oParcelLayer->getShape($oResult->tileindex, $oResult->shapeindex ); $img = $gpoMap->draw(); $rrr = $oShape->draw( $gpoMap, $oParcelLayer, $img); From candalt at ONLINE.NO Fri Mar 3 13:39:58 2006 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Fri, 3 Mar 2006 22:39:58 +0100 Subject: Mapserver on Linux vs Windows Message-ID: Hi there We have a server running Mapserver on Linux (Red Hat 8). Is is used to generate maps, mainly from shapefiles. But also some layers from Postgis/WMS. To do this we use PHP and MapScrip... We are now considering the possibility to port our solution from Linux to Windows, mainly du to the fact that maintaining new versions of Mapserver on Windows are quite easy with the pre-built binary package that exists for Windows (no compiling is needed). Does anybody have any experience on how a Mapserver solution works on Windows compared to Linux. I am mainly thinking about speed and performance? Does Mapserver work faster on Linux? Regards Sture From szekeres.tamas at FREEMAIL.HU Fri Mar 3 13:57:40 2006 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Fri, 3 Mar 2006 15:57:40 -0600 Subject: C# mapscript... Message-ID: John, The parser and lexer files are not precompiled with the CVS version. You have at least 2 options to do: 1. Use the nightly build instead containing theese files precompiled http://cvs.gis.umn.edu/dist/nightly.tar.gz 2. Download flex and bison gnuwin32.sourceforge.net/packages/flex.htm gnuwin32.sourceforge.net/packages/bison.htm and generate theese files from mapparser.y and maplexer.l Best Regards, Tamas On Fri, 3 Mar 2006 09:41:13 -0600, John Cole wrote: >Tamas, > Starting into this and got the following compile error on mapservers >Makefile.vc > >maputil.c(123) : fatal error C1083: Cannot open include file: 'mapparser.h': >No >such file or directory >NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio >8\VC\BIN\c l.EXE"' : return code '0x2' >Stop. > >I've downloaded rel-4-8-1 from cvs. Is there a file missing? > >Thanks, > >John Cole > >-----Original Message----- >From: Tamas Szekeres [mailto:szekeres.tamas at FREEMAIL.HU] >Sent: Tuesday, February 28, 2006 2:54 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU; John Cole >Subject: Re: C# mapscript... > >John, > >As far as I know precompiled binaries targeting the .NET framework 2.0 is >not avaiable to download. However I suggest to compile one from the source. >It is highly recommended to compile mapserver and mapscript with the same >compiler version VS2005 in this case. You should enable only the options >will be actually used in order to minimize the dependency from high number >of libraries. > >Both of the current stable release (4.8.1) and the CVS version is known >compilable >with VS2005 with the following notes: > >1. Pre download and compile all of subsequent libraries to be used along >with mapserver according to >http://mapserver.gis.umn.edu/docs/howto/win32_compiling >2. edit nmake.opt to enable the libraries >3. Heck regex according to >http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1651 >4. To compile mapserver use Visual Studio 2005 Command Prompt issue >nmake -f makefile.vc in the mapserver directory. >5. To compile mapscript C# download swigwin-1.3.28 edit makefile.vc in the >mapscript/csharp directory and give your swigwin path >6. To eliminate high number of warnings you should define >_CRT_SECURE_NO_DEPRECATE and _CRT_NONSTDC_NO_DEPRECATE like this: > >OPTFLAGS = /nologo /MD /Zi /D_CRT_SECURE_NO_DEPRECATE >/D_CRT_NONSTDC_NO_DEPRECATE $(WARNING_LEVEL) $(DEBUG) > >7. If you are not using the CVS version modify owsrequest.i according to >http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1677 > >8. Use nmake -f makefile.vc in the mapscript/csharp directory > >To test your compilation: > >1. Create a new VS project >2. Add reference to mapscript_csharp.dll >3. Add reference to Microsoft Visual >Studio8\VC\redist\x86\Microsoft.VC80.CRT\Microsoft.VC80.CRT.manifest >4. Use mapscript objects within your code >5. Compile your solution >6. Copy the compiled mapscript.dll, libmap.dll and the dependent dll-s into >your app directory. >7. Run > >If your are not using the IDE (eg. to try the samples like drawmap.exe) you >should create a proper manifest file along with your .exe declaring a >reference to the CRT assemblies, otherwise the program will not run. > >I hope not to forget anything. > > >If it is required precompiled binaries could be created for download, but >one should define the possible reasonable variations of the required library >usage. > >Best Regards, > >Tamas Szekeres > > > >On Tue, 28 Feb 2006 08:44:39 -0600, John Cole wrote: > >>Hello, >> Is someone maintaining a binary of C# mapscript (.net 2.0)? >> >>Thanks, >> >>John Cole From lfilak at MEDINACO.ORG Fri Mar 3 14:03:19 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Fri, 3 Mar 2006 17:03:19 -0500 Subject: Mapserver on Linux vs Windows In-Reply-To: <31892267.1141421998584.JavaMail.adm-moff@moffice11.nsc.no> Message-ID: [iso-8859-1] Sture Dings?yr writes: > Hi there > > We have a server running Mapserver on Linux (Red Hat 8). Is is used to generate maps, mainly from shapefiles. But also some layers from Postgis/WMS. To do this we use PHP and MapScrip... > > We are now considering the possibility to port our solution from Linux to Windows, mainly du to the fact that maintaining new versions of Mapserver on Windows are quite easy with the pre-built binary package that exists for Windows (no compiling is needed). > > Does anybody have any experience on how a Mapserver solution works on Windows compared to Linux. I am mainly thinking about speed and performance? > > Does Mapserver work faster on Linux? Sture, Sorry, no direct experience there, but have you checked into the FGS linux installer? Lowell From woodbri at SWOODBRIDGE.COM Fri Mar 3 14:25:47 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 3 Mar 2006 17:25:47 -0500 Subject: shapes to MySQL In-Reply-To: <20060303213039.58015.qmail@web33210.mail.mud.yahoo.com> Message-ID: Brent Wood wrote: >>To answer your question, NO, you can not put your shapefiles in MySQL >>and render then via mapserver. You can put them in postGIS, but they >>will be slower than shapefiles. > Brent, Right you are, I should not have been so authoritative in my statement. There are always exceptions to the rules. But I believe in this case, the right thing to do for this user is to use shptree on his shapefiles because his problem is rendering and he does not have spatial indexes. If he still has a performance problem, then make a stab at using a database, but I believe that using MySQL will not help his problem in anyway. I love Postgres and use it a lot, but I have not found it to be faster in MOST general rendering cases, but it is the only GOOD solution for doing thematic maps. Yes, Postgres generally out performance shapefiles for queries if you have to query any large amount of data because it has more options for indexes. -Steve > > Umm... by my (totally subjective & unauthoritative) benchmarks, if you have a > spatial & aspatial query applied to a properly indexed dataset in PostGIS, it > can be faster than a shapefile. A shapefile was faster for plotting the entire > dataset, but, for example, a national elevation contour dataset (20m intervals) > is faster than the same data as shapefiles when zooming & the zoom layers have > different sets of contours (from all at 20m when zoomed in to 100, to 200, to > 500m when zoomed right out). > > I haven't tried as much with query layers, but when working with a dataset of > millions of records, the PostGIS data seems more responsive, quite > significantly in some cases. > > Generally I find that the larger the dataset & the more complex the > query/filter you apply, the more PostGIS is likely to be faster. Conversely, > for smaller & simpler datasets/filters, shapefiles are indeed faster. > > Given the nature of databases & their overhead this is about what I'd expect. > > > So just to check that my impressions are not colored too much by my > expectations, do others agree with this or not? > > > > Brent Wood > From steve.lime at DNR.STATE.MN.US Fri Mar 3 14:50:25 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 3 Mar 2006 16:50:25 -0600 Subject: When drawing a shape is it supposed to use the layer transparency? Message-ID: Transparency is a layer-level parameter so drawing a shape directly won't work. You have a couple of options: - use a layer with transparency defined for drawing (this need not be the parcel layer) and add the shape to that layer, then draw - grab a unique attribue value from the result shape and use is to set a an expression in the parcel layer to hilight the shape, that is one class for selected features and one for everything else - you might even be able to combine the attribute query and drawing using class expressions depending on the backend data source The first option is likely the fastest... Steve >>> "Merrett, Mike" 03/03/06 3:36 PM >>> Hi: I have a queryByAttributes result which gives me a shapeobj -- if I then try to draw that shape it does draw but it is not transparent like the layer is set to Should it? (is this a feature or a bug) Below is the code I am using ( assume a zoom in to show the features at a scale which show that it isn't transparent - I cut out that part for clarity) $oParcelLayer = $gpoMap->getLayerByName("City Streets" ); $y = @$oParcelLayer->queryByAttributes('street_name', $the_street, MS_SINGLE ); // assume it found one (real code has an if) $oResult = $oParcelLayer->getResult(0 ); $oParcelLayer->open(); $oShape = $oParcelLayer->getShape($oResult->tileindex, $oResult->shapeindex ); $img = $gpoMap->draw(); $rrr = $oShape->draw( $gpoMap, $oParcelLayer, $img); From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Fri Mar 3 15:09:33 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Fri, 3 Mar 2006 18:09:33 -0500 Subject: SUCCESS!! RE: [UMN_MAPSERVER-USERS] MapServer incompatibility wit h RHEL4/CE NTOS4.2 Message-ID: Phew! Took 5 hours, but I figured it out :) The problem seems to be with FreeType compiled on CentOS 4.2 ... Using LD_LIBRARY_PATH and a mapserver binary from RH7.3, I got a working solution that involved moving ALL the library dependencies from 7.3 to CentOS. Once that was done, I removed one by one the dependencies, switching to the OS provided ones instead, check the maps at every step. Once I managed to eliminate ALL remaining libraries, I was left with freetype. The freetype binary lib from 7.3 moved to CentOS works fine. The freetype provided by CentOS does not. If you compile freetype 2.0.9 (the version on 7.3) on CentOS however, the problem appears! For some reason, compiling freetype on CentOS results in the symptoms I was showing. I also saw these problems appear on my development platform mind you which is still 7.3. There I was using freetype 2.1.10 for a while, and it was causing problems ... Once I backtracked to the RPM one (2.0.9) things came back to normal. I'm thinking RedHat was doing something to the code for their RPM's and stopped doing it, like maybe that hitting thing that's in the library but disabled by default? J.F. -----Original Message----- From: Lowell.Filak [mailto:lfilak at medinaco.org] Sent: March 3, 2006 1:46 PM To: Doyon, Jean-Francois Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with RHEL4/CE NTOS4.2 Doyon, Jean-Francois writes: > As mentionned in the initial post, tried a wide variety of > combinations of libraries and mapserver :) > > At the root though, a given combination of mapserver/libs works on RH > 7.3, the exact same combination on CentOS doesn't. > > (GD 2.0.33 with FreeType 2.0.9 and MapServer 4.8.1). > > I suppose it is possible GD or FreeType have problems on CentOS, but > I'm hoping/guessing google would've told me about it by now, I've had > no luck trying to find out about similar problems, they're hard to > describe in a search engine :) > > I'm going ot try taking the mapserver from RH7.3 and "chrooting" it on > CentOS, and see how that works, I'll let you know :) J.F., I did see you mention that in your original post, but considering the amount of work it is to do that I guess I was hoping that you hadn't. Either way you/this-thread do seem to have narrowed down how to reproduce the problem without requiring specific hardware. Of course without any solution as of yet ;-) Lowell From erik1969 at MAILHAVEN.COM Fri Mar 3 14:34:51 2006 From: erik1969 at MAILHAVEN.COM (Erik Baluba) Date: Sat, 4 Mar 2006 05:34:51 +0700 Subject: Mapserver on Linux vs Windows Message-ID: Hi, I don't know for sure but my guess is that performance differences are neglectable for most. Using the binary distributions on Windows certainly is very convenient, especially since DM Solutions provides precompiled PHP/Mapscript binaries regularly. But when using precompiled binaries you are stuck with whatever they compiled into it, so before you make your move make sure they provide what you need. Example, neither Oracle nor iconv support is available in the binaries from DM Solution. Howard Butler's Kitchen Sink binaries provide all 3rd party modules, except for PHP Mapscript :-/. erik "Sture Dings?yr" wrote in message news:31892267.1141421998584.JavaMail.adm-moff at moffice11.nsc.no... > Hi there > > We have a server running Mapserver on Linux (Red Hat 8). Is is used to generate maps, mainly from shapefiles. But also some layers from Postgis/WMS. To do this we use PHP and MapScrip... > > We are now considering the possibility to port our solution from Linux to Windows, mainly du to the fact that maintaining new versions of Mapserver on Windows are quite easy with the pre-built binary package that exists for Windows (no compiling is needed). > > Does anybody have any experience on how a Mapserver solution works on Windows compared to Linux. I am mainly thinking about speed and performance? > > Does Mapserver work faster on Linux? > > Regards Sture > From ed at TOPOZONE.COM Fri Mar 3 16:07:09 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 3 Mar 2006 19:07:09 -0500 Subject: Mapserver on Linux vs Windows Message-ID: Sture - There is no reason to think that running MapServer on Linux or Windows - given comparable hardware - will produce different results. I have run MapServer for several years on both platforms, and I have no reason to think one is any better or worse than the other. You do need to think very carefully about the hardware platform you're using, if it's not the same machine. Differences in the disk subsystem and data storage design, as well as in the amount of available RAM, can make very substantial differences in MapServer performance. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +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 Sture Dings?yr Sent: Friday, March 03, 2006 4:40 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver on Linux vs Windows Hi there We have a server running Mapserver on Linux (Red Hat 8). Is is used to generate maps, mainly from shapefiles. But also some layers from Postgis/WMS. To do this we use PHP and MapScrip... We are now considering the possibility to port our solution from Linux to Windows, mainly du to the fact that maintaining new versions of Mapserver on Windows are quite easy with the pre-built binary package that exists for Windows (no compiling is needed). Does anybody have any experience on how a Mapserver solution works on Windows compared to Linux. I am mainly thinking about speed and performance? Does Mapserver work faster on Linux? Regards Sture From tim.bowden at WESTNET.COM.AU Fri Mar 3 19:08:16 2006 From: tim.bowden at WESTNET.COM.AU (tim) Date: Sat, 4 Mar 2006 11:08:16 +0800 Subject: Mapserver on Linux vs Windows In-Reply-To: <31892267.1141421998584.JavaMail.adm-moff@moffice11.nsc.no> Message-ID: On Fri, 2006-03-03 at 22:39 +0100, Sture Dings?yr wrote: > Hi there > > We have a server running Mapserver on Linux (Red Hat 8). Is is used to generate maps, mainly from shapefiles. But also some layers from Postgis/WMS. To do this we use PHP and MapScrip... > > We are now considering the possibility to port our solution from Linux to Windows, mainly du to the fact that maintaining new versions of Mapserver on Windows are quite easy with the pre-built binary package that exists for Windows (no compiling is needed). > > Does anybody have any experience on how a Mapserver solution works on Windows compared to Linux. I am mainly thinking about speed and performance? > > Does Mapserver work faster on Linux? > > Regards Sture We have been testing mapserver on both linux (rhel 3.x) and windows (xp pro) for performance testing. I can't remember the exact results (someone else on our team did the actual testing) but on high end hardware (Dell dual xeon 3ghz 4gb ram) ms on linux approached 50% higher load than on windows. I'll have to check next week just how the test were done but the decision was clearly in favour of linux. I do know that neither windows or linux were optimised and the feeling was we could extend the linux performance considerably (by doing things like not running X etc). HTH, Tim Bowden -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From tim.bowden at WESTNET.COM.AU Sat Mar 4 00:20:40 2006 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Sat, 4 Mar 2006 16:20:40 +0800 Subject: Mapserver WFS Request Caching In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDA16@ptolemy.topozone.com> Message-ID: On Fri, 2006-03-03 at 12:05 -0500, Ed McNierney wrote: > Tim - > > First, let's not confuse Emmanuel - the scenario you describe is a > completely different situation than what he was asking about. The > discussion here isn't relevant to his problem, and my earlier replies > are not relevant to this problem! Yes, that's true. > > You're reporting that WFS requests made by MapServer to a remote WFS > server have their responses cached locally, and subsequent requests use > the cached replies. Is that correct? Yes. > I'm a little confused by your > last point - if the request is for a similar set of layers but a > different BBOX, are you saying the (wrong) cached data is used, or does > the correct data get used, overwriting the cached file? Thanks. > > - Ed > If the second request is for the same set of layers, the old cached data is returned. No attempt is made to pass the request to the remote agency server unless we manually delete the gml file in the tmp directory on the central server and re-do the request on the central server. At what point does mapserver delete the data in the tmp directory? I was a bit surprised to see it left there after the original request was completed. Tim Bowden > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of tim > Sent: Friday, March 03, 2006 9:40 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Mapserver caching and map generation > > On Wed, 2006-03-01 at 16:19 -0500, Ed McNierney wrote: > > Emmanuel - > > > > The client ALWAYS requests an image that's "not in the cache". It's > > not a cache. It's a temporary directory where MapServer writes files. > > > If five clients request the same image from MapServer five times in > > one second, MapServer will ALWAYS create five different temporary > > files, and will return five unique URLs to five different files - even > > > though they're all the same image. > > > > - Ed > > I have seen this appear to happen when 'chaining' wfs requests. The > setup is as follows: > > > > Central wfs/wms server -----> agency wms/wfs server ---> sde server > > The central server 'chains' to multiple agency servers that point to the > sde server of the respective data custodian. When a request on a layer > is made against the central server it then makes a request on the > relevant agency server which returns the required gml which is stored in > a temp file on the central server. So far, so good. We can turn off > the agency box and make the same request of the central server and get > the same response back, despite the agency box being turned off. > > This behaviour was picked up by one of our testers helping evaluate > various ogc servers for a large whole of govt implementation. > > His report to me: > Tim, > MapServer appears to use the tmp directory as a cache (intentionally > or not) during cascaded WFS requests. MapServer stores the GML returned > from the remote service in the tmp directory. Subsequent WFS requests > for the same layer are not forwarded to the remote server (nothing in > Apache logs on the remote); however, deleting the contents of the tmp > directory causes the next WFS request to be forwarded to the remote > service. > > Interestingly, the file names in the tmp directory appear to be related > to the request: similar requests (same layers, different bbox) cause the > same file name to be created in the tmp. > > Regards, Geoff > > This was with 4.6.2. Haven't tried it yet with 4.8.1. Is it possible a > bug has crept in? > > Regards, > Tim Bowden > > > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > ed at topozone.com > > (978) 251-4242 > > > > -----Original Message----- > > From: Emmanuel BELO [mailto:emmanuel.belo at microgis.ch] > > Sent: Wednesday, March 01, 2006 4:15 PM > > To: Ed McNierney > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Mapserver caching and map > > generation > > > > To clarify my first question: > > > > If a client requests an image that doesn't yet exists in the cache, > > the application will launch the process to create the file (I suppose > > with a pseudo-random filename) and give back the link. That's ok. > > Now imagine you have 5 more requests for the same image (same query) > > while the first one is still being processed. > > Will the application detect that and queue these requests for a while > > to give them the link created by the first once it has finished, or > > will it just launch five other processes, just as if it was other > > queries, resulting of the creation of 6 images that will be exactly > > the same (result of the same query) ? > > I tend to imagine that actually the second case will happen, but maybe > > > is there some kind of a "query caching mechanism" that may take care > > of that and avoid duplicated work... > > > > regards, > > > > eb > > > > Ed McNierney wrote: > > > Emmanuel - > > > > > > Each map request generates a unique image, and the URL for that > > > image > > is > > > returned to the client browser requesting that image. Since your > > > Web server can process several HTTP requests at one time, there can > > > be several MapServer instances all running at the same time. > > > > > > There will be some interaction with the disk subsystem on which the > > > temporary images are written, and from which they are read by the > > client > > > browsers. Some disk systems can handle multiple simultaneous > > read/write > > > requests better than others. Nothing will break - but some disk > > > subsystems will take longer than others to respond when multiple > > > reads and writes are happening. > > > > > > In case you haven't discovered it yet, using MapServer as a WMS > > > server or in the CGI "mode=map" mode, the output image is written > > > directly to the client and no temporary files are written to disk. > > > > > > - Ed > > > > > > Ed McNierney > > > President and Chief Mapmaker > > > TopoZone.com / Maps a la carte, Inc. > > > 73 Princeton Street, Suite 305 > > > North Chelmsford, MA 01863 > > > ed at topozone.com > > > (978) 251-4242 > > > > > > -----Original Message----- > > > From: UMN MapServer Users List > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > On > > > Behalf Of Emmanuel BELO > > > Sent: Wednesday, March 01, 2006 12:26 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: [UMN_MAPSERVER-USERS] Mapserver caching and map generation > > > > > > Hello, > > > > > > after cleaning the cache, mapserver generates the new images on > > request. > > > > > > What happens if 10 users ask for the same map during the generation > > > of the first map? Are their request delayed or will 10 processes in > > > parallel be initiated? > > > > > > Best regards, > > > > > > Emmanuel BELO > > > emmanuel.belo at microgis.ch > -- > Mapforge Geospatial > Level 3/ 267 St Georges Tce > Perth 6000 > Western Australia -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From hydromap at GMAIL.COM Sat Mar 4 03:08:44 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Sat, 4 Mar 2006 22:08:44 +1100 Subject: Mapserver on Linux vs Windows In-Reply-To: <1141441696.3912.8.camel@localhost.localdomain> Message-ID: There is also the issue of Apache not recommended for production use on Win32, at least it was the last time i checked.... On 3/4/06, tim wrote: > On Fri, 2006-03-03 at 22:39 +0100, Sture Dings?yr wrote: > > Hi there > > > > We have a server running Mapserver on Linux (Red Hat 8). Is is used to generate maps, mainly from shapefiles. But also some layers from Postgis/WMS. To do this we use PHP and MapScrip... > > > > We are now considering the possibility to port our solution from Linux to Windows, mainly du to the fact that maintaining new versions of Mapserver on Windows are quite easy with the pre-built binary package that exists for Windows (no compiling is needed). > > > > Does anybody have any experience on how a Mapserver solution works on Windows compared to Linux. I am mainly thinking about speed and performance? > > > > Does Mapserver work faster on Linux? > > > > Regards Sture > > We have been testing mapserver on both linux (rhel 3.x) and windows (xp > pro) for performance testing. I can't remember the exact results > (someone else on our team did the actual testing) but on high end > hardware (Dell dual xeon 3ghz 4gb ram) ms on linux approached 50% higher > load than on windows. I'll have to check next week just how the test > were done but the decision was clearly in favour of linux. I do know > that neither windows or linux were optimised and the feeling was we > could extend the linux performance considerably (by doing things like > not running X etc). > > HTH, > Tim Bowden > -- > Mapforge Geospatial > Level 3/ 267 St Georges Tce > Perth 6000 > Western Australia > From ed at TOPOZONE.COM Sat Mar 4 04:59:47 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sat, 4 Mar 2006 07:59:47 -0500 Subject: Mapserver on Linux vs Windows Message-ID: Tim - "neither windows or linux were optimised" But doesn't that largely invalidate the test? It's very easy to set up poorly-tuned versions of Windows or Linux. If you simply install both systems out-of-the-box, you're comparing apples and oranges. This is especially true if you're comparing Red Hat Enterprise Linux vs. Windows XP Pro, a desktop operating system! XP Pro is most certainly not tuned out-of-the-box to be a server platform. If you have actual test data it would be helpful to publish it so others can try to reproduce it. But I will continue to insist that there is FAR more performance variation in other aspects of the system than in the simple choice of which operating system is used. - 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 tim Sent: Friday, March 03, 2006 10:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapserver on Linux vs Windows On Fri, 2006-03-03 at 22:39 +0100, Sture Dings?yr wrote: > Hi there > > We have a server running Mapserver on Linux (Red Hat 8). Is is used to generate maps, mainly from shapefiles. But also some layers from Postgis/WMS. To do this we use PHP and MapScrip... > > We are now considering the possibility to port our solution from Linux to Windows, mainly du to the fact that maintaining new versions of Mapserver on Windows are quite easy with the pre-built binary package that exists for Windows (no compiling is needed). > > Does anybody have any experience on how a Mapserver solution works on Windows compared to Linux. I am mainly thinking about speed and performance? > > Does Mapserver work faster on Linux? > > Regards Sture We have been testing mapserver on both linux (rhel 3.x) and windows (xp pro) for performance testing. I can't remember the exact results (someone else on our team did the actual testing) but on high end hardware (Dell dual xeon 3ghz 4gb ram) ms on linux approached 50% higher load than on windows. I'll have to check next week just how the test were done but the decision was clearly in favour of linux. I do know that neither windows or linux were optimised and the feeling was we could extend the linux performance considerably (by doing things like not running X etc). HTH, Tim Bowden -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From s_jubeh at YAHOO.COM Sat Mar 4 10:55:30 2006 From: s_jubeh at YAHOO.COM (salah jubeh) Date: Sat, 4 Mar 2006 10:55:30 -0800 Subject: palette Message-ID: Hi Is there is any way to apply RGB Palette to a single channel image. I.e i want to see colors.. , not gray image. I used OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE RGB EXTENSION "gif" END but it did not work --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim.bowden at WESTNET.COM.AU Sat Mar 4 15:18:16 2006 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Sun, 5 Mar 2006 07:18:16 +0800 Subject: Mapserver on Linux vs Windows In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDA1F@ptolemy.topozone.com> Message-ID: On Sat, 2006-03-04 at 07:59 -0500, Ed McNierney wrote: > Tim - > > "neither windows or linux were optimised" > > But doesn't that largely invalidate the test? Yes and no. This was the first round of testing (done before I joined the team) designed to point the direction in which our efforts should be focused. It was functional as much as performance testing. Our client (large govt dept) specified open source where possible & ogc compliance, hence mapserver and geoserver were selected for testing. Both were tested on windows and linux. Geoserver suffered from stability and accuracy issues under heavy load. We used jserver to ramp up the load till it broke. Mapserver in the end didn't break, just got bogged down when the load was too heavy. OGC compliance was poor with both (at least as far as we were able to do the tests). We are currently doing a new round of testing focused on ms (geoserver was dropped when our earlier test results were confirmed) with everything optimised to identify outstanding issues (of which there are a few). We will probably be able to publish a summary of our testing if our client gives permission. Tim Bowden > It's very easy to set up poorly-tuned versions of Windows or Linux. If you simply install both systems out-of-the-box, you're comparing apples and oranges. This is especially true if you're comparing Red Hat Enterprise Linux vs. Windows XP Pro, a desktop operating system! XP Pro is most certainly not tuned out-of-the-box to be a server platform. > > If you have actual test data it would be helpful to publish it so others can try to reproduce it. But I will continue to insist that there is FAR more performance variation in other aspects of the system than in the simple choice of which operating system is used. > > - 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 tim > Sent: Friday, March 03, 2006 10:08 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Mapserver on Linux vs Windows > > On Fri, 2006-03-03 at 22:39 +0100, Sture Dings?yr wrote: > > Hi there > > > > We have a server running Mapserver on Linux (Red Hat 8). Is is used to generate maps, mainly from shapefiles. But also some layers from Postgis/WMS. To do this we use PHP and MapScrip... > > > > We are now considering the possibility to port our solution from Linux to Windows, mainly du to the fact that maintaining new versions of Mapserver on Windows are quite easy with the pre-built binary package that exists for Windows (no compiling is needed). > > > > Does anybody have any experience on how a Mapserver solution works on Windows compared to Linux. I am mainly thinking about speed and performance? > > > > Does Mapserver work faster on Linux? > > > > Regards Sture > > We have been testing mapserver on both linux (rhel 3.x) and windows (xp > pro) for performance testing. I can't remember the exact results (someone else on our team did the actual testing) but on high end hardware (Dell dual xeon 3ghz 4gb ram) ms on linux approached 50% higher load than on windows. I'll have to check next week just how the test were done but the decision was clearly in favour of linux. I do know that neither windows or linux were optimised and the feeling was we could extend the linux performance considerably (by doing things like not running X etc). > > HTH, > Tim Bowden > -- > Mapforge Geospatial > Level 3/ 267 St Georges Tce > Perth 6000 > Western Australia -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From krempl at SMART-GIS.COM Sun Mar 5 05:12:59 2006 From: krempl at SMART-GIS.COM (Martin Krempl) Date: Sun, 5 Mar 2006 14:12:59 +0100 Subject: MapServer on Linux Message-ID: Hi, I'v got some problem with run MapServer on Linux. I completed installing of MapServere successfull. When I type in web browser *http://localhost/cgi-bin/mapserv *on the screen it will show *QUERY_STRING is set, but empty*. I know that's OK, test is successfull. But when I type http://localhost/cgi-bin/mapserv?map=myFirst.map on the screen I will see this error message: * fined.: Unable to access file. bel()*. This message will show everytime and doesn't matter if the file myFirst.map exists or not. Have anyone some idea how can I fix this bug. Thank you Martin From tim.bowden at WESTNET.COM.AU Sun Mar 5 05:54:56 2006 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Sun, 5 Mar 2006 21:54:56 +0800 Subject: MapServer on Linux In-Reply-To: <440AE3DB.8030602@smart-gis.com> Message-ID: On Sun, 2006-03-05 at 14:12 +0100, Martin Krempl wrote: > Hi, > I'v got some problem with run MapServer on Linux. I completed > installing of MapServere successfull. When I type in web browser > *http://localhost/cgi-bin/mapserv > *on the screen it will show *QUERY_STRING is set, but empty*. I know > that's OK, test is successfull. > > But when I type > http://localhost/cgi-bin/mapserv?map=myFirst.map on the screen I will > see this error message: * > fined.: Unable to access file. bel()*. > This message will show everytime and doesn't matter if the file > myFirst.map exists or not. Have anyone some idea how can I fix this bug. > > Thank you Martin Martin, have you checked file ownership and permissions? Assuming you are using apache and it runs as user apache, set the files owner to apache: chown apache:apache myFirst.map HTH, Tim Bowden -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From andrea.antonello at GMAIL.COM Sun Mar 5 05:57:09 2006 From: andrea.antonello at GMAIL.COM (Andrea Antonello) Date: Sun, 5 Mar 2006 14:57:09 +0100 Subject: JGrass 2.0 released Message-ID: Sorry for crossposting. ______________________________________________________________________________ 05. March 2006 JGrass Development Team JGrass 2.0 Release Candidate 1 - Free Java Geographic Information System Today the JGrass Development team released the release candidate 1 for JGrass 2.0 - "Trento". JGrass is Free Software under GNU GPL, the sources of which can be found at https://sourceforge.net/projects/jgrass JGrass is maintained at: HydroloGIS, Italy, at http://www.hydrologis.com were all the information regarding the project is kept. It is a Java based GIS built on top of the open source GIS GRASS. JGRASS aims to bring GRASS to production environments as opposed to the research environment. The improved user interface and scripting facility will allow an application oriented user environment focused on the task to be performed. This new version brings enhancements and new features: - first vector support following the geotools approach - visualization of geometry and attributes - visualization of Shapefiles - visualization of Autocad dwg file (< 2000) - visualization of Postgis layers - vector data preview - first scripting engine - console enhancement with command completion - enhanced native GRASS command execution - r.proj - r.dem2contour - v.contour2dem - queries with d.what.vect - check on the used virtual machine and bugfixes: - finally bugfix for the 1/2 pixel shift in raster display - bugfix for missing mapscale - bugs in interactive modules that tent to freeze the gui solved - integer reading bug with novalues - bugfix for the refresh button freezing References JGrass (Java Geographic Resources Analysis and Support System) web site with software download: https://sourceforge.net/project/showfiles.php?group_id=144497 -- ____________________________________________________________________________ HydroloGIS - Environmental Safety Modelling www.hydrologis.com Andrea Antonello Environmental Engineer mobile: +393288497722 "Let it be as much a great honour to take as to give learning, if you want to be called wise." Skuggsja' - The King's mirror - 1240 Reykjavik ____________________________________________________________________________ From saurin782 at GMAIL.COM Sun Mar 5 07:03:32 2006 From: saurin782 at GMAIL.COM (saurin shah) Date: Sun, 5 Mar 2006 18:03:32 +0300 Subject: This is awesome! Message-ID: Hey, Take a fun quiz to find out about colleges and financial aid and you can get a $25 Amazon.com gift card. It's easy. http://friends.destination-u.com/?r=IRFUIQUXUgIwB2kIBSkB&i=gmail&ml=MAPSERVER-USERS at lists.umn.edu&p=5&z=1&tc=1 From ed at TOPOZONE.COM Sun Mar 5 09:45:12 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sun, 5 Mar 2006 12:45:12 -0500 Subject: Mapserver on Linux vs Windows Message-ID: Tim - Sounds like a good plan. The biggest variable (assuming the hardware is the same) is the layout of your data sources. It's important to think those through to get the best performance. The other thing to keep in mind is where your shop's expertise lies. Do you have equal skills and experience with both operating systems? If not, it is likely to be a good idea to stick with what you know. That's how I generally advise users who ask "should I use Windows or Linux"? I have yet to see an apples-to-apples comparison that showed any significant difference between the two operating systems. But the effort and expense associated with learning or trying to manage an OS you don't know probably outweigh any potential performance differences. - 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 Tim Bowden Sent: Saturday, March 04, 2006 6:18 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapserver on Linux vs Windows On Sat, 2006-03-04 at 07:59 -0500, Ed McNierney wrote: > Tim - > > "neither windows or linux were optimised" > > But doesn't that largely invalidate the test? Yes and no. This was the first round of testing (done before I joined the team) designed to point the direction in which our efforts should be focused. It was functional as much as performance testing. Our client (large govt dept) specified open source where possible & ogc compliance, hence mapserver and geoserver were selected for testing. Both were tested on windows and linux. Geoserver suffered from stability and accuracy issues under heavy load. We used jserver to ramp up the load till it broke. Mapserver in the end didn't break, just got bogged down when the load was too heavy. OGC compliance was poor with both (at least as far as we were able to do the tests). We are currently doing a new round of testing focused on ms (geoserver was dropped when our earlier test results were confirmed) with everything optimised to identify outstanding issues (of which there are a few). We will probably be able to publish a summary of our testing if our client gives permission. Tim Bowden > It's very easy to set up poorly-tuned versions of Windows or Linux. If you simply install both systems out-of-the-box, you're comparing apples and oranges. This is especially true if you're comparing Red Hat Enterprise Linux vs. Windows XP Pro, a desktop operating system! XP Pro is most certainly not tuned out-of-the-box to be a server platform. > > If you have actual test data it would be helpful to publish it so others can try to reproduce it. But I will continue to insist that there is FAR more performance variation in other aspects of the system than in the simple choice of which operating system is used. > > - 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 tim > Sent: Friday, March 03, 2006 10:08 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Mapserver on Linux vs Windows > > On Fri, 2006-03-03 at 22:39 +0100, Sture Dings?yr wrote: > > Hi there > > > > We have a server running Mapserver on Linux (Red Hat 8). Is is used to generate maps, mainly from shapefiles. But also some layers from Postgis/WMS. To do this we use PHP and MapScrip... > > > > We are now considering the possibility to port our solution from Linux to Windows, mainly du to the fact that maintaining new versions of Mapserver on Windows are quite easy with the pre-built binary package that exists for Windows (no compiling is needed). > > > > Does anybody have any experience on how a Mapserver solution works on Windows compared to Linux. I am mainly thinking about speed and performance? > > > > Does Mapserver work faster on Linux? > > > > Regards Sture > > We have been testing mapserver on both linux (rhel 3.x) and windows > (xp > pro) for performance testing. I can't remember the exact results (someone else on our team did the actual testing) but on high end hardware (Dell dual xeon 3ghz 4gb ram) ms on linux approached 50% higher load than on windows. I'll have to check next week just how the test were done but the decision was clearly in favour of linux. I do know that neither windows or linux were optimised and the feeling was we could extend the linux performance considerably (by doing things like not running X etc). > > HTH, > Tim Bowden > -- > Mapforge Geospatial > Level 3/ 267 St Georges Tce > Perth 6000 > Western Australia -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From siki at AGT.BME.HU Sun Mar 5 13:14:28 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sun, 5 Mar 2006 20:14:28 -0100 Subject: MapServer on Linux {Scanned} In-Reply-To: <440AE3DB.8030602@smart-gis.com> Message-ID: Hi Martin, Some tips: check mapserv executable from the shell mapserv -v check shared libraries ldd mapserv use shp2img to check your map file without webserver, you may use debug functionality of shp2img Simplify your map file to a simple layer I hope this helps you Zoltan On Sun, 5 Mar 2006, Martin Krempl wrote: > Hi, > I'v got some problem with run MapServer on Linux. I completed > installing of MapServere successfull. When I type in web browser > *http://localhost/cgi-bin/mapserv > *on the screen it will show *QUERY_STRING is set, but empty*. I know > that's OK, test is successfull. > > But when I type > http://localhost/cgi-bin/mapserv?map=myFirst.map on the screen I will > see this error message: * > fined.: Unable to access file. bel()*. > This message will show everytime and doesn't matter if the file > myFirst.map exists or not. Have anyone some idea how can I fix this bug. > > Thank you Martin > From Tom.Kralidis at EC.GC.CA Sun Mar 5 13:22:25 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Sun, 5 Mar 2006 16:22:25 -0500 Subject: GetLegendGraphic and sld Message-ID: Hi, Does MapServer's OGC:WMS GetLegendGraphic support changing of legend text in addition to the actual graphic mark? We're able to do the latter via SLD, but we can't seem to change the legend text. We're using latest CVS. Test URL: http://devgeo.cciw.ca/cgi-bin/mapserv/hydromet?version=1.1.1&service=WMS&request=GetLegendGraphic&layer=hydromet_latest_water_levels&format=image/jpeg&sld=http://devgeo.cciw.ca/ms_tmp/kyw_sld.xml Under the hood, the data from the OGC:WMS is a point layer, with the following CLASS block: CLASS NAME "Water Levels" SYMBOL 'circle' SIZE 3 COLOR 0 0 255 END ...so I'm not sure whether something has to be enabled from the server end to enable the SLD to specify titles, or if the SLD is off. Please advise. Thanks ..Tom From steveb at BUNDABERG.QLD.GOV.AU Sun Mar 5 14:56:59 2006 From: steveb at BUNDABERG.QLD.GOV.AU (Steven Bowden) Date: Mon, 6 Mar 2006 08:56:59 +1000 Subject: MapServer incompatibility with RHEL4/CE NTOS4.2 In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7DB7@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: No Problems with mapserver-4.6.2 on CentOs 4.2 here on a Dual Code AMD 64 running 32bit; I am using proj-4.4.9 gd-2.0.33 gdal-1.3.1 geos-2.2.1 mapserver-4.6.2 php-4.4.0 gcc 3.4.4 glibc-2.3.4-2.13 freetype-2.1.9-1 Mapserver config ./configure --with-postgis --without-tiff --with-jpeg --with-threads --with-proj=/usr/local --with-gdal=/usr/local/bin/gdal-config --with-php=../php-4.4.0 --with-gd=/usr/local --with-freetype=/usr/bin --with-ogr=/usr/local/bin/gdal-config --with-wms --with-wfs --with-wcs --with-geos=/usr/local/bin/geos-config --enable-debug Regards Steve On Sat, 4 Mar 2006 2:58 am, Doyon, Jean-Francois wrote: > I tried moving the RedHat 7.3 binary that I know works fine to a CentOS 4.2 > system, and wham, the problem appeared! > > I also investigated trying to run multiple glibc's to see if that might be > the problem (i.e. install the RedHat 7.3 glibc on CentOS for the use of > MapServer), but that looks like quite the nightmare to try out ... > > J.F. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Doyon, Jean-Francois > Sent: March 3, 2006 10:28 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with RHEL4/CE > NTOS4.2 > > OK, we're running 32 bit CentOS 4.2, on Xeon processors. > > I'm thinking there's some problem with the newer glibc or something like > that, which would also explain the crashes I was having at first on a > specific map? > > J.F. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Doyon, Jean-Francois > Sent: March 3, 2006 9:56 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with RHEL4/CE > NTOS4.2 > > Lowell, > > Indeed! These are 64 bit CPU's! (Intel Xeon, Dell PowerEdge 1850's) > > And we're running CentOS, though I'm not sure whether it's the i386 > version, or the x86_64 one, I'll look into that. > > I've also replicated the problem on a Pentium 4 machine though, which is 32 > bit, though with what intel calls EM64T technology. > > Could it be the HyperThreading? > > J.F. > > -----Original Message----- > From: Lowell.Filak [mailto:lfilak at medinaco.org] > Sent: March 3, 2006 9:41 AM > To: Doyon, Jean-Francois > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with > RHEL4/CENTOS4.2 > > Doyon, Jean-Francois writes: > > Hello, > > > > OK well I've tracked down the source of my problem to the operating > > system itself it seems. > > > > Regardless of the versions/combinations of mapserver/gd/freetype I > > use, there are definite visual rendering problems when on this OS. On > > RedHat 7.3, everything is fine! > > > > Example: > > > > http://atlas.gc.ca/family-good.gif > > http://atlas.gc.ca/family-bad.gif > > > > Note the small dot that appears on the symbol? > > > > Also: > > > > http://atlas.gc.ca/the-market-good.gif > > http://atlas.gc.ca/the-market-bad.gif > > > > Notice how on the bad version, a bunch of point symbols are missing? > > > > I tried various combinations of: > > > > MapServer 4.6.1 and 4.8.1 > > FreeType 2.0.9 and 2.1.9 > > GD 2.0.28 and 2.0.33 > > > > A given combination works on 7.3, but not on CentOS. > > > > Without luck. The problem with the strange shape of the symbols ( > > http://atlas.gc.ca/mapserver-symbol-problem.png ) seemes to be related > > to the version of FreeType for some reason? FreeType 2.0.9 acts as we > > expect it to, FreeType 2.1.9 does not. There may be cumulative > > effects > > also. > > > CentOS 4.2 uses GCC 3.4.4 and GLIBC 2.3.4. I had gotten a horrible > > crash message at some point with a version of mapserver on this OS > > (http://lists.umn.edu/cgi-bin/wa?A2=ind0602&L=mapserver-users&P=R60802 > > &I=-3& X=106ECE1CAE6B73E23F), but upgrading from 4.6.1 to 4.8.1 had > > fixed it. This was related to memory allocation. Could something > > related to that be causing this? Turns out I've got 4.6.1 running on > > this platform now, but that really didn't help. > > > > I'm out of ideas :( Anyone? > > J.F., > > Is the 7.3 box a 32-bit and the RHEL box a 64-bit kernel by any chance (you > may have already stated that in your previous "double free detected.." post > but I don't remember). Not that I know of a particular fix, but we have > certainly had strange problems here also. > > Lowell From Miles.Jordan at AAD.GOV.AU Sun Mar 5 17:25:16 2006 From: Miles.Jordan at AAD.GOV.AU (Miles Jordan) Date: Mon, 6 Mar 2006 12:25:16 +1100 Subject: Using SLD with GetLegendGraphic Message-ID: > "Note here that you need to put a class1 inside the Rule > element so that a class name is created from the SLD and therefore a > correct legend image." (wms server howto) Oh I see, inside the Rule element hey! I'll give that a go - thanks very much. Miles Jordan Applications Developer The Australian Antarctic Data Centre ___________________________________________________________________________ Australian Antarctic Division - Commonwealth of Australia IMPORTANT: This transmission is intended for the addressee only. If you are not the intended recipient, you are notified that use or dissemination of this communication is strictly prohibited by Commonwealth law. If you have received this transmission in error, please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and DELETE the message. Visit our web site at http://www.aad.gov.au/ ___________________________________________________________________________ From wbr at DETEMOBIL.DE Mon Mar 6 04:05:12 2006 From: wbr at DETEMOBIL.DE (wbr) Date: Mon, 6 Mar 2006 13:05:12 +0100 Subject: TIFF Raster Images - UTM32,33 Message-ID: Hi All, I'm using the mapserver for several solutions, and now i got raster images for Germany (1:50000 UTM32 and UTM33). I have only little experience in using large raster maps in mapserver. My Question: i got the files as tiff with corresponding tfw files and on the bounding of utm 32+33 the tiff files overlap. Is this usable in mapserver (tileindex etc.) ? Please can somebody point me out ? Thank you, Wolfgang Brungert -- T-Mobile Deutschland GmbH Program and Budget Management (TRPD13-D) Roddestr. 12 48153 M?nster Phone: +49 251 977 4142 Fax: +49 251 977 4149 email: wolfgang.brungert at t-mobile.de PGP Fingerprint: B3F8 D368 5EEF 3873 3C4F 423C 171E F217 7CA4 3467 From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Mar 6 04:52:06 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Mon, 6 Mar 2006 04:52:06 -0800 Subject: TIFF Raster Images - UTM32,33 Message-ID: Hi, this should be useable. Just create a tileindex using gdaltindex. The sequence in the dbf file of the tileindex will determine the sequence in which Mapserver will draw the rasters. See the raster HOWTO: http://mapserver.gis.umn.edu/docs/howto/raster_data Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens wbr Verzonden: maandag 6 maart 2006 13:05 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] TIFF Raster Images - UTM32,33 Hi All, I'm using the mapserver for several solutions, and now i got raster images for Germany (1:50000 UTM32 and UTM33). I have only little experience in using large raster maps in mapserver. My Question: i got the files as tiff with corresponding tfw files and on the bounding of utm 32+33 the tiff files overlap. Is this usable in mapserver (tileindex etc.) ? Please can somebody point me out ? Thank you, Wolfgang Brungert -- T-Mobile Deutschland GmbH Program and Budget Management (TRPD13-D) Roddestr. 12 48153 M?nster Phone: +49 251 977 4142 Fax: +49 251 977 4149 email: wolfgang.brungert at t-mobile.de PGP Fingerprint: B3F8 D368 5EEF 3873 3C4F 423C 171E F217 7CA4 3467 Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From warmerdam at POBOX.COM Mon Mar 6 05:23:51 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 6 Mar 2006 08:23:51 -0500 Subject: TIFF Raster Images - UTM32,33 In-Reply-To: <440C2578.3010402@detemobil.de> Message-ID: wbr wrote: > Hi All, > > I'm using the mapserver for several solutions, and now i got raster > images for Germany (1:50000 UTM32 and UTM33). I have only little > experience in using large raster maps in mapserver. > > My Question: > > i got the files as tiff with corresponding tfw files and on the bounding > of utm 32+33 the tiff files overlap. > > Is this usable in mapserver (tileindex etc.) ? Wolfgang, This will work pretty easily if you create two tileindexes. One for all the UTM 32 images, and another for all the UTM 33 images. Then setup one layer per zone, and set the projection information appropriately per layer. You will also need to ensure you set your map projection is set appropriately so that mapserver knows how to reproject everything. 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 OSGF, http://osgeo.org From tkirstine at JDBARNES.COM Mon Mar 6 05:34:37 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Mon, 6 Mar 2006 08:34:37 -0500 Subject: palette In-Reply-To: <20060304185530.99047.qmail@web52703.mail.yahoo.com> Message-ID: I believe gif can only be created as a single band 8bit image. Try GTiff or jpeg. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of salah jubeh Sent: Saturday, March 04, 2006 1:56 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] palette Hi Is there is any way to apply RGB Palette to a single channel image. I.e i want to see colors.. , not gray image. I used OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE RGB EXTENSION "gif" END but it did not work ---------------------------------------------------------------------------- -- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. -------------- next part -------------- An HTML attachment was scrubbed... URL: From baas at SPEERIT.NL Mon Mar 6 05:37:17 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Mon, 6 Mar 2006 14:37:17 +0100 Subject: Edit a custom layer via ASP? Message-ID: Hi all, Once again, a question from me. After running a query through mapserver, I'd like to "highlight" the results somehow (like searching for addresses). My thought is to add these items to an empty layer. My question is: what's the best way to do this? I don't want to use any database. Is it possible to use mapserver as an object in ASP? Or can I give the EXE file commands? I don't have a clue where to start. Any help would be greatly appreciated! Regards, Jelmer Baas From assefa at DMSOLUTIONS.CA Mon Mar 6 05:44:34 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 6 Mar 2006 08:44:34 -0500 Subject: GetLegendGraphic and sld In-Reply-To: <2576812186CDD411BF1500508B6DCE950D17EEB1@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Tom, If you set the name parameter inside the rule, It will be used to set the class name on the layer. The class name is the one that is used as text in the legend. (Bug 1451 is realted to this). Later, Kralidis,Tom [Burlington] wrote: > > Hi, > > Does MapServer's OGC:WMS GetLegendGraphic support changing of legend text in addition to the actual graphic mark? We're able to do the latter via SLD, but we can't seem to change the legend text. > > We're using latest CVS. > > Test URL: > > http://devgeo.cciw.ca/cgi-bin/mapserv/hydromet?version=1.1.1&service=WMS&request=GetLegendGraphic&layer=hydromet_latest_water_levels&format=image/jpeg&sld=http://devgeo.cciw.ca/ms_tmp/kyw_sld.xml > > Under the hood, the data from the OGC:WMS is a point layer, with the following CLASS block: > > CLASS > NAME "Water Levels" > SYMBOL 'circle' > SIZE 3 > COLOR 0 0 255 > END > > ...so I'm not sure whether something has to be enabled from the server end to enable the SLD to specify titles, or if the SLD is off. > > Please advise. > > Thanks > > ..Tom -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From pmoen at STATE.ND.US Mon Mar 6 05:46:22 2006 From: pmoen at STATE.ND.US (Paul Moen) Date: Mon, 6 Mar 2006 07:46:22 -0600 Subject: Timeframe for Mapserver 4.8.2 Message-ID: Does anybody know where to find a timeframe for the release of 4.8.2? I need the patch for queryByAttributes, bug #1629 and was wondering how long before the release. If it is going to be a long time, I see there is a patch but I haven't found any information on how to apply the patch. Does anyone know where to find a how to or instructions for applying patches for bugs? Paul From Tom.Kralidis at EC.GC.CA Mon Mar 6 05:49:23 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 6 Mar 2006 08:49:23 -0500 Subject: GetLegendGraphic and sld Message-ID: Worked! Forgot about this one. Thx -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Mon 06-Mar-06 08:44 To: Kralidis,Tom [Burlington] Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] GetLegendGraphic and sld Tom, If you set the name parameter inside the rule, It will be used to set the class name on the layer. The class name is the one that is used as text in the legend. (Bug 1451 is realted to this). Later, Kralidis,Tom [Burlington] wrote: > > Hi, > > Does MapServer's OGC:WMS GetLegendGraphic support changing of legend text in addition to the actual graphic mark? We're able to do the latter via SLD, but we can't seem to change the legend text. > > We're using latest CVS. > > Test URL: > > http://devgeo.cciw.ca/cgi-bin/mapserv/hydromet?version=1.1.1&service=WMS&request=GetLegendGraphic&layer=hydromet_latest_water_levels&format=image/jpeg&sld=http://devgeo.cciw.ca/ms_tmp/kyw_sld.xml > > Under the hood, the data from the OGC:WMS is a point layer, with the following CLASS block: > > CLASS > NAME "Water Levels" > SYMBOL 'circle' > SIZE 3 > COLOR 0 0 255 > END > > ...so I'm not sure whether something has to be enabled from the server end to enable the SLD to specify titles, or if the SLD is off. > > Please advise. > > Thanks > > ..Tom -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From fabio.dovidio at PLANETEK.IT Mon Mar 6 06:10:01 2006 From: fabio.dovidio at PLANETEK.IT (Fabio D' Ovidio) Date: Mon, 6 Mar 2006 15:10:01 +0100 Subject: libmap.dll Message-ID: Hi list, I'd like to know what libmap.dll does. I know what other libraries do, but wich is the interaction between libmap and them ? Thank you very much. ******************************************************************************************** Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** From woodbri at SWOODBRIDGE.COM Mon Mar 6 06:13:34 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 6 Mar 2006 09:13:34 -0500 Subject: libmap.dll In-Reply-To: <440C50C9.7261.15741EF@fabio.dovidio.planetek.it> Message-ID: libmap.dll is the mapserver code in a dll. Fabio D' Ovidio wrote: > Hi list, > I'd like to know what libmap.dll does. I know what other libraries do, but wich is the > interaction between libmap and them ? > Thank you very much. > ******************************************************************************************** > > > Fabio D'Ovidio > WebGIS Staff > Planetek Italia Srl > via Massaua, 12 - 70123 Bari - Italy > web : http ://www.planetek.it > e-mail : dovidio at planetek.it > > ******************************************************************************************** > From tim.bowden at WESTNET.COM.AU Mon Mar 6 06:26:36 2006 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Mon, 6 Mar 2006 22:26:36 +0800 Subject: Mapserver on Linux vs Windows In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDA21@ptolemy.topozone.com> Message-ID: On Sun, 2006-03-05 at 12:45 -0500, Ed McNierney wrote: > Tim - > > Sounds like a good plan. The biggest variable (assuming the hardware is the same) is the layout of your data sources. It's important to think those through to get the best performance. > Ed, Could you elaborate on the 'layout of your data sources' bit. All our data is in various sde boxes. Given the dispersed nature of our data sets (geographically and custodianship) we don't have much leeway as to how we can set things up; All sde boxes are behind on site mapserver ogc client boxes which in turn act as ogc servers to a central mapserserver which will be accessible to authorised users. > The other thing to keep in mind is where your shop's expertise lies. Do you have equal skills and experience with both operating systems? If not, it is likely to be a good idea to stick with what you know. That's how I generally advise users who ask "should I use Windows or Linux"? I have yet to see an apples-to-apples comparison that showed any significant difference between the two operating systems. But the effort and expense associated with learning or trying to manage an OS you don't know probably outweigh any potential performance differences. > This project is being run by a consortium led by Computer Associates so almost any skill you can think of is here somewhere ;-) It's big enough that the client will have a gis/IT admin team assigned to the project. Whatever skills are missing will be acquired by the client in due course. It's a whole of govt approach to gis data dissemination which is made all the more exciting by the central spot held by GIS FOSS. > - Ed Tim Bowden -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From watry at COAPS.FSU.EDU Mon Mar 6 06:41:37 2006 From: watry at COAPS.FSU.EDU (Gary Watry) Date: Mon, 6 Mar 2006 08:41:37 -0600 Subject: Quest for knowledge Message-ID: Good Morning Is there a way using html or javascript that the end user can plot subset of data based on a column short of building a layer for each choice. column is years, i.e 1992, 1992, 1994 they could [pick year] thanks p.s. I am learning PHP but can not use it yet From woodbri at SWOODBRIDGE.COM Mon Mar 6 06:55:57 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 6 Mar 2006 09:55:57 -0500 Subject: Quest for knowledge In-Reply-To: Message-ID: Gary Watry wrote: > Good Morning > > Is there a way using html or javascript that the end user can plot subset of > data based on a column short of building a layer for each choice. > > column is years, i.e 1992, 1992, 1994 > > they could [pick year] > > thanks > > p.s. I am learning PHP but can not use it yet > If you are using mapserver CGI, you could create a form to select the year and return it in say YEAR variable, then in the layer you can set up a filter and reference %YEAR% in the mapfile and mapserver should do the substitution for you. -Steve W. From work at XWB.COM Mon Mar 6 07:01:29 2006 From: work at XWB.COM (Chip Taylor) Date: Mon, 6 Mar 2006 07:01:29 -0800 Subject: map file in tmp directory In-Reply-To: Message-ID: I was aghast to find over 4,000 files in my /tmp directory. That is the directory I have designated as the IMAGEPATH and IMAGEURL for MapServer. I know that these files are only created if MapServer is run in Browse mode. I am running under IIS. Short of creating a scheduled process, is there a way that MapServer can remove these files once they are served? I know that they are only used one time and then never again. Seems to be inefficient to let them pile up. Chip Taylor From emmanuel.belo at MICROGIS.CH Mon Mar 6 07:11:13 2006 From: emmanuel.belo at MICROGIS.CH (Emmanuel BELO) Date: Mon, 6 Mar 2006 16:11:13 +0100 Subject: Mapfile Expression NULL value Message-ID: Hi, how do you handle NULL values from you database in your mapfile's expression? Example (NULL value for some tx_femme): CLASS EXPRESSION (([tx_femme] > 8) AND ([tx_femme] <= 15)) NAME "8 - 15" STYLE COLOR 255 217 0 END END I've tried: EXPRESSION ('[tx_femme]' = 'NULL') EXPRESSION /_always_false_/ Best regards, Emmanuel BELO -------------- next part -------------- A non-text attachment was scrubbed... Name: emmanuel.belo.vcf Type: text/x-vcard Size: 337 bytes Desc: not available URL: From punkish at EIDESIS.ORG Mon Mar 6 07:10:12 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Mon, 6 Mar 2006 09:10:12 -0600 Subject: map file in tmp directory In-Reply-To: <029601c6412e$d9bd9820$0601a8c0@DevChip> Message-ID: On Mar 6, 2006, at 9:01 AM, Chip Taylor wrote: > I was aghast to find over 4,000 files in my /tmp directory. That is > the > directory I have designated as the IMAGEPATH and IMAGEURL for > MapServer. I > know that these files are only created if MapServer is run in Browse > mode. as opposed to what other mode? > I am running under IIS. Short of creating a scheduled process, is > there a > way that MapServer can remove these files once they are served? I > know that > they are only used one time and then never again. Seems to be > inefficient > to let them pile up. yup. It is inefficient to let them pile up, but you have to do it, not MapServer. Just schedule a simple "rm *.png" (or equivalent) every n minutes or so. There are ways you can also send the image directly to the browser instead of first writing it to the disk. Just search the archives for hints. -- Puneet Kishor From punkish at EIDESIS.ORG Mon Mar 6 07:19:42 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Mon, 6 Mar 2006 09:19:42 -0600 Subject: map file in tmp directory In-Reply-To: <029d01c64131$0cdd7200$0601a8c0@DevChip> Message-ID: On Mar 6, 2006, at 9:17 AM, Chip Taylor wrote: > As opposed to map mode. Map mode streams the image directly to the > browser > and does not create the image in the ImagePath ahhh! There you go. You solved your problem. ;-) Wrt, the "browse" mode, yes, you will have to remove the temp files yourself, but it is a trivial task happily tackled by your operating system. Why bother MapServer with housekeeping... it has bigger things to accomplish. > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > Behalf Of Puneet Kishor > Sent: Monday, March 06, 2006 7:10 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] map file in tmp directory > > On Mar 6, 2006, at 9:01 AM, Chip Taylor wrote: > >> I was aghast to find over 4,000 files in my /tmp directory. That is >> the >> directory I have designated as the IMAGEPATH and IMAGEURL for >> MapServer. I >> know that these files are only created if MapServer is run in Browse >> mode. > > as opposed to what other mode? -- Puneet Kishor From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Mon Mar 6 07:27:12 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Mon, 6 Mar 2006 10:27:12 -0500 Subject: MapServer incompatibility with RHEL4/CE NTOS4.2 Message-ID: Alright, I have now officially tracked down the source of the problem. The FreeType 2.1.9-1 source package that comes with CentOS 4.2 is not built properly, or at least packaged properly. It includes a patch called "freetype-2.1.3-enable-ft2-bci.patch" that is supposed to turn on the ByteCode Interpreter within FreeType. This patch as you see dates back to version 2.1.3 ... And when applied to the 2.1.9 source code, it doesn't work (the line numbers don't match?), which means that the 2.1.9 binary package does NOT have the Bytecode Interpreter enabled, as other releases always did. In my case at least, this causes the rendering problems I've been experiencing. Also because I wasn't aware of this option, any package I compiled manually would suffer from the problem as well. If I recompile the 2.1.9 source and manually edit the #define for BCI, then everything is back to normal! Bloody hell. I suppose not all font files get affected the same way by this, so not every one might notice a difference? Cheers, J.F. -----Original Message----- From: Steven Bowden [mailto:steveb at bundaberg.qld.gov.au] Sent: March 5, 2006 5:57 PM To: Doyon, Jean-Francois Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with RHEL4/CE NTOS4.2 No Problems with mapserver-4.6.2 on CentOs 4.2 here on a Dual Code AMD 64 running 32bit; I am using proj-4.4.9 gd-2.0.33 gdal-1.3.1 geos-2.2.1 mapserver-4.6.2 php-4.4.0 gcc 3.4.4 glibc-2.3.4-2.13 freetype-2.1.9-1 Mapserver config ./configure --with-postgis --without-tiff --with-jpeg --with-threads --with-proj=/usr/local --with-gdal=/usr/local/bin/gdal-config --with-php=../php-4.4.0 --with-gd=/usr/local --with-freetype=/usr/bin --with-ogr=/usr/local/bin/gdal-config --with-wms --with-wfs --with-wcs --with-geos=/usr/local/bin/geos-config --enable-debug Regards Steve On Sat, 4 Mar 2006 2:58 am, Doyon, Jean-Francois wrote: > I tried moving the RedHat 7.3 binary that I know works fine to a > CentOS 4.2 system, and wham, the problem appeared! > > I also investigated trying to run multiple glibc's to see if that > might be the problem (i.e. install the RedHat 7.3 glibc on CentOS for > the use of MapServer), but that looks like quite the nightmare to try out ... > > J.F. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Doyon, Jean-Francois > Sent: March 3, 2006 10:28 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with > RHEL4/CE > NTOS4.2 > > OK, we're running 32 bit CentOS 4.2, on Xeon processors. > > I'm thinking there's some problem with the newer glibc or something > like that, which would also explain the crashes I was having at first > on a specific map? > > J.F. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Doyon, Jean-Francois > Sent: March 3, 2006 9:56 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with > RHEL4/CE > NTOS4.2 > > Lowell, > > Indeed! These are 64 bit CPU's! (Intel Xeon, Dell PowerEdge 1850's) > > And we're running CentOS, though I'm not sure whether it's the i386 > version, or the x86_64 one, I'll look into that. > > I've also replicated the problem on a Pentium 4 machine though, which > is 32 bit, though with what intel calls EM64T technology. > > Could it be the HyperThreading? > > J.F. > > -----Original Message----- > From: Lowell.Filak [mailto:lfilak at medinaco.org] > Sent: March 3, 2006 9:41 AM > To: Doyon, Jean-Francois > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with > RHEL4/CENTOS4.2 > > Doyon, Jean-Francois writes: > > Hello, > > > > OK well I've tracked down the source of my problem to the operating > > system itself it seems. > > > > Regardless of the versions/combinations of mapserver/gd/freetype I > > use, there are definite visual rendering problems when on this OS. > > On RedHat 7.3, everything is fine! > > > > Example: > > > > http://atlas.gc.ca/family-good.gif > > http://atlas.gc.ca/family-bad.gif > > > > Note the small dot that appears on the symbol? > > > > Also: > > > > http://atlas.gc.ca/the-market-good.gif > > http://atlas.gc.ca/the-market-bad.gif > > > > Notice how on the bad version, a bunch of point symbols are missing? > > > > I tried various combinations of: > > > > MapServer 4.6.1 and 4.8.1 > > FreeType 2.0.9 and 2.1.9 > > GD 2.0.28 and 2.0.33 > > > > A given combination works on 7.3, but not on CentOS. > > > > Without luck. The problem with the strange shape of the symbols ( > > http://atlas.gc.ca/mapserver-symbol-problem.png ) seemes to be > > related to the version of FreeType for some reason? FreeType 2.0.9 > > acts as we expect it to, FreeType 2.1.9 does not. There may be > > cumulative effects > > also. > > > CentOS 4.2 uses GCC 3.4.4 and GLIBC 2.3.4. I had gotten a horrible > > crash message at some point with a version of mapserver on this OS > > (http://lists.umn.edu/cgi-bin/wa?A2=ind0602&L=mapserver-users&P=R608 > > 02 &I=-3& X=106ECE1CAE6B73E23F), but upgrading from 4.6.1 to 4.8.1 > > had fixed it. This was related to memory allocation. Could > > something related to that be causing this? Turns out I've got 4.6.1 > > running on this platform now, but that really didn't help. > > > > I'm out of ideas :( Anyone? > > J.F., > > Is the 7.3 box a 32-bit and the RHEL box a 64-bit kernel by any chance > (you may have already stated that in your previous "double free > detected.." post but I don't remember). Not that I know of a > particular fix, but we have certainly had strange problems here also. > > Lowell From john.cole at UAI.COM Mon Mar 6 07:42:53 2006 From: john.cole at UAI.COM (John Cole) Date: Mon, 6 Mar 2006 09:42:53 -0600 Subject: C# mapscript... Message-ID: Tamas, Thanks for your help, some more questions now :-) I've switched to the nightly.tar.gz (because I couldn't figure out flex and bison) but I'm having trouble with libpng. I've checked their site and there isn't a lot of info on building with windows, much less building in VC8, how did you do it? I'm getting the following error trying to build the libpng solution Error 1 fatal error A1000: cannot open file : c:\projects\zlib\contrib\masmx86\inffas32.asm MASM I have the zlib library but that file doesn't exist in it (nor does the masmx86 directory). Also, I was the nmake /F Makefile.vc was getting errors on not finding bgd_i.lib, so I changed those references to bgd.lib, is that OK? (it got past that). Thanks, John Cole -----Original Message----- From: Tamas Szekeres [mailto:szekeres.tamas at FREEMAIL.HU] Sent: Friday, March 03, 2006 3:58 PM To: MAPSERVER-USERS at LISTS.UMN.EDU; John Cole Subject: Re: C# mapscript... John, The parser and lexer files are not precompiled with the CVS version. You have at least 2 options to do: 1. Use the nightly build instead containing theese files precompiled http://cvs.gis.umn.edu/dist/nightly.tar.gz 2. Download flex and bison gnuwin32.sourceforge.net/packages/flex.htm gnuwin32.sourceforge.net/packages/bison.htm and generate theese files from mapparser.y and maplexer.l Best Regards, Tamas From mjdelafuente at GMAIL.COM Mon Mar 6 07:49:48 2006 From: mjdelafuente at GMAIL.COM (Miguel de la Fuente) Date: Mon, 6 Mar 2006 12:49:48 -0300 Subject: Label scaling trouble Message-ID: Hello, I'm trying to scale label in a layer and I can't get it. the. I`m using MapServer version 4.6.1, as PHP MapScript module. .Map code is as follows: MAP NAME "PruebaMap" STATUS ON EXTENT 5000000 5430000 5800000 6350000 SIZE 800 520 SHAPEPATH "./" SYMBOLSET "../symbols/symbols.sym" FONTSET "../fonts/fonts2.txt" IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS METERS REFERENCE STATUS ON IMAGE "../reference/reference2.png" SIZE 150 150 EXTENT 5000000 5430000 5800000 6350000 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 MINBOXSIZE 5 MAXBOXSIZE 0 MARKERSIZE 0 END SCALEBAR STATUS EMBED COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 TRANSPARENT ON UNITS KILOMETERS INTERVALS 5 SIZE 300 5 STYLE 0 POSITION LC POSTLABELCACHE TRUE LABEL SIZE SMALL OFFSET 0 0 COLOR 255 0 0 ANTIALIAS TRUE PARTIALS TRUE FORCE TRUE END END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE RGB TRANSPARENT OFF END LAYER NAME "Partidos" STATUS ON DATA "new_geom FROM (select OID,* from partidos) as foo using unique OID using srid=-1" TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "user=XXX password=XXX dbname=XXX host=XXX port=5432" LABELMAXSCALE 1500000 LABELMINSCALE 50000 POSTLABELCACHE TRUE LABELITEM "nombre" CLASS NAME "Partido" LABEL TYPE TRUETYPE FONT "arial_black" OUTLINECOLOR 255 255 255 MINSIZE 5 MAXSIZE 30 MINFEATURESIZE AUTO ANTIALIAS TRUE END STYLE COLOR 235 230 217 OUTLINECOLOR 0 0 0 ANTIALIAS TRUE END END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu at IASTATE.EDU Mon Mar 6 07:53:26 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Mon, 6 Mar 2006 09:53:26 -0600 Subject: C# mapscript... In-Reply-To: Message-ID: John, Grab the build kit. All of the dependencies have been built already. All you have to worry about are gdal and mapserver. Make sure to edit nmake.opt for GDAL and make a clean GDAL (and then do nmake /f makefile.vc install). Edit nmake.opt for MapServer, make clean, and make install for MapServer and you should end up with a csharp directory in ..\bin with the C# mapscript binaries. Catch me on IRC if you have questions. Then we can write a doc ;) Howard At 09:42 AM 3/6/2006, John Cole wrote: >Tamas, > Thanks for your help, some more questions now :-) > > I've switched to the nightly.tar.gz (because I couldn't figure out flex >and bison) but I'm having trouble with libpng. I've checked their site and >there isn't a lot of info on building with windows, much less building in >VC8, how did you do it? I'm getting the following error trying to build the >libpng solution > >Error 1 fatal error A1000: cannot open file : >c:\projects\zlib\contrib\masmx86\inffas32.asm MASM > >I have the zlib library but that file doesn't exist in it (nor does the >masmx86 directory). > > Also, I was the nmake /F Makefile.vc was getting errors on not finding >bgd_i.lib, so I changed those references to bgd.lib, is that OK? (it got >past that). > >Thanks, > >John Cole > >-----Original Message----- >From: Tamas Szekeres [mailto:szekeres.tamas at FREEMAIL.HU] >Sent: Friday, March 03, 2006 3:58 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU; John Cole >Subject: Re: C# mapscript... > >John, > >The parser and lexer files are not precompiled with the CVS version. You >have at least 2 options to do: > >1. Use the nightly build instead containing theese files precompiled > >http://cvs.gis.umn.edu/dist/nightly.tar.gz > >2. Download flex and bison > >gnuwin32.sourceforge.net/packages/flex.htm >gnuwin32.sourceforge.net/packages/bison.htm > >and generate theese files from mapparser.y and maplexer.l > >Best Regards, > > >Tamas From ed at TOPOZONE.COM Mon Mar 6 09:03:57 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 6 Mar 2006 12:03:57 -0500 Subject: Mapserver on Linux vs Windows Message-ID: Tim - Thanks for filling in some of the details - sounds like quite a project! If all your data are coming from external SDE sources, outside of your control, then don't worry about those. Pay attention to the configuration of your MapServer systems. In your scenario, your MapServer systems will all be acting as OGC clients and servers. In those scenarios, those machines will be doing a lot of disk I/O, writing data retrieved from the SDE boxes and then reading that data to build and serve output data. As a result, you will have a lot of simultaneous reading and writing going on. Each system will have a very busy disk subsystem. You will want a disk subsystem that has very low random seek times (since you'll be jumping around among multiple requests all the time), and can handle lots of simultaneous I/O requests. Conversely, all your MapServer data is transient data used only to serve the current request, so you don't need to worry about redundancy or disk failure on your data disks. That sounds like a recipe for (a) a RAID 0 (striped) array of disks, (b) SCSI drives, and (c) high-RPM disks. The RAID 0 array will give you excellent read and write performance. It will give you no data redundancy, but you don't care about that. You should opt for a large number of smaller disks rather than a small number of larger disks, as this will improve your performance. SCSI drives will handle multiple I/O requests better than IDE drives. And high-RPM drives (15K RPM) will reduce your seek times (and are another reason to use SCSI, as SCSI drives are generally available at higher RPMs). The chief downside of this architecture is that it's expensive. From your description of the project, it doesn't sound like that's a problem . - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Tim Bowden Sent: Monday, March 06, 2006 9:27 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapserver on Linux vs Windows On Sun, 2006-03-05 at 12:45 -0500, Ed McNierney wrote: > Tim - > > Sounds like a good plan. The biggest variable (assuming the hardware is the same) is the layout of your data sources. It's important to think those through to get the best performance. > Ed, Could you elaborate on the 'layout of your data sources' bit. All our data is in various sde boxes. Given the dispersed nature of our data sets (geographically and custodianship) we don't have much leeway as to how we can set things up; All sde boxes are behind on site mapserver ogc client boxes which in turn act as ogc servers to a central mapserserver which will be accessible to authorised users. > The other thing to keep in mind is where your shop's expertise lies. Do you have equal skills and experience with both operating systems? If not, it is likely to be a good idea to stick with what you know. That's how I generally advise users who ask "should I use Windows or Linux"? I have yet to see an apples-to-apples comparison that showed any significant difference between the two operating systems. But the effort and expense associated with learning or trying to manage an OS you don't know probably outweigh any potential performance differences. > This project is being run by a consortium led by Computer Associates so almost any skill you can think of is here somewhere ;-) It's big enough that the client will have a gis/IT admin team assigned to the project. Whatever skills are missing will be acquired by the client in due course. It's a whole of govt approach to gis data dissemination which is made all the more exciting by the central spot held by GIS FOSS. > - Ed Tim Bowden -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From ed at TOPOZONE.COM Mon Mar 6 09:05:28 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 6 Mar 2006 12:05:28 -0500 Subject: map file in tmp directory Message-ID: Puneet - As opposed to map mode (mode=map), in which case the image is returned directly in response to the HTTP request and no temporary file is written to disk. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Puneet Kishor Sent: Monday, March 06, 2006 10:10 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] map file in tmp directory On Mar 6, 2006, at 9:01 AM, Chip Taylor wrote: > I was aghast to find over 4,000 files in my /tmp directory. That is > the directory I have designated as the IMAGEPATH and IMAGEURL for > MapServer. I know that these files are only created if MapServer is > run in Browse mode. as opposed to what other mode? > I am running under IIS. Short of creating a scheduled process, is > there a way that MapServer can remove these files once they are > served? I know that they are only used one time and then never again. > Seems to be inefficient to let them pile up. yup. It is inefficient to let them pile up, but you have to do it, not MapServer. Just schedule a simple "rm *.png" (or equivalent) every n minutes or so. There are ways you can also send the image directly to the browser instead of first writing it to the disk. Just search the archives for hints. -- Puneet Kishor From watry at COAPS.FSU.EDU Mon Mar 6 09:18:18 2006 From: watry at COAPS.FSU.EDU (Gary Watry) Date: Mon, 6 Mar 2006 11:18:18 -0600 Subject: Quest for knowledge II Message-ID: IS it possible to do a query and send the result back to the orginal map image instead of generating a indexquerymap image From punkish at EIDESIS.ORG Mon Mar 6 09:13:49 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Mon, 6 Mar 2006 11:13:49 -0600 Subject: MapServer in kiosks (was Re: map file in tmp directory) In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDA26@ptolemy.topozone.com> Message-ID: On Mar 6, 2006, at 11:05 AM, Ed McNierney wrote: > Puneet - > > As opposed to map mode (mode=map), in which case the image is returned > directly in response to the HTTP request and no temporary file is > written to disk. > .. Now I know, and it shows my ignorance. I have never worked with MapServer, the cgi (other than a few clicks here and there on the Itasca demo) -- always used Perl/MapScript. I know that Steve Lime (and others) have done wonders with cgi MapServer, and I should learn how. I may have a chance to implement MapServer in standalone kiosks kinda situations, and on thinking about it, it seems that the cgi version would be simpler, yet very capable. Am I wrong/right in my assumptions? Anyone? (not just Ed). Anyone who has had any experience implementing a GIS app in an unattended kiosk situation? > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > Behalf Of Puneet Kishor > Sent: Monday, March 06, 2006 10:10 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] map file in tmp directory > > On Mar 6, 2006, at 9:01 AM, Chip Taylor wrote: > >> I was aghast to find over 4,000 files in my /tmp directory. That is >> the directory I have designated as the IMAGEPATH and IMAGEURL for >> MapServer. I know that these files are only created if MapServer is >> run in Browse mode. > > as opposed to what other mode? > >> .. -- Puneet Kishor From lfilak at MEDINACO.ORG Mon Mar 6 10:03:39 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Mon, 6 Mar 2006 13:03:39 -0500 Subject: MapServer incompatibility with RHEL4/CE NTOS4.2 In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7DC4@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: Doyon, Jean-Francois writes: > Alright, I have now officially tracked down the source of the problem. > > The FreeType 2.1.9-1 source package that comes with CentOS 4.2 is not built > properly, or at least packaged properly. > > It includes a patch called "freetype-2.1.3-enable-ft2-bci.patch" that is > supposed to turn on the ByteCode Interpreter within FreeType. > > This patch as you see dates back to version 2.1.3 ... And when applied to > the 2.1.9 source code, it doesn't work (the line numbers don't match?), > which means that the 2.1.9 binary package does NOT have the Bytecode > Interpreter enabled, as other releases always did. > > In my case at least, this causes the rendering problems I've been > experiencing. Also because I wasn't aware of this option, any package I > compiled manually would suffer from the problem as well. > > If I recompile the 2.1.9 source and manually edit the #define for BCI, then > everything is back to normal! > > Bloody hell. > > I suppose not all font files get affected the same way by this, so not every > one might notice a difference? J.F., Good work! Do you plan to submit something to the CentOS bug tracker? If it would help any I could install the srpm for RHEL 4 and submit a bug to RH directly after verifying the bad patch exists. Lowell From steve.lime at DNR.STATE.MN.US Mon Mar 6 10:22:01 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 6 Mar 2006 12:22:01 -0600 Subject: Mapfile Expression NULL value Message-ID: It really depends on how your datastore coughs up the data. I don't believe there is a true NULL with DBF files but I may be wrong. You might try expressions like: EXPRESSION (not '[tx_femme]') EXPRESSION ('[tx_femme]' = '') Steve >>> Emmanuel BELO 03/06/06 9:11 AM >>> Hi, how do you handle NULL values from you database in your mapfile's expression? Example (NULL value for some tx_femme): CLASS EXPRESSION (([tx_femme] > 8) AND ([tx_femme] <= 15)) NAME "8 - 15" STYLE COLOR 255 217 0 END END I've tried: EXPRESSION ('[tx_femme]' = 'NULL') EXPRESSION /_always_false_/ Best regards, Emmanuel BELO From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Mon Mar 6 10:20:29 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Mon, 6 Mar 2006 13:20:29 -0500 Subject: MapServer incompatibility with RHEL4/CE NTOS4.2 Message-ID: I debated the idea, though I wasn't sure if this is a bug for them or RedHat directly. Also, the only way I determined this was by looking at the patch file, and the line numbers, and looking at the relevant file being patched, and noticing the problem. I didn't try to apply the patch itself, or fix it. I don't want to mess with an OS provided package, so I just switched to a custom built source for now, making sure I edit the #define :) I've got my setup working, which was priority number one. I did the investigating, so Lowell, if you feel like it go ahead and validate my findings and submit the bug if you like :) I've already spent too much time on this and need to move on! (Porbably good someone double check my findings before filing a bug anyways) Thanks, J.F. -----Original Message----- From: Lowell.Filak [mailto:lfilak at medinaco.org] Sent: March 6, 2006 1:04 PM To: Doyon, Jean-Francois Cc: 'Steven Bowden'; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] MapServer incompatibility with RHEL4/CE NTOS4.2 Doyon, Jean-Francois writes: > Alright, I have now officially tracked down the source of the problem. > > The FreeType 2.1.9-1 source package that comes with CentOS 4.2 is not > built properly, or at least packaged properly. > > It includes a patch called "freetype-2.1.3-enable-ft2-bci.patch" that > is supposed to turn on the ByteCode Interpreter within FreeType. > > This patch as you see dates back to version 2.1.3 ... And when applied > to the 2.1.9 source code, it doesn't work (the line numbers don't > match?), which means that the 2.1.9 binary package does NOT have the > Bytecode Interpreter enabled, as other releases always did. > > In my case at least, this causes the rendering problems I've been > experiencing. Also because I wasn't aware of this option, any package > I compiled manually would suffer from the problem as well. > > If I recompile the 2.1.9 source and manually edit the #define for BCI, > then everything is back to normal! > > Bloody hell. > > I suppose not all font files get affected the same way by this, so not > every one might notice a difference? J.F., Good work! Do you plan to submit something to the CentOS bug tracker? If it would help any I could install the srpm for RHEL 4 and submit a bug to RH directly after verifying the bad patch exists. Lowell From steve.lime at DNR.STATE.MN.US Mon Mar 6 10:17:26 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 6 Mar 2006 12:17:26 -0600 Subject: Quest for knowledge II Message-ID: Gary: A little more context here would help. Perhaps I missed a previous thread. Steve >>> Gary Watry 03/06/06 11:18 AM >>> IS it possible to do a query and send the result back to the orginal map image instead of generating a indexquerymap image From bill at BINKO.NET Mon Mar 6 11:19:17 2006 From: bill at BINKO.NET (Bill Binko) Date: Mon, 6 Mar 2006 14:19:17 -0500 Subject: Mapserver on Linux vs Windows In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDA25@ptolemy.topozone.com> Message-ID: Just a few thoughts... Ed McNierney wrote: > If all your data are coming from external SDE sources, outside of your > control, then don't worry about those. Pay attention to the > configuration of your MapServer systems. > > Also, you'll need to be very careful about your network setup: even simple things like DNS resolution can kill you in this type of system. > In your scenario, your MapServer systems will all be acting as OGC > clients and servers. In those scenarios, those machines will be doing a > lot of disk I/O, writing data retrieved from the SDE boxes and then > reading that data to build and serve output data. As a result, you will > have a lot of simultaneous reading and writing going on. Each system > will have a very busy disk subsystem. > > You will want a disk subsystem that has very low random seek times > (since you'll be jumping around among multiple requests all the time), > and can handle lots of simultaneous I/O requests. Conversely, all your > MapServer data is transient data used only to serve the current request, > so you don't need to worry about redundancy or disk failure on your data > disks. > > That sounds like a recipe for (a) a RAID 0 (striped) array of disks, (b) > SCSI drives, and (c) high-RPM disks. The RAID 0 array will give you > excellent read and write performance. It will give you no data > redundancy, but you don't care about that. You should opt for a large > number of smaller disks rather than a small number of larger disks, as > this will improve your performance. SCSI drives will handle multiple > I/O requests better than IDE drives. And high-RPM drives (15K RPM) will > reduce your seek times (and are another reason to use SCSI, as SCSI > drives are generally available at higher RPMs). > > I'd actually consider moving off of magnetic disk entirely for this application. Today, you can get common off the shelf server motherboards that will hold up to 64GB of RAM, and in the project size you're considering, you have even more options. On a linux system, you can use ramfs very simply: mount -t ramfs none /var/gis/tmp -o maxsize=2000000 (2000000 = ~2Gb in bytes, you might try additional options like noatime, noexec, nodev, nosuid) And use that as your IMAGE_PATH parameter. (I believe all of the OGC client interfaces use the IMAGE_PATH space for temporary files, but you might want to check that) If you have static data (such as base maps, or "common" shapefiles) that you use locally, you can always copy them (read-only) into a second ramdisk at bootup (with similar options). With DDR2 4G memory sticks going for < $400, this may be a far less expensive option than the SCSI RAID path. It's actually interesting to consider the fact that this could be a solid state device :-) That would _seriously_ increase your uptime and reduce your maintenance costs including backup, recovery, etc. Just DHCP boot it from an existing server and store syslog output on a remote host. However, that's going a bit afield, and may cause headaches in your IS department. Just my $.02. Bill From lists at NABBLE.COM Mon Mar 6 11:40:47 2006 From: lists at NABBLE.COM (VolComHG (sent by Nabble.com)) Date: Mon, 6 Mar 2006 11:40:47 -0800 Subject: PHPMapscript Message-ID: Im new with mapscript and i learn how to use it Here my code draw(); $image_url=$image->saveWebImage(); ?> Essaie When I open the html page it said : draw(); $image_url=$image->saveWebImage(); ?> > I think it doesnt recognize the mapscript sorry for my english Someone can help me plz !!!! -- View this message in context: http://www.nabble.com/PHPMapscript-t1235334.html#a3268192 Sent from the Mapserver - User forum at Nabble.com. From bpicinbono at WORLDONLINE.FR Mon Mar 6 12:00:26 2006 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Mon, 6 Mar 2006 21:00:26 +0100 Subject: PHPMapscript In-Reply-To: <3268192.post@talk.nabble.com> Message-ID: On Monday 06 March 2006 20:40, VolComHG (sent by Nabble.com) wrote: > Im new with mapscript and i learn how to use it > Here my code > > if (!extension_loaded("MapScript")) dl('php_mapscript_46.dll'); > $map_path="C:/ms4w/apps/kamap-0.1.1/htdocs/"; > $map = ms_newMapObj($map_path."global.map"); > $image=$map->draw(); > $image_url=$image->saveWebImage(); > > > ?> > > > > Essaie > > > > > > > When I open the html page it said : > > draw(); $image_url=$image->saveWebImage(); ?> > > > I think it doesnt recognize the mapscript sorry for my english > > Someone can help me plz !!!! Have a look at this doc : http://mapserver.gis.umn.edu/docs/howto/phpmapscript-install/?searchterm=phpinfo particularly 2.4.1 : . . . 2.4.1 Using phpinfo() To verify that PHP and PHP/Mapscript were installed properly, create a '.php' file containing the following code and try to access it through your web server: If PHP and PHP/Mapscript were installed properly, several tables should be displayed on your page, and 'Mapscript' should be listed in the 'Extensions' table. . . . Do you see Mapscript in this php page ? (Be sure to put the right name for the mapscript dll : php_mapscript.dll, or php_mapscript_46.dll, or else...) Blaise From jmckenna at DMSOLUTIONS.CA Mon Mar 6 12:09:57 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 6 Mar 2006 15:09:57 -0500 Subject: PHPMapscript In-Reply-To: <200603062100.26885.bpicinbono@worldonline.fr> Message-ID: and here's an excellent beginner doc: http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample jeff blaise wrote: > On Monday 06 March 2006 20:40, VolComHG (sent by Nabble.com) wrote: > >>Im new with mapscript and i learn how to use it >>Here my code >>> >>if (!extension_loaded("MapScript")) dl('php_mapscript_46.dll'); >>$map_path="C:/ms4w/apps/kamap-0.1.1/htdocs/"; >>$map = ms_newMapObj($map_path."global.map"); >>$image=$map->draw(); >>$image_url=$image->saveWebImage(); >> >> >>?> >> >> >> >> Essaie >> >> >> >> >> >> >>When I open the html page it said : >> >>draw(); $image_url=$image->saveWebImage(); ?> > >> >>I think it doesnt recognize the mapscript sorry for my english >> >>Someone can help me plz !!!! > > > Have a look at this doc : > http://mapserver.gis.umn.edu/docs/howto/phpmapscript-install/?searchterm=phpinfo > particularly 2.4.1 : > . . . > 2.4.1 Using phpinfo() > To verify that PHP and PHP/Mapscript were installed properly, create a '.php' > file containing the following code and try to access it through your web > server: > > > > if (PHP_OS == "WINNT" || PHP_OS == "WIN32") > { > dl("php_mapscript.dll"); > } > else > { > dl("php_mapscript.so"); > } > phpinfo(); > ?> > > > > > If PHP and PHP/Mapscript were installed properly, several tables should be > displayed on your page, and 'Mapscript' should be listed in the 'Extensions' > table. > . . . > Do you see Mapscript in this php page ? (Be sure to put the right name for the > mapscript dll : php_mapscript.dll, or php_mapscript_46.dll, or else...) > Blaise > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From lists at NABBLE.COM Mon Mar 6 12:10:03 2006 From: lists at NABBLE.COM (VolComHG (sent by Nabble.com)) Date: Mon, 6 Mar 2006 12:10:03 -0800 Subject: PHPMapscript In-Reply-To: <200603062100.26885.bpicinbono@worldonline.fr> Message-ID: Yeah, i test it and my PHP/Mapscript work fine !!! Do you have an another idea plz !!! -- View this message in context: http://www.nabble.com/PHPMapscript-t1235334.html#a3268697 Sent from the Mapserver - User forum at Nabble.com. From lists at NABBLE.COM Mon Mar 6 12:10:17 2006 From: lists at NABBLE.COM (VolComHG (sent by Nabble.com)) Date: Mon, 6 Mar 2006 12:10:17 -0800 Subject: PHPMapscript In-Reply-To: <200603062100.26885.bpicinbono@worldonline.fr> Message-ID: Yeah, i test it and my PHP/Mapscript work fine !!! Do you have an another idea plz !!! -- View this message in context: http://www.nabble.com/PHPMapscript-t1235334.html#a3268703 Sent from the Mapserver - User forum at Nabble.com. From lists at NABBLE.COM Mon Mar 6 12:20:56 2006 From: lists at NABBLE.COM (VolComHG (sent by Nabble.com)) Date: Mon, 6 Mar 2006 12:20:56 -0800 Subject: PHPMapscript In-Reply-To: <440C9715.7080306@dmsolutions.ca> Message-ID: Tx Jeff, but it exactly what i do. I do this part in the tutorial : 1 draw(); 6 $image_url=$image->saveWebImage(); 7 ?> 8 9 10 Example 1: Displaying a map 11 12 13 14 15 in my case it do it : draw(); $image_url=$image->saveWebImage(); ?> Essaie and when i open my html page it write it : draw(); $image_url=$image->saveWebImage(); ?> i really dont undersand why !!! Plz help me !!! (Hey Jeff youre good, i read your doc "PHP/Mapscript Reference") -- View this message in context: http://www.nabble.com/PHPMapscript-t1235334.html#a3268884 Sent from the Mapserver - User forum at Nabble.com. From jmckenna at DMSOLUTIONS.CA Mon Mar 6 12:52:54 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 6 Mar 2006 15:52:54 -0500 Subject: PHPMapscript In-Reply-To: <3268884.post@talk.nabble.com> Message-ID: > > (Hey Jeff youre good, i read your doc "PHP/Mapscript > Reference") > that reference is only the html version on the php README doc in the mapserver source, maintained by Daniel Morisette and Yewondwossen Assefa - they deserve ALL of the credit. jeff -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From bpicinbono at WORLDONLINE.FR Mon Mar 6 13:00:27 2006 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Mon, 6 Mar 2006 22:00:27 +0100 Subject: PHPMapscript In-Reply-To: <3268697.post@talk.nabble.com> Message-ID: On Monday 06 March 2006 21:10, VolComHG (sent by Nabble.com) wrote: > Yeah, i test it and my PHP/Mapscript work fine !!! Do you have an another > idea plz !!! watch your code, this is the one you posted : >>> >>if (!extension_loaded("MapScript")) dl('php_mapscript_46.dll'); >>$map_path="C:/ms4w/apps/kamap-0.1.1/htdocs/"; >>$map = ms_newMapObj($map_path."global.map"); >>$image=$map->draw(); >>$image_url=$image->saveWebImage(); >> >> >>?> >> >> >> ? >> ? ? ?Essaie >> ? >> ? >> ? ? ? >> ? >> >> Don't you miss an ending php tag : replace line : "" by this line : "" What result ? more, how much do you know about php ? Blaise From lists at NABBLE.COM Mon Mar 6 13:06:06 2006 From: lists at NABBLE.COM (VolComHG (sent by Nabble.com)) Date: Mon, 6 Mar 2006 13:06:06 -0800 Subject: PHPMapscript In-Reply-To: <200603062200.27825.bpicinbono@worldonline.fr> Message-ID: No i dont forgot the tags i open my code with ok im not the best with this language but im not the worst too :P -- View this message in context: http://www.nabble.com/PHPMapscript-t1235334.html#a3269664 Sent from the Mapserver - User forum at Nabble.com. From bpicinbono at WORLDONLINE.FR Mon Mar 6 13:21:08 2006 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Mon, 6 Mar 2006 22:21:08 +0100 Subject: PHPMapscript In-Reply-To: <3269664.post@talk.nabble.com> Message-ID: On Monday 06 March 2006 22:06, VolComHG (sent by Nabble.com) wrote: > No i dont forgot the tags i open my code with with ?> ok im not the best with this language but im not the worst too > :P -- > View this message in context: > http://www.nabble.com/PHPMapscript-t1235334.html#a3269664 Sent from the > Mapserver - User forum at Nabble.com. I meant the code betweens your html tags, not the one at top of your page. When I learnt php, all php code in between html tags started with : "". This might have change but, please post your full page, try changing your line : "" with " .... ? Blaise From lists at NABBLE.COM Mon Mar 6 13:25:59 2006 From: lists at NABBLE.COM (VolComHG (sent by Nabble.com)) Date: Mon, 6 Mar 2006 13:25:59 -0800 Subject: PHPMapscript In-Reply-To: <200603062221.08472.bpicinbono@worldonline.fr> Message-ID: here my code: draw(); $image_url=$image->saveWebImage(); ?> Essaie "" -- View this message in context: http://www.nabble.com/PHPMapscript-t1235334.html#a3270038 Sent from the Mapserver - User forum at Nabble.com. From bpicinbono at WORLDONLINE.FR Mon Mar 6 13:38:30 2006 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Mon, 6 Mar 2006 22:38:30 +0100 Subject: PHPMapscript In-Reply-To: <3270038.post@talk.nabble.com> Message-ID: On Monday 06 March 2006 22:25, VolComHG (sent by Nabble.com) wrote: > here my code: > > if (!extension_loaded("MapScript")) dl('php_mapscript_46.dll'); > $map_path="C:/ms4w/apps/kamap-0.1.1/htdocs/"; > $map = ms_newMapObj($map_path."global.map"); > $image=$map->draw(); > $image_url=$image->saveWebImage(); > ?> > > > Essaie > > > "" > > > -- > View this message in context: > http://www.nabble.com/PHPMapscript-t1235334.html#a3270038 Sent from the > Mapserver - User forum at Nabble.com. Maybe I'm out of html and php tags but try this code : ... draw(); $image_url=$image->saveWebImage(); ?> Essaie "" ... I think your : > When I open the html page it said : > draw(); $image_url=$image->saveWebImage(); ?> ?> is just a html/php error ? ? ? ...more... to start with php_mapscript, try the gmap : http://mapserver.gis.umn.edu/docs/link/gmap-sample see how it works Blaise From dbadke at UVIC.CA Mon Mar 6 13:47:50 2006 From: dbadke at UVIC.CA (David Badke) Date: Mon, 6 Mar 2006 13:47:50 -0800 Subject: MapScript 4.8.1, PHP 5.12, and segmentation faults rendering TrueType Message-ID: We are having an odd problem with a new install of MapServer/MapScript 4.8.1 on Red Hat Linux with PHP 5.12. Trying to generate a layer (via MapScript) containing TrueType fonts causes a segmentation fault when drawing (eg: $oImg = $oMap->draw()). Changing the map file to use bitmap fonts makes the error go away. The same map file run through MapServer cgi (using the sample template) generates the TrueType text correctly with no errors. The same MapScript PHP code running on a Windows XP (Apache) system, also with the same map file, works with TrueType. It's only MapScript on the Linux server that has a problem, and only with TrueType fonts - everything else works perfectly. The server guys have recompiled everything, making sure the GD/FreeType versions are correct. As far as they are concerned, the installation is good to go. But still it crashes... Any ideas the server guys can try? David -------------- The extremely simple PHP script is: draw(); $szURL = $oImg->saveWebImage(); echo ""; ?> The map file is: MAP NAME "vicbird1878_map" STATUS ON EXTENT 0 -6739 10539 0 SIZE 10540 6740 SHAPEPATH "/home1t/taprhist/www/maps/user/data/" IMAGETYPE PNG IMAGECOLOR 156 170 177 UNITS INCHES FONTSET "/home1t/taprhist/www/maps/user/font/fontset.fnt" SYMBOLSET "/home1t/taprhist/www/maps/user/symbol/generic.sym" DEBUG ON WEB IMAGEPATH "/home1t/taprhist/www/maps/htdocs/tmp/" IMAGEURL "http://lettuce.tapor.uvic.ca/~taprhist/maps/htdocs/tmp/" LOG "/home1t/taprhist/www/maps/htdocs/tmp/mapserv.log" TEMPLATE "/home1t/taprhist/www/maps/htdocs/ms_temp.html" END REFERENCE STATUS ON IMAGE "/home1t/taprhist/www/maps/user/data/vic1878key.png" SIZE 300 192 EXTENT 0 -6739 10539 0 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END LEGEND STATUS ON TRANSPARENT ON KEYSIZE 20 10 KEYSPACING 5 5 END SCALEBAR STATUS OFF SIZE 200 3 END LAYER NAME "Base" GROUP "Image" STATUS OFF DATA "vic1878.png" TYPE RASTER END LAYER NAME "Features" GROUP "Features" STATUS OFF DATA "vicbird1878" TYPE POINT MAXSCALE 200 CLASS STYLE SYMBOL "triangle" COLOR 255 0 0 SIZE 8 END END END LAYER NAME "Labels" GROUP "Labels" STATUS DEFAULT DATA "vicbird1878" TYPE ANNOTATION LABELITEM "LABEL" MAXSCALE 150 SYMBOLSCALE 71 CLASS LABEL TYPE truetype FONT "webdings" ANTIALIAS FALSE SIZE 9 POSITION UC OFFSET 0 8 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 MINSIZE 8 MAXSIZE 10 BUFFER 1 END END END END -- David Badke Humanities Computing and Media Center University of Victoria, BC, Canada From condit at SDSC.EDU Mon Mar 6 13:48:13 2006 From: condit at SDSC.EDU (Christopher Condit) Date: Mon, 6 Mar 2006 13:48:13 -0800 Subject: MapScript C# QueryByPoint Message-ID: I have a question about QueryByPoint in C# MapScript. I've subclassed the layerObj and want to run QueryByPoint from this object. getNumResults always returns 0, however. I have a template defined for the layer - and results are returned from the mapserver CGI. Is there some special way to run a query from inside a layerObj (or subclass)? Thanks, Chris public class elevationLayer : layerObj { public elevationLayer(mapObj map) : base(map) { name = "Elevation"; type = MS_LAYER_TYPE.MS_LAYER_RASTER; data = @"..\elevation\elevation.adf"; } public string QueryLayer(double x, double y) { string ret = null; int res = queryByPoint(map, new pointObj(x, y, 0, 0), mapscript.MS_SINGLE, 0.25 ); ret = "Depth: "; if (0 == getNumResults()) ret += "Unknown"; else { open(); resultCacheMemberObj result = getResult(0); if (null != result) { shapeObj shape = getFeature(result.shapeindex, result.tileindex); ret += int.Parse(shape.getValue(2)) * -1 + " m.
"; } close(); } return ret; } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From kfraleytx at YAHOO.COM Mon Mar 6 14:05:04 2006 From: kfraleytx at YAHOO.COM (keith fraley) Date: Mon, 6 Mar 2006 14:05:04 -0800 Subject: Install at Shared Hosting Facility, can it be done??? Message-ID: I am in serious need of setting up mapserver at my hosting facility (lunarpages.com) I am on a shared linux box with no access to shell, can I get this installed? Where do I start? Thanks in advance!!! __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From siki at AGT.BME.HU Mon Mar 6 18:15:02 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 7 Mar 2006 01:15:02 -0100 Subject: PHPMapscript {Scanned} In-Reply-To: <3270038.post@talk.nabble.com> Message-ID: Hi, You should insert an image tag into your html code to see the result. Or an image input field in a form. e.g. > Zoltan On Mon, 6 Mar 2006, VolComHG (sent by Nabble.com) wrote: > here my code: > > if (!extension_loaded("MapScript")) dl('php_mapscript_46.dll'); > $map_path="C:/ms4w/apps/kamap-0.1.1/htdocs/"; > $map = ms_newMapObj($map_path."global.map"); > $image=$map->draw(); > $image_url=$image->saveWebImage(); > ?> > > > Essaie > > > "" > > > -- > View this message in context: http://www.nabble.com/PHPMapscript-t1235334.html#a3270038 > Sent from the Mapserver - User forum at Nabble.com. > From kevinc at UPTIMEDATA.COM Mon Mar 6 15:03:14 2006 From: kevinc at UPTIMEDATA.COM (KevinC (UD)) Date: Mon, 6 Mar 2006 17:03:14 -0600 Subject: Install at Shared Hosting Facility, can it be done??? Message-ID: Keith Fraley wrote: I am in serious need of setting up mapserver at my hosting facility (lunarpages.com) I am on a shared linux box with no access to shell, can I get this installed? Where do I start? ***************************************************** In my opinion, no shell access means no realistic possibility of using Mapserver. Ask your host how much co-location of your own Linux box would cost. I pay $600/yr and consider it the only way to go. Of course, you must educate yourself in Linux, then Apache, then finally MapServer. This is a path not to be taken by those who give up easily. Kevin Carpenter, P.E. UptimeData.com kevinc at UptimeData.com www.UptimeData.com From williams at WEBSAWYER.COM Mon Mar 6 15:22:46 2006 From: williams at WEBSAWYER.COM (Doug Williams) Date: Mon, 6 Mar 2006 16:22:46 -0700 Subject: PHPMapscript Message-ID: window.alert('success');"; }else{ echo ""; } }else{ echo ""; } $map_path="C:/ms4w/apps/kamap-0.1.1/htdocs/"; $map = ms_newMapObj($map_path."global.map"); $image=$map->draw(); $image_url=$image->saveWebImage(); ?> this is my map

mapserver version: From bpicinbono at WORLDONLINE.FR Mon Mar 6 15:27:16 2006 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Tue, 7 Mar 2006 00:27:16 +0100 Subject: Install at Shared Hosting Facility, can it be done??? In-Reply-To: <000d01c64172$2821f8b0$6701a8c0@vio3> Message-ID: On Tuesday 07 March 2006 00:03, KevinC (UD) wrote: > Keith Fraley wrote: > I am in serious need of setting up mapserver at my > hosting facility (lunarpages.com) I am on a shared > linux box with no access to shell, can I get this > installed? Where do I start? > > ***************************************************** > > In my opinion, no shell access means no realistic possibility of using > Mapserver. Ask your host how much co-location of your own Linux box would > cost. I pay $600/yr and consider it the only way to go. Of course, you > must educate yourself in Linux, then Apache, then finally MapServer. This > is a path not to be taken by those who give up easily. "serious need of setting up mapserver" and "I am on a shared linux box with no access to shell" might no fits... basic mapserer is a cgi, can you upload cgi to your server and have it running depending on its libs ? Few shared servers allow mapserver setups. I had one for a moment with full php_mapscript digitize mode, but it didn't last their updates )-: I think "serious [...] mapserver" and "shared linux box" might not fit... Blaise From punkish at EIDESIS.ORG Mon Mar 6 15:23:52 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Mon, 6 Mar 2006 17:23:52 -0600 Subject: Install at Shared Hosting Facility, can it be done??? In-Reply-To: <000d01c64172$2821f8b0$6701a8c0@vio3> Message-ID: On Mar 6, 2006, at 5:03 PM, KevinC (UD) wrote: > Keith Fraley wrote: > I am in serious need of setting up mapserver at my > hosting facility (lunarpages.com) I am on a shared > linux box with no access to shell, can I get this > installed? Where do I start? > > ***************************************************** > > In my opinion, no shell access means no realistic possibility of using > Mapserver. Ask your host how much co-location of your own Linux box > would cost. I pay $600/yr and consider it the only way to go. Of > course, you must educate yourself in Linux, then Apache, then finally > MapServer. This is a path not to be taken by those who give up > easily. > a cheaper option, for starters, might be to get a starter VPS (Virtual Private Server) account. They can be had for as little as $9-10 per month, and give you your own private server with you as the root. Just google for VPS. Once you learn the ropes, you can bump up to a better account level, at maybe a better provider such as Linode. Yes, eventually colo your own for the best results. -- Puneet Kishor From warmerdam at POBOX.COM Mon Mar 6 17:23:27 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 6 Mar 2006 20:23:27 -0500 Subject: WCS & pseudocolor table In-Reply-To: <60c6835d0603061621n1f33dd6dr700b1503d254b855@mail.gmail.com> Message-ID: Shoaib Burq wrote: > > Shoaib, > > This isn't a bug, by the way. In "picture" mode MapServer is no way > obligated to preserve the original pixel values, and doing so is quite > meaningless in the vector rendering case. > > > humm.... I guess that's true for WMS but for a WCS I was under the > impression data integrity is crucial, no? Shoaib, As long as WCS runs in "raw mode", the original pixel values should be preserved. Of course, we come full circle to the fact that rawmode does not currently support colortables. There is no compelling reason it could not, but it isn't currently part of the raw mode data model. I believe someone else has already created a bug report on that, though I'm not promising if/when it will be dealt with. > What was the projection of the WCS request? The projection of > the result image will be determined by the projection object set > on the map object at render time. In the WCS case this normally > comes from the client. > > Using the WCS CGI request I specify "crs=EPSG:4283" which is GDA94 as > per data at the server. but for some reason this is not honoured. Ah. The problem is that MapServer uses PROJ.4 format as it's internal representation of coordinate systems, and it is very bad at identifying datums. So when you say epsg:4283 it is internally expanded to: +proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs When mapserver goes to write this to TIFF it is written as ellipsoid GRS80. You might want to file a bug on this. It *might* be possible for me to find the epsg:n value in cases like this and generate a proper GeoTIFF definition based on that. This isn't normally an issue in mapserver since it doesn't normally produced products with embedded coordinate systems. WCS is somewhat special in this regard. These issues are of general enough interest that I have taken the liberty of cc:ing my response back to the list. 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 OSGF, http://osgeo.org From jacob.delfos at MAUNSELL.COM Mon Mar 6 19:20:47 2006 From: jacob.delfos at MAUNSELL.COM (Delfos, Jacob) Date: Tue, 7 Mar 2006 11:20:47 +0800 Subject: Tileindex of DGN's being opened as shapefilelayer Message-ID: Hi Bart, Thanks for letting me know, at least I know I'm not doing anything wrong. Sorry for the late reply. Public holiday and all...... Regards, Jacob > -----Original Message----- > From: Bart van den Eijnden (OSGIS) [mailto:bartvde at xs4all.nl] > Sent: 3 March 2006 15:57 > To: Delfos, Jacob > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Tileindex of DGN's being > opened as shapefilelayer > > Hi Jacob, > > I can only state that I have seen this problem as well myself with > Mapinfo TAB files in a tileindex, I was also using them through > PHP/Mapscript. In the end I used Mapinfo seamless layers to > get around > that, but that won't be an option for your DGN's. > > Best regards, > Bart > > Delfos, Jacob wrote: > > > Hi, > > > > Just to provide some additional information: the map > displays fine in > > mapserver, but not in php_mapscript. It appears that php_mapscript > > assigns a shapefile connectiontype to this layer, causing > it to try to > > open the DGN's as shapefile. In the mapserver CGI, this doesn't > > happen. Can anyone with a better understanding of the difference > > between the two tell me what I can do to get around it? > > > > regards, > > > > Jacob > > > > > > > -------------------------------------------------------------- > ---------- > > *From:* UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On Behalf Of > *Delfos, Jacob > > *Sent:* 20 February 2006 15:00 > > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > > *Subject:* [UMN_MAPSERVER-USERS] Tileindex of DGN's being opened > > as shapefile layer > > > > Hi All, > > > > I'm having some trouble creating a tile-index of DGN's, using > > php_mapscript (Chameleon). My tileindex is a shapefile. But I > > think the layer should be treated as OGR, yet the connectiontype > > seems to indicate it thinks it is a shapefile layer. > According to > > my PHP log, it tries to open it as a shapefile, which > obviously fails: > > > > [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: > > msDrawMap(): Failed to draw layer named 'DGNs'. > > in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 > > [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: > > msTiledSHPOpenFile(): Unable to open a single tile to use as a > > template in layer DGNs. > > > > in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 > > [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: > > msSHPOpenFile(): (c:/data/hongkong/10nwb.dgn) > > in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 > > [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: > > msSHPOpenFile(): (c:/data/hongkong/10nwb.dgn) > > in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 > > [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: > > msSHPOpenFile(): (c:/data/hongkong/10nwa.dgn) > > in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 > > [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: > > msSHPOpenFile(): (c:/data/hongkong/10nwa.dgn) > > in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 > > > > I based my layer definition on > > > _http://mapserver.gis.umn.edu/docs/howto/ogr_howto/#tileindex- > with-ogr_ > > : > > > > LAYER > > NAME "DGNs" > > TYPE LINE > > STYLEITEM "AUTO" > > CONNECTIONTYPE OGR > > TILEINDEX "dindex.shp,0" > > STATUS ON > > CLASS > > COLOR 150 150 150 > > END > > END > > > > The DBF of the shapefile has 1 column, with these values: > > > > location > > C:\data\10nwa.dgn,0 > > C:\data\10nwb.dgn,0 > > > > I am using php_mapscript 4.6.1, with php 5.05. Can > someone tell me > > what I'm doing wrong? > > > > Regards, > > > > Jacob > > > > > > *JACOB DELFOS > > GIS ANALYST > > *Maunsell Australia Pty Ltd > > 629 Newcastle Street, Leederville, WA 6007 > > PO Box 81, Leederville, WA 6902 > > Western Australia > > ABN 20 093 846 925 > > > > Tel + 61 8 9281 6185 > > Fax + 61 8 9281 6297 > > _jacob.delfos at maunsell.com_ > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > From holl at GDF-HANNOVER.DE Tue Mar 7 00:07:49 2006 From: holl at GDF-HANNOVER.DE (Stephan Holl) Date: Tue, 7 Mar 2006 09:07:49 +0100 Subject: Projection issues on WFS-Server Message-ID: Dear List, I would like to publish a WFS-layer through mapserver 4.6.2, but the XML-Document provides a wrong latlon boundingbox. The mapfile-snippet looks like this: MAP EXTENT -180 -90 180 90 UNITS DD PROJECTION "init=epsg:4326" END ... WEB ... METADATA "original_projection" "init=epsg:4326" "original_extents" "-180,-90,180,90" "wfs_title" "WFS-title" "wfs_onlineresource" "http://localhost/cgi-bin/wfs?" "wfs_srs" "EPSG:4326" "wfs_abstract" "WFS-abstract" END END ... GetCapabilities ... EPSG:4326 ... This should be from my understanding Perhaps you could provide a starting point where to look. Thanks in advance Stephan From alan.hale at BTCLICK.COM Mon Mar 6 22:50:34 2006 From: alan.hale at BTCLICK.COM (Alan Hale) Date: Tue, 7 Mar 2006 06:50:34 -0000 Subject: Install at Shared Hosting Facility, can it be done??? In-Reply-To: <20060306220504.49047.qmail@web34811.mail.mud.yahoo.com> Message-ID: I have a shared account with a small web-hosting company who have been prepared (for a one-off additional payment) to set up Mapserver and Mapscript for me. I'm sure there are others out there who would do the same. Maybe its not ideal but it's fine to get started and I've had no problems. Cheers Alan Hale Aberystwyth Wales UK -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of keith fraley I am in serious need of setting up mapserver at my hosting facility (lunarpages.com) I am on a shared linux box with no access to shell, can I get this installed? Where do I start? -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.2.0/275 - Release Date: 06/03/2006 From condit at SDSC.EDU Mon Mar 6 22:02:34 2006 From: condit at SDSC.EDU (Christopher Condit) Date: Mon, 6 Mar 2006 22:02:34 -0800 Subject: MapScript C# QueryByPoint Message-ID: Actually after further testing it looks as though this only happens with my raster layers. My vector layers all query just fine. Is there anything else I need to do for a raster layer (ArcInfo Coverage) to allow queries to work? I've got the template defined in the map file. Thanks, Chris ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Condit Sent: Monday, March 06, 2006 1:48 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MapScript C# QueryByPoint I have a question about QueryByPoint in C# MapScript. I've subclassed the layerObj and want to run QueryByPoint from this object. getNumResults always returns 0, however. I have a template defined for the layer - and results are returned from the mapserver CGI. Is there some special way to run a query from inside a layerObj (or subclass)? Thanks, Chris public class elevationLayer : layerObj { public elevationLayer(mapObj map) : base(map) { name = "Elevation"; type = MS_LAYER_TYPE.MS_LAYER_RASTER; data = @"..\elevation\elevation.adf"; } public string QueryLayer(double x, double y) { string ret = null; int res = queryByPoint(map, new pointObj(x, y, 0, 0), mapscript.MS_SINGLE, 0.25 ); ret = "Depth: "; if (0 == getNumResults()) ret += "Unknown"; else { open(); resultCacheMemberObj result = getResult(0); if (null != result) { shapeObj shape = getFeature(result.shapeindex, result.tileindex); ret += int.Parse(shape.getValue(2)) * -1 + " m.
"; } close(); } return ret; } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim.bowden at WESTNET.COM.AU Tue Mar 7 02:06:51 2006 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Tue, 7 Mar 2006 18:06:51 +0800 Subject: fastcgi & mapserver Message-ID: Hi, We have been testing mapserver with fastcgi and it is much faster getting data from sde sources than as a plain old cgi app. Our problem with it is using a wrapper script- The wrapper script is not a fastcgi application and when we call mapserv from within the wrapper script it doesn't get treated as a fastcgi application. Does anyone have any pointers as to how we can mix the two? Thanks, Tim Bowden -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From emmanuel.belo at MICROGIS.CH Tue Mar 7 02:47:54 2006 From: emmanuel.belo at MICROGIS.CH (Emmanuel BELO) Date: Tue, 7 Mar 2006 11:47:54 +0100 Subject: Mapfile Expression NULL value In-Reply-To: Message-ID: Hi Steve, thank you for your answer but with PostgreSQL/PostGIS it doesn't work. For now, the solution is to add a WHERE clause in the SQL statement: WHERE tx_femme IS NOT NULL best regards, eb Steve Lime wrote: > It really depends on how your datastore coughs up the data. I don't believe > there is a true NULL with DBF files but I may be wrong. You might try > expressions like: > > EXPRESSION (not '[tx_femme]') > EXPRESSION ('[tx_femme]' = '') > > Steve > >>>> Emmanuel BELO 03/06/06 9:11 AM >>> > Hi, > > how do you handle NULL values from you database in your mapfile's > expression? > > Example (NULL value for some tx_femme): > > CLASS > EXPRESSION (([tx_femme] > 8) AND ([tx_femme] <= 15)) > NAME "8 - 15" > STYLE > COLOR 255 217 0 > END > END > > I've tried: > > EXPRESSION ('[tx_femme]' = 'NULL') > > EXPRESSION /_always_false_/ > > Best regards, > > Emmanuel BELO > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: emmanuel.belo.vcf Type: text/x-vcard Size: 337 bytes Desc: not available URL: From mjdelafuente at GMAIL.COM Tue Mar 7 03:53:24 2006 From: mjdelafuente at GMAIL.COM (Miguel de la Fuente) Date: Tue, 7 Mar 2006 08:53:24 -0300 Subject: Scaling Label Message-ID: Hello, I'm trying to scale label in a layer and I can't get it. the. I`m using MapServer version 4.6.1, as PHP MapScript module. .Map code is as follows: MAP NAME "PruebaMap" STATUS ON EXTENT 5000000 5430000 5800000 6350000 SIZE 800 520 SHAPEPATH "./" SYMBOLSET "../symbols/symbols.sym" FONTSET "../fonts/fonts2.txt" IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS METERS REFERENCE STATUS ON IMAGE "../reference/reference2.png" SIZE 150 150 EXTENT 5000000 5430000 5800000 6350000 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 MINBOXSIZE 5 MAXBOXSIZE 0 MARKERSIZE 0 END SCALEBAR STATUS EMBED COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 TRANSPARENT ON UNITS KILOMETERS INTERVALS 5 SIZE 300 5 STYLE 0 POSITION LC POSTLABELCACHE TRUE LABEL SIZE SMALL OFFSET 0 0 COLOR 255 0 0 ANTIALIAS TRUE PARTIALS TRUE FORCE TRUE END END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE RGB TRANSPARENT OFF END LAYER NAME "Partidos" STATUS ON DATA "new_geom FROM (select OID,* from partidos) as foo using unique OID using srid=-1" TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "user=XXX password=XXX dbname=XXX host=XXX port=5432" LABELMAXSCALE 1500000 LABELMINSCALE 50000 POSTLABELCACHE TRUE LABELITEM "nombre" CLASS NAME "Partido" LABEL TYPE TRUETYPE FONT "arial_black" OUTLINECOLOR 255 255 255 MINSIZE 5 MAXSIZE 30 MINFEATURESIZE AUTO ANTIALIAS TRUE END STYLE COLOR 235 230 217 OUTLINECOLOR 0 0 0 ANTIALIAS TRUE END END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris at NARX.NET Tue Mar 7 04:28:09 2006 From: chris at NARX.NET (Chris Tweedie) Date: Tue, 7 Mar 2006 20:28:09 +0800 Subject: fastcgi & mapserver In-Reply-To: <1141726011.3930.17.camel@localhost.localdomain> Message-ID: Tim, depending on what language you are using for the wrapper you can either a. Recompile PHP with CGI/FastCGI support (im pretty sure ms4w/fgs have this as standard) b. Grab the fcgi module from CPAN for perl and then reconfigure Apache with something like AddHandler php-fastcgi .php Action php-fastcgi /bin/php Options +ExecCGI SetHandler fastcgi-script Or if you have already set up a directory for fcgi, simply add a new handler for the file type. Can't say i've tested the sucker, but i see no reason why it wouldnt when the wrapper itself is executed as pseudo-fcgi :) ttyl Chris Quoting Tim Bowden : > Hi, > > We have been testing mapserver with fastcgi and it is much faster > getting data from sde sources than as a plain old cgi app. Our problem > with it is using a wrapper script- The wrapper script is not a fastcgi > application and when we call mapserv from within the wrapper script it > doesn't get treated as a fastcgi application. Does anyone have any > pointers as to how we can mix the two? > > Thanks, > Tim Bowden > -- > Mapforge Geospatial > Level 3/ 267 St Georges Tce > Perth 6000 > Western Australia > From giorgio.plazzotta at SARASRICERCHE.IT Tue Mar 7 04:26:52 2006 From: giorgio.plazzotta at SARASRICERCHE.IT (Giorgio Plazzotta) Date: Tue, 7 Mar 2006 13:26:52 +0100 Subject: Double labels Message-ID: Hello I am using the Cartoweb middleware based on the Mapserver engine. After the reinstallation of the new version I am facing a problem of duplicate labels that didn't happen before using the same Mapfile. Between the two versions (Cartoweb 3.1 and Cartoweb 3.2) the Apache was changed from 1.3.x fo 2.0.x and the php_mapscript.dll changed from 4.6 to 4.8. The OS is Windows 2000 pro. After some investigation I relized that the problem applied on those labels using the WRAP function. When the text was splitted into 2 lines it was also doubled. Another strange thing is that if the LABEL section of the Mapfile contains the BACKGROUNDCOLOR the label is not doubled. In the same installation i also tried to use a different mapfile provided in the Cartoweb samples and also in this case the labels are doubled. Any idea? Thanx Giorgio -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Tue Mar 7 04:58:24 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 7 Mar 2006 07:58:24 -0500 Subject: Projection issues on WFS-Server In-Reply-To: <20060307090749.200214cb@bambule.gdf-hannover.de> Message-ID: Hi There, Please have a look at documentation at http://mapserver.gis.umn.edu/docs/howto/wfs_server From what I can see, what is missing is a projection object on the layer with the epsg code that reflects the projection of your layer. Wiyth that addition, you should get n appropriate latlon bounding box representing the extents of your layer. Later, Stephan Holl wrote: > Dear List, > > I would like to publish a WFS-layer through mapserver 4.6.2, but the > XML-Document provides a wrong latlon boundingbox. > > The mapfile-snippet looks like this: > > MAP > EXTENT -180 -90 180 90 > UNITS DD > PROJECTION > "init=epsg:4326" > END > ... > > WEB > ... > METADATA > "original_projection" "init=epsg:4326" > "original_extents" "-180,-90,180,90" > "wfs_title" "WFS-title" > "wfs_onlineresource" "http://localhost/cgi-bin/wfs?" > "wfs_srs" "EPSG:4326" > "wfs_abstract" "WFS-abstract" > END > END > ... > > > GetCapabilities > ... > EPSG:4326 > maxy="2.5e+07"/> > ... > > This should be from my understanding > > > Perhaps you could provide a starting point where to look. > > Thanks in advance > > Stephan > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From hydromap at GMAIL.COM Tue Mar 7 05:38:24 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Wed, 8 Mar 2006 00:38:24 +1100 Subject: WCS & pseudocolor table In-Reply-To: <440CE08F.5000209@pobox.com> Message-ID: Frank, As long as WCS runs in "raw mode", the original pixel values > should be preserved. Of course, we come full circle to the fact > that rawmode does not currently support colortables. There is no > compelling reason it could not, but it isn't currently part of > the raw mode data model. I believe someone else has already created > a bug report on that, though I'm not promising if/when it will be > dealt with. Ok, Thank. I'll also look at the code to try and contribute. > Ah. The problem is that MapServer uses PROJ.4 format as it's internal > representation of coordinate systems, and it is very bad at identifying > datums. So when you say epsg:4283 it is internally expanded to: > > +proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs > > When mapserver goes to write this to TIFF it is written as ellipsoid > GRS80. > > You might want to file a bug on this. It *might* be possible for me > to find the epsg:n value in cases like this and generate a proper > GeoTIFF definition based on that. This isn't normally an issue in > mapserver since it doesn't normally produced products with embedded > coordinate systems. WCS is somewhat special in this regard. Strangely enough the i found that on one of my other installs of mapserver (I belive it was the Feb-2006 release of MS4W) this problem didn't exist and the Geotiff created by WCS request had the correct Coord Sys. While my current development server is running 'fgs' with the cvs head of mapserver and its showing this problem. I'll do a few more tests though before filing that bug. Thanks for all your help on this issue thus far... These issues are of general enough interest that I have taken the liberty > of cc:ing my response back to the list. I was thinking of doing that :) shoaib -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at NABBLE.COM Tue Mar 7 05:40:14 2006 From: lists at NABBLE.COM (VolComHG (sent by Nabble.com)) Date: Tue, 7 Mar 2006 05:40:14 -0800 Subject: PHPMapscript In-Reply-To: <20060306230315.M71197@websawyer.com> Message-ID: Hi Doug, tx for your code, the result is when i open my page 2 popup appear : 1- "Failure" 2-"Already loaded (i doubt it"), what i must do now ???? here my code window.alert('success');"; }else{ echo ""; } }else{ echo ""; } $map_path="C:/ms4w/apps/kamap-0.1.1/htdocs/"; $map = ms_newMapObj($map_path."global.map"); $image=$map->draw(); $image_url=$image->saveWebImage(); ?> -- View this message in context: http://www.nabble.com/PHPMapscript-t1235334.html#a3280611 Sent from the Mapserver - User forum at Nabble.com. From lists at NABBLE.COM Tue Mar 7 06:17:55 2006 From: lists at NABBLE.COM (VolComHG (sent by Nabble.com)) Date: Tue, 7 Mar 2006 06:17:55 -0800 Subject: PHPMapscript In-Reply-To: <20060306230315.M71197@websawyer.com> Message-ID: here an image of what the browser show : http://www.nabble.com/user-images/2483.png -- View this message in context: http://www.nabble.com/PHPMapscript-t1235334.html#a3281242 Sent from the Mapserver - User forum at Nabble.com. From john.cole at UAI.COM Tue Mar 7 08:07:41 2006 From: john.cole at UAI.COM (John Cole) Date: Tue, 7 Mar 2006 10:07:41 -0600 Subject: C# mapscript... Message-ID: Howard, I'm trying to get your 4.8.1 build (thank you for making that) to work with IIS. Searching the website, there isn't a guide on setting this up. I've gotten IIS to work with MS4W before, but I'm getting a 502 when I try to hit this version. Mapserv -v returns the following: C:\Inetpub\cgi-bin>mapserv -v 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 SUPPO RTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=SDE INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG So I'm pretty sure it's ready to go, and I've also made a decent stab at getting the permissions correct. Is there something that I've missed? I'm on XP SP2 IIS 5 Thanks, John Cole -----Original Message----- From: Howard Butler [mailto:hobu at iastate.edu] Sent: Monday, March 06, 2006 9:53 AM To: John Cole; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: C# mapscript... John, Grab the build kit. All of the dependencies have been built already. All you have to worry about are gdal and mapserver. Make sure to edit nmake.opt for GDAL and make a clean GDAL (and then do nmake /f makefile.vc install). Edit nmake.opt for MapServer, make clean, and make install for MapServer and you should end up with a csharp directory in ..\bin with the C# mapscript binaries. Catch me on IRC if you have questions. Then we can write a doc ;) Howard At 09:42 AM 3/6/2006, John Cole wrote: >Tamas, > Thanks for your help, some more questions now :-) > > I've switched to the nightly.tar.gz (because I couldn't figure out flex >and bison) but I'm having trouble with libpng. I've checked their site and >there isn't a lot of info on building with windows, much less building in >VC8, how did you do it? I'm getting the following error trying to build the >libpng solution > >Error 1 fatal error A1000: cannot open file : >c:\projects\zlib\contrib\masmx86\inffas32.asm MASM > >I have the zlib library but that file doesn't exist in it (nor does the >masmx86 directory). > > Also, I was the nmake /F Makefile.vc was getting errors on not finding >bgd_i.lib, so I changed those references to bgd.lib, is that OK? (it got >past that). > >Thanks, > >John Cole > >-----Original Message----- >From: Tamas Szekeres [mailto:szekeres.tamas at FREEMAIL.HU] >Sent: Friday, March 03, 2006 3:58 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU; John Cole >Subject: Re: C# mapscript... > >John, > >The parser and lexer files are not precompiled with the CVS version. You >have at least 2 options to do: > >1. Use the nightly build instead containing theese files precompiled > >http://cvs.gis.umn.edu/dist/nightly.tar.gz > >2. Download flex and bison > >gnuwin32.sourceforge.net/packages/flex.htm >gnuwin32.sourceforge.net/packages/bison.htm > >and generate theese files from mapparser.y and maplexer.l > >Best Regards, > > >Tamas From abe.gillespie at GMAIL.COM Tue Mar 7 08:21:19 2006 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Tue, 7 Mar 2006 11:21:19 -0500 Subject: C# mapscript... In-Reply-To: <76758090F8686C47A44B6FF52514A1D30790965A@hermes.uai.int> Message-ID: Here we go again ... :) I was afraid this thread would eventually devolve to trying to get C# MapScript working for the web. Unfortunately IIS / ASP.NET (I'm assuming you're using ASP.NET) threading model renders the C# MapScript Assembly virtually useless when used in this context. Here's slightly more info: http://mapserver.gis.umn.edu/docs/faq/thread_safety/?searchterm=thread Good luck! -Abe On 3/7/06, John Cole wrote: > Howard, > I'm trying to get your 4.8.1 build (thank you for making that) to work > with IIS. Searching the website, there isn't a guide on setting this up. > I've gotten IIS to work with MS4W before, but I'm getting a 502 when I try > to hit this version. > > Mapserv -v returns the following: > > C:\Inetpub\cgi-bin>mapserv -v > 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 SUPPO > RTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=SDE INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > So I'm pretty sure it's ready to go, and I've also made a decent stab at > getting the permissions correct. Is there something that I've missed? > > I'm on XP SP2 IIS 5 > > Thanks, > > John Cole > > -----Original Message----- > From: Howard Butler [mailto:hobu at iastate.edu] > Sent: Monday, March 06, 2006 9:53 AM > To: John Cole; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: C# mapscript... > > John, > > Grab the build kit. All of the dependencies have been built > already. All you have to worry about are gdal and mapserver. > ild-kit.zip> > > Make sure to edit nmake.opt for GDAL and make a clean GDAL (and then > do nmake /f makefile.vc install). Edit nmake.opt for MapServer, make > clean, and make install for MapServer and you should end up with a > csharp directory in ..\bin with the C# mapscript binaries. > > Catch me on IRC if you have questions. Then we can write a doc ;) > > Howard > > At 09:42 AM 3/6/2006, John Cole wrote: > >Tamas, > > Thanks for your help, some more questions now :-) > > > > I've switched to the nightly.tar.gz (because I couldn't figure out flex > >and bison) but I'm having trouble with libpng. I've checked their site and > >there isn't a lot of info on building with windows, much less building in > >VC8, how did you do it? I'm getting the following error trying to build > the > >libpng solution > > > >Error 1 fatal error A1000: cannot open file : > >c:\projects\zlib\contrib\masmx86\inffas32.asm MASM > > > >I have the zlib library but that file doesn't exist in it (nor does the > >masmx86 directory). > > > > Also, I was the nmake /F Makefile.vc was getting errors on not finding > >bgd_i.lib, so I changed those references to bgd.lib, is that OK? (it got > >past that). > > > >Thanks, > > > >John Cole > > > >-----Original Message----- > >From: Tamas Szekeres [mailto:szekeres.tamas at FREEMAIL.HU] > >Sent: Friday, March 03, 2006 3:58 PM > >To: MAPSERVER-USERS at LISTS.UMN.EDU; John Cole > >Subject: Re: C# mapscript... > > > >John, > > > >The parser and lexer files are not precompiled with the CVS version. You > >have at least 2 options to do: > > > >1. Use the nightly build instead containing theese files precompiled > > > >http://cvs.gis.umn.edu/dist/nightly.tar.gz > > > >2. Download flex and bison > > > >gnuwin32.sourceforge.net/packages/flex.htm > >gnuwin32.sourceforge.net/packages/bison.htm > > > >and generate theese files from mapparser.y and maplexer.l > > > >Best Regards, > > > > > >Tamas > From alexandre at ACQUASOFTWARE.COM.BR Tue Mar 7 08:55:42 2006 From: alexandre at ACQUASOFTWARE.COM.BR (Alexandre Abramides) Date: Tue, 7 Mar 2006 13:55:42 -0300 Subject: JBOX - distance measuring Message-ID: Anyone can help me? I,m trying to use the distance measuring function from jBox. This is the javascript function in http://mapserver.gis.umn.edu/docs/howto/jbox function measure_handler(name, s, t, n, a) { // c = 1 / 72dpi / 12inches_per_foot * 1.0003state_plane_scale_factor var c = 0.0011577546296296; // constant var f = [scale] * c; // scale factor if ((s>0) || (t>0)) { defaultStatus = "This segment = " + s*f + ", Total = " + t*f + ", Number of vertices = " + n ; } } and I don?t know what else i have to do. Should i add another "mode" to my html template? How do I use this function properly? [] Abramides. From williams at WEBSAWYER.COM Tue Mar 7 09:15:29 2006 From: williams at WEBSAWYER.COM (Doug Williams) Date: Tue, 7 Mar 2006 10:15:29 -0700 Subject: PHPMapscript Message-ID: VolComHG, That is weird how you are building out a mapserver forum at Nabble through UMN's Mapserver list. Not sure if that is cool. I would suggest you simply make a page that points to the real Mapserver. Perhaps you will have better luck with getting your mapserver running. If you are getting two popups by adding the bit of code I sent you, then I suggest you start by reinstalling your OS after reformatting your harddrive. >VolCanHG "VolComHG (sent by Nabble.com)" wrote: > >Hi Doug, tx for your code, the result is when i open my page 2 popup appear >: 1- "Failure" 2-"Already loaded (i doubt it"), what i must do now ???? >here my code > > >if (!extension_loaded("MapScript")){ > if (dl('php_mapscript_46.dll')) { > echo ""; > }else{ > echo ""; > } >}else{ > echo ""; >} >$map_path="C:/ms4w/apps/kamap-0.1.1/htdocs/"; >$map = ms_newMapObj($map_path."global.map"); >$image=$map->draw(); >$image_url=$image->saveWebImage(); > > >?> > From bluecarto at GMAIL.COM Tue Mar 7 09:23:42 2006 From: bluecarto at GMAIL.COM (Pierre GIRAUD) Date: Tue, 7 Mar 2006 18:23:42 +0100 Subject: GEOS integration questions In-Reply-To: <43D639CE.8040901@herzsys.de> Message-ID: On 1/24/06, listuser HH wrote: > Steve Lime wrote: > > >The only GEOS methods exposed are convex hull and a buffer. I didn't > >want to go nuts until I received some feedback about the usefulness of > >that type of functionality. They are not difficult to add. Are there specific > >operators you are interested in and would be willing to test? Let me know > >if so and we can work in the 4.9 branch. > > > >A full list of operators supported by GEOS is available at geos.refractions.net. > > > >As for mapfile integration. My idea was to expose a few operators that > >work of a single shape (e.g. buffer, convex hull, etc...) via the PROCESSING > >block that is currently used for defining raster operations. That way you > >could basically apply a GEOS operator to all features of a particular layer as > >they are read from the data source- for any data source. > > > >Steve > > > > > > > >>>>listuser HH 01/19/06 5:49 AM >>> > >>>> > >>>> > >Hello all, > > > >I would like to know how much of the GEOS functions (and which) are > >already available in the MapScript API and in PHP MapScript. I found > >only intersects and cointains for both. The shapeObj in PHP Mapscript > >also has buffer and convexhull. > > > >Can someone tell me what the plans for including more of the GEOS > >functions are? > > > >Are there plans to use some functions (i.e. buffer) directly in the mapfile? > > > >Are there any docs that give some more information? > > > >Regards > > > >Norbert > > > > > > > > > Hi Steve, > > sorry for the late reply I was not in office. > > At the moment I'm collecting arguments to convince costumers to use > MapServer. I know there are many good reasons to use MapServer - mostly > because of the good work you and the other developers did and do - but I > want to give a full overview. I tested PostGIS a bit and I think that > there is much potential but some of our costumers have Oracle and they > will not use Postgres. So it will be nice to have some of the functions > available in MapServer. > > In the following I have made a list with the things I was thinking of. I > give a ranking for the importance (1 - most / 5 - fewest). > - crosses -> 1 > - (boolean) intersect -> 2 > - (geom) intersect -> 2 > - union -> 2 > - difference -> 3 > - getCentroid -> 3 > - getLength -> 4 > - getArea -> 4 > - touches -> 4 > - isValid -> 5 > - disjoint -> 5 > > If others are interested perhaps we can open a poll for "Geometry > functions in MapServer" with all the GEOS functions to see what would be > important for a bigger group of people. > > Thanks and my best regards > > Norbert > For a project, I would need something like collect(). In mapscript, I'm trying to collect (union?) several geometries by creating a shape and adding all lines that are part of the corresponding geometries (shapes) pgiraud but this gives strange results, in some cases (intersects). Is there any other way to do this, or do I have to wait for the implementation in mapgeos.cpp ? Regards Pierre GIRAUD From steve.lime at DNR.STATE.MN.US Tue Mar 7 09:32:17 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 7 Mar 2006 11:32:17 -0600 Subject: Mapfile Expression NULL value Message-ID: That'd certainly fix it. You could also use a case statement in PostGIS to assign NULLs a more useable (from MapServer's point of view) value and then test for that value in an expression. Steve >>> Emmanuel BELO 03/07/06 4:47 AM >>> Hi Steve, thank you for your answer but with PostgreSQL/PostGIS it doesn't work. For now, the solution is to add a WHERE clause in the SQL statement: WHERE tx_femme IS NOT NULL best regards, eb Steve Lime wrote: > It really depends on how your datastore coughs up the data. I don't believe > there is a true NULL with DBF files but I may be wrong. You might try > expressions like: > > EXPRESSION (not '[tx_femme]') > EXPRESSION ('[tx_femme]' = '') > > Steve > >>>> Emmanuel BELO 03/06/06 9:11 AM >>> > Hi, > > how do you handle NULL values from you database in your mapfile's > expression? > > Example (NULL value for some tx_femme): > > CLASS > EXPRESSION (([tx_femme] > 8) AND ([tx_femme] <= 15)) > NAME "8 - 15" > STYLE > COLOR 255 217 0 > END > END > > I've tried: > > EXPRESSION ('[tx_femme]' = 'NULL') > > EXPRESSION /_always_false_/ > > Best regards, > > Emmanuel BELO > > > From steve.lime at DNR.STATE.MN.US Tue Mar 7 09:35:20 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 7 Mar 2006 11:35:20 -0600 Subject: Double labels Message-ID: Not knowing exactly how Cartoweb works I wonder if you can test outside of it using shp2img? Also, could you post: - a sample image showing the doubling? - a mapfile snippet for the layer in question? Steve >>> Giorgio Plazzotta 03/07/06 6:26 AM >>> Hello I am using the Cartoweb middleware based on the Mapserver engine. After the reinstallation of the new version I am facing a problem of duplicate labels that didn't happen before using the same Mapfile. Between the two versions (Cartoweb 3.1 and Cartoweb 3.2) the Apache was changed from 1.3.x fo 2.0.x and the php_mapscript.dll changed from 4.6 to 4.8. The OS is Windows 2000 pro. After some investigation I relized that the problem applied on those labels using the WRAP function. When the text was splitted into 2 lines it was also doubled. Another strange thing is that if the LABEL section of the Mapfile contains the BACKGROUNDCOLOR the label is not doubled. In the same installation i also tried to use a different mapfile provided in the Cartoweb samples and also in this case the labels are doubled. Any idea? Thanx Giorgio From woodbri at SWOODBRIDGE.COM Tue Mar 7 10:09:58 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 7 Mar 2006 13:09:58 -0500 Subject: Mapquest and Yahoo are trying to keep up with Google Message-ID: http://news.com.com/2100-1032_3-6046698.html?part=rss&tag=6046698&subj=news http://news.com.com/Yahoo+to+offer+new+mashup+tools/2100-1032_3-6046693.html?tag=st_lh From listuser at HERZSYS.DE Tue Mar 7 10:33:20 2006 From: listuser at HERZSYS.DE (Listuser H.) Date: Tue, 7 Mar 2006 18:33:20 +0000 Subject: SDE and SUSE9 Message-ID: Hi all, I'm trying to compile mapserver with SDE support. I did all the steps on SUSE SLES 8 and all was fine. Now I try to do the same on SUSE SLES 9 and the compilation with same components went fine. Mapserver work fine with .shp etc. Only if I request a SDE layer it leads to a segfault "permature end of script headers". If I try SDElayer binary I can connect. Any help would be appreciated. Thanks in advance Norbert ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From warmerdam at POBOX.COM Tue Mar 7 12:12:20 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 7 Mar 2006 15:12:20 -0500 Subject: Projection issues on WFS-Server In-Reply-To: <20060307090749.200214cb@bambule.gdf-hannover.de> Message-ID: Stephan Holl wrote: > GetCapabilities > ... > EPSG:4326 > maxy="2.5e+07"/> > ... > > This should be from my understanding > > > Perhaps you could provide a starting point where to look. Stephan, I would encourage you to upgrade to 4.8.1. Some aspect of this has already been fixed, though I am not sure if it was the layer level extents. It might just have been per-shape bounds that was fixed. I would suggest you look in mapwfs.c, search for msOWSGetLayerExtent(). 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 OSGF, http://osgeo.org From warmerdam at POBOX.COM Tue Mar 7 12:43:21 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 7 Mar 2006 15:43:21 -0500 Subject: fastcgi & mapserver In-Reply-To: <1141726011.3930.17.camel@localhost.localdomain> Message-ID: Tim Bowden wrote: > Hi, > > We have been testing mapserver with fastcgi and it is much faster > getting data from sde sources than as a plain old cgi app. Our problem > with it is using a wrapper script- The wrapper script is not a fastcgi > application and when we call mapserv from within the wrapper script it > doesn't get treated as a fastcgi application. Does anyone have any > pointers as to how we can mix the two? Tim, Interesting point. Is the wrapper script just a shell script setting some environment variables? While I generally like this approach, for fastcgi you may be better off setting the environment variables in the apache conf. My fastcgi apache conf on linux looks like: LoadModule fastcgi_module modules/mod_fastcgi.so AddHandler fastcgi-script fcgi FastCgiConfig -initial-env LD_LIBRARY_PATH=/home/warmerda/gdal:/usr/local/pgsql/lib:/usr/local/lib:/usr/local/grass-6.0.0/lib:/usr/local/lib/mysql I assume you can use the -initial-env switch to set more variables if needed. Of course, if you want to have different settings for different services this approach may not work easily. Fastcgi can be quirky for stuff like this! 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 OSGF, http://osgeo.org From James.Leveille at MTQ.GOUV.QC.CA Tue Mar 7 12:26:17 2006 From: James.Leveille at MTQ.GOUV.QC.CA (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Tue, 7 Mar 2006 15:26:17 -0500 Subject: Security issue Message-ID: Hi all, I've been using MapServer for a few weeks (on a "development" server). I now have to set it up on a "production" server. My problem is the CONNECTION tag in the MapFile (Oracle). Guys from the IT really don't like to see the connection string in the flat file ... What are the different solutions I have ? Can the user/pw at instance string be encrypted on the server side ? Regards __________________________________________ James L?veill? Int?lec G?omatique 420, boul. Charest Est Bureau 400 Qu?bec (QC), Canada G1K 8M4 -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Tue Mar 7 14:51:52 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 7 Mar 2006 16:51:52 -0600 Subject: Projection issues on WFS-Server Message-ID: I think it's been fixed. Recall there was a problem with the result level (not layer level) bounds not being handled correctly. I would upgrade before perusing C code... Steve >>> Frank Warmerdam 03/07/06 2:12 PM >>> Stephan Holl wrote: > GetCapabilities > ... > EPSG:4326 > maxy="2.5e+07"/> > ... > > This should be from my understanding > > > Perhaps you could provide a starting point where to look. Stephan, I would encourage you to upgrade to 4.8.1. Some aspect of this has already been fixed, though I am not sure if it was the layer level extents. It might just have been per-shape bounds that was fixed. I would suggest you look in mapwfs.c, search for msOWSGetLayerExtent(). 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 OSGF, http://osgeo.org From szekeres.tamas at FREEMAIL.HU Tue Mar 7 15:36:30 2006 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Tue, 7 Mar 2006 17:36:30 -0600 Subject: C# mapscript... Message-ID: John, It seems you are using the CGI version. I've just compiled the nightly build and could work with IIS (XPSP1 IIS 5.1). 1. Which files do you have in your directory 2. How did you configure IIS 3. What was you url? I've used anonymous access and integrated security enabled Execute Permissions: Scrips and Executables Windows firewall disabled... Use filemon to check all of the files could be accessed... Tamas On Tue, 7 Mar 2006 10:07:41 -0600, John Cole wrote: >Howard, > I'm trying to get your 4.8.1 build (thank you for making that) to work >with IIS. Searching the website, there isn't a guide on setting this up. >I've gotten IIS to work with MS4W before, but I'm getting a 502 when I try >to hit this version. > > Mapserv -v returns the following: > >C:\Inetpub\cgi-bin>mapserv -v >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 SUPPO >RTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=SDE INPUT=POSTGIS INPUT=OGR >INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > >So I'm pretty sure it's ready to go, and I've also made a decent stab at >getting the permissions correct. Is there something that I've missed? > >I'm on XP SP2 IIS 5 > >Thanks, > >John Cole > >-----Original Message----- >From: Howard Butler [mailto:hobu at iastate.edu] >Sent: Monday, March 06, 2006 9:53 AM >To: John Cole; MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: C# mapscript... > >John, > >Grab the build kit. All of the dependencies have been built >already. All you have to worry about are gdal and mapserver. >ild-kit.zip> > >Make sure to edit nmake.opt for GDAL and make a clean GDAL (and then >do nmake /f makefile.vc install). Edit nmake.opt for MapServer, make >clean, and make install for MapServer and you should end up with a >csharp directory in ..\bin with the C# mapscript binaries. > >Catch me on IRC if you have questions. Then we can write a doc ;) > >Howard > >At 09:42 AM 3/6/2006, John Cole wrote: >>Tamas, >> Thanks for your help, some more questions now :-) >> >> I've switched to the nightly.tar.gz (because I couldn't figure out flex >>and bison) but I'm having trouble with libpng. I've checked their site and >>there isn't a lot of info on building with windows, much less building in >>VC8, how did you do it? I'm getting the following error trying to build >the >>libpng solution >> >>Error 1 fatal error A1000: cannot open file : >>c:\projects\zlib\contrib\masmx86\inffas32.asm MASM >> >>I have the zlib library but that file doesn't exist in it (nor does the >>masmx86 directory). >> >> Also, I was the nmake /F Makefile.vc was getting errors on not finding >>bgd_i.lib, so I changed those references to bgd.lib, is that OK? (it got >>past that). >> >>Thanks, >> >>John Cole >> >>-----Original Message----- >>From: Tamas Szekeres [mailto:szekeres.tamas at FREEMAIL.HU] >>Sent: Friday, March 03, 2006 3:58 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU; John Cole >>Subject: Re: C# mapscript... >> >>John, >> >>The parser and lexer files are not precompiled with the CVS version. You >>have at least 2 options to do: >> >>1. Use the nightly build instead containing theese files precompiled >> >>http://cvs.gis.umn.edu/dist/nightly.tar.gz >> >>2. Download flex and bison >> >>gnuwin32.sourceforge.net/packages/flex.htm >>gnuwin32.sourceforge.net/packages/bison.htm >> >>and generate theese files from mapparser.y and maplexer.l >> >>Best Regards, >> >> >>Tamas From iansgis at GMAIL.COM Tue Mar 7 15:59:13 2006 From: iansgis at GMAIL.COM (Ian) Date: Tue, 7 Mar 2006 17:59:13 -0600 Subject: Using mapsize in variable substitution Message-ID: How do you dynamically place text (eg. a copyright notice) in the bottom left corner of the map using the mapsize attributes? For the copyright I am using: LAYER # # COPYRIGHT # NAME copyright STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 10 600 END TEXT '© 2006 Me' END CLASS LABEL TYPE TRUETYPE FONT tahoma_bold SIZE 8 ANTIALIAS TRUE COLOR 255 255 255 FORCE TRUE END END END # LAYER So in the FEATURE POINTS section I need something like 10 %mapsize.height%-5 but haven't found any examples of people doing this. Thank you. From bob.basques at CI.STPAUL.MN.US Tue Mar 7 16:16:33 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Tue, 7 Mar 2006 18:16:33 -0600 Subject: Using mapsize in variable substitution In-Reply-To: Message-ID: Ian, Hmmm, I was told you couldn't do this when I asked about the same thing a couple of months ago. I had asked about a way to label arbitrarily just like inserting a SCALE in the lower Right corner, but there didn't seem to be a way to do it at the time. I recall putting in a bug I think. I would be interested in the results if you find a way to do this. bobb Ian wrote: > How do you dynamically place text (eg. a copyright notice) in the bottom > left corner of the map using the mapsize attributes? For the copyright I am > using: > > LAYER > # > # COPYRIGHT > # > NAME copyright > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > POINTS > 10 600 > END > TEXT '© 2006 Me' > END > CLASS > LABEL > TYPE TRUETYPE > FONT tahoma_bold > SIZE 8 > ANTIALIAS TRUE > COLOR 255 255 255 > FORCE TRUE > END > END > END # LAYER > > So in the FEATURE POINTS section I need something like 10 %mapsize.height%-5 > but haven't found any examples of people doing this. Thank you. > > From bpicinbono at WORLDONLINE.FR Tue Mar 7 16:33:51 2006 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Wed, 8 Mar 2006 01:33:51 +0100 Subject: Install at Shared Hosting Facility, can it be done??? In-Reply-To: <20060307192129.69055.qmail@web34807.mail.mud.yahoo.com> Message-ID: Keith, please post to the list so you'll get help from all and your exp will be shared. You can try setting mapserver on a shared host, it might work, or not, difficult to know without testing. Even if working, your shared host might not fit your serious needs (verbose a bit more). There are some professional mapserver hostings around, did you check ? With a serious web connection you could also setup and plugin your own server. You may start by the beginning ;) : on a local linux box, build a basic mapserver cgi (./configure without options), upload it to your shared server and try the test page : http://yourserver/cgi-bin/mapserv? What do you get ? Blaise On Tuesday 07 March 2006 20:21, keith fraley wrote: > Thanks blaise, > > I can load and run CGI scripts with my account. Does > this help? > > --- blaise wrote: > > On Tuesday 07 March 2006 00:03, KevinC (UD) wrote: > > > Keith Fraley wrote: > > > I am in serious need of setting up mapserver at my > > > hosting facility (lunarpages.com) I am on a > > > > shared > > > > > linux box with no access to shell, can I get this > > > installed? Where do I start? > > ***************************************************** > > > > In my opinion, no shell access means no realistic > > > > possibility of using > > > > > Mapserver. Ask your host how much co-location of > > > > your own Linux box would > > > > > cost. I pay $600/yr and consider it the only way > > > > to go. Of course, you > > > > > must educate yourself in Linux, then Apache, then > > > > finally MapServer. This > > > > > is a path not to be taken by those who give up > > > > easily. > > > > "serious need of setting up mapserver" and "I am on > > a shared linux box with no > > access to shell" might no fits... > > basic mapserer is a cgi, can you upload cgi to your > > server and have it running > > depending on its libs ? > > Few shared servers allow mapserver setups. I had one > > for a moment with full > > php_mapscript digitize mode, but it didn't last > > their updates )-: > > I think "serious [...] mapserver" and "shared linux > > box" might not fit... > > Blaise > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com From Antti.Roppola at BRS.GOV.AU Tue Mar 7 17:04:41 2006 From: Antti.Roppola at BRS.GOV.AU (Antti Roppola) Date: Wed, 8 Mar 2006 12:04:41 +1100 Subject: [UNCLASSIFIED] Parameterized WMS anyone? Message-ID: Hi all, Has anyone experimented with parameterised WMS in Mapserver? I have written a wrapper that modifies the GetCapabilities to include a VendorSpecificCapabilities item for "species" and subsitute a nominated species name into a PostGIS query (so that the one service can service all species and use a sensible default if a species is not given). Instead of fully wrapping the Mapserver CGI, I am just forwarding a refomatted request to the Mapserver CGI by using a Location: HTTP header. this works as expected in a web browser, but ArcGIS doesn't seem to like it. I expect that I actually need to be invoking the CGI and piping back the result so that the apparent URL doesn't change. However my current approach means my wrapper never actually executes anything using submitted variables. Cheers, Antti ---------------------------------------------------------------------- IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF ---------------------------------------------------------------------- From Antti.Roppola at BRS.GOV.AU Tue Mar 7 20:27:37 2006 From: Antti.Roppola at BRS.GOV.AU (Antti Roppola) Date: Wed, 8 Mar 2006 15:27:37 +1100 Subject: [UNCLASSIFIED]RE: [UMN_MAPSERVER-USERS] Security issue Message-ID: Hi James, Some options: Make sure the embedded accounts only have select against the tables that they need. Create a client account with the minumum prvileges required to function. Configure your webserver to not allow users to access map files, for Apache you could either set up a server wide directive to disallow "\.map$", or put all your map files in a directory outside the webroot or one that uses .htaccess to deny HTTP access (Mapserver will read them via the filesystem). Use Mapscript to dynamically create connection values from elsewhere at call time. Depending on your environment, it's not a whole lot different to how a lot of server side scripting environments already handle database connectivity: http://mavweb.net/asp-samples/database-connection-strings.asp (no-one has wobblies about .asp or .cfm pages containing connect strings) Also, if your DB is configured to only allow local connections, by the stage someone can actually use the purloined details they probably own your host system anyway. Regards, Antti _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of L?veill?, James Sent: Wednesday, 8 March 2006 7:26 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Security issue Hi all, I've been using MapServer for a few weeks (on a "development" server). I now have to set it up on a "production" server. My problem is the CONNECTION tag in the MapFile (Oracle). Guys from the IT really don't like to see the connection string in the flat file ... What are the different solutions I have ? Can the user/pw at instance string be encrypted on the server side ? Regards __________________________________________ James L?veill? Int?lec G?omatique 420, boul. Charest Est Bureau 400 Qu?bec (QC), Canada G1K 8M4 ---------------------------------------------------------------------- IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF ---------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Wolfgang.Qual at MUENCHEN.DE Wed Mar 8 01:49:03 2006 From: Wolfgang.Qual at MUENCHEN.DE (Wolfgang Qual) Date: Wed, 8 Mar 2006 10:49:03 +0100 Subject: (How) can I reduce the loading time of GRASS-layers in UMN Mapserver? Message-ID: Dear list, I created a mapfile for two identical themes: One of them is a shapfile, the other one is a grass vector dataset (connected via OGR). The shapefile contains a *.qix-file which was created using the program shptree. I compared the loading time for the two themes using the command "time wget -O /dev/null "http://path/to/the.map". Result: the grass theme took about 12 seconds (on a local machine), shapefile only 2s. When I rename the dbln-file (file which sets connection to attribute table / database), the map is drawn as fast as a *.qix-shapefile. However, doing that will disable query-functionality. This would be important for me, though. My Question therefore: is there a possibility to speed up grass layers in the mapserver application (something like shptree does?)? Declaration of the grass-layer in the mapfile: # OGR-Layer aus GRASS #_# START LAYER l8 LAYER NAME "l8" TYPE polygon STATUS ON CONNECTIONTYPE OGR CONNECTION "/home/wqual/grassdata/muenchen/stadtbezirk/vector/block/head" DATA "1" METADATA LTITLE "l8" END #metadata ### TYPE Polygon -- LEGTYPE 0x01 -- SYMTYPE 0x02 ### singlepolyleg CLASSITEM "cat" CLASS NAME "Block_GRASS" COLOR 255 0 0 OUTLINECOLOR 20 200 10 END #CLASS #_# LAYER l8 QUERY END # LAYER l8 I would be most grateful to receive some comments on this issue. Link to the grasslist [1], where I asked the same question. Best regards, Wolfgang [1] http://grass.itc.it/pipermail/grassuser/2006-March/032890.html -- Wolfgang Qual Landeshauptstadt M?nchen Referat f?r Gesundheit und Umwelt RGU-UW 11 Sg. 1 Gesundheits- und Umweltberichterstattung, Energie und Klimaschutz Bayerstr. 28a, 80335 M?nchen Tel.: +49 (0)89 233-477 17 Fax.: +49 (0)89 233-477 05 E-Mail: wolfgang.qual at muenchen.de From vdam73 at YAHOO.COM Wed Mar 8 01:33:22 2006 From: vdam73 at YAHOO.COM (Damiano Damiano) Date: Wed, 8 Mar 2006 01:33:22 -0800 Subject: Mapscript installation Message-ID: Hello I've this problem in Mapscript installation. Environment Linux RedHat ES 3.0 with Apache and PHP already installed and some other thirdy parties web applications. Question Does the library installation of php_mapscript.so absolutely require settings of the two environment variables: extension_dir and ld_library_path? Does exist another way that allows the use of php_mapscript.so without those settings? Ties We are obliged to use Apache and PHP already installed on the server. We cannot create another user or another instance of Apache Server. It is not possible to modify those environment variables because the other applications could not be working correctly. Thank's in advance, Damiano Vellucci __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From holl at GDF-HANNOVER.DE Wed Mar 8 02:31:07 2006 From: holl at GDF-HANNOVER.DE (Stephan Holl) Date: Wed, 8 Mar 2006 11:31:07 +0100 Subject: Projection issues on WFS-Server In-Reply-To: <440DE924.5020706@pobox.com> Message-ID: Hello Frank, On Tue, 7 Mar 2006 15:12:20 -0500 Frank Warmerdam wrote: > Stephan Holl wrote: > > GetCapabilities > > ... > > EPSG:4326 > > > maxy="2.5e+07"/> > > ... > > > > This should be from my understanding > > > > > > Perhaps you could provide a starting point where to look. > > Stephan, > > I would encourage you to upgrade to 4.8.1. Some aspect of > this has already been fixed, though I am not sure if it was the > layer level extents. It might just have been per-shape bounds > that was fixed. I have updated to 4.8.1 on my test-server and the same thing is still persistent. For clearance I have posted my layer definition. I have also checked that the correct srid is given in the geometry_columns for the specific layer: MAP ... Name "GRASS_USERMAP" EXTENT -180 -90 180 90 UNITS DD PROJECTION "init=epsg:4326" END ... WEB METADATA "DESCRIPTION" "testwfs" "wfs_title" "testwfs" "wfs_onlineresource""http://localhost/cgi-bin/wfs?" "wfs_srs" "EPSG:4326" END END ... LAYER CONNECTION "user=xxx password=xxx dbname=postgis host=localhost" CONNECTIONTYPE postgis DATA "wkb_geometry from (SELECT wkb_geometry, ogc_fid, column1, column2 FROM table) AS foo USING UNIQUE ogc_fid USING SRID=4326" TYPE POINT DUMP TRUE STATUS DEFAULT METADATA "wfs_title" "testwfs" ## REQUIRED "gml_include_items" "all" END NAME "testwfs" TOLERANCE 5 TOLERANCEUNITS PIXELS LABELITEM "name" LABELMINSCALE 0 LABELMAXSCALE 80000000 MINSCALE 0 MAXSCALE 8000000000 PROJECTION "init=epsg:4326" END CLASS NAME "GRASS-Users" END #class END #layer grass ... END > > I would suggest you look in mapwfs.c, search for > msOWSGetLayerExtent(). Diggin in the code will not help much since I am no programmer, just user. Thank you for your help. Stephan -- GDF Hannover - Solutions for spatial data analysis and remote sensing Hannover Office - Mengendamm 16d - D-30177 Hannover Internet: www.gdf-hannover.de - Email: holl at gdf-hannover.de Phone : ++49-(0)511.39088507 - Fax: ++49-(0)511.39088508 From luca76 at GMAIL.COM Wed Mar 8 02:43:44 2006 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Wed, 8 Mar 2006 11:43:44 +0100 Subject: Mapserver website dead? Message-ID: http://mapserver.gis.umn.edu/ give me no response... From janeks.kamerovskis at SILVA.LV Wed Mar 8 03:05:31 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Wed, 8 Mar 2006 13:05:31 +0200 Subject: Mapserver website dead? In-Reply-To: Message-ID: From netwiz at CRC.ID.AU Wed Mar 8 03:13:04 2006 From: netwiz at CRC.ID.AU (Steven Haigh) Date: Wed, 8 Mar 2006 22:13:04 +1100 Subject: Mapserver website dead? In-Reply-To: <002801c642a0$37a68ba0$790aa8c0@JANEKSXP> Message-ID: Looks like the host is up, but the web server is not responding or down... On Wed, March 8, 2006 10:05 pm, Janeks Kamerovskis wrote: > From me it looks the same! > > Janeks > > >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >> Behalf Of Luca Manganelli >> Sent: Wednesday, March 08, 2006 12:44 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] Mapserver website dead? >> >> http://mapserver.gis.umn.edu/ >> >> give me no response... > > -- Steven Haigh Email: netwiz at crc.id.au Web: http://www.crc.id.au Phone: (03) 9017 0597 - 0412 935 897 Sendmail is like emacs: A nice operating system, but missing an editor and a MTA. From umberto.nicoletti at GMAIL.COM Wed Mar 8 03:19:03 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 8 Mar 2006 12:19:03 +0100 Subject: Mapserver website dead? In-Reply-To: <11998.192.94.41.42.1141816384.squirrel@zeus.crc.id.au> Message-ID: zope/plone problems? On 3/8/06, Steven Haigh wrote: > Looks like the host is up, but the web server is not responding or down... > > On Wed, March 8, 2006 10:05 pm, Janeks Kamerovskis wrote: > > From me it looks the same! > > > > Janeks > > > > > >> -----Original Message----- > >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > >> Behalf Of Luca Manganelli > >> Sent: Wednesday, March 08, 2006 12:44 PM > >> To: MAPSERVER-USERS at LISTS.UMN.EDU > >> Subject: [UMN_MAPSERVER-USERS] Mapserver website dead? > >> > >> http://mapserver.gis.umn.edu/ > >> > >> give me no response... > > > > > > > -- > Steven Haigh > > Email: netwiz at crc.id.au > Web: http://www.crc.id.au > Phone: (03) 9017 0597 - 0412 935 897 > > Sendmail is like emacs: A nice operating system, but missing > an editor and a MTA. > From fabio.dovidio at PLANETEK.IT Wed Mar 8 03:47:22 2006 From: fabio.dovidio at PLANETEK.IT (Fabio D' Ovidio) Date: Wed, 8 Mar 2006 12:47:22 +0100 Subject: Editing geographic features on the WEB Message-ID: Dear list, I am interesting in creating a web site with editing capabilities on the geographic features. I know MapServer is also a WFS service but only a "read" WFS (no WFS-T !!) I'd like to Know if any Open Source framework built on MapServer as WMS (for example) and other server as WFS-T (to provide editing capabilities) exist. Thank you very much. ******************************************************************************************** Eng. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 15:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From gisaalter at GMAIL.COM Wed Mar 8 03:50:58 2006 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Wed, 8 Mar 2006 12:50:58 +0100 Subject: Editing geographic features on the WEB In-Reply-To: <440ED25A.22563.B7AF29@fabio.dovidio.planetek.it> Message-ID: Fabio, I'm sort of searching for the same thing. I think GeoServer with the Community Mapbuilder is an option. There's a demo provided with the Community Mapbuilder featuring edting WFS-T. Steven On 3/8/06, Fabio D' Ovidio wrote: > > Dear list, > > I am interesting in creating a web site with editing capabilities on the > geographic > features. > > I know MapServer is also a WFS service but only a "read" WFS (no WFS-T > !!) > I'd like to Know if any *Open Source* framework built on MapServer as WMS > (for example) > and other server as WFS-T (to provide editing capabilities) exist. > > Thank you very much. > > ******************************************************************************************** > [image: graphic] > * > * > * Eng. Fabio D'Ovidio* > WebGIS Staff > Planetek Italia Srl > via Massaua, 12 - 70123 Bari - Italy > web : http ://www.planetek.it > e-mail : dovidio at planetek.it > > > ******************************************************************************************** > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Mar 8 03:52:20 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Wed, 8 Mar 2006 03:52:20 -0800 Subject: Editing geographic features on the WEB Message-ID: Hi, MapBuilder provides such a framework based on WFS-T. Mostly used back-end then is Geoserver. But it can deal with any WMS such as Mapserver for the images. http://docs.codehaus.org/display/MAP/Home/ Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Fabio D' Ovidio Verzonden: woensdag 8 maart 2006 12:47 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Editing geographic features on the WEB Dear list, I am interesting in creating a web site with editing capabilities on the geographic features. I know MapServer is also a WFS service but only a "read" WFS (no WFS-T !!) I'd like to Know if any Open Source framework built on MapServer as WMS (for example) and other server as WFS-T (to provide editing capabilities) exist. Thank you very much. **************************************************************************** **************** graphic Eng. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it **************************************************************************** **************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From bpicinbono at WORLDONLINE.FR Wed Mar 8 04:19:17 2006 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Wed, 8 Mar 2006 13:19:17 +0100 Subject: Editing geographic features on the WEB In-Reply-To: <440ED25A.22563.B7AF29@fabio.dovidio.planetek.it> Message-ID: On Wednesday 08 March 2006 12:47, Fabio D' Ovidio wrote: > Dear list, > > I am interesting in creating a web site with editing capabilities on the > geographic features. > > I know MapServer is also a WFS service but only a "read" WFS (no WFS-T !!) > I'd like to Know if any Open Source framework built on MapServer as WMS > (for example) and other server as WFS-T (to provide editing capabilities) > exist. > > Thank you very much. Flavio You want to add, delete and update geographic features (points, lines and polygons) inside a mapserver application; do I get it right, I am not sure ? Mapscript allows you to do all that (and more). I build several applications with editing possibilities with php_mapscript. Some basics ones with html interfaces (a bit slow to digitize a big polygon as it reloads the image after each digitized vertex); and some more complex ones with java or flash interface. It works great, but of course you'll have to go through a little bit of code... Blaise From kfraleytx at YAHOO.COM Wed Mar 8 04:52:04 2006 From: kfraleytx at YAHOO.COM (keith fraley) Date: Wed, 8 Mar 2006 04:52:04 -0800 Subject: Install at Shared Hosting Facility, can it be done??? In-Reply-To: <200603080133.51838.bpicinbono@worldonline.fr> Message-ID: Sorry about that Blaise, I just realized that I didnt reply to the group. Question, If I just compile map server with no options, will I still be able to build a web service front end based on php? Thanks! --- blaise wrote: > Keith, please post to the list so you'll get help > from all and your exp will > be shared. > You can try setting mapserver on a shared host, it > might work, or not, > difficult to know without testing. Even if working, > your shared host might > not fit your serious needs (verbose a bit more). > There are some professional > mapserver hostings around, did you check ? With a > serious web connection you > could also setup and plugin your own server. > You may start by the beginning ;) : on a local linux > box, build a basic > mapserver cgi (./configure without options), upload > it to your shared server > and try the test page : > http://yourserver/cgi-bin/mapserv? > What do you get ? > Blaise > > > On Tuesday 07 March 2006 20:21, keith fraley wrote: > > Thanks blaise, > > > > I can load and run CGI scripts with my account. > Does > > this help? > > > > --- blaise wrote: > > > On Tuesday 07 March 2006 00:03, KevinC (UD) > wrote: > > > > Keith Fraley wrote: > > > > I am in serious need of setting up mapserver > at my > > > > hosting facility (lunarpages.com) I am on a > > > > > > shared > > > > > > > linux box with no access to shell, can I get > this > > > > installed? Where do I start? > > > > > ***************************************************** > > > > > > In my opinion, no shell access means no > realistic > > > > > > possibility of using > > > > > > > Mapserver. Ask your host how much co-location > of > > > > > > your own Linux box would > > > > > > > cost. I pay $600/yr and consider it the only > way > > > > > > to go. Of course, you > > > > > > > must educate yourself in Linux, then Apache, > then > > > > > > finally MapServer. This > > > > > > > is a path not to be taken by those who give up > > > > > > easily. > > > > > > "serious need of setting up mapserver" and "I am > on > > > a shared linux box with no > > > access to shell" might no fits... > > > basic mapserer is a cgi, can you upload cgi to > your > > > server and have it running > > > depending on its libs ? > > > Few shared servers allow mapserver setups. I had > one > > > for a moment with full > > > php_mapscript digitize mode, but it didn't last > > > their updates )-: > > > I think "serious [...] mapserver" and "shared > linux > > > box" might not fit... > > > Blaise > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From bpicinbono at WORLDONLINE.FR Wed Mar 8 05:37:01 2006 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Wed, 8 Mar 2006 14:37:01 +0100 Subject: Install at Shared Hosting Facility, can it be done??? In-Reply-To: <20060308125204.66472.qmail@web34811.mail.mud.yahoo.com> Message-ID: Do you mean you want to use php_mapscript on your shared host ? It might work depending on your shared host. But you should start with basics : setup mapserver cgi. If ok, then you'll try php_mapscript, but if not, then it's likely that php_mapscript won't neither. You should start with very basic config, and then upgrade to more complex stuff. If not, it'll be hell to debug. Just try the cgi to see if your shared host has got the graphics libs required by mapserver. Blaise On Wednesday 08 March 2006 13:52, keith fraley wrote: > Sorry about that Blaise, I just realized that I didnt > reply to the group. > > Question, If I just compile map server with no > options, will I still be able to build a web service > front end based on php? > > Thanks! > > --- blaise wrote: > > Keith, please post to the list so you'll get help > > from all and your exp will > > be shared. > > You can try setting mapserver on a shared host, it > > might work, or not, > > difficult to know without testing. Even if working, > > your shared host might > > not fit your serious needs (verbose a bit more). > > There are some professional > > mapserver hostings around, did you check ? With a > > serious web connection you > > could also setup and plugin your own server. > > You may start by the beginning ;) : on a local linux > > box, build a basic > > mapserver cgi (./configure without options), upload > > it to your shared server > > and try the test page : > > http://yourserver/cgi-bin/mapserv? > > What do you get ? > > Blaise > > > > On Tuesday 07 March 2006 20:21, keith fraley wrote: > > > Thanks blaise, > > > > > > I can load and run CGI scripts with my account. > > > > Does > > > > > this help? > > > > > > --- blaise wrote: > > > > On Tuesday 07 March 2006 00:03, KevinC (UD) > > > > wrote: > > > > > Keith Fraley wrote: > > > > > I am in serious need of setting up mapserver > > > > at my > > > > > > > hosting facility (lunarpages.com) I am on a > > > > > > > > shared > > > > > > > > > linux box with no access to shell, can I get > > > > this > > > > > > > installed? Where do I start? > > ***************************************************** > > > > > > In my opinion, no shell access means no > > > > realistic > > > > > > possibility of using > > > > > > > > > Mapserver. Ask your host how much co-location > > > > of > > > > > > your own Linux box would > > > > > > > > > cost. I pay $600/yr and consider it the only > > > > way > > > > > > to go. Of course, you > > > > > > > > > must educate yourself in Linux, then Apache, > > > > then > > > > > > finally MapServer. This > > > > > > > > > is a path not to be taken by those who give up > > > > > > > > easily. > > > > > > > > "serious need of setting up mapserver" and "I am > > > > on > > > > > > a shared linux box with no > > > > access to shell" might no fits... > > > > basic mapserer is a cgi, can you upload cgi to > > > > your > > > > > > server and have it running > > > > depending on its libs ? > > > > Few shared servers allow mapserver setups. I had > > > > one > > > > > > for a moment with full > > > > php_mapscript digitize mode, but it didn't last > > > > their updates )-: > > > > I think "serious [...] mapserver" and "shared > > > > linux > > > > > > box" might not fit... > > > > Blaise > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Tired of spam? Yahoo! Mail has the best spam > > > > protection around > > > > > http://mail.yahoo.com > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com From hydromap at GMAIL.COM Wed Mar 8 05:40:36 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Thu, 9 Mar 2006 00:40:36 +1100 Subject: Editing geographic features on the WEB In-Reply-To: <200603081319.17714.bpicinbono@worldonline.fr> Message-ID: check out this thread: http://postgis.refractions.net/pipermail/postgis-users/2005-December/010226.html we have had quite a bit success following the 3 tier approach: Mapbuilder <--> Geoserver <--> PostGIS Mind you we have yet to be test the performance under high load. On 3/8/06, blaise wrote: > > On Wednesday 08 March 2006 12:47, Fabio D' Ovidio wrote: > > Dear list, > > > > I am interesting in creating a web site with editing capabilities on the > > geographic features. > > > > I know MapServer is also a WFS service but only a "read" WFS (no WFS-T > !!) > > I'd like to Know if any Open Source framework built on MapServer as WMS > > (for example) and other server as WFS-T (to provide editing > capabilities) > > exist. > > > > Thank you very much. > > Flavio > You want to add, delete and update geographic features (points, lines and > polygons) inside a mapserver application; do I get it right, I am not sure > ? > Mapscript allows you to do all that (and more). I build several > applications > with editing possibilities with php_mapscript. Some basics ones with html > interfaces (a bit slow to digitize a big polygon as it reloads the image > after each digitized vertex); and some more complex ones with java or > flash > interface. It works great, but of course you'll have to go through a > little > bit of code... > Blaise > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpicinbono at WORLDONLINE.FR Wed Mar 8 05:49:59 2006 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Wed, 8 Mar 2006 14:49:59 +0100 Subject: Editing geographic features on the WEB In-Reply-To: <20060308133139.34994.qmail@web31602.mail.mud.yahoo.com> Message-ID: Apeksha, please post to the list so you'll get help from all and your exp will be shared. I can help with mapserver and mapscript, but I'm not aware about MediaWiki, I'm sorry. Maybe other on the list will help you. Blaise On Wednesday 08 March 2006 14:31, Apeksha Bhambhani wrote: > Hi , > > Well could you please help me ?? I have developed a web mapping > application. One , which takes user clicks and plots points on that map. We > have already done this but dont know how to integrate it with MediaWiki. Do > you have any idea? how can we make it a plug in for MediaWiki. > > please help. > Apeksha > > blaise wrote: > > On Wednesday 08 March 2006 12:47, Fabio D' Ovidio wrote: > > Dear list, > > > > I am interesting in creating a web site with editing capabilities on the > > geographic features. > > > > I know MapServer is also a WFS service but only a "read" WFS (no WFS-T > > !!) I'd like to Know if any Open Source framework built on MapServer as > > WMS (for example) and other server as WFS-T (to provide editing > > capabilities) exist. > > > > Thank you very much. > > Flavio > You want to add, delete and update geographic features (points, lines and > polygons) inside a mapserver application; do I get it right, I am not sure > ? Mapscript allows you to do all that (and more). I build several > applications with editing possibilities with php_mapscript. Some basics > ones with html interfaces (a bit slow to digitize a big polygon as it > reloads the image after each digitized vertex); and some more complex ones > with java or flash interface. It works great, but of course you'll have to > go through a little bit of code... > Blaise > > > > --------------------------------- > Yahoo! Mail > Bring photos to life! New PhotoMail makes sharing a breeze. From kevinc at UPTIMEDATA.COM Wed Mar 8 05:52:05 2006 From: kevinc at UPTIMEDATA.COM (KevinC (UD)) Date: Wed, 8 Mar 2006 07:52:05 -0600 Subject: How to edit your PostGIS data Message-ID: On Mar03 Christian Wolf wrote: Since a lot of people are using Mapserver together with a PostGIS db I'm curious as how you maintain your data? It seems there are no Tools to visually add/delete/edit spacial data in a safe and reliable way. OpenJUMP, uDig, QGis, GDV Spatial Command, they all show data alright, but come editing, they all more or less fail. Is the only way to maintain your spatial data up to date by editing shapefiles (or similar) and importing them to the db? I'm just looking for a reliable way of users adding/modifying a line or splitting a polygon once in while. Do I really have to my own tool to access the db directly? How do YOU handle this? I'm sure I'm not the only one with these tasks at hand **************************************************************************** There were no replies to the List. Does anyone have any public help here? From warmerdam at POBOX.COM Wed Mar 8 06:09:15 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 8 Mar 2006 09:09:15 -0500 Subject: Projection issues on WFS-Server In-Reply-To: <20060308113107.038d09fb@bambule.gdf-hannover.de> Message-ID: Stephan Holl wrote: > Hello Frank, > > On Tue, 7 Mar 2006 15:12:20 -0500 Frank Warmerdam > wrote: > >> Stephan Holl wrote: >>> GetCapabilities >>> ... >>> EPSG:4326 >>> >> maxy="2.5e+07"/> >>> ... >>> >>> This should be from my understanding >>> Stephan, Looking more closely at your bounding box, it doesn't really look like it hasn't been reprojected. It looks more like it was unitialized or defaulted somehow since all the values are the same. I am also starting to wonder if this is an issue specific to PostGIS. I'm no WFS nor PostGIS-in-MapServer guru. My suggestion is you try and reproduce the problem from shapefiles. If you can reproduce it from shapefiles, then you should submit a bug report with a dataset, map and the exact WFS query to reproduce the problem. You should test the WFS query against mapserv at the commandline to maximally ensure it will be easy for the bug fixer to reproduce. If you can't reproduce the problem with a shapefile, then I suspect the issue is somehow related to WFS interacting with the PostGIS driver. You likely still ought to file a bug, but it will likely be hard to bundle things up to make it easy for a bug fixer to reproduce. 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 OSGF, http://osgeo.org From assefa at DMSOLUTIONS.CA Wed Mar 8 06:30:03 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 8 Mar 2006 09:30:03 -0500 Subject: Projection issues on WFS-Server In-Reply-To: <440EE58B.4020303@pobox.com> Message-ID: Stephan, From what I have seen, this happens when the layer does not have a projection object (with possibly an espg code) that reflects the projection of your layer. This can easily be reproduced if I set a projection object at the map level (or metadata wfs_srs = "EPSG:4326") and I use a layer which is not in lat/long and does not have a projection object. In that case the default fallback is to assume that the layer is the same projection as the map. If the layer has a valid projection, there will be a reprojection of the extents. Stephan, is this the case for you ? Frank Warmerdam wrote: > Stephan Holl wrote: > >> Hello Frank, >> >> On Tue, 7 Mar 2006 15:12:20 -0500 Frank Warmerdam >> wrote: >> >>> Stephan Holl wrote: >>> >>>> GetCapabilities >>>> ... >>>> EPSG:4326 >>>> >>> maxy="2.5e+07"/> >>>> ... >>>> >>>> This should be from my understanding >>>> > > > Stephan, > > Looking more closely at your bounding box, it doesn't really look > like it hasn't been reprojected. It looks more like it was unitialized > or defaulted somehow since all the values are the same. > > I am also starting to wonder if this is an issue specific to PostGIS. > > I'm no WFS nor PostGIS-in-MapServer guru. My suggestion is you try > and reproduce the problem from shapefiles. If you can reproduce it > from shapefiles, then you should submit a bug report with a dataset, > map and the exact WFS query to reproduce the problem. You should > test the WFS query against mapserv at the commandline to maximally > ensure it will be easy for the bug fixer to reproduce. > > If you can't reproduce the problem with a shapefile, then I suspect > the issue is somehow related to WFS interacting with the PostGIS driver. > You likely still ought to file a bug, but it will likely be hard to > bundle things up to make it easy for a bug fixer to reproduce. > > Best regards, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From bluecarto at GMAIL.COM Wed Mar 8 06:39:20 2006 From: bluecarto at GMAIL.COM (Pierre GIRAUD) Date: Wed, 8 Mar 2006 15:39:20 +0100 Subject: Editing geographic features on the WEB In-Reply-To: <440ED25A.22563.B7AF29@fabio.dovidio.planetek.it> Message-ID: Have a look at Cartoweb 3.2. There's an edition plugin that allows you to edit features with a DHTML interface and a postGIS database. http://www.cartoweb.org/ Regards Pierre GIRAUD On 3/8/06, Fabio D' Ovidio wrote: > > Dear list, > > I am interesting in creating a web site with editing capabilities on the > geographic > features. > > I know MapServer is also a WFS service but only a "read" WFS (no WFS-T > !!) > I'd like to Know if any *Open Source* framework built on MapServer as WMS > (for example) > and other server as WFS-T (to provide editing capabilities) exist. > > Thank you very much. > > ******************************************************************************************** > [image: graphic] > * > * > * Eng. Fabio D'Ovidio* > WebGIS Staff > Planetek Italia Srl > via Massaua, 12 - 70123 Bari - Italy > web : http ://www.planetek.it > e-mail : dovidio at planetek.it > > > ******************************************************************************************** > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at REFRACTIONS.NET Wed Mar 8 07:07:01 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 8 Mar 2006 07:07:01 -0800 Subject: How to edit your PostGIS data In-Reply-To: <001401c642b7$81e73720$6701a8c0@vio3> Message-ID: For one of our projects we have a fairly customized JUMP interface. For general purpose you need to cut uDig a little more slack, or at least wait until the 1.1 release until you darn us to heck. For another project we still do a mix of dump and restore loops through FME and ArcView. P On 8-Mar-06, at 5:52 AM, KevinC (UD) wrote: > On Mar03 Christian Wolf wrote: > > Since a lot of people are using Mapserver together with a PostGIS > db I'm > curious as how you maintain your data? > > It seems there are no Tools to visually add/delete/edit spacial > data in a > safe and reliable way. OpenJUMP, uDig, QGis, GDV Spatial Command, > they all > show data alright, but come editing, they all more or less fail. > > Is the only way to maintain your spatial data up to date by editing > shapefiles (or similar) and importing them to the db? > > I'm just looking for a reliable way of users adding/modifying a > line or > splitting a polygon once in while. > > Do I really have to my own tool to access the db directly? > > How do YOU handle this? I'm sure I'm not the only one with these > tasks at hand > > ********************************************************************** > ****** > > There were no replies to the List. Does anyone have any public > help here? From frederic.mauro at VEREMES.COM Wed Mar 8 08:02:01 2006 From: frederic.mauro at VEREMES.COM (Fr=?ISO-8859-1?Q?=E9d=E9ric?= Mauro) Date: Wed, 8 Mar 2006 10:02:01 -0600 Subject: ECW SDK 3.3 libraries and sources Message-ID: Hi list, I recently had a problem with some ECW data (Mapserver crashes when the scale is too big, for example 1/2000). I use GDAL 1.3.1, compiled using the ecwsdk-3.1.25Jan05-linux.tar.tar archive provided by Frank Warmerdam in January 2005. I would like to re-compile GDAL using newer ECW libraries and sources. I know I can get these resources in the last FWTools archive for linux, but I am not really sure which files I must extract from it. I guess the ECW libraries contained in the archive are : libNCSCNet.so libNCSEcw.so libNCSEcwC.so libNCSUtil.so What about the source files (*.h files) needed to compile GDAL ? Regards. From bpicinbono at WORLDONLINE.FR Wed Mar 8 08:30:19 2006 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Wed, 8 Mar 2006 17:30:19 +0100 Subject: Editing geographic features on the WEB In-Reply-To: Message-ID: Your dhtml is real nice Pierre, but the edition demo layer system behaves weirdly here. I sent you a message on the "edition lines" layer, but it only shows when I edit any line of this layer. It seems there are two different sets of the "edition lines" layer, and "edition polygones" layer as well. Is it because of you somehow caching the anonymous updates, or because of my browsers engine/options (mozilla-konqueror) ? Blaise On Wednesday 08 March 2006 15:39, Pierre GIRAUD wrote: > Have a look at Cartoweb 3.2. > There's an edition plugin that allows you to edit features with a DHTML > interface and a postGIS database. > http://www.cartoweb.org/ > > Regards > > Pierre GIRAUD > > On 3/8/06, Fabio D' Ovidio wrote: > > Dear list, > > > > I am interesting in creating a web site with editing capabilities on the > > geographic > > features. > > > > I know MapServer is also a WFS service but only a "read" WFS (no WFS-T > > !!) > > I'd like to Know if any *Open Source* framework built on MapServer as WMS > > (for example) > > and other server as WFS-T (to provide editing capabilities) exist. > > > > Thank you very much. > > > > ************************************************************************* > >******************* [image: graphic] > > * > > * > > * Eng. Fabio D'Ovidio* > > WebGIS Staff > > Planetek Italia Srl > > via Massaua, 12 - 70123 Bari - Italy > > web : http ://www.planetek.it > > e-mail : dovidio at planetek.it > > > > > > ************************************************************************* > >******************* From perrygeo at GMAIL.COM Wed Mar 8 08:42:23 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Wed, 8 Mar 2006 08:42:23 -0800 Subject: How to edit your PostGIS data In-Reply-To: <001401c642b7$81e73720$6701a8c0@vio3> Message-ID: Christian, CadCorp MapEditor can read/write postgis data and has a full CAD-like vector editing toolkit. For open source solutions, try out the latest UDig release which has a good set of editing tools. It's a little buggy but it works. Certainly something to look forward to when 1.1 is released. Matt On 3/8/06, KevinC (UD) wrote: > On Mar03 Christian Wolf wrote: > > Since a lot of people are using Mapserver together with a PostGIS db I'm > curious as how you maintain your data? > > It seems there are no Tools to visually add/delete/edit spacial data in a > safe and reliable way. OpenJUMP, uDig, QGis, GDV Spatial Command, they all > show data alright, but come editing, they all more or less fail. > > Is the only way to maintain your spatial data up to date by editing > shapefiles (or similar) and importing them to the db? > > I'm just looking for a reliable way of users adding/modifying a line or > splitting a polygon once in while. > > Do I really have to my own tool to access the db directly? > > How do YOU handle this? I'm sure I'm not the only one with these tasks at > hand > > **************************************************************************** > > There were no replies to the List. Does anyone have any public help here? > -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From kfraleytx at YAHOO.COM Wed Mar 8 08:47:05 2006 From: kfraleytx at YAHOO.COM (keith fraley) Date: Wed, 8 Mar 2006 08:47:05 -0800 Subject: Install at Shared Hosting Facility, can it be done??? In-Reply-To: <200603081437.01560.bpicinbono@worldonline.fr> Message-ID: Thanks, I will give it a run! --- blaise wrote: > Do you mean you want to use php_mapscript on your > shared host ? > It might work depending on your shared host. But you > should start with > basics : setup mapserver cgi. If ok, then you'll try > php_mapscript, but if > not, then it's likely that php_mapscript won't > neither. > You should start with very basic config, and then > upgrade to more complex > stuff. If not, it'll be hell to debug. > Just try the cgi to see if your shared host has got > the graphics libs required > by mapserver. > Blaise > > > On Wednesday 08 March 2006 13:52, keith fraley > wrote: > > Sorry about that Blaise, I just realized that I > didnt > > reply to the group. > > > > Question, If I just compile map server with no > > options, will I still be able to build a web > service > > front end based on php? > > > > Thanks! > > > > --- blaise wrote: > > > Keith, please post to the list so you'll get > help > > > from all and your exp will > > > be shared. > > > You can try setting mapserver on a shared host, > it > > > might work, or not, > > > difficult to know without testing. Even if > working, > > > your shared host might > > > not fit your serious needs (verbose a bit more). > > > There are some professional > > > mapserver hostings around, did you check ? With > a > > > serious web connection you > > > could also setup and plugin your own server. > > > You may start by the beginning ;) : on a local > linux > > > box, build a basic > > > mapserver cgi (./configure without options), > upload > > > it to your shared server > > > and try the test page : > > > http://yourserver/cgi-bin/mapserv? > > > What do you get ? > > > Blaise > > > > > > On Tuesday 07 March 2006 20:21, keith fraley > wrote: > > > > Thanks blaise, > > > > > > > > I can load and run CGI scripts with my > account. > > > > > > Does > > > > > > > this help? > > > > > > > > --- blaise wrote: > > > > > On Tuesday 07 March 2006 00:03, KevinC (UD) > > > > > > wrote: > > > > > > Keith Fraley wrote: > > > > > > I am in serious need of setting up > mapserver > > > > > > at my > > > > > > > > > hosting facility (lunarpages.com) I am on > a > > > > > > > > > > shared > > > > > > > > > > > linux box with no access to shell, can I > get > > > > > > this > > > > > > > > > installed? Where do I start? > > > > > ***************************************************** > > > > > > > > In my opinion, no shell access means no > > > > > > realistic > > > > > > > > possibility of using > > > > > > > > > > > Mapserver. Ask your host how much > co-location > > > > > > of > > > > > > > > your own Linux box would > > > > > > > > > > > cost. I pay $600/yr and consider it the > only > > > > > > way > > > > > > > > to go. Of course, you > > > > > > > > > > > must educate yourself in Linux, then > Apache, > > > > > > then > > > > > > > > finally MapServer. This > > > > > > > > > > > is a path not to be taken by those who > give up > > > > > > > > > > easily. > > > > > > > > > > "serious need of setting up mapserver" and > "I am > > > > > > on > > > > > > > > a shared linux box with no > > > > > access to shell" might no fits... > > > > > basic mapserer is a cgi, can you upload cgi > to > > > > > > your > > > > > > > > server and have it running > > > > > depending on its libs ? > > > > > Few shared servers allow mapserver setups. I > had > > > > > > one > > > > > > > > for a moment with full > > > > > php_mapscript digitize mode, but it didn't > last > > > > > their updates )-: > > > > > I think "serious [...] mapserver" and > "shared > > > > > > linux > > > > > > > > box" might not fit... > > > > > Blaise > > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > Tired of spam? Yahoo! Mail has the best spam > > > > > > protection around > > > > > > > http://mail.yahoo.com > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From aaronkoning at GMAIL.COM Wed Mar 8 09:13:34 2006 From: aaronkoning at GMAIL.COM (Aaron Koning) Date: Wed, 8 Mar 2006 09:13:34 -0800 Subject: Editing geographic features on the WEB In-Reply-To: <440ED25A.22563.B7AF29@fabio.dovidio.planetek.it> Message-ID: The Flexible Internet Spatial Template (FIST -> http://datashare.gis.unbc.ca/fist/) has 11 tools for adding, replacing, modifying, removing and importing spatial and attribute data into PostGIS layers. Demo here: http://fist.gis.unbc.ca/fist/fistMain.php?site=pothole_reporter Aaron On 3/8/06, Fabio D' Ovidio wrote: > > Dear list, > > I am interesting in creating a web site with editing capabilities on the > geographic > features. > > I know MapServer is also a WFS service but only a "read" WFS (no WFS-T > !!) > I'd like to Know if any *Open Source* framework built on MapServer as WMS > (for example) > and other server as WFS-T (to provide editing capabilities) exist. > > Thank you very much. > > ******************************************************************************************** > [image: graphic] > * > * > * Eng. Fabio D'Ovidio* > WebGIS Staff > Planetek Italia Srl > via Massaua, 12 - 70123 Bari - Italy > web : http ://www.planetek.it > e-mail : dovidio at planetek.it > > > ******************************************************************************************** > > -- +-------------------------------------------- | Aaron Koning | Information Technologist | Prince George, BC, Canada. +-------------------------------------------- | http://datashare.gis.unbc.ca/fist/ | http://datashare.gis.unbc.ca/gctp-js/ +-------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From markadams at CUESTASYS.COM Wed Mar 8 13:37:59 2006 From: markadams at CUESTASYS.COM (Mark Adams) Date: Wed, 8 Mar 2006 15:37:59 -0600 Subject: Fatal error: [MapServer Error]: msSDELayerGetShape(): Message-ID: I have had the same problem as Ruth reported below. Has anyone else seen this or know of a possible reason? Thanks in advance. -Mark Adams mark.adams at dpra.com On Wed, 22 Feb 2006 13:47:40 +0100, =?iso-8859-1?q? ruth=20sch=FFfffff6nbuchner?= wrote: > >Dear people, > > I have got a problem querying a layer with ArcSDE and a created >pointobj(); > In my mapfile I definded the correct parameters for the >ArcSDE-Connection because I can display the layers without any problems. > > When I want to query a layer, it says: > Fatal error: [MapServer Error]: msSDELayerGetShape(): >SE_stream_fetch_row(): Invalid pointer argument to function. (-65) in >/../../webgis.php on line 142 > > Line 142 of my webgis.php says the following: > $Shape = $Abfragelayer->getShape($ti,$si); > > bevor line 142 I defined the queryable layer and the results: > //create point object and querybypoint > $punkt=ms_newPointObj(); > $punkt ->setXY($x_real,$y_real); > @$map ->queryByPoint($punkt, MS_SINGLE, -1); > > //test, if query was succesful > if((@$map ->queryByPoint($punkt, MS_SINGLE, -1))==MS_SUCCESS){ > $Abfrage="Abfrage hat geklappt"; > > //find queryable layer > for($iLayer=0; $iLayer < $map->numlayers; $iLayer++) > { > $Abfragelayer = $map->GetLayer($iLayer); > > $numResults = $Abfragelayer ->getNumResults(); > > if ($numResults == 0) > continue; > > //open table of queryable layer and read row > $Abfragelayer->open(); > > $Spalte=explode(" ",$Abfragelayer->getMetaData("RESULT_FIELDS")); > > //read entry of row > > //define specific object of shape > $resultat=$Abfragelayer->getResult(0); > > $si=$resultat->shapeindex; > $ti=$resultat->tileindex; > $ci=$resultat->classindex; > > $Shape = $Abfragelayer->getShape($ti,$si); > > Surely I made something wrong with correct options and parameters >regarding to ArcSDE in my php-script, because I am newbie to MapScript > > Can anybody help? Regards, Ruth > > >--------------------------------- >Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC! >Jetzt Yahoo! Messenger installieren! From hobu at IASTATE.EDU Wed Mar 8 13:39:38 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 8 Mar 2006 15:39:38 -0600 Subject: Fatal error: [MapServer Error]: msSDELayerGetShape(): In-Reply-To: Message-ID: update to cvs. This has been fixed and should be available in 4.8.2 when it comes out At 03:37 PM 3/8/2006, Mark Adams wrote: >I have had the same problem as Ruth reported below. Has anyone else seen >this or know of a possible reason? > >Thanks in advance. > >-Mark Adams >mark.adams at dpra.com > >On Wed, 22 Feb 2006 13:47:40 +0100, =?iso-8859-1?q? >ruth=20sch=FFfffff6nbuchner?= wrote: > > > > >Dear people, > > > > I have got a problem querying a layer with ArcSDE and a created > >pointobj(); > > In my mapfile I definded the correct parameters for the > >ArcSDE-Connection because I can display the layers without any problems. > > > > When I want to query a layer, it says: > > Fatal error: [MapServer Error]: msSDELayerGetShape(): > >SE_stream_fetch_row(): Invalid pointer argument to function. (-65) in > >/../../webgis.php on line 142 > > > > Line 142 of my webgis.php says the following: > > $Shape = $Abfragelayer->getShape($ti,$si); > > > > bevor line 142 I defined the queryable layer and the results: > > //create point object and querybypoint > > $punkt=ms_newPointObj(); > > $punkt ->setXY($x_real,$y_real); > > @$map ->queryByPoint($punkt, MS_SINGLE, -1); > > > > //test, if query was succesful > > if((@$map ->queryByPoint($punkt, MS_SINGLE, -1))==MS_SUCCESS){ > > $Abfrage="Abfrage hat geklappt"; > > > > //find queryable layer > > for($iLayer=0; $iLayer < $map->numlayers; $iLayer++) > > { > > $Abfragelayer = $map->GetLayer($iLayer); > > > > $numResults = $Abfragelayer ->getNumResults(); > > > > if ($numResults == 0) > > continue; > > > > //open table of queryable layer and read row > > $Abfragelayer->open(); > > > > $Spalte=explode(" ",$Abfragelayer->getMetaData("RESULT_FIELDS")); > > > > //read entry of row > > > > //define specific object of shape > > $resultat=$Abfragelayer->getResult(0); > > > > $si=$resultat->shapeindex; > > $ti=$resultat->tileindex; > > $ci=$resultat->classindex; > > > > $Shape = $Abfragelayer->getShape($ti,$si); > > > > Surely I made something wrong with correct options and parameters > >regarding to ArcSDE in my php-script, because I am newbie to MapScript > > > > Can anybody help? Regards, Ruth > > > > > >--------------------------------- > >Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC! > >Jetzt Yahoo! Messenger installieren! From tim.bowden at WESTNET.COM.AU Wed Mar 8 22:04:19 2006 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Thu, 9 Mar 2006 14:04:19 +0800 Subject: fastcgi & mapserver In-Reply-To: <440DF069.1070601@pobox.com> Message-ID: On Tue, 2006-03-07 at 15:43 -0500, Frank Warmerdam wrote: > Tim Bowden wrote: > > Hi, > > > > We have been testing mapserver with fastcgi and it is much faster > > getting data from sde sources than as a plain old cgi app. Our problem > > with it is using a wrapper script- The wrapper script is not a fastcgi > > application and when we call mapserv from within the wrapper script it > > doesn't get treated as a fastcgi application. Does anyone have any > > pointers as to how we can mix the two? > > Tim, > > Interesting point. Is the wrapper script just a shell script setting > some environment variables? While I generally like this approach, for > fastcgi you may be better off setting the environment variables in > the apache conf. > > My fastcgi apache conf on linux looks like: > > LoadModule fastcgi_module modules/mod_fastcgi.so > AddHandler fastcgi-script fcgi > FastCgiConfig -initial-env > LD_LIBRARY_PATH=/home/warmerda/gdal:/usr/local/pgsql/lib:/usr/local/lib:/usr/local/grass-6.0.0/lib:/usr/local/lib/mysql > > I assume you can use the -initial-env switch to set more variables if > needed. Of course, if you want to have different settings for different > services this approach may not work easily. > > Fastcgi can be quirky for stuff like this! > > Best regards, We were using a simple bash script as the wrapper to set lib paths and map file locations. One of our main aims was to remove the map= part of the url. I know it's supposed to be legal in the ogc specs but we have had users reporting problems with certain apps (not sure which ones). The easiest way for us to solve the problem looks like url re-writing done by an apache reverse proxy we have sitting in front of the whole shebang. It would be nice though if fastcgi was easier to use. Oh, well. Thanks, Tim Bowden -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From chris at NARX.NET Wed Mar 8 22:40:23 2006 From: chris at NARX.NET (Chris Tweedie) Date: Thu, 9 Mar 2006 14:40:23 +0800 Subject: fastcgi & mapserver In-Reply-To: <1141884259.4157.13.camel@localhost.localdomain> Message-ID: Tim, try using something like SetEnvIf Request_URI "/mapserv.fcgi" MS_MAPFILE=/hello/mr/mapfile.map in your apache http conf. It works for me at home anyway (in the sense that it is still invoked as fastcgi) Chris Quoting Tim Bowden : > On Tue, 2006-03-07 at 15:43 -0500, Frank Warmerdam wrote: >> Tim Bowden wrote: >> > Hi, >> > >> > We have been testing mapserver with fastcgi and it is much faster >> > getting data from sde sources than as a plain old cgi app. Our problem >> > with it is using a wrapper script- The wrapper script is not a fastcgi >> > application and when we call mapserv from within the wrapper script it >> > doesn't get treated as a fastcgi application. Does anyone have any >> > pointers as to how we can mix the two? >> >> Tim, >> >> Interesting point. Is the wrapper script just a shell script setting >> some environment variables? While I generally like this approach, for >> fastcgi you may be better off setting the environment variables in >> the apache conf. >> >> My fastcgi apache conf on linux looks like: >> >> LoadModule fastcgi_module modules/mod_fastcgi.so >> AddHandler fastcgi-script fcgi >> FastCgiConfig -initial-env >> LD_LIBRARY_PATH=/home/warmerda/gdal:/usr/local/pgsql/lib:/usr/local/lib:/usr/local/grass-6.0.0/lib:/usr/local/lib/mysql >> >> I assume you can use the -initial-env switch to set more variables if >> needed. Of course, if you want to have different settings for different >> services this approach may not work easily. >> >> Fastcgi can be quirky for stuff like this! >> >> Best regards, > > We were using a simple bash script as the wrapper to set lib paths and > map file locations. One of our main aims was to remove the map= part of > the url. I know it's supposed to be legal in the ogc specs but we have > had users reporting problems with certain apps (not sure which ones). > The easiest way for us to solve the problem looks like url re-writing > done by an apache reverse proxy we have sitting in front of the whole > shebang. > > It would be nice though if fastcgi was easier to use. Oh, well. > > Thanks, > Tim Bowden > -- > Mapforge Geospatial > Level 3/ 267 St Georges Tce > Perth 6000 > Western Australia > From tim.bowden at WESTNET.COM.AU Wed Mar 8 23:30:24 2006 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Thu, 9 Mar 2006 15:30:24 +0800 Subject: sde data layers & get capabilities with 4.8.1 Message-ID: Hi, Our testing of 4.8.1 has thrown up what looks like an interesting bug with the get capabilities statement for a wms service. We have a map file that works fine with 4.6.2. All data layers are from an sde box. When we do a getcapabilites request using 4.8.1 it returns a partial statement that ends at the last sde layer. No matter how many layers we have it is always the last sde layer where it fails. If we take out all layers it works. If we have only a shape file as a data source the .map file works. Has anyone experienced this or have any suggestions? Thanks, Tim Bowden -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Mar 8 23:27:49 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Wed, 8 Mar 2006 23:27:49 -0800 Subject: sde data layers & get capabilities with 4.8.1 Message-ID: Hi Tim, AFAIK there were some SDE bugs in 4.8.1 which were fixed in CVS head and to be released in 4.8.2. Are you able to check with the CVS head version? Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Tim Bowden Verzonden: donderdag 9 maart 2006 8:30 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] sde data layers & get capabilities with 4.8.1 Hi, Our testing of 4.8.1 has thrown up what looks like an interesting bug with the get capabilities statement for a wms service. We have a map file that works fine with 4.6.2. All data layers are from an sde box. When we do a getcapabilites request using 4.8.1 it returns a partial statement that ends at the last sde layer. No matter how many layers we have it is always the last sde layer where it fails. If we take out all layers it works. If we have only a shape file as a data source the .map file works. Has anyone experienced this or have any suggestions? Thanks, Tim Bowden -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From tim.bowden at WESTNET.COM.AU Thu Mar 9 01:11:09 2006 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Thu, 9 Mar 2006 17:11:09 +0800 Subject: sde data layers & get capabilities with 4.8.1 In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B24056F271B@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: On Wed, 2006-03-08 at 23:27 -0800, Eijnden, B. van den (Bart) wrote: > Hi Tim, > > AFAIK there were some SDE bugs in 4.8.1 which were fixed in CVS head and to > be released in 4.8.2. > > Are you able to check with the CVS head version? > > Best regards, > Bart > It looks like we will have to stick with 4.6.2 for our pilot stage and leave 4.8.x for later testing. I will grab the cvs version and test it when I get a chance but it won't be till second half next week. Thanks Bart, Tim Bowden > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Tim Bowden > Verzonden: donderdag 9 maart 2006 8:30 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: [UMN_MAPSERVER-USERS] sde data layers & get capabilities with > 4.8.1 > > > Hi, > > Our testing of 4.8.1 has thrown up what looks like an interesting bug > with the get capabilities statement for a wms service. We have a map > file that works fine with 4.6.2. All data layers are from an sde box. > > When we do a getcapabilites request using 4.8.1 it returns a partial > statement that ends at the last sde layer. No matter how many layers we > have it is always the last sde layer where it fails. If we take out all > layers it works. If we have only a shape file as a data source the .map > file works. > > Has anyone experienced this or have any suggestions? > > Thanks, > Tim Bowden -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From khaled.kamoun at GMAIL.COM Thu Mar 9 02:07:50 2006 From: khaled.kamoun at GMAIL.COM (Khaled Kamoun) Date: Thu, 9 Mar 2006 11:07:50 +0100 Subject: javascript rubberband zoom box In-Reply-To: <20060302185002.M5495@websawyer.com> Message-ID: it refers to what "document.mapserv.img_x1"??? what is "mapserv"? and what is "img_x1"? thank you 2006/3/2, Doug Williams : > > Forgive me, I simplified something and did not look at it in Interent > Explorer. > > To fix this for IE you will have to change the first div. > > This was the code that does not work in IE: >

> style="position:relative;border:0px;height:300px;width:600;border-style:none;background-image:url( echo $image_url?>);"> > > This is what does work: >
> > > So the div pair should be: >
>
onmousedown="setMouseXY(event,'x1','y1');" > onmouseup="setMouseXY(event,'x2','y2');document.mapserv.submit();" > > style="position:absolute;top:0px;left:0;height:300px;width:600;border:0px;">
>
> > > Additionally, I added the following javascript to handle the case where > the > user drags the mouse off the map with the mouse button pushed. It can > just > sit somewhere in a script section. > > > > > I'll try to get it righter the first time next time. > -- Khaled KAMOUN -------------- next part -------------- An HTML attachment was scrubbed... URL: From jaakko.kahkonen at FGI.FI Thu Mar 9 01:58:52 2006 From: jaakko.kahkonen at FGI.FI (Jaakko Kahkonen) Date: Thu, 9 Mar 2006 11:58:52 +0200 Subject: Projection issues on WFS-Server In-Reply-To: <440EE58B.4020303@pobox.com> Message-ID: Similar results here with WMS GetCababilities BoundingBox, using Mapserver 4.8.0 and PostGIS 1.1.0. GetMap query gives good map images with postgis layer and other layers, so result as maps are ok. Part of WMS GetCababilities results: ... WMS/WFS pullautin EPSG:2393 mk2m mk2m aineisto EPSG:2393 ... elementti EPSG:4258 And part of MapServer mapfile: MAP IMAGETYPE PNG24 EXTENT 3057842.59 6622010.94 3735699.26 7780000 SIZE 600 600 NAME NLSDIGIROAD PROJECTION "init=epsg:2393" END ... WEB ... METADATA "ows_title" "WMS/WFS pullautin" "ows_src" "EPSG:2393" END END ... LAYER # NAME mk2m TYPE RASTER MINSCALE 1000000 MAXSCALE 4000000 STATUS ON CONNECTIONTYPE WMS CONNECTION "https://....?" METADATA "wms_title" "mk2m" "wms_srs" "EPSG:2393" "wms_name" "mk2m" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_connectiontimeout" "60" END PROJECTION "init=epsg:2393" END END ... LAYER CONNECTIONTYPE postgis NAME "elementti" CONNECTION "user=xxxx dbname=xxxx host=xxxx port=xxxx" DATA "the_geom from elementti" STATUS ON TYPE LINE PROJECTION "init=epsg:4258" END METADATA "ows_title" "...." "ows_srs" "EPSG:4258" "ows_name" "Digiroad elementti" "ows_server_version" "1.1.1" "ows_format" "image/png" "ows_connectiontimeout" "60" END END Frank Warmerdam wrote: > Stephan Holl wrote: >> Hello Frank, >> >> On Tue, 7 Mar 2006 15:12:20 -0500 Frank Warmerdam >> wrote: >> >>> Stephan Holl wrote: >>>> GetCapabilities >>>> ... >>>> EPSG:4326 >>>> >>> maxy="2.5e+07"/> >>>> ... >>>> >>>> This should be from my understanding >>>> > > Stephan, > > Looking more closely at your bounding box, it doesn't really look > like it hasn't been reprojected. It looks more like it was unitialized > or defaulted somehow since all the values are the same. > > I am also starting to wonder if this is an issue specific to PostGIS. > > I'm no WFS nor PostGIS-in-MapServer guru. My suggestion is you try > and reproduce the problem from shapefiles. If you can reproduce it > from shapefiles, then you should submit a bug report with a dataset, > map and the exact WFS query to reproduce the problem. You should > test the WFS query against mapserv at the commandline to maximally > ensure it will be easy for the bug fixer to reproduce. > > If you can't reproduce the problem with a shapefile, then I suspect > the issue is somehow related to WFS interacting with the PostGIS driver. > You likely still ought to file a bug, but it will likely be hard to > bundle things up to make it easy for a bug fixer to reproduce. > > Best regards, From holl at GDF-HANNOVER.DE Thu Mar 9 03:26:49 2006 From: holl at GDF-HANNOVER.DE (Stephan Holl) Date: Thu, 9 Mar 2006 12:26:49 +0100 Subject: Projection issues on WFS-Server In-Reply-To: <440EE58B.4020303@pobox.com> Message-ID: Hello Frank, sorry for the late reply. On Wed, 08 Mar 2006 09:09:15 -0500 Frank Warmerdam wrote: > Stephan Holl wrote: > > Hello Frank, > > > > On Tue, 7 Mar 2006 15:12:20 -0500 Frank Warmerdam > > wrote: > > > >> Stephan Holl wrote: > >>> GetCapabilities > >>> ... > >>> EPSG:4326 > >>> >>> maxy="2.5e+07"/> > >>> ... > >>> > >>> This should be from my understanding > >>> > > Stephan, > > Looking more closely at your bounding box, it doesn't really look > like it hasn't been reprojected. It looks more like it was > unitialized or defaulted somehow since all the values are the same. > > I am also starting to wonder if this is an issue specific to PostGIS. > > I'm no WFS nor PostGIS-in-MapServer guru. My suggestion is you try > and reproduce the problem from shapefiles. If you can reproduce it > from shapefiles, then you should submit a bug report with a dataset, > map and the exact WFS query to reproduce the problem. You should > test the WFS query against mapserv at the commandline to maximally > ensure it will be easy for the bug fixer to reproduce. > If you can't reproduce the problem with a shapefile, then I suspect > the issue is somehow related to WFS interacting with the PostGIS > driver. You likely still ought to file a bug, but it will likely be > hard to bundle things up to make it easy for a bug fixer to reproduce. I cannot reproducing from shapefile. I exported into shape using ogr2ogr and added this layer into the mapfile. The Bounding-box is shown correct now for the shapefile and still wrong for the layer in postGIS. Postgis is version 1.1.0 on postgres 7.4.7 with geos 2.1.1 users_pgis users_pgis EPSG:4326 ? users_shp users_shp EPSG:4326 Well, as noone had this problem before, it seems that I am the only one... Thanks for looking into this. Best Stephan -- GDF Hannover - Solutions for spatial data analysis and remote sensing Hannover Office - Mengendamm 16d - D-30177 Hannover Internet: www.gdf-hannover.de - Email: holl at gdf-hannover.de Phone : ++49-(0)511.39088507 - Fax: ++49-(0)511.39088508 From plazzotta at TISCALINET.IT Thu Mar 9 03:28:37 2006 From: plazzotta at TISCALINET.IT (Giorgio Plazzotta) Date: Thu, 9 Mar 2006 12:28:37 +0100 Subject: Double labels Message-ID: Hello I am using the Cartoweb middleware based on the Mapserver engine. After the reinstallation of the new version I am facing a problem of duplicate labels that didn't happen before using the same Mapfile. Between the two versions (Cartoweb 3.1 and Cartoweb 3.2) the Apache was changed from 1.3.x fo 2.0.x and the php_mapscript.dll changed from 4.6 to 4.8. The OS is Windows 2000 pro. After some investigation I relized that the problem applied on those labels using the WRAP function. When the text was splitted into 2 lines it was also doubled. Another strange thing is that if the LABEL section of the Mapfile contains the BACKGROUNDCOLOR the label is not doubled. In the same installation i also tried to use a different mapfile provided in the Cartoweb samples and also in this case the labels are doubled. Any idea? Thanx Giorgio -------------- next part -------------- An HTML attachment was scrubbed... URL: From holl at GDF-HANNOVER.DE Thu Mar 9 05:25:36 2006 From: holl at GDF-HANNOVER.DE (Stephan Holl) Date: Thu, 9 Mar 2006 14:25:36 +0100 Subject: Projection issues on WFS-Server In-Reply-To: <440EEA6B.5050100@dmsolutions.ca> Message-ID: Hello Assefa, On Wed, 08 Mar 2006 09:30:03 -0500 Yewondwossen Assefa wrote: > Stephan, > > From what I have seen, this happens when the layer does not have a > projection object (with possibly an espg code) that reflects the > projection of your layer. > This can easily be reproduced if I set a projection object at the > map level (or metadata wfs_srs = "EPSG:4326") and I use a layer which > is not in lat/long and does not have a projection object. > In that case the default fallback is to assume that the layer is the > same projection as the map. If the layer has a valid projection, > there will be a reprojection of the extents. > > Stephan, is this the case for you ? No, it is not the case. I have a projection-block set on maplevel (EPSG:4326), and the layer in question has the same projection set. AS I pointed out to Frank, the beahviour is correct exporting the layer into a shapefile. So I assume it is a PostGIS-WFS-issue. That said, I do not know what you need to reproduce this. Does it make sense to bundle up a small dataset with the stripped-down-wfs-mapfile, a PostGIS-dump and the shapefile? Thank you for your help. Best Stephan > > Frank Warmerdam wrote: > > Stephan Holl wrote: > > > >> Hello Frank, > >> > >> On Tue, 7 Mar 2006 15:12:20 -0500 Frank Warmerdam > >> wrote: > >> > >>> Stephan Holl wrote: > >>> > >>>> GetCapabilities > >>>> ... > >>>> EPSG:4326 > >>>> >>>> maxx="2.5e+07" maxy="2.5e+07"/> > >>>> ... > >>>> > >>>> This should be from my understanding > >>>> > > > > > > Stephan, > > > > Looking more closely at your bounding box, it doesn't really look > > like it hasn't been reprojected. It looks more like it was > > unitialized or defaulted somehow since all the values are the same. > > > > I am also starting to wonder if this is an issue specific to > > PostGIS. > > > > I'm no WFS nor PostGIS-in-MapServer guru. My suggestion is you try > > and reproduce the problem from shapefiles. If you can reproduce it > > from shapefiles, then you should submit a bug report with a dataset, > > map and the exact WFS query to reproduce the problem. You should > > test the WFS query against mapserv at the commandline to maximally > > ensure it will be easy for the bug fixer to reproduce. > > > > If you can't reproduce the problem with a shapefile, then I suspect > > the issue is somehow related to WFS interacting with the PostGIS > > driver. You likely still ought to file a bug, but it will likely be > > hard to bundle things up to make it easy for a bug fixer to > > reproduce. > > > > Best regards, > > -- GDF Hannover - Solutions for spatial data analysis and remote sensing Hannover Office - Mengendamm 16d - D-30177 Hannover Internet: www.gdf-hannover.de - Email: holl at gdf-hannover.de Phone : ++49-(0)511.39088507 - Fax: ++49-(0)511.39088508 From ed at CITYSAFE.ORG Thu Mar 9 06:03:19 2006 From: ed at CITYSAFE.ORG (Ed Dowding) Date: Thu, 9 Mar 2006 08:03:19 -0600 Subject: How to avoide HUGE .map files Message-ID: Does anyone have any advice on how to avoid huge .map files? We have a flash interface to our mapserver app, and we have mapping for the whole or europe (and much of america) down to building outline level. Our interface makes it possible to scroll the map from country to country, and zoom in/out, so really all styling has to be in the one file. But... 1) Does it all have to be in that file? Am I right about this? 2) any tips on managing and styling them? I'm currently using jedit since it has nice code folding. I'm yet to find a GUI that exports .map files in a format that is immediately usable. 3) any other tips from anyone? Thanks in advance, Ed From warmerdam at POBOX.COM Thu Mar 9 06:04:13 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 9 Mar 2006 09:04:13 -0500 Subject: Projection issues on WFS-Server In-Reply-To: <20060309122649.05ab0b86@bambule.gdf-hannover.de> Message-ID: Stephan Holl wrote: > I cannot reproducing from shapefile. I exported into shape using > ogr2ogr and added this layer into the mapfile. > The Bounding-box is shown correct now for the shapefile and still wrong > for the layer in postGIS. ... > Well, as noone had this problem before, it seems that I am the only > one... Stephan, Well, this is certainly useful information, and would seem to support the idea that the problem is to some extent related to the PostGIS connector in MapServer. When I look in mappostgis.c I see this implementation for the getextent function: int msPOSTGISLayerGetExtent(layerObj *layer, rectObj *extent) { if(layer->debug) { msDebug("msPOSTGISLayerGetExtent called\n"); } extent->minx = extent->miny = -1.0 * FLT_MAX ; extent->maxx = extent->maxy = FLT_MAX; return MS_SUCCESS; ... followed by a big chunk of commented out code that presumably actually computes the extents. The code is introduced with this comment: /* this should get the real extents,but it requires a table read */ /* unforunately, there is no way to call this function from mapscript, so its */ /* pretty useless. Untested since you cannot actually call it. */ It would seem you get bad extents because the PostGIS connector deliberately does not attempt to produce the extents. Likely your best bet is to manually set the extent using the wfs_extent or ows_extent metadata on the layer in your mapfile. As long as things are reasonable static this should be straight forward. Alternatively this function could be implemented, but even if it was, I imagine it would be expensive to evaluate for large layers. Any mappostgis.c maintainers out there that would care to comment? 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 OSGF, http://osgeo.org From holl at GDF-HANNOVER.DE Thu Mar 9 06:23:45 2006 From: holl at GDF-HANNOVER.DE (Stephan Holl) Date: Thu, 9 Mar 2006 15:23:45 +0100 Subject: Projection issues on WFS-Server In-Reply-To: <441035DD.9040209@pobox.com> Message-ID: Hello Frank, On Thu, 09 Mar 2006 09:04:13 -0500 Frank Warmerdam wrote: > Stephan Holl wrote: > > I cannot reproducing from shapefile. I exported into shape using > > ogr2ogr and added this layer into the mapfile. > > The Bounding-box is shown correct now for the shapefile and still > > wrong for the layer in postGIS. > ... > > Well, as noone had this problem before, it seems that I am the only > > one... > > Stephan, > > Well, this is certainly useful information, and would seem to support > the idea that the problem is to some extent related to the PostGIS > connector in MapServer. > > When I look in mappostgis.c I see this implementation for the > getextent function: > > int msPOSTGISLayerGetExtent(layerObj *layer, rectObj *extent) > { > if(layer->debug) { > msDebug("msPOSTGISLayerGetExtent called\n"); > } > > extent->minx = extent->miny = -1.0 * FLT_MAX ; > extent->maxx = extent->maxy = FLT_MAX; > > return MS_SUCCESS; > > ... followed by a big chunk of commented out code that presumably > actually computes the extents. The code is introduced with this > comment: > > /* this should get the real extents,but it requires a table > read */ /* unforunately, there is no way to call this function from > mapscript, so its */ > /* pretty useless. Untested since you cannot actually call > it. */ > > It would seem you get bad extents because the PostGIS connector > deliberately does not attempt to produce the extents. > > Likely your best bet is to manually set the extent using the > wfs_extent or ows_extent metadata on the layer in your mapfile. As > long as things are reasonable static this should be straight forward. Thank you for clearing this! Now I have set my extent staticly I will get the set extent, which is exactly what I want. > Alternatively this function could be implemented, but even if it was, > I imagine it would be expensive to evaluate for large layers. Doesnt this apply for large shapefiles as well? there the extent is calculated as well? Thank you guys for clearing this. Best Stephan -- GDF Hannover - Solutions for spatial data analysis and remote sensing Hannover Office - Mengendamm 16d - D-30177 Hannover Internet: www.gdf-hannover.de - Email: holl at gdf-hannover.de Phone : ++49-(0)511.39088507 - Fax: ++49-(0)511.39088508 From gis at ROSES.ES Thu Mar 9 07:51:19 2006 From: gis at ROSES.ES (Albert Garcia) Date: Thu, 9 Mar 2006 16:51:19 +0100 Subject: basic configuration Message-ID: Hello, I have a mapserver 3.6.7 application. I try to migrate to the last version of mapserver and I have installed the ms4w pack with the default directory structure. (using windows and apache). To learn about this new version I have installed the mapserver tutorial too (http://mapserver.gis.umn.edu/docs/tutorial/tutorial) . The section1, static maps runs ok. I have a problem in section 2 with the html templates: mapserver create the maps in the tmp directory: C:\ms4w\tmp\ms_tmp> but it not appears in the application html. This is the command line I use: http://gis002/cgi-bin/mapserv.exe?root=%2Ftutorial&program=%2Fcgi-bin%2Fmaps erv.exe&map_web_template=example2-2.html&map=%2Fms4w%2Fapps%2Ftutorial%2Fhtd ocs%2Fexample2.map&imgext=510141+4676372+519900+4683247&imgxy=400.0+300.0&la yer=orto&mode=browse&submit=Refresh&zoom=0 (intranet only) This is the section of map file: WEB TEMPLATE 'example2-2.html' IMAGEPATH '/tmp/ms_tmp/' IMAGEURL '/tmp/' END # Every object in MapServer must have an END. and this is the section of the html:
... Thanks for all!!! From williams at WEBSAWYER.COM Thu Mar 9 08:17:00 2006 From: williams at WEBSAWYER.COM (Doug Williams) Date: Thu, 9 Mar 2006 09:17:00 -0700 Subject: javascript rubberband zoom box (ver 0.8) Message-ID:
This is a how-to for implementing a javascript zoombox. This message is meant to be displayed as html in your email program. Sometimes it works, sometimes it doesn't. If the formatting is no good, let me know. [cross my fingers and send...]

The code below is a simple PHP mapscript application, but the details outlined here apply equally well to the other mapserver scripting methods. If you have worked through the how-to here, and have a working mapserver, then you should have no problem implementing this. You will need to add the blue, green, purple, and orange colored sections (orange optional). The red section is replaced by the purple section. The lime section just needs your details.

This zoombox functionality

You can cut and paste this code...just edit the mappath and mapfile variables (lime colored)

<?php dl('php_mapscript.so'); // if you have not seen this function, you will find it on the UMN Mapserver site somewhere /************************************************************************/ /*function GMapPix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin, dfGeoMax,*/ /* $nInversePix) */ /* */ /* Utility function to convert a pixel position to geocoded */ /* position. */ /* */ /* The parameter $nInversePix could be set to 1 for Y pixel */ /* coordinates where the UL > LR. Else set to 0. */ /************************************************************************/ function GMapPix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin, $dfGeoMax, $nInversePix) { $dfWidthGeo = $dfGeoMax - $dfGeoMin; $dfWidthPix = $dfPixMax - $dfPixMin; $dfPixToGeo = $dfWidthGeo / $dfWidthPix; if (!$nInversePix) $dfDeltaPix = $nPixPos - $dfPixMin; else $dfDeltaPix = $dfPixMax - $nPixPos; $dfDeltaGeo = $dfDeltaPix * $dfPixToGeo; $dfPosGeo = $dfGeoMin + $dfDeltaGeo; return ($dfPosGeo); } /****************************************************************************/ /****************************************************************************/ // this function i made, it seems to keep my map fitting in my map window reasonably function corralit($map) { global $max_extent; if ( (abs($map->extent->maxx) + abs($map->extent->minx)) <= (abs($max_extent->minx) + abs($max_extent->maxx)) ) { if ($map->extent->minx < $max_extent->minx) { $shift = $max_extent->minx - $map->extent->minx; $map->extent->minx = $map->extent->minx + $shift; $map->extent->maxx = $map->extent->maxx + $shift; $map->setextent($map->extent->minx,$map->extent->miny,$map->extent->maxx,$map->extent->maxy); } if ($map->extent->maxx > $max_extent->maxx) { $shift = $map->extent->maxx - $max_extent->maxx; $map->extent->minx = $map->extent->minx - $shift; $map->extent->maxx = $map->extent->maxx - $shift; $map->setextent($map->extent->minx,$map->extent->miny,$map->extent->maxx,$map->extent->maxy); } }else{ $map->setextent($max_extent->minx,$max_extent->miny,$max_extent->maxx,$max_extent->maxy); } if ( (abs($map->extent->maxy) + abs($map->extent->miny)) <= (abs($max_extent->miny) + abs($max_extent->maxy)) ) { if ($map->extent->maxy > $max_extent->maxy) { $shift = $map->extent->maxy - $max_extent->miny; $map->extent->maxy = $map->extent->maxy - $shift; $map->extent->miny = $map->extent->miny - $shift; $map->setextent($map->extent->minx,$map->extent->miny,$map->extent->maxx,$map->extent->maxy); } if ($map->extent->miny < $max_extent->miny) { $shift = $max_extent->miny - $map->extent->miny; $map->extent->maxy = $map->extent->maxy + $shift; $map->extent->miny = $map->extent->miny + $shift; $map->setextent($map->extent->minx,$map->extent->miny,$map->extent->maxx,$map->extent->maxy); } }else{ $map->setextent($max_extent->minx,$max_extent->miny,$max_extent->maxx,$max_extent->maxy); } } /****************************************************************************/ // get the form variables $zoom = $_POST["zoom"]; $img_x = $_POST["img_x"]; $img_y = $_POST["img_y"]; $imgext = $_POST["imgext"]; $img_x1 = $_POST["img_x1"]; // the _x1, _x2, _y1, _y2 variables hold zoom box coordinates $img_y1 = $_POST["img_y1"]; // they are simply "hidden" form input variables $img_x2 = $_POST["img_x2"]; // that will be set by javascript on the browser $img_y2 = $_POST["img_y2"]; // I use img_x2 to determine if zoom box, as browser // does not send form variables that have empty value $gofull = $_POST["go"]; // just change this to point to the right things $map_path="/the/full/path/to/your/mapfile/"; $map_file="yourmapfile.map"; $map = ms_newMapObj($map_path.$map_file); $max_extent = ms_newrectObj(); $max_extent->setextent($map->extent->minx,$map->extent->miny,$map->extent->maxx,$map->extent->maxy); if ($gofull) { echo "<script>window.alert('full')</script>"; // my map file has the map extent at full, so nothing needs to be done } elseif ($img_x2) { // this is the code necessary to process the zoom box and // set the map extent before drawing the new map // if the browser did not send two x,y pairs, $img_x2 will be null // because the browser will not have sent img_x2 without a value // you will see later where this is controlled // uncomment for debugging //echo "<script>window.alert('zoombox')</script>"; $extent_to_set = explode(" ",$imgext); $nClickGeoX1 = GMapPix2Geo($img_x1, 0, $map->width,$extent_to_set[0], $extent_to_set[2], 0); $nClickGeoY1 = GMapPix2Geo($img_y1, 0, $map->height, $extent_to_set[1], $extent_to_set[3], 1); $nClickGeoX2 = GMapPix2Geo($img_x2, 0, $map->width, $extent_to_set[0], $extent_to_set[2], 0); $nClickGeoY2 = GMapPix2Geo($img_y2, 0, $map->height, $extent_to_set[1], $extent_to_set[3], 1); // put the georeferenced coordinates in proper order // it's not a given from the x,y coords! if (($nClickGeoX1 < $nClickGeoX2) && ($nClickGeoY2 < $nClickGeoY1)) { $map->setextent($nClickGeoX1,$nClickGeoY2,$nClickGeoX2,$nClickGeoY1); } elseif (($nClickGeoX1 < $nClickGeoX2) && ($nClickGeoY1 < $nClickGeoY2)) { $map->setextent($nClickGeoX1,$nClickGeoY1,$nClickGeoX2,$nClickGeoY2); } elseif (($nClickGeoX2 < $nClickGeoX1) && ($nClickGeoY1 < $nClickGeoY2)) { $map->setextent($nClickGeoX2,$nClickGeoY1,$nClickGeoX1,$nClickGeoY2); } elseif (($nClickGeoX2 < $nClickGeoX1) && ($nClickGeoY2 < $nClickGeoY1)) { $map->setextent($nClickGeoX2,$nClickGeoY2,$nClickGeoX1,$nClickGeoY1); } corralit($map); // this function will ensure the map fills the map window // so you do not get part map, part outside the map // similar to setting the max extent in zoompoint! } elseif ( isset($img_x) ) { // uncomment for debugging echo "<script>window.alert('pointclick')</script>"; $extent_to_set = explode(" ",$imgext); $map->setextent($extent_to_set[0],$extent_to_set[1], $extent_to_set[2],$extent_to_set[3]); // uncomment for debugging //echo "<script>window.alert('pointclick map extent " . $map->extent->minx . " - " . $map->extent->maxy . " - " . $map->extent->maxx . " - " . $map->extent->miny . "')</script>"; $my_point = ms_newpointObj(); $my_point->setXY($img_x,$img_y); $zoom_factor = $zoom; $map->zoompoint($zoom_factor,$my_point,$map->width,$map->height,$map->extent,$max_extent); //corralit($map); // having set max extent for zoompoint, it should not need corralling // uncomment for debugging //echo "<script>window.alert('zoomed and corralled " . $map->extent->minx . " - " . $map->extent->maxy . " - " . $map->extent->maxx . " - " . $map->extent->miny . "')</script>"; } else { // initialize if need be - i.e. script was not called from itself //echo "<script>window.alert('from outside')</script>"; } $image=$map->draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); // here i grab the georef'd extent of the map sent to the page so it can be saved $extent_to_html = $map->extent->minx." ".$map->extent->miny." " .$map->extent->maxx." ".$map->extent->maxy; /////////////////////////////////////////////////////////////////////////////////////////////////////// // // what is returned to the user starts here // ?> <html> <head> <title>Map Magic</title> </head> <body> <form name=mapserv method=post action="<? echo $_SERVER['PHP_SELF']; ?>" > <!-- i pass the point click location back in, i find it useful ... it could be the center of the map --> <input type="hidden" name="img_x" value="<? echo $img_x; ?>"> <input type="hidden" name="img_y" value="<? echo $img_y; ?>"> <!-- these are the form variables to hold the zoom box coordinates --> <!-- img_x1,img_y1 are redundant to img_x, img_y ... i have done this for clarity --> <input type="hidden" name="img_x1" value="<? echo $img_x1; ?>"> <!-- just because i did above --> <input type="hidden" name="img_y1" value="<? echo $img_y1; ?>"> <!-- though not necessary to set them --> <input type="hidden" name="img_x2" value=""> <input type="hidden" name="img_y2" value=""> <!-- here is the extent of the map being saved --> <input type="hidden" name="imgext" value="<?php echo $extent_to_html?>"> <1-- here are some standard zoom in/out/pan functionality controls <a href="?go=full">full</a>&nbsp; <span onclick="document.mapserv.zoom.value=2">+</span>&nbsp; <span onclick="document.mapserv.zoom.value=-2">-</span>&nbsp; <span onclick="document.mapserv.zoom.value=1">pan</span>&nbsp; <input type="text" name="zoom" value="1"> <center> <div> <!-- these elements are for holding values that will be written to them later by javascript --> <!-- i have them here to see what is going on, but they could be useful, for instance --> <!-- a javascript function could be added to convert x,y to lat-lon, so real lat-lon was displayed --> <span style="font-size:7pt;" id="latspan" name="latspan" ></span>-<span style="font-size:7pt;" id=lonspan name=lonspan></span> <span style="font-size:7pt;" id=x1 name=x1></span>-<span style="font-size:7pt;" id=y1 name=y1></span>: <span style="font-size:7pt;" id=x2 name=x2></span>-<span style="font-size:7pt;" id=y2 name=y2></span> </div> </center> <? /* <input type="image" name="img" src="<?php echo $image_url?>" border="0" height=300 width=600> <!-- the input type image lacks the ability to do what we want -->*/ ?> <!-- we add some javascript functions to act on the mouse events of a div --> <!-- to do what input type image does, and more --> <!-- the absolutely positioned div inside the relatively positioned div creates --> <!-- x,y coordinate system (0,0 topleftcorner - map->width,map->height lowerrightcorner) --> <!-- it is important that border and border-style do not exist --> <!-- the nested div is where the zoom box is created, through html trickery --> <div style="position:relative;height:<? echo $map->height; ?>px;width:<? echo $map->width; ?>;border-style:none;background-image:url(<?php echo $image_url?>);border:0px;" onmousemove="getMouseXY(event);" onmousedown="setMouseXY(event,'x1','y1');" onmouseup="setMouseXY(event,'x2','y2');document.mapserv.submit();"> <div id=drawdiv name=drawdiv style="position:absolute;top:0px;left:0px;height:<? echo $map->height; ?>px;width:<? echo $map->width; ?>px;border-style:none;border:0px;"> </div> </div> </form> </body> <!-- from here down are the scripts to deal with the mouse events and to draw the zoom box --> <!-- drawing the zoom box is an html trick ... four squashed, red-bordered div's (two vertically --> <!-- and two horizontally) are created and destroyed on the fly to create the resizing box --> <script language=javascript> function DrawLinHor( x, y, size, color, div2){ // the lines are made by drawing a div with a colored border var str; // a horizontal line is a div with height of one(1) pixel if (x>=0 && y>=0 && size>0){ str = '<div style="position:absolute; left:' + x + 'px; top:' + y + 'px;width:' + size + 'px; height:1px;background-color:' + color + '"><table height=1 width=' + size + '></table></div>\n'; } else { str = ''; } // document.write(str); // i have not considered old browser versions as yet document.getElementById(div2).innerHTML += str; // this works with "getElementById" browsers, // but could easily be modified to deal with // those browsers that don't support that object } function DrawLinVert( x, y, size, color, div2){ // the lines are made by drawing a div with a colored border var str; // a horizontal line is a div with width of one(1) pixel if (x>=0 && y>=0 && size>0){ str = '<div style="position:absolute; left:' + x + 'px; top:' + y + 'px;width:1px; height:' + size + 'px;background-color:' + color + '"><table height=' + size + ' width=1></table></div>\n'; } else { str = ''; } // document.write(str); // this is the old way of writing ... Note this code does not accomodate old browsers document.getElementById(div2).innerHTML += str; } function DrawLine( x1, y1, x2, y2, color, div2 ){ deltax=x2-x1; deltay=y2-y1; if (deltax>0){ dstep=deltax; x=x1; y=y1; DrawLinHor( (x),(y),dstep,color,div2 ); } else { dstep=deltay; y=y1; x=x1; DrawLinVert( (x),(y),dstep,color,div2 ); } } // these drawing functions have been reduced from some code I found // (see my first posting about javascript rubberband zoom box to find that reference) ///////////////////////////////////////////////////////////////////////////////////////////// // these are some utility varibles var mouseIsDown = false var tmpX1 var tmpY1 var tmpX2 var tmpY2 // this code is modified from code I found to deal with getting screen x,y values // (see my first posting about javascript rubberband zoom box to find that reference) var IE = document.all?true:false // this is not really the right way to do this check ... // If NS -- that is, !IE -- then set up for mouse capture if (!IE) window.captureEvents(Event.MOUSEMOVE || Event.MOUSEUP || Event.MOUSEDOWN) function getMouseXY(e) { var tempX = 0 var tempY = 0 if (IE) { // grab the x-y pos.s if browser is IE tempX = event.offsetX tempY = event.offsetY } else { // grab the x-y pos.s if browser is NS tempX = e.layerX tempY = e.layerY <? if(!(eregi("Firefox",$_SERVER['HTTP_USER_AGENT']) == false)){ ?> tempX = e.layerX-1 // firefox gives pixel position 1 to (height (or width)) tempY = e.layerY-1 // NS and IE give 0 to (height(or width)-1) <? } ?> } if (!((tempX == 0) || (tempY == 0))) { // this is necessary because sometimes the values // that end up in tempX or tempY are relative to // something other than the upper left corner of the // div, causing severe headaches // not sure why these values are not always relative // to the upper left corner - can anyone please tell me? // show the position values in the form named Show // in the text fields named MouseX and MouseY document.getElementById('lonspan').innerHTML = tempX document.getElementById('latspan').innerHTML = tempY if (mouseIsDown) { document.mapserv.img_x2.value = tempX document.mapserv.img_y2.value = tempY document.getElementById('x2').innerHTML = tempX document.getElementById('y2').innerHTML = tempY // this erases the box if one is drawn document.getElementById('drawdiv').innerHTML = ''; if (document.mapserv.img_x1.value > tempX) { tmpX1 = tempX tmpX2 = document.mapserv.img_x1.value }else{ tmpX1 = document.mapserv.img_x1.value tmpX2 = tempX } if (document.mapserv.img_y1.value > tempY) { tmpY1 = tempY tmpY2 = document.mapserv.img_y1.value }else{ tmpY1 = document.mapserv.img_y1.value tmpY2 = tempY } // four lines are drawn to create the box if ((tmpY1 > 0) && (tmpX1 > 0) && (tmpY2 > 0) && (tmpX2 > 0)) { DrawLine(tmpX1,tmpY1,tmpX1,tmpY2,"#FF0000","drawdiv"); DrawLine(tmpX1,tmpY1,tmpX2,tmpY1,"#FF0000","drawdiv"); DrawLine(tmpX2,tmpY1,tmpX2,tmpY2,"#FF0000","drawdiv"); DrawLine(tmpX1,tmpY2,tmpX2,tmpY2,"#FF0000","drawdiv"); } } } return true } function setMouseXY(e,x,y) { var tempX var tempY if (x == 'x2') mouseIsDown = false if (IE) { // grab the x-y pos.s if browser is IE tempX = event.offsetX tempY = event.offsetY } else { // grab the x-y pos.s if browser is NS tempX = e.layerX tempY = e.layerY <? // firefox seems to set relative offset values from 1 to height or 1 to width // netscape and ie seem to set relative offset values from 0 to height-1 or 0 to width-1 // this browser inconsistency is the biggest problem, // although one pixel may not be significant - someone more knowledgable would have to say // anyway this corrects for the descrepancy described // i've checked this against few browsers if(!eregi("Firefox",$_SERVER['HTTP_USER_AGENT'])){ ?> tempX = e.layerX-1 tempY = e.layerY-1 <? } ?> } if (y == "y1") { // this means mousedown!! document.getElementById(x).innerHTML = tempX document.getElementById(y).innerHTML = tempY document.mapserv.img_x.value = tempX document.mapserv.img_y.value = tempY document.mapserv.img_x1.value = tempX document.mapserv.img_y1.value = tempY document.mapserv.img_x2.value = tempX document.mapserv.img_y2.value = tempY } if (y == "y2") { // this means mouseup!! // this clause determines if a zoom box has been created, or if the // mouse action should treated as a simple click - the fudge value // allows the user to mousemove inadvertently a little and still get a pointclick var fudge = 4 if ((Math.abs(document.mapserv.img_x2.value - document.mapserv.img_x1.value) <= fudge) && (Math.abs(document.mapserv.img_y2.value - document.mapserv.img_y1.value) <= fudge)) { document.mapserv.img_x2.value = '' document.mapserv.img_y2.value = '' }else{ if (document.mapserv.img_x2.value < document.mapserv.img_x1.value) { tempX = document.mapserv.img_x1.value document.mapserv.img_x1.value = document.mapserv.img_x2.value document.mapserv.img_x2.value = tempX } if (document.mapserv.img_y2.value < document.mapserv.img_y1.value) { tempY = document.mapserv.img_y1.value document.mapserv.img_y1.value = document.mapserv.img_y2.value document.mapserv.img_y2.value = tempY } } } if (x == 'x1') { // this means mousedown!! mouseIsDown = true } return true } function resetZoomBox () { mouseIsDown = false; document.getElementById('drawdiv').innerHTML = ''; } if (IE) { if (window.Event) document.captureEvents(Event.MOUSEUP); document.onmouseup = resetZoomBox; } else { window.captureEvents(Event.MOUSEUP); window.onmouseup = resetZoomBox; } </script> </html>
From williams at WEBSAWYER.COM Thu Mar 9 08:28:50 2006 From: williams at WEBSAWYER.COM (Doug Williams) Date: Thu, 9 Mar 2006 09:28:50 -0700 Subject: javascript rubberband zoom box (ver 0.8) Message-ID: the posting did not work... you can temporarily see the how-to document here http://www.websawyer.com/zoomboxhowto.php.html From mscharber at UCSD.EDU Thu Mar 9 08:48:39 2006 From: mscharber at UCSD.EDU (Michael Scharber) Date: Thu, 9 Mar 2006 08:48:39 -0800 Subject: How to avoide HUGE .map files In-Reply-To: Message-ID: Ed, Though I'm not looking for an editor, per se, I would like to know how to reuse chunks of mapfile config (100s of lines) across multiple mapfiles with little or no replication. Is there a way to "include" mapfile fragments into other mapfiles? Michael On Thu, 9 Mar 2006, Ed Dowding wrote: > Does anyone have any advice on how to avoid huge .map files? > > We have a flash interface to our mapserver app, and we have mapping for the > whole or europe (and much of america) down to building outline level. > > Our interface makes it possible to scroll the map from country to country, > and zoom in/out, so really all styling has to be in the one file. > > But... > > 1) Does it all have to be in that file? Am I right about this? > > 2) any tips on managing and styling them? I'm currently using jedit since it > has nice code folding. I'm yet to find a GUI that exports .map files in a > format that is immediately usable. > > 3) any other tips from anyone? > > Thanks in advance, > > Ed > From bartvde at XS4ALL.NL Thu Mar 9 09:40:41 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 9 Mar 2006 18:40:41 +0100 Subject: How to avoide HUGE .map files In-Reply-To: Message-ID: There is no way to include them directly. You will need to use some kind of pre-processing like awk or a C preprocessor etc. Ed, one way to avoid huge MAP files is to create tile-indexes around datasets which have a similar structure, but I don't know if that is the case with your use case. Best regards, Bart Michael Scharber wrote: > Ed, > > Though I'm not looking for an editor, per se, I would like to know how > to reuse chunks of mapfile config (100s of lines) across multiple > mapfiles with little or no replication. Is there a way to "include" > mapfile fragments into other mapfiles? > > Michael > > > On Thu, 9 Mar 2006, Ed Dowding wrote: > >> Does anyone have any advice on how to avoid huge .map files? >> >> We have a flash interface to our mapserver app, and we have mapping >> for the >> whole or europe (and much of america) down to building outline level. >> >> Our interface makes it possible to scroll the map from country to >> country, >> and zoom in/out, so really all styling has to be in the one file. >> >> But... >> >> 1) Does it all have to be in that file? Am I right about this? >> >> 2) any tips on managing and styling them? I'm currently using jedit >> since it >> has nice code folding. I'm yet to find a GUI that exports .map files >> in a >> format that is immediately usable. >> >> 3) any other tips from anyone? >> >> Thanks in advance, >> >> Ed >> > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From kernu11 at YAHOO.COM Thu Mar 9 10:34:40 2006 From: kernu11 at YAHOO.COM (Ker Nulov) Date: Thu, 9 Mar 2006 12:34:40 -0600 Subject: Help in displaying rasters needed! Message-ID: Hello to all, I am trying to display a raster but it isn't working and I need some guidance, hope somebody can help. Here it is: I downloaded a sample geotiff raster from here: http://www.csc.noaa.gov/crs/tcm/sample_geotiff.html and saved it as .gff extension. The info about the file gives this: [niko at localhost temporal]$ listgeo geotiff_examp.gff Geotiff_Information: Version: 1 Key_Revision: 1.0 Tagged_Information: ModelTiepointTag (2,3): 0.5 0.5 0 703985.696 3737741.78 0 ModelPixelScaleTag (1,3): 2 2 0 End_Of_Tags. Keyed_Information: GTModelTypeGeoKey (Short,1): ModelTypeProjected GTRasterTypeGeoKey (Short,1): RasterPixelIsArea ProjectedCSTypeGeoKey (Short,1): PCS_NAD83_UTM_zone_17N ProjLinearUnitsGeoKey (Short,1): Linear_Meter End_Of_Keys. End_Of_Geotiff. PCS = 26917 (NAD83 / UTM zone 17N) Projection = 16017 (UTM zone 17N) Projection Method: CT_TransverseMercator ProjNatOriginLatGeoKey: 0.000000 ( 0d 0' 0.00"N) ProjNatOriginLongGeoKey: -81.000000 ( 81d 0' 0.00"W) ProjScaleAtNatOriginGeoKey: 0.999600 ProjFalseEastingGeoKey: 500000.000000 m ProjFalseNorthingGeoKey: 0.000000 m GCS: 4269/NAD83 Datum: 6269/North American Datum 1983 Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31) Prime Meridian: 8901/Greenwich (0.000000/ 0d 0' 0.00"E) Projection Linear Units: 9001/metre (1.000000m) Corner Coordinates: Upper Left ( 703984.696, 3737742.777) Lower Left ( 703984.696, 3737060.777) Upper Right ( 704894.696, 3737742.777) Lower Right ( 704894.696, 3737060.777) Center ( 704439.696, 3737401.777) [niko at localhost temporal]$ I assume the extento of this geotiff is EXTENT 703983 3737060 704894 3737742 right? Then I create a mapfile like this: MAP NAME "TEST" STATUS ON IMAGETYPE PNG SIZE 900 600 OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" END UNITS dd EXTENT 703983 3737060 704894 3737742 DEBUG on SHAPEPATH "data" IMAGECOLOR 255 255 255 WEB LOG "/tmp/mapserver.log" END PROJECTION "proj=utm" "ellps=GRS80" "datum=NAD83" "zone=17" "units=m" "north" "no_defs" END LAYER NAME "raster" DATA "geotiff_examp.gff" TYPE RASTER STATUS DEFAULT CLASS COLOR 255 145 25 NAME 'Digital Raster Graphic' END END END Then I call it like this:http://someserver/cgi-bin/mapserv?map=/var/www/html/test/niko/raster.map&mode=map when I do it I get a white PNG image with no raster drawn. My mapserver CGI has this info: gentoo niko # /var/www/cgi-bin/mapserv -v MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE gentoo niko # Mapserver log gives: gentoo niko # cat /tmp/mapserver.log Thu Mar 9 12:32:23 2006,21210,10.225.182.179,TEST,3,703927.000000 3737060.000000 704950.000000 3737742.000000,-1.000000 -1.000000,,normal execution gentoo niko # I have tryed many combination of options but nothing seems to work and no error message appears. Where is my error? Thanks in advance Nikolai __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.com.mx/ From ed at TOPOZONE.COM Thu Mar 9 10:36:41 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 9 Mar 2006 13:36:41 -0500 Subject: How to avoide HUGE .map files Message-ID: Ed - I have spent some time looking at performance-tuning MapServer configurations. After a while I finally realize that my "kitchen sink" MAP files were actually the bulk of my performance problems! Unfortunately, since the basic MapServer debug output (to report layer rendering times) is turned on by setting DEBUG ON in the MAP file, it's not active for the loading of the MAP file itself. Some simple changes allowed me to see how much time was being spent actually loading the MAP files. In common situations, I had configurations in which the loading and parsing of the MAP file was taking 7 times as long as drawing the map did! The best thing you can do is to completely eliminate unnecessary LAYER definitions from your MAP file. In your case, you seem to have layers at different scales, such that certain groups of layers are used at particular times and not at others. Let's suppose you have three layers named A, B, and C. If only one of those layers is actually used at any one time, then the "simple" approach is to put A, B, and C into one MAP file with MINSCALE/MAXSCALE settings. The faster way is to create three separate MAP files, one with each of A, B, and C in it. When you generate the URL to request an image, you select which MAP file to use. Obviously you need a MAP file with each combination of layers used at the same time, or a way at the client end to overlay multiple MAP requests. As for using the C preprocessor to process #include and #define macros in your MAP files, please check the archives, as my answer to that question will be the same as it's been every few months for the past few years . - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed Dowding Sent: Thursday, March 09, 2006 9:03 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] How to avoide HUGE .map files Does anyone have any advice on how to avoid huge .map files? We have a flash interface to our mapserver app, and we have mapping for the whole or europe (and much of america) down to building outline level. Our interface makes it possible to scroll the map from country to country, and zoom in/out, so really all styling has to be in the one file. But... 1) Does it all have to be in that file? Am I right about this? 2) any tips on managing and styling them? I'm currently using jedit since it has nice code folding. I'm yet to find a GUI that exports .map files in a format that is immediately usable. 3) any other tips from anyone? Thanks in advance, Ed From ed at TOPOZONE.COM Thu Mar 9 10:42:20 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 9 Mar 2006 13:42:20 -0500 Subject: Help in displaying rasters needed! Message-ID: Nikolai - Your UNITS should be METERS, not DD, since you have projected data using METERS as the units. I'm not sure what your CLASS definition in the layer block is supposed to do, but you don't need it, nor do you need the PROJECTION block since your input layer and your output are the same projection. You may want to add those back in later, but it's best to keep the MAP file as simple as possible while you're getting started. GeoTIFF files are TIF files and normally have a .tif file extension; you might want to change to using that extension as some applications may expect it. Thanks for posting a clear question and including all the information! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ker Nulov Sent: Thursday, March 09, 2006 1:35 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Help in displaying rasters needed! Hello to all, I am trying to display a raster but it isn't working and I need some guidance, hope somebody can help. Here it is: I downloaded a sample geotiff raster from here: http://www.csc.noaa.gov/crs/tcm/sample_geotiff.html and saved it as .gff extension. The info about the file gives this: [niko at localhost temporal]$ listgeo geotiff_examp.gff Geotiff_Information: Version: 1 Key_Revision: 1.0 Tagged_Information: ModelTiepointTag (2,3): 0.5 0.5 0 703985.696 3737741.78 0 ModelPixelScaleTag (1,3): 2 2 0 End_Of_Tags. Keyed_Information: GTModelTypeGeoKey (Short,1): ModelTypeProjected GTRasterTypeGeoKey (Short,1): RasterPixelIsArea ProjectedCSTypeGeoKey (Short,1): PCS_NAD83_UTM_zone_17N ProjLinearUnitsGeoKey (Short,1): Linear_Meter End_Of_Keys. End_Of_Geotiff. PCS = 26917 (NAD83 / UTM zone 17N) Projection = 16017 (UTM zone 17N) Projection Method: CT_TransverseMercator ProjNatOriginLatGeoKey: 0.000000 ( 0d 0' 0.00"N) ProjNatOriginLongGeoKey: -81.000000 ( 81d 0' 0.00"W) ProjScaleAtNatOriginGeoKey: 0.999600 ProjFalseEastingGeoKey: 500000.000000 m ProjFalseNorthingGeoKey: 0.000000 m GCS: 4269/NAD83 Datum: 6269/North American Datum 1983 Ellipsoid: 7019/GRS 1980 (6378137.00,6356752.31) Prime Meridian: 8901/Greenwich (0.000000/ 0d 0' 0.00"E) Projection Linear Units: 9001/metre (1.000000m) Corner Coordinates: Upper Left ( 703984.696, 3737742.777) Lower Left ( 703984.696, 3737060.777) Upper Right ( 704894.696, 3737742.777) Lower Right ( 704894.696, 3737060.777) Center ( 704439.696, 3737401.777) [niko at localhost temporal]$ I assume the extento of this geotiff is EXTENT 703983 3737060 704894 3737742 right? Then I create a mapfile like this: MAP NAME "TEST" STATUS ON IMAGETYPE PNG SIZE 900 600 OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" END UNITS dd EXTENT 703983 3737060 704894 3737742 DEBUG on SHAPEPATH "data" IMAGECOLOR 255 255 255 WEB LOG "/tmp/mapserver.log" END PROJECTION "proj=utm" "ellps=GRS80" "datum=NAD83" "zone=17" "units=m" "north" "no_defs" END LAYER NAME "raster" DATA "geotiff_examp.gff" TYPE RASTER STATUS DEFAULT CLASS COLOR 255 145 25 NAME 'Digital Raster Graphic' END END END Then I call it like this:http://someserver/cgi-bin/mapserv?map=/var/www/html/test/niko/raster.map&mode=map when I do it I get a white PNG image with no raster drawn. My mapserver CGI has this info: gentoo niko # /var/www/cgi-bin/mapserv -v MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE gentoo niko # Mapserver log gives: gentoo niko # cat /tmp/mapserver.log Thu Mar 9 12:32:23 2006,21210,10.225.182.179,TEST,3,703927.000000 3737060.000000 704950.000000 3737742.000000,-1.000000 -1.000000,,normal execution gentoo niko # I have tryed many combination of options but nothing seems to work and no error message appears. Where is my error? Thanks in advance Nikolai __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.com.mx/ From work at XWB.COM Thu Mar 9 11:22:11 2006 From: work at XWB.COM (Chip Taylor) Date: Thu, 9 Mar 2006 11:22:11 -0800 Subject: Street level data In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDA47@ptolemy.topozone.com> Message-ID: Can anyone point me to a place to acquire (free or purchase) accurate street level data (and other types as well)? I cannot seem to find data that has a level of accuracy that by boss is happy with. Chip Taylor Prepared Response, Inc From siki at AGT.BME.HU Thu Mar 9 15:20:06 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Thu, 9 Mar 2006 22:20:06 -0100 Subject: How to avoide HUGE .map files {Scanned} In-Reply-To: Message-ID: Hi, You can use cpp (c preprocessor) havind #include directives. The only withdraw you have to escape map file comments using ## or \# Zoltan On Thu, 9 Mar 2006, Michael Scharber wrote: > Ed, > > Though I'm not looking for an editor, per se, I would like to know how to > reuse chunks of mapfile config (100s of lines) across multiple mapfiles > with little or no replication. Is there a way to "include" mapfile > fragments into other mapfiles? > > Michael > > > On Thu, 9 Mar 2006, Ed Dowding wrote: > > > Does anyone have any advice on how to avoid huge .map files? > > > > We have a flash interface to our mapserver app, and we have mapping for the > > whole or europe (and much of america) down to building outline level. > > > > Our interface makes it possible to scroll the map from country to country, > > and zoom in/out, so really all styling has to be in the one file. > > > > But... > > > > 1) Does it all have to be in that file? Am I right about this? > > > > 2) any tips on managing and styling them? I'm currently using jedit since it > > has nice code folding. I'm yet to find a GUI that exports .map files in a > > format that is immediately usable. > > > > 3) any other tips from anyone? > > > > Thanks in advance, > > > > Ed > > > From pramsey at REFRACTIONS.NET Thu Mar 9 12:30:39 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Thu, 9 Mar 2006 12:30:39 -0800 Subject: Street level data In-Reply-To: <014901c643ae$c56970b0$0601a8c0@DevChip> Message-ID: Chip, for where? For the USA, you have free and non-free options. TIGER is free, Navteq and Teleatlas are not. TIGER is much less accurate. But the price for full sets of Navteq and Teleatlas is really really large (well, depending on your expected use of the data, public web sites are the most expensive). There's no easy answer to the data question, and no good answer without knowing what you plan on using the data for. P On Mar 9, 2006, at 11:22 AM, Chip Taylor wrote: > Can anyone point me to a place to acquire (free or purchase) > accurate street > level data (and other types as well)? I cannot seem to find data > that has a > level of accuracy that by boss is happy with. > > Chip Taylor > Prepared Response, Inc From jmckenna at DMSOLUTIONS.CA Thu Mar 9 13:00:24 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Thu, 9 Mar 2006 16:00:24 -0500 Subject: Street level data In-Reply-To: <014901c643ae$c56970b0$0601a8c0@DevChip> Message-ID: Hi Chip, We offer optimized-for-mapserver data packages with TIGER (US) and DMTI (Canada). We are also working on a world data package, as well as teleatlas data for mapserver (which would get the accuracy your boss is looking for probably)...however those are not available yet. Here are some links: US Streets product (TIGER): http://maps.dmsolutions.ca/us_streets.html DMTI (Canada data): http://maps.dmsolutions.ca/canmap.html Stephen Woodbridge (http://imaptools.com/) also offers a TIGER product. hope that helps. jeff Chip Taylor wrote: > Can anyone point me to a place to acquire (free or purchase) accurate street > level data (and other types as well)? I cannot seem to find data that has a > level of accuracy that by boss is happy with. > > Chip Taylor > Prepared Response, Inc > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From pitta at IBIDEM.IT Thu Mar 9 13:09:02 2006 From: pitta at IBIDEM.IT (Simone Pittaluga) Date: Thu, 9 Mar 2006 22:09:02 +0100 Subject: is not eppl error with php_mapscript Message-ID: Hi i want create a php script for my webserver using php_mapscript. Now i'm using mapserver (4.6) CGI and it is ok. My data are from shape file, postgis and grass. I try the test_draw_map.phtml application with my mapfile and is ok with shape file and postgis data but when draw a grass raster the application stops with "eppl error". both mapserver and gdal support eppl and grass raster. I have to change my mapfile? thanks Simone Pittaluga -------------- next part -------------- An HTML attachment was scrubbed... URL: From codeburg at HOTMAIL.COM Thu Mar 9 16:51:08 2006 From: codeburg at HOTMAIL.COM (Gail Long) Date: Thu, 9 Mar 2006 16:51:08 -0800 Subject: Callout type image for a label Message-ID: I want to have a callout styled image for a label on a particular class. The originating point would be the center of a polygon so a centered label but it would offset the text with the callout tail still on the central point. Is there any way to do this? -- Things are only difficult while you don't understand them. From kfraleytx at YAHOO.COM Thu Mar 9 17:21:30 2006 From: kfraleytx at YAHOO.COM (keith fraley) Date: Thu, 9 Mar 2006 17:21:30 -0800 Subject: Help needed with install, willing to pay... In-Reply-To: Message-ID: Hi, I am needing help with an install at a shared hosting facility, basically, I need help building an RPM. I can run a CGI with my plan, what I really need help with is figuring out how to build the RPM so that it works with my hosting site. Php-Mapscript is a necessity. Please help! I can pay with paypal =) __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From vaz.luiz at GMAIL.COM Thu Mar 9 19:25:59 2006 From: vaz.luiz at GMAIL.COM (Luiz Vaz) Date: Fri, 10 Mar 2006 00:25:59 -0300 Subject: DMSolutions CanMap Message-ID: Hi All, Does anyone know, what DMSolutions used to build the cartographic styling CanMap at http://maps.dmsolutions.ca/canmap.html ? It?s really beautiful! ;) And remeber the maps of NavTeq and TeleAtlas... My doubt is: was only used the shape data with a map file to draw it? Or DMSolutions use some other software to draw it by hand? Best Regards, Luiz Vaz From rstoyle at COMCAST.NET Thu Mar 9 21:30:50 2006 From: rstoyle at COMCAST.NET (Rick) Date: Thu, 9 Mar 2006 23:30:50 -0600 Subject: Multiple mapshape parameters? Message-ID: Using Mapserver CGI. I need to find all the polygons on a layer that a line passes through. It is a multi segment adhoc line. I am accomplishing this via NQUERY, QLAYER and MAPSHAPE parameters and it is working great. The map I am using is a world map with imgext = -180 -90 180 90 and the mapshape is essentially a polyline made up of lat/lon coordinates. My problem now is to compensate for when the line crosses the International Date Line (-180 or 180 longitude). I need to break the line at the 180th meridian so that it doesn't take the long way around. I have code that detects this and splits the polyline into multiple segments, but was wondering if there was a way to pass both segments in the same query or do I need to make a separate query for each polyline? Basically, I want to pass 2 (or more) mapshape parameters in the same call to the CGI application. Thanks for any suggestions, or even a simple "No you can't do that" would help me out alot. From naci0002 at UMN.EDU Fri Mar 10 00:01:58 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Fri, 10 Mar 2006 02:01:58 -0600 Subject: basic configuration In-Reply-To: Message-ID: Change the value of IMAGEURL from '/tmp/' to '/ms_tmp/'. It looks like there could be something wrong with your template as well. See this line: Check the template file and make sure it looks like this: Good luck! -Perry Albert Garcia wrote: > Hello, > I have a mapserver 3.6.7 application. I try to migrate to the last version > of mapserver and I have installed the ms4w pack with the default directory > structure. (using windows and apache). > To learn about this new version I have installed the mapserver tutorial too > (http://mapserver.gis.umn.edu/docs/tutorial/tutorial) . The section1, static > maps runs ok. I have a problem in section 2 with the html templates: > mapserver create the maps in the tmp directory: C:\ms4w\tmp\ms_tmp> but it > not appears in the application html. > > This is the command line I use: > http://gis002/cgi-bin/mapserv.exe?root=%2Ftutorial&program=%2Fcgi-bin%2Fmaps > erv.exe&map_web_template=example2-2.html&map=%2Fms4w%2Fapps%2Ftutorial%2Fhtd > ocs%2Fexample2.map&imgext=510141+4676372+519900+4683247&imgxy=400.0+300.0&la > yer=orto&mode=browse&submit=Refresh&zoom=0 (intranet only) > > This is the section of map file: > WEB > TEMPLATE 'example2-2.html' > IMAGEPATH '/tmp/ms_tmp/' > IMAGEURL '/tmp/' > END # Every object in MapServer must have an END. > > and this is the section of the html: > > > > > > > > value="/ms4w/apps/tutorial/htdocs/example2.map"> > > > > ... > > > > width="400" height="300" border="0" /> > > > > Thanks for all!!! > > . > From s_jubeh at YAHOO.COM Fri Mar 10 00:04:47 2006 From: s_jubeh at YAHOO.COM (salah jubeh) Date: Fri, 10 Mar 2006 00:04:47 -0800 Subject: Hdf file support Message-ID: Hi guys I am trying to display some hdf files using mapserver, i have compiled gdal with hdf and after that compile mapserver with gdal. I was able to display some hdf files with mapserver and another i could not. the format of hdf files varies from one file to another "the name of SDS that holds image matrix" how to tell mapserver which tag contain the data . also mapserver ping a white image for hdf files that i could not display and it did not give me an error message . i checked some processing tags like bands ,scale and it is correct. The images that i could not display have another attribute called fillvalue these images was generated using CAPS and NAP software. what i gave to do to solve this problem. --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. -------------- next part -------------- An HTML attachment was scrubbed... URL: From etienne at MAGIC.FR Fri Mar 10 00:49:32 2006 From: etienne at MAGIC.FR (=?ISO-8859-1?Q?Etienne_S=E9vin?=) Date: Fri, 10 Mar 2006 09:49:32 +0100 Subject: newbie question Message-ID: Hi there, We are planning to add a MapServer plugin to our online survey application to allow user to build thematic analysis. I'm really new to GIS and most of the examples I saw about mapserver were issues about geographic localization. Where could I find examples about how to build thematic analysis like the one we can find in a mapinfo package for instance? I hope this question is not too dumb ... best regard, Etienne From Artur.Skalski at ACXIOM.COM Fri Mar 10 01:02:50 2006 From: Artur.Skalski at ACXIOM.COM (Skalski Artur - askals) Date: Fri, 10 Mar 2006 10:02:50 +0100 Subject: newbie question Message-ID: hi have a look here: http://195.94.206.181/test/mapserver/framedefs/main.html it's simple app allowing to do some statistics for area sorrounding pointed location on map, it's still primitive but gives some overwiew of the issue -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Etienne S?vin Sent: Friday, March 10, 2006 9:50 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] newbie question Hi there, We are planning to add a MapServer plugin to our online survey application to allow user to build thematic analysis. I'm really new to GIS and most of the examples I saw about mapserver were issues about geographic localization. Where could I find examples about how to build thematic analysis like the one we can find in a mapinfo package for instance? I hope this question is not too dumb ... best regard, Etienne *************************************************************************** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. **************************************************************************** From mtrp36 at HOTMAIL.COM Fri Mar 10 01:06:29 2006 From: mtrp36 at HOTMAIL.COM (K Kuo) Date: Fri, 10 Mar 2006 09:06:29 +0000 Subject: DMSolutions CanMap In-Reply-To: Message-ID: Hi List, I have the same question. I have tried practicing "pan", "zoom in/out" functions with php. What display in my browser is only a new rendered image. There is no way to pan the map so smoothly like CanMap does. What are the language/techniques/components behind this application? Any suggestions will be appreciated. Thanks. Best, Kurt >From: Luiz Vaz >Reply-To: Luiz Vaz >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] DMSolutions CanMap >Date: Fri, 10 Mar 2006 00:25:59 -0300 > >Hi All, > > > Does anyone know, what DMSolutions used to build the cartographic >styling CanMap > at http://maps.dmsolutions.ca/canmap.html ? > > It?s really beautiful! ;) > And remeber the maps of NavTeq and TeleAtlas... > > My doubt is: was only used the shape data with a map file to draw >it? Or DMSolutions use some other software to draw it by hand? > > >Best Regards, >Luiz Vaz From bartvde at XS4ALL.NL Fri Mar 10 01:16:40 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 10 Mar 2006 10:16:40 +0100 Subject: DMSolutions CanMap In-Reply-To: Message-ID: The technique they use for the application is called ka-map. See: http://ka-map.maptools.org/ Best regards, Bart K Kuo wrote: > Hi List, > I have the same question. I have tried practicing "pan", "zoom in/out" > functions with php. What display in my browser is only a new rendered > image. There is no way to pan the map so smoothly like CanMap does. > What are the language/techniques/components behind this application? > Any suggestions will be appreciated. Thanks. > > Best, > > Kurt > > >> From: Luiz Vaz >> Reply-To: Luiz Vaz >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] DMSolutions CanMap >> Date: Fri, 10 Mar 2006 00:25:59 -0300 >> >> Hi All, >> >> >> Does anyone know, what DMSolutions used to build the cartographic >> styling CanMap >> at http://maps.dmsolutions.ca/canmap.html ? >> >> It?s really beautiful! ;) >> And remeber the maps of NavTeq and TeleAtlas... >> >> My doubt is: was only used the shape data with a map file to draw >> it? Or DMSolutions use some other software to draw it by hand? >> >> >> Best Regards, >> Luiz Vaz > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From candalt at ONLINE.NO Fri Mar 10 01:48:27 2006 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Fri, 10 Mar 2006 10:48:27 +0100 Subject: WMS and FEATURE_COUNT Message-ID: Hello I have some layers in a WMS service. If i run a getFeatureInfo request on a point where there are more than one object mapserver returns 1 hit.. This is according to the WMS standard. But when i add a e.g. FEATURE_COUNT=5 parameter to my request, Mapserver returns all objects (more than 5). Not 5 as i have spesified in my request. Is this a bug or are there something i am doing wrong? I have tested this on both Mapserver 4.6.0 and 4.8.1 regards sture From jmckenna at DMSOLUTIONS.CA Fri Mar 10 04:40:33 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri, 10 Mar 2006 07:40:33 -0500 Subject: DMSolutions CanMap In-Reply-To: Message-ID: we thank you for your compliments. In terms of cartography - yes it really is just shapefiles - shp2tiled, tile4ms, indexed, and styled by hand in a mapfile. No tricks or fancy software (other than mapserver and mapserv/GDAL/shp2tile commandline utilities). In terms of application functionality - as Bart mentioned, ka-Map. jeff Luiz Vaz wrote: > Hi All, > > > Does anyone know, what DMSolutions used to build the cartographic > styling CanMap > at http://maps.dmsolutions.ca/canmap.html ? > > It?s really beautiful! ;) > And remeber the maps of NavTeq and TeleAtlas... > > My doubt is: was only used the shape data with a map file to draw > it? Or DMSolutions use some other software to draw it by hand? > > > Best Regards, > Luiz Vaz > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From siki at AGT.BME.HU Fri Mar 10 08:58:25 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 10 Mar 2006 15:58:25 -0100 Subject: newbie question {Scanned} In-Reply-To: <44113D9C.8090102@magic.fr> Message-ID: Hi Etienne, If you would like to display predefined thematic maps then mapserver CGI is ready to do it. If you would like to define class boundaries and style on the fly you can use mapscript, but you also have to create the user interface to set up styles. Zoltan On Fri, 10 Mar 2006, [ISO-8859-1] Etienne S?vin wrote: > Hi there, > > We are planning to add a MapServer plugin to our online survey > application to allow user to build thematic analysis. > I'm really new to GIS and most of the examples I saw about mapserver > were issues about geographic localization. > Where could I find examples about how to build thematic analysis like > the one we can find in a mapinfo package for instance? > > I hope this question is not too dumb ... > > best regard, > > Etienne > From frederic.mauro at VEREMES.COM Fri Mar 10 05:51:19 2006 From: frederic.mauro at VEREMES.COM (Fr=?ISO-8859-1?Q?=E9d=E9ric?= Mauro) Date: Fri, 10 Mar 2006 07:51:19 -0600 Subject: ECW SDK 3.3 libraries and sources Message-ID: Hi List, I finally recompiled GDAL 1.3.1 using the ECW resources contained in the FWTools-linux-0.9.9.tar.gz from Franck Warmerdam. It works fine. I extracted the ECW source files and libs from the FWTools-linux-0.9.9.tar.gz archive and created a new one. This can be downloaded at http://www.veremes.com/download/mapserver/resources/ecwsdk-from-fwtools-linux-0.9.9.tar.gz Bye. >On Wed, 8 Mar 2006 10:02:01 -0600, Fr=?ISO-8859-1?Q?=E9d=E9ric?= Mauro > wrote: >Hi list, > >I recently had a problem with some ECW data (Mapserver crashes when the >scale is too big, for example 1/2000). > >I use GDAL 1.3.1, compiled using the ecwsdk-3.1.25Jan05-linux.tar.tar >archive provided by Frank Warmerdam in January 2005. > >I would like to re-compile GDAL using newer ECW libraries and sources. I >know I can get these resources in the last FWTools archive for linux, but I >am not really sure which files I must extract from it. > >I guess the ECW libraries contained in the archive are : > >libNCSCNet.so >libNCSEcw.so >libNCSEcwC.so >libNCSUtil.so > > >What about the source files (*.h files) needed to compile GDAL ? > > >Regards. From Jeremy.Sears at CCRS.NRCAN.GC.CA Fri Mar 10 06:48:53 2006 From: Jeremy.Sears at CCRS.NRCAN.GC.CA (Sears, Jeremy) Date: Fri, 10 Mar 2006 09:48:53 -0500 Subject: error log? Message-ID: Hi All, Can anyone tell me if and how Mapserver logs errors? Im tryin to debug an application and having a report of what mapserver is choking on would make things much smoother! Thanks Jeremy From bartvde at XS4ALL.NL Fri Mar 10 07:17:42 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 10 Mar 2006 16:17:42 +0100 Subject: error log? In-Reply-To: Message-ID: Hi Jeremy, make sure Mapserver is compiled with MSDEBUG (check with mapserv -v). Then define an environment variable called MS_ERRORFILE, if you are using Apache add the following to the Apache conf: SetEnv "MS_ERRORFILE" "stderr" and restart Apache. If you are using IIS, define a system env. variable and restart the system. Mapserver will then log in the webserver's error log. You could also specify a file instead of stderr, but then make sure the webserver user has enough rights on this file. Best regards, Bart Sears, Jeremy wrote: >Hi All, >Can anyone tell me if and how Mapserver logs errors? >Im tryin to debug an application and having a report of what mapserver is >choking on would make things much smoother! > >Thanks >Jeremy > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From Jeremy.Sears at CCRS.NRCAN.GC.CA Fri Mar 10 07:19:45 2006 From: Jeremy.Sears at CCRS.NRCAN.GC.CA (Sears, Jeremy) Date: Fri, 10 Mar 2006 10:19:45 -0500 Subject: error log? Message-ID: Great! Thanks alot! -----Original Message----- From: Bart van den Eijnden (OSGIS) [mailto:bartvde at xs4all.nl] Sent: March 10, 2006 10:18 AM To: Sears, Jeremy Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] error log? Hi Jeremy, make sure Mapserver is compiled with MSDEBUG (check with mapserv -v). Then define an environment variable called MS_ERRORFILE, if you are using Apache add the following to the Apache conf: SetEnv "MS_ERRORFILE" "stderr" and restart Apache. If you are using IIS, define a system env. variable and restart the system. Mapserver will then log in the webserver's error log. You could also specify a file instead of stderr, but then make sure the webserver user has enough rights on this file. Best regards, Bart Sears, Jeremy wrote: >Hi All, >Can anyone tell me if and how Mapserver logs errors? >Im tryin to debug an application and having a report of what mapserver is >choking on would make things much smoother! > >Thanks >Jeremy > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From Jeremy.Sears at CCRS.NRCAN.GC.CA Fri Mar 10 08:18:09 2006 From: Jeremy.Sears at CCRS.NRCAN.GC.CA (Sears, Jeremy) Date: Fri, 10 Mar 2006 11:18:09 -0500 Subject: msFreeHashItems()? Message-ID: Hi all, Im getting the following error in my mapserver app error output: >>msFreeHashItems(): Hash table error. Can't free NULL table\r, referer: ........ I cant seem to find any info about this on the mapserver site nor the list archives .. Can anyone explain what this is all about? Thanks Jeremy From perrygeo at GMAIL.COM Fri Mar 10 10:21:43 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Fri, 10 Mar 2006 10:21:43 -0800 Subject: Assigning NODATA value to WCS output Message-ID: Hey folks, I've got a bunch of SRTM tiles as GeoTiffs that I successfully set up as a WCS server. The original TIFFs don't have a NODATA value defined and neither does the WCS output by default. Is it possible to assign an a NODATA value to WCS output with mapserver? I suppose another option (if I can free up some disk space) is to use gdal_translate to assign a nodata value to the input data. If the original tiffs had a nodata value, would the WCS output reflect that? -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From steve.lime at DNR.STATE.MN.US Fri Mar 10 10:24:49 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 10 Mar 2006 12:24:49 -0600 Subject: msFreeHashItems()? Message-ID: Hash tables are used in a number of places, most commonly with fonts but elsewhere too. Might be tricky to debug. What type of a request is generating the error and from what language (or just the CGI?)... Steve >>> "Sears, Jeremy" 03/10/06 10:18 AM >>> Hi all, Im getting the following error in my mapserver app error output: >>msFreeHashItems(): Hash table error. Can't free NULL table\r, referer: ........ I cant seem to find any info about this on the mapserver site nor the list archives .. Can anyone explain what this is all about? Thanks Jeremy From warmerdam at POBOX.COM Fri Mar 10 10:47:18 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 10 Mar 2006 13:47:18 -0500 Subject: Assigning NODATA value to WCS output In-Reply-To: <5383fa5e0603101021v19f6a342xdeb971ecbd28ab4@mail.gmail.com> Message-ID: Matthew Perry wrote: > Hey folks, > > I've got a bunch of SRTM tiles as GeoTiffs that I successfully set > up as a WCS server. The original TIFFs don't have a NODATA value > defined and neither does the WCS output by default. Is it possible to > assign an a NODATA value to WCS output with mapserver? > > I suppose another option (if I can free up some disk space) is to use > gdal_translate to assign a nodata value to the input data. If the > original tiffs had a nodata value, would the WCS output reflect that? Matt, There is currently no support in MapServer WCS for saving nodata values in files produced through a GDAL outputformat driver regardless of what is set in the input file. It would be pretty easy to add this as a FORMATOPTION in the outputformatobj. Not so easy to carry it from the source since WCS can be serving from several files and there is nowhere obvious to put it in the imageObj and related structures of mapserver. If a FORMATOPTION on the OUTPUTFORMAT object would satisfy your needs, then submit an enhancement request in bugzilla and I'll try to add it in 4.9. Hmm, when I think about it this raises some questions about nodata handling in the "rawdata" imagemodes. I suspect unset areas are just set to zero. It may be that a more comprehensive plan on nodata handling is needed for the WCS. However, I'm afraid that this isn't currently something I have time to pursue deeply. 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 OSGF, http://osgeo.org From perrygeo at GMAIL.COM Fri Mar 10 11:01:02 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Fri, 10 Mar 2006 11:01:02 -0800 Subject: Assigning NODATA value to WCS output In-Reply-To: <4411C9B6.400@pobox.com> Message-ID: On 3/10/06, Frank Warmerdam wrote: > There is currently no support in MapServer WCS for saving nodata values > in files produced through a GDAL outputformat driver regardless of > what is set in the input file. > > It would be pretty easy to add this as a FORMATOPTION in the outputformatobj. > Not so easy to carry it from the source since WCS can be serving from > several files and there is nowhere obvious to put it in the imageObj and > related structures of mapserver. > > If a FORMATOPTION on the OUTPUTFORMAT object would satisfy your needs, then > submit an enhancement request in bugzilla and I'll try to add it in 4.9. > Frank, I think having it as a FORMATOPTION would be fine.. actually better in some cases where you didn't want to gdal_translate your entire dataset just to assign a nodata value. Thanks for the help! -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From Jeremy.Sears at CCRS.NRCAN.GC.CA Fri Mar 10 11:13:35 2006 From: Jeremy.Sears at CCRS.NRCAN.GC.CA (Sears, Jeremy) Date: Fri, 10 Mar 2006 14:13:35 -0500 Subject: msFreeHashItems()? Message-ID: Hi Steve, Thanks for the reply. What type of request is generating the error? Its an http client request.. I think.. What language? Im not sure if it just the CGI, It's likley php/mapscript, as the application im running is chameleon based. Let me explain the situation a little further, perhaps you can recognize somthing I cant... We originally had a ms4w/chameleon application setup. Everything worked fine. From the root we had data/mapserver etc set up as follows >- | | +-MS4w | +-ApplicationDir | Now we want to make our application available over the web, via a proxy. . . so now we have the following dir's >- | | +-MS4w | +-proxy+ | +ApplicationDir | From s_jubeh at YAHOO.COM Fri Mar 10 15:58:26 2006 From: s_jubeh at YAHOO.COM (salah jubeh) Date: Fri, 10 Mar 2006 15:58:26 -0800 Subject: translate to tcl Message-ID: CAN ANY BODY HELP ME IN TRANSLATE THIS TO TCL map = mapscript.Map('rquery.map') layer = map.getLayer(0) pnt = mapscript.Point() pnt.x = 440780 pnt.y = 3751260 layer.queryByPoint( map, pnt, mapscript.MS_MULTIPLE, 180.0 ) layer.open() for i in range(1000): result = layer.getResult( i ) if result is None: break print '(%d,%d)' % (result.shapeindex, result.tileindex) s = layer.getShape( result.shapeindex, result.tileindex ) for i in range(layer.numitems): print '%s: %s' % (layer.getItem(i), s.getValue(i)) layer.close() --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. -------------- next part -------------- An HTML attachment was scrubbed... URL: From etienne at MAGIC.FR Fri Mar 10 23:43:16 2006 From: etienne at MAGIC.FR (=?ISO-8859-2?Q?Etienne_S=E9vin?=) Date: Sat, 11 Mar 2006 08:43:16 +0100 Subject: newbie question {Scanned} In-Reply-To: Message-ID: That's it Zoltan, thanks for your answer I wanna be able to use the two ways, but the second one is really the way I wanna go first. So it will be MapScript. Is there any good document to start with ? Do I have to redefine boundaries for every map or is there already something existing ? best regards, Etienne Siki Zoltan a ?crit : >Hi Etienne, > >If you would like to display predefined thematic maps then mapserver CGI >is ready to do it. If you would like to define class boundaries and >style on the fly you can use mapscript, but you also have to create the >user interface to set up styles. > >Zoltan > >On Fri, 10 Mar 2006, [ISO-8859-1] Etienne S?vin wrote: > > > >>Hi there, >> >>We are planning to add a MapServer plugin to our online survey >>application to allow user to build thematic analysis. >>I'm really new to GIS and most of the examples I saw about mapserver >>were issues about geographic localization. >>Where could I find examples about how to build thematic analysis like >>the one we can find in a mapinfo package for instance? >> >>I hope this question is not too dumb ... >> >>best regard, >> >>Etienne >> >> >> > > > > > From siki at AGT.BME.HU Sat Mar 11 05:52:03 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sat, 11 Mar 2006 12:52:03 -0100 Subject: newbie question {Scanned} In-Reply-To: <44127F94.7050009@magic.fr> Message-ID: Hi Etienne, First you have to select your favorite language for mapscript, there are several choices, php, pyton, perl, c#, .... First check mapserver.gis.emn.edu/docs page, there are reference, howto and faq topics. I started with http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample GMap is a sample application written in php. You cab customize it for your aims. http://www.maptools.org/dl/gmap-ms46.zip Chameleon is high level approache, few programming neccessary http://chameleon.maptools.org I have used phpmapscript so far. I hope this helps you Zoltan On Sat, 11 Mar 2006, Etienne S?vin wrote: > That's it Zoltan, thanks for your answer > > I wanna be able to use the two ways, but the second one is really the > way I wanna go first. > So it will be MapScript. > > Is there any good document to start with ? > Do I have to redefine boundaries for every map or is there already > something existing ? > > best regards, > > Etienne > > Siki Zoltan a ?crit : > > >Hi Etienne, > > > >If you would like to display predefined thematic maps then mapserver CGI > >is ready to do it. If you would like to define class boundaries and > >style on the fly you can use mapscript, but you also have to create the > >user interface to set up styles. > > > >Zoltan > > > >On Fri, 10 Mar 2006, [ISO-8859-1] Etienne S?vin wrote: > > > > > > > >>Hi there, > >> > >>We are planning to add a MapServer plugin to our online survey > >>application to allow user to build thematic analysis. > >>I'm really new to GIS and most of the examples I saw about mapserver > >>were issues about geographic localization. > >>Where could I find examples about how to build thematic analysis like > >>the one we can find in a mapinfo package for instance? > >> > >>I hope this question is not too dumb ... > >> > >>best regard, > >> > >>Etienne > >> > >> > >> > > > > > > > > > > > From codeburg at HOTMAIL.COM Sat Mar 11 11:25:09 2006 From: codeburg at HOTMAIL.COM (Gail Long) Date: Sat, 11 Mar 2006 11:25:09 -0800 Subject: [RE]:How to avoide HUGE .map files In-Reply-To: Message-ID: As an alternative to cpp, The m4 macro processing tools are really good for setting up and configuring larger files with lots of elements. Sendmail and several other packages that have very large and complex text structures use m4 to build their configuration files. I've used it to define complex DNS management tools for some large SOA servers, and in the past its been helpful for creating large configuration files like exim and sendmail. Using m4 you create your base template with its macros then you can manipulate your more dynamic sections anyway you like. One of the more powerful aspects of m4 is that it is very very fast and you can edit or create your included files on the fly then call it from perl or php from your CGI program. It would build the files you need based on operating context like current date, timezone, or look and feel for a particular type of user. Additionally m4 can be used for your html files as well. You put the common pieces in macros, edit the pieces of the the file that need to be regularly changed and then generate you pages. Its a little daunting to get a handle on at first but once you understand the basics its one of those things you wonder how you lived without. An easier to understand alternative would be to use perl Text::Template. Its a little more work to put together, but its very flexible and will build your files very quickly. You can also use this method as a quick way to switch the order of layers and classes. If you were really ambitious you could put a web or perl/tk interface over it. A third alternative is php and the Smarty template engine (smarty.php.net). You create your templates using any design syntax you want, then run commandline PHP to build the files. I only suggest this one because some folks like to stick with one language. This is a very powerful alternative and can be used for many chores. I'm not forgetting that python, tcl, expect, and ruby have very powerful template engines that I assume would work very well, however, I've not used any of them for that. One of the plusses is that you have all of these available on linux and if you are a windows user you can get windows versions, or you can go get a cygwin (www.cygwin.com) install and have them all available. -- Things are only difficult while you don't understand them. >From: Siki Zoltan >Reply-To: Siki Zoltan >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] How to avoide HUGE .map files {Scanned} >Date: Thu, 9 Mar 2006 22:20:06 -0100 > >Hi, > >You can use cpp (c preprocessor) havind #include directives. >The only withdraw you have to escape map file comments using ## or \# > >Zoltan > >On Thu, 9 Mar 2006, Michael Scharber wrote: > > > Ed, > > > > Though I'm not looking for an editor, per se, I would like to know how >to > > reuse chunks of mapfile config (100s of lines) across multiple mapfiles > > with little or no replication. Is there a way to "include" mapfile > > fragments into other mapfiles? > > > > Michael > > > > > > On Thu, 9 Mar 2006, Ed Dowding wrote: > > > > > Does anyone have any advice on how to avoid huge .map files? > > > > > > We have a flash interface to our mapserver app, and we have mapping >for the > > > whole or europe (and much of america) down to building outline level. > > > > > > Our interface makes it possible to scroll the map from country to >country, > > > and zoom in/out, so really all styling has to be in the one file. > > > > > > But... > > > > > > 1) Does it all have to be in that file? Am I right about this? > > > > > > 2) any tips on managing and styling them? I'm currently using jedit >since it > > > has nice code folding. I'm yet to find a GUI that exports .map files >in a > > > format that is immediately usable. > > > > > > 3) any other tips from anyone? > > > > > > Thanks in advance, > > > > > > Ed > > > > > From Tom.Kralidis at EC.GC.CA Sat Mar 11 11:35:56 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Sat, 11 Mar 2006 14:35:56 -0500 Subject: GetFeatureInfo geometry issue Message-ID: Hi, Using latest CVS, doing a OGC:WMS GetFeatureInfo with info_format=application/vnd.ogc.gml returns an XML document. I have set LAYER/METADTA/"gml_include_items" "all", DUMP TRUE and TEMPLATE. The XML document returns as expected attributes-wise, however the feature Geometry is missing. The gml:boundedBy is there appropriately, but not the actual feature geometry. Please advise. Note that this is the case with 4.8.1. Using 4.4.1 brings back the expected result. ..Tom From erik1969 at MAILHAVEN.COM Sat Mar 11 12:54:10 2006 From: erik1969 at MAILHAVEN.COM (Erik Baluba) Date: Sun, 12 Mar 2006 03:54:10 +0700 Subject: MinGW compile ok, but how does MS integrate with GD? Message-ID: Hi, I just compiled a minimal Mapserver under MinGW and it seems ok. Now I will try to add the other modules like gdal, oracle support etc. Did anyone compile a MS binary under MinGW with support for many modules as well as Mapscript? Anyway, I had to hack the configure script to make MS compile. The gdwin32 library was compiled with freetype, png, etc. Still, when I compiled MS it did not detect that GD allready had these libraries compiled into it, and I had to download and compile the freetype and all the other libraries first. Then I compiled mapserver jusing the "--with-module" option for all these libraries. But still, when I run "mapserv.exe -v " it does not display the "supports=freetype" parameter. How do I tell MS/configure that it shouuld just assume that GD allready has freetype,png etc and that it shouldn't bother with these libraries? erik From stefano.masci at 3MLINFORMATICA.IT Sat Mar 11 13:53:02 2006 From: stefano.masci at 3MLINFORMATICA.IT (Stefano Masci) Date: Sat, 11 Mar 2006 22:53:02 +0100 Subject: problem in Mapscript installation Message-ID: Hello I've this problem in Mapscript installation. ENVIRONMENT Linux RedHat ES 3.0 with Apache and PHP already installed and some other thirdy parties web applications. QUESTION Does the library installation of php_mapscript.so absolutely require settings of the two environment variables: extension_dir and ld_library_path? Does exist another way that allows the use of php_mapscript.so without those settings? TIES We are obliged to use Apache and PHP already installed on the server. We cannot create another user or another instance of Apache Server. It is not possible to modify those environment variables because the other applications could not be working correctly. Thank's in advance. Ing. Stefano Masci Project Management 3ML Informatica s.r.l * * *347 5001928 * stefano.masci at 3mlinformatica.it -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 2174 bytes Desc: not available URL: From emiliomayorga at GMAIL.COM Sat Mar 11 19:01:27 2006 From: emiliomayorga at GMAIL.COM (Emilio Mayorga) Date: Sat, 11 Mar 2006 19:01:27 -0800 Subject: new mapserver site for Central America; thanks for all the help! Message-ID: This site does not break any new ground with MapServer. In fact, I'm still stuck with 4.0 b/c I don't have the time to upgrade. But I really wanted to thank the community, especially Steve Lime, for the excellent feedback I got over the last two and a half years while building the site (it's been a labor of love), and the resources available in the form of the mailing list archives, documentation, and presentations from the conferences available on the web. I even got to submit a feature request (regarding HTML legends) and saw it implemented by Steve and Daniel Morissette (or Paul Spencer, I forget)! Our site uses Steve's javascript DHTML framework, and the layer tree javascript code swiped from the Red River Basin site. If I can take any credit, it's for integrating the two fairly closely and packaging it all a bit more cleanly, in a separate .js file. It's also fully bilingual, though the way it's done may not be the most elegant (PHP/server-side scripting wasn't an option). If anyone is interested in what you see there, please email me and I'd be happy to talk about it. Cheers, Emilio Mayorga Central American Ecology & Environment (http://garrobo.org/) Mapache: New web mapping tool for Central America, focused on "Ecology & Environment" http://geo.garrobo.org/mapache/index.html The CAEE/ACEA group (http://garrobo.org/) is pleased to present "Mapache", an online mapping tool focusing on Central America. The result of an all-volunteer effort, it is a GIS software framework for presenting interactive maps covering all of Central America, using free, open-source software. With this framework and with appropriate geographical datasets (including real-time data), our goal is to build applications focused on particular themes: ecosystems, biodiversity, climate, geology, oceans, etc. We intend to make existing information more easily accessible. Our first thematic application is "Ecosystems": http://geo.garrobo.org/mapache/en/ecosistem.html. We thank many groups that make their data freely available: universities, non-governmental organizations, and national, regional, and international agencies. We are especially grateful to the University of Washington River Systems Research Group for donating the server and bandwith. Mapache was developed through a collaboration between Emilio Mayorga, Derek Parent, and Alexis Aguilar (http://garrobo.org/members.html). Please contact us if you would like to collaborate with us. From werner.meyer7 at BLUEWIN.CH Sun Mar 12 00:11:08 2006 From: werner.meyer7 at BLUEWIN.CH (Werner Meyer) Date: Sun, 12 Mar 2006 09:11:08 +0100 Subject: New User - What to start with: Unix or Windows In-Reply-To: <20060122145024.157.qmail@s429.sureserver.com> Message-ID: Dear Jeff and list, I have started to use AMEIN for UMN because ArcMap is our standard desktop GIS. Interesting approach. We have bought the printed manual but with all the information I cannot get over this error: After a first successful round of mapfile generation I never can do another one until I reboot the system. Some files get locked. I dont find out which one it is. The message does not tell me that. It always happens on the last screen. when I start to treat layer after layer: "Runtime error 70 Permission denied", Has anynone solved this problem ? Werner Meyer, MSc (GIS), Swiss Federal Statistical Office At 15:50 22.01.2006, Jeff McKenna wrote: >For a new user here's what I recommend: > >a) try styling the MapServer map (called a .map file) right in >ArcGIS with the Amein! extension: http://sourceforge.net/projects/avein/ > >If you have ArcView 3.x use the GIX export tool >(http://gix.sourceforge.net/) to export your View as a .map file. > >Otherwise you will be styling your data in a text editor (most of us >do that but it's not easy for a beginner) > >b) If you're on Windows, use MS4W (http://www.maptools.org/ms4w) - >it will get you going easy. > >jeff > > > > > -------Original Message------- > > From: Maggie Ma > > Subject: [UMN_MAPSERVER-USERS] New User - What to start with: > Unix or Windows > > Sent: 21 Jan '06 15:59 > > > > Dear all, > > > > I am a new user of MapServer. I have been using ArcGIS desktop for a few > > years. Now I want to do some online mapping. I just start to look into > > MapServer. And I need your input on whether I should start with Unix or > > Windows MapServer. > > > > The concern is to do it right/the best from the very beginning. I am not > > afraid of learning Linux/Unix. I know some basics. But since I have always > > been working with ArcGIS under Windows, I want to make sure that it worths > > it to switch. If it wont make much difference then I will just stay with > > Windows. > > > > So shall I go : Windows MapServer + Windows ArcGIS or Linux MapServer + > > Linux ArcGIS or even Linux MapServer + Windows ArcGIS? > > > > What's the best way to start? > > > > Thank you very much in advance for any suggestions and thoughts! > > > > Maggie > > > > From punkish at EIDESIS.ORG Sun Mar 12 04:00:32 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Sun, 12 Mar 2006 06:00:32 -0600 Subject: new mapserver site for Central America; thanks for all the help! In-Reply-To: Message-ID: Hi Emilio, Nice work. Some feedback from the Mac side... looks nice in Camino, but the image is misplaced in Safari. The image shows up in the top left corner of the browser instead of in the image box. Hope you can fix that. Puneet. On Mar 11, 2006, at 9:01 PM, Emilio Mayorga wrote: > This site does not break any new ground with MapServer. In fact, I'm > still stuck with 4.0 b/c I don't have the time to upgrade. But I > really wanted to thank the community, especially Steve Lime, for the > excellent feedback I got over the last two and a half years while > building the site (it's been a labor of love), and the resources > available in the form of the mailing list archives, documentation, and > presentations from the conferences available on the web. I even got to > submit a feature request (regarding HTML legends) and saw it > implemented by Steve and Daniel Morissette (or Paul Spencer, I > forget)! > > Our site uses Steve's javascript DHTML framework, and the layer tree > javascript code swiped from the Red River Basin site. If I can take > any credit, it's for integrating the two fairly closely and packaging > it all a bit more cleanly, in a separate .js file. It's also fully > bilingual, though the way it's done may not be the most elegant > (PHP/server-side scripting wasn't an option). If anyone is interested > in what you see there, please email me and I'd be happy to talk about > it. > > Cheers, > > Emilio Mayorga > Central American Ecology & Environment (http://garrobo.org/) > > > Mapache: New web mapping tool for Central America, focused on "Ecology > & Environment" > http://geo.garrobo.org/mapache/index.html > > The CAEE/ACEA group (http://garrobo.org/) is pleased to present > "Mapache", an online mapping tool focusing on Central America. The > result of an all-volunteer effort, it is a GIS software framework for > presenting interactive maps covering all of Central America, using > free, open-source software. With this framework and with appropriate > geographical datasets (including real-time data), our goal is to build > applications focused on particular themes: ecosystems, biodiversity, > climate, geology, oceans, etc. We intend to make existing information > more easily accessible. Our first thematic application is > "Ecosystems": http://geo.garrobo.org/mapache/en/ecosistem.html. We > thank many groups that make their data freely available: universities, > non-governmental organizations, and national, regional, and > international agencies. We are especially grateful to the University > of Washington River Systems Research Group for donating the server and > bandwith. Mapache was developed through a collaboration between Emilio > Mayorga, Derek Parent, and Alexis Aguilar > (http://garrobo.org/members.html). > > Please contact us if you would like to collaborate with us. > -- Puneet Kishor From emiliomayorga at GMAIL.COM Sun Mar 12 09:59:17 2006 From: emiliomayorga at GMAIL.COM (Emilio Mayorga) Date: Sun, 12 Mar 2006 09:59:17 -0800 Subject: new mapserver site for Central America; thanks for all the help! In-Reply-To: Message-ID: Puneet & Blaise, Thank you for your feedback. I test with Firefox and IE, but have never tried a KHTML-based browser (either Safari or Konqueror). I didn't realize that Gecko was more forgiving of non-standard HTML than KHTML, that's great to know. I don't have access to a Mac, and while the site is served on a Linux server, I don't have a local linux box where I could conveniently test on Konqueror. Is there a KHTML-based browser that runs on Windows that you'd recommend? Unfortunately, my html is old and in table hell, but getting the site to work on KHTML browsers will be a nice long-term goal. Cheers, -Emilio On 3/12/06, Puneet Kishor wrote: > > On Mar 12, 2006, at 10:03 AM, blaise wrote: > > > Same, nice work Emilio, but same, on a my linux box, it displays well > > in > > Mozilla and Firefox, but the image is misplaced in Konqueror. > > Makes sense. Safari is based on KHTML, the basis for Konqueror. Emilio, > keep in mind, for most every part, Safari is totally standards > compliant. So are Gecko-based browsers (Mozilla, Firefox, Camino, > etc.), but they may be more forgiving of non-standard html. I could be > very wrong in this, but generally if it works in Safari, it is > standards-compliant, and will likely work in other standards-compliant > browsers. There are a few Safari (Webkit) specific features, but they > degrade gracefully (although the validation service complains). > > > > > On Sunday 12 March 2006 13:00, Puneet Kishor wrote: > >> Hi Emilio, > >> > >> Nice work. Some feedback from the Mac side... looks nice in Camino, > >> but > >> the image is misplaced in Safari. The image shows up in the top left > >> corner of the browser instead of in the image box. Hope you can fix > >> that. > >> > >> Puneet. > Puneet Kishor From punkish at EIDESIS.ORG Sun Mar 12 08:11:13 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Sun, 12 Mar 2006 10:11:13 -0600 Subject: new mapserver site for Central America; thanks for all the help! In-Reply-To: <200603121703.02483.bpicinbono@worldonline.fr> Message-ID: On Mar 12, 2006, at 10:03 AM, blaise wrote: > Same, nice work Emilio, but same, on a my linux box, it displays well > in > Mozilla and Firefox, but the image is misplaced in Konqueror. Makes sense. Safari is based on KHTML, the basis for Konqueror. Emilio, keep in mind, for most every part, Safari is totally standards compliant. So are Gecko-based browsers (Mozilla, Firefox, Camino, etc.), but they may be more forgiving of non-standard html. I could be very wrong in this, but generally if it works in Safari, it is standards-compliant, and will likely work in other standards-compliant browsers. There are a few Safari (Webkit) specific features, but they degrade gracefully (although the validation service complains). > > On Sunday 12 March 2006 13:00, Puneet Kishor wrote: >> Hi Emilio, >> >> Nice work. Some feedback from the Mac side... looks nice in Camino, >> but >> the image is misplaced in Safari. The image shows up in the top left >> corner of the browser instead of in the image box. Hope you can fix >> that. >> >> Puneet. >> >> On Mar 11, 2006, at 9:01 PM, Emilio Mayorga wrote: >>> This site does not break any new ground with MapServer. In fact, I'm >>> still stuck with 4.0 b/c I don't have the time to upgrade. But I >>> really wanted to thank the community, especially Steve Lime, for the >>> excellent feedback I got over the last two and a half years while >>> building the site (it's been a labor of love), and the resources >>> available in the form of the mailing list archives, documentation, >>> and >>> presentations from the conferences available on the web. I even got >>> to >>> submit a feature request (regarding HTML legends) and saw it >>> implemented by Steve and Daniel Morissette (or Paul Spencer, I >>> forget)! >>> >>> Our site uses Steve's javascript DHTML framework, and the layer tree >>> javascript code swiped from the Red River Basin site. If I can take >>> any credit, it's for integrating the two fairly closely and packaging >>> it all a bit more cleanly, in a separate .js file. It's also fully >>> bilingual, though the way it's done may not be the most elegant >>> (PHP/server-side scripting wasn't an option). If anyone is interested >>> in what you see there, please email me and I'd be happy to talk about >>> it. >>> >>> Cheers, >>> >>> Emilio Mayorga >>> Central American Ecology & Environment (http://garrobo.org/) >>> >>> >>> Mapache: New web mapping tool for Central America, focused on >>> "Ecology >>> & Environment" >>> http://geo.garrobo.org/mapache/index.html >>> >>> The CAEE/ACEA group (http://garrobo.org/) is pleased to present >>> "Mapache", an online mapping tool focusing on Central America. The >>> result of an all-volunteer effort, it is a GIS software framework for >>> presenting interactive maps covering all of Central America, using >>> free, open-source software. With this framework and with appropriate >>> geographical datasets (including real-time data), our goal is to >>> build >>> applications focused on particular themes: ecosystems, biodiversity, >>> climate, geology, oceans, etc. We intend to make existing information >>> more easily accessible. Our first thematic application is >>> "Ecosystems": http://geo.garrobo.org/mapache/en/ecosistem.html. We >>> thank many groups that make their data freely available: >>> universities, >>> non-governmental organizations, and national, regional, and >>> international agencies. We are especially grateful to the University >>> of Washington River Systems Research Group for donating the server >>> and >>> bandwith. Mapache was developed through a collaboration between >>> Emilio >>> Mayorga, Derek Parent, and Alexis Aguilar >>> (http://garrobo.org/members.html). >>> >>> Please contact us if you would like to collaborate with us. >> >> -- >> Puneet Kishor >> -- Puneet Kishor From punkish at EIDESIS.ORG Sun Mar 12 10:12:42 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Sun, 12 Mar 2006 12:12:42 -0600 Subject: new mapserver site for Central America; thanks for all the help! In-Reply-To: Message-ID: On Mar 12, 2006, at 11:59 AM, Emilio Mayorga wrote: > Puneet & Blaise, > > Thank you for your feedback. I test with Firefox and IE, but have > never tried a KHTML-based browser (either Safari or Konqueror). I > didn't realize that Gecko was more forgiving of non-standard HTML than > KHTML, that's great to know. Well, it may not be true, but that is my guess. Also, keep in mind that Webkit (Apple's extended fork of KHTML) is slightly different, although Apple contributes its changes back to the KHTML project. But the Safari team has been pretty conscientious about sticking to standards. It is surprising to see Gecko doing things differently from Safari. > I don't have access to a Mac, and while > the site is served on a Linux server, I don't have a local linux box > where I could conveniently test on Konqueror. Is there a KHTML-based > browser that runs on Windows that you'd recommend? Unfortunately, I think you are out of luck. A quick search reveals (from wikipedia) > KHTML and WebKit-based browsers > The open source KHTML layout engine is developed by the KDE project. > WebKit is an open-source fork of that engine by Apple Computer. > Konqueror > Safari > ABrowse > Atlantis [1] > OmniWeb > Shiira > SkyKruzer > SunriseBrowser [2] None of the browsers listed above are for Windows. They are either Linux, or mainly Webkit (Mac OS X), or some other OS. > > Unfortunately, my html is old and in table hell, but getting the site > to work on KHTML browsers will be a nice long-term goal. > yeah, I took a peek at the source, and you are right about that. On the other hand, if your app is not going to be used by Konqueror/Safari type users (definitely we are a minority), then it may not be worth it for you to fix it, especially if you can't lay your hands on those browsers to test. > > > On 3/12/06, Puneet Kishor wrote: >> >> On Mar 12, 2006, at 10:03 AM, blaise wrote: >> >>> Same, nice work Emilio, but same, on a my linux box, it displays well >>> in >>> Mozilla and Firefox, but the image is misplaced in Konqueror. >> >> Makes sense. Safari is based on KHTML, the basis for Konqueror. >> Emilio, >> keep in mind, for most every part, Safari is totally standards >> compliant. So are Gecko-based browsers (Mozilla, Firefox, Camino, >> etc.), but they may be more forgiving of non-standard html. I could be >> very wrong in this, but generally if it works in Safari, it is >> standards-compliant, and will likely work in other standards-compliant >> browsers. There are a few Safari (Webkit) specific features, but they >> degrade gracefully (although the validation service complains). >> >>> >>> On Sunday 12 March 2006 13:00, Puneet Kishor wrote: >>>> Hi Emilio, >>>> >>>> Nice work. Some feedback from the Mac side... looks nice in Camino, >>>> but >>>> the image is misplaced in Safari. The image shows up in the top left >>>> corner of the browser instead of in the image box. Hope you can fix >>>> that. -- Puneet Kishor From punkish at EIDESIS.ORG Sun Mar 12 10:14:51 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Sun, 12 Mar 2006 12:14:51 -0600 Subject: new mapserver site for Central America; thanks for all the help! In-Reply-To: Message-ID: Here is an interesting extract from the Wikipedia that supports my statement below -- On Mar 12, 2006, at 11:59 AM, Emilio Mayorga wrote: > Puneet & Blaise, > > Thank you for your feedback. I test with Firefox and IE, but have > never tried a KHTML-based browser (either Safari or Konqueror). I > didn't realize that Gecko was more forgiving of non-standard HTML than > KHTML, that's great to know. > KHTML is the HTML layout engine developed by the KDE project. > Built on the then new KPart framework, it was introduced with KDE2 in > 2000, for use in the new Konqueror file and web browser which replaced > the monolithic KDE File Manager. Written in C++ and licensed under the > LGPL, it supports most of the standards related to web browsing. In an > attempt to render as many pages as possible, some extra abilities and > quirks from Internet Explorer are supported, even though they are not > part of the HTML standard definition. > KHTML is fast, but currently less error tolerant than the Gecko layout > engine, its main open source rival and core of the Mozilla and Mozilla > Firefox browsers, among others. Note the last line above. -- Puneet Kishor From beproject06 at YAHOO.COM Sun Mar 12 11:03:09 2006 From: beproject06 at YAHOO.COM (Apeksha Bhambhani) Date: Sun, 12 Mar 2006 11:03:09 -0800 Subject: 500 internal server error Message-ID: Hii all, While running Mapserver on our localhost , as : http://localhost/cgi-bin/mapserv it gives the "500 internal server error" . The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root at localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. We are working on root . On checking the error log the following messages were retrieved : [Sun Mar 12 23:27:12 2006] [error] [client 127.0.0.1] (13)Permission denied: exec of '/var/www/cgi-bin/mapserv' failed [Sun Mar 12 23:27:12 2006] [error] [client 127.0.0.1] Premature end of script headers: mapserv [Sun Mar 12 23:27:12 2006] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico However using the Php/Mapscript API we are able to display the images . Could someone please help us Thanks Apeksha --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses! -------------- next part -------------- An HTML attachment was scrubbed... URL: From punkish at EIDESIS.ORG Sun Mar 12 11:29:32 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Sun, 12 Mar 2006 13:29:32 -0600 Subject: 500 internal server error In-Reply-To: <20060312190309.2596.qmail@web31612.mail.mud.yahoo.com> Message-ID: On Mar 12, 2006, at 1:03 PM, Apeksha Bhambhani wrote: > Hii all, > ? > While running Mapserver on our localhost , as : > http://localhost/cgi-bin/mapserv? it gives the "500 internal server > error" . > The server encountered an internal error or misconfiguration and was > unable to complete your request. > Please contact the server administrator, root at localhost and inform > them of the time the error occurred, and anything you might have done > that may have caused the error. > More information about this error may be available in the server error > log. > ? > We are working on root?. On checking the error log the following > messages were retrieved :? > ? > > [Sun Mar 12 23:27:12 2006] [error] [client 127.0.0.1] (13)Permission > denied: exec of '/var/www/cgi-bin/mapserv' failed That is a clue. Check your permissions. Make sure Apache is configured to execute files in that cgi-bin, and that cgi-bin itself has correct permissions chmod-ed (and chown-ed). > However using the Php/Mapscript API we are able to display the images . > That is being executed in a different directory which probably has the correct permissions, hence, it works. -- Puneet Kishor From flavio at TYDAC.CH Sun Mar 12 23:37:08 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Mon, 13 Mar 2006 08:37:08 +0100 Subject: New User - What to start with: Unix or Windows In-Reply-To: <6.2.3.4.0.20060312085419.01e399c0@pop.bluewin.ch> Message-ID: Hi Mr. Meyer see http://chris.narx.net/2005/09/02/how-to-convert-mxd-to-map-use-amein/ (see bottom, someone else had the problem). maybe it helps ... things to check: - version of ArcGIS problem? - does it work when you login as admin? Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ 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 ---------------------------------------------------------------- From sdc at SDC.COM.AU Mon Mar 13 00:33:26 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Mon, 13 Mar 2006 19:03:26 +1030 Subject: "Capturing" mapserver images Message-ID: Greetings. I need to be able to present a series of maps for "time lapse" display. The PostgreSQL database behind the mapserver application in question contains both geometry and time-based attribute values and the map file currently used to display the data uses layers, filters and classes to colour geometries according to current attribute values. The idea is to somehow capture the images showing the geometry states at, for example, noon each day for the past month and then use javascript to display those images as a "movie" similar to those provided by many weather bureaux. I have tried doing it simply by pausing in the browser between repaint requests but there is too much variability between browsers and - in particular - between broadband and dialup users. I know I could achieve the objective by writing a PERL or Java program to emulate a browser, retrieve the output image name and ignore the output but wondered if there were a simpler method such as invoking mapserver in map mode from a shell. Any suggestions and/or advice would be most welcome. Cheers and thanks, Stephen Davies -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From mulka at UMICH.EDU Mon Mar 13 00:51:32 2006 From: mulka at UMICH.EDU (Kyle Mulka) Date: Mon, 13 Mar 2006 03:51:32 -0500 Subject: Clickable Rotated Floorplans on the Web Message-ID: Hello, So... I want to georeference a bunch of floor plans... got that down, not a problem. Then, I want to serve them on the web via the Google Maps interface... again not a problem. The problem come in when I want north to be another direction besides straight up. I can no longer use Google Maps, because I can't figure out how to get it to rotate its coordinate system so that I can add markers via lat/long and detect the lat/long of a point the user clicks on. The other problem I'm having with mapserver is that the images it creates are not as clean as the original input image. Here's with mapserver: http://maps.kylemulka.com/floorplan-test8.php Here's without: http://maps.kylemulka.com/imagemagick/liveugli.php Notice how much clearer the second set of maps are when I don't use mapserver. I'm instead simply using imagemagick to tile the input image. You may have to zoom in all the way to see the difference. Also notice that north has to be straight up when I try to place markers by lat/long. What are the possible solutions to these two problems? Does anyone know of software I could to help me out here? I don't want to use Flash or a Java Applet because of the need to install plugins. Thanks, -- Kyle Mulka liveUgli.com's Mapping Guru From Gail.Millin at MANCHESTER.AC.UK Mon Mar 13 00:50:28 2006 From: Gail.Millin at MANCHESTER.AC.UK (Gail Millin) Date: Mon, 13 Mar 2006 08:50:28 +0000 Subject: new mapserver site for Central America; thanks for all the help!; Message-ID: An HTML attachment was scrubbed... URL: From chris at NARX.NET Mon Mar 13 01:20:28 2006 From: chris at NARX.NET (Chris Tweedie) Date: Mon, 13 Mar 2006 17:20:28 +0800 Subject: "Capturing" mapserver images In-Reply-To: <200603131903.26122.sdc@sdc.com.au> Message-ID: Hi Steve, WMS-Time support is my obvious suggestion for your situation. Check out http://mapserver.gis.umn.edu/docs/howto/wms_time_support for setting up inside Mapserver and also http://geoservices.cgdi.ca/mapbuilder/demo/timeSeries/index.html for an example of a "pseudo-animation" mapbuilder client which seems to fit your requirements quite well. Regards, Chris Quoting Stephen Davies : > Greetings. > > I need to be able to present a series of maps for "time lapse" display. > > The PostgreSQL database behind the mapserver application in question > contains both geometry and time-based attribute values and the map file > currently used to display the data uses layers, filters and classes to > colour geometries according to current attribute values. > > The idea is to somehow capture the images showing the geometry states > at, for example, noon each day for the past month and then use > javascript to display those images as a "movie" similar to those > provided by many weather bureaux. > > I have tried doing it simply by pausing in the browser between repaint > requests but there is too much variability between browsers and - in > particular - between broadband and dialup users. > > I know I could achieve the objective by writing a PERL or Java program > to emulate a browser, retrieve the output image name and ignore the > output but wondered if there were a simpler method such as invoking > mapserver in map mode from a shell. > > Any suggestions and/or advice would be most welcome. > > Cheers and thanks, > Stephen Davies > -- > ======================================================================== > This email is for the person(s) identified above, and is confidential to > the sender and the person(s). No one else is authorised to use or > disseminate this email or its contents. > > Stephen Davies Consulting Voice: 08-8177 1595 > Adelaide, South Australia. Fax: 08-8177 0133 > Computing & Network solutions. Mobile:0403 0405 83 > From flavio at TYDAC.CH Mon Mar 13 02:33:49 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Mon, 13 Mar 2006 11:33:49 +0100 Subject: Clickable Rotated Floorplans on the Web In-Reply-To: <44153294.80701@umich.edu> Message-ID: Hy Kyle try to use resampling in your mapfile (set the output to jpeg): LAYER NAME "Ortsplan 8m" TYPE RASTER MINSCALE 50000 STATUS ON DATA "ortsplan/ortsplan_8.tif" PROCESSING "RESAMPLE=AVERAGE" PROJECTION "init=world:CH1903" END END Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ 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 ---------------------------------------------------------------- From m.esposito at SOFTEC-SRL.COM Mon Mar 13 03:05:23 2006 From: m.esposito at SOFTEC-SRL.COM (Maurizio Esposito) Date: Mon, 13 Mar 2006 05:05:23 -0600 Subject: Item Query Hilight Message-ID: Hi list, my problem is rather simple, but very important for my application in my mapfile I use two layers from PostGIS, streets and buildings streets are type line, while buildings are polygon. When querying, with query hilite , buildings are correctly hilited in yellow in the query map,while streets don't. Data from templates are correct, I can see in the template name and id of all queried streets, but no hilight in the query map. For buildings ( maybe cause are polygons? ) everything works fine. This problem comes both in single and in multi query mode. Any help ? Regards Maurizio Esposito From mh at SVAJ.DK Mon Mar 13 03:36:13 2006 From: mh at SVAJ.DK (=?ISO-8859-1?Q?Martin_H=F8gh?=) Date: Mon, 13 Mar 2006 12:36:13 +0100 Subject: Announcement - new version of AppForMap Message-ID: Dear list, I've released a new version of the MapServer, PostGIS, WMS and WFS web-based client AppForMap. News are the use of AJAX and WFS support. http://mapuse.net Best regards, Martin From cjesch at CCT.LSU.EDU Mon Mar 13 05:21:36 2006 From: cjesch at CCT.LSU.EDU (Carola Jesch) Date: Mon, 13 Mar 2006 07:21:36 -0600 Subject: Resolution of screen In-Reply-To: <5383fa5e0603080842q3b2642fftcc5889c351b2d43a@mail.gmail.com> Message-ID: Hi List, I have developed an MapServer application with a quite large spatial extent (coastal Louisiana, Alabama, Mississippi). Sometimes our users would like to see the maps as large as possible. I have been thinking about adjusting the display of the maps to the largest possible screen extent (full screen with only some buttons like zoom and pan). Has anybody of you experience with that? Is there a piece of javascript code to find out the current screen resolution? Any tip is welcome. Carola ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Carola Jesch Wetland Biogeochemistry Institute Department of Oceanography and Coastal Science Louisiana State University 3191 Energy, Coast & Environment Bldg. Baton Rouge, LA,70803 e-mail: cjesch at cct.lsu.edu From siki at AGT.BME.HU Mon Mar 13 08:59:18 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 13 Mar 2006 15:59:18 -0100 Subject: Resolution of screen {Scanned} In-Reply-To: <000001c646a1$0e2c96c0$0200a8c0@lsu.edu> Message-ID: Hi, screen,width and screen.height Zoltan On Mon, 13 Mar 2006, Carola Jesch wrote: > Hi List, > I have developed an MapServer application with a quite large spatial extent > (coastal Louisiana, Alabama, Mississippi). Sometimes our users would like to > see the maps as large as possible. I have been thinking about adjusting the > display of the maps to the largest possible screen extent (full screen with > only some buttons like zoom and pan). > Has anybody of you experience with that? Is there a piece of javascript code > to find out the current screen resolution? > Any tip is welcome. > > Carola > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Carola Jesch > Wetland Biogeochemistry Institute > Department of Oceanography and Coastal Science > Louisiana State University > 3191 Energy, Coast & Environment Bldg. > Baton Rouge, LA,70803 > e-mail: cjesch at cct.lsu.edu > From ed at TOPOZONE.COM Mon Mar 13 06:48:48 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 13 Mar 2006 09:48:48 -0500 Subject: Resolution of screen {Scanned} Message-ID: Carola - You may prefer using screen.availWidth and screen.availHeight, which give you the "available" height and width, exclusive of user interface elements you may not be able to hide (the Windows toolbar at the bottom, for example). You will find quite a few quirks with these measurements, which may or may not matter to you. Older browsers can have trouble with them, newer ones that aren't Netscape or IE may give you trouble, and multiple-monitor systems may be confusing. The simple route will work 95% of the time, but if you care about that other 5% (universities are notorious for running ancient browsers) you should do some careful testing. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Siki Zoltan Sent: Monday, March 13, 2006 11:59 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Resolution of screen {Scanned} Hi, screen,width and screen.height Zoltan On Mon, 13 Mar 2006, Carola Jesch wrote: > Hi List, > I have developed an MapServer application with a quite large spatial > extent (coastal Louisiana, Alabama, Mississippi). Sometimes our users > would like to see the maps as large as possible. I have been thinking > about adjusting the display of the maps to the largest possible screen > extent (full screen with only some buttons like zoom and pan). > Has anybody of you experience with that? Is there a piece of > javascript code to find out the current screen resolution? > Any tip is welcome. > > Carola > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Carola Jesch > Wetland Biogeochemistry Institute > Department of Oceanography and Coastal Science Louisiana State > University > 3191 Energy, Coast & Environment Bldg. > Baton Rouge, LA,70803 > e-mail: cjesch at cct.lsu.edu > From mapserver at GEOWORLD.DE Mon Mar 13 08:10:00 2006 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Mon, 13 Mar 2006 17:10:00 +0100 Subject: qix Error Message with java mapscript Message-ID: Hi List i have got a very simple map-file (one layer with a shapefile datasource) and a java class which loads this map-file. See below. When i execute this script without any further actions everything is fine. When i execute the zoomRectangle method on it i got the following error message: Exception in thread "main" java.io.IOException: Unable to open spatial index for /tmp/world.qix. In most cases you can safely ignore this message, otherwise check file names and permissions. at edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native Method) at edu.umn.gis.mapscript.mapObj.draw(mapObj.java:397) at msjava.world.main(world.java:22) Why did this error only occur when i execute the zoomRectangle method. Is it always necessary to create the qix file (when i create the qix file the error message disappear)? Is this a bug? Many thank for your help Nicol package msjava; import edu.umn.gis.mapscript.*; public class world { public static void main(String[] args) { world w = new world(); System.loadLibrary("mapscript"); imageObj bild; mapObj map = new mapObj("/tmp/world.map"); w.zoomRect(map, "230 328 288 397"); bild = map.draw(); bild.save("/tmp/test.png", map); bild.delete(); } public void zoomRect(mapObj map, String imgbox) { rectObj img = getRectObj(imgbox); double minY = img.getMiny(); double maxY = img.getMaxy(); img.setMaxy(minY); img.setMiny(maxY); map.zoomRectangle(img, map.getWidth(), map.getHeight(), map.getExtent(),null); } public static rectObj getRectObj(String coords) { String[] sImgrect = coords.split(" "); rectObj rectObj = new rectObj(Float.parseFloat(sImgrect[0]),Float.parseFloat(sImgrect[1]),Float.parseFloat(sImgrect[2] ),Float.parseFloat(sImgrect[3]),mapscript.MS_FALSE); return rectObj; } } From mac at MACKRACKIT.COM Mon Mar 13 08:13:58 2006 From: mac at MACKRACKIT.COM (Dave McCormick) Date: Mon, 13 Mar 2006 10:13:58 -0600 Subject: Installation problem Message-ID: Hi, I am using Mandrake 10, Apache 2.2 , PHP 4.4.2. Following the instructions from here http://ms.gis.umn.edu/docs/howto/compiling_on_unix and here http://mapserver.gis.umn.edu/docs/howto/verboselinuxinstall. When I get to the end and test "./mapserv" the correct message returns. When I test on a browser "http://yourhostname.com/cgi-bin/mapserv" I recieve "download program as file?". I imagine the proplem is in my php setup, but after four times of setting things up (reinstall apache, php, etc, I still have the same problem. Any ideas as to what I am doing wrong. Thanh you, Dave From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Mon Mar 13 08:28:00 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Mon, 13 Mar 2006 11:28:00 -0500 Subject: Installation problem Message-ID: "mapserv" is the CGI, therefore the PHP configuration has no bearing on it. Look in apache's "error_log" to see if anything shows up when you make a request to the CGI? Normally, you should see the same message in your browser that you would see from the command line (i.e. "QUERY_STRING not set ..."). Since you don't presumably some error occurs, and hopefully it shows up in apache's error log file. J.F. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dave McCormick Sent: March 13, 2006 11:14 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Installation problem Hi, I am using Mandrake 10, Apache 2.2 , PHP 4.4.2. Following the instructions from here http://ms.gis.umn.edu/docs/howto/compiling_on_unix and here http://mapserver.gis.umn.edu/docs/howto/verboselinuxinstall. When I get to the end and test "./mapserv" the correct message returns. When I test on a browser "http://yourhostname.com/cgi-bin/mapserv" I recieve "download program as file?". I imagine the proplem is in my php setup, but after four times of setting things up (reinstall apache, php, etc, I still have the same problem. Any ideas as to what I am doing wrong. Thanh you, Dave From mscharber at UCSD.EDU Mon Mar 13 09:13:00 2006 From: mscharber at UCSD.EDU (Michael Scharber) Date: Mon, 13 Mar 2006 09:13:00 -0800 Subject: How to avoide HUGE .map files {Scanned} In-Reply-To: Message-ID: Zoltan (,Ed M. and Bart), Thanks for the quick response despite my obvious neglect for the list archives on this occasion. The preprocessor route sounds close to perfect, and no doubt will work just fine for us. Cheers, Michael ******************************************************* Michael Scharber Scripps Institution of Oceanography Institute of Geophysics and Planetary Physics 8785 Biological Grade IGPP Room 4212 La Jolla, CA 92037 mscharber at gpsmail.ucsd.edu (858)534-1750 ******************************************************* On Thu, 9 Mar 2006, Siki Zoltan wrote: > Hi, > > You can use cpp (c preprocessor) havind #include directives. > The only withdraw you have to escape map file comments using ## or \# > > Zoltan > > On Thu, 9 Mar 2006, Michael Scharber wrote: > >> Ed, >> >> Though I'm not looking for an editor, per se, I would like to know how to >> reuse chunks of mapfile config (100s of lines) across multiple mapfiles >> with little or no replication. Is there a way to "include" mapfile >> fragments into other mapfiles? >> >> Michael >> >> >> On Thu, 9 Mar 2006, Ed Dowding wrote: >> >>> Does anyone have any advice on how to avoid huge .map files? >>> >>> We have a flash interface to our mapserver app, and we have mapping for the >>> whole or europe (and much of america) down to building outline level. >>> >>> Our interface makes it possible to scroll the map from country to country, >>> and zoom in/out, so really all styling has to be in the one file. >>> >>> But... >>> >>> 1) Does it all have to be in that file? Am I right about this? >>> >>> 2) any tips on managing and styling them? I'm currently using jedit since it >>> has nice code folding. I'm yet to find a GUI that exports .map files in a >>> format that is immediately usable. >>> >>> 3) any other tips from anyone? >>> >>> Thanks in advance, >>> >>> Ed >>> >> > From bpederse at NATURE.BERKELEY.EDU Mon Mar 13 09:51:44 2006 From: bpederse at NATURE.BERKELEY.EDU (Brent Pedersen) Date: Mon, 13 Mar 2006 09:51:44 -0800 Subject: Installation problem In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7DFB@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: hi, i would check that the mapserv is chown'ed by you:apache and chmod +x it also check your apache conf file to make sure that ScriptAlias points to the cgi-bin. your result seems like apache isn't recognizing mapserv as a cgi script. do you have any other scripts in that directory? do they work? -brent On Mar 13, 2006, at 8:28 AM, Doyon, Jean-Francois wrote: > "mapserv" is the CGI, therefore the PHP configuration has no > bearing on it. > > Look in apache's "error_log" to see if anything shows up when you > make a > request to the CGI? > > Normally, you should see the same message in your browser that you > would see > from the command line (i.e. "QUERY_STRING not set ..."). > > Since you don't presumably some error occurs, and hopefully it > shows up in > apache's error log file. > > J.F. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER- > USERS at LISTS.UMN.EDU] On > Behalf Of Dave McCormick > Sent: March 13, 2006 11:14 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Installation problem > > Hi, > > I am using Mandrake 10, Apache 2.2 , PHP 4.4.2. Following the > instructions > from here http://ms.gis.umn.edu/docs/howto/compiling_on_unix and here > http://mapserver.gis.umn.edu/docs/howto/verboselinuxinstall. > > When I get to the end and test "./mapserv" the correct message > returns. > > When I test on a browser "http://yourhostname.com/cgi-bin/mapserv" > I recieve > "download program as file?". > > I imagine the proplem is in my php setup, but after four times of > setting > things up (reinstall apache, php, etc, I still have the same problem. > > Any ideas as to what I am doing wrong. > > Thanh you, > Dave > From nbarker at RSINC.COM Mon Mar 13 09:58:59 2006 From: nbarker at RSINC.COM (Norman Barker) Date: Mon, 13 Mar 2006 17:58:59 -0000 Subject: [OSGeo-Discuss] Introduction - hi; gis based wychwood work;pointers on how to enter "GIS" world? Message-ID: -----Original Message----- From: M.Blackmore [mailto:mblackmore at oxlug.org] Sent: Monday, March 13, 2006 5:20 PM To: discuss at mail.osgeo.org Subject: Re: [OSGeo-Discuss] Introduction - hi; gis based wychwood work;pointers on how to enter "GIS" world? On Mon, 2006-03-13 at 10:14 -0500, Frank Warmerdam wrote: > M.Blackmore wrote: > > So ... for a COMPLETE gis newbie ... where do I start? Thanks for the suggestions thus far, folks! The level of my ignorance is profound as I didn't understand most of what Frank was saying, the terminology being utterly unfamiliar (polygons? Wossat? A dead parrot?) but I could take some guesses... So I'll try and rustle out a few books and such like. I can also play with mapinfo of which they have data from people like Thames Water and the County Council made available. Trouble is - and this is the trouble with expensive proprietary software - the only licenced copy they've got is on the director's PC so I have to fit in when he's not using the machine, i.e. for an hour or so Friday morning when my 3yr old is in preschool. Such restrictions (machine licences, not 3 year olds...) are amongst the reason why, if the functionality can be created using open source, there would be a lot of support for a move into OS, thus allowing widespread access. Data source restrictions are of course another issue! > > Hopefully others will provide some good suggestions for materials. I > would recommend "Web Mapping Illustrated" by Tyler Mitchell as a useful > read. It reviews a variety of tools though it is by no means > comprehensive. It should be especially useful for the portion of your > project which would be presenting the mapping information on the web > once collected. > > I think the biggest challenges for your work will be: > o Getting appropriate background map data (imagery and vector) for > context when you are trying to collect and display your old/new > forest polygons. > > o Managing collaberative editing of the datasets by a variety of > volunteers. > > I couple items of interest with regard to collaberative editing. > > o MapBuilder: It is a client web mapping environment, but Cameron > Shorter (one of the key players in the projects) wishes to use it > for cooperative collection of bike routes in Australia. I imagine > he can provide advice. > > http://docs.codehaus.org/display/MAP/Home/ > > o OpenStreetMap: Something similar for cooperative collection of > streetmap data. Might be applicable to your work as well. > > For data, you might be able to harvest good imagery from Google maps. > Otherwise it may get expensive. > > Ideally you would be able to use something like MapBuilder for web > based collection of data, and keep the polygon data in a PostGIS > database providing a good degree of managability. > > However, if that proves difficult to realize, you may have to fallback > on more primitive approaches. Basically proividing background imagery > and vector data for people to digitize polygon data on in a desktop > GIS software like QGIS, GRASS, or OpenEV. Then re-integrate submitted > datasets on the backend using scripts (perhaps Python scripts based on OGR). > > It gets much more challenging when folks want to submit changes to > existing data, and when several people might have "the dataset" off > in the field, working on different parts. This is a classic problem, > and not one well addressed by "canned" open source solutions. > > With some trepadation I am cc:ing this back to the discuss list since > though I'm sure it will expose my ignorance of lots of options. > > PS. I just read a book about a fellow hiking down the 2degree meridian > in England, and some of the names are quite familiar. I can almost > imagine your area from his descriptions in the book. > > Best regards,, Hi, I have been noticing more and more communications on the GDAL, GeoServer, MapServer lists from the UK. Last year Steve Lime kindly interrupted his holiday in Edinburgh and we held an informal UK meeting (held at short notice, so attendance was limited). Certainly from this I learnt about the work at EDINA, and MIMAS. Can I propose a UK meeting group, held in the London / Oxford areas? I know a lot of people in the UK who are using OSS GIS software, perhaps we could have a wiki page somewhere and add our names to it if we are interested. Certainly this type of UK forum would enable people to come to a workshop and ask questions face to face, though this mailing list does an excellent job, the social interaction is useful. In particular I would encourage you to come to the AGI conference in the UK, where Wyn Cudlip, myself, Gail Millin, Giulio Pagan, Jeremy Morley, Martin Daly (who's names I notice on this list) and others are speaking on Open Source GIS (http://www.agi.org.uk/pooled/articles/BF_EVENTART/view.asp?Q=BF_EVENTART_184699). Sounds like an interesting project, Norman From hartpence_gis at CO.JASPER.IA.US Mon Mar 13 11:24:51 2006 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Mon, 13 Mar 2006 13:24:51 -0600 Subject: Point Layer Won't Draw Message-ID: Hello, I am using Mapserver 4.6 on a windows machine with IIS. I have the ms4w build installed on my machine. I have a layer named ctl2005. It is a shapefile. It won't draw. I have tried different mapfiles. I tried using different symbology. Nothing works. It does draw in ArcIMS. Does anyone have any ideas what is going on here? Thanks!! Lawrence Hartpence GIS Coordinator 101 1st St N Newton IA 50208 641-792-3084 hartpence_gis at co.jasper.ia.us From steves at VCGI.ORG Mon Mar 13 11:16:10 2006 From: steves at VCGI.ORG (Steve Sharp) Date: Mon, 13 Mar 2006 14:16:10 -0500 Subject: Anyone doing Daily MapServer builds for Windows? Message-ID: Hello, I'm wondering if you or anyone out there is doing daily (or regular) builds of the latest/current version of MapServer (for Windows)? I've been using a build of MapServer 4.8.1 distributed under MS4W (http://maptools.org/ms4w/index.phtml?page=downloads.html). I need some of the latest bleeding edge capabilities but I'm trying to avoid a build (...yup...I'm a wimp!). Got a build you would be willing to share? -- |______________________________________________________________________ | Steve Sharp | Email: steves at vcgi.org | | Senior Project Manager / DBA / Web Admin | Phone: 802-882-3006 | | Vermont Center for Geographic Information | URL: http://www.vcgi.org | |___________________________________________|__________________________| -------------- next part -------------- A non-text attachment was scrubbed... Name: steves.vcf Type: text/x-vcard Size: 281 bytes Desc: not available URL: From banders at REFRACTIONS.NET Mon Mar 13 13:08:24 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Mon, 13 Mar 2006 13:08:24 -0800 Subject: Point Layer Won't Draw In-Reply-To: <000001c646d3$d0a11820$510a000a@jasper1.com> Message-ID: Lawrence, It's hard to diagnose your problem without seeing the map file. Can you post your map file (or at least the problem layer) to the list? Often when layers don't draw as expected it's because the layer's PROJECTION block is set up wrong. Check that you've got it set to the projection that your data is stored in. Brock Lawrence Hartpence wrote: >Hello, > >I am using Mapserver 4.6 on a windows machine with IIS. I have the ms4w >build installed on my machine. > >I have a layer named ctl2005. It is a shapefile. It won't draw. I have >tried different mapfiles. I tried using different symbology. Nothing >works. It does draw in ArcIMS. > >Does anyone have any ideas what is going on here? > >Thanks!! > >Lawrence Hartpence >GIS Coordinator >101 1st St N >Newton IA 50208 >641-792-3084 >hartpence_gis at co.jasper.ia.us > > From Debbie.Pagurek at EC.GC.CA Mon Mar 13 13:10:05 2006 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Mon, 13 Mar 2006 16:10:05 -0500 Subject: Point Layer Won't Draw Message-ID: You'll have to give us a bit more information in order for us to help you. Are you able to show any other layers? Why don't you post your mapfile here so we can have a look. Often when people can't see the'r map layers, there is a problem with the EXTENT or the PROJECTION parts of the mapfile. Sometimes people can't see their layers because they have the STATUS set to OFF Or the STATUS is set to ON but then they aren't including the layer in the URL. Try setting your layer's STATUS to DEFAULT. In terms of IIS setup, check http://mapserver.gis.umn.edu/docs/howto/setupiis D. Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lawrence Hartpence Sent: Monday, March 13, 2006 2:25 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Point Layer Won't Draw Hello, I am using Mapserver 4.6 on a windows machine with IIS. I have the ms4w build installed on my machine. I have a layer named ctl2005. It is a shapefile. It won't draw. I have tried different mapfiles. I tried using different symbology. Nothing works. It does draw in ArcIMS. Does anyone have any ideas what is going on here? Thanks!! Lawrence Hartpence GIS Coordinator 101 1st St N Newton IA 50208 641-792-3084 hartpence_gis at co.jasper.ia.us From hartpence_gis at CO.JASPER.IA.US Mon Mar 13 13:28:25 2006 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Mon, 13 Mar 2006 15:28:25 -0600 Subject: Point Layer Won't Draw In-Reply-To: <3F34A5A15450C74C813BA20E31DBB45101A0E051@ncrx3.ncr.int.ec.gc.ca> Message-ID: My mapfile is at the bottom. This shapefile is in the same projection as the other shapefiles. I created a very simple map site trying to find the problem. You can see the website at http://216.203.113.94/jaspermaps/temp_i.htm When I change the name of the shapefile to another point layer in the same directory, it works. It really seems that there is something wrong with the layer, but I don't know what. Lawrence NAME "temp" UNITS feet SIZE 639 491 IMAGECOLOR 255 255 255 IMAGETYPE gif EXTENT 1680507.39 547052.00 1844030.00 680312.51 FONTSET "C:\MS4W\Apache\htdocs\fontset.txt" SYMBOLSET "C:\MS4W\Apache\htdocs\symbols.sym" CONFIG PROJ_LIB "C:\ms4w\proj\nad\" WEB TEMPLATE "C:\MS4W\Apache\htdocs\temp.html" IMAGEPATH "C:\MS4W\tmp\ms_tmp\" IMAGEURL "/JasperMaps/ms_tmp/" END LAYER NAME "Monuments" STATUS default TYPE point DATA "C:\parcels_shape\ctl2005" CLASS SYMBOL 'circle' SIZE 20 COLOR 0 255 0 END END LAYER NAME "County" STATUS default TYPE polygon DATA "C:\parcels_shape\county" CLASS NAME "County" STYLE OUTLINECOLOR 212 192 100 END END END END From markadams at CUESTASYS.COM Mon Mar 13 13:56:00 2006 From: markadams at CUESTASYS.COM (Mark Adams) Date: Mon, 13 Mar 2006 15:56:00 -0600 Subject: php error with ogr odbc Message-ID: Hi all, I'm trying to connect to Oracle and display a set of points using the OGR virtual data driver. From ogrinfo I get a successful result (well, first and error 1 - setattributefilter() not supported on executesql() results - but then a successful listing of feature attributes). From my php mapscript application however I get a visual C++ runtime error from php: "This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information." My OVF file looks like this: ODBC:minf_p1/minf_p1 at NORMINA,MINFT_SHOWN_SHOWING select MINFT_SHOWN_SHOWING.* from MINFT_SHOWN_SHOWING wkbPoint Has anyone encountered this error before, and is this a configuration problem, compilation problem, or something else? Thanks in advance, Mark Adams markadams at cuestasys.com From jacob.delfos at MAUNSELL.COM Mon Mar 13 14:31:20 2006 From: jacob.delfos at MAUNSELL.COM (Delfos, Jacob) Date: Tue, 14 Mar 2006 06:31:20 +0800 Subject: Point Layer Won't Draw Message-ID: Lawrence, Any chance your point file is a "multi point" (Multipoint ZM) ? I am not sure, but I think Mapserver *may* still have problems with that. I know that 3D files now work, but multipoints may not. Open your shapefile in ArcGIS (f you can), and look at the value in the "shape" column of the attribute table. Regards, Jacob > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lawrence Hartpence > Sent: 14 March 2006 05:28 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Point Layer Won't Draw > > My mapfile is at the bottom. This shapefile is in the same > projection as > the other shapefiles. I created a very simple map site > trying to find the > problem. You can see the website at > http://216.203.113.94/jaspermaps/temp_i.htm > > When I change the name of the shapefile to another point > layer in the same > directory, it works. It really seems that there is something > wrong with the > layer, but I don't know what. > > Lawrence > > NAME "temp" > UNITS feet > SIZE 639 491 > IMAGECOLOR 255 255 255 > IMAGETYPE gif > EXTENT 1680507.39 547052.00 1844030.00 680312.51 > FONTSET "C:\MS4W\Apache\htdocs\fontset.txt" > SYMBOLSET "C:\MS4W\Apache\htdocs\symbols.sym" > > CONFIG PROJ_LIB "C:\ms4w\proj\nad\" > > WEB > TEMPLATE "C:\MS4W\Apache\htdocs\temp.html" > IMAGEPATH "C:\MS4W\tmp\ms_tmp\" > IMAGEURL "/JasperMaps/ms_tmp/" > END > > LAYER > NAME "Monuments" > STATUS default > TYPE point > DATA "C:\parcels_shape\ctl2005" > CLASS > SYMBOL 'circle' > SIZE 20 > COLOR 0 255 0 > END > END > > LAYER > NAME "County" > STATUS default > TYPE polygon > DATA "C:\parcels_shape\county" > CLASS > NAME "County" > STYLE > OUTLINECOLOR 212 192 100 > END > END > END > > END > From work at XWB.COM Mon Mar 13 14:37:41 2006 From: work at XWB.COM (Chip Taylor) Date: Mon, 13 Mar 2006 14:37:41 -0800 Subject: Mapserver in an IIS cluster In-Reply-To: <4415592D.9050601@svaj.dk> Message-ID: I am running Mapserver 4.6 CGI on Windows/IIS and attempting to make it work in a twoserver cluster. I have all the shape files, map files, template files etc duplicated on both servers. When I attempt to generate a map it appears that the template is generated on one server but the image may be generated in the /tmp directory of the other server, causing no image to appear on the HTML page. If I look into the /tmp directory of both servers I will find the missing image on one of them and can double click and display it just fine. If I refresh the HTML page enough times they will sync and the image will appear. Obviously this is a problem. Can anyone running a cluster help me with this? Chip Taylor From mac at MACKRACKIT.COM Mon Mar 13 16:30:47 2006 From: mac at MACKRACKIT.COM (Dave McCormick) Date: Mon, 13 Mar 2006 18:30:47 -0600 Subject: Installation problem Message-ID: The error log does not show anything relating to this. The access log shows "GET /gis/cgi-bin/mapserv HTTP/1.1" 304- On Mon, 13 Mar 2006 11:28:00 -0500, Doyon, Jean-Francois wrote: >"mapserv" is the CGI, therefore the PHP configuration has no bearing on it. > >Look in apache's "error_log" to see if anything shows up when you make a >request to the CGI? > >Normally, you should see the same message in your browser that you would see >from the command line (i.e. "QUERY_STRING not set ..."). > >Since you don't presumably some error occurs, and hopefully it shows up in >apache's error log file. > >J.F. > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Dave McCormick >Sent: March 13, 2006 11:14 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Installation problem > >Hi, > >I am using Mandrake 10, Apache 2.2 , PHP 4.4.2. Following the instructions >from here http://ms.gis.umn.edu/docs/howto/compiling_on_unix and here >http://mapserver.gis.umn.edu/docs/howto/verboselinuxinstall. > >When I get to the end and test "./mapserv" the correct message returns. > >When I test on a browser "http://yourhostname.com/cgi-bin/mapserv" I recieve >"download program as file?". > >I imagine the proplem is in my php setup, but after four times of setting >things up (reinstall apache, php, etc, I still have the same problem. > >Any ideas as to what I am doing wrong. > >Thanh you, >Dave From mac at MACKRACKIT.COM Mon Mar 13 16:41:04 2006 From: mac at MACKRACKIT.COM (Dave McCormick) Date: Mon, 13 Mar 2006 18:41:04 -0600 Subject: Installation problem Message-ID: I have the complete tree /gis/cgi-bin/mapserv chown'ed by apache and mapserv is chmond +x. Yes, I have another script "test.cgi" in the same dir and it works fine. A stupid question, if "mapserv" is a cgi, why does it show as an executable??? I normally program "pic chips". Thank you. On Mon, 13 Mar 2006 09:51:44 -0800, Brent Pedersen wrote: >hi, >i would check that the mapserv is chown'ed by you:apache and >chmod +x it > >also check your apache conf file to make sure that ScriptAlias points >to the cgi-bin. > >your result seems like apache isn't recognizing mapserv as a cgi >script. do you have any other scripts in that directory? do they work? > >-brent > >On Mar 13, 2006, at 8:28 AM, Doyon, Jean-Francois wrote: > >> "mapserv" is the CGI, therefore the PHP configuration has no >> bearing on it. >> >> Look in apache's "error_log" to see if anything shows up when you >> make a >> request to the CGI? >> >> Normally, you should see the same message in your browser that you >> would see >> from the command line (i.e. "QUERY_STRING not set ..."). >> >> Since you don't presumably some error occurs, and hopefully it >> shows up in >> apache's error log file. >> >> J.F. >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER- >> USERS at LISTS.UMN.EDU] On >> Behalf Of Dave McCormick >> Sent: March 13, 2006 11:14 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] Installation problem >> >> Hi, >> >> I am using Mandrake 10, Apache 2.2 , PHP 4.4.2. Following the >> instructions >> from here http://ms.gis.umn.edu/docs/howto/compiling_on_unix and here >> http://mapserver.gis.umn.edu/docs/howto/verboselinuxinstall. >> >> When I get to the end and test "./mapserv" the correct message >> returns. >> >> When I test on a browser "http://yourhostname.com/cgi-bin/mapserv" >> I recieve >> "download program as file?". >> >> I imagine the proplem is in my php setup, but after four times of >> setting >> things up (reinstall apache, php, etc, I still have the same problem. >> >> Any ideas as to what I am doing wrong. >> >> Thanh you, >> Dave >> From Russ.Bradford at CSIRO.AU Mon Mar 13 17:33:57 2006 From: Russ.Bradford at CSIRO.AU (Russ Bradford) Date: Tue, 14 Mar 2006 12:33:57 +1100 Subject: Installation problem Message-ID: I had the same problem. It had something to do with running Apache and having IIS as well. From memory you need to direct your browser to access port 8080. Unfortunately I have forgotten how to do this - anyone else? Cheers, Russ. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dave McCormick Sent: Tuesday, 14 March 2006 11:41 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Installation problem I have the complete tree /gis/cgi-bin/mapserv chown'ed by apache and mapserv is chmond +x. Yes, I have another script "test.cgi" in the same dir and it works fine. A stupid question, if "mapserv" is a cgi, why does it show as an executable??? I normally program "pic chips". Thank you. On Mon, 13 Mar 2006 09:51:44 -0800, Brent Pedersen wrote: >hi, >i would check that the mapserv is chown'ed by you:apache and >chmod +x it > >also check your apache conf file to make sure that ScriptAlias points >to the cgi-bin. > >your result seems like apache isn't recognizing mapserv as a cgi >script. do you have any other scripts in that directory? do they work? > >-brent > >On Mar 13, 2006, at 8:28 AM, Doyon, Jean-Francois wrote: > >> "mapserv" is the CGI, therefore the PHP configuration has no bearing >> on it. >> >> Look in apache's "error_log" to see if anything shows up when you >> make a request to the CGI? >> >> Normally, you should see the same message in your browser that you >> would see from the command line (i.e. "QUERY_STRING not set ..."). >> >> Since you don't presumably some error occurs, and hopefully it shows >> up in apache's error log file. >> >> J.F. >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER- >> USERS at LISTS.UMN.EDU] On Behalf Of Dave McCormick >> Sent: March 13, 2006 11:14 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] Installation problem >> >> Hi, >> >> I am using Mandrake 10, Apache 2.2 , PHP 4.4.2. Following the >> instructions from here >> http://ms.gis.umn.edu/docs/howto/compiling_on_unix and here >> http://mapserver.gis.umn.edu/docs/howto/verboselinuxinstall. >> >> When I get to the end and test "./mapserv" the correct message >> returns. >> >> When I test on a browser "http://yourhostname.com/cgi-bin/mapserv" >> I recieve >> "download program as file?". >> >> I imagine the proplem is in my php setup, but after four times of >> setting things up (reinstall apache, php, etc, I still have the same >> problem. >> >> Any ideas as to what I am doing wrong. >> >> Thanh you, >> Dave >> From Russ.Bradford at CSIRO.AU Mon Mar 13 17:35:22 2006 From: Russ.Bradford at CSIRO.AU (Russ Bradford) Date: Tue, 14 Mar 2006 12:35:22 +1100 Subject: Installation problem Message-ID: Sorry, just figured it out. http://localhost:8080/cgi-bin/mapserv.exe should get you started. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dave McCormick Sent: Tuesday, 14 March 2006 11:41 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Installation problem I have the complete tree /gis/cgi-bin/mapserv chown'ed by apache and mapserv is chmond +x. Yes, I have another script "test.cgi" in the same dir and it works fine. A stupid question, if "mapserv" is a cgi, why does it show as an executable??? I normally program "pic chips". Thank you. On Mon, 13 Mar 2006 09:51:44 -0800, Brent Pedersen wrote: >hi, >i would check that the mapserv is chown'ed by you:apache and >chmod +x it > >also check your apache conf file to make sure that ScriptAlias points >to the cgi-bin. > >your result seems like apache isn't recognizing mapserv as a cgi >script. do you have any other scripts in that directory? do they work? > >-brent > >On Mar 13, 2006, at 8:28 AM, Doyon, Jean-Francois wrote: > >> "mapserv" is the CGI, therefore the PHP configuration has no bearing >> on it. >> >> Look in apache's "error_log" to see if anything shows up when you >> make a request to the CGI? >> >> Normally, you should see the same message in your browser that you >> would see from the command line (i.e. "QUERY_STRING not set ..."). >> >> Since you don't presumably some error occurs, and hopefully it shows >> up in apache's error log file. >> >> J.F. >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER- >> USERS at LISTS.UMN.EDU] On Behalf Of Dave McCormick >> Sent: March 13, 2006 11:14 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] Installation problem >> >> Hi, >> >> I am using Mandrake 10, Apache 2.2 , PHP 4.4.2. Following the >> instructions from here >> http://ms.gis.umn.edu/docs/howto/compiling_on_unix and here >> http://mapserver.gis.umn.edu/docs/howto/verboselinuxinstall. >> >> When I get to the end and test "./mapserv" the correct message >> returns. >> >> When I test on a browser "http://yourhostname.com/cgi-bin/mapserv" >> I recieve >> "download program as file?". >> >> I imagine the proplem is in my php setup, but after four times of >> setting things up (reinstall apache, php, etc, I still have the same >> problem. >> >> Any ideas as to what I am doing wrong. >> >> Thanh you, >> Dave >> From akrherz at IASTATE.EDU Mon Mar 13 17:38:36 2006 From: akrherz at IASTATE.EDU (Daryl Herzmann) Date: Mon, 13 Mar 2006 19:38:36 -0600 Subject: Mapserver in an IIS cluster In-Reply-To: <00e501c646ee$bdc23520$0601a8c0@DevChip> Message-ID: On Mon, 13 Mar 2006, Chip Taylor wrote: > I am running Mapserver 4.6 CGI on Windows/IIS and attempting to make it work > in a twoserver cluster. I have all the shape files, map files, template > files etc duplicated on both servers. > > When I attempt to generate a map it appears that the template is generated > on one server but the image may be generated in the /tmp directory of the > other server, causing no image to appear on the HTML page. If I look into > the /tmp directory of both servers I will find the missing image on one of > them and can double click and display it just fine. If I refresh the HTML > page enough times they will sync and the image will appear. > > Obviously this is a problem. Can anyone running a cluster help me with > this? Sure, I can try. I had the same issue when I first setup my web cluster. Are you running a Linux Virtual Server? If so, you may need to consider changing the scheduling algorithm. Currently, it sounds like you are using a round robin, where each HTTP request is rotated between real servers. You will need to change it to use a scheduler which schedules requests from clients to the same real server during the session for each client. I have been running such a setup with mapserver without any reported errors like the above. daryl -- /** * Daryl Herzmann (akrherz at iastate.edu) * Program Assistant -- Iowa Environmental Mesonet * http://mesonet.agron.iastate.edu */ From knochej at GEO.ORST.EDU Mon Mar 13 18:05:03 2006 From: knochej at GEO.ORST.EDU (Jeremiah Knoche) Date: Mon, 13 Mar 2006 18:05:03 -0800 Subject: Windows Ruby mapscript Message-ID: Anyone out there have a compiled ruby mapscript for windows?? Is anyone using ruby mapscript? I am curious about ruby, but don't have the time to mess around with compiling it myself. jeremiah From mac at MACKRACKIT.COM Mon Mar 13 18:54:36 2006 From: mac at MACKRACKIT.COM (Dave McCormick) Date: Mon, 13 Mar 2006 20:54:36 -0600 Subject: Installation problem Message-ID: Tried it and it still does not work. Even told apache to listen to port 8080, no good. Still recieving "is of type application/octet-stream". Thanks On Tue, 14 Mar 2006 12:35:22 +1100, Russ Bradford wrote: >Sorry, just figured it out. > >http://localhost:8080/cgi-bin/mapserv.exe should get you started. > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Dave McCormick >Sent: Tuesday, 14 March 2006 11:41 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Installation problem > > >I have the complete tree /gis/cgi-bin/mapserv chown'ed by apache and >mapserv is chmond +x. Yes, I have another script "test.cgi" in the same >dir and it works fine. > >A stupid question, if "mapserv" is a cgi, why does it show as an >executable??? I normally program "pic chips". > >Thank you. > >On Mon, 13 Mar 2006 09:51:44 -0800, Brent Pedersen > wrote: > >>hi, >>i would check that the mapserv is chown'ed by you:apache and >>chmod +x it >> >>also check your apache conf file to make sure that ScriptAlias points >>to the cgi-bin. >> >>your result seems like apache isn't recognizing mapserv as a cgi >>script. do you have any other scripts in that directory? do they work? >> >>-brent >> >>On Mar 13, 2006, at 8:28 AM, Doyon, Jean-Francois wrote: >> >>> "mapserv" is the CGI, therefore the PHP configuration has no bearing >>> on it. >>> >>> Look in apache's "error_log" to see if anything shows up when you >>> make a request to the CGI? >>> >>> Normally, you should see the same message in your browser that you >>> would see from the command line (i.e. "QUERY_STRING not set ..."). >>> >>> Since you don't presumably some error occurs, and hopefully it shows >>> up in apache's error log file. >>> >>> J.F. >>> >>> -----Original Message----- >>> From: UMN MapServer Users List [mailto:MAPSERVER- >>> USERS at LISTS.UMN.EDU] On Behalf Of Dave McCormick >>> Sent: March 13, 2006 11:14 AM >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: [UMN_MAPSERVER-USERS] Installation problem >>> >>> Hi, >>> >>> I am using Mandrake 10, Apache 2.2 , PHP 4.4.2. Following the >>> instructions from here >>> http://ms.gis.umn.edu/docs/howto/compiling_on_unix and here >>> http://mapserver.gis.umn.edu/docs/howto/verboselinuxinstall. >>> >>> When I get to the end and test "./mapserv" the correct message >>> returns. >>> >>> When I test on a browser "http://yourhostname.com/cgi-bin/mapserv" >>> I recieve >>> "download program as file?". >>> >>> I imagine the proplem is in my php setup, but after four times of >>> setting things up (reinstall apache, php, etc, I still have the same >>> problem. >>> >>> Any ideas as to what I am doing wrong. >>> >>> Thanh you, >>> Dave >>> From Russ.Bradford at CSIRO.AU Mon Mar 13 19:01:11 2006 From: Russ.Bradford at CSIRO.AU (Russ Bradford) Date: Tue, 14 Mar 2006 14:01:11 +1100 Subject: Installation problem Message-ID: Hi Dave, Try looking in your httpd.conf file (in ../Apache/conf/ folder) for the following section: # # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, instead of the default. See also the # directive. # # Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses (0.0.0.0) # #Listen 12.34.56.78:8080 Listen 8080 It may be possible that you are not 'listening' on 8080 and need to change that part of the config file, or change the URL to address that issue. If this does not help I am sorry, but my knowledge is too limited to go any further. Hope this helps. Russ. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dave McCormick Sent: Tuesday, 14 March 2006 1:55 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Installation problem Tried it and it still does not work. Even told apache to listen to port 8080, no good. Still recieving "is of type application/octet-stream". Thanks On Tue, 14 Mar 2006 12:35:22 +1100, Russ Bradford wrote: >Sorry, just figured it out. > >http://localhost:8080/cgi-bin/mapserv.exe should get you started. > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >On Behalf Of Dave McCormick >Sent: Tuesday, 14 March 2006 11:41 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Installation problem > > >I have the complete tree /gis/cgi-bin/mapserv chown'ed by apache and >mapserv is chmond +x. Yes, I have another script "test.cgi" in the >same dir and it works fine. > >A stupid question, if "mapserv" is a cgi, why does it show as an >executable??? I normally program "pic chips". > >Thank you. > >On Mon, 13 Mar 2006 09:51:44 -0800, Brent Pedersen > wrote: > >>hi, >>i would check that the mapserv is chown'ed by you:apache and >>chmod +x it >> >>also check your apache conf file to make sure that ScriptAlias points >>to the cgi-bin. >> >>your result seems like apache isn't recognizing mapserv as a cgi >>script. do you have any other scripts in that directory? do they work? >> >>-brent >> >>On Mar 13, 2006, at 8:28 AM, Doyon, Jean-Francois wrote: >> >>> "mapserv" is the CGI, therefore the PHP configuration has no bearing >>> on it. >>> >>> Look in apache's "error_log" to see if anything shows up when you >>> make a request to the CGI? >>> >>> Normally, you should see the same message in your browser that you >>> would see from the command line (i.e. "QUERY_STRING not set ..."). >>> >>> Since you don't presumably some error occurs, and hopefully it shows >>> up in apache's error log file. >>> >>> J.F. >>> >>> -----Original Message----- >>> From: UMN MapServer Users List [mailto:MAPSERVER- >>> USERS at LISTS.UMN.EDU] On Behalf Of Dave McCormick >>> Sent: March 13, 2006 11:14 AM >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: [UMN_MAPSERVER-USERS] Installation problem >>> >>> Hi, >>> >>> I am using Mandrake 10, Apache 2.2 , PHP 4.4.2. Following the >>> instructions from here >>> http://ms.gis.umn.edu/docs/howto/compiling_on_unix and here >>> http://mapserver.gis.umn.edu/docs/howto/verboselinuxinstall. >>> >>> When I get to the end and test "./mapserv" the correct message >>> returns. >>> >>> When I test on a browser "http://yourhostname.com/cgi-bin/mapserv" >>> I recieve >>> "download program as file?". >>> >>> I imagine the proplem is in my php setup, but after four times of >>> setting things up (reinstall apache, php, etc, I still have the same >>> problem. >>> >>> Any ideas as to what I am doing wrong. >>> >>> Thanh you, >>> Dave >>> From steve.lime at DNR.STATE.MN.US Mon Mar 13 20:55:51 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 13 Mar 2006 22:55:51 -0600 Subject: Item Query Hilight Message-ID: Maurizio: I've testing things with the Itasca demo and can verify that query maps do work with line features. I tried 4.8 and 4.9 (CVS) with shapefiles and simple styles. What does your class definitions look like for the line layer? Query map processing only changes the color of the top style (the last one in the class) so I suppose, depending on your symbolization, there could be an issue there. Won't know without more info. Steve >>> Maurizio Esposito 03/13/06 5:05 AM >>> Hi list, my problem is rather simple, but very important for my application in my mapfile I use two layers from PostGIS, streets and buildings streets are type line, while buildings are polygon. When querying, with query hilite , buildings are correctly hilited in yellow in the query map,while streets don't. Data from templates are correct, I can see in the template name and id of all queried streets, but no hilight in the query map. For buildings ( maybe cause are polygons? ) everything works fine. This problem comes both in single and in multi query mode. Any help ? Regards Maurizio Esposito From emiliomayorga at GMAIL.COM Mon Mar 13 22:35:50 2006 From: emiliomayorga at GMAIL.COM (Emilio Mayorga) Date: Mon, 13 Mar 2006 22:35:50 -0800 Subject: new mapserver site for Central America; thanks for all the help!; In-Reply-To: <20060313085028609.00000001772@D5B33W1J> Message-ID: Hi Gail, Thank you. Regarding the "transition effect", I'm not sure what you're referring to. My only guess is that you're using IE. I've noticed that it loads the image gradually with a funky transition. It's nothing special I'm doing, I suspect it has to do with how IE loads PNG24 images (the ouptut format I'm using). The Layers section with expandable folders is based on the Tree javascript API, which you can get at this site: http://www.destroydrop.com/javascripts/tree/ The version I'm using is old and less clean than the current version. I originally saw it in the Red River Basin site: http://www.rrbdin.org/tools/mapviewer/basinviewer.htm then adapted it for our site (where, for example, I don't use a separate frame). It's definitely not a "plug and play" kind of thing, but if you're very comfortable with javascript, you should be able to figure out the bulk of it. Feel free to ask me about specific elements once you've had a broader look; the integration with the Landview DHTML framework (http://mapserver.gis.umn.edu/gallery/landview) can be tricky. Basically, you build javascript arrays with the layer & folder long names, status, folder hierarchy, and the layer names used in your .map file. The core javascript code is in tree3.js, but it interacts with the main HTML page (which is loaded from a wrapper frame -- see the HTML structure) and with my main customized js file mapache_lib.js. Unfortunately, I don't remember seeing any documentation on the Mapserver site about this tool. But there are plenty of sites out there that do something similar. For example, I *believe* Chameleon (http://chameleon.maptools.org/) has default tools that work that way. I hope this helps to get you started! I don't have full, self-contained documentation myself, sorry. -Emilio On 3/13/06, Gail Millin wrote: > > Hi Emilio, > > I have looked at the website you have developed and would be interested to > know how you produced the Layer element of the page with the expandable > folders? I really like this approach of organizing the data to present. I > would appreciate any hints on the code you used to achieve this or the > specific area of the MapServer website where instructions are given to > produce a table of contents like this. > > Also how did you produce the transition effect just prior to the map being > loaded to being viewed on the screen, I thought this was a nice touch! > > I really enjoyed viewing your website. > > Kind Regards > > Gail > > Gail Millin > > Geodata Interoperability Support Officer > The University of Manchester > Kilburn Building > Oxford Road > M13 9PL > > Tel: +44 (0) 161 275 0581 > > E-mail: Gail.Millin at manchester.ac.uk > > Website: http://www.landmap.ac.uk From sdc at SDC.COM.AU Mon Mar 13 22:41:00 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Tue, 14 Mar 2006 17:11:00 +1030 Subject: "Capturing" mapserver images In-Reply-To: <20060313172028.09temqj4gc0o480k@webmail.narx.net> Message-ID: Thanks very much Chris. I shall research your suggestion. The hurdle that I see is that (currently) the database must be updated with calculated state data for each timestamp. Cheers, Stephen On Monday 13 March 2006 19:50, chris at narx.net wrote: > Hi Steve, WMS-Time support is my obvious suggestion for your > situation. > > Check out http://mapserver.gis.umn.edu/docs/howto/wms_time_support > for setting up inside Mapserver and also > http://geoservices.cgdi.ca/mapbuilder/demo/timeSeries/index.html for > an example of a "pseudo-animation" mapbuilder client which seems to > fit your requirements quite well. > > Regards, > > Chris > > Quoting Stephen Davies : > > Greetings. > > > > I need to be able to present a series of maps for "time lapse" > > display. > > > > The PostgreSQL database behind the mapserver application in > > question contains both geometry and time-based attribute values and > > the map file currently used to display the data uses layers, > > filters and classes to colour geometries according to current > > attribute values. > > > > The idea is to somehow capture the images showing the geometry > > states at, for example, noon each day for the past month and then > > use javascript to display those images as a "movie" similar to > > those provided by many weather bureaux. > > > > I have tried doing it simply by pausing in the browser between > > repaint requests but there is too much variability between browsers > > and - in particular - between broadband and dialup users. > > > > I know I could achieve the objective by writing a PERL or Java > > program to emulate a browser, retrieve the output image name and > > ignore the output but wondered if there were a simpler method such > > as invoking mapserver in map mode from a shell. > > > > Any suggestions and/or advice would be most welcome. > > > > Cheers and thanks, > > Stephen Davies > > -- > > =================================================================== > >===== This email is for the person(s) identified above, and is > > confidential to the sender and the person(s). No one else is > > authorised to use or disseminate this email or its contents. > > > > Stephen Davies Consulting Voice: 08-8177 > > 1595 Adelaide, South Australia. Fax: > > 08-8177 0133 Computing & Network solutions. > > Mobile:0403 0405 83 -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From sdc at SDC.COM.AU Mon Mar 13 22:49:22 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Tue, 14 Mar 2006 17:19:22 +1030 Subject: "Capturing" mapserver images In-Reply-To: Message-ID: Thank you Gail. I think this may well be what I need - though I would probably use PERL Mapscript rather than PHP because of the need to do a deal of "off-line" manipulation as well as generating the maps and I feel more comfortable with PERL for "batch" processes. I hadn't realised that Mapscript was quite so powerful. Thanks also for the hotscripts link. I haven't been there before either. Cheers, Stephen On Tuesday 14 March 2006 02:31, Gail Long wrote: > Stephen, > > I did something similar to what you want to do by showing distrbution > of some point objects over the period of 6 months. > > I used phpmapscript to generate images based on a postgres query and > saved them to a location other than the default > > while($queryresults) > { > //process the query// > $counter++; > ... > ... > ... > $image_url="/var/www/htdocs/imageslides".$image->saveWebImage() .'_' > . $counter; > } > > That way I had all of the images in that folder with a suffix of _1 > _2 _3 and so on. Then I use one of about a billion javascript, java, > or flash slide generators that are prebuilt and very configureable. > > I saved to .gif format for a smaller download and my map "paints" > over a period of time configured in the slide generator. I'm > probably going to have a more specific flash slide show generator > written for me because I'm not that good at it, but for what I think > you want there are tons of really good alternatives. > > So, prebuild your images, then pass them to a prebuilt package to do > the display. It saves system overhead and makes it much faster to > for downloading. > > Here is a list of many slideshow components: > http://www.hotscripts.com/search/9118335.html > > Most are free and there are some very nice flash show builders as > well that allow you to pass a list of images to it for display. > > Gail > -- > Things are only difficult while you don't understand them. > > >Quoting Stephen Davies : > >>Greetings. > >> > >>I need to be able to present a series of maps for "time lapse" > >> display. > >> > >>The PostgreSQL database behind the mapserver application in > >> question contains both geometry and time-based attribute values > >> and the map file currently used to display the data uses layers, > >> filters and classes to colour geometries according to current > >> attribute values. > >> > >>The idea is to somehow capture the images showing the geometry > >> states at, for example, noon each day for the past month and then > >> use javascript to display those images as a "movie" similar to > >> those provided by many weather bureaux. > >> > >>I have tried doing it simply by pausing in the browser between > >> repaint requests but there is too much variability between > >> browsers and - in particular - between broadband and dialup users. > >> > >>I know I could achieve the objective by writing a PERL or Java > >> program to emulate a browser, retrieve the output image name and > >> ignore the output but wondered if there were a simpler method such > >> as invoking mapserver in map mode from a shell. > >> > >>Any suggestions and/or advice would be most welcome. > >> > >>Cheers and thanks, > >>Stephen Davies > >>-- > >>=================================================================== > >>===== This email is for the person(s) identified above, and is > >> confidential to the sender and the person(s). No one else is > >> authorised to use or disseminate this email or its contents. > >> > >>Stephen Davies Consulting Voice: 08-8177 > >> 1595 Adelaide, South Australia. Fax: > >> 08-8177 0133 Computing & Network solutions. > >> Mobile:0403 0405 83 -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Mar 13 22:00:03 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Mon, 13 Mar 2006 22:00:03 -0800 Subject: php error with ogr odbc Message-ID: A few questions: a) on which platform are you? b) which Mapserver/Mapscript version? c) which GDAL version? Assuming you might be on Windows, you did not by any chance drop in another gdal dll in your Mapserver/Mapscript install? Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Mark Adams Verzonden: maandag 13 maart 2006 22:56 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] php error with ogr odbc Hi all, I'm trying to connect to Oracle and display a set of points using the OGR virtual data driver. From ogrinfo I get a successful result (well, first and error 1 - setattributefilter() not supported on executesql() results - but then a successful listing of feature attributes). From my php mapscript application however I get a visual C++ runtime error from php: "This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information." My OVF file looks like this: ODBC:minf_p1/minf_p1 at NORMINA,MINFT_SHOWN_SHOWING select MINFT_SHOWN_SHOWING.* from MINFT_SHOWN_SHOWING wkbPoint Has anyone encountered this error before, and is this a configuration problem, compilation problem, or something else? Thanks in advance, Mark Adams markadams at cuestasys.com Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From ml.dje at GEOCONTENT.DE Tue Mar 14 00:04:25 2006 From: ml.dje at GEOCONTENT.DE (Dirk Jesko) Date: Tue, 14 Mar 2006 09:04:25 +0100 Subject: Problem with reprojected images Message-ID: Hi, I set up a WMS for aerial images. The images are projected in Gauss-Krueger 3 and have a size of one square kilometer. The WMS also provides other projections, e.g. Gauss-Krueger 2-5, UTM, etc. If I query the WMS with a projection other than the original one, I get little white lines along the edges of the tiles (see the attached image). The image format does not matter. How do I get rid of these? I can not find any option that might be related to this. By the way, this also happens if the data is accessed via mapscript or as normal cgi. Thanks for any help. Regards, Dirk Here a part of the mapfile: MAP ... IMAGECOLOR 255 255 255 EXTENT 3100000 5200000 4100000 6200000 SIZE 500 500 SHAPEPATH "/data/daten/WMS" PROJECTION "init=epsg:31467" # GK 3 END WEB METADATA ... "wms_srs" "EPSG:31467 EPSG:31466 EPSG:31468 EPSG:31469 EPSG:32632 EPSG:32633 EPSG:4326" "wms_encoding" "UTF-8" "wms_feature_info_mime_type" "application/vnd.ogc.gml" END MAXSCALE 10000000 MINSCALE 1000 ... END OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "INTERLACE=ON" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" FORMATOPTION "INTERLACE=ON" END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION "QUALITY=95" FORMATOPTION "PROGRESSIVE=ON" END ... LAYER NAME "img02000" GROUP "img" TILEINDEX "IMG_02000.shp" TILEITEM "locationUn" TYPE RASTER MAXSCALE 500000.0 MINSCALE 100000.0 PROJECTION "init=epsg:31467" # GK 3 END METADATA ... END END ... END -------------- next part -------------- A non-text attachment was scrubbed... Name: wms.jpg Type: image/jpeg Size: 14234 bytes Desc: not available URL: From m.esposito at SOFTEC-SRL.COM Tue Mar 14 00:50:05 2006 From: m.esposito at SOFTEC-SRL.COM (Maurizio Esposito) Date: Tue, 14 Mar 2006 02:50:05 -0600 Subject: Item Query Hilight Message-ID: Steve, of course my first question was if there were an issue with line type layers. But if this is not the problem maybe I've done something wrong in my mapfile :-) My application is buidt with apache2.0,php 4.4 and mapserver 4.6 in WinXP Here are my mapfile sections: layer name "streets" type line status on CONNECTION "user=postgres password=postgres dbname=dbmap host=localhost port=5432" CONNECTIONTYPE postgis data "the_geom FROM streets" footer "streets_footer.html" header "streets_header.html" LABELITEM "name" LABELMAXSCALE 6000 CLASSITEM "pk_id" class size 2 name "Strade" template "streets_query.html" symbol "dash_2" backgroundcolor 0 0 255 color 0 0 255 LABEL MINFEATURESIZE 40 MINDISTANCE 150 POSITION UC SIZE TINY BACKGROUNDCOLOR 0 0 255 COLOR 255 255 255 END end end #------------------ querymap color 255 255 0 status ON style hilite end Hope it can help Thanks, Maurizio From Gail.Millin at MANCHESTER.AC.UK Tue Mar 14 04:42:35 2006 From: Gail.Millin at MANCHESTER.AC.UK (Gail Millin) Date: Tue, 14 Mar 2006 12:42:35 +0000 Subject: Problems Installing New MapServer Version 4.8.1 on Windows Server 2003 IIS 6.0 Message-ID: An HTML attachment was scrubbed... URL: From hartpence_gis at CO.JASPER.IA.US Tue Mar 14 05:25:18 2006 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Tue, 14 Mar 2006 07:25:18 -0600 Subject: SUM: Point Layer Won't Draw In-Reply-To: <4997F456680DAD4DA1E042C40C463611426FD5@auper1ex002.au.aecomnet.com> Message-ID: Thanks Jacob Delfos! The problem was that the point layer was a 3D Multipoint shapefile. I tried it as a regular point shapefile and it works! Lawrence From bdukes at ARKIONSYSTEMS.COM Tue Mar 14 05:39:21 2006 From: bdukes at ARKIONSYSTEMS.COM (Brent T. Dukes) Date: Tue, 14 Mar 2006 08:39:21 -0500 Subject: Problems Installing New MapServer Version 4.8.1 on Windows Server 2003 IIS 6.0 In-Reply-To: <20060314124235859.00000001060@D5B33W1J> Message-ID: Gail, Please check your IIS Manager under "Web Service Extensions" Be sure "All Unknown CGI Extensions" is set to "Allowed" (at least for testing). If this makes it work, you can look up how to set Mapserver.exe to a 'known' CGI extension. I don't have any details on this. If this doesn't fix your problem I can relay you all my Web Site and Application Pool settings. I can assure you I have the CGI version of Mapserver running on IIS 6/Server 2003 with no problems. C# MapScript is another story ;) -Brent T. Dukes _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gail Millin Sent: Tuesday, March 14, 2006 7:43 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problems Installing New MapServer Version 4.8.1 on Windows Server 2003 IIS 6.0 Dear MapServer Users, I would like to install MapServer 4.8.1 on Windows Server 2003 and IIS 6.0. However documentation on the MapServer website keeps taking me to the MS4W Installer which is configured for an Apache server. I have consulted the Win32 Compilation and Installation How To document however the link to the MapServer source code that is suggested in this document is broken (http://mapserver.gis.umn.edu/dload.html ). I have downloaded the files from the MS4W installer and tried to adapt the configuration to IIS 6.0. I have managed to install PHP and Mapscript and when I run the test.php script I have MapScript 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 $) However when I type http://localhost/cgi-bin/mapserv.exe I do not get the message No query information to decode. Query_String is set, but empty. Instead I get The Page Cannot be Found HTTP Error 404 - File or directory not found.Internet Information Services (IIS). I have checked my permissions on cgi-bin directory which has the executable rights switched on, I really cannot think of what is causing this to occur? Also is there no where that provides Mapserver 4.8.1 windows binaries without having to install the ms4w package? I would appreciate any help or suggestions from anyone that has successfully installed Mapserver 4.8.1 on IIS 6 Windows 2003 Kind Regards Gail Gail Millin E-mail: Gail.Millin at manchester.ac.uk Website: http://www.landmap.ac.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolas.fortin at EC.GC.CA Tue Mar 14 06:01:30 2006 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Tue, 14 Mar 2006 09:01:30 -0500 Subject: [UMN_MAPSERVER-USERS] Problems Installing New MapServer Version 4.8.1 on Windows Server 2003 IIS 6.0 Message-ID: Hi Gail, It could be a permission issue. Try running filemon (http://www.sysinternals.com/Utilities/Filemon.html) while accessing http://localhost/cgi-bin/mapserv.exe and search the result for some ACCESS DENIED. Did you try "mapserv -v" from a command line? Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Gail Millin Envoy? : 14 mars 2006 07:43 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Problems Installing New MapServer Version 4.8.1 on Windows Server 2003 IIS 6.0 Dear MapServer Users, I would like to install MapServer 4.8.1 on Windows Server 2003 and IIS 6.0. However documentation on the MapServer website keeps taking me to the MS4W Installer which is configured for an Apache server. I have consulted the Win32 Compilation and Installation How To document however the link to the MapServer source code that is suggested in this document is broken (http://mapserver.gis.umn.edu/dload.html ). I have downloaded the files from the MS4W installer and tried to adapt the configuration to IIS 6.0. I have managed to install PHP and Mapscript and when I run the test.php script I have MapScript 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 $) However when I type http://localhost/cgi-bin/mapserv.exe I do not get the message No query information to decode. Query_String is set, but empty. Instead I get The Page Cannot be Found HTTP Error 404 - File or directory not found.Internet Information Services (IIS). I have checked my permissions on cgi-bin directory which has the executable rights switched on, I really cannot think of what is causing this to occur? Also is there no where that provides Mapserver 4.8.1 windows binaries without having to install the ms4w package? I would appreciate any help or suggestions from anyone that has successfully installed Mapserver 4.8.1 on IIS 6 Windows 2003 Kind Regards Gail Gail Millin E-mail: Gail.Millin at manchester.ac.uk Website: http://www.landmap.ac.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gail.Millin at MANCHESTER.AC.UK Tue Mar 14 06:24:06 2006 From: Gail.Millin at MANCHESTER.AC.UK (Gail Millin) Date: Tue, 14 Mar 2006 14:24:06 +0000 Subject: [UMN_MAPSERVER-USERS] Problems Installing New MapServer Version 4.8.1 on Windows Server 2003 IIS 6.0 In-Reply-To: <118A9CF846431048B65C4AFB0E57C0ED52BE5E@ECQCSTFMAIL1.quebec.int.ec.gc.ca> Message-ID: An HTML attachment was scrubbed... URL: From markadams at CUESTASYS.COM Tue Mar 14 06:36:58 2006 From: markadams at CUESTASYS.COM (Mark Adams) Date: Tue, 14 Mar 2006 08:36:58 -0600 Subject: php error with ogr odbc Message-ID: I'm on Windows 2003 Server. The Mapserver version is 4.9, a custom build from DM Solutions with ArcSDE support and the new contains query option. GDAL is 1.3.1, this is the only version of the dll in the Windows System32 folder. I also installed fwtools so I could run ogrinfo, this is using its own version of gdal in the fwtools bin folder, but I don't think this would interfere with what mapserver/mapscript is using. On Mon, 13 Mar 2006 22:00:03 -0800, Eijnden, B. van den (Bart) wrote: >A few questions: > >a) on which platform are you? >b) which Mapserver/Mapscript version? >c) which GDAL version? > >Assuming you might be on Windows, you did not by any chance drop in another >gdal dll in your Mapserver/Mapscript install? > >Bart > >-----Oorspronkelijk bericht----- >Van: UMN MapServer Users List >[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Mark Adams >Verzonden: maandag 13 maart 2006 22:56 >Aan: MAPSERVER-USERS at LISTS.UMN.EDU >Onderwerp: [UMN_MAPSERVER-USERS] php error with ogr odbc > > >Hi all, > >I'm trying to connect to Oracle and display a set of points using the OGR >virtual data driver. From ogrinfo I get a successful result (well, first >and error 1 - setattributefilter() not supported on executesql() results - >but then a successful listing of feature attributes). From my php mapscript >application however I get a visual C++ runtime error from php: "This >application has requested the Runtime to terminate it in an unusual way. >Please contact the application's support team for more information." > >My OVF file looks like this: > > > >ODBC:minf_p1/minf_p1 at NORMINA,MINFT_SHOWN_SHOWINGce> > select MINFT_SHOWN_SHOWING.* from >MINFT_SHOWN_SHOWING > wkbPoint > y="C_SHOWN_LATITUDE"/> > > > >Has anyone encountered this error before, and is this a configuration >problem, compilation problem, or something else? > >Thanks in advance, > >Mark Adams >markadams at cuestasys.com > > >Disclaimer >************************************************************************ >Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis >hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te >informeren. Wij adviseren u om bij twijfel over de juistheid of de >volledigheid van de mail contact met afzender op te nemen. > >This message shall not constitute any rights or obligations. >This message is intended solely for the addressee. >If you have received this message in error, please delete it and >notify the sender immediately. When in doubt whether this message >is correct or complete, please contact the sender. >************************************************************************ From ed at TOPOZONE.COM Tue Mar 14 06:38:12 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 14 Mar 2006 09:38:12 -0500 Subject: Problem with reprojected images Message-ID: Dirk - I assume your tiled source images do not overlap, and that the originals do not have white border strips around them. If that's the case, this may be an inevitable artifact of the reprojection. Look at the situation along one north/south edge between two tiles. If you render the tiles in the source projection you'll get two adjacent vertical lines along the edges of each file, with no gap between them. If you reproject the tiles, then you will have two adjacent edges that are two diagonal lines. The distance between the edges may not be 1, and may vary by a pixel along the course of those two diagonal lines. When that happens, the images will sometimes overlap by one pixel (you won't notice) and will sometimes leave a one-pixel gap (which is obvious). The obvious gaps will repeat in a regular pattern since the phase difference between the two diagonal lines will be regular and repeating. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dirk Jesko Sent: Tuesday, March 14, 2006 3:04 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem with reprojected images Hi, I set up a WMS for aerial images. The images are projected in Gauss-Krueger 3 and have a size of one square kilometer. The WMS also provides other projections, e.g. Gauss-Krueger 2-5, UTM, etc. If I query the WMS with a projection other than the original one, I get little white lines along the edges of the tiles (see the attached image). The image format does not matter. How do I get rid of these? I can not find any option that might be related to this. By the way, this also happens if the data is accessed via mapscript or as normal cgi. Thanks for any help. Regards, Dirk Here a part of the mapfile: MAP ... IMAGECOLOR 255 255 255 EXTENT 3100000 5200000 4100000 6200000 SIZE 500 500 SHAPEPATH "/data/daten/WMS" PROJECTION "init=epsg:31467" # GK 3 END WEB METADATA ... "wms_srs" "EPSG:31467 EPSG:31466 EPSG:31468 EPSG:31469 EPSG:32632 EPSG:32633 EPSG:4326" "wms_encoding" "UTF-8" "wms_feature_info_mime_type" "application/vnd.ogc.gml" END MAXSCALE 10000000 MINSCALE 1000 ... END OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "INTERLACE=ON" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" FORMATOPTION "INTERLACE=ON" END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION "QUALITY=95" FORMATOPTION "PROGRESSIVE=ON" END ... LAYER NAME "img02000" GROUP "img" TILEINDEX "IMG_02000.shp" TILEITEM "locationUn" TYPE RASTER MAXSCALE 500000.0 MINSCALE 100000.0 PROJECTION "init=epsg:31467" # GK 3 END METADATA ... END END ... END From wouter at ETI.UVA.NL Tue Mar 14 06:36:39 2006 From: wouter at ETI.UVA.NL (Wouter A) Date: Tue, 14 Mar 2006 08:36:39 -0600 Subject: where to save .map files on Windows? Message-ID: Hi, I am just starting with mapserver. I've installed it on my Windows computer but am already stuck with creating my first example. I bought the book "beginning mapserver" and with the first example it says to store the .map file in /home/mapdata but I cannot find that map anywhere in my installation. I tried to store directly in apps, htdocs and in cgi-bin but I keep getting the message "msLoadMap(): Unable to access file. (hello.map)" Because I get that message, I assume that mapserver.exe in cgi-bin is working allright. It is probably to obvious, but I cannot find it out. Please help! Wouter From cjesch at CCT.LSU.EDU Tue Mar 14 06:54:30 2006 From: cjesch at CCT.LSU.EDU (Carola Jesch) Date: Tue, 14 Mar 2006 08:54:30 -0600 Subject: cgi Run-time Substitution for map size Message-ID: Hi List, I would like to use a variable in my map files for the map SIZE. After reading a while in the how-to I realized that is is not supported right now. Is there any reason why? Carola ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Carola Jesch Wetland Biogeochemistry Institute Department of Oceanography and Coastal Science Louisiana State University 3191 Energy, Coast & Environment Bldg. Baton Rouge, LA,70803 e-mail: cjesch at cct.lsu.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexandre at ACQUASOFTWARE.COM.BR Tue Mar 14 06:56:21 2006 From: alexandre at ACQUASOFTWARE.COM.BR (Alexandre Abramides) Date: Tue, 14 Mar 2006 11:56:21 -0300 Subject: JBOX - distance measuring Message-ID: Anyone? ----- Original Message ----- From: "Alexandre Abramides" To: Sent: Tuesday, March 07, 2006 1:55 PM Subject: [UMN_MAPSERVER-USERS] JBOX - distance measuring > Anyone can help me? > > I,m trying to use the distance measuring function from jBox. > This is the javascript function in > http://mapserver.gis.umn.edu/docs/howto/jbox > > function measure_handler(name, s, t, n, a) { > // c = 1 / 72dpi / 12inches_per_foot * 1.0003state_plane_scale_factor > var c = 0.0011577546296296; // constant > var f = [scale] * c; // scale factor > if ((s>0) || (t>0)) { > defaultStatus = "This segment = " + s*f + ", Total = " > + t*f + ", Number of vertices = " + n ; > } > } > > and I don?t know what else i have to do. > Should i add another "mode" to my html template? How do I use this function > properly? > > [] > Abramides. > From woodbri at SWOODBRIDGE.COM Tue Mar 14 07:01:21 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 14 Mar 2006 10:01:21 -0500 Subject: cgi Run-time Substitution for map size In-Reply-To: <000f01c64777$335b4e60$0c03a8c0@lsu.edu> Message-ID: Carola Jesch wrote: > Hi List, > > I would like to use a variable in my map files for the map SIZE. After > reading a while in the how-to I realized that is is not supported right now. > Is there any reason why? because "imgsize=cols+rows" is already supported as a cgi parameter directly. -Steve W. From m.esposito at SOFTEC-SRL.COM Tue Mar 14 07:08:25 2006 From: m.esposito at SOFTEC-SRL.COM (Maurizio Esposito) Date: Tue, 14 Mar 2006 09:08:25 -0600 Subject: Item Query Hilight Message-ID: Steve, as usual you have pointed my attention on the real issue: "dash_2" comes from itasca_demo symbols and is of type vector. This is the problem. Using circle as symbol hilighting works fine !! Thanks Maurizio From Jukka.Rahkonen at MMMTIKE.FI Tue Mar 14 07:32:19 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Tue, 14 Mar 2006 17:32:19 +0200 Subject: Problem with reprojected images Message-ID: Hi, I think it is exactly as Ed says. I got similar kind of problems once when I started to reproject images with "gdal_translate", and mosaic and cut the reprojected images to suit mapsheet system of the destination projection. With gdal_translate I can get rid of those white (in my case black) pixel lines by using a GDAL virtual format (.vrt)as a source data set instead of individual files. I have been thinking that this means in practise building a mosaic before reprojection, thus there is no place in the process where those lines would be formed. Judged by the result you get I guess that maybe the tileindex system in Mapserver is handling each tile separately and not in the same way than GDAL is handling VRT. If getting rid of those lines is important for you it might be worth trying to use GDAL virtual data set as source data for your Mapserver instead of tileindex. There has been a link to a modified "gdal_merge.py" script in the gdal_dev mailing list possible in May 2005, but I could not find the link right now. With that script you can make a virtual data set from a bunch of original image files, and after creating pyramid layers for the vrt-file (this will be slow if your VRT is large) it is quite usable for Mapserver. Regards, Jukka Rahkonen ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Ed McNierney L?hetetty: ti 14.3.2006 16:38 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: [UMN_MAPSERVER-USERS] Problem with reprojected images Dirk - I assume your tiled source images do not overlap, and that the originals do not have white border strips around them. If that's the case, this may be an inevitable artifact of the reprojection. Look at the situation along one north/south edge between two tiles. If you render the tiles in the source projection you'll get two adjacent vertical lines along the edges of each file, with no gap between them. If you reproject the tiles, then you will have two adjacent edges that are two diagonal lines. The distance between the edges may not be 1, and may vary by a pixel along the course of those two diagonal lines. When that happens, the images will sometimes overlap by one pixel (you won't notice) and will sometimes leave a one-pixel gap (which is obvious). The obvious gaps will repeat in a regular pattern since the phase difference between the two diagonal lines will be regular and repeating. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dirk Jesko Sent: Tuesday, March 14, 2006 3:04 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem with reprojected images Hi, I set up a WMS for aerial images. The images are projected in Gauss-Krueger 3 and have a size of one square kilometer. The WMS also provides other projections, e.g. Gauss-Krueger 2-5, UTM, etc. If I query the WMS with a projection other than the original one, I get little white lines along the edges of the tiles (see the attached image). The image format does not matter. How do I get rid of these? I can not find any option that might be related to this. By the way, this also happens if the data is accessed via mapscript or as normal cgi. Thanks for any help. Regards, Dirk Here a part of the mapfile: MAP ... IMAGECOLOR 255 255 255 EXTENT 3100000 5200000 4100000 6200000 SIZE 500 500 SHAPEPATH "/data/daten/WMS" PROJECTION "init=epsg:31467" # GK 3 END WEB METADATA ... "wms_srs" "EPSG:31467 EPSG:31466 EPSG:31468 EPSG:31469 EPSG:32632 EPSG:32633 EPSG:4326" "wms_encoding" "UTF-8" "wms_feature_info_mime_type" "application/vnd.ogc.gml" END MAXSCALE 10000000 MINSCALE 1000 ... END OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "INTERLACE=ON" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" FORMATOPTION "INTERLACE=ON" END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION "QUALITY=95" FORMATOPTION "PROGRESSIVE=ON" END ... LAYER NAME "img02000" GROUP "img" TILEINDEX "IMG_02000.shp" TILEITEM "locationUn" TYPE RASTER MAXSCALE 500000.0 MINSCALE 100000.0 PROJECTION "init=epsg:31467" # GK 3 END METADATA ... END END ... END From David.Fawcett at STATE.MN.US Tue Mar 14 07:45:59 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 14 Mar 2006 09:45:59 -0600 Subject: where to save .map files on Windows? Message-ID: Wouter, For testing purposes, it really doesn't matter where you store your .map file. Just create a folder that is accessible by your CGI, most likely anywhere on your Windows machine will work. The reason that it doesn't matter where you put it is that you have to tell MapServer where your .map file is. If you are calling MapServer directly from the URL, you need to specify the location of the .map file using a URL variable. e.g. http://localhost/cgi-bin/mapserv.exe?map=c:/myfirstmapserverapp/mymapfil e.map If the example that you are using is using a html template to call with MapServer, there is likely a html input of type 'hidden' on the page that looks somethign like map="/home/mapdata" and you will want to change that to map="c:\myfirstmapserverapp\mymapfile.map" or whatever the path to your map file is. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Wouter A Sent: Tuesday, March 14, 2006 8:37 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] where to save .map files on Windows? Hi, I am just starting with mapserver. I've installed it on my Windows computer but am already stuck with creating my first example. I bought the book "beginning mapserver" and with the first example it says to store the .map file in /home/mapdata but I cannot find that map anywhere in my installation. I tried to store directly in apps, htdocs and in cgi-bin but I keep getting the message "msLoadMap(): Unable to access file. (hello.map)" Because I get that message, I assume that mapserver.exe in cgi-bin is working allright. It is probably to obvious, but I cannot find it out. Please help! Wouter From jmckenna at DMSOLUTIONS.CA Tue Mar 14 07:47:41 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 14 Mar 2006 10:47:41 -0500 Subject: where to save .map files on Windows? In-Reply-To: Message-ID: Another good place to start is the "Getting Started with MapServer" workshop from the last MapServer conference: http://mapserver.gis.umn.edu/community/conferences/MUM3/workshop/ The workshop was held on windows. jeff Wouter A wrote: > Hi, I am just starting with mapserver. I've installed it on my Windows > computer but am already stuck with creating my first example. I bought the > book "beginning mapserver" and with the first example it says to store > the .map file in /home/mapdata but I cannot find that map anywhere in my > installation. I tried to store directly in apps, htdocs and in cgi-bin but > I keep getting the message "msLoadMap(): Unable to access file. > (hello.map)" > Because I get that message, I assume that mapserver.exe in cgi-bin is > working allright. It is probably to obvious, but I cannot find it out. > Please help! > > Wouter > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From ml.dje at GEOCONTENT.DE Tue Mar 14 08:07:51 2006 From: ml.dje at GEOCONTENT.DE (Dirk Jesko) Date: Tue, 14 Mar 2006 17:07:51 +0100 Subject: Problem with reprojected images In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDA6F@ptolemy.topozone.com> Message-ID: Ed, I already thought of something like this already. However, this should not happen. If the images are seamless (our images are seamless and do not have any borders) in the original projection, they should also be seamless after a reprojection. Otherwise, I would call it a bug. I just tested an older version of Mapserver (4.6.1). That one creates seamless results, even if the images are reprojected. Only newer versions (tested 4.8.1) produce non-seamless images. Can someone confirm this? Regards, Dirk Ed McNierney wrote: >Dirk - > >I assume your tiled source images do not overlap, and that the originals >do not have white border strips around them. > >If that's the case, this may be an inevitable artifact of the >reprojection. Look at the situation along one north/south edge between >two tiles. > >If you render the tiles in the source projection you'll get two adjacent >vertical lines along the edges of each file, with no gap between them. > >If you reproject the tiles, then you will have two adjacent edges that >are two diagonal lines. The distance between the edges may not be 1, >and may vary by a pixel along the course of those two diagonal lines. >When that happens, the images will sometimes overlap by one pixel (you >won't notice) and will sometimes leave a one-pixel gap (which is >obvious). The obvious gaps will repeat in a regular pattern since the >phase difference between the two diagonal lines will be regular and >repeating. > > - Ed > >Ed McNierney >President and Chief Mapmaker >TopoZone.com / Maps a la carte, Inc. >73 Princeton Street, Suite 305 >North Chelmsford, MA 01863 >ed at topozone.com >(978) 251-4242 > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Dirk Jesko >Sent: Tuesday, March 14, 2006 3:04 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Problem with reprojected images > >Hi, > >I set up a WMS for aerial images. The images are projected in >Gauss-Krueger 3 and have a size of one square kilometer. The WMS also >provides other projections, e.g. Gauss-Krueger 2-5, UTM, etc. If I query >the WMS with a projection other than the original one, I get little >white lines along the edges of the tiles (see the attached image). The >image format does not matter. How do I get rid of these? I can not find >any option that might be related to this. By the way, this also happens >if the data is accessed via mapscript or as normal cgi. > >Thanks for any help. > >Regards, >Dirk > > > From woodbri at SWOODBRIDGE.COM Tue Mar 14 08:22:14 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 14 Mar 2006 11:22:14 -0500 Subject: Problem with reprojected images In-Reply-To: <4416EA57.5020502@geocontent.de> Message-ID: Dirk Jesko wrote: > Ed, > > I already thought of something like this already. However, this should > not happen. If the images are seamless (our images are seamless and do > not have any borders) in the original projection, they should also be > seamless after a reprojection. Otherwise, I would call it a bug. May be, may be not! In a continuous math world this might be true, but pixels are not continuous, this might be caused by a rounding or numerical percision cause the pixel location to fall inside or outside of the patch. > I just tested an older version of Mapserver (4.6.1). That one creates > seamless results, even if the images are reprojected. Only newer > versions (tested 4.8.1) produce non-seamless images. Can someone confirm > this? Well a behavior change can certainly be considered a bug :) In which case you might want to submit a simple test case (like two tiles and a mapfile) the reproduct the results. -Steve W. > > Regards, > Dirk > > > > Ed McNierney wrote: > >> Dirk - >> >> I assume your tiled source images do not overlap, and that the originals >> do not have white border strips around them. >> >> If that's the case, this may be an inevitable artifact of the >> reprojection. Look at the situation along one north/south edge between >> two tiles. >> >> If you render the tiles in the source projection you'll get two adjacent >> vertical lines along the edges of each file, with no gap between them. >> >> If you reproject the tiles, then you will have two adjacent edges that >> are two diagonal lines. The distance between the edges may not be 1, >> and may vary by a pixel along the course of those two diagonal lines. >> When that happens, the images will sometimes overlap by one pixel (you >> won't notice) and will sometimes leave a one-pixel gap (which is >> obvious). The obvious gaps will repeat in a regular pattern since the >> phase difference between the two diagonal lines will be regular and >> repeating. >> >> - Ed >> >> Ed McNierney >> President and Chief Mapmaker >> TopoZone.com / Maps a la carte, Inc. >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> ed at topozone.com >> (978) 251-4242 >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >> Behalf Of Dirk Jesko >> Sent: Tuesday, March 14, 2006 3:04 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] Problem with reprojected images >> >> Hi, >> >> I set up a WMS for aerial images. The images are projected in >> Gauss-Krueger 3 and have a size of one square kilometer. The WMS also >> provides other projections, e.g. Gauss-Krueger 2-5, UTM, etc. If I query >> the WMS with a projection other than the original one, I get little >> white lines along the edges of the tiles (see the attached image). The >> image format does not matter. How do I get rid of these? I can not find >> any option that might be related to this. By the way, this also happens >> if the data is accessed via mapscript or as normal cgi. >> >> Thanks for any help. >> >> Regards, >> Dirk >> >> >> > From stefano.masci at 3MLINFORMATICA.IT Tue Mar 14 08:43:31 2006 From: stefano.masci at 3MLINFORMATICA.IT (Stefano Masci) Date: Tue, 14 Mar 2006 17:43:31 +0100 Subject: use variable extension dir Message-ID: Hello I've this problem in Mapscript 4.6 installation. ENVIRONMENT Server IBM Blade HS20, Linux RedHat ES 3.0 with Apache and PHP already installed and some other thirdy parties web applications. QUESTION Does the library installation of php_mapscript.so absolutely require use of the environment variable extension_dir? Does exist another way that allows the use of php_mapscript.so without this variable? TIES We are obliged to use Apache and PHP already installed on the server. We cannot create another user or another instance of Apache Server. It is not possible to modify those environment variables because the other applications could not be working correctly. Thank's in advance. Ing. Stefano Masci Project Management 3ML Informatica s.r.l * * *347 5001928 * stefano.masci at 3mlinformatica.it -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 2174 bytes Desc: not available URL: From warmerdam at POBOX.COM Tue Mar 14 08:53:50 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 14 Mar 2006 11:53:50 -0500 Subject: Problem with reprojected images In-Reply-To: <4416EDB6.2090800@swoodbridge.com> Message-ID: Stephen Woodbridge wrote: > Dirk Jesko wrote: >> Ed, >> >> I already thought of something like this already. However, this should >> not happen. If the images are seamless (our images are seamless and do >> not have any borders) in the original projection, they should also be >> seamless after a reprojection. Otherwise, I would call it a bug. > > May be, may be not! In a continuous math world this might be true, but > pixels are not continuous, this might be caused by a rounding or > numerical percision cause the pixel location to fall inside or outside > of the patch. > >> I just tested an older version of Mapserver (4.6.1). That one creates >> seamless results, even if the images are reprojected. Only newer >> versions (tested 4.8.1) produce non-seamless images. Can someone >> confirm this? > > Well a behavior change can certainly be considered a bug :) In which > case you might want to submit a simple test case (like two tiles and a > mapfile) the reproduct the results. Folks, I have to confess I haven't been following this discussion closely. There were fixes for 4.8.x intended to address cracking problems reported by a user. I can't recall the details but we can, if needed, dig back into the history logs. I would appreciate a submitted bug report with a *minimal* demonstration of the problem. My minimal, I mean a map file with two images in a tile index and that I can just run "shp2img -m abc.map -o abc.png" to test. Please ensure the bug report is assigned directly to me. Once I reproduce the problem, I can try and analyse what is going wrong. 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 OSGF, http://osgeo.org From Frank.Barrett at UCD.IE Tue Mar 14 09:09:55 2006 From: Frank.Barrett at UCD.IE (Frank Barrett) Date: Tue, 14 Mar 2006 17:09:55 +0000 Subject: mapping mars Message-ID: This may be of interest for interstellar web mappers! http://www.google.com/mars/ From steve.lime at DNR.STATE.MN.US Tue Mar 14 09:20:14 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 14 Mar 2006 11:20:14 -0600 Subject: Item Query Hilight Message-ID: Hmmmm... but why... Vector symbols for lines aren't much use anyway. Just to be safe, would you mind filing a bug related to this (vector line symbols don't show up in query maps)? Steve >>> Maurizio Esposito 03/14/06 9:08 AM >>> Steve, as usual you have pointed my attention on the real issue: "dash_2" comes from itasca_demo symbols and is of type vector. This is the problem. Using circle as symbol hilighting works fine !! Thanks Maurizio From D.Stone at ED.AC.UK Tue Mar 14 09:17:57 2006 From: D.Stone at ED.AC.UK (Dave Stone) Date: Tue, 14 Mar 2006 11:17:57 -0600 Subject: Tutorial / 500 Internal Server Error Message-ID: When I try to link to any page of Pericles' tutorial which invokes MapServer directly (e.g. Example 1-9 onwards), I get: "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root at localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log." I'm baffled, cos it was working just fine last week. Any ideas? From steve.lime at DNR.STATE.MN.US Tue Mar 14 09:31:59 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 14 Mar 2006 11:31:59 -0600 Subject: JBOX - distance measuring Message-ID: It's been awhile since I've used jbox but if it behaves like dbox then typically you need to somehow trigger the drawing. I believe there is a method called lineon() that you would call to get into that mode. The way I've done this is by using a measure button that calls the lineon() method. There's also a lineoff() method. You may also need to set verbose to true when you initialize the applet. Assuming you have a jbox called myBox, then you could test with: Measure: on/off Steve >>> Alexandre Abramides 03/14/06 8:56 AM >>> Anyone? ----- Original Message ----- From: "Alexandre Abramides" To: Sent: Tuesday, March 07, 2006 1:55 PM Subject: [UMN_MAPSERVER-USERS] JBOX - distance measuring > Anyone can help me? > > I,m trying to use the distance measuring function from jBox. > This is the javascript function in > http://mapserver.gis.umn.edu/docs/howto/jbox > > function measure_handler(name, s, t, n, a) { > // c = 1 / 72dpi / 12inches_per_foot * 1.0003state_plane_scale_factor > var c = 0.0011577546296296; // constant > var f = [scale] * c; // scale factor > if ((s>0) || (t>0)) { > defaultStatus = "This segment = " + s*f + ", Total = " > + t*f + ", Number of vertices = " + n ; > } > } > > and I don?t know what else i have to do. > Should i add another "mode" to my html template? How do I use this function > properly? > > [] > Abramides. > From D.Stone at ED.AC.UK Tue Mar 14 09:37:54 2006 From: D.Stone at ED.AC.UK (Dave Stone) Date: Tue, 14 Mar 2006 11:37:54 -0600 Subject: Defining simple symbols Message-ID: I'm having no joy getting off the ground with a simple familiarisation exercise -- today's headbanger is drawing dots! My layer is: LAYER # test query layer CONNECTIONTYPE postgis NAME saint_dedications #CONNECTION "user=erdb13 dbname=stdraft host=localhost port=5432" CONNECTION "user=erdb13 dbname=stdraft" DATA "geom from loccoords" STATUS ON TYPE POINT CLASS NAME "locations" STYLE SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 2 2 END END COLOR 255 0 0 OUTLINECOLOR 0 0 0 END The data is being fetched OK from the database, because until I put the SYMBOL definition in, the layer showed tiny red marks (which I want now to replace with larger red dots). But all I get is: getSymbol(): Symbol definition error. Parsing error near (NAME):(line 132) on the line after SYMBOL. Can anyone tell me what's wrong please? From David.Fawcett at STATE.MN.US Tue Mar 14 09:43:33 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 14 Mar 2006 11:43:33 -0600 Subject: Defining simple symbols Message-ID: Dave, Do you have a symbols.sym file that contains a symbol definition named 'circle'? Is there a SYMBOLSET line in your map file with the proper path to your symbol file? Alternatively, do you define a symbol named 'circle' directly in your map file? My guess is that MapServer can't find a symbol definition for 'circle'. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dave Stone Sent: Tuesday, March 14, 2006 11:38 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Defining simple symbols I'm having no joy getting off the ground with a simple familiarisation exercise -- today's headbanger is drawing dots! My layer is: LAYER # test query layer CONNECTIONTYPE postgis NAME saint_dedications #CONNECTION "user=erdb13 dbname=stdraft host=localhost port=5432" CONNECTION "user=erdb13 dbname=stdraft" DATA "geom from loccoords" STATUS ON TYPE POINT CLASS NAME "locations" STYLE SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 2 2 END END COLOR 255 0 0 OUTLINECOLOR 0 0 0 END The data is being fetched OK from the database, because until I put the SYMBOL definition in, the layer showed tiny red marks (which I want now to replace with larger red dots). But all I get is: getSymbol(): Symbol definition error. Parsing error near (NAME):(line 132) on the line after SYMBOL. Can anyone tell me what's wrong please? From lfilak at MEDINACO.ORG Tue Mar 14 10:23:29 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Tue, 14 Mar 2006 13:23:29 -0500 Subject: translate to tcl In-Reply-To: <20060310235826.36492.qmail@web52714.mail.yahoo.com> Message-ID: salah jubeh writes: > > CAN ANY BODY HELP ME IN TRANSLATE THIS TO TCL > > map = mapscript.Map('rquery.map') > > layer = map.getLayer(0) > > pnt = mapscript.Point() > > pnt.x = 440780 pnt.y = 3751260 > > layer.queryByPoint( map, pnt, mapscript.MS_MULTIPLE, 180.0 ) > > layer.open() for i in range(1000): > > result = layer.getResult( i ) > > if result is None: > > break > > print '(%d,%d)' % (result.shapeindex, result.tileindex) > > s = layer.getShape( result.shapeindex, result.tileindex ) > > for i in range(layer.numitems): > > print '%s: %s' % (layer.getItem(i), s.getValue(i)) > > layer.close() Salah, Assuming that this probably relates to the question you posted some time ago regarding TCLMapScript I'm going to attempt to supply some history that may or may-not help as it is all I can do in regards to TCL. The last time I recall seeing any "active" maintenance/support for the TCL flavor of MapScript is in version 3.3 (maybe 3.5). That doesn't mean that the TCL version doesn't work but there are a few issues that you may run into. Basically the TCL interface is maintained via SWIG from the C source code and is/can-be recreated in an automated fashion for each release but I do not recall any replies to TCL questions recently outside of Sean G. who usually provides great support for the MapScript API "in depth" but may not be able to help with specifics for TCL. This is the same method used for the Java, Perl, Python, Ruby versions. This does leave a support position open that you could fill once you are more familiar with it ;-) The other issue I know of is (at least at the time of 3.3) that TCL does/did not have a direct "module" for accessing Xbase files outside of mapscript so there were objects/methods/routines placed into mapscript to allow the tcl interface to access field names, values, & etc. At first when the older perlmapscript (my finger tires of capitalizing) documentation was done those objects & etc. where documented but proved to cause more trouble than it was worth when a person could simply include "use XBase" or such and access the information through an API that was intended for that purpose. That said, I think Sean has once again included documentation for said objects & etc. as of 4.4. As a starting point you could use the base swigmapscript documentation and see what works & what doesn't. As an example of a specific issue, until the event of a patch during the life of 4.4 and then in 4.6 you could not hold an imageobj in a scalar in the perl version due to the lack of a swig typemap (which has since been created). Lowell From Dennis.Christopher at DPRA.COM Tue Mar 14 10:24:31 2006 From: Dennis.Christopher at DPRA.COM (Dennis Christopher) Date: Tue, 14 Mar 2006 12:24:31 -0600 Subject: epsg code and php/mapscript setProjection Message-ID: Does the php/mapscript setProjection function accept a first argument in Epsg code form? If so, can someone state the exact syntax? Thanks in advance, Dennis Christopher DPRA -------------- next part -------------- An HTML attachment was scrubbed... URL: From hartpence_gis at CO.JASPER.IA.US Tue Mar 14 10:43:58 2006 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Tue, 14 Mar 2006 12:43:58 -0600 Subject: Substitution strings Message-ID: Hello, It's me again. I have a layer which after I perform an ItemQuery, it will zoom to the selected polygon, but the substitution string won't work. The following URL should display which Section, Township, and Range is selected as well as display an image of the selected area, but it doesn't. http://gismap/JasperMaps/cgi-bin/mapserv.exe?&program=%2FJasperMaps%2Fcgi-bi n%2Fmapserv.exe&map=C%3A%5CMS4W%5CMapFiles%5CLandCorner.map&zoomsize=2&layer s=ortho+Monuments+LandCorners+Water+Highways+Roads+County+Sections+Quarter+T owns+Township&mode=ItemQuery&mapext=shapes&slayer=Sections&imgxy=320+240&img ext=1680507.39+547052.00+1844030.00+680312.51&mapshape=&imgshape=&imgbox=&qs tring=('[SECTION_]'='27'%20AND%20'[TWP]'='80'%20AND%20'[RNG]'='19')&qlayer=S ections&qitem=&shapeindex=&savequery= If this link doesn't work, here is the webpage: http://216.203.113.94/JasperMaps/LandCorner/GoLandCorner.html Here is an excerpt from my mapfile: LAYER NAME 'Sections' TEMPLATE 'C:\MS4W\Apache\htdocs\LandCorner\Sections_query.html' DATA 'C:\Parcels_shape\sectr_poly' STATUS on TYPE Polygon MINSCALE 15000 TRANSPARENCY 100 TOLERANCE 7 TOLERANCEUNITS pixels #METADATA # WMS_SRS 'epsg:HTML' # WMS_TITLE 'WMSTitel' # WMS_FEATURE_INFO_MIME_TYPE 'text/html' #END #METADATA #PROJECTION # 'init=epsg:HTML' #END # LABELITEM 'section_' #CLASSITEM 'OBJECTID' CLASS NAME 'Section Lines' #EXPRESSION /./ STYLE #COLOR 255 255 255 OUTLINECOLOR 127 127 127 SIZE 2 END #STYLE LABEL TYPE TRUETYPE SIZE 10 FONT Arial COLOR 127 127 127 POSITION CC BACKGROUNDCOLOR 245 254 141 ANGLE 0 OFFSET 0 0 END #LABEL END #CLASS END #LAYER Any help would be greatly appreciated. Lawrence Hartpence GIS Coordinator 101 1st St N Newton IA 50208 641-792-3084 hartpence_gis at co.jasper.ia.us From jmckenna at DMSOLUTIONS.CA Tue Mar 14 12:16:36 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 14 Mar 2006 15:16:36 -0500 Subject: epsg code and php/mapscript setProjection In-Reply-To: <49B9846C39F25A4FA90106497086161066A4D6@mhk-ex1.ad.dpra.com> Message-ID: i took a look at the Chameleon code, and it seems like the answer is yes: $oLayer->setprojection( "init=epsg:4326" ); i believe it will accept both epsg-code and parameter form. jeff Dennis Christopher wrote: > Does the php/mapscript setProjection function accept a first argument in > > Epsg code form? > > > > If so, can someone state the exact syntax? > > > > Thanks in advance, > > > > Dennis Christopher > > DPRA > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From ed at TOPOZONE.COM Tue Mar 14 12:32:59 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 14 Mar 2006 15:32:59 -0500 Subject: Problem with reprojected images Message-ID: Dirk - No, that's not correct, because raster images are quantized into pixels. Reprojection will create coordinates that need to be rounded to whole integers to create pixel coordinates, and it is possible for such calculations to cause adjacent pixels in the source coordinate system to become one pixel apart in the output coordinate system. Just think of a simple example of two horizontal lines, exactly one pixel apart. Let's suppose these lines run from (0,0) to (100,0), and from (0,1) to (100,1) in the original projection coordinate system. And let's suppose you are viewing them at 1:1 scale so those coordinates are pixel coordinates, too. If those are two black lines on a white background, you will see two adjacent horizontal lines with no gap at all between them. Now imagine that your new "projection" rotates the coordinate system 31.788 degrees counterclockwise and does nothing else. The original line from (0,0) to (100,0) now runs from (0,0) to (86,50), and the second line runs from (0,1) to (88,51). The output pixel coordinates can't be fractional, so a bit of rounding (not rounding error, but inevitable and correct rounding) now leaves a tiny gap between the diagonal lines at the right-hand end. The degree of separation and the pattern of the gap will depend a lot on the exact view scales chosen and on "arbitrary" factors like the state of the error term initialization in iterating across the source pixels. There can be several different results that are all equally correct. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dirk Jesko Sent: Tuesday, March 14, 2006 11:08 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Problem with reprojected images Ed, I already thought of something like this already. However, this should not happen. If the images are seamless (our images are seamless and do not have any borders) in the original projection, they should also be seamless after a reprojection. Otherwise, I would call it a bug. I just tested an older version of Mapserver (4.6.1). That one creates seamless results, even if the images are reprojected. Only newer versions (tested 4.8.1) produce non-seamless images. Can someone confirm this? Regards, Dirk Ed McNierney wrote: >Dirk - > >I assume your tiled source images do not overlap, and that the >originals do not have white border strips around them. > >If that's the case, this may be an inevitable artifact of the >reprojection. Look at the situation along one north/south edge between >two tiles. > >If you render the tiles in the source projection you'll get two >adjacent vertical lines along the edges of each file, with no gap between them. > >If you reproject the tiles, then you will have two adjacent edges that >are two diagonal lines. The distance between the edges may not be 1, >and may vary by a pixel along the course of those two diagonal lines. >When that happens, the images will sometimes overlap by one pixel (you >won't notice) and will sometimes leave a one-pixel gap (which is >obvious). The obvious gaps will repeat in a regular pattern since the >phase difference between the two diagonal lines will be regular and >repeating. > > - Ed > >Ed McNierney >President and Chief Mapmaker >TopoZone.com / Maps a la carte, Inc. >73 Princeton Street, Suite 305 >North Chelmsford, MA 01863 >ed at topozone.com >(978) 251-4242 > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >On Behalf Of Dirk Jesko >Sent: Tuesday, March 14, 2006 3:04 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Problem with reprojected images > >Hi, > >I set up a WMS for aerial images. The images are projected in >Gauss-Krueger 3 and have a size of one square kilometer. The WMS also >provides other projections, e.g. Gauss-Krueger 2-5, UTM, etc. If I >query the WMS with a projection other than the original one, I get >little white lines along the edges of the tiles (see the attached >image). The image format does not matter. How do I get rid of these? I >can not find any option that might be related to this. By the way, this >also happens if the data is accessed via mapscript or as normal cgi. > >Thanks for any help. > >Regards, >Dirk > > > From sdc at SDC.COM.AU Tue Mar 14 20:27:49 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Wed, 15 Mar 2006 14:57:49 +1030 Subject: PERL Mapscript Message-ID: I am having my first attempt at using PERL/Mapscript to save map images to files and am not getting too far. I have a map file that works perfectly when used with: http://server/cgi-bin/mapserv?map=/tmp/q.map&mapext=139.5143351+-34.7459112+139.5278707+-34.7207 I have the following PERL test bed: #! /usr/bin/perl # # args are UID (for mapfile), pic sequence #, image type (extension), map extent # use strict; use mapscript; my $uno = $ARGV[0]; my $seq = $ARGV[1]; my $ext = $ARGV[2]; my $minx = $ARGV[3]; my $miny = $ARGV[4]; my $maxx = $ARGV[5]; my $maxy = $ARGV[6]; # my $mapfile = "/tmp/$uno.map"; my $map = mapscript::mapObj->new($mapfile); $map->setExtent($minx,$miny,$maxx,$maxy); # my $img = $map->prepareImage(); $img = $map->draw(); my $fname = "/var/www/html/status_images/$uno_$seq.$ext"; print "$fname\n"; $img->save($fname); Called as: ./genpics q 1 139.5143351 -34.7459112 139.5278707 -34.7207 This generates a blank jpeg file (of some 2800 bytes). What am I missing? Cheers and thanks, Stephen Davies MapServer version 4.8.0-rc2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From m.meier at SPIEKERMANN.DE Tue Mar 14 22:31:31 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Wed, 15 Mar 2006 07:31:31 +0100 Subject: PERL Mapscript In-Reply-To: <200603151457.49911.sdc@sdc.com.au> Message-ID: > ./genpics q 1 139.5143351 -34.7459112 139.5278707 -34.7207 Is there a parameter missing before "139.5143351"? minx is ARGV[3] in your program. Hope that helps Manfred Stephen Davies schrieb: > I am having my first attempt at using PERL/Mapscript to save map images > to files and am not getting too far. > > I have a map file that works perfectly when used with: > > http://server/cgi-bin/mapserv?map=/tmp/q.map&mapext=139.5143351+-34.7459112+139.5278707+-34.7207 > > I have the following PERL test bed: > > #! /usr/bin/perl > # > # args are UID (for mapfile), pic sequence #, image type (extension), > map extent > # > use strict; > use mapscript; > my $uno = $ARGV[0]; > my $seq = $ARGV[1]; > my $ext = $ARGV[2]; > my $minx = $ARGV[3]; > my $miny = $ARGV[4]; > my $maxx = $ARGV[5]; > my $maxy = $ARGV[6]; > > # > my $mapfile = "/tmp/$uno.map"; > my $map = mapscript::mapObj->new($mapfile); > $map->setExtent($minx,$miny,$maxx,$maxy); > # > my $img = $map->prepareImage(); > $img = $map->draw(); > my $fname = "/var/www/html/status_images/$uno_$seq.$ext"; > print "$fname\n"; > $img->save($fname); > > Called as: > ./genpics q 1 139.5143351 -34.7459112 139.5278707 -34.7207 > > This generates a blank jpeg file (of some 2800 bytes). > > What am I missing? > > Cheers and thanks, > Stephen Davies > > MapServer version 4.8.0-rc2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER > SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > From hydromap at GMAIL.COM Tue Mar 14 22:41:15 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Wed, 15 Mar 2006 17:41:15 +1100 Subject: Melbourne Mapserver User Group (Australia) Message-ID: Hi Just to let you all know we have started a mapsrever user group in melbourne, Australia with our 1st meeting coming up on the Friday 31st of March. Here's the current wiki site: http://nomad-labs.dyndns.org/melbmap/published cheers shoaib -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdc at SDC.COM.AU Tue Mar 14 23:49:21 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Wed, 15 Mar 2006 18:19:21 +1030 Subject: PERL Mapscript In-Reply-To: <4417B4C3.6040400@spiekermann.de> Message-ID: Sorry; a mistake in my posting. The actual invocation of the script was: ./genpics q 1 jpg 139.5143351 -34.7459112 139.5278707 -34.7207 The problem remains. Cheers and thanks Stephen On Wednesday 15 March 2006 17:01, Manfred Meier wrote: > > ./genpics q 1 139.5143351 -34.7459112 139.5278707 -34.7207 > > Is there a parameter missing before "139.5143351"? minx is ARGV[3] in > your program. > > Hope that helps > Manfred > > Stephen Davies schrieb: > > I am having my first attempt at using PERL/Mapscript to save map > > images to files and am not getting too far. > > > > I have a map file that works perfectly when used with: > > > > http://server/cgi-bin/mapserv?map=/tmp/q.map&mapext=139.5143351+-34 > >.7459112+139.5278707+-34.7207 > > > > I have the following PERL test bed: > > > > #! /usr/bin/perl > > # > > # args are UID (for mapfile), pic sequence #, image type > > (extension), map extent > > # > > use strict; > > use mapscript; > > my $uno = $ARGV[0]; > > my $seq = $ARGV[1]; > > my $ext = $ARGV[2]; > > my $minx = $ARGV[3]; > > my $miny = $ARGV[4]; > > my $maxx = $ARGV[5]; > > my $maxy = $ARGV[6]; > > > > # > > my $mapfile = "/tmp/$uno.map"; > > my $map = mapscript::mapObj->new($mapfile); > > $map->setExtent($minx,$miny,$maxx,$maxy); > > # > > my $img = $map->prepareImage(); > > $img = $map->draw(); > > my $fname = "/var/www/html/status_images/$uno_$seq.$ext"; > > print "$fname\n"; > > $img->save($fname); > > > > Called as: > > ./genpics q 1 139.5143351 -34.7459112 139.5278707 -34.7207 > > > > This generates a blank jpeg file (of some 2800 bytes). > > > > What am I missing? > > > > Cheers and thanks, > > Stephen Davies > > > > MapServer version 4.8.0-rc2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > > OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > > SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER > > SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL > > INPUT=SHAPEFILE -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From ml.dje at GEOCONTENT.DE Tue Mar 14 23:59:42 2006 From: ml.dje at GEOCONTENT.DE (Dirk Jesko) Date: Wed, 15 Mar 2006 08:59:42 +0100 Subject: Problem with reprojected images In-Reply-To: <4416F51E.4030703@pobox.com> Message-ID: Frank, thanks for the help. I will prepare a test case later and submit it. Until a solution is found for this, we will switch back to version 4.6.1. Regards, Dirk > > Folks, > > I have to confess I haven't been following this discussion closely. > There > were fixes for 4.8.x intended to address cracking problems reported by a > user. I can't recall the details but we can, if needed, dig back into > the > history logs. > > I would appreciate a submitted bug report with a *minimal* demonstration > of the problem. My minimal, I mean a map file with two images in a tile > index and that I can just run "shp2img -m abc.map -o abc.png" to test. > Please ensure the bug report is assigned directly to me. > > Once I reproduce the problem, I can try and analyse what is going wrong. > > Best regards, From xavier.mauclaire at GEOTER.FR Wed Mar 15 00:19:06 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Wed, 15 Mar 2006 09:19:06 +0100 Subject: Mapserver compiled distribution for mono Message-ID: Hi I'd like to find a mapserver/mapscript distribution running with Suse OS an mono. Where could i find it ? I've got the windows mapscripts binaries and they are working fine. regards xavier -------------- next part -------------- An HTML attachment was scrubbed... URL: From xavier.mauclaire at GEOTER.FR Wed Mar 15 00:01:37 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Wed, 15 Mar 2006 09:01:37 +0100 Subject: Mapserver distribution for mono Message-ID: Hi I'd like to find a mapserver distribution running with Suse OS an mono. Where could i find it ? regards xavier -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Wed Mar 15 04:32:09 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 15 Mar 2006 11:32:09 -0100 Subject: cgi Run-time Substitution for map size {Scanned} {Scanned} In-Reply-To: <000f01c64777$335b4e60$0c03a8c0@lsu.edu> Message-ID: Hi, You can use hidden form variable to set mapsize from your html template is you use cgi mapserver. You can use javascript to change the value of hidden variable. ... ... ... Query string variables override map file settings. Zoltan On Tue, 14 Mar 2006, Carola Jesch wrote: > Hi List, > > I would like to use a variable in my map files for the map SIZE. After > reading a while in the how-to I realized that is is not supported right now. > Is there any reason why? > > Carola > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Carola Jesch > Wetland Biogeochemistry Institute > Department of Oceanography and Coastal Science > Louisiana State University > 3191 Energy, Coast & Environment Bldg. > Baton Rouge, LA,70803 > e-mail: cjesch at cct.lsu.edu > > From ml.dje at GEOCONTENT.DE Wed Mar 15 02:31:33 2006 From: ml.dje at GEOCONTENT.DE (Dirk Jesko) Date: Wed, 15 Mar 2006 11:31:33 +0100 Subject: Problem with reprojected images In-Reply-To: Message-ID: Dear Jukka, thanks for the tip. I will try it. However, since there are some 250.000 tiles, I expect problems with the performance even with pyramid layers. Do you have any experience with very large datasets and GDAL/VRT? Kind regards, Dirk Jesko >Hi, > >I think it is exactly as Ed says. I got similar kind of problems once when I started to reproject images with "gdal_translate", and mosaic and cut the reprojected images to suit mapsheet system of the destination projection. > >With gdal_translate I can get rid of those white (in my case black) pixel lines by using a GDAL virtual format (.vrt)as a source data set instead of individual files. I have been thinking that this means in practise building a mosaic before reprojection, thus there is no place in the process where those lines would be formed. Judged by the result you get I guess that maybe the tileindex system in Mapserver is handling each tile separately and not in the same way than GDAL is handling VRT. If getting rid of those lines is important for you it might be worth trying to use GDAL virtual data set as source data for your Mapserver instead of tileindex. There has been a link to a modified "gdal_merge.py" script in the gdal_dev mailing list possible in May 2005, but I could not find the link right now. With that script you can make a virtual data set from a bunch of original image files, and after creating pyramid layers for the vrt-file (this will be slow if your VRT is large) it is quite usable for Mapserver. > >Regards, > >Jukka Rahkonen > > > >________________________________ > >L?hett?j?: UMN MapServer Users List puolesta: Ed McNierney >L?hetetty: ti 14.3.2006 16:38 >Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU >Aihe: Re: [UMN_MAPSERVER-USERS] Problem with reprojected images > > > From khaled.kamoun at GMAIL.COM Wed Mar 15 03:17:04 2006 From: khaled.kamoun at GMAIL.COM (Khaled Kamoun) Date: Wed, 15 Mar 2006 12:17:04 +0100 Subject: [dbox] boxoff don't work Message-ID: I want to put off the box but it still on : var mapserv = iFrame.window.ms; mapserv.boxoff(); how can i put it off? thanx. -- Khaled KAMOUN -------------- next part -------------- An HTML attachment was scrubbed... URL: From robert.albrecht at TKK.FI Wed Mar 15 03:49:49 2006 From: robert.albrecht at TKK.FI (Robert Albrecht) Date: Wed, 15 Mar 2006 13:49:49 +0200 Subject: PHP/MapScript projection string Message-ID: Hi! I'm trying to do a conversion from Finnish KKJ coordinates to WGS 84 lat/long coordinates using PHP/MapScript. My problem is that I can't figure out how to specify the transformation parameters. The projection I'm trying to do looks like this: $projIn = ms_newProjectionObj("proj=tmerc,lat_0=0,lon_0=27,k=1,x_0=3500000,y_0=0,towgs84=-75,-230,-89,ellps=intl"); $projOut = ms_newProjectionObj("proj=latlong,datum=WGS84"); However the "towgs84=-75,-230,-89" part only works for the dx part (-75) as MapScript apparently thinks -230 and -89 are new parameters. I've tried different ways to specify the transformation parameters, without any luck. Could someone help me out here? Thanks in advance, Robert Albrecht From alexandre at ACQUASOFTWARE.COM.BR Wed Mar 15 04:33:53 2006 From: alexandre at ACQUASOFTWARE.COM.BR (Alexandre Abramides) Date: Wed, 15 Mar 2006 09:33:53 -0300 Subject: [dbox] boxoff don't work Message-ID: It?s not working for me either (with jBox): document.jBox.boxoff() or document.jBox.lineoff() Javascript Error: Object expected Debug: reset_handler('jBox', -1.0, -1.0, -1.0, -1.0); Javascript Error: Could not complete the operation due to error 80020101 On calling document.jBox.lineoff() How can i put the distance measuring feature off? ----- Original Message ----- From: Khaled Kamoun To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, March 15, 2006 8:17 AM Subject: [UMN_MAPSERVER-USERS] [dbox] boxoff don't work I want to put off the box but it still on : var mapserv = iFrame.window.ms; mapserv.boxoff(); how can i put it off? thanx. -- Khaled KAMOUN -------------- next part -------------- An HTML attachment was scrubbed... URL: From robert.albrecht at TKK.FI Wed Mar 15 04:45:12 2006 From: robert.albrecht at TKK.FI (Robert Albrecht) Date: Wed, 15 Mar 2006 14:45:12 +0200 Subject: PHP/MapScript projection string In-Reply-To: <4417FF5D.8080707@tkk.fi> Message-ID: Found the solution. The PHP/MapScript documentation says the projection parameters should be comma-delimited, but apparently the projection can be specified in the standard PROJ.4 format: $projIn = ms_newProjectionObj("+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +towgs84=-75,-230,-89 +ellps=intl"); Now the coordinate transformation works as intended. Robert From ml.dje at GEOCONTENT.DE Wed Mar 15 04:48:39 2006 From: ml.dje at GEOCONTENT.DE (Dirk Jesko) Date: Wed, 15 Mar 2006 13:48:39 +0100 Subject: PHP/MapScript projection string In-Reply-To: <4417FF5D.8080707@tkk.fi> Message-ID: Hi Robert, did you try proj.4 syntax? Like "+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +towgs84=-75,-230,-89 +ellps=intl" This seems to work in my case. Regards, Dirk Jesko Robert Albrecht wrote: > Hi! > > I'm trying to do a conversion from Finnish KKJ coordinates to WGS 84 > lat/long coordinates using PHP/MapScript. My problem is that I can't > figure out how to specify the transformation parameters. > > The projection I'm trying to do looks like this: > $projIn = > ms_newProjectionObj("proj=tmerc,lat_0=0,lon_0=27,k=1,x_0=3500000,y_0=0,towgs84=-75,-230,-89,ellps=intl"); > > $projOut = ms_newProjectionObj("proj=latlong,datum=WGS84"); > > However the "towgs84=-75,-230,-89" part only works for the dx part > (-75) as MapScript apparently thinks -230 and -89 are new parameters. > I've tried different ways to specify the transformation parameters, > without any luck. Could someone help me out here? > > Thanks in advance, > Robert Albrecht > From lfilak at MEDINACO.ORG Wed Mar 15 05:51:27 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Wed, 15 Mar 2006 08:51:27 -0500 Subject: PERL Mapscript In-Reply-To: <200603151819.21388.sdc@sdc.com.au> Message-ID: Stephen Davies writes: > Sorry; a mistake in my posting. > > The actual invocation of the script was: > ./genpics q 1 jpg 139.5143351 -34.7459112 139.5278707 -34.7207 > > The problem remains. > > Cheers and thanks > Stephen > > > On Wednesday 15 March 2006 17:01, Manfred Meier wrote: >> > ./genpics q 1 139.5143351 -34.7459112 139.5278707 -34.7207 >> >> Is there a parameter missing before "139.5143351"? minx is ARGV[3] in >> your program. >> >> Hope that helps >> Manfred >> >> Stephen Davies schrieb: >> > I am having my first attempt at using PERL/Mapscript to save map >> > images to files and am not getting too far. >> > >> > I have a map file that works perfectly when used with: >> > >> > http://server/cgi-bin/mapserv?map=/tmp/q.map&mapext=139.5143351+-34 >> >.7459112+139.5278707+-34.7207 >> > >> > I have the following PERL test bed: >> > >> > #! /usr/bin/perl >> > # >> > # args are UID (for mapfile), pic sequence #, image type >> > (extension), map extent >> > # >> > use strict; >> > use mapscript; >> > my $uno = $ARGV[0]; >> > my $seq = $ARGV[1]; >> > my $ext = $ARGV[2]; >> > my $minx = $ARGV[3]; >> > my $miny = $ARGV[4]; >> > my $maxx = $ARGV[5]; >> > my $maxy = $ARGV[6]; >> > >> > # >> > my $mapfile = "/tmp/$uno.map"; >> > my $map = mapscript::mapObj->new($mapfile); >> > $map->setExtent($minx,$miny,$maxx,$maxy); >> > # >> > my $img = $map->prepareImage(); >> > $img = $map->draw(); >> > my $fname = "/var/www/html/status_images/$uno_$seq.$ext"; >> > print "$fname\n"; >> > $img->save($fname); >> > >> > Called as: >> > ./genpics q 1 139.5143351 -34.7459112 139.5278707 -34.7207 >> > >> > This generates a blank jpeg file (of some 2800 bytes). >> > >> > What am I missing? >> > >> > Cheers and thanks, >> > Stephen Davies Stephen, You should not need prepareImage in this case. map->draw will return the new imageObj. If you have additional/continuing problems you may need to include q.map. Lowell From burnsy at VIVIDFISH.CO.UK Wed Mar 15 06:15:27 2006 From: burnsy at VIVIDFISH.CO.UK (Carl Burn) Date: Wed, 15 Mar 2006 14:15:27 +0000 Subject: Query return highlight Message-ID: Hello all, I have a map with a raster layer (street maps) and a polygon layer (a shape file of postcode sectors), when I perform a query (using cgi and a mode of itemquerymap) on the data in one of the vector layers I can happily display a map centred on the polygon with the raster layer in the background but what I need to do is to show the polygon located by my search as a highlighted area over the raster data. Can anyone suggest how I can do this please? Cheers Burnsy From szekeres.tamas at FREEMAIL.HU Wed Mar 15 06:21:05 2006 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Wed, 15 Mar 2006 08:21:05 -0600 Subject: Mapserver compiled distribution for mono Message-ID: Xavier, As far as I know precompiled binaries targeting the MONO runtime is not available for now, it should be compiled from the source. It must be noted that the support for the C# api has been recently increasing so it is fairly suggested to use the recent mapserver CVS version, and SWIG version (1.3.28) to compile. If you find problems requiring to change the source don't hesitate to file a bug report with the description of the issue and assign it to me. Best Regards, Tamas Szekeres On Wed, 15 Mar 2006 09:19:06 +0100, Xavier Mauclaire wrote: >Hi >I'd like to find a mapserver/mapscript distribution running with Suse OS an >mono. Where could i find it ? >I've got the windows mapscripts binaries and they are working fine. >regards > >xavier > > From Jukka.Rahkonen at MMMTIKE.FI Wed Mar 15 06:41:27 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 15 Mar 2006 16:41:27 +0200 Subject: VS: [UMN_MAPSERVER-USERS] Problem with reprojected images Message-ID: Hello Dirk, No, I don't have experience on very large datasets. I have only created once a GDAL/VRT dataset from a site with about 120 aerial photos. Each image was 10000 x 10000 pixels and in lossless JPEG 2000 format. Creation of the VRT file was fast with the modified gdal_merge.py script, but building pyramid layers was very slow. Frank Warmerdam informed that vrt system was not made for large data sets and was not surprised about the poor performance in overview creation. But once the process was done my earial photo layer behaved very well with Mapserver. However, I found it much more convenient for me just to make a tileindex of my JPEG 2000 images and use that in Mapserver without any overviews. I guess I won't do any more large VRT datasets to be used with Mapserver. However, I will need those to be used with gdal_transform when reprojecting aerial photos from Finnish national reference system to EUREF. The gdal_transform seems to work as fast with VRT virtual layer as with individual images and the final product is just perfect without any seems at the place of original image boundaries. I think that the tileindes system and not GDAL/VRT is the way to handle your 250000 tiles once the lines-at-the-boundary problem is solved. Geotiffs with overviews gives propably the best performance, but using JPEG 2000 images compressed to some 1:15 ratio (3-channel images, mayby some 1:7 with greyscale) is not bad alternative either and saves some disk space. Of course your servers processor will be more busy because of the need to decompress JPEG 2000 imagery and that limits the load as requests/sec it can stand. My server has so little load that speed is not any problem for me and I cannot say anything about how it would behave with high load. Regards, Jukka Rahkonen ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Dirk Jesko L?hetetty: ke 15.3.2006 12:31 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: [UMN_MAPSERVER-USERS] Problem with reprojected images Dear Jukka, thanks for the tip. I will try it. However, since there are some 250.000 tiles, I expect problems with the performance even with pyramid layers. Do you have any experience with very large datasets and GDAL/VRT? Kind regards, Dirk Jesko >Hi, > >I think it is exactly as Ed says. I got similar kind of problems once when I started to reproject images with "gdal_translate", and mosaic and cut the reprojected images to suit mapsheet system of the destination projection. > >With gdal_translate I can get rid of those white (in my case black) pixel lines by using a GDAL virtual format (.vrt)as a source data set instead of individual files. I have been thinking that this means in practise building a mosaic before reprojection, thus there is no place in the process where those lines would be formed. Judged by the result you get I guess that maybe the tileindex system in Mapserver is handling each tile separately and not in the same way than GDAL is handling VRT. If getting rid of those lines is important for you it might be worth trying to use GDAL virtual data set as source data for your Mapserver instead of tileindex. There has been a link to a modified "gdal_merge.py" script in the gdal_dev mailing list possible in May 2005, but I could not find the link right now. With that script you can make a virtual data set from a bunch of original image files, and after creating pyramid layers for the vrt-file (this will be slow if your VRT is large) it is quite usable for Mapserver. > >Regards, > >Jukka Rahkonen > > > >________________________________ > >L?hett?j?: UMN MapServer Users List puolesta: Ed McNierney >L?hetetty: ti 14.3.2006 16:38 >Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU >Aihe: Re: [UMN_MAPSERVER-USERS] Problem with reprojected images > > > From hartpence_gis at CO.JASPER.IA.US Wed Mar 15 07:18:15 2006 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Wed, 15 Mar 2006 09:18:15 -0600 Subject: Substitution strings Message-ID: Hello, It's me again. I have a layer which after I perform an ItemQuery, it will zoom to the selected polygon, but the substitution string won't work. The following URL should display which Section, Township, and Range is selected as well as display an image of the selected area, but it doesn't. http://gismap/JasperMaps/cgi-bin/mapserv.exe?&program=%2FJasperM aps%2Fcgi-bin%2Fmapserv.exe&map=C%3A%5CMS4W%5CMapFiles%5CLandCor ner.map&zoomsize=2&layers=ortho+Monuments+LandCorners+Water+High ways+Roads+County+Sections+Quarter+Towns+Township&mode=ItemQuery &mapext=shapes&slayer=Sections&imgxy=320+240&imgext=1680507.39+5 47052.00+1844030.00+680312.51&mapshape=&imgshape=&imgbox=&qstrin g=('[SECTION_]'='27'%20AND%20'[TWP]'='80'%20AND%20'[RNG]'='19')& qlayer=Sections&qitem=&shapeindex=&savequery= If this link doesn't work, here is the webpage: http://216.203.113.94/JasperMaps/LandCorner/GoLandCorner.html Here is an excerpt from my mapfile: LAYER NAME 'Sections' TEMPLATE 'C:\MS4W\Apache\htdocs\LandCorner\Sections_query.html' DATA 'C:\Parcels_shape\sectr_poly' STATUS on TYPE Polygon MINSCALE 15000 TRANSPARENCY 100 TOLERANCE 7 TOLERANCEUNITS pixels #METADATA # WMS_SRS 'epsg:HTML' # WMS_TITLE 'WMSTitel' # WMS_FEATURE_INFO_MIME_TYPE 'text/html' #END #METADATA #PROJECTION # 'init=epsg:HTML' #END # LABELITEM 'section_' #CLASSITEM 'OBJECTID' CLASS NAME 'Section Lines' #EXPRESSION /./ STYLE #COLOR 255 255 255 OUTLINECOLOR 127 127 127 SIZE 2 END #STYLE LABEL TYPE TRUETYPE SIZE 10 FONT Arial COLOR 127 127 127 POSITION CC BACKGROUNDCOLOR 245 254 141 ANGLE 0 OFFSET 0 0 END #LABEL END #CLASS END #LAYER Any help would be greatly appreciated. Lawrence Hartpence GIS Coordinator 101 1st St N Newton IA 50208 641-792-3084 hartpence_gis at co.jasper.ia.us From mhe at ITSC.UAH.EDU Wed Mar 15 07:30:30 2006 From: mhe at ITSC.UAH.EDU (He, Matt Yubin) Date: Wed, 15 Mar 2006 09:30:30 -0600 Subject: question about LEGEND tag in Mapfile Message-ID: I have 10 layers in my Mapfile, can I add all the legends for these 10 layers into LEGEND block? My legends are all gif images. How to add them in the LEGEND block? Thanks. Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Wed Mar 15 08:26:04 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 15 Mar 2006 11:26:04 -0500 Subject: Melbourne Mapserver User Group (Australia) In-Reply-To: <60c6835d0603142241g3a42c108sa06515941508c7a2@mail.gmail.com> Message-ID: thanks Shoaib, i've added a link to your group on the mapserver site (http://mapserver.gis.umn.edu/community/MUGs/). jeff Shoaib Burq wrote: > Hi > > Just to let you all know we have started a mapsrever user group in > melbourne, Australia with our 1st meeting coming up on the Friday 31st > of March. > > Here's the current wiki site: > http://nomad-labs.dyndns.org/melbmap/published > > cheers > shoaib -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From cblandy at KGSGROUP.COM Wed Mar 15 08:23:07 2006 From: cblandy at KGSGROUP.COM (Cameron Blandy) Date: Wed, 15 Mar 2006 10:23:07 -0600 Subject: mysql? Message-ID: On Wed, 21 Dec 2005 22:37:52 -0500, Frank Warmerdam wrote: >On 12/21/05, Paolo Cavallini wrote: >> Hi all. >> I have seen on the home page that MapServer supports MySQL tables via OGR, >> which however does not have support for spatial data. Could someone point out >> a resource to understand this better, or give us a brief overview of MySQL >> support in UMN MS? > >Paolo, > >I would add that over the next few weeks Howard Butler and I >will be extending OGR with quite complete support for the MySQL >spatial capabilities. This work is being supported by the Canadian >Department of Fisheries and Oceans. > >So, for those wanting to use the spatial capabilities of MySQL >in MapServer or other OGR enabled applications, hopefully something >will be available pretty soon. Contact Howard or I if you want to do >early testing. > >I would stress that MySQL's spatial support still falls short of >what PostGIS does for you in a number of ways, but for those >just wanting to hold and query spatial data efficiently it well might >be a good solution. > >Best regards, >-- >---------------------------------------+---------------------------------- ---- >I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com >light and sound - activate the windows | http://pobox.com/~warmerdam >and watch the world go round - Rush | Geospatial Programmer for Rent Hello Frank, Just wondering what the status of MySQL spatial support within OGR is. I just downloaded the latest version of ms4w thinking that support for MySQL was included but it is not yet. I am new to MapServer and I am doing some experimenting with it. Do you have any an idea of when I will be able to view MySQL spatial tables in MapServer. Regards, Cameron Blandy Senior GIS Specialist KGS Group Winnipeg From hobu at IASTATE.EDU Wed Mar 15 08:45:55 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 15 Mar 2006 10:45:55 -0600 Subject: mysql? In-Reply-To: Message-ID: Cameron, If you are adventurous, you can try some windows binaries that I prepared yesterday with a CVS GDAL and CVS MapServer. These should have support for MySQL spatial in OGR. Dropping them into an existing MS4W might be kind of tricky. I've never tried it. This is an extremely spartan binary set, with just the dlls and executables. Howard At 10:23 AM 3/15/2006, Cameron Blandy wrote: >On Wed, 21 Dec 2005 22:37:52 -0500, Frank Warmerdam >wrote: > > >On 12/21/05, Paolo Cavallini wrote: > >> Hi all. > >> I have seen on the home page that MapServer supports MySQL tables via >OGR, > >> which however does not have support for spatial data. Could someone >point out > >> a resource to understand this better, or give us a brief overview of >MySQL > >> support in UMN MS? > > > >Paolo, > > > >I would add that over the next few weeks Howard Butler and I > >will be extending OGR with quite complete support for the MySQL > >spatial capabilities. This work is being supported by the Canadian > >Department of Fisheries and Oceans. > > > >So, for those wanting to use the spatial capabilities of MySQL > >in MapServer or other OGR enabled applications, hopefully something > >will be available pretty soon. Contact Howard or I if you want to do > >early testing. > > > >I would stress that MySQL's spatial support still falls short of > >what PostGIS does for you in a number of ways, but for those > >just wanting to hold and query spatial data efficiently it well might > >be a good solution. > > > >Best regards, > >-- > >---------------------------------------+---------------------------------- >---- > >I set the clouds in motion - turn up | Frank Warmerdam, >warmerdam at pobox.com > >light and sound - activate the windows | http://pobox.com/~warmerdam > >and watch the world go round - Rush | Geospatial Programmer for Rent > >Hello Frank, > >Just wondering what the status of MySQL spatial support within OGR is. > >I just downloaded the latest version of ms4w thinking that support for >MySQL was included but it is not yet. I am new to MapServer and I am doing >some experimenting with it. Do you have any an idea of when I will be able >to view MySQL spatial tables in MapServer. > >Regards, >Cameron Blandy >Senior GIS Specialist >KGS Group >Winnipeg From warmerdam at POBOX.COM Wed Mar 15 08:49:29 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 15 Mar 2006 11:49:29 -0500 Subject: mysql? In-Reply-To: Message-ID: Cameron Blandy wrote: > Hello Frank, > > Just wondering what the status of MySQL spatial support within OGR is. > > I just downloaded the latest version of ms4w thinking that support for > MySQL was included but it is not yet. I am new to MapServer and I am doing > some experimenting with it. Do you have any an idea of when I will be able > to view MySQL spatial tables in MapServer. Cameron, MySQL Spatial support is complete and reasonably well tested, but it exists in the CVS version of GDAL only at this time. It was not in the last release (GDAL 1.3.1). I am hoping to do a GDAL 1.3.2 release within the next week or two. My understanding is that MS4W is using GDAL 1.3.1 so it would not have the new 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 OSGF, http://osgeo.org From D.Stone at ED.AC.UK Wed Mar 15 09:30:40 2006 From: D.Stone at ED.AC.UK (Dave Stone) Date: Wed, 15 Mar 2006 11:30:40 -0600 Subject: Defining simple symbols Message-ID: Thanks, David, for unconfusing me! I thought I was defining 'circle' inline in the .MAP file, but clearly the examples I was using were out-of-date or ambiguous. I have followed your tip so what I now have is a separate file (same directory as .MAP) 'symbol.list' containing: SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 1 1 END END and in the .MAP file: LAYER . . . CLASS NAME "locations" STYLE SYMBOL "circle" SIZE 5 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END . . . END which works fine. Dave From bartvde at XS4ALL.NL Wed Mar 15 09:43:53 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 15 Mar 2006 18:43:53 +0100 Subject: question about LEGEND tag in Mapfile In-Reply-To: Message-ID: Hi, you can probably use a KEYIMAGE on the CLASS of your LAYER, search for KEYIMAGE on the MAP file reference: http://mapserver.gis.umn.edu/docs/reference/mapfile/referencemanual-all-pages Best regards, Bart He, Matt Yubin wrote: > I have 10 layers in my Mapfile, can I add all the legends for these 10 > layers into LEGEND block? > > My legends are all gif images. How to add them in the LEGEND block? > > > > Thanks. > > > > Matt > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From karrarm at YAHOO.COM Wed Mar 15 10:59:54 2006 From: karrarm at YAHOO.COM (Ramesh Karra) Date: Wed, 15 Mar 2006 12:59:54 -0600 Subject: Mapserver caching and map generation Message-ID: Hi, I have a related question - I have a map that has 4 tiles at the top level and more tiles as I zoom in. Let's say total tiles at all levels is 256. Once all these 256 tiles are generated, mapserver will just serve these from the cache and will not generated the same tiles again and again, Am I right? If I configure some kind of RAM based file system as the mapserver cache directory, then all requests will be served from the memory and the performance would be great. I would appreciate if some one could confirm that this is the way mapserver works. Thanks Ramesh From woodbri at SWOODBRIDGE.COM Wed Mar 15 11:13:17 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 15 Mar 2006 14:13:17 -0500 Subject: Mapserver caching and map generation In-Reply-To: Message-ID: Ramesh, This has been discussed quite extensively of late. Mapserver does not do caching at all. Every mapserver request will generate a new image. If you want to do caching, you might look at ka-map which creates a tile cache and serves the tiles if they exist or generates them if they do not. It is an AJAX client that uses mapserver on the back-end and looks like google. -Steve W. Ramesh Karra wrote: > Hi, > > I have a related question - > > I have a map that has 4 tiles at the top level and more tiles as I zoom > in. Let's say total tiles at all levels is 256. Once all these 256 tiles > are generated, mapserver will just serve these from the cache and will not > generated the same tiles again and again, Am I right? > > If I configure some kind of RAM based file system as the mapserver cache > directory, then all requests will be served from the memory and the > performance would be great. I would appreciate if some one could confirm > that this is the way mapserver works. > > Thanks > Ramesh > From punkish at EIDESIS.ORG Wed Mar 15 11:43:29 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Wed, 15 Mar 2006 13:43:29 -0600 Subject: Mapserver caching and map generation Message-ID: Ramesh Karra wrote: > Hi, > > I have a related question - > > I have a map that has 4 tiles at the top level and more tiles as I zoom > in. Let's say total tiles at all levels is 256. Once all these 256 tiles > are generated, mapserver will just serve these from the cache and will not > generated the same tiles again and again, Am I right? > > If I configure some kind of RAM based file system as the mapserver cache > directory, then all requests will be served from the memory and the > performance would be great. I would appreciate if some one could confirm > that this is the way mapserver works. > Think of it this way -- if you could guarantee that every map that all your users will view will conform exactly to one of the 256 tiles that you have pre-created, then yes, pre-creating and caching them on the drive or in a ramdisk will improve performance. In real life, however, no one user will ever request a map identical to what some other user has already requested. Each map view will overlap some of the tiles, and hence, will have to be re-created. Not only will they request different areas, they will likely also want to view different layers. There goes all your hard work to waste. There are just too many variables to manage. What you could do is set up some kind of "tolerance" or jitter, store each image's name in a session, check if the next request hasn't changed the layers it is requesting, and if the area it is requesting is within the tolerance, then pick up the image from the tmp file. In reality, it is just not worth it. So, don't worry about performance using this approach. Develop your app, then look at other ways to improve the performance. Search the archives, particularly for emails by "Ed McNierney". You will learn a lot. -- Puneet Kishor From john.cole at UAI.COM Wed Mar 15 12:05:37 2006 From: john.cole at UAI.COM (John Cole) Date: Wed, 15 Mar 2006 14:05:37 -0600 Subject: mapserver symbol problem... Message-ID: I'm trying to track down why mapserver after 4.4 renders my point layers wrong: Here a layer I'm trying to render: LAYER DATA "Church" GROUP Landmarks TYPE POINT MAXSCALE 24000 LABELMAXSCALE 10000 STATUS DEFAULT LABELITEM "Name_R" CLASS NAME 'Church' COLOR 0 0 0 SYMBOL 'square' SIZE 5 STYLE SYMBOL "square" SIZE 3 COLOR 255 255 255 END STYLE SYMBOL "square" SIZE 1 COLOR 0 0 0 END LABEL COLOR 0 0 102 TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS TRUE POSITION CR FORCE TRUE END END END I'm attaching a png of 4.4 (which looks like I want) and 4.8 which doesn't. Has something changed that requires a different style? Thanks, John Cole -------------- next part -------------- A non-text attachment was scrubbed... Name: ms44right.png Type: application/octet-stream Size: 9506 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ms48wrong.png Type: application/octet-stream Size: 8984 bytes Desc: not available URL: From karrarm at YAHOO.COM Wed Mar 15 12:09:13 2006 From: karrarm at YAHOO.COM (Ramesh Karra) Date: Wed, 15 Mar 2006 14:09:13 -0600 Subject: Mapserver caching and map generation Message-ID: Thanks for the quick reply stephen, So, the following entries in the map file are not used by the mapserver? WEB IMAGEPATH '/ms4w/tmp/ms_tmp/' IMAGEURL '/ms_tmp/' END Anyway, I will post the question to ka-map list. Thanks again Ramesh On Wed, 15 Mar 2006 14:13:17 -0500, Stephen Woodbridge wrote: >Ramesh, > >This has been discussed quite extensively of late. Mapserver does not do >caching at all. Every mapserver request will generate a new image. If >you want to do caching, you might look at ka-map which creates a tile >cache and serves the tiles if they exist or generates them if they do >not. It is an AJAX client that uses mapserver on the back-end and looks >like google. > >-Steve W. > >Ramesh Karra wrote: >> Hi, >> >> I have a related question - >> >> I have a map that has 4 tiles at the top level and more tiles as I zoom >> in. Let's say total tiles at all levels is 256. Once all these 256 tiles >> are generated, mapserver will just serve these from the cache and will not >> generated the same tiles again and again, Am I right? >> >> If I configure some kind of RAM based file system as the mapserver cache >> directory, then all requests will be served from the memory and the >> performance would be great. I would appreciate if some one could confirm >> that this is the way mapserver works. >> >> Thanks >> Ramesh >> From ed at TOPOZONE.COM Wed Mar 15 12:15:33 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 15 Mar 2006 15:15:33 -0500 Subject: Mapserver caching and map generation Message-ID: Ramesh - No, MapServer certainly uses those settings. But those are not for caching - those are for temporary files. In common modes (such as mode=browse) MapServer has to first create several images - perhaps a scale bar, overview map, legend image, etc. - and then return to the calling client an HTML page that contains tags referring to each of those images. The IMAGEPATH tells MapServer what local file path to use when creating these files, and IMAGEURL is the URL prefix it should use when generating URLs to access those images. It's not a cache. A cache implies that MapServer, in responding to a request, looks to see if it has already generated the image for that same request and still has that image file stored locally. It never does that. Each request generates new image files with unique filenames, even if the images themselves happen to be identical. It would be worthwhile to search the mailing list archives for "cache", as this has been discussed quite recently. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ramesh Karra Sent: Wednesday, March 15, 2006 3:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapserver caching and map generation Thanks for the quick reply stephen, So, the following entries in the map file are not used by the mapserver? WEB IMAGEPATH '/ms4w/tmp/ms_tmp/' IMAGEURL '/ms_tmp/' END Anyway, I will post the question to ka-map list. Thanks again Ramesh On Wed, 15 Mar 2006 14:13:17 -0500, Stephen Woodbridge wrote: >Ramesh, > >This has been discussed quite extensively of late. Mapserver does not >do caching at all. Every mapserver request will generate a new image. >If you want to do caching, you might look at ka-map which creates a >tile cache and serves the tiles if they exist or generates them if they >do not. It is an AJAX client that uses mapserver on the back-end and >looks like google. > >-Steve W. > >Ramesh Karra wrote: >> Hi, >> >> I have a related question - >> >> I have a map that has 4 tiles at the top level and more tiles as I >> zoom in. Let's say total tiles at all levels is 256. Once all these >> 256 tiles are generated, mapserver will just serve these from the >> cache and will not >> generated the same tiles again and again, Am I right? >> >> If I configure some kind of RAM based file system as the mapserver >> cache directory, then all requests will be served from the memory and >> the performance would be great. I would appreciate if some one could >> confirm that this is the way mapserver works. >> >> Thanks >> Ramesh >> From warmerdam at POBOX.COM Wed Mar 15 12:51:38 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 15 Mar 2006 15:51:38 -0500 Subject: Problem with reprojected images In-Reply-To: <4417C96E.3060009@geocontent.de> Message-ID: On 3/15/06, Dirk Jesko wrote: > Frank, > > thanks for the help. I will prepare a test case later and submit it. > Until a solution is found for this, we will switch back to version 4.6.1. Folks, Dirk provided an excellent bug report for this problem at: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1715 Based on that I was able to resolve the problem and get the changes into 4.9 and 4.8-branch so they should appear in MapServer 4.8.2. The problem was a roundoff problem that could make mapserver behave as if a fraction of the right or bottom pixels were missing. The problem existed in earlier versions too I think, but was mostly masked by an oversampling problem that was corrected for 4.8. Thanks Dirk! /me points everyone to another example of a top quality bug report getting a timely fix. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From naci0002 at UMN.EDU Wed Mar 15 12:59:17 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Wed, 15 Mar 2006 14:59:17 -0600 Subject: Melbourne Mapserver User Group (Australia) In-Reply-To: <4418401C.1000202@dmsolutions.ca> Message-ID: Also added a link on OSGeo's "Like Minded Regional Organizatios" wiki page: http://wiki.osgeo.org/index.php/Like_Minded_Regional_Organizations -Perry Jeff McKenna wrote: > thanks Shoaib, i've added a link to your group on the mapserver site > (http://mapserver.gis.umn.edu/community/MUGs/). > > jeff > > > Shoaib Burq wrote: >> Hi >> >> Just to let you all know we have started a mapsrever user group in >> melbourne, Australia with our 1st meeting coming up on the Friday 31st >> of March. >> >> Here's the current wiki site: >> http://nomad-labs.dyndns.org/melbmap/published >> >> cheers >> shoaib > > From john.cole at UAI.COM Wed Mar 15 13:20:36 2006 From: john.cole at UAI.COM (John Cole) Date: Wed, 15 Mar 2006 15:20:36 -0600 Subject: WMS projection error... Message-ID: I'm trying to use Gaia 2.0.4 from www.thecarbonproject.com to view a map map 4.8.1 mapserver from MS4W (using IIS and not Apache) and I'm getting the following error: msProcessProjection(): Projection library error. No such file or directory If I browse to the map using mode=browse it works fine (it did have a similar error through the browser, but a config fixed it and adding the PROJ_LIB path to my environment variables also fixed it). Hitting the same mapfile with mapserver 4.4 works fine. Is there another parameter to tell wms where the proj files are? Thanks, John Cole From warmerdam at POBOX.COM Wed Mar 15 13:36:45 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 15 Mar 2006 16:36:45 -0500 Subject: WMS projection error... In-Reply-To: <76758090F8686C47A44B6FF52514A1D307909679@hermes.uai.int> Message-ID: John Cole wrote: > I'm trying to use Gaia 2.0.4 from www.thecarbonproject.com to view a map map > 4.8.1 mapserver from MS4W (using IIS and not Apache) and I'm getting the > following error: > > msProcessProjection(): Projection library error. No such file or directory > > If I browse to the map using mode=browse it works fine (it did have a > similar error through the browser, but a config fixed it and adding the > PROJ_LIB path to my environment variables also fixed it). > > Hitting the same mapfile with mapserver 4.4 works fine. > > Is there another parameter to tell wms where the proj files are? John, One way of handling this is to have a CONFIG directive on your map object. I think this would look something like: MAP CONFIG "PROJ_LIB" "C:/PROJ/NAD" ... 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 OSGF, http://osgeo.org From john.cole at UAI.COM Wed Mar 15 13:46:05 2006 From: john.cole at UAI.COM (John Cole) Date: Wed, 15 Mar 2006 15:46:05 -0600 Subject: WMS projection error... Message-ID: Frank, I already had a line like: CONFIG PROJ_LIB "/ms4w/proj/nad" I changed it to CONFIG PROJ_LIB "C:/ms4w/proj/nad" And get the same results. Is there another config? The mapserver web pages seem to be working normally; otherwise. Thanks, John -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf Of Frank Warmerdam Sent: Wednesday, March 15, 2006 3:37 PM To: John Cole Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS projection error... John Cole wrote: > I'm trying to use Gaia 2.0.4 from www.thecarbonproject.com to view a map map > 4.8.1 mapserver from MS4W (using IIS and not Apache) and I'm getting the > following error: > > msProcessProjection(): Projection library error. No such file or directory > > If I browse to the map using mode=browse it works fine (it did have a > similar error through the browser, but a config fixed it and adding the > PROJ_LIB path to my environment variables also fixed it). > > Hitting the same mapfile with mapserver 4.4 works fine. > > Is there another parameter to tell wms where the proj files are? John, One way of handling this is to have a CONFIG directive on your map object. I think this would look something like: MAP CONFIG "PROJ_LIB" "C:/PROJ/NAD" ... 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 OSGF, http://osgeo.org From David.Fawcett at STATE.MN.US Wed Mar 15 13:51:13 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 15 Mar 2006 15:51:13 -0600 Subject: WMS projection error... Message-ID: Can you post the text of your layer definitions, you may be missing some metadata? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Cole Sent: Wednesday, March 15, 2006 3:46 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS projection error... Frank, I already had a line like: CONFIG PROJ_LIB "/ms4w/proj/nad" I changed it to CONFIG PROJ_LIB "C:/ms4w/proj/nad" And get the same results. Is there another config? The mapserver web pages seem to be working normally; otherwise. Thanks, John -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf Of Frank Warmerdam Sent: Wednesday, March 15, 2006 3:37 PM To: John Cole Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS projection error... John Cole wrote: > I'm trying to use Gaia 2.0.4 from www.thecarbonproject.com to view a > map map > 4.8.1 mapserver from MS4W (using IIS and not Apache) and I'm getting > the following error: > > msProcessProjection(): Projection library error. No such file or > directory > > If I browse to the map using mode=browse it works fine (it did have a > similar error through the browser, but a config fixed it and adding > the PROJ_LIB path to my environment variables also fixed it). > > Hitting the same mapfile with mapserver 4.4 works fine. > > Is there another parameter to tell wms where the proj files are? John, One way of handling this is to have a CONFIG directive on your map object. I think this would look something like: MAP CONFIG "PROJ_LIB" "C:/PROJ/NAD" ... 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 OSGF, http://osgeo.org From john.cole at UAI.COM Wed Mar 15 13:53:32 2006 From: john.cole at UAI.COM (John Cole) Date: Wed, 15 Mar 2006 15:53:32 -0600 Subject: WMS projection error... Message-ID: David, I'm attaching a map file with one layer, that has the same problem (I was trying to figure out if there was a bad layer in there). Thanks, John Cole -----Original Message----- From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Wednesday, March 15, 2006 3:51 PM To: John Cole; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] WMS projection error... Can you post the text of your layer definitions, you may be missing some metadata? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Cole Sent: Wednesday, March 15, 2006 3:46 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS projection error... Frank, I already had a line like: CONFIG PROJ_LIB "/ms4w/proj/nad" I changed it to CONFIG PROJ_LIB "C:/ms4w/proj/nad" And get the same results. Is there another config? The mapserver web pages seem to be working normally; otherwise. Thanks, John -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf Of Frank Warmerdam Sent: Wednesday, March 15, 2006 3:37 PM To: John Cole Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS projection error... John Cole wrote: > I'm trying to use Gaia 2.0.4 from www.thecarbonproject.com to view a > map map > 4.8.1 mapserver from MS4W (using IIS and not Apache) and I'm getting > the following error: > > msProcessProjection(): Projection library error. No such file or > directory > > If I browse to the map using mode=browse it works fine (it did have a > similar error through the browser, but a config fixed it and adding > the PROJ_LIB path to my environment variables also fixed it). > > Hitting the same mapfile with mapserver 4.4 works fine. > > Is there another parameter to tell wms where the proj files are? John, One way of handling this is to have a CONFIG directive on your map object. I think this would look something like: MAP CONFIG "PROJ_LIB" "C:/PROJ/NAD" ... 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 OSGF, http://osgeo.org -------------- next part -------------- A non-text attachment was scrubbed... Name: main2.map Type: application/octet-stream Size: 1773 bytes Desc: not available URL: From condit at SDSC.EDU Wed Mar 15 14:07:32 2006 From: condit at SDSC.EDU (Christopher Condit) Date: Wed, 15 Mar 2006 14:07:32 -0800 Subject: raster classing problem Message-ID: Hi all- I've having a problem classifying AAI/Grid raster images. It's probably a precision issue, but I'm not sure how to fix it. In this class, I've classed a very small range of data values into 30 stratifications - none of which are rendered, even though data falls into the range of one of the classes. I'm attaching a simple test case to illustrate my problem. 1) o2.txt is the AAI/Grid file 2) session_work.map is a mapfile that draws the raster with no classes. This works fine 3) session.map is a mapfile that has classes, but generates no output. Thanks! Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: precicion_testcase.zip Type: application/x-zip-compressed Size: 3814 bytes Desc: precicion_testcase.zip URL: From rstoyle at COMCAST.NET Wed Mar 15 14:15:09 2006 From: rstoyle at COMCAST.NET (Rick Stoyle) Date: Wed, 15 Mar 2006 16:15:09 -0600 Subject: Query a joined table Message-ID: Can you specify attributes of a joined table in the QSTRING CGI variable? If so, how do you do it. All my attempts result in: msDBFGetItemIndex(): DBASE file error. Item '' not found. Thanks From condit at SDSC.EDU Wed Mar 15 14:21:47 2006 From: condit at SDSC.EDU (Christopher Condit) Date: Wed, 15 Mar 2006 14:21:47 -0800 Subject: raster classing problem Message-ID: Oh - sorry - please disregard. I think I fixed the problem... was an error in my mapfile... Thanks, Chris ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Condit Sent: Wednesday, March 15, 2006 2:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] raster classing problem Hi all- I've having a problem classifying AAI/Grid raster images. It's probably a precision issue, but I'm not sure how to fix it. In this class, I've classed a very small range of data values into 30 stratifications - none of which are rendered, even though data falls into the range of one of the classes. I'm attaching a simple test case to illustrate my problem. 1) o2.txt is the AAI/Grid file 2) session_work.map is a mapfile that draws the raster with no classes. This works fine 3) session.map is a mapfile that has classes, but generates no output. Thanks! Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl-umn at SC.COM Wed Mar 15 15:42:39 2006 From: karl-umn at SC.COM (Karl Lehenbauer) Date: Wed, 15 Mar 2006 17:42:39 -0600 Subject: translate to tcl In-Reply-To: <20060310235826.36492.qmail@web52714.mail.yahoo.com> Message-ID: On Mar 10, 2006, at 5:58 PM, salah jubeh wrote: CAN ANY BODY HELP ME IN TRANSLATE THIS TO TCL map = mapscript.Map('rquery.map') set map [mapscript::mapObj -args "rquery.map"] layer = map.getLayer(0) set layer [$map getLayer 0] pnt = mapscript.Point() pnt.x = 440780 pnt.y = 3751260 set pnt [::mapscript::new_pointObj 440780 3751260] layer.queryByPoint( map, pnt, mapscript.MS_MULTIPLE, 180.0 ) $layer queryByPoint $map $pnt $::mapscript::MS_MULTIPLE 180.0 layer.open() for i in range(1000): result = layer.getResult( i ) if result is None: break $layer open for {set i 0} {$i < [$layer getNumResults]} {incr i} { set result [$layer getResult] if {$result == "NULL"} break print '(%d,%d)' % (result.shapeindex, result.tileindex) puts [format "%d,%d" [$result shapeindex] [$result tileindex]] s = layer.getShape( result.shapeindex, result.tileindex ) set s [$layer getShape [$result shapeindex] [$result tileindex] etc etc etc for i in range(layer.numitems): print '%s: %s' % (layer.getItem(i), s.getValue(i)) layer.close() Don't listen to people who tell you Tcl mapscript is all broken. Take a look at flightaware.com -- it's Tcl all the way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdc at SDC.COM.AU Wed Mar 15 17:43:33 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Thu, 16 Mar 2006 12:13:33 +1030 Subject: PERL Mapscript In-Reply-To: <20060315135128.175C34D276@webmail.medinaco.org> Message-ID: One step forward; one step back;-( I am now getting a non-blank output but it only contains those layers which do not use data from the postGIS database. Is there something extra that needs to be done in PERL/Mapscript to turn on database access? If so, where is it documented? Cheers and thanks, Stephen Davies On Thursday 16 March 2006 00:21, Lowell.Filak wrote: > Stephen Davies writes: > > Sorry; a mistake in my posting. > > > > The actual invocation of the script was: > > ./genpics q 1 jpg 139.5143351 -34.7459112 139.5278707 -34.7207 > > > > The problem remains. > > > > Cheers and thanks > > Stephen > > > > On Wednesday 15 March 2006 17:01, Manfred Meier wrote: > >> > ./genpics q 1 139.5143351 -34.7459112 139.5278707 -34.7207 > >> > >> Is there a parameter missing before "139.5143351"? minx is ARGV[3] > >> in your program. > >> > >> Hope that helps > >> Manfred > >> > >> Stephen Davies schrieb: > >> > I am having my first attempt at using PERL/Mapscript to save map > >> > images to files and am not getting too far. > >> > > >> > I have a map file that works perfectly when used with: > >> > > >> > http://server/cgi-bin/mapserv?map=/tmp/q.map&mapext=139.5143351+ > >> >-34 .7459112+139.5278707+-34.7207 > >> > > >> > I have the following PERL test bed: > >> > > >> > #! /usr/bin/perl > >> > # > >> > # args are UID (for mapfile), pic sequence #, image type > >> > (extension), map extent > >> > # > >> > use strict; > >> > use mapscript; > >> > my $uno = $ARGV[0]; > >> > my $seq = $ARGV[1]; > >> > my $ext = $ARGV[2]; > >> > my $minx = $ARGV[3]; > >> > my $miny = $ARGV[4]; > >> > my $maxx = $ARGV[5]; > >> > my $maxy = $ARGV[6]; > >> > > >> > # > >> > my $mapfile = "/tmp/$uno.map"; > >> > my $map = mapscript::mapObj->new($mapfile); > >> > $map->setExtent($minx,$miny,$maxx,$maxy); > >> > # > >> > my $img = $map->prepareImage(); > >> > $img = $map->draw(); > >> > my $fname = "/var/www/html/status_images/$uno_$seq.$ext"; > >> > print "$fname\n"; > >> > $img->save($fname); > >> > > >> > Called as: > >> > ./genpics q 1 139.5143351 -34.7459112 139.5278707 -34.7207 > >> > > >> > This generates a blank jpeg file (of some 2800 bytes). > >> > > >> > What am I missing? > >> > > >> > Cheers and thanks, > >> > Stephen Davies > > Stephen, > > You should not need prepareImage in this case. map->draw will return > the new imageObj. > If you have additional/continuing problems you may need to include > q.map. > > Lowell -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From jvanulde at NRCAN.GC.CA Wed Mar 15 18:47:27 2006 From: jvanulde at NRCAN.GC.CA (Van Ulden, Joost) Date: Wed, 15 Mar 2006 21:47:27 -0500 Subject: WFS GetFeature using FILTER & BBOX Message-ID: Hi all, For some reason my WFS doesn't want to filter features based on a given extent. I have tried the following: http://localhost/services/mapserv.exe?map=d9c83f0c-a133-4593-8940-2760be affd6b.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=provinc e_5_shp&FILTER=msGeometry-80.19456,56.959736%20-79.134,57.808184 AND http://localhost/services/mapserv.exe?map=d9c83f0c-a133-4593-8940-2760be affd6b.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=provinc e_5_shp&BBOX=-80.481795,61.09592,-78.493245,62.68676 In both instances MapServer is returning all features(i.e. ignoring the BBOX altogether). I am using v4.8rc2. Any suggestions would be helpful. Cheers, ============================================ Joost van Ulden Programmer/Analyst Natural Resources Canada / Ressources naturelles Canada Geological Survey of Canada / Commission geologique du Canada 101 - 605 Robson Street / 101 - 605 rue Robson Vancouver, B.C. / Vancouver (C.B.) V6B 5J3 Office/Bureau: 604.666.7525 fax/telecopieur: 604.666.1124 jvanulde at nrcan.gc.ca ============================================ From steve.lime at DNR.STATE.MN.US Wed Mar 15 22:15:55 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 16 Mar 2006 00:15:55 -0600 Subject: Symbolization tests - volunteers needed... Message-ID: Hi all: Just a short note asking if there are any users out there that might be interested in helping put together a series of test cases that cover the spectrum of symbolization options in MapServer. There are so many it's difficult to keep track of the impact of changes in the code. So, what I'd like to do is try and cover as many combinations as possible in a test suite, but need help to do that. Please contact me if interested. Thanks! Steve From nicolas at MAICH.GR Wed Mar 15 23:42:41 2006 From: nicolas at MAICH.GR (Nikos) Date: Thu, 16 Mar 2006 09:42:41 +0200 Subject: WMS projection error... In-Reply-To: <441888ED.3070601@pobox.com> Message-ID: Frank Warmerdam wrote: > John Cole wrote: > >> I'm trying to use Gaia 2.0.4 from www.thecarbonproject.com to view a >> map map >> 4.8.1 mapserver from MS4W (using IIS and not Apache) and I'm getting the >> following error: >> >> msProcessProjection(): Projection library error. No such file or >> directory >> >> If I browse to the map using mode=browse it works fine (it did have a >> similar error through the browser, but a config fixed it and adding the >> PROJ_LIB path to my environment variables also fixed it). >> >> Hitting the same mapfile with mapserver 4.4 works fine. >> >> Is there another parameter to tell wms where the proj files are? > > > John, > > One way of handling this is to have a CONFIG directive on your map > object. > I think this would look something like: > > MAP > CONFIG "PROJ_LIB" "C:/PROJ/NAD" > ... > > Best regards, Hi, You can also set an environment variable PROJ_LIB, and ms seems to figure it out..;-) regards, nikos From kenlord at GMAIL.COM Thu Mar 16 00:08:42 2006 From: kenlord at GMAIL.COM (Ken Lord) Date: Thu, 16 Mar 2006 00:08:42 -0800 Subject: Symbolization tests - volunteers needed... In-Reply-To: Message-ID: Hi Steve, There's one symbol combination that I know needs to be looked at. I've been meaning to drop a note to the list about this. Line features, or outlines of polygons: - symbolized using a cartoline symbol - with ANTIALIAS TRUE set within the Style object of the layer class being drawn with the cartoline symbol (not within the symbol definition, I haven't tried it that way). The documentation does not explicitly state not to use antialias in this situation. This symbolization combination has caused: - some of the infamous random CGI errors back to at least MapServer 4.6. - random failure of map images created in mode=map such as static maps generated using a mapserver URL in the SRC of an HTML IMG tag, this goes back to MapServer 4.4. - failure of HTML legend templates to be processed / added to your web page when the offending layers are turned on, back to MapServer 4.6. Some time ago I filed a bug on the third item, but it was only just recently with the release of mapserver 4.8.1 that I finally realized that this one mistake in my syntax was causing all the above problems. Symbolizing lines this way in older versions of mapserver actually worked producing nice results. The random nature of the failures just left me guessing after upgrading through 4.4 to 4.6 until 4.8.1 came out. MapServer 4.8.1 seems to be more strict (or sensitive) to this syntax mistake, and crashes giving the CGI error far more consistently, which finally allowed me to isolate the problem I was having with certain map layers. Removing my improper use of antialias ended all the above problems. I run MapServer as a Windows CGI, through IIS, on Windows XP Pro SP2 and Windows Server 2003. Thanks, Ken Lord Vancouver BC On 3/15/06, Steve Lime wrote: > Hi all: Just a short note asking if there are any users out there that might be interested in helping put together a series of test cases that cover the spectrum of symbolization options in MapServer. There are so many it's difficult to keep track of the impact of changes in the code. > > So, what I'd like to do is try and cover as many combinations as possible in a test suite, but need help to do that. Please contact me if interested. Thanks! > > Steve > From mizerkin at WIRZ-KOELN.DE Wed Mar 15 09:11:47 2006 From: mizerkin at WIRZ-KOELN.DE (Timkin) Date: Wed, 15 Mar 2006 09:11:47 -0800 Subject: How To access Object (Feature) ID in a template file? Message-ID: Hi! I'm trying to make it possible to access Object ID values of the features of a shape file in a template file placing it between square brackets (which is the only way for me to identify objects). It seems that it's not as simple as with the other feature fields. Apparently, ArcMap application, which I use to convert a database table into a shape file, renames the ID-field or applies a protection level to it, so the information cannot be retrieved. The ID-column name in the database is OBJECTID. If I try to import the shapefile into ArcMap after the conversion, this field has a new name (FID as it can be seen in the infobox of a feature), however, MapServer can't retrieve values using any of these names. As far as ArcMap is concerned, it doesn't seem to have any problems with accessing it, so I assume that the issue can be solved. Could enyone help me out with it? Thanks in advance! Dmitri -- View this message in context: http://www.nabble.com/How-To-access-Object-%28Feature%29-ID-in-a-template-file--t1285887.html#a3419740 Sent from the Mapserver - User forum at Nabble.com. From webloper at INFOGEO.CH Thu Mar 16 03:54:44 2006 From: webloper at INFOGEO.CH (R Baud) Date: Thu, 16 Mar 2006 12:54:44 +0100 Subject: Line Style Message-ID: Hi everybody, I've seen many many samples of line style, but not the one for what I'm trying to do: Here's a simple line: ---------------------------------------- Here's what I want to do: ?----------------------------------------? adding a vertical line at the beginning and the end of a line. Do someone has an idea?? Thanx, R?my -------------- next part -------------- An HTML attachment was scrubbed... URL: From flavio at TYDAC.CH Thu Mar 16 04:30:36 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 16 Mar 2006 13:30:36 +0100 Subject: Line Style In-Reply-To: <1142510084-07d08eec22d0755144d52be379804dee@infogeo.ch> Message-ID: Hi Remy you should be able to do it creating a symbol and then using it for the line. follow the explanation on umn.mapserver.ch under the menu "symbols / vector symbols". Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ 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: R Baud To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Thu, 16 Mar 2006 12:54:44 +0100 Subject: [UMN_MAPSERVER-USERS] Line Style > Hi everybody, > I've seen many many samples of line style, but not the one for what > I'm trying to do: > > Here's a simple line: > ---------------------------------------- > > Here's what I want to do: > ?----------------------------------------? > > adding a vertical line at the beginning and the end of a line. > > Do someone has an idea?? > > Thanx, R?my > > From fillymax at TISCALI.IT Thu Mar 16 04:43:40 2006 From: fillymax at TISCALI.IT (Alessandro MAZZELLA) Date: Thu, 16 Mar 2006 13:43:40 +0100 Subject: PHPMAPSCRITP Drawing a POINT !!! Message-ID: Hi everybody, is it possible to draw a point (or a cross !!) over the mouseclick point ? Any idea ? Tnkx A. Ciao, Alessandro MAZZELLA ---->> Cagliari ( Lat. -N- 39?13'23"24, Lon. -E- 09?6'25"46 ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.cole at UAI.COM Thu Mar 16 05:46:43 2006 From: john.cole at UAI.COM (John Cole) Date: Thu, 16 Mar 2006 07:46:43 -0600 Subject: Symbolization tests - volunteers needed ... Message-ID: Steve, Since I'm having a symbolization problem at the moment, I'll be glad to help. Did you see my email yesterday about the symbolization issue? Thanks, John -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime Sent: Thursday, March 16, 2006 12:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Symbolization tests - volunteers needed... Hi all: Just a short note asking if there are any users out there that might be interested in helping put together a series of test cases that cover the spectrum of symbolization options in MapServer. There are so many it's difficult to keep track of the impact of changes in the code. So, what I'd like to do is try and cover as many combinations as possible in a test suite, but need help to do that. Please contact me if interested. Thanks! Steve From john.cole at UAI.COM Thu Mar 16 06:04:42 2006 From: john.cole at UAI.COM (John Cole) Date: Thu, 16 Mar 2006 08:04:42 -0600 Subject: WMS projection error... Message-ID: Nikos, I had set a PROJ_LIB system environment variable already, but looking at it in the command prompt, I noticed it was set to the QGIS directory (not the ms4w directory I had set it). Sure enough, there was a local PROJ_LIB value that the QGIS install had set. I deleted that one but had to reboot (restarting IIS didn't work) to get mapserver to pick up the changes. Now it's working. Thanks, John COle -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Nikos Sent: Thursday, March 16, 2006 1:43 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS projection error... Frank Warmerdam wrote: > John Cole wrote: > >> I'm trying to use Gaia 2.0.4 from www.thecarbonproject.com to view a >> map map >> 4.8.1 mapserver from MS4W (using IIS and not Apache) and I'm getting the >> following error: >> >> msProcessProjection(): Projection library error. No such file or >> directory >> >> If I browse to the map using mode=browse it works fine (it did have a >> similar error through the browser, but a config fixed it and adding the >> PROJ_LIB path to my environment variables also fixed it). >> >> Hitting the same mapfile with mapserver 4.4 works fine. >> >> Is there another parameter to tell wms where the proj files are? > > > John, > > One way of handling this is to have a CONFIG directive on your map > object. > I think this would look something like: > > MAP > CONFIG "PROJ_LIB" "C:/PROJ/NAD" > ... > > Best regards, Hi, You can also set an environment variable PROJ_LIB, and ms seems to figure it out..;-) regards, nikos From warmerdam at POBOX.COM Thu Mar 16 06:22:42 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 16 Mar 2006 09:22:42 -0500 Subject: WMS projection error... In-Reply-To: <76758090F8686C47A44B6FF52514A1D30790967E@hermes.uai.int> Message-ID: John Cole wrote: > Nikos, > I had set a PROJ_LIB system environment variable already, but looking at > it in the command prompt, I noticed it was set to the QGIS directory (not > the ms4w directory I had set it). Sure enough, there was a local PROJ_LIB > value that the QGIS install had set. I deleted that one but had to reboot > (restarting IIS didn't work) to get mapserver to pick up the changes. Now > it's working. /me curses packagse that don't respect boundaries! This is why FWTools takes this odd approach of installing all it's stuff in one sub-tree, changing no external environment, and running in a self contained fashion. Now, if all windows packages did the same we would have no more DLL hell! 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 OSGF, http://osgeo.org From assefa at DMSOLUTIONS.CA Thu Mar 16 06:25:02 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 16 Mar 2006 09:25:02 -0500 Subject: WFS GetFeature using FILTER & BBOX In-Reply-To: Message-ID: Joost, I have tested your filter with local data/coordinates and I do get correct values. I could test it locally if you provide a simple map/shape/query repoducing the problem. Later, Van Ulden, Joost wrote: > Hi all, > > For some reason my WFS doesn't want to filter features based on a given > extent. I have tried the following: > > http://localhost/services/mapserv.exe?map=d9c83f0c-a133-4593-8940-2760be > affd6b.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=provinc > e_5_shp&FILTER=msGeometry :Box>-80.19456,56.959736%20-79.134,57.808184 inates> > > AND > > http://localhost/services/mapserv.exe?map=d9c83f0c-a133-4593-8940-2760be > affd6b.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=provinc > e_5_shp&BBOX=-80.481795,61.09592,-78.493245,62.68676 > > In both instances MapServer is returning all features(i.e. ignoring the > BBOX altogether). I am using v4.8rc2. Any suggestions would be > helpful. > > Cheers, > > ============================================ > Joost van Ulden > Programmer/Analyst > Natural Resources Canada / Ressources naturelles Canada Geological > Survey of Canada / Commission geologique du Canada > 101 - 605 Robson Street / 101 - 605 rue Robson Vancouver, B.C. / > Vancouver (C.B.) V6B 5J3 > Office/Bureau: 604.666.7525 > fax/telecopieur: 604.666.1124 > jvanulde at nrcan.gc.ca > ============================================ > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From john.cole at UAI.COM Thu Mar 16 06:26:43 2006 From: john.cole at UAI.COM (John Cole) Date: Thu, 16 Mar 2006 08:26:43 -0600 Subject: WMS projection error... Message-ID: I think this would be a good note to put on the mapserver faq. Since I found it by accident. I had set everything properly though the UI and never saw the QGIS local entry. So it's possible to do everything right and still have issues :-) Easy fix though, if you can find it. John -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf Of Frank Warmerdam Sent: Thursday, March 16, 2006 8:23 AM To: John Cole Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS projection error... John Cole wrote: > Nikos, > I had set a PROJ_LIB system environment variable already, but looking at > it in the command prompt, I noticed it was set to the QGIS directory (not > the ms4w directory I had set it). Sure enough, there was a local PROJ_LIB > value that the QGIS install had set. I deleted that one but had to reboot > (restarting IIS didn't work) to get mapserver to pick up the changes. Now > it's working. /me curses packagse that don't respect boundaries! This is why FWTools takes this odd approach of installing all it's stuff in one sub-tree, changing no external environment, and running in a self contained fashion. Now, if all windows packages did the same we would have no more DLL hell! 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 OSGF, http://osgeo.org From robert.albrecht at TKK.FI Thu Mar 16 06:46:58 2006 From: robert.albrecht at TKK.FI (Robert Albrecht) Date: Thu, 16 Mar 2006 16:46:58 +0200 Subject: PHPMAPSCRITP Drawing a POINT !!! In-Reply-To: <007c01c648f7$41044a40$c801a8c0@mirtino> Message-ID: Alessandro MAZZELLA wrote: > Hi everybody, > > is it possible to draw a point (or a cross !!) over the mouseclick > point ? Any idea ? > I use the following function to get the coordinates of a click on the map: public function pixelsToCoordinates($x, $y, $width, $height, $extent) { $dx = $x / $width; $dy = 1 - $y / $height; $x_georef = $extent->minx + ($extent->maxx - $extent->minx) * $dx; $y_georef = $extent->miny + ($extent->maxy - $extent->miny) * $dy; $point = ms_newPointObj(); $point->setXY($x_georef, $y_georef); return $point; } $x, $y is the point clicked on the image map, in pixels, from the top left corner. $width, $height is the size of the image map. $extent is the georeferenced extents of the image map. To draw points you need to create a point layer: $point_layer = ms_newLayerObj($mapObj); $point_layer->set("status", MS_ON); $point_layer->set("type", MS_LAYER_POINT); $point_layer->set("transparency", MS_GD_ALPHA); $class = ms_newClassObj($point_layer); $class->set("status", MS_ON); $style = ms_newStyleObj($class); $style->set("symbolname", "/path/of/the/symbol/you/want/to/draw.gif"); and add the point: $point = ms_newPointObj(); $point->setXY($x, $y); $line = ms_newLineObj(); $line->add($point); $shape = ms_newShapeObj(MS_SHAPE_POINT); $shape->set("classindex", 0); $shape->add($line); $point_layer->addFeature($shape); It's a bit complicated, but I don't know any easier way to do it. Regards, Robert Albrecht From luca76 at GMAIL.COM Thu Mar 16 06:53:14 2006 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Thu, 16 Mar 2006 15:53:14 +0100 Subject: [OT] How to resample and produce overviews with TIFs with GDAL? Message-ID: Hi, I'm trying with latest CVS of GDAL to produce TIFs with overviews and resampling to 8 bit. But with no success. How can I do that? -- "Work only as many hours as you can be productive and only as many hours as you can sustain." - Kent Beck, in "Extreme Programming Explained" http://www.trapanator.com/blog From ale.pas at TISCALI.IT Thu Mar 16 07:20:02 2006 From: ale.pas at TISCALI.IT (Alessandro Pasotti) Date: Thu, 16 Mar 2006 16:20:02 +0100 Subject: undefined reference to `CPLSearchXMLNode' - compiling mapserver-4.8.1 Message-ID: Hello, it's not the first time I compile this release, but on an "old" mandrake linux 10.0 it fails with this message: gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -DUSE_FASTCGI -DUSE_POSTGIS -DUSE_MYGIS -DUSE_ZLIB -I/usr/include -I/usr/lib -I/usr/local/include -I/usr/local/pgsql/include -I/usr/include/mysql -mcpu=i486 -fno-strength-reduce -I/usr/include shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lpdf -ljpeg -lfreetype -lpng -lz -L/usr/lib -lproj -ljpeg -L/usr/local/lib -lgdal -L/usr/local/pgsql/lib -lpq -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv -lmysqlclient -lc -L/usr/lib -lfcgi -lz -lm -lstdc++ -o shp2img ./libmap.a(mapogcfilter.o)(.text+0x25fe): In function `FLTInsertElementInNode': : undefined reference to `CPLSearchXMLNode' ----------------------------------------------- $ /usr/local/bin/gdal-config --version 1.2.6b3 ----------------------------------------------- /configure --prefix=/usr --with-proj=/usr/lib --includedir=/usr/include --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-php=/usr/local/include/php --with-mygis=yes --with-postgis --with-fastcgi=/usr Any hint? -- Alessandro Pasotti ICQ# 245871392 Linux User #167502 From ninliu at INDIANA.EDU Thu Mar 16 08:09:31 2006 From: ninliu at INDIANA.EDU (Ning Liu) Date: Thu, 16 Mar 2006 11:09:31 -0500 Subject: change projection through CGI parameters Message-ID: Hi Matt, Thank you very much. I am using mapserver as a CGI. Chaing projection works when there is only one parameter about projection. For example, &map_projection="proj=latlong" works, but when change map projection as following: PROJECTION "proj=lcc" "lat_0=0" "lat_1=20" "lat_2=60" "lon_0=-96" "k_0=1" END I don't know how to put all of the parameters in the URL. I tried &map_projection="proj=lcc lat_0=0 lat_1=20.....". -- Ning ----- Original Message ----- From: "Matthew Perry" To: "Ning Liu" Cc: Sent: Friday, February 10, 2006 11:34 PM Subject: Re: [UMN_MAPSERVER-USERS] change projection through CGI parameters Ning, Are you using mapserver as a CGI or via mapscript? Using mapscript might be more flexible for this kind of task. If you're using the CGI, it's possible to change mapfile parameters via URL: http://mapserver.gis.umn.edu/docs/reference/cgi/controls and scroll down to "Changing map file parameters via a form or a URL" I haven't tried this out so you may need to adjust it but you could try &map_projection="proj=latlong" . Also, keep in mind that you'll have to adjust the extents of the image since that will change with the projection. matt On 2/10/06, Ning Liu wrote: > I am trying to build a mapserver application in which ther users can > specify > the parameters of the projection and change the map projection. > Anybody know is it possible with mapserver? > Thanks a lot. > > -- Ning > Computer Science Department > Indiana University > -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From cavallini at FAUNALIA.IT Thu Mar 16 08:45:14 2006 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Thu, 16 Mar 2006 17:45:14 +0100 Subject: for Italian freegissers Message-ID: [sorry for crossposting, and for bothering non-Italian freegis users] Hi all. Most of you is aware of this, but I realized not everybody. Since last December, the Italian freeGIS community has a home: http://www.gfoss.it/ and an associated mailing list: http://www.faunalia.com/cgi-bin/mailman/listinfo/gfoss I would invite all Italian-speaking people to join us - several interesting projects are underway! All the best. -- Paolo Cavallini email+jabber: cavallini at faunalia.it www.faunalia.it Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953 From warmerdam at POBOX.COM Thu Mar 16 08:52:37 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 16 Mar 2006 11:52:37 -0500 Subject: undefined reference to `CPLSearchXMLNode' - compiling mapserver-4.8.1 In-Reply-To: <200603161620.02654.ale.pas@tiscali.it> Message-ID: Alessandro Pasotti wrote: > Hello, > > it's not the first time I compile this release, but on an "old" mandrake linux > 10.0 it fails with this message: > > gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DNEED_STRLCAT > -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_GD_GIF -DUSE_GD_PNG > -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR > -DGD_HAS_GETBITMAPFONTS -DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_ICONV > -DUSE_FASTCGI -DUSE_POSTGIS -DUSE_MYGIS -DUSE_ZLIB -I/usr/include > -I/usr/lib -I/usr/local/include -I/usr/local/pgsql/include > -I/usr/include/mysql -mcpu=i486 -fno-strength-reduce -I/usr/include > shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lpdf > -ljpeg -lfreetype -lpng -lz -L/usr/lib -lproj -ljpeg -L/usr/local/lib > -lgdal -L/usr/local/pgsql/lib -lpq -L/usr/lib/mysql -lmysqlclient -lz > -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files > -lnss_dns -lresolv -lmysqlclient -lc -L/usr/lib -lfcgi -lz -lm -lstdc++ > -o shp2img > ./libmap.a(mapogcfilter.o)(.text+0x25fe): In function > `FLTInsertElementInNode': > : undefined reference to `CPLSearchXMLNode' > > ----------------------------------------------- > $ /usr/local/bin/gdal-config --version > 1.2.6b3 > > ----------------------------------------------- > /configure --prefix=/usr --with-proj=/usr/lib --includedir=/usr/include > --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config > --with-php=/usr/local/include/php --with-mygis=yes --with-postgis > --with-fastcgi=/usr > > > Any hint? Alessandro, I'm afraid you will need to upgrade to GDAL 1.3.1, or hack this part to work a bit differently. Sometimes dependencies on new GDAL features sneak into 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 OSGF, http://osgeo.org From dbadke at UVIC.CA Thu Mar 16 09:00:51 2006 From: dbadke at UVIC.CA (David Badke) Date: Thu, 16 Mar 2006 09:00:51 -0800 Subject: PHP MapScript 4.8.1 and PHP 5.1.2 Message-ID: We were having a problem running PHP MapScript 4.8.1 under PHP 5.1.2 (Red Hat Linux). Using TrueType fonts caused segmentation faults; bitmap fonts did not. The server guys have now changed things so that our application runs under PHP 4.4.2, and "magically" the problem went away. I am not entirely convinced that it was a PHP 5 problem. My question: Can anyone definitively say that PHP MapScript 4.8.1 does or does not work under PHP 5.1.2, particularly with regard to the use of TrueType fonts? The last message I can find on this topic is a year old, with no clear conclusion. David -- David Badke Humanities Computing and Media Center University of Victoria, BC, Canada From plazzotta at TISCALINET.IT Thu Mar 16 09:44:23 2006 From: plazzotta at TISCALINET.IT (Giorgio Plazzotta) Date: Thu, 16 Mar 2006 18:44:23 +0100 Subject: Double labels in Mapserver 4.8? Message-ID: MAPSERVER-USERS Digest - 14 Mar 2006 to 15 Mar 2006 (#2006-75)I am sorry to insist on my request but I am still facing this problem of the double labels with the new Wamp + Cartoweb 3.2 environment and I need your help at least to see if you can replicate the problem. After having experienced the problem in one computer I tried with another having a different operating system (win xp instead of win 2000) and the problem is still there. The new environment include windows, apache 2, php 5 mapserver 4.8 (php_mapscript), cartoweb 3.2 while the previous environment where the problem didn't show was based on Wamp5 1.4.5 (apache 1.3.x, php 5) + Cartoweb 3.1 (mapserver 4.6). Would u please be so gentle to test the following: on a winxp system or windows 2000 pro - install wampserver 1.6.1 (wamp5_1.6.1.exe) - install cartoweb 3.2 (cartoweb-setup-3.2.0b.exe) and (cartoweb-demo-setup-3.2.0b.exe) - restart the wampserver - open the demoCW3 project mapfile that should be located at C:\wamp\www\cartoweb3\projects\demoCW3\server_conf\demoCW3\demoCW3.map - go to line 456 of the Mapfile and remove or comment the line with:BACKGROUNDCOLOR 245 235 235 (label section of the AGGLO layer) - start the Cartoweb application ex: http://localhost select cartoweb3 - start the Cartoweb3 Demo application in the main panel - in the legend click on the go to scale Icon of the TOWNS layer in the Human activities block - activate the TOWNS layer - move to Wien (Vienna) or browse the map until u find any town with a name that include a blank - check if u just see a normal label reporting Wien (Vienna) in 2 lines or if you see a doubles label reporting: WIEN WIEN (VIENNA) (VIENNA) - pls tell me the result of your test - in case you experience the same problems tell me if u have an idea of which element cause the double labels, considering that with winamp 1.4.5 and Cartoweb 3.1 this problem doesn't happen. Thanx In advance Giorgio -------------- next part -------------- An HTML attachment was scrubbed... URL: From ale.pas at TISCALI.IT Thu Mar 16 09:46:57 2006 From: ale.pas at TISCALI.IT (Alessandro Pasotti) Date: Thu, 16 Mar 2006 18:46:57 +0100 Subject: undefined reference to `CPLSearchXMLNode' - compiling mapserver-4.8.1 In-Reply-To: <441997D5.4010308@pobox.com> Message-ID: Il 17:52, gioved? 16 marzo 2006, Frank Warmerdam ha scritto: > Alessandro Pasotti wrote: > > ./libmap.a(mapogcfilter.o)(.text+0x25fe): In function > > > > `FLTInsertElementInNode': > > : undefined reference to `CPLSearchXMLNode' > > I'm afraid you will need to upgrade to GDAL 1.3.1, or hack this part to I upgraded as you suggested and it worked, thank you. -- Alessandro Pasotti ICQ# 245871392 Linux User #167502 From woodbri at SWOODBRIDGE.COM Thu Mar 16 10:35:02 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 16 Mar 2006 13:35:02 -0500 Subject: PHP MapScript 4.8.1 and PHP 5.1.2 In-Reply-To: <441999C3.2060104@uvic.ca> Message-ID: David, While I have not run PHP 5, it is likely that TrueType fonts in PHP 4 and Mapserver are coming from the system libraries and the PHP 5 is using TrueType or GD libraries that might be bundled with the PHP 5 distribution. PHP has historically come with a bundled version of GD that is used to build it by default and it is important that you you build it and mapserver using the SAME GD, TrueType, and Regex libraries or you WILL get segmentation faults. -Steve W. David Badke wrote: > We were having a problem running PHP MapScript 4.8.1 under PHP 5.1.2 > (Red Hat Linux). Using TrueType fonts caused segmentation faults; bitmap > fonts did not. The server guys have now changed things so that our > application runs under PHP 4.4.2, and "magically" the problem went away. > I am not entirely convinced that it was a PHP 5 problem. > > My question: Can anyone definitively say that PHP MapScript 4.8.1 does > or does not work under PHP 5.1.2, particularly with regard to the use of > TrueType fonts? The last message I can find on this topic is a year old, > with no clear conclusion. > > David > From Jeremy.Sears at CCRS.NRCAN.GC.CA Thu Mar 16 10:50:46 2006 From: Jeremy.Sears at CCRS.NRCAN.GC.CA (Sears, Jeremy) Date: Thu, 16 Mar 2006 13:50:46 -0500 Subject: WAN vs LAN access problems Message-ID: Hi All, IM having a problem with my mapserver installation .... I have mapserver/chameleon setup with ms4w on winserver2003. When I view my application from our LAN (either localhost or another computer on the LAN) the application works fine. However, when I attempt to view the application from the WAN, chameleon's elements work but neither the main map image nor the keymap image work. I have the entire ms4w package installed in in a location off the root like: /adirectory/anotherdirectory/ms4w Does anyone have any thoughts as to why the app works fine when accessed from LAN but breaks when accesing through WAN? Thanks Jeremy From bartvde at XS4ALL.NL Thu Mar 16 10:53:29 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 16 Mar 2006 19:53:29 +0100 Subject: WAN vs LAN access problems In-Reply-To: Message-ID: Does your machine have an internal and external IP address? If you view the HTML source of your application, what URL do the images reference? Best regards, Bart Sears, Jeremy wrote: >Hi All, >IM having a problem with my mapserver installation .... >I have mapserver/chameleon setup with ms4w on winserver2003. > >When I view my application from our LAN (either localhost or another >computer on the LAN) the application works fine. >However, when I attempt to view the application from the WAN, chameleon's >elements work but neither the main map image nor the keymap image work. > >I have the entire ms4w package installed in in a location off the root like: > >/adirectory/anotherdirectory/ms4w > > >Does anyone have any thoughts as to why the app works fine when accessed >from LAN but breaks when accesing through WAN? > >Thanks >Jeremy > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From Jeremy.Sears at CCRS.NRCAN.GC.CA Thu Mar 16 11:30:17 2006 From: Jeremy.Sears at CCRS.NRCAN.GC.CA (Sears, Jeremy) Date: Thu, 16 Mar 2006 14:30:17 -0500 Subject: FW: [UMN_MAPSERVER-USERS] WAN vs LAN access problems Message-ID: fowarding to the list ... -----Original Message----- From: Sears, Jeremy Sent: March 16, 2006 2:20 PM To: 'Bart van den Eijnden (OSGIS)' Subject: RE: [UMN_MAPSERVER-USERS] WAN vs LAN access problems Hi Bart, Thanks for the response. I think that the server does have an internal and external address. The mapserver installed on my serverer is reachable to WAN only thru a proxy. As I mentioned, the mapserver is installed off of the root in a directory simmilar to: /adirectory/anotherdirectory/ms4w. When a request from WAN is made to the mapserver, a proxyserver directs it to /adirectory/anotherdirectory, which is where I have mapserver/apache/chameleon installed. >>If you view the HTML source of your application, what URL do the images >>reference? When I attempt to view the page from WAN The images are referenced as: https://myhttp.address.ca/chameleon//skins/default/images/a_pixel.gif When I view the page from our LAN The images are referenced as: http://myLAN.address/chameleon//common//wrapper/drawmap.php?map_session_mode =1&run_query=0&sid=4419b8d118a98&dummy=0.39865000+1142536402&UniqId=11425363 97803538 Both of the above noted URLs are what is returned when I query the properties of the main map image via a right-mouse-click Any thoughts? Thanks Jeremy -----Original Message----- From: Bart van den Eijnden (OSGIS) [mailto:bartvde at xs4all.nl] Sent: March 16, 2006 1:53 PM To: Sears, Jeremy Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WAN vs LAN access problems Does your machine have an internal and external IP address? If you view the HTML source of your application, what URL do the images reference? Best regards, Bart Sears, Jeremy wrote: >Hi All, >IM having a problem with my mapserver installation .... >I have mapserver/chameleon setup with ms4w on winserver2003. > >When I view my application from our LAN (either localhost or another >computer on the LAN) the application works fine. >However, when I attempt to view the application from the WAN, chameleon's >elements work but neither the main map image nor the keymap image work. > >I have the entire ms4w package installed in in a location off the root like: > >/adirectory/anotherdirectory/ms4w > > >Does anyone have any thoughts as to why the app works fine when accessed >from LAN but breaks when accesing through WAN? > >Thanks >Jeremy > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From Jeremy.Sears at CCRS.NRCAN.GC.CA Thu Mar 16 12:08:57 2006 From: Jeremy.Sears at CCRS.NRCAN.GC.CA (Sears, Jeremy) Date: Thu, 16 Mar 2006 15:08:57 -0500 Subject: WAN vs LAN access problems Message-ID: whoa, Im not sure what just happened there, It seems my original post and Bart's response got bounced twice ... To add to my response to Barts reply,.. I believe that the proxy server that directs requests to the internal server is IIS. So the situation goes somthing like: http request for a map ----> IIS proxy ------> Apache/Mapserver then back out to the web like: Apache/mapserver ---------->IIS proxy -------> web browser Could there be potential issues with such a senario? Thanks Jeremy -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Bart van den Eijnden (OSGIS) Sent: March 16, 2006 1:53 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WAN vs LAN access problems Does your machine have an internal and external IP address? If you view the HTML source of your application, what URL do the images reference? Best regards, Bart Sears, Jeremy wrote: >Hi All, >IM having a problem with my mapserver installation .... >I have mapserver/chameleon setup with ms4w on winserver2003. > >When I view my application from our LAN (either localhost or another >computer on the LAN) the application works fine. >However, when I attempt to view the application from the WAN, chameleon's >elements work but neither the main map image nor the keymap image work. > >I have the entire ms4w package installed in in a location off the root like: > >/adirectory/anotherdirectory/ms4w > > >Does anyone have any thoughts as to why the app works fine when accessed >from LAN but breaks when accesing through WAN? > >Thanks >Jeremy > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From viperp at GMAIL.COM Thu Mar 16 13:00:59 2006 From: viperp at GMAIL.COM (Bruno) Date: Thu, 16 Mar 2006 18:00:59 -0300 Subject: PHP and JAVA, somebody already used? Message-ID: It would like to make an application using java(struts) and mapserver. somebody already made? Somebody can I help you? Thank You!!! -------------- next part -------------- An HTML attachment was scrubbed... URL: From iansgis at GMAIL.COM Thu Mar 16 16:25:06 2006 From: iansgis at GMAIL.COM (Me My) Date: Thu, 16 Mar 2006 16:25:06 -0800 Subject: Coloring elevations below sea level Message-ID: Hello, For rasters that have both bathymetry AND elevations below sea level inland (eg. Death Valley), what is an efficient way of coloring them and preventing these inland areas from showing up as water? I'm currently using a separate layer for these inland negative values with different coloration to mask over these problematic areas. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at WEBMAPIT.COM.BR Thu Mar 16 17:30:37 2006 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Thu, 16 Mar 2006 22:30:37 -0300 Subject: MapServer documentation status Message-ID: Hi folks, Since MapServer 4.6.x release I think we all have seen many new fixes and updates being deployed from a month to other. Now, I just read some mails at this list about 4.8.2 release and would like to ask: are all MapServer documentation "in-sync" with latest MapServer releases? Or is there any portion of these new feature that is now yet documented? ( even on wiki-pages ). best regards. Eduardo Patto Kanegae http://www.webmapit.com.br From sdc at SDC.COM.AU Thu Mar 16 22:47:39 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Fri, 17 Mar 2006 17:17:39 +1030 Subject: PERL/Mapscript postGIS examples? Message-ID: Could somebody please send me or point me at an example of a PERL/Mapscript script that displays layers populated from a postGIS database and/or raster layers? The following PERL/Mapscript and map file generates an image containing only the copyright layer. Exactly the same map file with mapserver invoked as CGI generates all layers. (In both cases the extent is provided as args. eg ./genpics q 1 jpg 139.5143351 -34.7459112 139.5278707 -34.7207064) Cheers and thanks, Stephen Davies #! /usr/bin/perl # # args are UID (for mapfile), pic sequence #, image type (extension), extent # use strict; #use CGI; use mapscript; my $uno = $ARGV[0]; my $seq = $ARGV[1]; my $ext = $ARGV[2]; my $minx = $ARGV[3]; my $miny = $ARGV[4]; my $maxx = $ARGV[5]; my $maxy = $ARGV[6]; # # if sequence = 1, create/empty directory (ignoring errors) # if ($seq == 1){ mkdir("/var/www/html/status_images/$uno",0777); unlink ; } # my $mapfile = "/tmp/$uno.map"; my $map = mapscript::mapObj->new($mapfile); my $i=$map->setExtent($minx,$miny,$maxx,$maxy); # #my $img = $map->prepareImage(); my $img = $map->draw(); my $fname = "/var/www/html/status_images/$uno/$seq.$ext"; $img->save($fname); =================================================== MAP NAME perltest PROJECTION "proj=eqc" "lon_0=139.521e" END SIZE 600 600 FONTSET "/var/www/html/benparts/fonts.list" SYMBOLSET "/var/www/html/benparts/symbols" UNITS METERS IMAGETYPE jpeg OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION "QUALITY=75" END IMAGECOLOR 255 255 255 WEB template /var/www/html/benparts/templates/test1.html imagepath "/var/www/html/tmp/" imageurl "/tmp/" END LAYER TYPE RASTER NAME "bkgrnd" STATUS DEFAULT PROJECTION "init=epsg:28354" END DATA "/var/www/html/benparts/rasters/walker.ecw" # OFFSITE 0 0 0 PROCESSING "DITHER=YES" END LAYER CONNECTIONTYPE postgis NAME "probe" DATA "geom from probe" CONNECTION "user=scldad dbname=benparts" STATUS DEFAULT TYPE POINT # FILTER "id in (0)" PROJECTION "init=epsg:4284" END MAXSCALE 5000000 LABELITEM "location" CLASS NAME "Probe (Right Click to select)" STYLE COLOR 0 214 0 SYMBOL 'circle' SIZE 7 END LABEL MINDISTANCE 15 POSITION CR SIZE SMALL COLOR 0 0 0 FORCE TRUE END END END LAYER NAME 'copyright' TYPE ANNOTATION STATUS DEFAULT TRANSFORM FALSE # coordinates are in pixels FEATURE POINTS 10 595 END END CLASS LABEL TYPE TRUETYPE FONT arial SIZE 8 COLOR 255 0 0 POSITION CR END TEXT 'Photography supplied by MAPLAND, Environment Information, Dept Environment & Heritage' END END END -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From mpetach at NEWFIELDS.COM Thu Mar 16 22:52:04 2006 From: mpetach at NEWFIELDS.COM (Marty Petach) Date: Thu, 16 Mar 2006 23:52:04 -0700 Subject: MAPSERVER-USERS Digest - 15 Mar 2006 to 16 Mar 2006 (#2006-76) Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From mizerkin at WIRZ-KOELN.DE Fri Mar 17 00:56:31 2006 From: mizerkin at WIRZ-KOELN.DE (Dmitri Mizerkin) Date: Fri, 17 Mar 2006 00:56:31 -0800 Subject: How To access Object (Feature) ID in a template file? In-Reply-To: <3419740.post@talk.nabble.com> Message-ID: Hi again! It was actually nothing but a conversion tool bug. To avoid this it was enough to add layer to ArcMap and export it into a shape file instead of converting it directly from the database. The issue is solved. -- View this message in context: http://www.nabble.com/How-To-access-Object-%28Feature%29-ID-in-a-template-file--t1285887.html#a3452149 Sent from the Mapserver - User forum at Nabble.com. From mizerkin at WIRZ-KOELN.DE Fri Mar 17 02:35:41 2006 From: mizerkin at WIRZ-KOELN.DE (Dmitri Mizerkin) Date: Fri, 17 Mar 2006 02:35:41 -0800 Subject: Setting up a value for a classitem expression in address bar - possible? Message-ID: Hello all! I'm wondering if it is possible to set up a value for a classitem expression in the address bar, not directly in the map-file. That means that I want to have something like this in the map-file: LAYER NAME Sel_Street DATA Streets STATUS OFF TYPE LINE CLASSITEM "OBJECTID" CLASS NAME 'Selected street' #EXPRESSION '28' #This is the value, which should be set dynamically STYLE COLOR 255 0 0 END END END and activate the layer setting up a value for the expression-part in the reference to the active page (for example, like this: http://localhost/mapserv.exe?map=/ms4w/apps/my/streets.map&mode=browse&layer=Sel_Street&expr=28). Can someone help me out? Thanks, Dmitri -- View this message in context: http://www.nabble.com/Setting-up-a-value-for-a-classitem-expression-in-address-bar---possible--t1297050.html#a3453450 Sent from the Mapserver - User forum at Nabble.com. From b.vdeijnden at AGI.RWS.MINVENW.NL Fri Mar 17 02:33:47 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Fri, 17 Mar 2006 11:33:47 +0100 Subject: Setting up a value for a classitem expr ession in address bar - possible? Message-ID: Read about CGI variable subsitution: http://mapserver.gis.umn.edu/docs/howto/runsub/view Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Dmitri Mizerkin Verzonden: vrijdag 17 maart 2006 11:36 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Setting up a value for a classitem expression in address bar - possible? Hello all! I'm wondering if it is possible to set up a value for a classitem expression in the address bar, not directly in the map-file. That means that I want to have something like this in the map-file: LAYER NAME Sel_Street DATA Streets STATUS OFF TYPE LINE CLASSITEM "OBJECTID" CLASS NAME 'Selected street' #EXPRESSION '28' #This is the value, which should be set dynamically STYLE COLOR 255 0 0 END END END and activate the layer setting up a value for the expression-part in the reference to the active page (for example, like this: http://localhost/mapserv.exe?map=/ms4w/apps/my/streets.map&mode=browse&layer =Sel_Street&expr=28). Can someone help me out? Thanks, Dmitri -- View this message in context: http://www.nabble.com/Setting-up-a-value-for-a-classitem-expression-in-addre ss-bar---possible--t1297050.html#a3453450 Sent from the Mapserver - User forum at Nabble.com. Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From mizerkin at WIRZ-KOELN.DE Fri Mar 17 03:04:47 2006 From: mizerkin at WIRZ-KOELN.DE (Dmitri Mizerkin) Date: Fri, 17 Mar 2006 12:04:47 +0100 Subject: AW: [UMN_MAPSERVER-USERS] Setting up a value for a classitem expression in address bar - possible? In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B24056F2764@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: Thanks, Eijden! That really helped me out! Cheers, Dmitri ________________________________ Dmitri Mizerkin Entwicklung WIRZ Informationssysteme GmbH Kornblumenweg 1 51147 K?ln Fon.: +49 (2203) 958 586 Fax.: +49 (2203) 958 587 Email: mizerkin at wirz-koeln.de http://www.wirz-koeln.de -----Urspr?ngliche Nachricht----- Von: Eijnden, B. van den (Bart) [mailto:b.vdeijnden at agi.rws.minvenw.nl] Gesendet: Freitag, 17. M?rz 2006 11:34 An: 'Dmitri Mizerkin'; MAPSERVER-USERS at LISTS.UMN.EDU Betreff: RE: [UMN_MAPSERVER-USERS] Setting up a value for a classitem expression in address bar - possible? Read about CGI variable subsitution: http://mapserver.gis.umn.edu/docs/howto/runsub/view Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Dmitri Mizerkin Verzonden: vrijdag 17 maart 2006 11:36 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Setting up a value for a classitem expression in address bar - possible? Hello all! I'm wondering if it is possible to set up a value for a classitem expression in the address bar, not directly in the map-file. That means that I want to have something like this in the map-file: LAYER NAME Sel_Street DATA Streets STATUS OFF TYPE LINE CLASSITEM "OBJECTID" CLASS NAME 'Selected street' #EXPRESSION '28' #This is the value, which should be set dynamically STYLE COLOR 255 0 0 END END END and activate the layer setting up a value for the expression-part in the reference to the active page (for example, like this: http://localhost/mapserv.exe?map=/ms4w/apps/my/streets.map&mode=browse&layer =Sel_Street&expr=28). Can someone help me out? Thanks, Dmitri -- View this message in context: http://www.nabble.com/Setting-up-a-value-for-a-classitem-expression-in-addre ss-bar---possible--t1297050.html#a3453450 Sent from the Mapserver - User forum at Nabble.com. Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From asimpson at I-55.COM Fri Mar 17 05:12:03 2006 From: asimpson at I-55.COM (Simpson) Date: Fri, 17 Mar 2006 07:12:03 -0600 Subject: PERL/Mapscript postGIS examples? In-Reply-To: <200603171717.39411.sdc@sdc.com.au> Message-ID: Stephen, You might try checking the Postgresql logs to see if Mapserver is connecting and requesting data. Turn on statement logging in Postgresql config to get details of exactly what is being sent. You can then run the statement from psql to see if it is returning what you expect. Drew. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Stephen Davies Sent: Friday, March 17, 2006 12:48 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] PERL/Mapscript postGIS examples? Could somebody please send me or point me at an example of a PERL/Mapscript script that displays layers populated from a postGIS database and/or raster layers? The following PERL/Mapscript and map file generates an image containing only the copyright layer. Exactly the same map file with mapserver invoked as CGI generates all layers. (In both cases the extent is provided as args. eg ./genpics q 1 jpg 139.5143351 -34.7459112 139.5278707 -34.7207064) Cheers and thanks, Stephen Davies #! /usr/bin/perl # # args are UID (for mapfile), pic sequence #, image type (extension), extent # use strict; #use CGI; use mapscript; my $uno = $ARGV[0]; my $seq = $ARGV[1]; my $ext = $ARGV[2]; my $minx = $ARGV[3]; my $miny = $ARGV[4]; my $maxx = $ARGV[5]; my $maxy = $ARGV[6]; # # if sequence = 1, create/empty directory (ignoring errors) # if ($seq == 1){ mkdir("/var/www/html/status_images/$uno",0777); unlink ; } # my $mapfile = "/tmp/$uno.map"; my $map = mapscript::mapObj->new($mapfile); my $i=$map->setExtent($minx,$miny,$maxx,$maxy); # #my $img = $map->prepareImage(); my $img = $map->draw(); my $fname = "/var/www/html/status_images/$uno/$seq.$ext"; $img->save($fname); =================================================== MAP NAME perltest PROJECTION "proj=eqc" "lon_0=139.521e" END SIZE 600 600 FONTSET "/var/www/html/benparts/fonts.list" SYMBOLSET "/var/www/html/benparts/symbols" UNITS METERS IMAGETYPE jpeg OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION "QUALITY=75" END IMAGECOLOR 255 255 255 WEB template /var/www/html/benparts/templates/test1.html imagepath "/var/www/html/tmp/" imageurl "/tmp/" END LAYER TYPE RASTER NAME "bkgrnd" STATUS DEFAULT PROJECTION "init=epsg:28354" END DATA "/var/www/html/benparts/rasters/walker.ecw" # OFFSITE 0 0 0 PROCESSING "DITHER=YES" END LAYER CONNECTIONTYPE postgis NAME "probe" DATA "geom from probe" CONNECTION "user=scldad dbname=benparts" STATUS DEFAULT TYPE POINT # FILTER "id in (0)" PROJECTION "init=epsg:4284" END MAXSCALE 5000000 LABELITEM "location" CLASS NAME "Probe (Right Click to select)" STYLE COLOR 0 214 0 SYMBOL 'circle' SIZE 7 END LABEL MINDISTANCE 15 POSITION CR SIZE SMALL COLOR 0 0 0 FORCE TRUE END END END LAYER NAME 'copyright' TYPE ANNOTATION STATUS DEFAULT TRANSFORM FALSE # coordinates are in pixels FEATURE POINTS 10 595 END END CLASS LABEL TYPE TRUETYPE FONT arial SIZE 8 COLOR 255 0 0 POSITION CR END TEXT 'Photography supplied by MAPLAND, Environment Information, Dept Environment & Heritage' END END END -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From mizerkin at WIRZ-KOELN.DE Fri Mar 17 07:08:42 2006 From: mizerkin at WIRZ-KOELN.DE (Dmitri Mizerkin) Date: Fri, 17 Mar 2006 07:08:42 -0800 Subject: Value list in expression-field Message-ID: Hi all! An extract from my mapfile looks like this: LAYER NAME Sel_Streets DATA Streets STATUS OFF TYPE LINE CLASSITEM "OBJECTID" class NAME 'Selected streets' expression '%oid%' STYLE COLOR 255 0 0 END end END What should I change in the expression-line to be able to provide not a single value to filter features by, but a range of values (for example, {12,15,63})? Should be something with 'IN'-keyword, but I can't find out, what the right syntax is... Thanks in advance! Dmitri -- View this message in context: http://www.nabble.com/Value-list-in-expression-field-t1298405.html#a3457524 Sent from the Mapserver - User forum at Nabble.com. From tim at COMMENSPACE.ORG Fri Mar 17 07:48:38 2006 From: tim at COMMENSPACE.ORG (Tim Schaub) Date: Fri, 17 Mar 2006 07:48:38 -0800 Subject: Value list in expression-field Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dmitri Mizerkin > Sent: Friday, March 17, 2006 8:09 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Value list in expression-field > > Hi all! > An extract from my mapfile looks like this: > LAYER > NAME Sel_Streets > DATA Streets > STATUS OFF > TYPE LINE > > CLASSITEM "OBJECTID" > class > NAME 'Selected streets' > expression '%oid%' > STYLE > COLOR 255 0 0 > END > end > END > What should I change in the expression-line to be able to > provide not a single value to filter features by, but a range > of values (for example, {12,15,63})? You should be able to set your oid (or other variable) to a URL encoded version of this: (([OBJECTID] == 12) OR ([OBJECTID] == 15) OR ([OBJECTID] == 63)) > Should be something with 'IN'-keyword, but I can't find out, > what the right syntax is... Or maybe there is some easier way - I haven't heard of IN. Tim > Thanks in advance! > Dmitri > -- > View this message in context: > http://www.nabble.com/Value-list-in-expression-field-t1298405. > html#a3457524 > Sent from the Mapserver - User forum at Nabble.com. > From D.Stone at ED.AC.UK Fri Mar 17 08:52:28 2006 From: D.Stone at ED.AC.UK (Dave Stone) Date: Fri, 17 Mar 2006 10:52:28 -0600 Subject: Tutorial / 500 Internal Server Error Message-ID: I'm still getting Error 500 on all examples in the Tutorial beyond example 1.8. Is nobody else experiencing this? I am really struggling with this excellent guide out of action. From woodbri at SWOODBRIDGE.COM Fri Mar 17 09:00:05 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 17 Mar 2006 12:00:05 -0500 Subject: Tutorial / 500 Internal Server Error In-Reply-To: Message-ID: Dave Stone wrote: > I'm still getting Error 500 on all examples in the Tutorial beyond example > 1.8. Is nobody else experiencing this? > > I am really struggling with this excellent guide out of action. > Dave, Have you check the apache access.log to see what you are sending to mapserver and the error.log to see if any error info is being reported. If you can post this info maybe someone can help. -Steve W. From naci0002 at UMN.EDU Fri Mar 17 09:34:43 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Fri, 17 Mar 2006 11:34:43 -0600 Subject: Tutorial / 500 Internal Server Error In-Reply-To: Message-ID: Dave, Apologies for missing your earlier post. Can you provide us info on what system you're using? Windows? Linux/Unix? Also, telling us what version of MapServer and Apache would be helpful. The error you're getting sounds like it could be a library problem but I can't tell you much more without any other info. You might want to have a look at Apache's error log--you might be missing a library (it's in the wrong path) or you could have duplicate libraries. -Perry On Friday 17 March 2006 10:52, Dave Stone wrote: > I'm still getting Error 500 on all examples in the Tutorial beyond example > 1.8. Is nobody else experiencing this? > > I am really struggling with this excellent guide out of action. From Dennis.Christopher at DPRA.COM Fri Mar 17 10:43:05 2006 From: Dennis.Christopher at DPRA.COM (Dennis Christopher) Date: Fri, 17 Mar 2006 12:43:05 -0600 Subject: calculating coordinates by projecting a point Message-ID: All, We have a routine that creates a new layer For purposes to placing a single point object On the map. The user enters the coordinates Of the point they want to see placed. I am trying to extend this now by allowing the User to enter points in other projections than The current, e.g. in latlong when the map is Projected in utm. I create a point object on the layer On the dynamic layer and set Its coordinates to the user entered values, then project The point to get the values in the current projection. The issue is that the point is not drawn. Echoing The map extents after the point is created shows that they Have changed to something unexpected. Why Would this be? Note. I'm not sure if the layer is created with the map's projection By default, but I have tried calling layer->setProjection() as well With the same result. Dennis Christopher DPRA -------------- next part -------------- An HTML attachment was scrubbed... URL: From hartpence_gis at CO.JASPER.IA.US Fri Mar 17 13:40:41 2006 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Fri, 17 Mar 2006 15:40:41 -0600 Subject: dBox Message-ID: Is there any documentation on implementing dBox? Lawrence Hartpence GIS Coordinator 101 1st St N Newton IA 50208 641-792-3084 hartpence_gis at co.jasper.ia.us From lfilak at MEDINACO.ORG Fri Mar 17 13:46:39 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Fri, 17 Mar 2006 16:46:39 -0500 Subject: PERL Mapscript In-Reply-To: <200603161213.33636.sdc@sdc.com.au> Message-ID: Stephen Davies writes: > One step forward; one step back;-( > > I am now getting a non-blank output but it only contains those layers > which do not use data from the postGIS database. > > Is there something extra that needs to be done in PERL/Mapscript to > turn on database access? If so, where is it documented? > > Cheers and thanks, > Stephen Davies > > On Thursday 16 March 2006 00:21, Lowell.Filak wrote: >> Stephen Davies writes: >> > Sorry; a mistake in my posting. >> > >> > The actual invocation of the script was: >> > ./genpics q 1 jpg 139.5143351 -34.7459112 139.5278707 -34.7207 >> > >> > The problem remains. >> > >> > Cheers and thanks >> > Stephen >> > >> > On Wednesday 15 March 2006 17:01, Manfred Meier wrote: >> >> > ./genpics q 1 139.5143351 -34.7459112 139.5278707 -34.7207 >> >> >> >> Is there a parameter missing before "139.5143351"? minx is ARGV[3] >> >> in your program. >> >> >> >> Hope that helps >> >> Manfred >> >> >> >> Stephen Davies schrieb: >> >> > I am having my first attempt at using PERL/Mapscript to save map >> >> > images to files and am not getting too far. >> >> > >> >> > I have a map file that works perfectly when used with: >> >> > >> >> > http://server/cgi-bin/mapserv?map=/tmp/q.map&mapext=139.5143351+ >> >> >-34 .7459112+139.5278707+-34.7207 >> >> > >> >> > I have the following PERL test bed: >> >> > >> >> > #! /usr/bin/perl >> >> > # >> >> > # args are UID (for mapfile), pic sequence #, image type >> >> > (extension), map extent >> >> > # >> >> > use strict; >> >> > use mapscript; >> >> > my $uno = $ARGV[0]; >> >> > my $seq = $ARGV[1]; >> >> > my $ext = $ARGV[2]; >> >> > my $minx = $ARGV[3]; >> >> > my $miny = $ARGV[4]; >> >> > my $maxx = $ARGV[5]; >> >> > my $maxy = $ARGV[6]; >> >> > >> >> > # >> >> > my $mapfile = "/tmp/$uno.map"; >> >> > my $map = mapscript::mapObj->new($mapfile); >> >> > $map->setExtent($minx,$miny,$maxx,$maxy); >> >> > # >> >> > my $img = $map->prepareImage(); >> >> > $img = $map->draw(); >> >> > my $fname = "/var/www/html/status_images/$uno_$seq.$ext"; >> >> > print "$fname\n"; >> >> > $img->save($fname); >> >> > >> >> > Called as: >> >> > ./genpics q 1 139.5143351 -34.7459112 139.5278707 -34.7207 >> >> > >> >> > This generates a blank jpeg file (of some 2800 bytes). >> >> > >> >> > What am I missing? >> >> > >> >> > Cheers and thanks, >> >> > Stephen Davies Stephen, When you compile the cgi the db access is there for mapscript also. If the cgi is working then mapscript should (so should shp2img). Also, in your later message it appears that image layers are also not drawing.? However, the copyright layer at the bottom of the list "is" drawing. You could turn on logging - "$ENV{MS_ERRORFILE} = "../html/tmp/mapserver.log";" to see if that produces any indicators. My experience has been that "if" any error occurs while rendering "any" layers in the mapfile the entire process will stop. This means that the copyright layer would never draw either. Is the date and time on "mapscript.*" under /usr/lib more recent than "mapserv"? Lowell From lfilak at MEDINACO.ORG Fri Mar 17 14:01:36 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Fri, 17 Mar 2006 17:01:36 -0500 Subject: translate to tcl In-Reply-To: <210856E4-6796-4E70-9786-EA6CECE33F0D@sc.com> Message-ID: Karl Lehenbauer writes: > On Mar 10, 2006, at 5:58 PM, salah jubeh wrote: > CAN ANY BODY HELP ME IN TRANSLATE THIS TO TCL > map = mapscript.Map('rquery.map') > > set map [mapscript::mapObj -args "rquery.map"] > > layer = map.getLayer(0) > > set layer [$map getLayer 0] > > pnt = mapscript.Point() > pnt.x = 440780 pnt.y = 3751260 > > set pnt [::mapscript::new_pointObj 440780 3751260] > layer.queryByPoint( map, pnt, mapscript.MS_MULTIPLE, 180.0 ) > $layer queryByPoint $map $pnt $::mapscript::MS_MULTIPLE 180.0 > > layer.open() for i in range(1000): > result = layer.getResult( i ) > if result is None: > break > > $layer open > > for {set i 0} {$i < [$layer getNumResults]} {incr i} { > set result [$layer getResult] > if {$result == "NULL"} break > > print '(%d,%d)' % (result.shapeindex, result.tileindex) > > puts [format "%d,%d" [$result shapeindex] [$result tileindex]] > s = layer.getShape( result.shapeindex, result.tileindex ) > > set s [$layer getShape [$result shapeindex] [$result tileindex] > > etc etc etc > for i in range(layer.numitems): > print '%s: %s' % (layer.getItem(i), s.getValue(i)) > > layer.close() > > Don't listen to people who tell you Tcl mapscript is all broken. Take a > look at flightaware.com -- it's Tcl all the way. Karl, I didn't see anybody else reply to the thread and indicate that anything was "all broken". That would leave my reply, which certainly was not intended to indicate anything along those lines either. Lowell From karrarm at YAHOO.COM Fri Mar 17 14:23:14 2006 From: karrarm at YAHOO.COM (Ramesh Karra) Date: Fri, 17 Mar 2006 16:23:14 -0600 Subject: Displaying images for points Message-ID: Hi, I have a list of points and I would like to display different images for each of the points. Is it possible to do this without having to create different layers/classes? Let's say my .dbf file contains point1, image1.png, x1, y1 point2, image2.png, x2, y2 ... so on and the .shp .shx files have (x1, y1), (x2, y2) info. Is it possible to write one layer in map file to display these by getting image name from .dbf file? Thanks Ramesh From sdc at SDC.COM.AU Fri Mar 17 22:15:08 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Sat, 18 Mar 2006 16:45:08 +1030 Subject: PERL/Mapscript postGIS examples? In-Reply-To: Message-ID: Thanks for the feedback. Turning on PostgreSQL logging did indeed reveal more information. However, it leaves even more confused than before. It seems that the underlying cause of my results is that the extent being used by mapscript bears no relation to the extent that I specified. Here is the sql statement generated from mapscript: 2006-03-18 16:22:47 CST LOG: 00000: duration: 33.759 ms statement: DECLARE mycursor BINARY CURSOR FOR SELECT location::text,asbinary(force_collection(force_2d(geom)),'NDR'),id::text from probe WHERE geom && setSRID('BOX3D(139.522253226183 -0.000314231148091942,139.522253452601 -0.000314003203767908)'::BOX3D, find_srid('','probe','geom') ) The actual extent specified (and the one that works from CGI mapserv) was: 139.5143351 -34.7459112 139.5278707 -34.7207064 The "correct" query as generated by a CGI call with the above mapext is: 2006-03-18 16:11:57 CST LOG: 00000: duration: 33.703 ms statement: DECLARE mycursor BINARY CURSOR FOR SELECT location::text,asbinary(force_collection(force_2d (geom)),'NDR'),id::text from probe WHERE geom && setSRID('BOX3D(139.508530404246 -34.7456930137356,139.533675395754 -34.7204885334377)'::BOX3D, find_srid('','probe','geom') ) Again the extent is changed but nowhere as drastically. I then tried hard-wiring the extent into the map file and removing the mapext argument from the CGI call and got the same result and the same query. I then modified my PERL script to use the extent in the map file and again got the same result and the same query generated. It looks as if the mapscript setExtent method does something strange and different from the CGI mapext option and that both do strange things with extent statements in map files in some circumstances. I tried changing the UNITS to DD but this made no difference (METERS is required to make reference maps etc work properly in the CGI world.) Cheers, Stephen On Friday 17 March 2006 23:42, Simpson wrote: > Stephen, > > You might try checking the Postgresql logs to see if Mapserver is > connecting and requesting data. Turn on statement logging in > Postgresql config to get details of exactly what is being sent. You > can then run the statement from psql to see if it is returning what > you expect. > > Drew. > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Stephen Davies > Sent: Friday, March 17, 2006 12:48 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] PERL/Mapscript postGIS examples? > > > Could somebody please send me or point me at an example of a > PERL/Mapscript script that displays layers populated from a postGIS > database and/or raster layers? > The following PERL/Mapscript and map file generates an image > containing only the copyright layer. > Exactly the same map file with mapserver invoked as CGI generates all > layers. > (In both cases the extent is provided as args. > eg ./genpics q 1 jpg 139.5143351 -34.7459112 139.5278707 -34.7207064) > > Cheers and thanks, > Stephen Davies > > #! /usr/bin/perl > # > # args are UID (for mapfile), pic sequence #, image type (extension), > extent > # > use strict; > #use CGI; > use mapscript; > my $uno = $ARGV[0]; > my $seq = $ARGV[1]; > my $ext = $ARGV[2]; > my $minx = $ARGV[3]; > my $miny = $ARGV[4]; > my $maxx = $ARGV[5]; > my $maxy = $ARGV[6]; > # > # if sequence = 1, create/empty directory (ignoring errors) > # > if ($seq == 1){ > mkdir("/var/www/html/status_images/$uno",0777); > unlink ; > } > # > my $mapfile = "/tmp/$uno.map"; > my $map = mapscript::mapObj->new($mapfile); > my $i=$map->setExtent($minx,$miny,$maxx,$maxy); > # > #my $img = $map->prepareImage(); > my $img = $map->draw(); > my $fname = "/var/www/html/status_images/$uno/$seq.$ext"; > $img->save($fname); > =================================================== > MAP > NAME perltest > > > PROJECTION > "proj=eqc" > "lon_0=139.521e" > END > > SIZE 600 600 > FONTSET "/var/www/html/benparts/fonts.list" > SYMBOLSET "/var/www/html/benparts/symbols" > UNITS METERS > IMAGETYPE jpeg > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > EXTENSION "jpg" > FORMATOPTION "QUALITY=75" > END > IMAGECOLOR 255 255 255 > > WEB > template /var/www/html/benparts/templates/test1.html > imagepath "/var/www/html/tmp/" > imageurl "/tmp/" > END > > LAYER > TYPE RASTER > NAME "bkgrnd" > STATUS DEFAULT > PROJECTION > "init=epsg:28354" > END > DATA "/var/www/html/benparts/rasters/walker.ecw" > # OFFSITE 0 0 0 > PROCESSING "DITHER=YES" > END > > LAYER > CONNECTIONTYPE postgis > NAME "probe" > DATA "geom from probe" > CONNECTION "user=scldad dbname=benparts" > STATUS DEFAULT > TYPE POINT > # FILTER "id in (0)" > PROJECTION > "init=epsg:4284" > END > MAXSCALE 5000000 > LABELITEM "location" > CLASS > NAME "Probe (Right Click to select)" > STYLE > COLOR 0 214 0 > SYMBOL 'circle' > SIZE 7 > END > LABEL > MINDISTANCE 15 > POSITION CR > SIZE SMALL > COLOR 0 0 0 > FORCE TRUE > END > END > END > > LAYER > NAME 'copyright' > TYPE ANNOTATION > STATUS DEFAULT > TRANSFORM FALSE # coordinates are in pixels > FEATURE > POINTS 10 595 END > END > CLASS > LABEL > TYPE TRUETYPE > FONT arial > SIZE 8 > COLOR 255 0 0 > POSITION CR > END > TEXT 'Photography supplied by MAPLAND, Environment > Information, Dept Environment & Heritage' > END > END > END > -- > ===================================================================== >=== This email is for the person(s) identified above, and is > confidential to the sender and the person(s). No one else is > authorised to use or disseminate this email or its contents. > > Stephen Davies Consulting Voice: 08-8177 > 1595 Adelaide, South Australia. Fax: > 08-8177 0133 Computing & Network solutions. > Mobile:0403 0405 83 -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From pauljame at GMAIL.COM Sat Mar 18 07:19:52 2006 From: pauljame at GMAIL.COM (Paul james) Date: Sat, 18 Mar 2006 12:19:52 -0300 Subject: Improving Performance... Message-ID: Hello all ! I have a app with one layer (roads - ~600k lines) ... And It take about 10 sec to draw... Its using postgre/postgis... And my server is a ADM64 3800+ , 2GB Ram... Is there any kind to optimize that? Thankz -------------- next part -------------- An HTML attachment was scrubbed... URL: From rubydunes at YAHOO.COM Sat Mar 18 13:43:38 2006 From: rubydunes at YAHOO.COM (Map Man) Date: Sat, 18 Mar 2006 15:43:38 -0600 Subject: Mapserver License? Message-ID: Hi Folks, Just researching open source options and probably covering an old topic, but I'm looking for clarification on the current Mapserver license. I was under the impression that it used to be part of the GPL or Gnu Public License, but now I see that, according to http://mapserver.gis.umn.edu/License, it is essentially freeware. So I'm wondering if an interface to Mapserver needs to be open source as well, and if one may charge for an interface that uses portions of Mapserver. Or must any fees be only for service and support of the interface? Also, is it possible or likely that the license may change in the future? Thanks, and happy mapping! From mpetach at NEWFIELDS.COM Sat Mar 18 18:07:31 2006 From: mpetach at NEWFIELDS.COM (Marty Petach) Date: Sat, 18 Mar 2006 19:07:31 -0700 Subject: MAPSERVER-USERS Digest - 16 Mar 2006 to 17 Mar 2006 (#2006-77) Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Sun Mar 19 02:56:08 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sun, 19 Mar 2006 11:56:08 +0100 Subject: Mapserver License? In-Reply-To: Message-ID: Hi, I am not an expert on licenses, but the Mapserver license is a MIT-style license. An interface to Mapserver does not need to be Open Source, and you may even charge for the interface, as for instance a Swiss company called Tydac is doing with a system called Neapoljs. Best regards, Bart Map Man wrote: >Hi Folks, > >Just researching open source options and probably covering an old topic, >but I'm looking for clarification on the current Mapserver license. > >I was under the impression that it used to be part of the GPL or Gnu >Public License, but now I see that, according to >http://mapserver.gis.umn.edu/License, it is essentially freeware. > >So I'm wondering if an interface to Mapserver needs to be open source as >well, and if one may charge for an interface that uses portions of >Mapserver. Or must any fees be only for service and support of the >interface? > >Also, is it possible or likely that the license may change in the future? > >Thanks, and happy mapping! > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From baas at SPEERIT.NL Sun Mar 19 03:22:46 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Sun, 19 Mar 2006 12:22:46 +0100 Subject: Improving Performance... In-Reply-To: <33fad6880603180719x5a50e58ev7242a1bf1b4b90ea@mail.gmail.com> Message-ID: Paul james wrote: > Hello all ! > I have a app with one layer (roads - ~600k lines) ... And It take about > 10 sec to draw... Its using postgre/postgis... And my server is a ADM64 > 3800+ , 2GB Ram... > Is there any kind to optimize that? As far as I found out, drawing from MapInfo .TAB files is blazingly fast. Drawing the whole of the netherlands, the mainroads, the natural feautures, a lot of other stuff only takes < 0.5 sec on a machine that's less fast as yours. If the road info is static, I'd try converting it to MapInfo files. .TAB is faster (at least for me) than shape+index, as well. -- Jelmer From siki at AGT.BME.HU Sun Mar 19 11:31:55 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sun, 19 Mar 2006 18:31:55 -0100 Subject: Improving Performance... {Scanned} In-Reply-To: <441D3F06.1010703@speerit.nl> Message-ID: Hi, AFAIK the fastest solution for static maps are the shape files with spatial index (qix). Zoltan On Sun, 19 Mar 2006, Jelmer Baas wrote: > Paul james wrote: > > Hello all ! > > I have a app with one layer (roads - ~600k lines) ... And It take about > > 10 sec to draw... Its using postgre/postgis... And my server is a ADM64 > > 3800+ , 2GB Ram... > > Is there any kind to optimize that? > > As far as I found out, drawing from MapInfo .TAB files is blazingly > fast. Drawing the whole of the netherlands, the mainroads, the natural > feautures, a lot of other stuff only takes < 0.5 sec on a machine that's > less fast as yours. > > If the road info is static, I'd try converting it to MapInfo files. .TAB > is faster (at least for me) than shape+index, as well. > > From baas at SPEERIT.NL Sun Mar 19 08:25:47 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Sun, 19 Mar 2006 17:25:47 +0100 Subject: Improving Performance... {Scanned} In-Reply-To: Message-ID: Siki Zoltan wrote: > Hi, > > AFAIK the fastest solution for static maps are the shape files with > spatial index (qix). That's what I thought, too. But after converting the tables to shape files and then creating the index, the system was still slower. PLUS that that silly index generation thingie can't create indexes (indices?) for large files. Go figure. It used a LOT of memory (2gb, to be exact) and then crashed... -- Jelmer From siki at AGT.BME.HU Sun Mar 19 14:04:21 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sun, 19 Mar 2006 21:04:21 -0100 Subject: Improving Performance... {Scanned} In-Reply-To: <441D860B.3070906@speerit.nl> Message-ID: On Sun, 19 Mar 2006, Jelmer Baas wrote: > Siki Zoltan wrote: > > Hi, > > > > AFAIK the fastest solution for static maps are the shape files with > > spatial index (qix). > > That's what I thought, too. But after converting the tables to shape > files and then creating the index, the system was still slower. PLUS > that that silly index generation thingie can't create indexes (indices?) > for large files. Go figure. It used a LOT of memory (2gb, to be exact) > and then crashed... > The largest file I had was 44 MB, I created index without any problem. Does it work for smaler files? Do you use shptree? You may have version problem (dll or so). Zoltan From baas at SPEERIT.NL Sun Mar 19 11:09:56 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Sun, 19 Mar 2006 20:09:56 +0100 Subject: Improving Performance... {Scanned} In-Reply-To: Message-ID: Siki Zoltan wrote: > On Sun, 19 Mar 2006, Jelmer Baas wrote: > The largest file I had was 44 MB, I created index without any problem. > Does it work for smaler files? > Do you use shptree? You may have version problem (dll or so). Mine is 218MB (Only has 1132271 records :P). Smaller files DID work. Like I said, it loads all the entries into memory and then crashes when trying to address more than 2GB. -- Jelmer From siki at AGT.BME.HU Sun Mar 19 16:35:23 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sun, 19 Mar 2006 23:35:23 -0100 Subject: Improving Performance... {Scanned} In-Reply-To: <441DAC84.5090307@speerit.nl> Message-ID: Hi, Probaly you use MS XP, there is a limitation, one program is limited to use 2GB RAM only on a 32 bit system. On Xp 64 bit no memory limit (or higher?). Try to create the spatial index on a linux box ;) An other solution is to split your shape file into smaller tiles and use ogrtindex to create tileindex. It may make faster your application. Make an index for each tile and for the tile index too. Zoltan On Sun, 19 Mar 2006, Jelmer Baas wrote: > Siki Zoltan wrote: > > On Sun, 19 Mar 2006, Jelmer Baas wrote: > > > The largest file I had was 44 MB, I created index without any problem. > > Does it work for smaler files? > > Do you use shptree? You may have version problem (dll or so). > > Mine is 218MB (Only has 1132271 records :P). Smaller files DID work. > Like I said, it loads all the entries into memory and then crashes when > trying to address more than 2GB. > > From thip at AIT.AC.TH Sun Mar 19 17:09:39 2006 From: thip at AIT.AC.TH (Thip) Date: Mon, 20 Mar 2006 08:09:39 +0700 Subject: WMS, WCS, WFS Message-ID: Dear all, Is there anyone know the different of WMS, WCS and WFS? Or any where that I can find those information. Thanks, Thip ----- Original Message ----- From: "Siki Zoltan" To: Sent: Monday, March 20, 2006 2:31 AM Subject: Re: [UMN_MAPSERVER-USERS] Improving Performance... {Scanned} > Hi, > > AFAIK the fastest solution for static maps are the shape files with > spatial index (qix). > > Zoltan > > On Sun, 19 Mar 2006, Jelmer Baas wrote: > > > Paul james wrote: > > > Hello all ! > > > I have a app with one layer (roads - ~600k lines) ... And It take about > > > 10 sec to draw... Its using postgre/postgis... And my server is a ADM64 > > > 3800+ , 2GB Ram... > > > Is there any kind to optimize that? > > > > As far as I found out, drawing from MapInfo .TAB files is blazingly > > fast. Drawing the whole of the netherlands, the mainroads, the natural > > feautures, a lot of other stuff only takes < 0.5 sec on a machine that's > > less fast as yours. > > > > If the road info is static, I'd try converting it to MapInfo files. .TAB > > is faster (at least for me) than shape+index, as well. > > > > From Tom.Kralidis at EC.GC.CA Sun Mar 19 18:02:36 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Sun, 19 Mar 2006 21:02:36 -0500 Subject: WMS, WCS, WFS Message-ID: Try the MapServer OGC Web Services Workshop: http://devgeo.cciw.ca/ms_ogc_workshop/index.html This workshop has slides which discuss the various OGC specifications (overview, relation to MapServer, etc.). ..Tom -----Original Message----- From: UMN MapServer Users List on behalf of Thip Sent: Sun 19-Mar-06 20:09 To: MAPSERVER-USERS at lists.umn.edu Cc: Subject: [UMN_MAPSERVER-USERS] WMS, WCS, WFS Dear all, Is there anyone know the different of WMS, WCS and WFS? Or any where that I can find those information. Thanks, Thip ----- Original Message ----- From: "Siki Zoltan" To: Sent: Monday, March 20, 2006 2:31 AM Subject: Re: [UMN_MAPSERVER-USERS] Improving Performance... {Scanned} > Hi, > > AFAIK the fastest solution for static maps are the shape files with > spatial index (qix). > > Zoltan > > On Sun, 19 Mar 2006, Jelmer Baas wrote: > > > Paul james wrote: > > > Hello all ! > > > I have a app with one layer (roads - ~600k lines) ... And It take about > > > 10 sec to draw... Its using postgre/postgis... And my server is a ADM64 > > > 3800+ , 2GB Ram... > > > Is there any kind to optimize that? > > > > As far as I found out, drawing from MapInfo .TAB files is blazingly > > fast. Drawing the whole of the netherlands, the mainroads, the natural > > feautures, a lot of other stuff only takes < 0.5 sec on a machine that's > > less fast as yours. > > > > If the road info is static, I'd try converting it to MapInfo files. .TAB > > is faster (at least for me) than shape+index, as well. > > > > From sfadum at SHAW.CA Sun Mar 19 18:37:51 2006 From: sfadum at SHAW.CA (Sean Fadum) Date: Sun, 19 Mar 2006 18:37:51 -0800 Subject: Predefined Extents Message-ID: Hi, I am developing an application for the analysis of Mountain Pine Beetle infestations. I would like to add a combo box that lets the user select a specific mapsheet and then zooms to that mapsheet (a predefined extent). I am using PHP/Mapscript for this project. I am new to Mapserver as well as PHP and Mapscript. Any ideas on the best way of going about this is? Cheers, Sean From baas at SPEERIT.NL Sun Mar 19 21:58:12 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Mon, 20 Mar 2006 06:58:12 +0100 Subject: Improving Performance... {Scanned} In-Reply-To: Message-ID: Siki Zoltan wrote: > Hi, > > Probaly you use MS XP, there is a limitation, one program is limited to > use 2GB RAM only on a 32 bit system. On Xp 64 bit no memory limit (or > higher?). > Try to create the spatial index on a linux box ;) > > An other solution is to split your shape file into smaller tiles and > use ogrtindex to create tileindex. It may make faster your application. > Make an index for each tile and for the tile index too. Though it's getting a tad offtopic, I'll try doing this. You're right, I'm running on Windows 2003 Server (32 bit). For the layers that DID convert, I found that most layers rendered faster with OGR and .TAB files than they did with SHP :-) -- Jelmer From mizerkin at WIRZ-KOELN.DE Mon Mar 20 00:48:54 2006 From: mizerkin at WIRZ-KOELN.DE (Dmitri Mizerkin) Date: Mon, 20 Mar 2006 00:48:54 -0800 Subject: Value list in expression-field In-Reply-To: Message-ID: Thanks for the answer, Tim! It helped me to figure out, how it is necessary to use the keyword 'IN' in expressions. So the final working solution is: ([OBJECTID] IN '12,15,63') Or you can also provide the enumeration (with a comma between every two elements) in the address line of your browser. In this case the static enumeration should be replaced by: ([OBJECTID] IN '%oid%') - and oid=12,15,63 added to the address line. Thanks for your support! Cheers, Dmitri -- View this message in context: http://www.nabble.com/Value-list-in-expression-field-t1298405.html#a3489856 Sent from the Mapserver - User forum at Nabble.com. From siki at AGT.BME.HU Mon Mar 20 07:28:34 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 20 Mar 2006 14:28:34 -0100 Subject: Improving Performance... {Scanned} In-Reply-To: <441E4474.8020906@speerit.nl> Message-ID: Hi, On Mon, 20 Mar 2006, Jelmer Baas wrote: > I found that most layers rendered faster with OGR and .TAB > files than they did with SHP :-) Are you sure mapserver uses your index? If you write DATA someting.shp in your map file qix index will not be used You must delete the extension e.g DATA something Zoltan From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Mar 20 04:19:05 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Mon, 20 Mar 2006 13:19:05 +0100 Subject: PHP/Mapscript as a module, curl Message-ID: Hi list, I am having a problem when using PHP/Mapscript as a PHP Module. One of my layers comes from a remote WMS, and this needs to go through a proxy. I have set the http_proxy environment variable. When using PHP as a CGI, the map draws the remote WMS layer just fine. When I switch to PHP as a module, the remote WMS layer does not show up anymore (it does not time out either since the map returns blazingly fast). Environment is PHP/Mapscript 4.8.1, Red Hat Enterprise 3 with PHP 4.3.11. Has anybody experienced something similar? Does anybody have this type of configuration working (PHP as a module, remote WMS accessed through curl)? Thanks in advance. Best regards, Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From hydromap at GMAIL.COM Mon Mar 20 05:06:12 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Tue, 21 Mar 2006 00:06:12 +1100 Subject: Architecture for Enterprise Backend Message-ID: Hi I have a question which I am have difficulty putting in words but I'll try anyway... Can anyone suggest how large data vendors organise their raster and vector data with the view of having the flexibility to update, reorganise, manage and search/query. How can this process be automated using the various OS GIS components (e.g. PostGIS, Mapserver, etc). Are data sets divide into categories. How does one deal with temporal variability over the same extents? Is their an ideal way of organising the data on disk? How should the various mapserver components like Mapfiles be organised internally and on disk? Understandably it could get very ugly as data increases. From James.Leveille at MTQ.GOUV.QC.CA Mon Mar 20 05:38:20 2006 From: James.Leveille at MTQ.GOUV.QC.CA (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Mon, 20 Mar 2006 08:38:20 -0500 Subject: WFS - MINSCALE and MAXSCALE Message-ID: Hi, I configured a mapfile for a WFS service. The MINSCALE and MAXSCALE dont seem to be working properly since data is displayed at any scale ... I did the same thing for a WMS service (another mapfile) and it works fine. Any idea why it doesn't work with WFS ? Other question: Is it true to say that when I connect to a WFS service and I display a particular layer, all the data from that layer is loaded initially. This causes the first display to be slower but any modification to my view afterwards (zoom area, zoom out, pan, etc ...) is (almost) instantly since data is all on the client side ... __________________________________________ James L?veill? Int?lec G?omatique 420, boul. Charest Est Bureau 400 Qu?bec (QC), Canada G1K 8M4 Int?lec G?omatique: 418.687.5000 MTQ: 418.380.2005 (#227) -------------- next part -------------- An HTML attachment was scrubbed... URL: From xavier.mauclaire at GEOTER.FR Mon Mar 20 04:16:16 2006 From: xavier.mauclaire at GEOTER.FR (Xavier Mauclaire) Date: Mon, 20 Mar 2006 13:16:16 +0100 Subject: Error when compiling c# mapscript on linux machine Message-ID: Hi I'm trying ti copile mapscript library for c# on linux machine (suse 9.1 and mono 1.1.13.4) i get teh folowing error when la execute the make command syntax error, got tokn 'ERROR' imageObj.cs (104,12):error CS1002 : expecting ";" when it is tying to compile mapscriot_csharp.dll Il i read the code file, the error line number refers the line : return $modulePINVOKE.GetBytes(); How can i correct this regard . ----------------------------------------- Xavier Mauclaire Ing?nieur Informaticien GEOTER SAS 3, rue Jean Monnet 34830 Clapiers France T?l.: +33 (0)4.67.59.18.11 Fax: +33 (0)4.67.59.18.24 Email: xavier.mauclaire at geoter.fr Web site: http://www.geoter.fr ------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From baas at SPEERIT.NL Mon Mar 20 05:45:40 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Mon, 20 Mar 2006 14:45:40 +0100 Subject: Improving Performance... {Scanned} In-Reply-To: Message-ID: Siki Zoltan wrote: > Are you sure mapserver uses your index? > If you write > DATA someting.shp > in your map file qix index will not be used > You must delete the extension e.g > DATA something Yep, it used the index. I also tried it when it DIDN'T use the index, but then it took a few minutes to render the image :-) -- Jelmer From lfilak at MEDINACO.ORG Mon Mar 20 05:51:20 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Mon, 20 Mar 2006 08:51:20 -0500 Subject: PERL/Mapscript postGIS examples? In-Reply-To: <200603181645.09028.sdc@sdc.com.au> Message-ID: Stephen Davies writes: > Thanks for the feedback. > > Turning on PostgreSQL logging did indeed reveal more information. > However, it leaves even more confused than before. > > It seems that the underlying cause of my results is that the extent > being used by mapscript bears no relation to the extent that I > specified. > > Here is the sql statement generated from mapscript: > > 2006-03-18 16:22:47 CST LOG: 00000: duration: 33.759 ms statement: > DECLARE mycursor BINARY CURSOR FOR SELECT > location::text,asbinary(force_collection(force_2d(geom)),'NDR'),id::text > from probe WHERE geom && setSRID('BOX3D(139.522253226183 > -0.000314231148091942,139.522253452601 -0.000314003203767908)'::BOX3D, > find_srid('','probe','geom') ) > > The actual extent specified (and the one that works from CGI mapserv) > was: > > 139.5143351 -34.7459112 139.5278707 -34.7207064 > > The "correct" query as generated by a CGI call with the above mapext is: > > 2006-03-18 16:11:57 CST LOG: 00000: duration: 33.703 ms statement: > DECLARE mycursor BINARY CURSOR FOR SELECT > location::text,asbinary(force_collection(force_2d > (geom)),'NDR'),id::text from probe WHERE geom && > setSRID('BOX3D(139.508530404246 -34.7456930137356,139.533675395754 > -34.7204885334377)'::BOX3D, find_srid('','probe','geom') ) > > Again the extent is changed but nowhere as drastically. > > I then tried hard-wiring the extent into the map file and removing the > mapext argument from the CGI call and got the same result and the same > query. > > I then modified my PERL script to use the extent in the map file and > again got the same result and the same query generated. > > It looks as if the mapscript setExtent method does something strange and > different from the CGI mapext option and that both do strange things > with extent statements in map files in some circumstances. > > I tried changing the UNITS to DD but this made no difference (METERS is > required to make reference maps etc work properly in the CGI world.) Stephen, Did you already try printing the values of $miny & $maxy or run it with "perl -d"? If they args read in are correct then I'm wondering if: my $rect = mapscript::rectObj->new($minx,$miny,$maxx,$maxy); $map->{extent} = $rect; would have a different effect. Lowell From beproject06 at YAHOO.COM Mon Mar 20 06:17:04 2006 From: beproject06 at YAHOO.COM (Apeksha Bhambhani) Date: Mon, 20 Mar 2006 06:17:04 -0800 Subject: Draw point in PHP Mapscript Message-ID: HI , Can somebody help us with the following doubt : We are trying to plot a point using the Mapscipt API with the help of the draw function of the Point Object. Though , it does plot the point successfully , it does not annotate it with the text that we pass. $j=$poi[$i]->draw($map, $layer, $image,0,$name); $poi[$i] is a point object . What could be the error? It would be of great help if somebody helps us at the earliest. Thank You , Apeksha --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. -------------- next part -------------- An HTML attachment was scrubbed... URL: From robert.albrecht at TKK.FI Mon Mar 20 06:25:28 2006 From: robert.albrecht at TKK.FI (Robert Albrecht) Date: Mon, 20 Mar 2006 16:25:28 +0200 Subject: Draw point in PHP Mapscript In-Reply-To: <20060320141704.582.qmail@web31609.mail.mud.yahoo.com> Message-ID: Apeksha Bhambhani wrote: > HI , > > Can somebody help us with the following doubt : > We are trying to plot a point using the Mapscipt API with the help of > the draw function of the Point Object. Though , it does plot the point > successfully , it does not annotate it with the text that we pass. > $j=$poi[$i]->draw($map, $layer, $image,0,$name); > $poi[$i] is a point object . > What could be the error? > Don't know if you do, but you have to draw the label cache, after you've drawn the map itself: $image = $mapObj->draw(); $mapObj->drawLabelCache($image); Does this help? Robert From szekeres.tamas at FREEMAIL.HU Mon Mar 20 06:44:39 2006 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Mon, 20 Mar 2006 08:44:39 -0600 Subject: Error when compiling c# mapscript on linux machine Message-ID: Check out the CVS HEAD or the 4-8 Branch. Many significant changes and bux fixes were made. Theese versions support autogeneration of the makefile on linux and enhanced typemaps for C#. For more information take a look at the README in the csharp directory. This version will be issued with 4.8.2 soon. Best Regards, Tamas Szekeres On Mon, 20 Mar 2006 13:16:16 +0100, Xavier Mauclaire wrote: >Hi >I'm trying ti copile mapscript library for c# on linux machine (suse 9.1 and >mono 1.1.13.4) >i get teh folowing error when la execute the make command > >syntax error, got tokn 'ERROR' >imageObj.cs (104,12):error CS1002 : expecting ";" > >when it is tying to compile mapscriot_csharp.dll > >Il i read the code file, the error line number refers the line : >return $modulePINVOKE.GetBytes(); > >How can i correct this > >regard > > > >. > >----------------------------------------- >Xavier Mauclaire >Ing?nieur Informaticien >GEOTER SAS >3, rue Jean Monnet >34830 Clapiers France >T?l.: +33 (0)4.67.59.18.11 >Fax: +33 (0)4.67.59.18.24 > >Email: xavier.mauclaire at geoter.fr > >Web site: http://www.geoter.fr > >------------------------------------------------------- > > > > From David.Fawcett at STATE.MN.US Mon Mar 20 07:07:47 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 20 Mar 2006 09:07:47 -0600 Subject: Improving Performance... {Scanned} Message-ID: Jelmer, If you search the archives, there has been a lot written about how to optimize your data. Ed McNierney has written many great posts on this. My guess is that you are trying to load more data than you really need to. If you are drawing the full extent of your shapefile, (zoomed out), do you really need the fine detail in your data set. This is a case where a thin or more generalized version of your original data set would be useful. I MapServer, using minscale and maxscale, you can show the generalized or simplified version of your data in one layer when the person is zoomed out and then show a different, more detailed version of the data in a different layer when you are zoomed in. When setting up this more detailed layer, you will want to tile your data and use a tileindex. This way, you don't need to read your whole data set to just draw one small area of it. Of course, you will also want spatial indexes. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jelmer Baas Sent: Monday, March 20, 2006 7:46 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Improving Performance... {Scanned} Siki Zoltan wrote: > Are you sure mapserver uses your index? > If you write > DATA someting.shp > in your map file qix index will not be used > You must delete the extension e.g > DATA something Yep, it used the index. I also tried it when it DIDN'T use the index, but then it took a few minutes to render the image :-) -- Jelmer From Jukka.Rahkonen at MMMTIKE.FI Mon Mar 20 07:13:59 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 20 Mar 2006 17:13:59 +0200 Subject: Improving Performance... {Scanned} Message-ID: Hi Jelmer, I made a quick test with one shapefile of size 580 MB containing 1.2 million polygons. Shptree (from FW Tools 0.9.8) with default parameters took 2 min 30 secs to run with 3 GHz Pentium and Windows XP and memory usage grew not more than 200-300 MB during the process. Of my 1 GB I had all the time more than 500 free. The idle usage seems to be around 200 MB. With quite a similar datasets we have rather different experiences but I do not have any idea why. Regards, Jukka Rahkonen ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Jelmer Baas L?hetetty: su 19.3.2006 21:09 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: [UMN_MAPSERVER-USERS] Improving Performance... {Scanned} Siki Zoltan wrote: > On Sun, 19 Mar 2006, Jelmer Baas wrote: > The largest file I had was 44 MB, I created index without any problem. > Does it work for smaler files? > Do you use shptree? You may have version problem (dll or so). Mine is 218MB (Only has 1132271 records :P). Smaller files DID work. Like I said, it loads all the entries into memory and then crashes when trying to address more than 2GB. -- Jelmer From D.Stone at ED.AC.UK Mon Mar 20 09:26:38 2006 From: D.Stone at ED.AC.UK (Dave Stone) Date: Mon, 20 Mar 2006 11:26:38 -0600 Subject: Tutorial / 500 Internal Server Error Message-ID: Thanks for the reply, guys, but I don't understand why you're asking for these details; are the error messages not being generated at your end, by your Apache/MapServer? What I'm doing, typically, is clicking on a link to an example (1.8, say) so the URL I'm trying to access is: http://hypnos.cbs.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/ example1-8.map&layers=states+states_label+modis&mode=map The page displays OK except for the map, which shows as a small icon; when this is clicked, the following error appears: "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root at localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/2.0.54 (Gentoo/Linux) PHP/4.4.0-pl1-gentoo with Hardening-Patch Server at hypnos.cbs.umn.edu Port 80" This looks like your server, so checking our error logs would be superfluous surely? What has me really confused about this problem is that up till March 9th, I was working through the tutorial without any problems, accessing all the example files on your server AFAIK. From punkish at EIDESIS.ORG Mon Mar 20 09:31:17 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Mon, 20 Mar 2006 11:31:17 -0600 Subject: Tutorial / 500 Internal Server Error In-Reply-To: Message-ID: Dave Stone wrote: > Thanks for the reply, guys, but I don't understand why you're asking for > these details; are the error messages not being generated at your end, by > your Apache/MapServer? > > What I'm doing, typically, is clicking on a link to an example (1.8, say) so > the URL I'm trying to access is: > > http://hypnos.cbs.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/ > example1-8.map&layers=states+states_label+modis&mode=map > Confirmed. The above link gives me... > Internal Server Error > > The server encountered an internal error or misconfiguration and was unable to complete your request. > > Please contact the server administrator, root at localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. > > More information about this error may be available in the server error log. > Apache/2.0.54 (Gentoo/Linux) PHP/4.4.0-pl1-gentoo with Hardening-Patch Server at hypnos.cbs.umn.edu Port 80 From naci0002 at UMN.EDU Mon Mar 20 10:20:22 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Mon, 20 Mar 2006 12:20:22 -0600 Subject: Tutorial / 500 Internal Server Error In-Reply-To: Message-ID: My apologies. I misunderstood you. I thought you were running the tutorial locally and were getting the messages on your machine... It turns out it's my server! I updated the server last week and the MapServer (actually GDAL) dependencies got screwed up. You should be able to use it again later today. (tomorrow for you ;) -Perry On Monday 20 March 2006 11:26, Dave Stone wrote: > Thanks for the reply, guys, but I don't understand why you're asking for > these details; are the error messages not being generated at your end, by > your Apache/MapServer? > > What I'm doing, typically, is clicking on a link to an example (1.8, say) > so the URL I'm trying to access is: > > http://hypnos.cbs.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdoc >s/ example1-8.map&layers=states+states_label+modis&mode=map > > The page displays OK except for the map, which shows as a small icon; when > this is clicked, the following error appears: > > "Internal Server Error > > The server encountered an internal error or misconfiguration and was unable > to complete your request. > > Please contact the server administrator, root at localhost and inform them of > the time the error occurred, and anything you might have done that may have > caused the error. > > More information about this error may be available in the server error log. > Apache/2.0.54 (Gentoo/Linux) PHP/4.4.0-pl1-gentoo with Hardening-Patch > Server at hypnos.cbs.umn.edu Port 80" > > This looks like your server, so checking our error logs would be > superfluous surely? > > What has me really confused about this problem is that up till March 9th, I > was working through the tutorial without any problems, accessing all the > example files on your server AFAIK. -- Pericles S. Nacionales Conservation Biology Program University of Minnesota e-mail: naci0002 at umn.edu From naci0002 at UMN.EDU Mon Mar 20 10:33:49 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Mon, 20 Mar 2006 12:33:49 -0600 Subject: Tutorial / 500 Internal Server Error In-Reply-To: <441EE6E5.6090302@eidesis.org> Message-ID: Thanks, Puneet and Dave! It's fixed. -Perry On Monday 20 March 2006 11:31, Puneet Kishor wrote: > Dave Stone wrote: > > Thanks for the reply, guys, but I don't understand why you're asking for > > these details; are the error messages not being generated at your end, by > > your Apache/MapServer? > > > > What I'm doing, typically, is clicking on a link to an example (1.8, say) > > so the URL I'm trying to access is: > > > > http://hypnos.cbs.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htd > >ocs/ example1-8.map&layers=states+states_label+modis&mode=map > > Confirmed. The above link gives me... > > > Internal Server Error > > > > The server encountered an internal error or misconfiguration and was > > unable to complete your request. > > > > Please contact the server administrator, root at localhost and inform them > > of the time the error occurred, and anything you might have done that may > > have caused the error. > > > > More information about this error may be available in the server error > > log. Apache/2.0.54 (Gentoo/Linux) PHP/4.4.0-pl1-gentoo with > > Hardening-Patch Server at hypnos.cbs.umn.edu Port 80 From steve.lime at DNR.STATE.MN.US Mon Mar 20 11:14:28 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 20 Mar 2006 13:14:28 -0600 Subject: dBox Message-ID: We're working on it right now in coordination with a bit of a re-write. The home page is: http://maps.dnr.state.mn.us/tools/dbox/ There's a link to a demo version of Landview that implements the tree'd legend tool we've been working on. We're trying now to minimize some dependencies on external libraries. That's the last hurdle before release. Steve >>> Lawrence Hartpence 3/17/2006 3:40:41 PM >>> Is there any documentation on implementing dBox? Lawrence Hartpence GIS Coordinator 101 1st St N Newton IA 50208 641-792-3084 hartpence_gis at co.jasper.ia.us From RMcCulley at COUNTY24.COM Mon Mar 20 11:37:13 2006 From: RMcCulley at COUNTY24.COM (Rob McCulley) Date: Mon, 20 Mar 2006 12:37:13 -0700 Subject: dBox Message-ID: Steve, That looks awesome!! I've got a version of dbox that I set up ages ago, and have been afraid to change for fear of buggering things up (it took me a while to get working). I think once this is released, it is time for an upgrade! Thanks, Rob McCulley -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Steve Lime Sent: Monday, March 20, 2006 12:14 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] dBox We're working on it right now in coordination with a bit of a re-write. The home page is: http://maps.dnr.state.mn.us/tools/dbox/ There's a link to a demo version of Landview that implements the tree'd legend tool we've been working on. We're trying now to minimize some dependencies on external libraries. That's the last hurdle before release. Steve >>> Lawrence Hartpence 3/17/2006 3:40:41 PM >>> Is there any documentation on implementing dBox? Lawrence Hartpence GIS Coordinator 101 1st St N Newton IA 50208 641-792-3084 hartpence_gis at co.jasper.ia.us From eric at GOMOOS.ORG Mon Mar 20 14:02:10 2006 From: eric at GOMOOS.ORG (Eric Bridger) Date: Mon, 20 Mar 2006 17:02:10 -0500 Subject: PERL/Mapscript postGIS examples? In-Reply-To: <200603181645.09028.sdc@sdc.com.au> Message-ID: Not sure why this would work in CGI mode. shp2img is the best tool for debugging postgis layers. Well, turning on postgres logging works as well. Just a guess but I suspect a projection issue. Does your postgis data really have an SRID of 4284? You many need to change your DATA statement in the postgis layer to something like: DATA "the_geom (select * from probe) using unique oid using SRID=4284" The postgis queries below look like they are attempting to use the standard SRID of -1 or lat/lon projection. Also I don't see any EXTENT in your map file. That should throw an error. I would try getting it all to work with no projection (proj=latlong or EPGS:4326) first then start messing with the projections. Eric On Sat, 2006-03-18 at 01:15, Stephen Davies wrote: > Thanks for the feedback. > > Turning on PostgreSQL logging did indeed reveal more information. > However, it leaves even more confused than before. > > It seems that the underlying cause of my results is that the extent > being used by mapscript bears no relation to the extent that I > specified. > > Here is the sql statement generated from mapscript: > > 2006-03-18 16:22:47 CST LOG: 00000: duration: 33.759 ms statement: > DECLARE mycursor BINARY CURSOR FOR SELECT > location::text,asbinary(force_collection(force_2d(geom)),'NDR'),id::text > from probe WHERE geom && setSRID('BOX3D(139.522253226183 > -0.000314231148091942,139.522253452601 -0.000314003203767908)'::BOX3D, > find_srid('','probe','geom') ) > > The actual extent specified (and the one that works from CGI mapserv) > was: > > 139.5143351 -34.7459112 139.5278707 -34.7207064 > > The "correct" query as generated by a CGI call with the above mapext is: > > 2006-03-18 16:11:57 CST LOG: 00000: duration: 33.703 ms statement: > DECLARE mycursor BINARY CURSOR FOR SELECT > location::text,asbinary(force_collection(force_2d > (geom)),'NDR'),id::text from probe WHERE geom && > setSRID('BOX3D(139.508530404246 -34.7456930137356,139.533675395754 > -34.7204885334377)'::BOX3D, find_srid('','probe','geom') ) > > Again the extent is changed but nowhere as drastically. > > I then tried hard-wiring the extent into the map file and removing the > mapext argument from the CGI call and got the same result and the same > query. > > I then modified my PERL script to use the extent in the map file and > again got the same result and the same query generated. > > It looks as if the mapscript setExtent method does something strange and > different from the CGI mapext option and that both do strange things > with extent statements in map files in some circumstances. > > I tried changing the UNITS to DD but this made no difference (METERS is > required to make reference maps etc work properly in the CGI world.) > > Cheers, > Stephen > > On Friday 17 March 2006 23:42, Simpson wrote: > > Stephen, > > > > You might try checking the Postgresql logs to see if Mapserver is > > connecting and requesting data. Turn on statement logging in > > Postgresql config to get details of exactly what is being sent. You > > can then run the statement from psql to see if it is returning what > > you expect. > > > > Drew. > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Stephen Davies > > Sent: Friday, March 17, 2006 12:48 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] PERL/Mapscript postGIS examples? > > > > > > Could somebody please send me or point me at an example of a > > PERL/Mapscript script that displays layers populated from a postGIS > > database and/or raster layers? > > The following PERL/Mapscript and map file generates an image > > containing only the copyright layer. > > Exactly the same map file with mapserver invoked as CGI generates all > > layers. > > (In both cases the extent is provided as args. > > eg ./genpics q 1 jpg 139.5143351 -34.7459112 139.5278707 -34.7207064) > > > > Cheers and thanks, > > Stephen Davies > > > > #! /usr/bin/perl > > # > > # args are UID (for mapfile), pic sequence #, image type (extension), > > extent > > # > > use strict; > > #use CGI; > > use mapscript; > > my $uno = $ARGV[0]; > > my $seq = $ARGV[1]; > > my $ext = $ARGV[2]; > > my $minx = $ARGV[3]; > > my $miny = $ARGV[4]; > > my $maxx = $ARGV[5]; > > my $maxy = $ARGV[6]; > > # > > # if sequence = 1, create/empty directory (ignoring errors) > > # > > if ($seq == 1){ > > mkdir("/var/www/html/status_images/$uno",0777); > > unlink ; > > } > > # > > my $mapfile = "/tmp/$uno.map"; > > my $map = mapscript::mapObj->new($mapfile); > > my $i=$map->setExtent($minx,$miny,$maxx,$maxy); > > # > > #my $img = $map->prepareImage(); > > my $img = $map->draw(); > > my $fname = "/var/www/html/status_images/$uno/$seq.$ext"; > > $img->save($fname); > > =================================================== > > MAP > > NAME perltest > > > > > > PROJECTION > > "proj=eqc" > > "lon_0=139.521e" > > END > > > > SIZE 600 600 > > FONTSET "/var/www/html/benparts/fonts.list" > > SYMBOLSET "/var/www/html/benparts/symbols" > > UNITS METERS > > IMAGETYPE jpeg > > OUTPUTFORMAT > > NAME jpeg > > DRIVER "GD/JPEG" > > MIMETYPE "image/jpeg" > > IMAGEMODE RGB > > EXTENSION "jpg" > > FORMATOPTION "QUALITY=75" > > END > > IMAGECOLOR 255 255 255 > > > > WEB > > template /var/www/html/benparts/templates/test1.html > > imagepath "/var/www/html/tmp/" > > imageurl "/tmp/" > > END > > > > LAYER > > TYPE RASTER > > NAME "bkgrnd" > > STATUS DEFAULT > > PROJECTION > > "init=epsg:28354" > > END > > DATA "/var/www/html/benparts/rasters/walker.ecw" > > # OFFSITE 0 0 0 > > PROCESSING "DITHER=YES" > > END > > > > LAYER > > CONNECTIONTYPE postgis > > NAME "probe" > > DATA "geom from probe" > > CONNECTION "user=scldad dbname=benparts" > > STATUS DEFAULT > > TYPE POINT > > # FILTER "id in (0)" > > PROJECTION > > "init=epsg:4284" > > END > > MAXSCALE 5000000 > > LABELITEM "location" > > CLASS > > NAME "Probe (Right Click to select)" > > STYLE > > COLOR 0 214 0 > > SYMBOL 'circle' > > SIZE 7 > > END > > LABEL > > MINDISTANCE 15 > > POSITION CR > > SIZE SMALL > > COLOR 0 0 0 > > FORCE TRUE > > END > > END > > END > > > > LAYER > > NAME 'copyright' > > TYPE ANNOTATION > > STATUS DEFAULT > > TRANSFORM FALSE # coordinates are in pixels > > FEATURE > > POINTS 10 595 END > > END > > CLASS > > LABEL > > TYPE TRUETYPE > > FONT arial > > SIZE 8 > > COLOR 255 0 0 > > POSITION CR > > END > > TEXT 'Photography supplied by MAPLAND, Environment > > Information, Dept Environment & Heritage' > > END > > END > > END > > -- > > ===================================================================== > >=== This email is for the person(s) identified above, and is > > confidential to the sender and the person(s). No one else is > > authorised to use or disseminate this email or its contents. > > > > Stephen Davies Consulting Voice: 08-8177 > > 1595 Adelaide, South Australia. Fax: > > 08-8177 0133 Computing & Network solutions. > > Mobile:0403 0405 83 > > -- > ======================================================================== > This email is for the person(s) identified above, and is confidential to > the sender and the person(s). No one else is authorised to use or > disseminate this email or its contents. > > Stephen Davies Consulting Voice: 08-8177 1595 > Adelaide, South Australia. Fax: 08-8177 0133 > Computing & Network solutions. Mobile:0403 0405 83 From woklist at KYNGCHAOS.COM Mon Mar 20 15:17:38 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Mon, 20 Mar 2006 17:17:38 -0600 Subject: Mac OS X installers Panther vs Tiger Message-ID: Sorry for the cross-post. I'm working on some ideas on simplifying my Mac OS X installers. Currently I make the Panther and Tiger versions as separate binaries on separate Macs. This provides full developer usability on both systems for other software to use (qgis, grass, ...) but is quite a chore to maintain. I have a poll on my site for options I'm looking at - varying degrees of Panther support and simplicity for me. Current Mac users (users and developers) of my installers, and would-be users, please give a vote on where I should go with this. ----- William Kyngesburye http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro From dgadoury at DMSOLUTIONS.CA Mon Mar 20 15:36:57 2006 From: dgadoury at DMSOLUTIONS.CA (Dean Gadoury) Date: Mon, 20 Mar 2006 18:36:57 -0500 Subject: open source font Message-ID: Hi, Does anyone know of an open source font that includes a serif italics face? Dean -------------- next part -------------- An HTML attachment was scrubbed... URL: From rtaylor at COVE.COM Mon Mar 20 16:30:39 2006 From: rtaylor at COVE.COM (Richard Taylor) Date: Mon, 20 Mar 2006 19:30:39 -0500 Subject: displaying layers without having legend label Message-ID: hello LIST MapServer Question would like to show relatively small (1x1m) images when zoomed in and markers at those locations when zoomed out at larger scales, so that the user can see many markers when zoomed out, and pick one to zoom into. how do i have only one legend label for each point and image? as opposed to a legend label for the marker and a legend label for the image. this takes up twice the required screen real estate another way to get at this is, in a larger context, is it possible to display a layer without having the layer label in the legend? thanks in advance richard From woklist at KYNGCHAOS.COM Mon Mar 20 17:11:17 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Mon, 20 Mar 2006 19:11:17 -0600 Subject: Mac OS X installers Panther vs Tiger In-Reply-To: <9E30DA99-D6D5-48A7-A99C-38BFC128DB30@eogeo.org> Message-ID: Well, I've been considering Python mapscript. Things that have been stalling me are: - waiting for the Universal MacPython - recent focus on getting everything Universal - I wasn't sure of the status/stability/feature parity of python mapscript - I forgot (that universal thing, again, pushed a lot to the back of my mind) I have built it before as a test. What's the problem with PROJ? My installers include proj 4.4.9, is there a some build error? On Mar 20, 2006, at 5:31 PM, Allan Doyle wrote: > First of all, thanks for the great packages! > > I just voted for Tiger-only. But I'm a pretty small-potatoes user, > I suspect your poll may get skewed by that kind of thing. > > However, as long as you're asking, I did run into trouble the other > day not being able to build python mapscript after having installed > all the Mac packages. I wrote this up: > > http://www.eogeo.org/Members/adoyle/ad-snippets/pymapscript-build > > If I did something really stupid, please let me know... > > Allan > ----- William Kyngesburye http://www.kyngchaos.com/ "History is an illusion caused by the passage of time, and time is an illusion caused by the passage of history." - Hitchhiker's Guide to the Galaxy From sdc at SDC.COM.AU Mon Mar 20 17:55:53 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Tue, 21 Mar 2006 12:25:53 +1030 Subject: PERL/Mapscript postGIS examples? In-Reply-To: <1142892137.10248.70.camel@ubet.gomoos.org> Message-ID: Good pick Eric. I did as you suggested and changed the projection to "latlong" and it worked - from mapscript and from CGI mapserv. (The extent is passed in as args in both cases. That's why you don't see an extent statement in the mapfile.) The question now has to be why? I only changed the one line - well replaced two with one. I then replaced the original PROJ entries in the mapfile and called setProjection("proj=latlong"); in the PERL and it worked again. The original eqc projection still works with CGI mapserv. What is different with mapscript? Cheers and thanks, Stephen On Tuesday 21 March 2006 08:32, Eric Bridger wrote: > Not sure why this would work in CGI mode. > shp2img is the best tool for debugging postgis layers. Well, turning > on postgres logging works as well. > > Just a guess but I suspect a projection issue. > > Does your postgis data really have an SRID of 4284? You many need to > change your DATA statement in the postgis layer to something like: > DATA "the_geom (select * from probe) using unique oid using > SRID=4284" > > The postgis queries below look like they are attempting to use the > standard SRID of -1 or lat/lon projection. > > Also I don't see any EXTENT in your map file. That should throw an > error. > > I would try getting it all to work with no projection (proj=latlong > or EPGS:4326) first then start messing with the projections. > > Eric > > On Sat, 2006-03-18 at 01:15, Stephen Davies wrote: > > Thanks for the feedback. > > > > Turning on PostgreSQL logging did indeed reveal more information. > > However, it leaves even more confused than before. > > > > It seems that the underlying cause of my results is that the extent > > being used by mapscript bears no relation to the extent that I > > specified. > > > > Here is the sql statement generated from mapscript: > > > > 2006-03-18 16:22:47 CST LOG: 00000: duration: 33.759 ms > > statement: DECLARE mycursor BINARY CURSOR FOR SELECT > > location::text,asbinary(force_collection(force_2d(geom)),'NDR'),id: > >:text from probe WHERE geom && setSRID('BOX3D(139.522253226183 > > -0.000314231148091942,139.522253452601 > > -0.000314003203767908)'::BOX3D, find_srid('','probe','geom') ) > > > > The actual extent specified (and the one that works from CGI > > mapserv) was: > > > > 139.5143351 -34.7459112 139.5278707 -34.7207064 > > > > The "correct" query as generated by a CGI call with the above > > mapext is: > > > > 2006-03-18 16:11:57 CST LOG: 00000: duration: 33.703 ms > > statement: DECLARE mycursor BINARY CURSOR FOR SELECT > > location::text,asbinary(force_collection(force_2d > > (geom)),'NDR'),id::text from probe WHERE geom && > > setSRID('BOX3D(139.508530404246 -34.7456930137356,139.533675395754 > > -34.7204885334377)'::BOX3D, find_srid('','probe','geom') ) > > > > Again the extent is changed but nowhere as drastically. > > > > I then tried hard-wiring the extent into the map file and removing > > the mapext argument from the CGI call and got the same result and > > the same query. > > > > I then modified my PERL script to use the extent in the map file > > and again got the same result and the same query generated. > > > > It looks as if the mapscript setExtent method does something > > strange and different from the CGI mapext option and that both do > > strange things with extent statements in map files in some > > circumstances. > > > > I tried changing the UNITS to DD but this made no difference > > (METERS is required to make reference maps etc work properly in the > > CGI world.) > > > > Cheers, > > Stephen > > > > On Friday 17 March 2006 23:42, Simpson wrote: > > > Stephen, > > > > > > You might try checking the Postgresql logs to see if Mapserver is > > > connecting and requesting data. Turn on statement logging in > > > Postgresql config to get details of exactly what is being sent. > > > You can then run the statement from psql to see if it is > > > returning what you expect. > > > > > > Drew. > > > > > > -----Original Message----- > > > From: UMN MapServer Users List > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Stephen Davies > > > Sent: Friday, March 17, 2006 12:48 AM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: [UMN_MAPSERVER-USERS] PERL/Mapscript postGIS examples? > > > > > > > > > Could somebody please send me or point me at an example of a > > > PERL/Mapscript script that displays layers populated from a > > > postGIS database and/or raster layers? > > > The following PERL/Mapscript and map file generates an image > > > containing only the copyright layer. > > > Exactly the same map file with mapserver invoked as CGI generates > > > all layers. > > > (In both cases the extent is provided as args. > > > eg ./genpics q 1 jpg 139.5143351 -34.7459112 139.5278707 > > > -34.7207064) > > > > > > Cheers and thanks, > > > Stephen Davies > > > > > > #! /usr/bin/perl > > > # > > > # args are UID (for mapfile), pic sequence #, image type > > > (extension), extent > > > # > > > use strict; > > > #use CGI; > > > use mapscript; > > > my $uno = $ARGV[0]; > > > my $seq = $ARGV[1]; > > > my $ext = $ARGV[2]; > > > my $minx = $ARGV[3]; > > > my $miny = $ARGV[4]; > > > my $maxx = $ARGV[5]; > > > my $maxy = $ARGV[6]; > > > # > > > # if sequence = 1, create/empty directory (ignoring errors) > > > # > > > if ($seq == 1){ > > > mkdir("/var/www/html/status_images/$uno",0777); > > > unlink ; > > > } > > > # > > > my $mapfile = "/tmp/$uno.map"; > > > my $map = mapscript::mapObj->new($mapfile); > > > my $i=$map->setExtent($minx,$miny,$maxx,$maxy); > > > # > > > #my $img = $map->prepareImage(); > > > my $img = $map->draw(); > > > my $fname = "/var/www/html/status_images/$uno/$seq.$ext"; > > > $img->save($fname); > > > =================================================== > > > MAP > > > NAME perltest > > > > > > > > > PROJECTION > > > "proj=eqc" > > > "lon_0=139.521e" > > > END > > > > > > SIZE 600 600 > > > FONTSET "/var/www/html/benparts/fonts.list" > > > SYMBOLSET "/var/www/html/benparts/symbols" > > > UNITS METERS > > > IMAGETYPE jpeg > > > OUTPUTFORMAT > > > NAME jpeg > > > DRIVER "GD/JPEG" > > > MIMETYPE "image/jpeg" > > > IMAGEMODE RGB > > > EXTENSION "jpg" > > > FORMATOPTION "QUALITY=75" > > > END > > > IMAGECOLOR 255 255 255 > > > > > > WEB > > > template /var/www/html/benparts/templates/test1.html > > > imagepath "/var/www/html/tmp/" > > > imageurl "/tmp/" > > > END > > > > > > LAYER > > > TYPE RASTER > > > NAME "bkgrnd" > > > STATUS DEFAULT > > > PROJECTION > > > "init=epsg:28354" > > > END > > > DATA "/var/www/html/benparts/rasters/walker.ecw" > > > # OFFSITE 0 0 0 > > > PROCESSING "DITHER=YES" > > > END > > > > > > LAYER > > > CONNECTIONTYPE postgis > > > NAME "probe" > > > DATA "geom from probe" > > > CONNECTION "user=scldad dbname=benparts" > > > STATUS DEFAULT > > > TYPE POINT > > > # FILTER "id in (0)" > > > PROJECTION > > > "init=epsg:4284" > > > END > > > MAXSCALE 5000000 > > > LABELITEM "location" > > > CLASS > > > NAME "Probe (Right Click to select)" > > > STYLE > > > COLOR 0 214 0 > > > SYMBOL 'circle' > > > SIZE 7 > > > END > > > LABEL > > > MINDISTANCE 15 > > > POSITION CR > > > SIZE SMALL > > > COLOR 0 0 0 > > > FORCE TRUE > > > END > > > END > > > END > > > > > > LAYER > > > NAME 'copyright' > > > TYPE ANNOTATION > > > STATUS DEFAULT > > > TRANSFORM FALSE # coordinates are in pixels > > > FEATURE > > > POINTS 10 595 END > > > END > > > CLASS > > > LABEL > > > TYPE TRUETYPE > > > FONT arial > > > SIZE 8 > > > COLOR 255 0 0 > > > POSITION CR > > > END > > > TEXT 'Photography supplied by MAPLAND, Environment > > > Information, Dept Environment & Heritage' > > > END > > > END > > > END > > > -- > > > ================================================================= > > >==== === This email is for the person(s) identified above, and is > > > confidential to the sender and the person(s). No one else is > > > authorised to use or disseminate this email or its contents. > > > > > > Stephen Davies Consulting Voice: > > > 08-8177 1595 Adelaide, South Australia. > > > Fax: 08-8177 0133 Computing & Network solutions. > > > Mobile:0403 0405 83 > > > > -- > > =================================================================== > >===== This email is for the person(s) identified above, and is > > confidential to the sender and the person(s). No one else is > > authorised to use or disseminate this email or its contents. > > > > Stephen Davies Consulting Voice: 08-8177 > > 1595 Adelaide, South Australia. Fax: > > 08-8177 0133 Computing & Network solutions. > > Mobile:0403 0405 83 -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From adoyle at EOGEO.ORG Mon Mar 20 18:47:34 2006 From: adoyle at EOGEO.ORG (Allan Doyle) Date: Mon, 20 Mar 2006 21:47:34 -0500 Subject: Fwd: [UMN_MAPSERVER-USERS] Mac OS X installers Panther vs Tiger In-Reply-To: <69c79c180603201845x7cd234b1q41fa3536961c9203@mail.gmail.com> Message-ID: drat. I sent this fromthe wrong email acct... ---------- Forwarded message ---------- From: Allan Doyle Date: Mar 20, 2006 9:45 PM Subject: Re: [UMN_MAPSERVER-USERS] Mac OS X installers Panther vs Tiger To: William Kyngesburye Cc: mapserver-users at lists.umn.edu On 3/20/06, William Kyngesburye wrote: > Well, I've been considering Python mapscript. Things that have been > stalling me are: > > - waiting for the Universal MacPython > > - recent focus on getting everything Universal > > - I wasn't sure of the status/stability/feature parity of python > mapscript > > - I forgot (that universal thing, again, pushed a lot to the back of > my mind) > > I have built it before as a test. What's the problem with PROJ? My > installers include proj 4.4.9, is there a some build error? I don't think there's a build error, but to build python mapscript, simply using --with-proj=/usr/local/gislibs does not work. So I built proj and installed it into a dummy location so that the mapscript for python build would be able to pick it up. Allan > > > On Mar 20, 2006, at 5:31 PM, Allan Doyle wrote: > > > First of all, thanks for the great packages! > > > > I just voted for Tiger-only. But I'm a pretty small-potatoes user, > > I suspect your poll may get skewed by that kind of thing. > > > > However, as long as you're asking, I did run into trouble the other > > day not being able to build python mapscript after having installed > > all the Mac packages. I wrote this up: > > > > http://www.eogeo.org/Members/adoyle/ad-snippets/pymapscript-build > > > > If I did something really stupid, please let me know... > > > > Allan > > > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "History is an illusion caused by the passage of time, and time is an > illusion caused by the passage of history." > > - Hitchhiker's Guide to the Galaxy > > From woklist at KYNGCHAOS.COM Mon Mar 20 20:08:34 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Mon, 20 Mar 2006 22:08:34 -0600 Subject: Mac OS X installers Panther vs Tiger In-Reply-To: <69c79c180603201845x7cd234b1q41fa3536961c9203@mail.gmail.com> Message-ID: Ah. That's an odd issue with MapServer's configure script. It checks for static libraries for many things, including proj. I don't include static libraries in my packages. I edit configure to check for dynamic libraries instead. If you use BBEdit or TextWrangler, I use this find/replace: grep: (lib(png|jpeg|gd|proj|pdf|Xpm)).a with: \1.dylib Also, just to make sure to use the libXpm in my GraphicsLibs, replace all '-lX11' in configure with nothing (that is, delete -lX11). It should affect more than just proj (see the grep line above), but maybe you have built some of the other dependencies in /usr/local in the past? On Mar 20, 2006, at 8:45 PM, Allan Doyle wrote: > On 3/20/06, William Kyngesburye wrote: >> Well, I've been considering Python mapscript. Things that have been >> stalling me are: >> >> - waiting for the Universal MacPython >> >> - recent focus on getting everything Universal >> >> - I wasn't sure of the status/stability/feature parity of python >> mapscript >> >> - I forgot (that universal thing, again, pushed a lot to the back of >> my mind) >> >> I have built it before as a test. What's the problem with PROJ? My >> installers include proj 4.4.9, is there a some build error? > > I don't think there's a build error, but to build python mapscript, > simply using --with-proj=/usr/local/gislibs does not work. So I built > proj and installed it into a dummy location so that the mapscript for > python build would be able to pick it up. > > Allan > >> >> >> On Mar 20, 2006, at 5:31 PM, Allan Doyle wrote: >> >>> First of all, thanks for the great packages! >>> >>> I just voted for Tiger-only. But I'm a pretty small-potatoes user, >>> I suspect your poll may get skewed by that kind of thing. >>> >>> However, as long as you're asking, I did run into trouble the other >>> day not being able to build python mapscript after having installed >>> all the Mac packages. I wrote this up: >>> >>> http://www.eogeo.org/Members/adoyle/ad-snippets/pymapscript-build >>> >>> If I did something really stupid, please let me know... >>> >>> Allan >>> >> >> ----- >> William Kyngesburye >> http://www.kyngchaos.com/ >> >> "History is an illusion caused by the passage of time, and time is an >> illusion caused by the passage of history." >> >> - Hitchhiker's Guide to the Galaxy >> >> ----- William Kyngesburye http://www.kyngchaos.com/ "I ache, therefore I am. Or in my case - I am, therefore I ache." - Marvin From steve.lime at DNR.STATE.MN.US Mon Mar 20 21:05:43 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 20 Mar 2006 23:05:43 -0600 Subject: displaying layers without having legend label Message-ID: If you don't want a layer in a legend then don't give any of its classes names. Steve >>> Richard Taylor 03/20/06 6:30 PM >>> hello LIST MapServer Question would like to show relatively small (1x1m) images when zoomed in and markers at those locations when zoomed out at larger scales, so that the user can see many markers when zoomed out, and pick one to zoom into. how do i have only one legend label for each point and image? as opposed to a legend label for the marker and a legend label for the image. this takes up twice the required screen real estate another way to get at this is, in a larger context, is it possible to display a layer without having the layer label in the legend? thanks in advance richard From baas at SPEERIT.NL Tue Mar 21 01:32:15 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Tue, 21 Mar 2006 10:32:15 +0100 Subject: Architecture for Enterprise Backend In-Reply-To: <60c6835d0603200506h110cd340qd5534124ae5b8d89@mail.gmail.com> Message-ID: Shoaib Burq wrote: > I have a question which I am have difficulty putting in words but I'll > try anyway... > > Can anyone suggest how large data vendors organise their raster and > vector data with the view of having the flexibility to update, > reorganise, manage and search/query. How can this process be automated > using the various OS GIS components (e.g. PostGIS, Mapserver, etc). > Are data sets divide into categories. How does one deal with temporal > variability over the same extents? Is their an ideal way of organising > the data on disk? How should the various mapserver components like > Mapfiles be organised internally and on disk? Understandably it could > get very ugly as data increases. > >>From my limited experience I am thinking of some categories like: I hope I didn't understand your wrong, of course. But we currently have all the data in TAB files (static), but also in an Oracle database. Then you have all the performance and freedom you want. -- Jelmer From simon at SIBERN.COM.AU Tue Mar 21 02:11:09 2006 From: simon at SIBERN.COM.AU (Simon Haddon) Date: Tue, 21 Mar 2006 04:11:09 -0600 Subject: Architecture for Enterprise Backend Message-ID: On Tue, 21 Mar 2006 00:06:12 +1100, Shoaib Burq wrote: >Hi > >I have a question which I am have difficulty putting in words but I'll >try anyway... > >Can anyone suggest how large data vendors organise their raster and >vector data with the view of having the flexibility to update, >reorganise, manage and search/query. How can this process be automated >using the various OS GIS components (e.g. PostGIS, Mapserver, etc). >Are data sets divide into categories. How does one deal with temporal >variability over the same extents? Is their an ideal way of organising >the data on disk? How should the various mapserver components like >Mapfiles be organised internally and on disk? Understandably it could >get very ugly as data increases. At Bureau of Regional Sciences we are currently building a site for drought assessment which involved a large number of data sets. Data sets are updated at different intervals depending on the type of data and are stored in PostGIS and on the file system depending on the type and putpose of the data. We have ended up building an application database (as separate the the data sets) to drive the many layers and the time series data which has given us alot of flexibility on where and how we store the data. A simple database structure that links products->layers->datasets means that we can have many datasets that make up a layer and can also give us the location of the dataset at runtime so we can alter the data acording to date parameters entered by the user. This format also means that we can use the dataset table as a reference to the actual datasets stored in the database and how to perform data queries on them without knowing in advance what columns they have. We use the same table for the file system. Each time we get a new dataset then a new entry goes in the dataset table with a relative path to the data on the file system or a reference to the data in a table. The categorisation has been treated as a 1->many link to the layers table as we use categories to help display the layers in some sort of meanful context but that is all it does. Cheers, Simon Haddon >[snipped] > >Then having some way of mapping their spatial locations and locations >on disk along with metadata info into PostGIS tables. > >I'd like to get some feedback from anyone who has had similar experience > >thanks in advance >shoaib From baas at SPEERIT.NL Tue Mar 21 02:27:21 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Tue, 21 Mar 2006 11:27:21 +0100 Subject: Improving Performance... {Scanned} In-Reply-To: Message-ID: Rahkonen Jukka wrote: > Hi Jelmer, > > I made a quick test with one shapefile of size 580 MB containing 1.2 > million polygons. Shptree (from FW Tools 0.9.8) with default > parameters took 2 min 30 secs to run with 3 GHz Pentium and Windows > XP and memory usage grew not more than 200-300 MB during the process. > Of my 1 GB I had all the time more than 500 free. The idle usage > seems to be around 200 MB. Hmm, for some reason the file that I mentioned earlyer DOES work. I probably used a different file for testing, though I can't remember which one. Can you comfirm if the SHP+index is faster than the .TAB file? -- Jelmer From D.Stone at ED.AC.UK Tue Mar 21 02:34:15 2006 From: D.Stone at ED.AC.UK (Dave Stone) Date: Tue, 21 Mar 2006 04:34:15 -0600 Subject: Tutorial / 500 Internal Server Error Message-ID: Brilliant!! Thanks for sorting that, Perry. Thought I'd completely lost the plot for a while there. Dave From dpinte at ITAE.BE Tue Mar 21 02:57:46 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Tue, 21 Mar 2006 11:57:46 +0100 Subject: mapserver / oracle 10g /debian Message-ID: Hi, Does someone here have already tried a Debian/Sarge with Oracle 10g and MapServer installation ? I only read things about Oracle and MapServer on Windows. Any success stories ? Thank you, Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From Jukka.Rahkonen at MMMTIKE.FI Tue Mar 21 03:32:37 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Tue, 21 Mar 2006 13:32:37 +0200 Subject: VS: [UMN_MAPSERVER-USERS] Improving Performance... {Scanned} Message-ID: Jelmer Wrote >Rahkonen Jukka wrote: >> Hi Jelmer, > >> I made a quick test with one shapefile of size 580 MB containing 1.2 >> million polygons. Shptree (from FW Tools 0.9.8) with default >> parameters took 2 min 30 secs to run with 3 GHz Pentium and Windows >> XP and memory usage grew not more than 200-300 MB during the process. >> Of my 1 GB I had all the time more than 500 free. The idle usage >> seems to be around 200 MB. >Hmm, for some reason the file that I mentioned earlyer DOES work. I >probably used a different file for testing, though I can't remember >which one. >Can you comfirm if the SHP+index is faster than the .TAB file? I fear it is not that easy to say, but a bit better study should be planned. It is easy to set up a layer with 1.2 million polygons and ask Mapserver to render it to a window of 800 by 800 pixels. I have also it and Mapserver failed. I know as well that it can draw me something like 200000 polygons without a trouble, but I think neither of these tests do not have any real meaning despite that it is nice to to know where the limits are. Even in the latter case there are only about 3 screen pixels on average for drawing each polygon and it means that the user for sure cannot see them all. The screen would look about the same with 20000 polygons only, and with 2000 polygons the user might see some usable information as well. I believe that some usable numbers about the differences in performance could be achieved if you could first try to find the largest realistic view on the screen and then perform for example 50 ramdom map searches without changing the scale. Of course you should have no other layers in the map but only either .TAB or .SHP layer. I believe both alternatives are rather fast if you draw only for example 5000-10000 features at the time, but this is just my guess. -Jukka Rahkonen- From fsimon at UNIVALI.BR Tue Mar 21 03:53:33 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Tue, 21 Mar 2006 08:53:33 -0300 Subject: mapserver / oracle 10g /debian In-Reply-To: <1142938666.5068.28.camel@geru-itae> Message-ID: Hi Didrik, Mapserver can work with UNIX/Linux without problems. Here I already used with: Suse, RedHat, Slackware, Conectiva and HpUX. You need the OCI (Oracle Call Interface) installed in your system. Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Didrik Pinte wrote: > Hi, > > Does someone here have already tried a Debian/Sarge with Oracle 10g and > MapServer installation ? > > I only read things about Oracle and MapServer on Windows. > > Any success stories ? > > Thank you, > > Didrik > From dpinte at ITAE.BE Tue Mar 21 04:40:18 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Tue, 21 Mar 2006 13:40:18 +0100 Subject: mapserver / oracle 10g /debian In-Reply-To: <441FE93D.7010207@univali.br> Message-ID: Le mardi 21 mars 2006 ? 08:53 -0300, Fernando Simon a ?crit : > Hi Didrik, > Mapserver can work with UNIX/Linux without problems. > Here I already used with: Suse, RedHat, Slackware, Conectiva and > HpUX. You need the OCI (Oracle Call Interface) installed in your system. > Best regards. Hi Fernando, My question was focused on Oracle/MapServer interaction under linux. I'm very happy using MapServer with Postgis but one of my client absolutely wants Oracle. That's why ... ;-) Is OCI mandatory ? I've read here http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto that you only need OCI when accessing oracle datasets with OGR ? Best regards, Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From bartvde at XS4ALL.NL Tue Mar 21 05:36:03 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 21 Mar 2006 14:36:03 +0100 Subject: mapserver / oracle 10g /debian In-Reply-To: <1142944818.5068.35.camel@geru-itae> Message-ID: Yes, OCI is mandatory. For both the Mapserver native Oracle Spatial connector, as well as OGR. Best regards, Bart > Le mardi 21 mars 2006 ? 08:53 -0300, Fernando Simon a ?crit : >> Hi Didrik, >> Mapserver can work with UNIX/Linux without problems. >> Here I already used with: Suse, RedHat, Slackware, Conectiva and >> HpUX. You need the OCI (Oracle Call Interface) installed in your system. >> Best regards. > > Hi Fernando, > > My question was focused on Oracle/MapServer interaction under linux. I'm > very happy using MapServer with Postgis but one of my client absolutely > wants Oracle. That's why ... ;-) > > Is OCI mandatory ? I've read here > http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto that you > only need OCI when accessing oracle datasets with OGR ? > > Best regards, > > Didrik > From eric at GOMOOS.ORG Tue Mar 21 05:53:53 2006 From: eric at GOMOOS.ORG (Eric Bridger) Date: Tue, 21 Mar 2006 08:53:53 -0500 Subject: PERL/Mapscript postGIS examples? In-Reply-To: <200603211225.53494.sdc@sdc.com.au> Message-ID: I think the question is what does postgis think the srid is? select srid from geometry_columns where f_table_name = 'probe'; On Mon, 2006-03-20 at 20:55, Stephen Davies wrote: > Good pick Eric. > > I did as you suggested and changed the projection to "latlong" and it > worked - from mapscript and from CGI mapserv. > > (The extent is passed in as args in both cases. That's why you don't see > an extent statement in the mapfile.) > > The question now has to be why? > I only changed the one line - well replaced two with one. > > I then replaced the original PROJ entries in the mapfile and called > setProjection("proj=latlong"); in the PERL and it worked again. > > The original eqc projection still works with CGI mapserv. > > What is different with mapscript? > > Cheers and thanks, > Stephen > > On Tuesday 21 March 2006 08:32, Eric Bridger wrote: > > Not sure why this would work in CGI mode. > > shp2img is the best tool for debugging postgis layers. Well, turning > > on postgres logging works as well. > > > > Just a guess but I suspect a projection issue. > > > > Does your postgis data really have an SRID of 4284? You many need to > > change your DATA statement in the postgis layer to something like: > > DATA "the_geom (select * from probe) using unique oid using > > SRID=4284" > > > > The postgis queries below look like they are attempting to use the > > standard SRID of -1 or lat/lon projection. > > > > Also I don't see any EXTENT in your map file. That should throw an > > error. > > > > I would try getting it all to work with no projection (proj=latlong > > or EPGS:4326) first then start messing with the projections. > > > > Eric > > > > On Sat, 2006-03-18 at 01:15, Stephen Davies wrote: > > > Thanks for the feedback. > > > > > > Turning on PostgreSQL logging did indeed reveal more information. > > > However, it leaves even more confused than before. > > > > > > It seems that the underlying cause of my results is that the extent > > > being used by mapscript bears no relation to the extent that I > > > specified. > > > > > > Here is the sql statement generated from mapscript: > > > > > > 2006-03-18 16:22:47 CST LOG: 00000: duration: 33.759 ms > > > statement: DECLARE mycursor BINARY CURSOR FOR SELECT > > > location::text,asbinary(force_collection(force_2d(geom)),'NDR'),id: > > >:text from probe WHERE geom && setSRID('BOX3D(139.522253226183 > > > -0.000314231148091942,139.522253452601 > > > -0.000314003203767908)'::BOX3D, find_srid('','probe','geom') ) > > > > > > The actual extent specified (and the one that works from CGI > > > mapserv) was: > > > > > > 139.5143351 -34.7459112 139.5278707 -34.7207064 > > > > > > The "correct" query as generated by a CGI call with the above > > > mapext is: > > > > > > 2006-03-18 16:11:57 CST LOG: 00000: duration: 33.703 ms > > > statement: DECLARE mycursor BINARY CURSOR FOR SELECT > > > location::text,asbinary(force_collection(force_2d > > > (geom)),'NDR'),id::text from probe WHERE geom && > > > setSRID('BOX3D(139.508530404246 -34.7456930137356,139.533675395754 > > > -34.7204885334377)'::BOX3D, find_srid('','probe','geom') ) > > > > > > Again the extent is changed but nowhere as drastically. > > > > > > I then tried hard-wiring the extent into the map file and removing > > > the mapext argument from the CGI call and got the same result and > > > the same query. > > > > > > I then modified my PERL script to use the extent in the map file > > > and again got the same result and the same query generated. > > > > > > It looks as if the mapscript setExtent method does something > > > strange and different from the CGI mapext option and that both do > > > strange things with extent statements in map files in some > > > circumstances. > > > > > > I tried changing the UNITS to DD but this made no difference > > > (METERS is required to make reference maps etc work properly in the > > > CGI world.) > > > > > > Cheers, > > > Stephen > > > > > > On Friday 17 March 2006 23:42, Simpson wrote: > > > > Stephen, > > > > > > > > You might try checking the Postgresql logs to see if Mapserver is > > > > connecting and requesting data. Turn on statement logging in > > > > Postgresql config to get details of exactly what is being sent. > > > > You can then run the statement from psql to see if it is > > > > returning what you expect. > > > > > > > > Drew. > > > > > > > > -----Original Message----- > > > > From: UMN MapServer Users List > > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Stephen Davies > > > > Sent: Friday, March 17, 2006 12:48 AM > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > Subject: [UMN_MAPSERVER-USERS] PERL/Mapscript postGIS examples? > > > > > > > > > > > > Could somebody please send me or point me at an example of a > > > > PERL/Mapscript script that displays layers populated from a > > > > postGIS database and/or raster layers? > > > > The following PERL/Mapscript and map file generates an image > > > > containing only the copyright layer. > > > > Exactly the same map file with mapserver invoked as CGI generates > > > > all layers. > > > > (In both cases the extent is provided as args. > > > > eg ./genpics q 1 jpg 139.5143351 -34.7459112 139.5278707 > > > > -34.7207064) > > > > > > > > Cheers and thanks, > > > > Stephen Davies > > > > > > > > #! /usr/bin/perl > > > > # > > > > # args are UID (for mapfile), pic sequence #, image type > > > > (extension), extent > > > > # > > > > use strict; > > > > #use CGI; > > > > use mapscript; > > > > my $uno = $ARGV[0]; > > > > my $seq = $ARGV[1]; > > > > my $ext = $ARGV[2]; > > > > my $minx = $ARGV[3]; > > > > my $miny = $ARGV[4]; > > > > my $maxx = $ARGV[5]; > > > > my $maxy = $ARGV[6]; > > > > # > > > > # if sequence = 1, create/empty directory (ignoring errors) > > > > # > > > > if ($seq == 1){ > > > > mkdir("/var/www/html/status_images/$uno",0777); > > > > unlink ; > > > > } > > > > # > > > > my $mapfile = "/tmp/$uno.map"; > > > > my $map = mapscript::mapObj->new($mapfile); > > > > my $i=$map->setExtent($minx,$miny,$maxx,$maxy); > > > > # > > > > #my $img = $map->prepareImage(); > > > > my $img = $map->draw(); > > > > my $fname = "/var/www/html/status_images/$uno/$seq.$ext"; > > > > $img->save($fname); > > > > =================================================== > > > > MAP > > > > NAME perltest > > > > > > > > > > > > PROJECTION > > > > "proj=eqc" > > > > "lon_0=139.521e" > > > > END > > > > > > > > SIZE 600 600 > > > > FONTSET "/var/www/html/benparts/fonts.list" > > > > SYMBOLSET "/var/www/html/benparts/symbols" > > > > UNITS METERS > > > > IMAGETYPE jpeg > > > > OUTPUTFORMAT > > > > NAME jpeg > > > > DRIVER "GD/JPEG" > > > > MIMETYPE "image/jpeg" > > > > IMAGEMODE RGB > > > > EXTENSION "jpg" > > > > FORMATOPTION "QUALITY=75" > > > > END > > > > IMAGECOLOR 255 255 255 > > > > > > > > WEB > > > > template /var/www/html/benparts/templates/test1.html > > > > imagepath "/var/www/html/tmp/" > > > > imageurl "/tmp/" > > > > END > > > > > > > > LAYER > > > > TYPE RASTER > > > > NAME "bkgrnd" > > > > STATUS DEFAULT > > > > PROJECTION > > > > "init=epsg:28354" > > > > END > > > > DATA "/var/www/html/benparts/rasters/walker.ecw" > > > > # OFFSITE 0 0 0 > > > > PROCESSING "DITHER=YES" > > > > END > > > > > > > > LAYER > > > > CONNECTIONTYPE postgis > > > > NAME "probe" > > > > DATA "geom from probe" > > > > CONNECTION "user=scldad dbname=benparts" > > > > STATUS DEFAULT > > > > TYPE POINT > > > > # FILTER "id in (0)" > > > > PROJECTION > > > > "init=epsg:4284" > > > > END > > > > MAXSCALE 5000000 > > > > LABELITEM "location" > > > > CLASS > > > > NAME "Probe (Right Click to select)" > > > > STYLE > > > > COLOR 0 214 0 > > > > SYMBOL 'circle' > > > > SIZE 7 > > > > END > > > > LABEL > > > > MINDISTANCE 15 > > > > POSITION CR > > > > SIZE SMALL > > > > COLOR 0 0 0 > > > > FORCE TRUE > > > > END > > > > END > > > > END > > > > > > > > LAYER > > > > NAME 'copyright' > > > > TYPE ANNOTATION > > > > STATUS DEFAULT > > > > TRANSFORM FALSE # coordinates are in pixels > > > > FEATURE > > > > POINTS 10 595 END > > > > END > > > > CLASS > > > > LABEL > > > > TYPE TRUETYPE > > > > FONT arial > > > > SIZE 8 > > > > COLOR 255 0 0 > > > > POSITION CR > > > > END > > > > TEXT 'Photography supplied by MAPLAND, Environment > > > > Information, Dept Environment & Heritage' > > > > END > > > > END > > > > END > > > > -- > > > > ================================================================= > > > >==== === This email is for the person(s) identified above, and is > > > > confidential to the sender and the person(s). No one else is > > > > authorised to use or disseminate this email or its contents. > > > > > > > > Stephen Davies Consulting Voice: > > > > 08-8177 1595 Adelaide, South Australia. > > > > Fax: 08-8177 0133 Computing & Network solutions. > > > > Mobile:0403 0405 83 > > > > > > -- > > > =================================================================== > > >===== This email is for the person(s) identified above, and is > > > confidential to the sender and the person(s). No one else is > > > authorised to use or disseminate this email or its contents. > > > > > > Stephen Davies Consulting Voice: 08-8177 > > > 1595 Adelaide, South Australia. Fax: > > > 08-8177 0133 Computing & Network solutions. > > > Mobile:0403 0405 83 > > -- > ======================================================================== > This email is for the person(s) identified above, and is confidential to > the sender and the person(s). No one else is authorised to use or > disseminate this email or its contents. > > Stephen Davies Consulting Voice: 08-8177 1595 > Adelaide, South Australia. Fax: 08-8177 0133 > Computing & Network solutions. Mobile:0403 0405 83 From cjesch at CCT.LSU.EDU Tue Mar 21 07:25:56 2006 From: cjesch at CCT.LSU.EDU (Carola Jesch) Date: Tue, 21 Mar 2006 09:25:56 -0600 Subject: Improving Performance... {Scanned} In-Reply-To: <441FD509.2040708@speerit.nl> Message-ID: Hi All, Since it seems to be an issue for more than one MapServer user to improve the performance I was wondering if anybody of you know some good sources for getting topographic features in different spatial resolutions? Lets say the roads in 1:5,000,000 1:1,000,000 1:100,000 or something like that? I actually don't know how to get such data sets. Assuming we had it it wouldn't be a problem to use scale dependency in different layers. Carola > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jelmer Baas > Sent: Tuesday, March 21, 2006 4:27 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Improving Performance... {Scanned} > > Rahkonen Jukka wrote: > > Hi Jelmer, > > > > I made a quick test with one shapefile of size 580 MB > containing 1.2 > > million polygons. Shptree (from FW Tools 0.9.8) with default > > parameters took 2 min 30 secs to run with 3 GHz Pentium and > Windows XP > > and memory usage grew not more than 200-300 MB during the process. > > Of my 1 GB I had all the time more than 500 free. The idle > usage seems > > to be around 200 MB. > > Hmm, for some reason the file that I mentioned earlyer DOES > work. I probably used a different file for testing, though I > can't remember which one. > > Can you comfirm if the SHP+index is faster than the .TAB file? > > -- > Jelmer > From atorres at ESTUDIANTES.UCI.CU Tue Mar 21 08:28:58 2006 From: atorres at ESTUDIANTES.UCI.CU (Alexander Rodriguez Torres) Date: Tue, 21 Mar 2006 11:28:58 -0500 Subject: Error load from database Message-ID: I have these error when I load my map from database. Can you help me??? **************************************************************************** msDrawMap(): Image handling error. Failed to draw layer named 'Contornos'. prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT contornos::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from contornos WHERE the_geom && setSRID('BOX3D(9387137.4 791043.7018,10119140.81 1522550.8382)'::BOX3D, find_srid('','contornos','the_geom') )' Postgresql reports the error as 'ERROR: cannot cast type contornos to text ' **************************************************************************** This is my .map MAP NAME "Mapa de la UCI" STATUS ON EXTENT 9387137.4 805683.77 10119140.81 1507910.77 SIZE 500 500 SHAPEPATH "./data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGETYPE PNG IMAGECOLOR 174 183 207 UNITS METERS TEMPLATEPATTERN "UCI" WEB MINSCALE 259371 IMAGEPATH "C:/temp/" IMAGEURL "/tmp/" HEADER "templates/header.html" FOOTER "templates/footer.html" END REFERENCE STATUS ON IMAGE "images/keymap.png" SIZE 88 69 EXTENT 9387137.4 805683.77 10119140.81 1507910.77 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 MINBOXSIZE 3 MAXBOXSIZE 0 MARKER 0 MARKERSIZE 0 END QUERYMAP STATUS OFF SIZE -1 -1 COLOR 255 0 0 STYLE HILITE END # # Start of legend object # LEGEND STATUS ON IMAGECOLOR 255 255 255 POSITION LL KEYSIZE 18 12 KEYSPACING 5 5 TEMPLATE "ttt" LABEL TYPE BITMAP SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 89 PARTIALS TRUE FORCE FALSE END END # # Start of scalebar object # SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS KILOMETERS INTERVALS 5 SIZE 150 5 STYLE 0 POSITION LL LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE TRUE END END # # Start of OutputFormat object # OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END LAYER NAME "Contornos" STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "user=postgres password=post dbname=siguci host=localhost" CLASSITEM "contornos" DATA "the_geom from contornos" TYPE POLYGON CLASS NAME "contornos" TEMPLATE "" STYLE SYMBOL 0 COLOR 0 128 0 OUTLINECOLOR 0 0 0 END END Alexander Rodr?guez Torres. Estudiante de Quinto A?o. Universidad de las Ciencias Inform?ticas. E-mail:atorres at estudiantes.uci.cu From stevem at SPATIALMAPPING.COM Tue Mar 21 09:07:54 2006 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Tue, 21 Mar 2006 11:07:54 -0600 Subject: Improving Performance... {Scanned} Message-ID: Carola: I have not personally tried it, but PostGIS provides a Simplify() function that could be used to generate simplified datasets for use at smaller scales. Quoted from the online manual (at http://postgis.refractions.net/docs/ch06.html): Simplify(geometry, tolerance) Returns a "simplified" version of the given geometry using the Douglas-Peuker algorithm. Will actually do something only with (multi)lines and (multi)polygons but you can safely call it with any kind of geometry. Since simplification occurs on a object-by-object basis you can also feed a GeometryCollection to this function. Note that returned geometry might loose its simplicity (see IsSimple). Regards, -SM -- On Tue, 21 Mar 2006 09:25:56 -0600, Carola Jesch wrote: >Hi All, >Since it seems to be an issue for more than one MapServer user to improve >the performance I was wondering if anybody of you know some good sources for >getting topographic features in different spatial resolutions? Lets say the >roads in 1:5,000,000 1:1,000,000 1:100,000 or something like that? >I actually don't know how to get such data sets. Assuming we had it it >wouldn't be a problem to use scale dependency in different layers. > >Carola > >> -----Original Message----- >> From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jelmer Baas >> Sent: Tuesday, March 21, 2006 4:27 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Improving Performance... {Scanned} >> >> Rahkonen Jukka wrote: >> > Hi Jelmer, >> > >> > I made a quick test with one shapefile of size 580 MB >> containing 1.2 >> > million polygons. Shptree (from FW Tools 0.9.8) with default >> > parameters took 2 min 30 secs to run with 3 GHz Pentium and >> Windows XP >> > and memory usage grew not more than 200-300 MB during the process. >> > Of my 1 GB I had all the time more than 500 free. The idle >> usage seems >> > to be around 200 MB. >> >> Hmm, for some reason the file that I mentioned earlyer DOES >> work. I probably used a different file for testing, though I >> can't remember which one. >> >> Can you comfirm if the SHP+index is faster than the .TAB file? >> >> -- >> Jelmer >> From David.Fawcett at STATE.MN.US Tue Mar 21 09:31:42 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 21 Mar 2006 11:31:42 -0600 Subject: Improving Performance... {Scanned} Message-ID: Carola, Another idea with roads is that you show major highways when zoomed out and increase detail as you zoom in. The best way to do this is to create separate shapefiles and layers and display them based on scale. Of course, it you just use the same roads shapefile and use classes to pull out the major highways, you are only going to slow things down even more. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steven Monai Sent: Tuesday, March 21, 2006 11:08 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Improving Performance... {Scanned} Carola: I have not personally tried it, but PostGIS provides a Simplify() function that could be used to generate simplified datasets for use at smaller scales. Quoted from the online manual (at http://postgis.refractions.net/docs/ch06.html): Simplify(geometry, tolerance) Returns a "simplified" version of the given geometry using the Douglas-Peuker algorithm. Will actually do something only with (multi)lines and (multi)polygons but you can safely call it with any kind of geometry. Since simplification occurs on a object-by-object basis you can also feed a GeometryCollection to this function. Note that returned geometry might loose its simplicity (see IsSimple). Regards, -SM -- On Tue, 21 Mar 2006 09:25:56 -0600, Carola Jesch wrote: >Hi All, >Since it seems to be an issue for more than one MapServer user to >improve the performance I was wondering if anybody of you know some >good sources for getting topographic features in different spatial >resolutions? Lets say the roads in 1:5,000,000 1:1,000,000 1:100,000 >or something like that? I actually don't know how to get such data >sets. Assuming we had it it wouldn't be a problem to use scale >dependency in different layers. > >Carola > >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> On Behalf Of Jelmer Baas >> Sent: Tuesday, March 21, 2006 4:27 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Improving Performance... {Scanned} >> >> Rahkonen Jukka wrote: >> > Hi Jelmer, >> > >> > I made a quick test with one shapefile of size 580 MB >> containing 1.2 >> > million polygons. Shptree (from FW Tools 0.9.8) with default >> > parameters took 2 min 30 secs to run with 3 GHz Pentium and >> Windows XP >> > and memory usage grew not more than 200-300 MB during the process. >> > Of my 1 GB I had all the time more than 500 free. The idle >> usage seems >> > to be around 200 MB. >> >> Hmm, for some reason the file that I mentioned earlyer DOES work. I >> probably used a different file for testing, though I can't remember >> which one. >> >> Can you comfirm if the SHP+index is faster than the .TAB file? >> >> -- >> Jelmer >> From tim at COMMENSPACE.ORG Tue Mar 21 09:37:12 2006 From: tim at COMMENSPACE.ORG (Tim Schaub) Date: Tue, 21 Mar 2006 09:37:12 -0800 Subject: filled symbols bleed at edge of map Message-ID: I've noticed that filled symbols bleed along the edge when they are intersected by the map extent. This can be seen with a filled ellipse here http://mapserver.commenspace.org/test/ellipse_filled.png With FILLED set to FALSE, the result looks better http://mapserver.commenspace.org/test/ellipse_unfilled.png I couldn't find a bug related to this, so I filed one here http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1719 Hope that's enough detail, Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: From cjohnson at REFRACTIONS.NET Tue Mar 21 09:42:46 2006 From: cjohnson at REFRACTIONS.NET (Clint Johnson) Date: Tue, 21 Mar 2006 09:42:46 -0800 Subject: Error load from database In-Reply-To: <0470B17A392EDA499A0F26DE9971ECD40160AF37@ucixs12.uci.cu> Message-ID: Take out your CLASSITEM line, or modify it so that it works. Recall that in "CLASSITEM " must be the name a column which exists within your table; not the name of the table. Clint -- Clint Johnson Refractions Research Inc. Cjohnson at refractions.net Alexander Rodriguez Torres wrote: > I have these error when I load my map from database. Can you help me??? > > **************************************************************************** > msDrawMap(): Image handling error. Failed to draw layer named 'Contornos'. > prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT contornos::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from contornos WHERE the_geom && setSRID('BOX3D(9387137.4 791043.7018,10119140.81 1522550.8382)'::BOX3D, find_srid('','contornos','the_geom') )' > > Postgresql reports the error as 'ERROR: cannot cast type contornos to text ' > **************************************************************************** > > This is my .map > > MAP > NAME "Mapa de la UCI" > STATUS ON > EXTENT 9387137.4 805683.77 10119140.81 1507910.77 > SIZE 500 500 > SHAPEPATH "./data" > SYMBOLSET "./etc/symbols.sym" > FONTSET "./etc/fonts.txt" > IMAGETYPE PNG > IMAGECOLOR 174 183 207 > UNITS METERS > TEMPLATEPATTERN "UCI" > WEB > MINSCALE 259371 > IMAGEPATH "C:/temp/" > IMAGEURL "/tmp/" > HEADER "templates/header.html" > FOOTER "templates/footer.html" > END > REFERENCE > STATUS ON > IMAGE "images/keymap.png" > SIZE 88 69 > EXTENT 9387137.4 805683.77 10119140.81 1507910.77 > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > MINBOXSIZE 3 > MAXBOXSIZE 0 > MARKER 0 > MARKERSIZE 0 > END > QUERYMAP > STATUS OFF > SIZE -1 -1 > COLOR 255 0 0 > STYLE HILITE > END > # > # Start of legend object > # > LEGEND > STATUS ON > IMAGECOLOR 255 255 255 > POSITION LL > KEYSIZE 18 12 > KEYSPACING 5 5 > TEMPLATE "ttt" > LABEL > TYPE BITMAP > SIZE MEDIUM > OFFSET 0 0 > BUFFER 0 > MINDISTANCE -1 > MINFEATURESIZE -1 > COLOR 0 0 89 > PARTIALS TRUE > FORCE FALSE > END > END > # > # Start of scalebar object > # > SCALEBAR > STATUS ON > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > BACKGROUNDCOLOR 0 0 0 > IMAGECOLOR 255 255 255 > UNITS KILOMETERS > INTERVALS 5 > SIZE 150 5 > STYLE 0 > POSITION LL > LABEL > TYPE BITMAP > SIZE SMALL > OFFSET 0 0 > BUFFER 0 > MINDISTANCE -1 > MINFEATURESIZE -1 > COLOR 0 0 0 > PARTIALS TRUE > FORCE TRUE > END > END > # > # Start of OutputFormat object > # > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "GD/PNG" > EXTENSION "png" > IMAGEMODE PC256 > TRANSPARENT FALSE > END > LAYER > NAME "Contornos" > STATUS ON > CONNECTIONTYPE POSTGIS > CONNECTION "user=postgres password=post dbname=siguci host=localhost" > CLASSITEM "contornos" > DATA "the_geom from contornos" > TYPE POLYGON > CLASS > NAME "contornos" > TEMPLATE "" > STYLE > SYMBOL 0 > COLOR 0 128 0 > OUTLINECOLOR 0 0 0 > END > > > END > > Alexander Rodr?guez Torres. > Estudiante de Quinto A?o. > Universidad de las Ciencias Inform?ticas. > E-mail:atorres at estudiantes.uci.cu > From nbarker at RSINC.COM Tue Mar 21 10:48:17 2006 From: nbarker at RSINC.COM (Norman Barker) Date: Tue, 21 Mar 2006 18:48:17 -0000 Subject: xlink:href gml property in MapServer WFS Message-ID: Hi, I am thinking of creating a shapefile in python (using gdal) to index all of the raster data I have in a file tree. Fields of the shapefile will be location, extent, access In particular for the access GML property I would like to express the GML output from MapServer WFS to include an xlink:href attribute so that this could point to either a WMS url, ftp url, arcims url etc. Is there a way to customize how MapServer delivers GML from a WFS in this way? Many thanks, Norman -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Hunter at FNF.COM Tue Mar 21 10:59:10 2006 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Tue, 21 Mar 2006 12:59:10 -0600 Subject: shptree and tileindex Message-ID: When using a combination of the shptree and tileindex utilities, does it matter which order they are ran? I have tile-indexed my data first, and then ran shptree on the individual shape files and the tileindex files. It occurred to me that the tileindex files point to the .shp files, and wondered if this is optimized. (I read somewhere that you should not specify file extensions in .map files when using quad indexes, I'm wondering if this is true also in the tileindex files.) Do I need to tileindex the shape files after quad-indexing them, and then quad-index the tileindex files, or am I obsessing over nothing? David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter at fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Tue Mar 21 11:10:32 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 21 Mar 2006 14:10:32 -0500 Subject: xlink:href gml property in MapServer WFS Message-ID: The WFS will output elements as per field names, i.e.: location access If you're looking for making the location field displayed as an XML attribute, i.e. @xlink:href, I'm not sure there's much that can be done here. MapServer WFS/GML is mostly a flat output content model. You can group fields such that they are output as such, but I don't think you can make a field output as an XML attribute. ..Tom -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Norman Barker Sent: Tuesday, March 21, 2006 1:48 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] xlink:href gml property in MapServer WFS Hi, I am thinking of creating a shapefile in python (using gdal) to index all of the raster data I have in a file tree. Fields of the shapefile will be location, extent, access In particular for the access GML property I would like to express the GML output from MapServer WFS to include an xlink:href attribute so that this could point to either a WMS url, ftp url, arcims url etc. Is there a way to customize how MapServer delivers GML from a WFS in this way? Many thanks, Norman From awiens at GMAIL.COM Tue Mar 21 11:31:41 2006 From: awiens at GMAIL.COM (Andy Wiens) Date: Tue, 21 Mar 2006 13:31:41 -0600 Subject: ruby mapscript Message-ID: Hi All, I'm trying to build the Ruby mapscript libraries on RedHat 8.0, but am getting the following error: make: *** No rule to make target `ruby.h', needed by `mapscript_wrap.o'. The steps I followed to get to this point are as follows: ./configure ... lots of options make cd mapscript/ruby ruby extconf.rb make ... this is where the error occurs Any help would be greatly appreciated. Thanks, --Andy From bartvde at XS4ALL.NL Tue Mar 21 11:41:45 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 21 Mar 2006 20:41:45 +0100 Subject: shptree and tileindex In-Reply-To: <82227F50E3BCD34F89FA1A6F46A96B5B0134C8E1@smbfnis-chi01.fnis.com> Message-ID: David, I don't think the sequence matters at all. I have found in the past that there is a problem with locating the quadtree index files if the location attribute contains the .shp extension. Use something like filemon to find out for your system and please report back to the list. Best regards, Bart Hunter, David - St. Louis Park, MN wrote: > When using a combination of the shptree and tileindex utilities, does > it matter which order they are ran? I have tile-indexed my data first, > and then ran shptree on the individual shape files and the tileindex > files. It occurred to me that the tileindex files point to the .shp > files, and wondered if this is optimized. (I read somewhere that you > should not specify file extensions in .map files when using quad > indexes, I?m wondering if this is true also in the tileindex files.) > Do I need to tileindex the shape files after quad-indexing them, and > then quad-index the tileindex files, or am I obsessing over nothing? > > *David S. Hunter* > /Sr. Software Engineer > Fidelity National Geographic Solutions > division of Fidelity National Financial > 5353 Gamble Drive, Suite 201 > St. Louis Park, MN 55416 > /? /Email: david.hunter at fnf.com > /' /Phone: 952.542.1440 ext. 256 > /7 /Fax: 952.542.3859/// > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From steve.lime at DNR.STATE.MN.US Tue Mar 21 12:07:33 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 21 Mar 2006 14:07:33 -0600 Subject: xlink:href gml property in MapServer WFS Message-ID: Actually there might be something you can do. MapServer CVS version supports a new templating capability. It basically allows you to define an adhoc string that is used to present a particular attribute (but only 1 attribute at a time right now, Tom has talked about wanting to do layer level GML templates similiar to query templates). For example, we've been working with the FGDC Framework layer schema and they support a mechanism for extending GML output. So we can do stuff like: gml_area_template "<$namespace:extended>area$value" which upon processing results in: area 1500.00 You may be able to do some funky stuff with this approach. The downside is that there's no way to construct a schema fragment for the template (short of creating a schema template which is not a bad idea) so this mechanism is intended to be used with external application schema which is something I am still working on (with Tom's help). An idea any way. Let me know if you pursue. Steve >>> "Kralidis,Tom [Burlington]" 3/21/2006 1:10:32 PM >>> The WFS will output elements as per field names, i.e.: location access If you're looking for making the location field displayed as an XML attribute, i.e. @xlink:href, I'm not sure there's much that can be done here. MapServer WFS/GML is mostly a flat output content model. You can group fields such that they are output as such, but I don't think you can make a field output as an XML attribute. ..Tom -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Norman Barker Sent: Tuesday, March 21, 2006 1:48 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] xlink:href gml property in MapServer WFS Hi, I am thinking of creating a shapefile in python (using gdal) to index all of the raster data I have in a file tree. Fields of the shapefile will be location, extent, access In particular for the access GML property I would like to express the GML output from MapServer WFS to include an xlink:href attribute so that this could point to either a WMS url, ftp url, arcims url etc. Is there a way to customize how MapServer delivers GML from a WFS in this way? Many thanks, Norman From steve.lime at DNR.STATE.MN.US Tue Mar 21 12:09:52 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 21 Mar 2006 14:09:52 -0600 Subject: filled symbols bleed at edge of map Message-ID: Thanks Tim, will have a look. This looks like a GD problem to me, but I'll try to confirm that with a GD-only test case. Does it do this along all edges or just the bottom? Steve >>> Tim Schaub 3/21/2006 11:37:12 AM >>> I've noticed that filled symbols bleed along the edge when they are intersected by the map extent. This can be seen with a filled ellipse here http://mapserver.commenspace.org/test/ellipse_filled.png With FILLED set to FALSE, the result looks better http://mapserver.commenspace.org/test/ellipse_unfilled.png I couldn't find a bug related to this, so I filed one here http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1719 Hope that's enough detail, Tim From ed at TOPOZONE.COM Tue Mar 21 12:20:11 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 21 Mar 2006 15:20:11 -0500 Subject: shptree and tileindex Message-ID: David - No, the order doesn't matter. The tileindex tells MapServer which shapefiles might possibly be needed when drawing the current map request; the shptree index is used to quickly locate objects inside a given shapefile. You can use both, either, or neither, and you can update them in any order. Remember that if you update a shapefile so that it covers a different area, you'll need to update the tileindex in order to accurately use that modified shapefile. And since the tileindex is itself a shapefile, you can use shptree to index it, too. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hunter, David - St. Louis Park, MN Sent: Tuesday, March 21, 2006 1:59 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] shptree and tileindex When using a combination of the shptree and tileindex utilities, does it matter which order they are ran? I have tile-indexed my data first, and then ran shptree on the individual shape files and the tileindex files. It occurred to me that the tileindex files point to the .shp files, and wondered if this is optimized. (I read somewhere that you should not specify file extensions in .map files when using quad indexes, I'm wondering if this is true also in the tileindex files.) Do I need to tileindex the shape files after quad-indexing them, and then quad-index the tileindex files, or am I obsessing over nothing? David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter at fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From condit at SDSC.EDU Tue Mar 21 12:27:52 2006 From: condit at SDSC.EDU (Christopher Condit) Date: Tue, 21 Mar 2006 12:27:52 -0800 Subject: filled symbols bleed at edge of map Message-ID: Hi Steve- I'm very interested in this bug, as I am having the same problem with an Oracle Spatial layer through my WMS server. To answer your question: in my application, I've only seen this occur on bottom edge of a tile. If a point intersects the top, right, or left edge, it is truncated properly, even when filled. Thanks, Chris -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime Sent: Tuesday, March 21, 2006 12:10 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] filled symbols bleed at edge of map Thanks Tim, will have a look. This looks like a GD problem to me, but I'll try to confirm that with a GD-only test case. Does it do this along all edges or just the bottom? Steve >>> Tim Schaub 3/21/2006 11:37:12 AM >>> I've noticed that filled symbols bleed along the edge when they are intersected by the map extent. This can be seen with a filled ellipse here http://mapserver.commenspace.org/test/ellipse_filled.png With FILLED set to FALSE, the result looks better http://mapserver.commenspace.org/test/ellipse_unfilled.png I couldn't find a bug related to this, so I filed one here http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1719 Hope that's enough detail, Tim From kenlord at GMAIL.COM Tue Mar 21 12:53:46 2006 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 21 Mar 2006 12:53:46 -0800 Subject: filled symbols bleed at edge of map In-Reply-To: <845AADAC1106E44996327D62097E4C6B8AA185@et.ad.sdsc.edu> Message-ID: Hi List, I've seen the same problem affecting legend icons when the symbol is bigger than the size of the icon, again along the bottom. http://cariboo-gold.no-ip.info/ -- Turn on the BC Minfile layer, found in the 'Exploration Layers' folder of the 'Layer Controls' tab. --Then click the 'Legend' tab to see the problem. It can also be seen in the larger symbols of the 'Soil Geochem by Percentiles' layer found in the 'Soil / Geochem Samples' folder of the 'Layer Controls' tab. This issue has existed for so long that I had assumed it was well known. Cheers, Ken Lord Vancouver BC On 3/21/06, Christopher Condit wrote: > Hi Steve- > I'm very interested in this bug, as I am having the same problem with an > Oracle Spatial layer through my WMS server. To answer your question: in > my application, I've only seen this occur on bottom edge of a tile. If > a point intersects the top, right, or left edge, it is truncated > properly, even when filled. > > Thanks, > > Chris > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Steve Lime > Sent: Tuesday, March 21, 2006 12:10 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] filled symbols bleed at edge of map > > Thanks Tim, will have a look. This looks like a GD problem to me, but > I'll try to confirm that with a GD-only test case. Does it do this along > all edges or just the bottom? > > Steve > > >>> Tim Schaub 3/21/2006 11:37:12 AM >>> > I've noticed that filled symbols bleed along the edge when they are > intersected by the map extent. > > This can be seen with a filled ellipse here > http://mapserver.commenspace.org/test/ellipse_filled.png > > With FILLED set to FALSE, the result looks better > http://mapserver.commenspace.org/test/ellipse_unfilled.png > > I couldn't find a bug related to this, so I filed one here > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1719 > > Hope that's enough detail, > Tim > From steve.lime at DNR.STATE.MN.US Tue Mar 21 13:26:47 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 21 Mar 2006 15:26:47 -0600 Subject: filled symbols bleed at edge of map Message-ID: Wow, that sucks (the bleeding I mean). It looks like a clipping issue in GD with filled ellipses. Should be easy enough to track down... Steve >>> Ken Lord 3/21/2006 2:53:46 PM >>> Hi List, I've seen the same problem affecting legend icons when the symbol is bigger than the size of the icon, again along the bottom. http://cariboo-gold.no-ip.info/ -- Turn on the BC Minfile layer, found in the 'Exploration Layers' folder of the 'Layer Controls' tab. --Then click the 'Legend' tab to see the problem. It can also be seen in the larger symbols of the 'Soil Geochem by Percentiles' layer found in the 'Soil / Geochem Samples' folder of the 'Layer Controls' tab. This issue has existed for so long that I had assumed it was well known. Cheers, Ken Lord Vancouver BC On 3/21/06, Christopher Condit wrote: > Hi Steve- > I'm very interested in this bug, as I am having the same problem with an > Oracle Spatial layer through my WMS server. To answer your question: in > my application, I've only seen this occur on bottom edge of a tile. If > a point intersects the top, right, or left edge, it is truncated > properly, even when filled. > > Thanks, > > Chris > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Steve Lime > Sent: Tuesday, March 21, 2006 12:10 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] filled symbols bleed at edge of map > > Thanks Tim, will have a look. This looks like a GD problem to me, but > I'll try to confirm that with a GD-only test case. Does it do this along > all edges or just the bottom? > > Steve > > >>> Tim Schaub 3/21/2006 11:37:12 AM >>> > I've noticed that filled symbols bleed along the edge when they are > intersected by the map extent. > > This can be seen with a filled ellipse here > http://mapserver.commenspace.org/test/ellipse_filled.png > > With FILLED set to FALSE, the result looks better > http://mapserver.commenspace.org/test/ellipse_unfilled.png > > I couldn't find a bug related to this, so I filed one here > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1719 > > Hope that's enough detail, > Tim > From baas at SPEERIT.NL Tue Mar 21 14:08:03 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Tue, 21 Mar 2006 23:08:03 +0100 Subject: Improving Performance... {Scanned} In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD55D0866@s-sp22.pca.state.mn.us> Message-ID: Fawcett, David wrote: > Carola, > > Another idea with roads is that you show major highways when zoomed out > and increase detail as you zoom in. The best way to do this is to > create separate shapefiles and layers and display them based on scale. > > Of course, it you just use the same roads shapefile and use classes to > pull out the major highways, you are only going to slow things down even > more. We (as in, the company I work for) does this already. I defined the layers so that they are drawn at different zoom levels (and they are all different .TAB files). However, this has a few drawbacks: - The layers aren't simplified. As in, when you start drawing a layer, you (mapserver ;)) draws it all - The .map file grows in size and becomes harder to handle On a side note, can anyone give me an overview of all scripting that's possible in a .map file? Like I said, it's growing and I would love to use at least SOME dynamic stuff in it... -- Jelmer From baas at SPEERIT.NL Tue Mar 21 14:12:14 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Tue, 21 Mar 2006 23:12:14 +0100 Subject: Improving Performance... {Scanned} In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD55D085A@s-sp22.pca.state.mn.us> Message-ID: Fawcett, David wrote: > Jelmer, > > If you search the archives, there has been a lot written about how to > optimize your data. Ed McNierney has written many great posts on this. I'll look into this. Might be wise to create an overview page of this, tbh. All the Mapserver info is too scattered around to be of much use. > My guess is that you are trying to load more data than you really need > to. If you are drawing the full extent of your shapefile, (zoomed out), > do you really need the fine detail in your data set. This is a case > where a thin or more generalized version of your original data set would > be useful. No, this isn't the case. I carefully determined what layers should be visible and which ones shouldn't be. > When setting up this more detailed layer, you will want to tile your > data and use a tileindex. This way, you don't need to read your whole > data set to just draw one small area of it. I might do this, but it's not possible with .tab files, is it? > Of course, you will also want spatial indexes. Like I said before, I am using indeces. If I would have them, drawing a single image would take half an hour. One speed improvement I'd like is switching from PNG24 to GIF when possible. As in, I have two layers with sattelite images. When I turn them off, I'd like mapserver to switch to GIF instead of PNG24... Any possibility to do this in the map file? -- Jelmer From sdc at SDC.COM.AU Tue Mar 21 14:40:58 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Wed, 22 Mar 2006 09:10:58 +1030 Subject: PERL/Mapscript postGIS examples? In-Reply-To: <1142949239.1911.17.camel@ubet.gomoos.org> Message-ID: G'day Eric. The probe table has the usual postGIS SRID constraint limiting it to 4283 and geometry_columns has the same value. The area in question is actually in zone 54 and the ecw image is referenced that way but the individual layer projections seem to handle that fine. The probe points are correctly positioned on the image. The original (At one stage I tried changing the probe layer projection to 4284. That must have still been in the mapfile you saw. Now it has 4283.) The data was input as lat/long. I would have thought that any issue arising between 4283 and 4284 would affect longitude rather than latitude. Cheers, Stephen On Wednesday 22 March 2006 00:23, Eric Bridger wrote: > I think the question is what does postgis think the srid is? > > select srid from geometry_columns where f_table_name = 'probe'; > > On Mon, 2006-03-20 at 20:55, Stephen Davies wrote: > > Good pick Eric. > > > > I did as you suggested and changed the projection to "latlong" and > > it worked - from mapscript and from CGI mapserv. > > > > (The extent is passed in as args in both cases. That's why you > > don't see an extent statement in the mapfile.) > > > > The question now has to be why? > > I only changed the one line - well replaced two with one. > > > > I then replaced the original PROJ entries in the mapfile and called > > setProjection("proj=latlong"); in the PERL and it worked again. > > > > The original eqc projection still works with CGI mapserv. > > > > What is different with mapscript? > > > > Cheers and thanks, > > Stephen > > > > On Tuesday 21 March 2006 08:32, Eric Bridger wrote: > > > Not sure why this would work in CGI mode. > > > shp2img is the best tool for debugging postgis layers. Well, > > > turning on postgres logging works as well. > > > > > > Just a guess but I suspect a projection issue. > > > > > > Does your postgis data really have an SRID of 4284? You many > > > need to change your DATA statement in the postgis layer to > > > something like: DATA "the_geom (select * from probe) using unique > > > oid using SRID=4284" > > > > > > The postgis queries below look like they are attempting to use > > > the standard SRID of -1 or lat/lon projection. > > > > > > Also I don't see any EXTENT in your map file. That should throw > > > an error. > > > > > > I would try getting it all to work with no projection > > > (proj=latlong or EPGS:4326) first then start messing with the > > > projections. > > > > > > Eric > > > > > > On Sat, 2006-03-18 at 01:15, Stephen Davies wrote: > > > > Thanks for the feedback. > > > > > > > > Turning on PostgreSQL logging did indeed reveal more > > > > information. However, it leaves even more confused than before. > > > > > > > > It seems that the underlying cause of my results is that the > > > > extent being used by mapscript bears no relation to the extent > > > > that I specified. > > > > > > > > Here is the sql statement generated from mapscript: > > > > > > > > 2006-03-18 16:22:47 CST LOG: 00000: duration: 33.759 ms > > > > statement: DECLARE mycursor BINARY CURSOR FOR SELECT > > > > > > > > location::text,asbinary(force_collection(force_2d(geom)),'NDR'),id: > > > >:text from probe WHERE geom && setSRID('BOX3D(139.522253226183 > > > > > > > > -0.000314231148091942,139.522253452601 > > > > -0.000314003203767908)'::BOX3D, find_srid('','probe','geom') ) > > > > > > > > The actual extent specified (and the one that works from CGI > > > > mapserv) was: > > > > > > > > 139.5143351 -34.7459112 139.5278707 -34.7207064 > > > > > > > > The "correct" query as generated by a CGI call with the above > > > > mapext is: > > > > > > > > 2006-03-18 16:11:57 CST LOG: 00000: duration: 33.703 ms > > > > statement: DECLARE mycursor BINARY CURSOR FOR SELECT > > > > location::text,asbinary(force_collection(force_2d > > > > (geom)),'NDR'),id::text from probe WHERE geom && > > > > setSRID('BOX3D(139.508530404246 > > > > -34.7456930137356,139.533675395754 -34.7204885334377)'::BOX3D, > > > > find_srid('','probe','geom') ) > > > > > > > > Again the extent is changed but nowhere as drastically. > > > > > > > > I then tried hard-wiring the extent into the map file and > > > > removing the mapext argument from the CGI call and got the same > > > > result and the same query. > > > > > > > > I then modified my PERL script to use the extent in the map > > > > file and again got the same result and the same query > > > > generated. > > > > > > > > It looks as if the mapscript setExtent method does something > > > > strange and different from the CGI mapext option and that both > > > > do strange things with extent statements in map files in some > > > > circumstances. > > > > > > > > I tried changing the UNITS to DD but this made no difference > > > > (METERS is required to make reference maps etc work properly in > > > > the CGI world.) > > > > > > > > Cheers, > > > > Stephen > > > > > > > > On Friday 17 March 2006 23:42, Simpson wrote: > > > > > Stephen, > > > > > > > > > > You might try checking the Postgresql logs to see if > > > > > Mapserver is connecting and requesting data. Turn on > > > > > statement logging in Postgresql config to get details of > > > > > exactly what is being sent. You can then run the statement > > > > > from psql to see if it is returning what you expect. > > > > > > > > > > Drew. > > > > > > > > > > -----Original Message----- > > > > > From: UMN MapServer Users List > > > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Stephen > > > > > Davies Sent: Friday, March 17, 2006 12:48 AM > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > Subject: [UMN_MAPSERVER-USERS] PERL/Mapscript postGIS > > > > > examples? > > > > > > > > > > > > > > > Could somebody please send me or point me at an example of a > > > > > PERL/Mapscript script that displays layers populated from a > > > > > postGIS database and/or raster layers? > > > > > The following PERL/Mapscript and map file generates an image > > > > > containing only the copyright layer. > > > > > Exactly the same map file with mapserver invoked as CGI > > > > > generates all layers. > > > > > (In both cases the extent is provided as args. > > > > > eg ./genpics q 1 jpg 139.5143351 -34.7459112 139.5278707 > > > > > -34.7207064) > > > > > > > > > > Cheers and thanks, > > > > > Stephen Davies > > > > > > > > > > #! /usr/bin/perl > > > > > # > > > > > # args are UID (for mapfile), pic sequence #, image type > > > > > (extension), extent > > > > > # > > > > > use strict; > > > > > #use CGI; > > > > > use mapscript; > > > > > my $uno = $ARGV[0]; > > > > > my $seq = $ARGV[1]; > > > > > my $ext = $ARGV[2]; > > > > > my $minx = $ARGV[3]; > > > > > my $miny = $ARGV[4]; > > > > > my $maxx = $ARGV[5]; > > > > > my $maxy = $ARGV[6]; > > > > > # > > > > > # if sequence = 1, create/empty directory (ignoring errors) > > > > > # > > > > > if ($seq == 1){ > > > > > mkdir("/var/www/html/status_images/$uno",0777); > > > > > unlink ; > > > > > } > > > > > # > > > > > my $mapfile = "/tmp/$uno.map"; > > > > > my $map = mapscript::mapObj->new($mapfile); > > > > > my $i=$map->setExtent($minx,$miny,$maxx,$maxy); > > > > > # > > > > > #my $img = $map->prepareImage(); > > > > > my $img = $map->draw(); > > > > > my $fname = "/var/www/html/status_images/$uno/$seq.$ext"; > > > > > $img->save($fname); > > > > > =================================================== > > > > > MAP > > > > > NAME perltest > > > > > > > > > > > > > > > PROJECTION > > > > > "proj=eqc" > > > > > "lon_0=139.521e" > > > > > END > > > > > > > > > > SIZE 600 600 > > > > > FONTSET "/var/www/html/benparts/fonts.list" > > > > > SYMBOLSET "/var/www/html/benparts/symbols" > > > > > UNITS METERS > > > > > IMAGETYPE jpeg > > > > > OUTPUTFORMAT > > > > > NAME jpeg > > > > > DRIVER "GD/JPEG" > > > > > MIMETYPE "image/jpeg" > > > > > IMAGEMODE RGB > > > > > EXTENSION "jpg" > > > > > FORMATOPTION "QUALITY=75" > > > > > END > > > > > IMAGECOLOR 255 255 255 > > > > > > > > > > WEB > > > > > template /var/www/html/benparts/templates/test1.html > > > > > imagepath "/var/www/html/tmp/" > > > > > imageurl "/tmp/" > > > > > END > > > > > > > > > > LAYER > > > > > TYPE RASTER > > > > > NAME "bkgrnd" > > > > > STATUS DEFAULT > > > > > PROJECTION > > > > > "init=epsg:28354" > > > > > END > > > > > DATA "/var/www/html/benparts/rasters/walker.ecw" > > > > > # OFFSITE 0 0 0 > > > > > PROCESSING "DITHER=YES" > > > > > END > > > > > > > > > > LAYER > > > > > CONNECTIONTYPE postgis > > > > > NAME "probe" > > > > > DATA "geom from probe" > > > > > CONNECTION "user=scldad dbname=benparts" > > > > > STATUS DEFAULT > > > > > TYPE POINT > > > > > # FILTER "id in (0)" > > > > > PROJECTION > > > > > "init=epsg:4284" > > > > > END > > > > > MAXSCALE 5000000 > > > > > LABELITEM "location" > > > > > CLASS > > > > > NAME "Probe (Right Click to select)" > > > > > STYLE > > > > > COLOR 0 214 0 > > > > > SYMBOL 'circle' > > > > > SIZE 7 > > > > > END > > > > > LABEL > > > > > MINDISTANCE 15 > > > > > POSITION CR > > > > > SIZE SMALL > > > > > COLOR 0 0 0 > > > > > FORCE TRUE > > > > > END > > > > > END > > > > > END > > > > > > > > > > LAYER > > > > > NAME 'copyright' > > > > > TYPE ANNOTATION > > > > > STATUS DEFAULT > > > > > TRANSFORM FALSE # coordinates are in pixels > > > > > FEATURE > > > > > POINTS 10 595 END > > > > > END > > > > > CLASS > > > > > LABEL > > > > > TYPE TRUETYPE > > > > > FONT arial > > > > > SIZE 8 > > > > > COLOR 255 0 0 > > > > > POSITION CR > > > > > END > > > > > TEXT 'Photography supplied by MAPLAND, Environment > > > > > Information, Dept Environment & Heritage' > > > > > END > > > > > END > > > > > END > > > > > -- > > > > > ============================================================= > > > > >==== ==== === This email is for the person(s) identified > > > > > above, and is confidential to the sender and the person(s). > > > > > No one else is authorised to use or disseminate this email or > > > > > its contents. > > > > > > > > > > Stephen Davies Consulting Voice: > > > > > 08-8177 1595 Adelaide, South Australia. > > > > > Fax: 08-8177 0133 Computing & Network solutions. > > > > > Mobile:0403 0405 83 > > > > > > > > -- > > > > =============================================================== > > > >==== ===== This email is for the person(s) identified above, and > > > > is confidential to the sender and the person(s). No one else > > > > is authorised to use or disseminate this email or its contents. > > > > > > > > Stephen Davies Consulting Voice: > > > > 08-8177 1595 Adelaide, South Australia. > > > > Fax: 08-8177 0133 Computing & Network solutions. > > > > Mobile:0403 0405 83 > > > > -- > > =================================================================== > >===== This email is for the person(s) identified above, and is > > confidential to the sender and the person(s). No one else is > > authorised to use or disseminate this email or its contents. > > > > Stephen Davies Consulting Voice: 08-8177 > > 1595 Adelaide, South Australia. Fax: > > 08-8177 0133 Computing & Network solutions. > > Mobile:0403 0405 83 -- ======================================================================= This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From markadams at CUESTASYS.COM Tue Mar 21 16:42:24 2006 From: markadams at CUESTASYS.COM (Mark Adams) Date: Tue, 21 Mar 2006 18:42:24 -0600 Subject: problem with GEOS contains query Message-ID: Hi all, We're working with the new GEOS "contains" operator support in the 4.9 CVS. When trying to execute this function we're getting an error ?Object has an invalid _handle_ property in ?. I?ve attached a snippet of code below. Any suggestions would be greatly appreciated. $oRes = $bufferLayer->getResult($bfres); $shp = $bufferLayer->getShape($oRes->tileindex, $oRes->shapeindex); printf($oShape1->contains($shp) ."\n"); if($oShape1->contains($shp) == 1) { } ------------------- Mark Adams DPRA Canada mark.adams at dpra.com From assefa at DMSOLUTIONS.CA Tue Mar 21 17:34:19 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 21 Mar 2006 20:34:19 -0500 Subject: problem with GEOS contains query In-Reply-To: Message-ID: Mark, Does the contain work in other circumpstances ? Here is the test I just did with the 4.9 cvs and It returns ok. Does this work for you ? containsShape($shape2)) echo "1\n"; else echo "0\n"; if ($shape2->containsShape($shape1)) echo "1\n"; else echo "0\n"; if ($shape2->containsShape($shape2)) echo "1\n"; else echo "0\n"; //phpinfo(); ?> Later, Mark Adams wrote: > Hi all, > > We're working with the new GEOS "contains" operator support in the 4.9 CVS. > > When trying to execute this function we're getting an error ?Object has an > invalid _handle_ property in ??. I?ve attached a snippet of code below. > Any suggestions would be greatly appreciated. > > $oRes = $bufferLayer->getResult($bfres); > $shp = $bufferLayer->getShape($oRes->tileindex, $oRes->shapeindex); > printf($oShape1->contains($shp) ."\n"); > if($oShape1->contains($shp) == 1) > > { > > } > ------------------- > Mark Adams > DPRA Canada > mark.adams at dpra.com > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From beproject06 at YAHOO.COM Tue Mar 21 20:54:42 2006 From: beproject06 at YAHOO.COM (Apeksha Bhambhani) Date: Tue, 21 Mar 2006 20:54:42 -0800 Subject: Label a point using PHP/Mapscript Message-ID: HI , Can somebody help us with the following doubt : We are trying to plot a point using the Mapscipt API with the help of the draw function of the Point Object. Though , it does plot the point successfully , it does not annotate it with the text that we pass. $j=$poi[$i]->draw($map, $layer, $image,0,$name); $poi[$i] is a point object . What could be the error? It would be of great help if somebody helps us at the earliest. Thank You , Apeksha --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dps1 at UALBERTA.CA Tue Mar 21 21:36:24 2006 From: dps1 at UALBERTA.CA (David Shorthouse) Date: Tue, 21 Mar 2006 22:36:24 -0700 Subject: ODBC join to shapefile Message-ID: Hello folks, Is it possible to join a column in a shapefile's dbf to a column in an ODBC stored procedure via OGR? I'm not too concerned about performance, so this is the idea for the mapfile syntax: LAYER NAME StatesProvinces CONNECTIONTYPE OGR CONNECTION Nearctic.shp DATA "SELECT NAME, SpiderData.StateProvince FROM Nearctic LEFT JOIN ' ODBC:xxxx/xxxx at xxxx EXEC LocalityList "%SpeciesCode%" '.SpiderData ON NAME = SpiderData.StateProvince" STATUS DEFAULT TYPE POLYGON CLASSITEM "NAME" CLASS NAME "Yukon Territory" EXPRESSION "Yukon Territory" COLOR 210 210 210 END CLASS NAME "Northwest Territories" EXPRESSION "Northwest Territories" COLOR 205 92 92 END etc. What I ultimately want to do is shade a selection of whole States and Provinces (in a shapefile) a colour different from those not chosen as a result of a JOIN to an ODBC stored procedure. The single and double quotes in the DATA rows above choke on one another, so this obviously doesn't work. Anyone have any ideas? David P. Shorthouse ------------------------------------------------------ Department of Biological Sciences CW-403, Biological Sciences Centre University of Alberta Edmonton, AB T6G 2E9 Phone: 1-780-492-3080 mailto:dps1 at ualberta.ca http://canadianarachnology.webhop.net http://arachnidforum.webhop.net ------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From emiliomayorga at GMAIL.COM Tue Mar 21 22:04:52 2006 From: emiliomayorga at GMAIL.COM (Emilio Mayorga) Date: Tue, 21 Mar 2006 22:04:52 -0800 Subject: using ogr2ogr to create pt shp file from dbf w/ lat-lon fields Message-ID: I have a polygon shape file that has lat & lon fields for the centroid (the polygons are simple rectangles). I'd like to write a simple batch process to read those lat-lon fields and create a point shape file that also includes all the other attributes. I'd like to keep this as simple as possible, so I figured I could use ogr2ogr. It sounds like I need to set up a Virtual Spatial Data file. The "Virtual Spatial Data (ODBC/OVF)" MapServer document says that I could use an ODBC connection after setting up a DSN. I have unixODBC installed on a RedHat server, but I don't see a dbf/dbase driver, and I can't find one either in the unixODBC home page. Alternatively, I could try to export the dbf to a text file (say, csv), using something like the dbflist utility (part of the dbf2info utilities; I've never used them, but I assume I can set them up!). The MapServer document seems to imply that I could then set up an OVF to link directly to flat text files without an ODBC DSN, but I can't find any examples; I only see ODBC examples. Any advice on what's the easiest approach to accomplish this? Thanks! -Emilio Mayorga From bartvde at XS4ALL.NL Wed Mar 22 00:24:10 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 22 Mar 2006 09:24:10 +0100 Subject: copyright text bottomright but mapsize variable Message-ID: Hi list, is it possible to have a copyright layer in the bottom right part of the map image, in a situation in which the map size is variable (without side-effect of the text being in the middle of the map image when the image size increases :-) )? Or is it necessary to use Mapscript to change the point coordinates of the label in case the map size changes? Thanks in advance. Best regards, Bart From Jeroen.Ticheler at FAO.ORG Wed Mar 22 00:45:13 2006 From: Jeroen.Ticheler at FAO.ORG (Jeroen Ticheler) Date: Wed, 22 Mar 2006 09:45:13 +0100 Subject: [Gdal-dev] Mac OS X installers Panther vs Tiger In-Reply-To: Message-ID: Hi William and others! First of all, we really appreciate your work on providing binaries VERY much!! Being the source of the uproar :-( I feel I need to make a small note on the poll as it stands. I see that the majority would like to see Tiger only binaries. I would like to see a second poll, or feedback on who is running XServe with Panther or Tiger? Or are most of us running MapServer on desktop/laptop macs? We run the binaries on an XServe with Panther, and the last thing I would like to go through at this stage is to upgrade the OS to Tiger just because of this. The server runs smoothly ever since we have it and its a kind of a nightmare for me to have to upgrade or start compiling the stuff myself :-( (I run Tiger on my PowerBook). I hope a Panther run/Tiger dev can be a reasonable compromise!? Ciao, Jeroen On Mar 21, 2006, at 12:17 AM, William Kyngesburye wrote: > Sorry for the cross-post. > > I'm working on some ideas on simplifying my Mac OS X installers. > Currently I make the Panther and Tiger versions as separate > binaries on separate Macs. This provides full developer usability > on both systems for other software to use (qgis, grass, ...) but is > quite a chore to maintain. > > I have a poll on my site for options I'm looking at - varying > degrees of Panther support and simplicity for me. Current Mac > users (users and developers) of my installers, and would-be users, > please give a vote on where I should go with this. > > > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > Theory of the Universe > > There is a theory which states that if ever anyone discovers > exactly what the universe is for and why it is here, it will > instantly disappear and be replaced by something even more > bizarrely inexplicable. There is another theory which states that > this has already happened. > > -Hitchhiker's Guide to the Galaxy 2nd season intro > > _______________________________________________ > Gdal-dev mailing list > Gdal-dev at lists.maptools.org > http://lists.maptools.org/mailman/listinfo/gdal-dev From JamesP at ESDM.CO.UK Wed Mar 22 01:58:55 2006 From: JamesP at ESDM.CO.UK (James Perrins) Date: Wed, 22 Mar 2006 09:58:55 -0000 Subject: Coordinate projection ShpMinX using CGI Message-ID: Hi, I'm using mapserver 461 CGI and when a layer is in a different projection to that of the map (and being re-projected on the fly), if I do a query and then look at the values returned in for example the SHPMINX value in a template file it is always in the coordinate system of the layer rather than the map. Obviously this causes problems as I want to use this value to reposition the map to show the object just found and the values I have are in the wrong coord system. 1) Is this by design for some other reason 2) Is there any way to persuade mapserver to return the values in the coordinate system of the map 3) Failing the above - can anyone point me at any examples of how to use the PROJ libraries to convert a coordinate from one system to another Many Thanks james -------------- next part -------------- An HTML attachment was scrubbed... URL: From hfl at HOME.NL Wed Mar 22 02:42:48 2006 From: hfl at HOME.NL (Huub Fleuren) Date: Wed, 22 Mar 2006 11:42:48 +0100 Subject: extra spatial filter for OVF source Message-ID: Hi List http://www.google.com/search?hl=en&lr=&rls=GGLD%2CGGLD%3A2004-28%2CGGLD%3Aen&q=ODBC+gdal+spatial+filters+VRT+format+howto I was hoping that i could put an extra spatial filter (a polygon : find all point within the polygon) to the following OVF source Is it possible? How? Thanks in advance ODBC:admin/admin at anwb SELECT k.kp_nr as kp_nr,k.x as x, k.y as y, w.wegbeheerdercode as wegbeheerdercode, w.onderhoudsinstantiecode as onderhoudsinstantiecode FROM wwall w, kpxy k WHERE NOT (k.soort LIKE 'D') and (w.x > 190000) and (w.x < 200000) and (w.y > 500000) and (w.y < 520000) and (w.kruispuntnummer = k.kp_nr) wkbPoint WGS84 Regards, Huub From sal_ind1 at INDIATIMES.COM Wed Mar 22 03:28:03 2006 From: sal_ind1 at INDIATIMES.COM (M K Dey) Date: Wed, 22 Mar 2006 16:58:03 +0530 Subject: Plz How to --> Lat, long info in the final Map And Final Mapsize based on users choice Message-ID: Hi I am using Mapserver 4.8 on Linux 9 and its working nice. Now i want to include two features-- First-- I need to get the Lat, Long information along with datas that are on Dbf file or in the Mysql database(If it is possible) when a user moves his/her mouse over the final image in the browser. Whether it is possible in a separate popup window? See http://angling-technologies.com/atmaps.phtml for Lat,long information.(In right top of the browser) Second-- The size of the final image i.e user should have the freedom to choose the final mapsize i.e whether 800*600 or 700*525 etc. See http://www.mapainterativo.ciasc.gov.br/sc.phtml (In right top of browser) I need these solutions urgently. Plz help me out. Thanks in advance With Regards Mac Get Your Private, Free E-mail from Indiatimes at http://infinite.indiatimes.com Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to http://airsa hara.indiatimes.com and Bid Now! From Derek.Bird at XWAVE.COM Wed Mar 22 05:50:21 2006 From: Derek.Bird at XWAVE.COM (Bird, Derek (xwave)) Date: Wed, 22 Mar 2006 08:50:21 -0500 Subject: copyright text bottomright but mapsize variable Message-ID: Hi, I tried as well, and in the end just gave up and stuck it on the upper left corner ... I was doing with Chameleon and just using the jsapi addlayer method to pop it on ... But I wanted it server side (not dependent on Chameleon) If you want the code for Chameleon, let me know. Cheers, Derek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bart van den Eijnden Sent: Wednesday, March 22, 2006 3:24 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] copyright text bottomright but mapsize variable Hi list, is it possible to have a copyright layer in the bottom right part of the map image, in a situation in which the map size is variable (without side-effect of the text being in the middle of the map image when the image size increases :-) )? Or is it necessary to use Mapscript to change the point coordinates of the label in case the map size changes? Thanks in advance. Best regards, Bart -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3084 bytes Desc: not available URL: From wisse at NLR.NL Wed Mar 22 05:55:46 2006 From: wisse at NLR.NL (Edwin Wisse) Date: Wed, 22 Mar 2006 14:55:46 +0100 Subject: Simple flash viewer for MapServer available Message-ID: Today we have made a small, simple web mapping viewer available. It is called BeeldBlad (Dutch for "image sheet") and has been written in Adobe Flash. The aim was to make a simple and easy to configure viewer. The BeeldBlad viewer consists of a single flash file and can be downloaded free of charge from http://nlr-gis.nlr.nl/beeldblad/ We have set up a simple demo with MapServer. Please feel free to try it. The interface should be fairly intuitive, instructions for use and installation are available. Best regards, Edwin Wisse -- Edwin Wisse http://remotesensing.nlr.nl/ wisse at nlr.nl N 52 40'31.7" E 5 55'36.4" From n.j.saunders at GMAIL.COM Wed Mar 22 06:29:53 2006 From: n.j.saunders at GMAIL.COM (Neil Saunders) Date: Wed, 22 Mar 2006 14:29:53 +0000 Subject: Simple flash viewer for MapServer available In-Reply-To: <44215762.1060602@nlr.nl> Message-ID: This is fantastic - Well Done!! On 3/22/06, Edwin Wisse wrote: > Today we have made a small, simple web mapping viewer available. It is > called BeeldBlad (Dutch for "image sheet") and has been written in Adobe > Flash. The aim was to make a simple and easy to configure viewer. > > The BeeldBlad viewer consists of a single flash file and can be > downloaded free of charge from http://nlr-gis.nlr.nl/beeldblad/ > > We have set up a simple demo with MapServer. Please feel free to try it. > The interface should be fairly intuitive, instructions for use and > installation are available. > > Best regards, > Edwin Wisse > > > -- > Edwin Wisse http://remotesensing.nlr.nl/ > wisse at nlr.nl N 52 40'31.7" E 5 55'36.4" > From gisaalter at GMAIL.COM Wed Mar 22 06:51:28 2006 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Wed, 22 Mar 2006 15:51:28 +0100 Subject: Simple flash viewer for MapServer available In-Reply-To: <44215762.1060602@nlr.nl> Message-ID: Inderdaad, knap werk ! -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhe at ITSC.UAH.EDU Wed Mar 22 07:25:23 2006 From: mhe at ITSC.UAH.EDU (He, Matt Yubin) Date: Wed, 22 Mar 2006 09:25:23 -0600 Subject: KEYIMAGE Message-ID: Hi, All I have a layer definition as shown below. However, after I added "KEYIMAGE "../legend_images/mylegend.jpg"", Mapserver showed some errors. How should I correct it? Should I add a "Class" tag somewhere? Thanks. Matt LAYER CONNECTION "http://mywmsserver/" CONNECTIONTYPE WMS DUMP TRUE METADATA "wms_srs" "EPSG:4326 EPSG:4267 EPSG:4269 EPSG:4326" "wms_onlineresource" "http://mywmsserver" "wms_latlonboundingbox" "-180 90 180 -90" "layer_index" "3" "wms_queriable" "1" "wms_name" "name" "wms_format" "image/png" "wms_formatlist" "image/png,image/jpeg" "selected" "0" "LEGEND_ORDER" "3" "wms_server_version" "1.1.1" "wms_title" "My Layer" END NAME "LayerName" PROJECTION "init=epsg:4326" END SIZEUNITS PIXELS KEYIMAGE "/legend_images/mylegend.jpg" STATUS OFF TEMPLATE "blank.html" TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE RASTER UNITS METERS END -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Wed Mar 22 07:28:21 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 22 Mar 2006 10:28:21 -0500 Subject: extra spatial filter for OVF source In-Reply-To: <44212A28.7030409@home.nl> Message-ID: Huub Fleuren wrote: > Hi List > > http://www.google.com/search?hl=en&lr=&rls=GGLD%2CGGLD%3A2004-28%2CGGLD%3Aen&q=ODBC+gdal+spatial+filters+VRT+format+howto > > > I was hoping that i could put an extra spatial filter (a polygon : find > all point within the polygon) to the following OVF source > > Is it possible? > How? Huub, I don't know how this would be accomplished without changing some code, though I can see that it would be an interesting capability for the OGR VRT (OVF) driver. If you just wanted a one time static extract it wouldn't be to hard to setup with a Python script but doing it dynamically is not currently supported. Best regards, > Thanks in advance > > > > ODBC:admin/admin at anwb > SELECT k.kp_nr as kp_nr,k.x as x, k.y as y, > w.wegbeheerdercode as wegbeheerdercode, w.onderhoudsinstantiecode as > onderhoudsinstantiecode FROM wwall w, kpxy k WHERE NOT (k.soort LIKE > 'D') and (w.x > 190000) and (w.x < 200000) and (w.y > 500000) > and (w.y < 520000) and (w.kruispuntnummer = k.kp_nr) > wkbPoint > WGS84 > > > -- ---------------------------------------+-------------------------------------- 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 OSGF, http://osgeo.org From warmerdam at POBOX.COM Wed Mar 22 07:46:43 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 22 Mar 2006 10:46:43 -0500 Subject: using ogr2ogr to create pt shp file from dbf w/ lat-lon fields In-Reply-To: Message-ID: Emilio Mayorga wrote: > I have a polygon shape file that has lat & lon fields for the centroid > (the polygons are simple rectangles). I'd like to write a simple batch > process to read those lat-lon fields and create a point shape file > that also includes all the other attributes. I'd like to keep this as > simple as possible, so I figured I could use ogr2ogr. > > It sounds like I need to set up a Virtual Spatial Data file. The > "Virtual Spatial Data (ODBC/OVF)" MapServer document says that I could > use an ODBC connection after setting up a DSN. I have unixODBC > installed on a RedHat server, but I don't see a dbf/dbase driver, and > I can't find one either in the unixODBC home page. > > Alternatively, I could try to export the dbf to a text file (say, > csv), using something like the dbflist utility (part of the dbf2info > utilities; I've never used them, but I assume I can set them up!). The > MapServer document seems to imply that I could then set up an OVF to > link directly to flat text files without an ODBC DSN, but I can't find > any examples; I only see ODBC examples. > > Any advice on what's the easiest approach to accomplish this? Thanks! Emilio, The OVF mechanism can be used without ODBC. In this case I would suggest you copy the .dbf file to a new name so it can be used in isolation via OVF as a spatial-data-less input file. Then you would use normal OVF mechanisms, but instead of setting the SrcDatasource to an ODBC connection string, just give the path to the .dbf 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 OSGF, http://osgeo.org From ltrevino at GPOBSI.COM.MX Wed Mar 22 07:59:41 2006 From: ltrevino at GPOBSI.COM.MX (=?iso-8859-1?Q?Luis_Trevi=F1o_Huerta?=) Date: Wed, 22 Mar 2006 09:59:41 -0600 Subject: Error load from database Message-ID: Alexander, Try: DATA "the_geom from contornos as foo using unique oid using srid=-1" Saludos Luis ----- Original Message ----- From: "Alexander Rodriguez Torres" To: Sent: Tuesday, March 21, 2006 10:28 AM Subject: [UMN_MAPSERVER-USERS] Error load from database I have these error when I load my map from database. Can you help me??? **************************************************************************** msDrawMap(): Image handling error. Failed to draw layer named 'Contornos'. prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT contornos::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from contornos WHERE the_geom && setSRID('BOX3D(9387137.4 791043.7018,10119140.81 1522550.8382)'::BOX3D, find_srid('','contornos','the_geom') )' Postgresql reports the error as 'ERROR: cannot cast type contornos to text ' **************************************************************************** This is my .map MAP NAME "Mapa de la UCI" STATUS ON EXTENT 9387137.4 805683.77 10119140.81 1507910.77 SIZE 500 500 SHAPEPATH "./data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGETYPE PNG IMAGECOLOR 174 183 207 UNITS METERS TEMPLATEPATTERN "UCI" WEB MINSCALE 259371 IMAGEPATH "C:/temp/" IMAGEURL "/tmp/" HEADER "templates/header.html" FOOTER "templates/footer.html" END REFERENCE STATUS ON IMAGE "images/keymap.png" SIZE 88 69 EXTENT 9387137.4 805683.77 10119140.81 1507910.77 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 MINBOXSIZE 3 MAXBOXSIZE 0 MARKER 0 MARKERSIZE 0 END QUERYMAP STATUS OFF SIZE -1 -1 COLOR 255 0 0 STYLE HILITE END # # Start of legend object # LEGEND STATUS ON IMAGECOLOR 255 255 255 POSITION LL KEYSIZE 18 12 KEYSPACING 5 5 TEMPLATE "ttt" LABEL TYPE BITMAP SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 89 PARTIALS TRUE FORCE FALSE END END # # Start of scalebar object # SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS KILOMETERS INTERVALS 5 SIZE 150 5 STYLE 0 POSITION LL LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE TRUE END END # # Start of OutputFormat object # OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END LAYER NAME "Contornos" STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "user=postgres password=post dbname=siguci host=localhost" CLASSITEM "contornos" DATA "the_geom from contornos" TYPE POLYGON CLASS NAME "contornos" TEMPLATE "" STYLE SYMBOL 0 COLOR 0 128 0 OUTLINECOLOR 0 0 0 END END Alexander Rodr?guez Torres. Estudiante de Quinto A?o. Universidad de las Ciencias Inform?ticas. E-mail:atorres at estudiantes.uci.cu From awiens at GMAIL.COM Wed Mar 22 08:18:02 2006 From: awiens at GMAIL.COM (Andrew Wiens) Date: Wed, 22 Mar 2006 10:18:02 -0600 Subject: ruby mapscript segmentation fault Message-ID: Hi All, I'm trying to get the Ruby mapscript module up and running but am having problems. I was able to get it compiled and installed, but when I try to run the example I get the following segmentation fault: ..... [root at clh2 examples]# ruby shp2img.rb ../../../tests/polygon.shp shp2img.rb:8: [BUG] Segmentation fault ruby 1.8.4 (2005-12-24) [i686-linux] Aborted .... Line 8 in the shp2img.rb file has: shapefile = ShapefileObj.new(filename, -1) I've tried recompiling the mapserver, then the mapscript module and running it again, but get the same segmentation fault. I've played with the ruby installation and it seems to be working properly. Has anyone else run into this problem? Any help would be greatly appreciated. Thanks, --Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at CI.STPAUL.MN.US Wed Mar 22 08:31:16 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 22 Mar 2006 10:31:16 -0600 Subject: Question about WFS. Message-ID: Seems like a simple idea, but . . . All, We're moving some layers to WFS for some testing of clients. One question I have is can a Label layer as well as a Geometry layer be set up as two seperate WFS layer request from the same dataset. It seems like this is possible, but wondering about anyone that may have done something like this. The Label Layer would essentially be virtual in nature and be generated by MapServer. Specifically, we'll want the client (AutoCAD in our case) to pull either the 3D Polyline data (3D attributes) and/or the 3D polyline labels, that MapServer Generates now with it's Image Output. Is this an appropriate course of action, or should something else be considered. Thanks bobb From moored at SECAC.COM Wed Mar 22 09:10:10 2006 From: moored at SECAC.COM (Dustin Moore) Date: Wed, 22 Mar 2006 09:10:10 -0800 Subject: Palletizing Bulk Tiled Imagery Message-ID: Is there a procedure involving FOSS tools like GDAL or ImageMagick that can take a collection of tiled 24 bit GeoTIFFs, come up with an average best fit pallette, and then dither the TIFFs using that pallette? I see that there is a program called rgb2pct.py in GDAL but that doesn't allow one to specify a universal palette. Lastly, is there a FOSS tool that can take a collection of tiled TIFFs in one projection and then reproject/retile the TIFFs in another projection? I've worked with gdalwarp on a per-tile basis but that makes the output tiles parallogrammed as per the re-projection and this causes me trouble when I go to seamlessly composite the new tiles back together. (Actually, the problem is with gdaladdo and how it interpolates NODATA elements into the overviews but I'd rather just get the tiles square and not have any NODATA/edge problems possible.) Dustin Moore From pmoen at STATE.ND.US Wed Mar 22 10:04:44 2006 From: pmoen at STATE.ND.US (Paul Moen) Date: Wed, 22 Mar 2006 12:04:44 -0600 Subject: How to increase resolution of image? Message-ID: Can the resolution of the image created by saveWebImage(); in php mapscript be changed to something other than 72 pixels per inch? I have read the how-to/ pdf output which talks about creating an image at 150 dpi for a 8 x 8 map at 1200 x 1200 pixels. All this gives me is a image that is 1200 x 1200 pixels at 72 dpi which is a 16.67 x 16.67 inch image. What part am I missing that gets me the 150dpi resolution? reference about how to/ pdf output from following web address. http://mapserver.gis.umn.edu/docs/howto/pdf-output/#render-png-views-at-a-suitable- resolution Paul From warmerdam at POBOX.COM Wed Mar 22 10:13:26 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 22 Mar 2006 13:13:26 -0500 Subject: Palletizing Bulk Tiled Imagery In-Reply-To: <442184F2.605@secac.com> Message-ID: Dustin Moore wrote: > Is there a procedure involving FOSS tools like GDAL or ImageMagick that > can take a collection of tiled 24 bit GeoTIFFs, come up with an average > best fit pallette, and then dither the TIFFs using that pallette? I see > that there is a program called rgb2pct.py in GDAL but that doesn't allow > one > to specify a universal palette. Dustin, The rgb2pct.py script was done as a script, partly so folks could tailor it to their needs. If you look at it you will see it has two sections. One to compute the color table, and another to apply it. I would suggest you build some sort of mosaic, or montage of imagery that you consider representative of your total set, and use the ComputeMedianCutPCT() on that. Then loop over all the images using the DitherRGB2PCT(). > Lastly, is there a FOSS tool that can take a collection of tiled TIFFs > in one projection and then reproject/retile the TIFFs in another > projection? > I've worked with gdalwarp on a per-tile basis but that makes the output > tiles parallogrammed as per the re-projection and this causes me trouble > when > I go to seamlessly composite the new tiles back together. I am not aware of such a tool. Generally when I am in this situation I warp to a bit mosaic and then cut that back up again if I require things in tiles. > (Actually, the > problem > is with gdaladdo and how it interpolates NODATA elements into the > overviews but > I'd rather just get the tiles square and not have any NODATA/edge > problems possible.) This might be a good topic for a bug report. 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 OSGF, http://osgeo.org From woodbri at SWOODBRIDGE.COM Wed Mar 22 10:18:09 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 22 Mar 2006 13:18:09 -0500 Subject: copyright text bottomright but mapsize variable In-Reply-To: <24645.145.50.39.8.1143015850.squirrel@webmail.xs4all.nl> Message-ID: See bugs #1547 and #1592 and a gentle prod of the owners would hurt :) -Steve W Bart van den Eijnden wrote: > Hi list, > > is it possible to have a copyright layer in the bottom right part of the > map image, in a situation in which the map size is variable (without > side-effect of the text being in the middle of the map image when the > image size increases :-) )? > > Or is it necessary to use Mapscript to change the point coordinates of the > label in case the map size changes? > > Thanks in advance. > > Best regards, > Bart > From hfl at HOME.NL Wed Mar 22 10:46:23 2006 From: hfl at HOME.NL (Huub Fleuren) Date: Wed, 22 Mar 2006 19:46:23 +0100 Subject: extra spatial filter for OVF source In-Reply-To: <44216D15.7040609@pobox.com> Message-ID: Hi Frank, We would indeed want to use it dynamically, with MapServer. I was allready thinking about generating the complete OVF files (one per signed on user) by the application, and then supply the filename by substitution variable. Now, only the bounding box values are passed thru to the mapfile. e.g. SELECT * FROM kpxy WHERE (x > %xmin%) and (x < %xmax%) and (y > %ymin%) and (y < %ymax%) A static extract may also be usable for the time being, because at the moment selections other than rectangular shaped are rare. Thanks Huub Frank Warmerdam wrote: > Huub Fleuren wrote: > >> Hi List >> >> http://www.google.com/search?hl=en&lr=&rls=GGLD%2CGGLD%3A2004-28%2CGGLD%3Aen&q=ODBC+gdal+spatial+filters+VRT+format+howto >> >> >> I was hoping that i could put an extra spatial filter (a polygon : >> find all point within the polygon) to the following OVF source >> >> Is it possible? >> How? > > > Huub, > > I don't know how this would be accomplished without changing some code, > though I can see that it would be an interesting capability for the OGR > VRT (OVF) driver. If you just wanted a one time static extract it > wouldn't > be to hard to setup with a Python script but doing it dynamically is > not currently supported. > > Best regards, > >> Thanks in advance >> >> >> >> ODBC:admin/admin at anwb >> SELECT k.kp_nr as kp_nr,k.x as x, k.y as y, >> w.wegbeheerdercode as wegbeheerdercode, w.onderhoudsinstantiecode as >> onderhoudsinstantiecode FROM wwall w, kpxy k WHERE NOT (k.soort LIKE >> 'D') and (w.x > 190000) and (w.x < 200000) and (w.y > >> 500000) and (w.y < 520000) and (w.kruispuntnummer = k.kp_nr) >> wkbPoint >> WGS84 >> >> >> > > > From hfl at HOME.NL Wed Mar 22 10:50:47 2006 From: hfl at HOME.NL (Huub Fleuren) Date: Wed, 22 Mar 2006 19:50:47 +0100 Subject: copyright text bottomright but mapsize variable In-Reply-To: <442194E1.6080902@swoodbridge.com> Message-ID: Bart, you might want to lay a static (inhome designed) copyright image on top of your map. If you 'drag' the image, maybe your client gives you the flexibility to let this top image be and just operate on the images stacked under it. Regards, Huub Stephen Woodbridge wrote: > See bugs #1547 and #1592 and a gentle prod of the owners would hurt :) > > -Steve W > > Bart van den Eijnden wrote: > >> Hi list, >> >> is it possible to have a copyright layer in the bottom right part of the >> map image, in a situation in which the map size is variable (without >> side-effect of the text being in the middle of the map image when the >> image size increases :-) )? >> >> Or is it necessary to use Mapscript to change the point coordinates >> of the >> label in case the map size changes? >> >> Thanks in advance. >> >> Best regards, >> Bart >> > > From Derek.Bird at XWAVE.COM Wed Mar 22 10:56:26 2006 From: Derek.Bird at XWAVE.COM (Bird, Derek (xwave)) Date: Wed, 22 Mar 2006 13:56:26 -0500 Subject: MySQL sample Tables and MAP Layer code Message-ID: Hello List, I tried searching the archives and websites, and still have not found any examples of using MySql 5 (with the spatial indexes) Can someone direct me to a site that perhaps has a sample table or two, with a matching layer in the .map file? Regards, Derek -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3084 bytes Desc: not available URL: From jsievers at CO.LINN.OR.US Wed Mar 22 12:24:49 2006 From: jsievers at CO.LINN.OR.US (Jason Sievers) Date: Wed, 22 Mar 2006 14:24:49 -0600 Subject: error when loading queryfile Message-ID: I have successfully performed a query on my map and MapServer has saved the query to a .qy file. I want to then change to a different mapfile but still display the layer with the query results. This takes place with no problems for most of my mapfiles but two of my mapfiles cause an error when trying to load the .qy file. I have checked my mapfiles and the problem does not appear to be with them. The error message is "Content-type: text/html msLayerGetShape(): General error message. Invalid feature id.". Any thoughts would be very helpful. Thanks, Jason Sievers From hobu at IASTATE.EDU Wed Mar 22 15:30:14 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 22 Mar 2006 17:30:14 -0600 Subject: MapServer 4.8.2 Message-ID: All, I am pleased to announce the release of MapServer 4.8.2. Releases in the 4.8 branch are maintenance releases, and changes are mostly confined to bug fixes. Here is a list of the fixes in this release: - PHP MapScript building as a DLL (bug 1717) - Numerous C# improvements by Tamas (bugs 1680, 1596, 1597) - Hiding some items that are not to be exposed to MapScript (bug 1660) - Numerous ArcSDE improvements (it might actually work now ;) (bugs 1682 and 1699) - Inter-tile "cracking" problem (bug 1715) - msSaveMap properly writes out TRANSPARENCY ALPHA (bug 1669) - Ability to set wfs_maxfeatures to 0 (bug 1678) - Increase in precision of ScaleHit for WMS GetCapabilities response (bug 1649) - configure can now detect the Oracle Instant Client rpms (bugs 1470 and 1683) - Fuzzy brush fixes (bug 1659) - Behavior of SIZE for pixmap symbols reverted to previous behavior (bug 1684) The new version can be downloaded from , full changelog can be browsed at , and binaries should start to show up from the usual suspects in the next few days. Howard From steve.lime at DNR.STATE.MN.US Wed Mar 22 16:01:55 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 22 Mar 2006 18:01:55 -0600 Subject: copyright text bottomright but mapsize variable Message-ID: And a case of beer... >>> Stephen Woodbridge 3/22/2006 12:18:09 PM >>> See bugs #1547 and #1592 and a gentle prod of the owners would hurt :) -Steve W Bart van den Eijnden wrote: > Hi list, > > is it possible to have a copyright layer in the bottom right part of the > map image, in a situation in which the map size is variable (without > side-effect of the text being in the middle of the map image when the > image size increases :-) )? > > Or is it necessary to use Mapscript to change the point coordinates of the > label in case the map size changes? > > Thanks in advance. > > Best regards, > Bart > From woodbri at SWOODBRIDGE.COM Wed Mar 22 19:56:52 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 22 Mar 2006 22:56:52 -0500 Subject: PHP/Mapscript, apache2, mod_php - What is the status? Message-ID: Hi all, I want to update my mental knowledge based and I am wondering where we stand with PHP/Mapscript working with mod_php and Apache 1.3 or Apache 2. I know there have been thread-safety issues and I have been a strong advocate of using PHP-CGI with mapscript. Is this still the requirement? How about running Perl/Mapscript with mod_perl? Thanks for the update, -Steve W From s.pashby at POSTGRAD.CURTIN.EDU.AU Wed Mar 22 20:23:47 2006 From: s.pashby at POSTGRAD.CURTIN.EDU.AU (Steve Pashby) Date: Thu, 23 Mar 2006 04:23:47 +0000 Subject: Possibly a silly question ? Message-ID: Hello, Just a quick question ... can MapServer read data from ESRI's geodatabase. I've just tried accessing some data (and failed), but am not sure if its because MapServer cannot read data in a geodatabase, or if its my Mapfile ! Many thanks. Steve. From warmerdam at POBOX.COM Wed Mar 22 20:56:50 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 22 Mar 2006 23:56:50 -0500 Subject: Possibly a silly question ? In-Reply-To: Message-ID: Steve Pashby wrote: > Hello, > > Just a quick question ... can MapServer read data from ESRI's geodatabase. > I've just tried accessing some data (and failed), but am not sure if its > because MapServer cannot read data in a geodatabase, or if its my Mapfile ! Steve, MapServer can utilize ESRI Personal Geodatabase (.mdb) files on Win32 platforms *if* you have a sufficiently recent version of OGR in your MapServer build (at least GDAL 1.3.1). Of course there are lots of things that could be going wrong. I would encourage you to first verify that access to your personal geodatabase is working properly with ogrifo. Of course, if you mean another one of the ESRI geodatabase options (geodatabase in SDE, etc) then different issues apply. 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 OSGF, http://osgeo.org From emiliomayorga at GMAIL.COM Wed Mar 22 21:05:20 2006 From: emiliomayorga at GMAIL.COM (Emilio Mayorga) Date: Wed, 22 Mar 2006 21:05:20 -0800 Subject: using ogr2ogr to create pt shp file from dbf w/ lat-lon fields In-Reply-To: <44217163.8060205@pobox.com> Message-ID: On 3/22/06, Frank Warmerdam wrote: > Emilio Mayorga wrote: > > I have a polygon shape file that has lat & lon fields for the centroid > > (the polygons are simple rectangles). I'd like to write a simple batch > > process to read those lat-lon fields and create a point shape file > > that also includes all the other attributes. I'd like to keep this as > > simple as possible, so I figured I could use ogr2ogr. > > > > It sounds like I need to set up a Virtual Spatial Data file. The > > "Virtual Spatial Data (ODBC/OVF)" MapServer document says that I could > > use an ODBC connection after setting up a DSN. I have unixODBC > > installed on a RedHat server, but I don't see a dbf/dbase driver, and > > I can't find one either in the unixODBC home page. > > > > Alternatively, I could try to export the dbf to a text file (say, > > csv), using something like the dbflist utility (part of the dbf2info > > utilities; I've never used them, but I assume I can set them up!). The > > MapServer document seems to imply that I could then set up an OVF to > > link directly to flat text files without an ODBC DSN, but I can't find > > any examples; I only see ODBC examples. > > > > Any advice on what's the easiest approach to accomplish this? Thanks! > > Emilio, > > The OVF mechanism can be used without ODBC. In this case I would suggest > you copy the .dbf file to a new name so it can be used in isolation > via OVF as a spatial-data-less input file. Then you would use normal > OVF mechanisms, but instead of setting the SrcDatasource to an ODBC > connection string, just give the path to the .dbf file. > > Best regards, Thanks, Frank!! I got it to work on a Windows box with GDAL/OGR 1.2.5 (from FWTools 0.9.6). BTW, I think the MapServer or OGR documentation regarding VRT access from file data sources (like this case) is lacking. The ovf file I created is included at the bottom, with two layers that correspond to two dbf files. The layer name is the base file name of the dbf file, w/o the extension. The data source is the path to the folder. Anything different I tried didn't work. I'll try to edit the MapServer document "Virtual Spatial Data (ODBC/OVF)" to include this example. Now I have a different problem. I'm running MapServer 4.0 on a Linux box with OGR 1.1.9. I read that OVF was introduced in OGR 1.2.0 (and in fact, my ogr2ogr line can't handle the ovf file!). Given my old MapServer, do you think it'd be safe to upgrade GDAL/OGR to the latest version without upgrading MapServer (I don't want to deal with all the dependencies just yet)? Thanks. Cheers, -Emilio Accessing non-spatial tabular data from simple dbf files, through OVF: /home/caee/mapache/data/fires wkbPoint WGS84 /home/caee/mapache/data/fires wkbPoint WGS84 From warmerdam at POBOX.COM Wed Mar 22 21:21:18 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 23 Mar 2006 00:21:18 -0500 Subject: using ogr2ogr to create pt shp file from dbf w/ lat-lon fields In-Reply-To: Message-ID: Emilio Mayorga wrote: > Thanks, Frank!! I got it to work on a Windows box with GDAL/OGR 1.2.5 > (from FWTools 0.9.6). BTW, I think the MapServer or OGR documentation > regarding VRT access from file data sources (like this case) is > lacking. The ovf file I created is included at the bottom, with two > layers that correspond to two dbf files. The layer name is the base > file name of the dbf file, w/o the extension. The data source is the > path to the folder. Anything different I tried didn't work. I'll try > to edit the MapServer document "Virtual Spatial Data (ODBC/OVF)" to > include this example. Emilio, Well, there are indeed many deficiencies in GDAL/OGR and MapServer documentation. The assistance of you, and other community members is critical in improving the documentation, so thanks for your willingness to dig in! > Now I have a different problem. I'm running MapServer 4.0 on a Linux > box with OGR 1.1.9. I read that OVF was introduced in OGR 1.2.0 (and > in fact, my ogr2ogr line can't handle the ovf file!). Given my old > MapServer, do you think it'd be safe to upgrade GDAL/OGR to the latest > version without upgrading MapServer (I don't want to deal with all the > dependencies just yet)? Note that while OVF (which I call OGR VRT) support may have been introduced in 1.2.0, there were also numerous fixes and improvements in the facility right through to 1.3.1. To answer your question, I believe MapServer 4.0 should work just fine with GDAL/OGR 1.3.1. While I respect your need to manage risk in upgrading, it is generally hard to support people using significantly old versions of the software. When answering I certainly never thought you might be running such old versions of MapServer or GDAL/OGR. So, I would encourage you to upgrade to the latest stable release of things when you can if you are hoping for assistance, or bug fixes. 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 OSGF, http://osgeo.org From s.pashby at POSTGRAD.CURTIN.EDU.AU Wed Mar 22 22:28:08 2006 From: s.pashby at POSTGRAD.CURTIN.EDU.AU (Steve Pashby) Date: Thu, 23 Mar 2006 06:28:08 +0000 Subject: Possibly a silly question ? Message-ID: Frank Warmerdam POBOX.COM> writes: > > Steve Pashby wrote: > > Hello, > > > > Just a quick question ... can MapServer read data from ESRI's geodatabase. > > I've just tried accessing some data (and failed), but am not sure if its > > because MapServer cannot read data in a geodatabase, or if its my Mapfile ! > > Steve, > > MapServer can utilize ESRI Personal Geodatabase (.mdb) files on Win32 > platforms *if* you have a sufficiently recent version of OGR in your > MapServer build (at least GDAL 1.3.1). > > Of course there are lots of things that could be going wrong. > > I would encourage you to first verify that access to your personal > geodatabase is working properly with ogrifo. > > Of course, if you mean another one of the ESRI geodatabase options > (geodatabase in SDE, etc) then different issues apply. > > Best regards, Hi, I have GDAL 1.3.1.0 and have eventually managed to open the geodatabase (via 'PGeo' driver?!) But how then do you put this into a Mapfile (CONNECTION TYPE PGeo ... and then the name of the file and continue as per a shapefile?) I'm afraid i'm a bit of new to this and have only worked with shapefiles to date - but need to branch out ! Thanks for your help. Steve. From baas at SPEERIT.NL Thu Mar 23 00:24:49 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Thu, 23 Mar 2006 09:24:49 +0100 Subject: MapServer 4.8.2 In-Reply-To: <6.2.3.4.2.20060322164036.02d0e6d0@hobu.mail.iastate.edu> Message-ID: Howard Butler wrote: > All, > > I am pleased to announce the release of MapServer 4.8.2. > and binaries should start to show up from the usual suspects > in the next few days. And where could that be? I haven't found any other source for Win32 builds with Oracle support other than Hobu's kitchen sink, which is still version 4.6 ... I can't compile myself :( -- Jelmer From flavio at TYDAC.CH Thu Mar 23 00:30:19 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 23 Mar 2006 09:30:19 +0100 Subject: How to increase resolution of image? In-Reply-To: Message-ID: Hi Paul "resolution" is normally defined as dots or pixels per inch. a "naked" image has therefore no resolution, just a size. anyway, you are on the right way, you just have to "force" your 1200x1200 pixels image into an 8"x8" rectangle in your pdf. which would in this case end up to 1200 dots / 8 inch = 150 dpi. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ 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 ---------------------------------------------------------------- From Jukka.Rahkonen at MMMTIKE.FI Thu Mar 23 01:15:43 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 23 Mar 2006 11:15:43 +0200 Subject: Palletizing Bulk Tiled Imagery Message-ID: Hi, > I've worked with gdalwarp on a per-tile basis but that makes the output > tiles parallogrammed as per the re-projection and this causes me trouble >>when > I go to seamlessly composite the new tiles back together. When it comes to get new seamless tiles, for my mind I have received just perfect results with gdalwarp by using the following command: gdalwarp -s_srs EPSG:2392 -t_srs EPSG:25835 -tr 0.5 0.5 -te 402000 7182000 408000 7188000 Jpeg2000.vrt EUREF_mapsheet.tif Essential here is to use a virtual mosaic as a source file. A modified gdal_merge script was once posted to gdal_dev mailing list, that creates GDAL/VRT file from a file list in seconds. In practise I feed the extents of the resulting images and corresponding file names as variables from another bat-file calling this one. There is no need to separately put new tiles together, everything will be ready with one run. Regards, -Jukka Rahkonen- From nhv at CAPE.COM Thu Mar 23 01:31:11 2006 From: nhv at CAPE.COM (Norman Vine) Date: Thu, 23 Mar 2006 04:31:11 -0500 Subject: Palletizing Bulk Tiled Imagery In-Reply-To: Message-ID: Rahkonen Jukka writes: > > A modified gdal_merge script was once posted to gdal_dev > mailing list, that creates GDAL/VRT file from a file list in seconds. Here is a slightly modified version of that http://www.vso.cape.com/~nhv/files/gdal/gdal_vrtmerge.py # modified output of geotransform to retain same numerical # precision as the gdal 'C' utilities # Norman Vine nhv at cape.com 03-Oct-2005 6:23:45 am and here is the recent announcement of a 'C' version Cheers Norman > -----Original Message----- > From: gdal-dev-bounces at lists.maptools.org > [mailto:gdal-dev-bounces at lists.maptools.org]On Behalf Of Dardo D Kleiner > - CONTRACTOR > Sent: Tuesday, March 21, 2006 12:57 PM > To: list67 at netscape.net > Cc: gdal-dev at lists.maptools.org > Subject: Re: [Gdal-dev] VRT file creation from multiple geotiff files > > > Here is a simple program I use to create a .vrt mosaic > from either a file listing source images or a directory > containing source images. Might have some rounding problems > in bounds computation, but works pretty well generally... > > http://www.cmf.nrl.navy.mil/ccs/project/public/DC/web/projects/vrtmosaic > > Obligatory disclaimer: public domain - no guarantees of anything... > > -- > Dardo D. Kleiner > Connection Machine Facility, Center for Computational Sciences > Naval Research Laboratory (Washington, DC) > dkleiner at cmf.nrl.navy.mil -- 202.404.7019 From James.Leveille at MTQ.GOUV.QC.CA Thu Mar 23 05:43:23 2006 From: James.Leveille at MTQ.GOUV.QC.CA (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Thu, 23 Mar 2006 08:43:23 -0500 Subject: WFS - Playing with scales Message-ID: Hi, I configured a mapfile for a WFS service. The MINSCALE and MAXSCALE dont seem to be working properly since data is displayed at any scale ... I did the same thing for a WMS service (another mapfile) and it works fine. Any idea why it doesn't work with WFS ? Other question: Is it true to say that when I connect to a WFS service and I display a particular layer, all the data from that layer is loaded initially. This causes the first display to be slower but any modification to my view afterwards (zoom area, zoom out, pan, etc ...) is (almost) instantly since data is all on the client side ... -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Thu Mar 23 06:12:47 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 23 Mar 2006 16:12:47 +0200 Subject: WFS - Playing with scales Message-ID: Hi, Just thinking, but is there such a thing like scale with WFS actually? Does Mapserver know at all at which scale the client is going to show the vectors? Is there a way do define minimum and maximun bounding boxes instead? -Jukka- ________________________________ L?hett?j?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta L?veill?, James L?hetetty: 23. maaliskuuta 2006 15:43 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] WFS - Playing with scales Hi, I configured a mapfile for a WFS service. The MINSCALE and MAXSCALE dont seem to be working properly since data is displayed at any scale ... I did the same thing for a WMS service (another mapfile) and it works fine. Any idea why it doesn't work with WFS ? Other question: Is it true to say that when I connect to a WFS service and I display a particular layer, all the data from that layer is loaded initially. This causes the first display to be slower but any modification to my view afterwards (zoom area, zoom out, pan, etc ...) is (almost) instantly since data is all on the client side ... -------------- next part -------------- An HTML attachment was scrubbed... URL: From hgirard at CGQ.QC.CA Thu Mar 23 06:08:38 2006 From: hgirard at CGQ.QC.CA (Hugo Girard) Date: Thu, 23 Mar 2006 09:08:38 -0500 Subject: Setup Mapserver IIS Message-ID: Hi all, i follow this tutorial: http://mapserver.gis.umn.edu/docs/howto/setupiis to setup mapserver on iis. Everythings was ok. But i use this command to generate my map : http://localhost/MSProjects/cgi-bin/mapserv.exe?map=C:\Documents and Settings\Administrateur\Bureau\randonneurs\map\main.map&mode=map and an error appear BAD REQUEST (INVALID HOST NAME). I think my command is not good. Someone can help me plz !!!!! Thanks Hugo Girard -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Thu Mar 23 06:27:20 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 23 Mar 2006 09:27:20 -0500 Subject: Character issue with GetMap and SLD Message-ID: Hi, I can do the following GetMap against this WMS: http://atlas.gc.ca/cgi-bin/atlaswms_en?request=GetMap&service=WMS&SRS=EP SG:42304&bbox=1796748.1308543,135121.79091266,1912040.0504417,264131.088 38773&layers=places_labels_2m&version=1.1.1 ..with no issues (NB: MapServer is powering this WMS). When I try to apply the following SLD: http://devgeo.cciw.ca/ms_tmp/k.sld ...to a GetMap request: http://atlas.gc.ca/cgi-bin/atlaswms_en?request=GetMap&service=WMS&SRS=EP SG:42304&bbox=1796748.1308543,135121.79091266,1912040.0504417,264131.088 38773&layers=places_labels_2m&version=1.1.1&sld=http://devgeo.cciw.ca/ms _tmp/k.sld The accented characters on the annotations are malformed. Any suggestions? Thanks ..Tom From szekeres.tamas at FREEMAIL.HU Thu Mar 23 06:55:15 2006 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Thu, 23 Mar 2006 08:55:15 -0600 Subject: Setup Mapserver IIS Message-ID: Try not to use spaces in URL-s Tamas From baas at SPEERIT.NL Thu Mar 23 06:58:01 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Thu, 23 Mar 2006 15:58:01 +0100 Subject: Setup Mapserver IIS In-Reply-To: Message-ID: Tamas Szekeres wrote: > Try not to use spaces in URL-s Or, to be more clear, replace them by %20 . -- jelmer From hgirard at CGQ.QC.CA Thu Mar 23 07:25:42 2006 From: hgirard at CGQ.QC.CA (Hugo Girard) Date: Thu, 23 Mar 2006 10:25:42 -0500 Subject: Setup mapserver iis Message-ID: hi all, i tied what you said but it failed, my command is now : http://localhost/MSProjects/cgi-bin/mapserv.exe?map=C:\Documents%20and%20Settings\Administrateur\Bureau\randonneurs\map\main.map&mode=map I can explain : I create a new web site in my IIS Manager : MSProjects I create all the virtual directory correctly : cgi-bin, tmp, ms_tmp, chameleon I add this line to my mapfile : CONGIG PROJ_LIB "c:\ms4w\proj\nad\" I change the IMAGEPATH in my mapfile : IMAGEPATH "c:\ms4w\tmp\ms_tmp" In short I followed this tutorial completely http://mapserver.gis.umn.edu/docs/howto/setupiis If it can help, here my mapfile file : MAP NAME CarteSentier IMAGETYPE PNG SHAPEPATH "C:/Documents and Settings/Administrateur/Bureau/randonneurs/ShapeFile" EXTENT 193557.937263 5317901.641953 379417.206051 5401384.000000 SIZE 600 450 IMAGECOLOR 255 255 255 CONGIG PROJ_LIB "c:\ms4w\proj\nad\" SYMBOLSET "C:/Documents and Settings/Administrateur/Bureau/randonneurs/etc/symbols.sym" OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" FORMATOPTION "QUALITY=75" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END WEB TEMPLATE 'C:/Documents and Settings/Administrateur/Bureau/randonneurs/Templates/TempRandonneur.html' IMAGEPATH "c:\ms4w\tmp\ms_tmp" IMAGEURL 'http://localhost/mapservertmp/' END REFERENCE STATUS ON IMAGE "C:/Documents and Settings/Administrateur/Bureau/randonneurs/Images/KeyMap.png" SIZE 150 113 EXTENT 193557.937263 5317901.641953 379417.206051 5401384.000000 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END LEGEND STATUS ON IMAGECOLOR 255 255 255 TRANSPARENT ON POSITION LL KEYSIZE 18 12 KEYSPACING 5 5 LABEL TYPE BITMAP SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 150 PARTIALS TRUE FORCE FALSE END END SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS KILOMETERS INTERVALS 5 SIZE 200 5 STYLE 0 POSITION LL LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE FALSE END END QUERYMAP SIZE 200 150 STATUS ON STYLE HILITE # SELECTED | NORMAL COLOR 255 0 0 END PROJECTION "proj=tmerc" "lat_0=0" "lon_0=-70.5" "k=0.999900" "x_0=304800" "y_0=0" "ellps=GRS80" "datum=NAD83" "units=m" "no_defs" END LAYER NAME Hydro_poly DATA hydrographie STATUS ON UNITS METERS SIZEUNITs PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POLYGON METADATA "DESCRIPTION" "Hydro du Saguenay" END CLASS NAME "Hydrographie" STYLE SYMBOL 0 COLOR 91 214 249 END END END LAYER NAME Sentier_line DATA Sentiers_mtm_nad83 STATUS ON TYPE LINE CLASS NAME "Sentier" STYLE COLOR 255 0 0 END END END LAYER NAME "Routes" STATUS ON DATA Routes TYPE LINE LABELITEM "nomComplet" LABELMAXSCALE 40000 TOLERANCE 0 TOLERANCEUNITS PIXELS CLASS NAME "R?seau routier" STYLE SYMBOL 0 COLOR 195 158 0 WIDTH 1 END LABEL TYPE BITMAP SIZE MEDIUM OFFSET 0 0 BUFFER 30 COLOR 0 0 0 PARTIALS TRUE MINDISTANCE 20000 POSITION CC ANGLE AUTO END END END LAYER NAME "NomMunicipalite" STATUS ON DATA Nom_municipalite TYPE POINT LABELITEM "nom" TOLERANCE 0 TOLERANCEUNITS PIXELS CLASS NAME "Municipalit?" SYMBOL 'circle' SIZE 8 COLOR 0 0 0 MAXSCALE 1100000 MINSCALE 1 LABEL TYPE BITMAP SIZE MEDIUM OFFSET -10 -10 BUFFER 0 COLOR 0 0 0 PARTIALS FALSE MINDISTANCE 1 END END END LAYER NAME "SentiersLoc" STATUS ON DATA Sentiers_Localisation TYPE POINT LABELITEM "Nom_du_sen" TOLERANCE 5 TOLERANCEUNITS PIXELS CLASS NAME "Identification des sentiers" SYMBOL 'circle' SIZE 10 COLOR 255 0 0 MAXSCALE 1100000 MINSCALE 100 TEMPLATE "C:/Documents and Settings/Administrateur/Bureau/randonneurs/Templates/InfoSentiers.html" LABEL TYPE BITMAP SIZE MEDIUM OFFSET -10 -10 BUFFER 0 COLOR 0 0 0 PARTIALS FALSE MINDISTANCE 1 END END END END Thanks for the help !!!! I appreciate it !!!!!! ;) -------------- next part -------------- An HTML attachment was scrubbed... URL: From baas at SPEERIT.NL Thu Mar 23 07:34:57 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Thu, 23 Mar 2006 16:34:57 +0100 Subject: Setup mapserver iis In-Reply-To: <000a01c64e8e$0c6201f0$9c01a8c0@centreo3w0r1p4> Message-ID: Hugo Girard wrote: > hi all, i tied what you said but it failed, my command is now : > http://localhost/MSProjects/cgi-bin/mapserv.exe?map=C:\Documents%20and%20Settings\Administrateur\Bureau\randonneurs\map\main.map&mode=map > Thanks for the help !!!! I appreciate it !!!!!! ;) Try to put your files in your IIS dir. You are now trying to let IIS access a file on your desktop, where it normally doesn't have rights. IIS on WinXP / Win2003 (and Win2000 with service packs) doesn't allow you these filenames. So, copy the whole lot to your c:\inetpub\wwwroot and try again. If it doesn't work, check that IUSR_YOURMACHINENAME has enough rights in that folder. -- From pmoen at STATE.ND.US Thu Mar 23 07:35:57 2006 From: pmoen at STATE.ND.US (Paul Moen) Date: Thu, 23 Mar 2006 09:35:57 -0600 Subject: Annotation for line layer problem Message-ID: My ANNOTATION layer line types worked in 4.8.1 and do not in 4.8.2. The httpd daemon takes all the processor and times out in 60 seconds when I zoom to a level the label appears. This only seems to be a problem on the annotation for line layers. LAYER # Line Shape File NAME "a_State and Federal Roads" DATA roadsstatefed GROUP "Transportation" TEMPLATE "noexist" STATUS ON TYPE ANNOTATION LABELITEM "HWY" CLASS TYPE ANNOTATION MAXSCALE 1000000 NAME "0_0" EXPRESSION ('[RTE_SIN]' eq 'S') COLOR 0 0 0 SYMBOL "../symbols/largerimages/sthwy.gif" LABEL MINFEATURESIZE 50 MINDISTANCE 150 SIZE SMALL COLOR 0 0 0 END END # Standard Road Signs - State END This works for the polygon layer countypoly. LAYER # Polygon shap file NAME "a_Counties" DATA countypoly GROUP "Political Boundaries" STATUS ON TYPE ANNOTATION LABELITEM "NAME_CAPS" CLASS NAME "0" TYPE ANNOTATION EXPRESSION ('[NAME_CAPS]' eq 'MOUNTRAIL') MINSCALE 500000 LABEL FONT timesbold TYPE TRUETYPE OUTLINECOLOR 150 255 150 SIZE 7 COLOR 100 100 100 ANGLE AUTO PARTIALS FALSE POSITION CC END END I get no errors in http error_log or in the console.log. Did something change that makes my annotation layer definitions for lines wrong? Can anyone see if there is something that I am missing or did something break in 4.8.2? Thanks, Paul Moen From LESSARDST at DFO-MPO.GC.CA Thu Mar 23 07:44:31 2006 From: LESSARDST at DFO-MPO.GC.CA (Stephane Lessard) Date: Thu, 23 Mar 2006 10:44:31 -0500 Subject: Setup Mapserver IIS Message-ID: Hugo Girard... World Strongest Man? It might simply be a problem with your IIS installation? Try http://localhost , or http://127.0.0.1 If you are on Win2003, this might help you: http://www.mrtweak.com/windows-servers/fixing-a-bad-request-invalid-hostname -400-error-on-windows-iis/ Hope this helps! St?phane Lessard _____ De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Hugo Girard Envoy? : 23 mars 2006 09:09 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Setup Mapserver IIS Hi all, i follow this tutorial: http://mapserver.gis.umn.edu/docs/howto/setupiis to setup mapserver on iis. Everythings was ok. But i use this command to generate my map : http://localhost/MSProjects/cgi-bin/mapserv.exe?map=C:\Documents and Settings\Administrateur\Bureau\randonneurs\map\main.map&mode=map and an error appear BAD REQUEST (INVALID HOST NAME). I think my command is not good. Someone can help me plz !!!!! Thanks Hugo Girard -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmoen at STATE.ND.US Thu Mar 23 07:50:33 2006 From: pmoen at STATE.ND.US (Paul Moen) Date: Thu, 23 Mar 2006 09:50:33 -0600 Subject: How to increase resolution of image? In-Reply-To: Message-ID: Thank you for your response Flavio. Does that mean that all sizes of map elements must be sized larger so they scale with the map? Does anyone know if this is something that is being worked on or has been a feature request? Can GD or Imagemagick scale the image to an 8 x 8 at 150 dpi without degrading the image? On 3/23/06 2:30 AM, "Flavio Hendry" wrote: > Hi Paul > > "resolution" is normally defined as dots or pixels per inch. a "naked" > image has therefore no resolution, just a size. anyway, you are on the > right way, you just have to "force" your 1200x1200 pixels image into an > 8"x8" rectangle in your pdf. which would in this case end up to 1200 > dots / 8 inch = 150 dpi. > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > ---------------------------------------------------------------- > ############ 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 > ---------------------------------------------------------------- Thank you, Paul T. Moen pmoen at state.nd.us 701-328-2434 701-328-3696 (fax) ND State Water Commission From David.Fawcett at STATE.MN.US Thu Mar 23 07:01:42 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 23 Mar 2006 09:01:42 -0600 Subject: Palletizing Bulk Tiled Imagery Message-ID: This sounds like a great candidate for a 'How-To' on the MapServer site, or an addition to the existing Raster Data Access How-To: http://mapserver.gis.umn.edu/docs/howto/raster_data Another great candidate for a How-To would be 'Data Optimization', broken into Raster and Vector sections. We continually get list questions about how to make big datasets faster, it would be great to be able to point to one document. One could probably just scrape most of the great emails from Ed on the subject. I may start one if I get any time. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Norman Vine Sent: Thursday, March 23, 2006 3:31 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Palletizing Bulk Tiled Imagery Rahkonen Jukka writes: > > A modified gdal_merge script was once posted to gdal_dev > mailing list, that creates GDAL/VRT file from a file list in seconds. Here is a slightly modified version of that http://www.vso.cape.com/~nhv/files/gdal/gdal_vrtmerge.py # modified output of geotransform to retain same numerical # precision as the gdal 'C' utilities # Norman Vine nhv at cape.com 03-Oct-2005 6:23:45 am and here is the recent announcement of a 'C' version Cheers Norman > -----Original Message----- > From: gdal-dev-bounces at lists.maptools.org > [mailto:gdal-dev-bounces at lists.maptools.org]On Behalf Of Dardo D > Kleiner > - CONTRACTOR > Sent: Tuesday, March 21, 2006 12:57 PM > To: list67 at netscape.net > Cc: gdal-dev at lists.maptools.org > Subject: Re: [Gdal-dev] VRT file creation from multiple geotiff files > > > Here is a simple program I use to create a .vrt mosaic > from either a file listing source images or a directory containing > source images. Might have some rounding problems in bounds > computation, but works pretty well generally... > > http://www.cmf.nrl.navy.mil/ccs/project/public/DC/web/projects/vrtmosa > ic > > Obligatory disclaimer: public domain - no guarantees of anything... > > -- > Dardo D. Kleiner > Connection Machine Facility, Center for Computational Sciences > Naval Research Laboratory (Washington, DC) > dkleiner at cmf.nrl.navy.mil -- 202.404.7019 From naci0002 at UMN.EDU Thu Mar 23 08:09:10 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Thu, 23 Mar 2006 10:09:10 -0600 Subject: Setup Mapserver IIS In-Reply-To: <000c01c64e83$48925630$9c01a8c0@centreo3w0r1p4> Message-ID: Hugo Girard wrote: > > Hi all, i follow this tutorial: > http://mapserver.gis.umn.edu/docs/howto/setupiis > > to setup mapserver on iis. Everythings was ok. But i use this command to > generate my map : > http://localhost/MSProjects/cgi-bin/mapserv.exe?map=C:\Documents and > Settings\Administrateur\Bureau\randonneurs\map\main.map&mode=map > and an error appear *BAD REQUEST (INVALID HOST NAME)*. I think my > command is not good. Someone can help me plz !!!!! Is the IIS service running? What happens if you just type http://localhost/MSProjects/cgi-bin/mapserv.exe? If the above looks right, then you should check your permissions. Chances are a normal user don't have permission to access an administrator's directory. ;) Move your application to a different directory. -Perry From hgirard at CGQ.QC.CA Thu Mar 23 08:12:20 2006 From: hgirard at CGQ.QC.CA (Hugo Girard) Date: Thu, 23 Mar 2006 11:12:20 -0500 Subject: setup mapserver iis Message-ID: Thanks all, i think my mapserver is correctly configured. But when I try http://205.237.80.49/cgi-bin/mapserv.exe?map=C:\... a popup appear where i can download mapserv.exe ???? I dont understand ???? Sorry for my english !!! -------------- next part -------------- An HTML attachment was scrubbed... URL: From toni at SIGTE.UDG.ES Thu Mar 23 08:11:24 2006 From: toni at SIGTE.UDG.ES (=?ISO-8859-1?Q?toni_hern=E1ndez?=) Date: Thu, 23 Mar 2006 17:11:24 +0100 Subject: can't see any image symbol with 4.6 Message-ID: hi all, I have updated my mapservr application from 4.4.1 to 4.6.1. I have lots of layers, 40 something No error is thrown but I can not see any symbols now. Does anyone know why? this is a piece of my map file, and may symbolset file PIECE OF MAP FILE -------------------------- LAYER #Aqu? comen?a la capa de Naufragis NAME NAUFRAGIS TYPE POINT STATUS ON DATA "Naufragis" MINSCALE 0 MAXSCALE 500000 CLASSITEM "Codi_act" CLASS EXPRESSION "301" SYMBOL 'Mercant' END CLASS EXPRESSION "302" SYMBOL 'Guerra' END CLASS EXPRESSION "303" SYMBOL 'Pesca' END CLASS EXPRESSION "304" SYMBOL 'Cabotatge' END CLASS EXPRESSION "305" SYMBOL 'Carguero' END CLASS EXPRESSION "306" SYMBOL 'Transport' END CLASS EXPRESSION "307" SYMBOL 'Preso' END CLASS EXPRESSION "308" SYMBOL 'Remolcador' END CLASS EXPRESSION "309" SYMBOL 'Transbordador' END CLASS EXPRESSION "310" SYMBOL 'Salvament' END CLASS EXPRESSION "311" SYMBOL 'Petroler' END CLASS EXPRESSION "312" SYMBOL 'Guardacostes' END CLASS EXPRESSION "313" SYMBOL 'Correu' END CLASS EXPRESSION "314" SYMBOL 'Desconegut' END TEMPLATE template_naufragis.htm TOLERANCE 20 END PIECE OF SYMBOLSETFILE ------------------------------ SYMBOL NAME "Naufragis" TYPE PIXMAP IMAGE "Naufragis.GIF" #TRANSPARENT 1 END SYMBOL NAME "Mercant" TYPE PIXMAP IMAGE "Mercant.GIF" #TRANSPARENT 1 END SYMBOL NAME "Guerra" TYPE PIXMAP IMAGE "Guerra.GIF" #TRANSPARENT 1 END SYMBOL NAME "Pesca" TYPE PIXMAP IMAGE "Pesca.GIF" #TRANSPARENT 1 END SYMBOL NAME "Cabotatge" TYPE PIXMAP IMAGE "Cabotatge.GIF" #TRANSPARENT 1 END SYMBOL NAME "Carguero" TYPE PIXMAP IMAGE "Carguero.GIF" #TRANSPARENT 1 END From naci0002 at UMN.EDU Thu Mar 23 08:26:41 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Thu, 23 Mar 2006 10:26:41 -0600 Subject: setup mapserver iis In-Reply-To: <001801c64e94$9055db70$9c01a8c0@centreo3w0r1p4> Message-ID: I don't use IIS any longer but that message tells me that your mapserv.exe (and perhaps the entire cgi-bin directory) doesn't have execute permission. Change the permission so that you can run scripts or execute programs and you'll be good to go. All that should be done with IIS's MMC. Cheers! -Perry Hugo Girard wrote: > > Thanks all, i think my mapserver is correctly configured. But when I try > http://205.237.80.49/cgi-bin/mapserv.exe?map=C:\... a popup appear where > i can download mapserv.exe ???? I dont understand ???? Sorry for my > english !!! From nhv at CAPE.COM Thu Mar 23 08:49:37 2006 From: nhv at CAPE.COM (Norman Vine) Date: Thu, 23 Mar 2006 11:49:37 -0500 Subject: Palletizing Bulk Tiled Imagery In-Reply-To: Message-ID: Norman Vine wrote: > > > > A modified gdal_merge script was once posted to gdal_dev > > mailing list, that creates GDAL/VRT file from a file list in seconds. > > Here is a slightly modified version of that > http://www.vso.cape.com/~nhv/files/gdal/gdal_vrtmerge.py > > # modified output of geotransform to retain same numerical > # precision as the gdal 'C' utilities > # Norman Vine nhv at cape.com 03-Oct-2005 6:23:45 am Note this has been added to the $GDAL_CVS / pymod / samples directory Cheers Norman From tkirstine at JDBARNES.COM Thu Mar 23 09:07:19 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Thu, 23 Mar 2006 12:07:19 -0500 Subject: WFS - Playing with scales In-Reply-To: Message-ID: MessageYou could try wfs_extent http://mapserver.gis.umn.edu/docs/howto/wfs_server -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Rahkonen Jukka Sent: Thursday, March 23, 2006 9:13 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WFS - Playing with scales Hi, Just thinking, but is there such a thing like scale with WFS actually? Does Mapserver know at all at which scale the client is going to show the vectors? Is there a way do define minimum and maximun bounding boxes instead? -Jukka- ---------------------------------------------------------------------------- L?hett?j?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta L?veill?, James L?hetetty: 23. maaliskuuta 2006 15:43 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] WFS - Playing with scales Hi, I configured a mapfile for a WFS service. The MINSCALE and MAXSCALE dont seem to be working properly since data is displayed at any scale ... I did the same thing for a WMS service (another mapfile) and it works fine. Any idea why it doesn't work with WFS ? Other question: Is it true to say that when I connect to a WFS service and I display a particular layer, all the data from that layer is loaded initially. This causes the first display to be slower but any modification to my view afterwards (zoom area, zoom out, pan, etc ...) is (almost) instantly since data is all on the client side ... -------------- next part -------------- An HTML attachment was scrubbed... URL: From toni at SIGTE.UDG.ES Thu Mar 23 09:46:14 2006 From: toni at SIGTE.UDG.ES (=?ISO-8859-1?Q?toni_hern=E1ndez?=) Date: Thu, 23 Mar 2006 18:46:14 +0100 Subject: symbols from 4.4.1 to 4.6.1 Message-ID: hi, After serveral hours of trying.. I can state now that: I am crazier and If you want the symbols of you mapserver (4.6.1 ) application to be shown you HAVE TO include the attribute color in the class definition, even when the symbol is comming from a file. Does it make any sense? I have a 4.4.1 version running and the color attribute is not necessary. Anyone can tell me why? From pmoen at STATE.ND.US Thu Mar 23 10:41:19 2006 From: pmoen at STATE.ND.US (Paul Moen) Date: Thu, 23 Mar 2006 12:41:19 -0600 Subject: Annotation for line layer problem In-Reply-To: Message-ID: An update. The annotation layer for the line shape works when the symbol is not used. Therefore, something is wrong with the way I use my symbol. This worked in 4.8.1. So, the new question is what is wrong with my symbol and the way I am using it? On 3/23/06 9:35 AM, "Paul Moen" wrote: > My ANNOTATION layer line types worked in 4.8.1 and do not in 4.8.2. The httpd > daemon takes all > the processor and times out in 60 seconds when I zoom to a level the label > appears. This only > seems to be a problem on the annotation for line layers. > > LAYER # Line Shape File > NAME "a_State and Federal Roads" > DATA roadsstatefed > GROUP "Transportation" > TEMPLATE "noexist" > STATUS ON > TYPE ANNOTATION > LABELITEM "HWY" > CLASS > TYPE ANNOTATION > MAXSCALE 1000000 > NAME "0_0" > EXPRESSION ('[RTE_SIN]' eq 'S') > COLOR 0 0 0 > SYMBOL "../symbols/largerimages/sthwy.gif" > LABEL > MINFEATURESIZE 50 > MINDISTANCE 150 > SIZE SMALL > COLOR 0 0 0 > END > END # Standard Road Signs - State > END > > This works for the polygon layer countypoly. > > LAYER # Polygon shap file > NAME "a_Counties" > DATA countypoly > GROUP "Political Boundaries" > STATUS ON > TYPE ANNOTATION > LABELITEM "NAME_CAPS" > CLASS > NAME "0" > TYPE ANNOTATION > EXPRESSION ('[NAME_CAPS]' eq 'MOUNTRAIL') > MINSCALE 500000 > LABEL > FONT timesbold > TYPE TRUETYPE > OUTLINECOLOR 150 255 150 > SIZE 7 > COLOR 100 100 100 > ANGLE AUTO > PARTIALS FALSE > POSITION CC > END > END > > I get no errors in http error_log or in the console.log. Did something change > that makes my > annotation layer definitions for lines wrong? Can anyone see if there is > something that I am > missing or did something break in 4.8.2? > > Thanks, > > Paul Moen Paul T. Moen pmoen at state.nd.us 701-328-2434 701-328-3696 (fax) ND State Water Commission -------------- next part -------------- A non-text attachment was scrubbed... Name: interstate.gif Type: application/octet-stream Size: 949 bytes Desc: not available URL: From jeff at PROPERTYKEY.COM Thu Mar 23 11:09:27 2006 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Thu, 23 Mar 2006 13:09:27 -0600 Subject: drawLabelCache problem in 4.8.2 Message-ID: I'm setting up a new server and decided to go with the newest version of MapServer, but I'm having a problem with getting one of my perl scripts to run. I've isolated the problem to the call to drawLabelCache -- once the script hits that line, it pegs the CPU until the web server request times out. I've run the same script on probably every 4.x version of MapServer there is up til now without problems, so I went and grabbed a copy of the 4.8.1 source and compiled it on that machine & it worked fine, so I'm guessing that some sort of bug got introduced between releases. -- Jeff Hoffmann jeff at propertykey.com From pmoen at STATE.ND.US Thu Mar 23 11:15:40 2006 From: pmoen at STATE.ND.US (Paul Moen) Date: Thu, 23 Mar 2006 13:15:40 -0600 Subject: queryByAttributes PostGIS Problem Message-ID: Can anyone tell me how to use queryByAttributes in PHP mapscript to query a postgis layer with the following WHERE clause. WHERE (location LIKE '12458%' AND county = 'Bowman') I assume that I can do it with 4.8.2 since I could with mapscript 4.6.2 using $search = $qlayer->queryByAttributes(county,"(location LIKE '12458%' AND county = 'Bowman')",MS_MULTIPLE); With 4.6.2, it didn't seem to matter what field I put in the first parameter, as long as it was a valid field. The second parameter was essentially the where clause. With 4.8.2, using $search = $qlayer->queryByAttributes(county,"(location LIKE '12458%' AND county = 'Bowman')",MS_MULTIPLE); creates the malformed where clause below. WHERE (county = 'location LIKE '12458%' AND county = 'Bowman'') Is this a bug or did the functionality go away? Thank you, Paul T. Moen pmoen at state.nd.us ND State Water Commission From pmoen at STATE.ND.US Thu Mar 23 11:39:36 2006 From: pmoen at STATE.ND.US (Paul Moen) Date: Thu, 23 Mar 2006 13:39:36 -0600 Subject: drawLabelCache problem in 4.8.2 In-Reply-To: <4422F267.7000508@propertykey.com> Message-ID: This may be related to my problem with symbols in the label. If you are using a symbol to label try commenting it out to see if it will label with text. >The annotation layer for the line shape works when the symbol is not used. >Therefore, something is wrong with the way I use my symbol. This worked in >4.8.1. So, the new question is what is wrong with my symbol and the way I >am using it? >On 3/23/06 9:35 AM, "Paul Moen" wrote: >> My ANNOTATION layer line types worked in 4.8.1 and do not in 4.8.2. The httpd >> daemon takes all >> the processor and times out in 60 seconds when I zoom to a level the label >> appears. This only >> seems to be a problem on the annotation for line layers. >> >> LAYER # Line Shape File >> NAME "a_State and Federal Roads" >> DATA roadsstatefed >> GROUP "Transportation" >> TEMPLATE "noexist" >> STATUS ON >> TYPE ANNOTATION >> LABELITEM "HWY" >> CLASS >> TYPE ANNOTATION >> MAXSCALE 1000000 >> NAME "0_0" >> EXPRESSION ('[RTE_SIN]' eq 'S') >> COLOR 0 0 0 >> SYMBOL "../symbols/largerimages/sthwy.gif" >> LABEL >> MINFEATURESIZE 50 >> MINDISTANCE 150 >> SIZE SMALL >> COLOR 0 0 0 >> END >> END # Standard Road Signs - State >> END >> >> This works for the polygon layer countypoly. >> >> LAYER # Polygon shap file >> NAME "a_Counties" >> DATA countypoly >> GROUP "Political Boundaries" >> STATUS ON >> TYPE ANNOTATION >> LABELITEM "NAME_CAPS" >> CLASS >> NAME "0" >> TYPE ANNOTATION >> EXPRESSION ('[NAME_CAPS]' eq 'MOUNTRAIL') >> MINSCALE 500000 >> LABEL >> FONT timesbold >> TYPE TRUETYPE >> OUTLINECOLOR 150 255 150 >> SIZE 7 >> COLOR 100 100 100 >> ANGLE AUTO >> PARTIALS FALSE >> POSITION CC >> END >> END >> >> I get no errors in http error_log or in the console.log. Did something change >> that makes my >> annotation layer definitions for lines wrong? Can anyone see if there is >> something that I am >> missing or did something break in 4.8.2? >> >> Thanks, >> >> Paul Moen On 3/23/06 1:09 PM, "Jeff Hoffmann" wrote: > I'm setting up a new server and decided to go with the newest version of > MapServer, but I'm having a problem with getting one of my perl scripts > to run. I've isolated the problem to the call to drawLabelCache -- once > the script hits that line, it pegs the CPU until the web server request > times out. I've run the same script on probably every 4.x version of > MapServer there is up til now without problems, so I went and grabbed a > copy of the 4.8.1 source and compiled it on that machine & it worked > fine, so I'm guessing that some sort of bug got introduced between releases. Paul T. Moen pmoen at state.nd.us 701-328-2434 701-328-3696 (fax) ND State Water Commission From emiliomayorga at GMAIL.COM Thu Mar 23 12:06:02 2006 From: emiliomayorga at GMAIL.COM (Emilio Mayorga) Date: Thu, 23 Mar 2006 12:06:02 -0800 Subject: using ogr2ogr to create pt shp file from dbf w/ lat-lon fields In-Reply-To: <4422304E.7020208@pobox.com> Message-ID: > Well, there are indeed many deficiencies in GDAL/OGR and MapServer > documentation. The assistance of you, and other community members > is critical in improving the documentation, so thanks for your willingness > to dig in! I will make the edits later. Please see below for a known FWTools bug I ran into, and solved thanks to an earlier posting from you. > > Now I have a different problem. I'm running MapServer 4.0 on a Linux > > box with OGR 1.1.9. I read that OVF was introduced in OGR 1.2.0 (and > > in fact, my ogr2ogr line can't handle the ovf file!). Given my old > > MapServer, do you think it'd be safe to upgrade GDAL/OGR to the latest > > version without upgrading MapServer (I don't want to deal with all the > > dependencies just yet)? > > Note that while OVF (which I call OGR VRT) support may have been > introduced in 1.2.0, there were also numerous fixes and improvements > in the facility right through to 1.3.1. I installed the current FWTools (1.0.0a7) on both Windows and Linux. Everything works fine on Windows. (BTW, I think the syntax is much more consistent now). But on Linux I ran into the FWTools/ogr2ogr bug described (and solved) here: http://lists.maptools.org/pipermail/fwtools/2006-February/000304.html Your solution worked great. > To answer your question, I believe MapServer 4.0 should work just fine > with GDAL/OGR 1.3.1. While I respect your need to manage risk in upgrading, > it is generally hard to support people using significantly old versions > of the software. When answering I certainly never thought you might > be running such old versions of MapServer or GDAL/OGR. So, I would > encourage you to upgrade to the latest stable release of things when > you can if you are hoping for assistance, or bug fixes. I fully understand, no worries. I do plan to upgrade MapServer and all dependencies, I just haven't had time... Thanks so much for all your help. -Emilio From assefa at DMSOLUTIONS.CA Thu Mar 23 12:10:00 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 23 Mar 2006 15:10:00 -0500 Subject: Character issue with GetMap and SLD In-Reply-To: <2576812186CDD411BF1500508B6DCE950DB33331@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Tom, Is it possible that the font list does not coinatin the font that you are trying to use ? From your sld, when applying it to the layer, the resulting font name set will be Arial-bold-italic. If that is not available in the font.txt, the defaut fall-back is to use the pixmap fonts which might explain the problem. Later, Kralidis,Tom [Burlington] wrote: > Hi, > > I can do the following GetMap against this WMS: > > http://atlas.gc.ca/cgi-bin/atlaswms_en?request=GetMap&service=WMS&SRS=EP > SG:42304&bbox=1796748.1308543,135121.79091266,1912040.0504417,264131.088 > 38773&layers=places_labels_2m&version=1.1.1 > > ..with no issues (NB: MapServer is powering this WMS). > > When I try to apply the following SLD: > > http://devgeo.cciw.ca/ms_tmp/k.sld > > ...to a GetMap request: > > http://atlas.gc.ca/cgi-bin/atlaswms_en?request=GetMap&service=WMS&SRS=EP > SG:42304&bbox=1796748.1308543,135121.79091266,1912040.0504417,264131.088 > 38773&layers=places_labels_2m&version=1.1.1&sld=http://devgeo.cciw.ca/ms > _tmp/k.sld > > The accented characters on the annotations are malformed. > > Any suggestions? > > Thanks > > ..Tom > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From lpzhao at NETZERO.NET Thu Mar 23 12:07:57 2006 From: lpzhao at NETZERO.NET (lpzhao@netzero.net) Date: Thu, 23 Mar 2006 20:07:57 GMT Subject: How to install source code mapserver-4.8.2.tar.tar in Window? Message-ID: An embedded and charset-unspecified text was scrubbed... Name: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolas.fortin at EC.GC.CA Thu Mar 23 12:24:56 2006 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Thu, 23 Mar 2006 15:24:56 -0500 Subject: [UMN_MAPSERVER-USERS] How to install source code mapserver-4.8.2.tar.tar in Window? Message-ID: WinRAR can deal with this. -Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de lpzhao at netzero.net Envoy? : 23 mars 2006 15:08 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] How to install source code mapserver-4.8.2.tar.tar in Window? Hi, I already set up a MapServer(MS4W) in my computer. It works. I would like to read source code. I tried to download the file "source distribution" created by Howard Butlur. The problem is that I don't know how to deal with file "mapserver-4.8.2.tar.tar" in Window.XP . Is there anyone can help me out? Thank you so much! Liping -------------- next part -------------- An HTML attachment was scrubbed... URL: From jorn at SPACETEC.NO Thu Mar 23 12:46:11 2006 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Thu, 23 Mar 2006 21:46:11 +0100 Subject: Arrow for a line Message-ID: Hi, I have a Postgis database with some lines and the heading of them (track of vessels). How can I use ANGLEITEM to visualise the heading of the boats, preferrably with an arrow? Here is an example I know doesn't work, maybe close to the solution....: SYMBOL NAME 'dashed1' TYPE VECTOR POINTS 0 0 0 1 -99 -99 0 0 0.3 0.3 -99 -99 0 0 -0.3 0.3 END FILLED false END LAYER NAME "ais" CONNECTIONTYPE POSTGIS CONNECTION "user=postgres dbname=havo host=localhost port=5432" DATA "track from my_ship_track_view" TYPE line PROJECTION "init=epsg:4326" END LABELITEM "name" CLASSITEM "name" CLASS STYLE ANGLEITEM 'heading' SYMBOL "dashed1" SIZE 20 COLOR 0 255 0 END END CLASS DEBUG ON LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE TRUETYPE FONT arial SIZE 5 ANTIALIAS TRUE POSITION CL PARTIALS true MINDISTANCE 10 BUFFER 4 END # end of label COLOR 224 64 0 END END cheers Jorn From bfraser at GEOANALYTIC.COM Thu Mar 23 12:57:43 2006 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 23 Mar 2006 13:57:43 -0700 Subject: Arrow for a line Message-ID: J?rn, We did something similar a few years ago (mapserver 3.7). It will likely be much easier now with rotated truetype symbols (I think that's possible, but I haven't tried it). Here's some info on the old way using v3.7: ================== From aaronkoning at GMAIL.COM Thu Mar 23 14:31:54 2006 From: aaronkoning at GMAIL.COM (Aaron Koning) Date: Thu, 23 Mar 2006 14:31:54 -0800 Subject: How to increase resolution of image? In-Reply-To: Message-ID: Yes, the map elements should be scaled as well. Otherwise, when printed, they appear smaller than the web-map. This is not a fun task, because you have to worry about a layer's scale dependency, are the labels being sized proportionally, etc. I also wonder if this is a feature request in MapServer? Seems to be a common topic throughout the years. Aaron On 3/23/06, Paul Moen wrote: > > Thank you for your response Flavio. > > Does that mean that all sizes of map elements must be sized larger so they > scale with the map? > > Does anyone know if this is something that is being worked on or has been > a > feature request? Can GD or Imagemagick scale the image to an 8 x 8 at 150 > dpi without degrading the image? > > On 3/23/06 2:30 AM, "Flavio Hendry" wrote: > > > Hi Paul > > > > "resolution" is normally defined as dots or pixels per inch. a "naked" > > image has therefore no resolution, just a size. anyway, you are on the > > right way, you just have to "force" your 1200x1200 pixels image into an > > 8"x8" rectangle in your pdf. which would in this case end up to 1200 > > dots / 8 inch = 150 dpi. > > > > Mit freundlichem Gruss / Best Regards > > Flavio Hendry > > > > ---------------------------------------------------------------- > > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > > ---------------------------------------------------------------- > > ############ 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 > > ---------------------------------------------------------------- > > > Thank you, > > Paul T. Moen > pmoen at state.nd.us > 701-328-2434 > 701-328-3696 (fax) > ND State Water Commission > -- +-------------------------------------------- | Aaron Koning | Information Technologist | Prince George, BC, Canada. +-------------------------------------------- | http://datashare.gis.unbc.ca/fist/ | http://datashare.gis.unbc.ca/gctp-js/ +-------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From stevem at SPATIALMAPPING.COM Thu Mar 23 16:04:52 2006 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Thu, 23 Mar 2006 18:04:52 -0600 Subject: Possibly a silly question ? Message-ID: On Thu, 23 Mar 2006 06:28:08 +0000, Steve Pashby wrote: >Frank Warmerdam POBOX.COM> writes: > >> >> Steve Pashby wrote: >> > Hello, >> > >> > Just a quick question ... can MapServer read data from ESRI's >geodatabase. >> > I've just tried accessing some data (and failed), but am not sure if its >> > because MapServer cannot read data in a geodatabase, or if its my Mapfile ! >> >> Steve, >> >> MapServer can utilize ESRI Personal Geodatabase (.mdb) files on Win32 >> platforms *if* you have a sufficiently recent version of OGR in your >> MapServer build (at least GDAL 1.3.1). >> >> Of course there are lots of things that could be going wrong. >> >> I would encourage you to first verify that access to your personal >> geodatabase is working properly with ogrifo. >> >> Of course, if you mean another one of the ESRI geodatabase options >> (geodatabase in SDE, etc) then different issues apply. >> >> Best regards, > > >Hi, > >I have GDAL 1.3.1.0 and have eventually managed to open the geodatabase >(via 'PGeo' driver?!) But how then do you put this into a Mapfile (CONNECTION >TYPE PGeo ... and then the name of the file and continue as per a shapefile?) > The following has worked for me (within a LAYER block, of course): CONNECTIONTYPE ogr CONNECTION "C:\full\path\to\your\geodatabase.mdb,feature_class_name" The CONNECTION string consists of two parts, separated by a comma: (1) the full path to your Personal Geodatabase file, and (2) the name of the feature class (ESRI terminology) within the Geodatabase. Hope this helps, -SM -- From sal_ind1 at INDIATIMES.COM Thu Mar 23 22:25:14 2006 From: sal_ind1 at INDIATIMES.COM (M K Dey) Date: Fri, 24 Mar 2006 11:55:14 +0530 Subject: To All Users ! Check It ! Message-ID: Hi Lists I am giving one daemon file in C that will remove all the image file made by the mapserver in your image directory. Once you will run this program(After compiling) it will run in the background and will remove the image files after each 30 secs. So you donot have to manually remove the images made by the mapserver. All codes and instructions for compilation are given in separate files as a attachement. It is tested in Linux. The files in the attachements are- 1) Source code in C (daaemn.c) 2) How to compile and Deploy (howto) Also I had posted two queries in the LIST but I have not got any response. So Plz I will really appreciate to all those who will share their views and experience. My queries are--- 1) How to made the size of the final window in the browser a dynamic one. Like user should select the window as 800*500 or 700*550 etc and depending on the user choice the mapserver should built the size of the final window. See http://www.mapainterativo.ciasc.gov.br/sc.phtml for farthur clarifications. 2) How to get the Lat, Long information in the final map when a user moves his/her mouse over the image in the browser? Also is it possible to get all the datas from the dbf file along with Lat, Long information, maybe in a separate popup window in the browser ? See http://angling-technologies.com/atmaps.phtml Hope to get a response this time. Thanks in advance. Mac D Get Your Private, Free E-mail from Indiatimes at http://infinite.indiatimes.com Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to http://airsa hara.indiatimes.com and Bid Now! From stepan.kafka at CENTRUM.CZ Thu Mar 23 22:30:45 2006 From: stepan.kafka at CENTRUM.CZ (Stepan Kafka) Date: Fri, 24 Mar 2006 07:30:45 +0100 Subject: Arrow for a line Message-ID: You may use truetype symbol of arrow for a line e.g. this way (unfortunately, the arrows are along the whole line not only at line begining ): SYMBOL NAME "arrow" TYPE truetype FONT arial CHARACTER ">" GAP -25 END then LAYER ... CLASS STYLE SYMBOL arrow SIZE 20 POSITION CC # you may play with (LC, RL, etc - similar to label position) it to achieve different effect - try it STYLE END # class END #layer From elam at LISASOFT.COM Wed Mar 22 21:34:00 2006 From: elam at LISASOFT.COM (Eric Lam) Date: Thu, 23 Mar 2006 16:04:00 +1030 Subject: Dissappearing lines at large scales Message-ID: Hello list, I have a set of line geometries(roads) which I am using mapserver to display graphically. The problem I am currently having is that certain lines appear at low scales (zoomed in) but not at large scales (zoomed out). Is there a reason for this. I know that running a Douglas Peuker algorithm over these lines would remove them [or at least make them too small to see...]. Is this what is happening? Can I turn it off? Thanks Eric From Jukka.Rahkonen at MMMTIKE.FI Thu Mar 23 23:09:02 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 24 Mar 2006 09:09:02 +0200 Subject: VS: [UMN_MAPSERVER-USERS] Setup mapserver iis Message-ID: Hi, Nothing to say about IIS, but once you have it running I suppose you won't still get anything visible by using your request. All your layers seem to have "STATUS ON" and it means that they are NOT showed if you are not specifically requesting for it. Either add "&layers=" argument to your request, or change at least one layer in your mapfile to "DEFAULT". Sorry if this is too trivial, -Jukka- ________________________________ L?hett?j?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Hugo Girard L?hetetty: 23. maaliskuuta 2006 17:26 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] Setup mapserver iis hi all, i tied what you said but it failed, my command is now : http://localhost/MSProjects/cgi-bin/mapserv.exe?map=C:\Documents%20and%20Settings\Administrateur\Bureau\randonneurs\map\main.map&mode=map I can explain : I create a new web site in my IIS Manager : MSProjects I create all the virtual directory correctly : cgi-bin, tmp, ms_tmp, chameleon I add this line to my mapfile : CONGIG PROJ_LIB "c:\ms4w\proj\nad\" I change the IMAGEPATH in my mapfile : IMAGEPATH "c:\ms4w\tmp\ms_tmp" In short I followed this tutorial completely http://mapserver.gis.umn.edu/docs/howto/setupiis If it can help, here my mapfile file : MAP NAME CarteSentier IMAGETYPE PNG SHAPEPATH "C:/Documents and Settings/Administrateur/Bureau/randonneurs/ShapeFile" EXTENT 193557.937263 5317901.641953 379417.206051 5401384.000000 SIZE 600 450 IMAGECOLOR 255 255 255 CONGIG PROJ_LIB "c:\ms4w\proj\nad\" SYMBOLSET "C:/Documents and Settings/Administrateur/Bureau/randonneurs/etc/symbols.sym" OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" FORMATOPTION "QUALITY=75" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END WEB TEMPLATE 'C:/Documents and Settings/Administrateur/Bureau/randonneurs/Templates/TempRandonneur.html' IMAGEPATH "c:\ms4w\tmp\ms_tmp" IMAGEURL 'http://localhost/mapservertmp/' END REFERENCE STATUS ON IMAGE "C:/Documents and Settings/Administrateur/Bureau/randonneurs/Images/KeyMap.png" SIZE 150 113 EXTENT 193557.937263 5317901.641953 379417.206051 5401384.000000 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END LEGEND STATUS ON IMAGECOLOR 255 255 255 TRANSPARENT ON POSITION LL KEYSIZE 18 12 KEYSPACING 5 5 LABEL TYPE BITMAP SIZE MEDIUM OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 150 PARTIALS TRUE FORCE FALSE END END SCALEBAR STATUS ON COLOR 255 255 255 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 0 0 0 IMAGECOLOR 255 255 255 UNITS KILOMETERS INTERVALS 5 SIZE 200 5 STYLE 0 POSITION LL LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE FALSE END END QUERYMAP SIZE 200 150 STATUS ON STYLE HILITE # SELECTED | NORMAL COLOR 255 0 0 END PROJECTION "proj=tmerc" "lat_0=0" "lon_0=-70.5" "k=0.999900" "x_0=304800" "y_0=0" "ellps=GRS80" "datum=NAD83" "units=m" "no_defs" END LAYER NAME Hydro_poly DATA hydrographie STATUS ON UNITS METERS SIZEUNITs PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS TYPE POLYGON METADATA "DESCRIPTION" "Hydro du Saguenay" END CLASS NAME "Hydrographie" STYLE SYMBOL 0 COLOR 91 214 249 END END END LAYER NAME Sentier_line DATA Sentiers_mtm_nad83 STATUS ON TYPE LINE CLASS NAME "Sentier" STYLE COLOR 255 0 0 END END END LAYER NAME "Routes" STATUS ON DATA Routes TYPE LINE LABELITEM "nomComplet" LABELMAXSCALE 40000 TOLERANCE 0 TOLERANCEUNITS PIXELS CLASS NAME "R?seau routier" STYLE SYMBOL 0 COLOR 195 158 0 WIDTH 1 END LABEL TYPE BITMAP SIZE MEDIUM OFFSET 0 0 BUFFER 30 COLOR 0 0 0 PARTIALS TRUE MINDISTANCE 20000 POSITION CC ANGLE AUTO END END END LAYER NAME "NomMunicipalite" STATUS ON DATA Nom_municipalite TYPE POINT LABELITEM "nom" TOLERANCE 0 TOLERANCEUNITS PIXELS CLASS NAME "Municipalit?" SYMBOL 'circle' SIZE 8 COLOR 0 0 0 MAXSCALE 1100000 MINSCALE 1 LABEL TYPE BITMAP SIZE MEDIUM OFFSET -10 -10 BUFFER 0 COLOR 0 0 0 PARTIALS FALSE MINDISTANCE 1 END END END LAYER NAME "SentiersLoc" STATUS ON DATA Sentiers_Localisation TYPE POINT LABELITEM "Nom_du_sen" TOLERANCE 5 TOLERANCEUNITS PIXELS CLASS NAME "Identification des sentiers" SYMBOL 'circle' SIZE 10 COLOR 255 0 0 MAXSCALE 1100000 MINSCALE 100 TEMPLATE "C:/Documents and Settings/Administrateur/Bureau/randonneurs/Templates/InfoSentiers.html" LABEL TYPE BITMAP SIZE MEDIUM OFFSET -10 -10 BUFFER 0 COLOR 0 0 0 PARTIALS FALSE MINDISTANCE 1 END END END END Thanks for the help !!!! I appreciate it !!!!!! ;) -------------- next part -------------- An HTML attachment was scrubbed... URL: From s.pashby at POSTGRAD.CURTIN.EDU.AU Thu Mar 23 23:18:17 2006 From: s.pashby at POSTGRAD.CURTIN.EDU.AU (Steve Pashby) Date: Fri, 24 Mar 2006 07:18:17 +0000 Subject: Labelling highways Message-ID: Hello, I'm trying to label some roads with a highway sign and then overlay their respective number. However, for some reason i either label the entire road with highway signs or just get the highway number ! I guess it has something to do with defining a 'highway sign' SYMBOL and then using that in the LAYER definition ? ... Any help will be greatly appreciated ! Cheers, Steve. From jorn at SPACETEC.NO Thu Mar 23 23:39:02 2006 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Fri, 24 Mar 2006 08:39:02 +0100 Subject: Arrow for a line In-Reply-To: <200603240730.28772@centrum.cz> Message-ID: Thanks Stepan, it works. MapServer doesn't accept POSITION within STYLE, however the arrows are put exactly where they should be, without it. cheers Jorn On Friday 24 March 2006 07:30, Stepan Kafka wrote: > You may use truetype symbol of arrow for a line e.g. this way > (unfortunately, the arrows are along the whole line not only at line > begining ): > > SYMBOL > NAME "arrow" > TYPE truetype > FONT arial > CHARACTER ">" > GAP -25 > END > > then > LAYER > ... > CLASS > STYLE > SYMBOL arrow > SIZE 20 > POSITION CC # you may play with (LC, RL, etc - similar to label > position) it to achieve different effect - try it STYLE > END # class > END #layer From crane_ba at YAHOO.COM Fri Mar 24 01:49:45 2006 From: crane_ba at YAHOO.COM (Ben Crane) Date: Fri, 24 Mar 2006 01:49:45 -0800 Subject: Future Transactional capabilities in Mapserver Message-ID: Hi all, Is there any plans for making Mapserver transactional to allow data edits/additions/deletions in the future? I can't get onto the website for some reason to check on future developments so I thought I'd post this in the meantime. Regards Ben __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From flavio at TYDAC.CH Fri Mar 24 02:04:52 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Fri, 24 Mar 2006 11:04:52 +0100 Subject: How to increase resolution of image? In-Reply-To: <1319fbba0603231431x2b8efad7ha43e2880eef2164f@mail.gmail.com> Message-ID: Hi Aaron > Yes, the map elements should be scaled as well. Otherwise, when > printed, they appear smaller than the web-map. If you use sizeunits in "real world units" such as "SIZEUNITS inches" you get in the PDF the same image as on-screen. They only appear smaller if you use pixels which is the default. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ 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 ---------------------------------------------------------------- From bartvde at XS4ALL.NL Fri Mar 24 03:36:00 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Fri, 24 Mar 2006 12:36:00 +0100 Subject: Future Transactional capabilities in Mapserver In-Reply-To: <20060324094945.32742.qmail@web52801.mail.yahoo.com> Message-ID: I don't think it's Mapserver's intention to become a transactional WFS. I have heard that being said many times ..... Geoserver is your best bet for transactional WFS. Best regards, Bart Ben Crane wrote: >Hi all, > >Is there any plans for making Mapserver transactional >to allow data edits/additions/deletions in the future? >I can't get onto the website for some reason to check >on future developments so I thought I'd post this in >the meantime. > >Regards >Ben > > > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From Derek.Bird at XWAVE.COM Fri Mar 24 04:09:52 2006 From: Derek.Bird at XWAVE.COM (Bird, Derek (xwave)) Date: Fri, 24 Mar 2006 07:09:52 -0500 Subject: Labelling highways Message-ID: Why don't you include your layer code then we can try to help a bit more ... Derek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Pashby Sent: Friday, March 24, 2006 2:18 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Labelling highways Hello, I'm trying to label some roads with a highway sign and then overlay their respective number. However, for some reason i either label the entire road with highway signs or just get the highway number ! I guess it has something to do with defining a 'highway sign' SYMBOL and then using that in the LAYER definition ? ... Any help will be greatly appreciated ! Cheers, Steve. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3084 bytes Desc: not available URL: From punkish at EIDESIS.ORG Fri Mar 24 04:36:52 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Fri, 24 Mar 2006 06:36:52 -0600 Subject: To All Users ! Check It ! In-Reply-To: <200603240532.LAA06269@WS0005.indiatimes.com> Message-ID: On Mar 24, 2006, at 12:25 AM, M K Dey wrote: .. > Also I had posted two queries in the LIST but I have not got any > response. So Plz I will really appreciate to all those who will share > their views and experience. > My queries are--- Both your queries have answers in basic JavaScript techniques. > > 1) How to made the size of the final window in the browser a dynamic > one. Like user should select the window as 800*500 or 700*550 etc and > depending on the > user choice the mapserver should built the size of the final window. > See http://www.mapainterativo.ciasc.gov.br/sc.phtml for farthur > clarifications. When the user chooses a Window size, that size is sent back to the server, along with other parameters. You replace the size declared in the .map file either programmatically (see your favorite language/MapScript documentation, or via the CGI). > > 2) How to get the Lat, Long information in the final map when a user > moves his/her mouse over the image in the browser? As the user mouses over the image, the mouse coords are picked up, converted from screen pixels to geo coords, and dynamically updated in a form input field or a innerHTML div. > Also is it possible to get all the datas from the dbf file along with > Lat, Long information, maybe in a separate popup window in the browser > ? > When the user clicks on a location, the coords are sent back to the server, the feature at that location is queried (programmatically or via the CGI), and a window is popped up to display the information. Just download the source code of any of the apps you like (they are all, or should be, open source, and most creators of such apps will be glad to share them), read through it (hopefully they are well documented), and off you go. -- Puneet Kishor From punkish at EIDESIS.ORG Fri Mar 24 04:53:10 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Fri, 24 Mar 2006 06:53:10 -0600 Subject: A suggestion for the list manager(s) Message-ID: Something like the following appended to every list email would be really cool, if possible -- ----------------------- link to basic how-to 1 link to basic how-to 2 etc. link to ESR's how to ask questions that get answered link to unsubscribe (not that we want anyone to, but it is better than getting a forlorn "unsubscribe me from this list" being sent back to the list!) -- Puneet Kishor From Tom.Kralidis at EC.GC.CA Fri Mar 24 06:05:40 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 24 Mar 2006 09:05:40 -0500 Subject: [UMN_MAPSERVER_USERS] Character issue with GetMap and SLD Message-ID: Assefa, This was exactly it. I contact the admin of this WMS, got the font list from them (the font we were using wasn't in their setup), applied one of the fonts supplied, and everything worked. The real solution here would be to have OGC:WMS w/SLD GetCapabilities output report on what fonts are supported. Next OGC meeting :) ..Tom >Tom, > > Is it possible that the font list does not coinatin the font that you >are trying to use ? From your sld, when applying it to the layer, the >resulting font name set will be Arial-bold-italic. If that is not >available in the font.txt, the defaut fall-back is to use the pixmap .fonts which might explain the problem. >Later, Kralidis,Tom [Burlington] wrote: > Hi, > > I can do the following GetMap against this WMS: > > http://atlas.gc.ca/cgi-bin/atlaswms_en?request=GetMap&service=WMS&SRS=EP > SG:42304&bbox=1796748.1308543,135121.79091266,1912040.0504417,264131.088 > 38773&layers=places_labels_2m&version=1.1.1 > > ..with no issues (NB: MapServer is powering this WMS). > > When I try to apply the following SLD: > > http://devgeo.cciw.ca/ms_tmp/k.sld > > ...to a GetMap request: > > http://atlas.gc.ca/cgi-bin/atlaswms_en?request=GetMap&service=WMS&SRS=EP > SG:42304&bbox=1796748.1308543,135121.79091266,1912040.0504417,264131.088 > 38773&layers=places_labels_2m&version=1.1.1&sld=http://devgeo.cciw.ca/ms > _tmp/k.sld > > The accented characters on the annotations are malformed. > > Any suggestions? > > Thanks > > ..Tom > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at ... http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From nemo at IRONCOUNTYFOREST.ORG Fri Mar 24 08:08:32 2006 From: nemo at IRONCOUNTYFOREST.ORG (Neil "Nemo" Martinko) Date: Fri, 24 Mar 2006 10:08:32 -0600 Subject: How to install source code mapserver-4.8.2.tar.tar in Window? Message-ID: TUGZip <> can handle nearly every compressed-file I've ever run into... "Supports ZIP, 7-ZIP, A, ACE, ARC, ARJ, BH, BZ2, CAB, CPIO, DEB, GCA, GZ, IMP, JAR, LHA (LZH), LIB, RAR, RPM, SQX, TAR, TGZ, TBZ, TAZ, YZ1 and ZOO archives." And, it's absolutely free. From dnuttall at DNLT.COM Fri Mar 24 11:09:17 2006 From: dnuttall at DNLT.COM (Dave Nuttall) Date: Fri, 24 Mar 2006 13:09:17 -0600 Subject: Map files for dummies? Message-ID: I have an instance of Mapserver 4.8.1 running on CentOS with Apache 2.20, PHP 5.1.2 and Mapscript running as a DSO. I can make/display maps where I use the canned tutorials. But I'm failing to create map displays when I substitute shapefiles that are of local interest. The shapefiles in question are apparently valid, since I can read them without any problems using "ogrinfo -al shapefile.shp". I extract the decimal dimensions and create my own *.map file, but all I ever get is the layer for pseudo-credits. If someone could tweak my map file (which follows), it would be a valuable learning experience for me. TIA. Dave Nuttall San Antonio, TX Here is my map file: MAP NAME BEXAR2 STATUS ON SIZE 400 300 IMAGETYPE PNG IMAGECOLOR 240 240 240 SHAPEPATH "/var/www/data/texas" # the extents were pulled from the shape file with ogrinfo EXTENT 29.114435 98.116613 29.760630 98.806552 UNITS DD LAYER NAME "Bexar County" TYPE POLYGON STATUS ON DATA "tgr48029all" # don't know if this projection is valid! PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS NAME "Bexar County" OUTLINECOLOR 90 90 90 COLOR 0 255 0 END END # End of map layer # This credits layer always works/displays! LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 10 290 END TEXT 'Made with Mapserver. AIM to see it.' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 0 0 0 END END END # end of credits layer END # end of bexar2.map for Bexar County, Texas. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Fri Mar 24 11:59:36 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 24 Mar 2006 13:59:36 -0600 Subject: Map files for dummies? Message-ID: Dave, Unless you are specifying the layer name in the URL that is calling MapServer, you will need to set the STATUS of your layer, "Bexar County" to DEFAULT. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dave Nuttall Sent: Friday, March 24, 2006 1:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Map files for dummies? I have an instance of Mapserver 4.8.1 running on CentOS with Apache 2.20, PHP 5.1.2 and Mapscript running as a DSO. I can make/display maps where I use the canned tutorials. But I'm failing to create map displays when I substitute shapefiles that are of local interest. The shapefiles in question are apparently valid, since I can read them without any problems using "ogrinfo -al shapefile.shp". I extract the decimal dimensions and create my own *.map file, but all I ever get is the layer for pseudo-credits. If someone could tweak my map file (which follows), it would be a valuable learning experience for me. TIA. Dave Nuttall San Antonio, TX Here is my map file: MAP NAME BEXAR2 STATUS ON SIZE 400 300 IMAGETYPE PNG IMAGECOLOR 240 240 240 SHAPEPATH "/var/www/data/texas" # the extents were pulled from the shape file with ogrinfo EXTENT 29.114435 98.116613 29.760630 98.806552 UNITS DD LAYER NAME "Bexar County" TYPE POLYGON STATUS ON DATA "tgr48029all" # don't know if this projection is valid! PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS NAME "Bexar County" OUTLINECOLOR 90 90 90 COLOR 0 255 0 END END # End of map layer # This credits layer always works/displays! LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 10 290 END TEXT 'Made with Mapserver. AIM to see it.' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 0 0 0 END END END # end of credits layer END # end of bexar2.map for Bexar County, Texas. -------------- next part -------------- An HTML attachment was scrubbed... URL: From w.blanken at GEON.NL Fri Mar 24 11:19:57 2006 From: w.blanken at GEON.NL (Wim Blanken) Date: Fri, 24 Mar 2006 20:19:57 +0100 Subject: Map files for dummies? In-Reply-To: <00cb01c64f76$72fb87e0$0a00a8c0@GURU2GO2> Message-ID: Hello Dave, I think you have a problem with the status keyword: try using status default at your layer level. Regards, Wim Blanken _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dave Nuttall Sent: vrijdag 24 maart 2006 20:09 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Map files for dummies? I have an instance of Mapserver 4.8.1 running on CentOS with Apache 2.20, PHP 5.1.2 and Mapscript running as a DSO. I can make/display maps where I use the canned tutorials. But I'm failing to create map displays when I substitute shapefiles that are of local interest. The shapefiles in question are apparently valid, since I can read them without any problems using "ogrinfo -al shapefile.shp". I extract the decimal dimensions and create my own *.map file, but all I ever get is the layer for pseudo-credits. If someone could tweak my map file (which follows), it would be a valuable learning experience for me. TIA. Dave Nuttall San Antonio, TX Here is my map file: MAP NAME BEXAR2 STATUS ON SIZE 400 300 IMAGETYPE PNG IMAGECOLOR 240 240 240 SHAPEPATH "/var/www/data/texas" # the extents were pulled from the shape file with ogrinfo EXTENT 29.114435 98.116613 29.760630 98.806552 UNITS DD LAYER NAME "Bexar County" TYPE POLYGON STATUS ON DATA "tgr48029all" # don't know if this projection is valid! PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS NAME "Bexar County" OUTLINECOLOR 90 90 90 COLOR 0 255 0 END END # End of map layer # This credits layer always works/displays! LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 10 290 END TEXT 'Made with Mapserver. AIM to see it.' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 0 0 0 END END END # end of credits layer END # end of bexar2.map for Bexar County, Texas. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dnuttall at DNLT.COM Fri Mar 24 12:33:50 2006 From: dnuttall at DNLT.COM (Dave Nuttall) Date: Fri, 24 Mar 2006 14:33:50 -0600 Subject: Map files for dummies? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD55D0889@s-sp22.pca.state.mn.us> Message-ID: Wim/David both suggested changing STATUS from ON to DEFAULT. I did that, but it has made no difference in the generated graphic (using shp2img -m bexar.map -o bexar.png -i PNG for testing). All I get is a graphic in the background color. Thanks. Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcgrawj at AGR.GC.CA Fri Mar 24 12:43:36 2006 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Fri, 24 Mar 2006 15:43:36 -0500 Subject: MapscriptJNI - No such file failure in new_projectionObj Message-ID: It's taken a while but I have finally been able to get something to happen in a Java Mapscript environment. In a JSP running on Tomcat 5.5.9, I created a new mapObj, drew it and saved the results to a file. Okay, good. Now, I'm actually trying to do what I started out wanting to do in the first place and am completely stuck. I have a JSP that receives an input EPSG projection, an output EPSG projection and a bounding box provided in the coordinate system of the input EPSG projection. So, my first two lines of code are: String szProjIn = "init=" + request.getParameter("INPROJ"); // szProjIn contains "init=EPSG:42304" projectionObj oProjIn = new projectionObj(szProjIn); When the code attempts the new projectionObj(szProjIn) code, it fails with the following message: java.lang.UnknownError: No such file or directory at edu.umn.gis.mapscript.mapscriptJNI.new_projectionObj(Native Method) at edu.umn.gis.mapscript.projectionObj.(projectionObj.java) at org.apache.jsp.MapScript_jsp._jspService(org.apache.jsp.MapScript_jsp:52 ) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) I'm guessing, but have no way of knowing, that the problem is that the new_projectionObj code in the dll is looking for a file that details the EPSG:42304 projection and not finding it. I'm assuming too that it's the /proj/epsg file that is part of the standard MapServer installation. If all this is correct, where in the Tomcat server configuration is it looking for this file? At the moment, my jar is under the app's WEB-INF/lib/ directory and the dll is in the same place. If this is not the problem, does anyone have any ideas what else it might be? Cheers, jtm From woodbri at SWOODBRIDGE.COM Fri Mar 24 14:10:03 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 24 Mar 2006 17:10:03 -0500 Subject: Map files for dummies? In-Reply-To: <00cb01c64f76$72fb87e0$0a00a8c0@GURU2GO2> Message-ID: Dave, What are the extents of the Bexar county shapefile as report by ogrinfo and how do they compare to the extents of the mapfile. You mapfile extents should probably have negative longitudes. So the extents you are displaying are nowhere near the county in question. -Steve W. Dave Nuttall wrote: > I have an instance of Mapserver 4.8.1 running on CentOS with Apache > 2.20, PHP 5.1.2 and Mapscript running as a DSO. > > > > I can make/display maps where I use the canned tutorials. But I?m > failing to create map displays when I substitute shapefiles that are of > local interest. > > > > The shapefiles in question are apparently valid, since I can read them > without any problems using ?ogrinfo ?al shapefile.shp?. > > > > I extract the decimal dimensions and create my own *.map file, but all I > ever get is the layer for pseudo-credits. > > > > If someone could tweak my map file (which follows), it would be a > valuable learning experience for me. > > > > TIA. > > Dave Nuttall > > San Antonio, TX > > > > Here is my map file: > > > > MAP > > NAME BEXAR2 > > STATUS ON > > SIZE 400 300 > > IMAGETYPE PNG > > IMAGECOLOR 240 240 240 > > SHAPEPATH "/var/www/data/texas" > > # the extents were pulled from the shape file with ogrinfo > > EXTENT 29.114435 98.116613 29.760630 98.806552 > > UNITS DD > > > > LAYER > > NAME "Bexar County" > > TYPE POLYGON > > STATUS ON > > DATA "tgr48029all" > > # don't know if this projection is valid! > > PROJECTION > > "proj=latlong" > > "ellps=GRS80" > > "datum=NAD83" > > END > > CLASS > > NAME "Bexar County" > > OUTLINECOLOR 90 90 90 > > COLOR 0 255 0 > > END > > END > > # End of map layer > > > > # This credits layer always works/displays! > > LAYER > > NAME "credits" > > STATUS DEFAULT > > TRANSFORM FALSE > > TYPE ANNOTATION > > FEATURE > > > POINTS 10 290 > > END > > TEXT 'Made with Mapserver. AIM to > see it.' > > END > > CLASS > > LABEL > > TYPE BITMAP > > POSITION CR > > COLOR 0 0 0 > > END > > END > > END > > # end of credits layer > > END > > # end of bexar2.map for Bexar County, Texas. > From ed at TOPOZONE.COM Fri Mar 24 14:33:27 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 24 Mar 2006 17:33:27 -0500 Subject: Map files for dummies? Message-ID: Dave - Your EXTENT is in China, so if your shapefile is in Texas it won't show up. Your Y-coordinate (longitude) values should be negative numbers in the Western Hemisphere, and should be reversed so the minimum value (more negative) comes first. I expect ogrinfo is really reporting negative numbers - if it's not, then your data are in error. - 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 Dave Nuttall Sent: Friday, March 24, 2006 2:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Map files for dummies? I have an instance of Mapserver 4.8.1 running on CentOS with Apache 2.20, PHP 5.1.2 and Mapscript running as a DSO. I can make/display maps where I use the canned tutorials. But I'm failing to create map displays when I substitute shapefiles that are of local interest. The shapefiles in question are apparently valid, since I can read them without any problems using "ogrinfo -al shapefile.shp". I extract the decimal dimensions and create my own *.map file, but all I ever get is the layer for pseudo-credits. If someone could tweak my map file (which follows), it would be a valuable learning experience for me. TIA. Dave Nuttall San Antonio, TX Here is my map file: MAP NAME BEXAR2 STATUS ON SIZE 400 300 IMAGETYPE PNG IMAGECOLOR 240 240 240 SHAPEPATH "/var/www/data/texas" # the extents were pulled from the shape file with ogrinfo EXTENT 29.114435 98.116613 29.760630 98.806552 UNITS DD LAYER NAME "Bexar County" TYPE POLYGON STATUS ON DATA "tgr48029all" # don't know if this projection is valid! PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS NAME "Bexar County" OUTLINECOLOR 90 90 90 COLOR 0 255 0 END END # End of map layer # This credits layer always works/displays! LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 10 290 END TEXT 'Made with Mapserver. AIM to see it.' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 0 0 0 END END END # end of credits layer END # end of bexar2.map for Bexar County, Texas. -------------- next part -------------- An HTML attachment was scrubbed... URL: From s.pashby at POSTGRAD.CURTIN.EDU.AU Fri Mar 24 14:37:50 2006 From: s.pashby at POSTGRAD.CURTIN.EDU.AU (Steve Pashby) Date: Fri, 24 Mar 2006 22:37:50 +0000 Subject: Labelling highways Message-ID: Bird, Derek (xwave XWAVE.COM> writes: > > Why don't you include your layer code then we can try to help a bit more ... > > Derek > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS LISTS.UMN.EDU] On > Behalf Of Steve Pashby > Sent: Friday, March 24, 2006 2:18 AM > To: MAPSERVER-USERS LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Labelling highways > > Hello, > > I'm trying to label some roads with a highway sign and then overlay their > respective number. However, for some reason i either label the entire road > with highway signs or just get the highway number ! > > I guess it has something to do with defining a 'highway sign' SYMBOL and > then using that in the LAYER definition ? > > ... Any help will be greatly appreciated ! > > Cheers, > Steve. > > Attachment (smime.p7s): application/x-pkcs7-signature, 3084 bytes ------------------------------------------------------------------------------ I think my layer code is all over the place ... but here goes FONTSET "/ms4w/apps/etc/fontset.txt" (... points to an ESRI truetype font) ################################################ # highway symbol SYMBOL NAME "U.S Route 1" TYPE truetype FONT esri_44 CHARACTER '@#162' END ############################################### # fat line symbol SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ################################################# # highways LAYER NAME "highways" STATUS on TYPE line DATA "digitised_highways" PROJECTION "init=epsg:28350" END LABELCACHE on LABELITEM "HWY_NO" CLASS NAME "Highways" STYLE SYMBOL "BigLine" SIZE 2 COLOR 240 110 110 END LABEL TYPE truetype FONT "arial" SIZE 12 COLOR 255 0 0 END STYLE SYMBOL "U.S Route 1" # or esri_44 ??? SIZE 10 COLOR 0 0 230 OUTLINECOLOR 255 255 255 END END END Hope someone can make sense of this. Thankyou. Cheers, Steve. From rjames57 at YAHOO.COM Fri Mar 24 14:56:33 2006 From: rjames57 at YAHOO.COM (Randy James) Date: Fri, 24 Mar 2006 14:56:33 -0800 Subject: Labelling highways In-Reply-To: Message-ID: Hi Steve Perhaps you need an point layer for the highway signs? Randy --- Steve Pashby wrote: > Bird, Derek (xwave XWAVE.COM> writes: > > > > > Why don't you include your layer code then we can try to help a > bit more ... > > > > Derek > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS > LISTS.UMN.EDU] On > > Behalf Of Steve Pashby > > Sent: Friday, March 24, 2006 2:18 AM > > To: MAPSERVER-USERS LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Labelling highways > > > > Hello, > > > > I'm trying to label some roads with a highway sign and then > overlay their > > respective number. However, for some reason i either label the > entire road > > with highway signs or just get the highway number ! > > > > I guess it has something to do with defining a 'highway sign' > SYMBOL and > > then using that in the LAYER definition ? > > > > ... Any help will be greatly appreciated ! > > > > Cheers, > > Steve. > > > > Attachment (smime.p7s): application/x-pkcs7-signature, 3084 bytes > > ------------------------------------------------------------------------------ > I think my layer code is all over the place ... but here goes > > FONTSET "/ms4w/apps/etc/fontset.txt" > > (... points to an ESRI truetype font) > > ################################################ > # highway symbol > > SYMBOL > NAME "U.S Route 1" > TYPE truetype > FONT esri_44 > CHARACTER '@#162' > END > ############################################### > # fat line symbol > > SYMBOL > NAME "BigLine" > TYPE ELLIPSE > POINTS 1 1 END > END > > ################################################# > # highways > > LAYER > NAME "highways" > STATUS on > TYPE line > DATA "digitised_highways" > PROJECTION > "init=epsg:28350" > END > > LABELCACHE on > LABELITEM "HWY_NO" > > CLASS > NAME "Highways" > STYLE > SYMBOL "BigLine" > SIZE 2 > COLOR 240 110 110 > END > LABEL > TYPE truetype > FONT "arial" > SIZE 12 > COLOR 255 0 0 > END > STYLE > SYMBOL "U.S Route 1" # or esri_44 ??? > SIZE 10 > COLOR 0 0 230 > OUTLINECOLOR 255 255 255 > END > END > END > > Hope someone can make sense of this. > > Thankyou. > > Cheers, > Steve. > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From steve.lime at DNR.STATE.MN.US Fri Mar 24 15:39:07 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 24 Mar 2006 17:39:07 -0600 Subject: Labelling highways Message-ID: Actually labeling highways is done with 2 layer definitions: 1) one for the line work 2) and a second annotation layer for the shield and highway number Often the second layer def looks like: LAYER NAME highways TYPE ANNOTATION DATA highways LABELITEM roadnum CLASS STYLE SYMBOL shield.gif END LABEL COLOR 0 0 0 SIZE TINY END END END Steve >>> Randy James 03/24/06 4:56 PM >>> Hi Steve Perhaps you need an point layer for the highway signs? Randy --- Steve Pashby wrote: > Bird, Derek (xwave XWAVE.COM> writes: > > > > > Why don't you include your layer code then we can try to help a > bit more ... > > > > Derek > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS > LISTS.UMN.EDU] On > > Behalf Of Steve Pashby > > Sent: Friday, March 24, 2006 2:18 AM > > To: MAPSERVER-USERS LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Labelling highways > > > > Hello, > > > > I'm trying to label some roads with a highway sign and then > overlay their > > respective number. However, for some reason i either label the > entire road > > with highway signs or just get the highway number ! > > > > I guess it has something to do with defining a 'highway sign' > SYMBOL and > > then using that in the LAYER definition ? > > > > ... Any help will be greatly appreciated ! > > > > Cheers, > > Steve. > > > > Attachment (smime.p7s): application/x-pkcs7-signature, 3084 bytes > > ------------------------------------------------------------------------------ > I think my layer code is all over the place ... but here goes > > FONTSET "/ms4w/apps/etc/fontset.txt" > > (... points to an ESRI truetype font) > > ################################################ > # highway symbol > > SYMBOL > NAME "U.S Route 1" > TYPE truetype > FONT esri_44 > CHARACTER '@#162' > END > ############################################### > # fat line symbol > > SYMBOL > NAME "BigLine" > TYPE ELLIPSE > POINTS 1 1 END > END > > ################################################# > # highways > > LAYER > NAME "highways" > STATUS on > TYPE line > DATA "digitised_highways" > PROJECTION > "init=epsg:28350" > END > > LABELCACHE on > LABELITEM "HWY_NO" > > CLASS > NAME "Highways" > STYLE > SYMBOL "BigLine" > SIZE 2 > COLOR 240 110 110 > END > LABEL > TYPE truetype > FONT "arial" > SIZE 12 > COLOR 255 0 0 > END > STYLE > SYMBOL "U.S Route 1" # or esri_44 ??? > SIZE 10 > COLOR 0 0 230 > OUTLINECOLOR 255 255 255 > END > END > END > > Hope someone can make sense of this. > > Thankyou. > > Cheers, > Steve. > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From dnuttall at DNLT.COM Fri Mar 24 16:03:50 2006 From: dnuttall at DNLT.COM (Dave Nuttall) Date: Fri, 24 Mar 2006 18:03:50 -0600 Subject: Map files for dummies? In-Reply-To: <44246E3B.5010702@swoodbridge.com> Message-ID: I've finally been able to make it work. Thanks to all who offered advice. Dave From s.pashby at POSTGRAD.CURTIN.EDU.AU Fri Mar 24 16:09:59 2006 From: s.pashby at POSTGRAD.CURTIN.EDU.AU (Steve Pashby) Date: Sat, 25 Mar 2006 00:09:59 +0000 Subject: Labelling highways Message-ID: Steve Lime DNR.STATE.MN.US> writes: > > Actually labeling highways is done with 2 layer definitions: > > 1) one for the line work > 2) and a second annotation layer for the shield and highway number > > Often the second layer def looks like: > > LAYER > NAME highways > TYPE ANNOTATION > DATA highways > LABELITEM roadnum > CLASS > STYLE > SYMBOL shield.gif > END > LABEL > COLOR 0 0 0 > SIZE TINY > END > END > END > > Steve =========================================================================== Thanks for everyone's input. What i wanted to do was at the full extents of the map to simply show the highway signs, and then when you zoom in (to a certain scale) to loose the highway signs and actually name the highways. I take it with the annotation layer you don't need to mess about with an OVERLAYSYMBOL definition (to overlay the highway number)??? Cheers, Steve From work at XWB.COM Fri Mar 24 19:18:35 2006 From: work at XWB.COM (Chip Taylor) Date: Fri, 24 Mar 2006 19:18:35 -0800 Subject: Using Microsoft SQL Server? Message-ID: Can I integrate a layer in Mapserver using a connection to Microsoft SQL Server 2005, pulling XY (lat long) points and text, and plot these? How would I do that? Chip Taylor Prepared Response, Inc -------------- next part -------------- An HTML attachment was scrubbed... URL: From flavio at TYDAC.CH Sat Mar 25 00:59:53 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Sat, 25 Mar 2006 09:59:53 +0100 Subject: Map files for dummies? In-Reply-To: <00cb01c64f76$72fb87e0$0a00a8c0@GURU2GO2> Message-ID: Hi Dave see http://umn.mapserver.ch/ ... lots of explanations and examples. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ 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: Dave Nuttall To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Fri, 24 Mar 2006 13:09:17 -0600 Subject: [UMN_MAPSERVER-USERS] Map files for dummies? > I have an instance of Mapserver 4.8.1 running on CentOS with Apache > 2.20, > PHP 5.1.2 and Mapscript running as a DSO. > > > > I can make/display maps where I use the canned tutorials. But I'm > failing > to create map displays when I substitute shapefiles that are of local > interest. > > > > The shapefiles in question are apparently valid, since I can read > them > without any problems using "ogrinfo -al shapefile.shp". > > > > I extract the decimal dimensions and create my own *.map file, but > all I > ever get is the layer for pseudo-credits. > > > > If someone could tweak my map file (which follows), it would be a > valuable > learning experience for me. > > > > TIA. > > Dave Nuttall > > San Antonio, TX > > > > Here is my map file: > > > > MAP > > NAME BEXAR2 > > STATUS ON > > SIZE 400 300 > > IMAGETYPE PNG > > IMAGECOLOR 240 240 240 > > SHAPEPATH "/var/www/data/texas" > > # the extents were pulled from the shape file with ogrinfo > > EXTENT 29.114435 98.116613 29.760630 98.806552 > > UNITS DD > > > > LAYER > > NAME "Bexar County" > > TYPE POLYGON > > STATUS ON > > DATA "tgr48029all" > > # don't know if this projection is valid! > > PROJECTION > > > "proj=latlong" > > "ellps=GRS80" > > "datum=NAD83" > > END > > CLASS > > NAME "Bexar County" > > OUTLINECOLOR 90 90 90 > > COLOR 0 255 0 > > END > > END > > # End of map layer > > > > # This credits layer always works/displays! > > LAYER > > NAME "credits" > > STATUS DEFAULT > > TRANSFORM FALSE > > TYPE ANNOTATION > > FEATURE > > > POINTS 10 290 > > END > > TEXT 'Made with Mapserver. AIM > to see > it.' > > END > > CLASS > > LABEL > > TYPE BITMAP > > POSITION CR > > COLOR 0 0 0 > > END > > END > > END > > # end of credits layer > > END > > # end of bexar2.map for Bexar County, Texas. > > From bartvde at XS4ALL.NL Sat Mar 25 01:09:09 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sat, 25 Mar 2006 10:09:09 +0100 Subject: Using Microsoft SQL Server? In-Reply-To: <01b901c64fba$ce511710$0601a8c0@DevChip> Message-ID: You should be able to do that using OGR's Virtual Spatial Data, and using ODBC to connect to your SQL Server database. http://www.gdal.org/ogr/drv_vrt.html Best regards, Bart Chip Taylor wrote: > Can I integrate a layer in Mapserver using a connection to Microsoft > SQL Server 2005, pulling XY (lat long) points and text, and plot > these? How would I do that? > > > > > > Chip Taylor > > Prepared Response, Inc > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From gisaalter at GMAIL.COM Sat Mar 25 03:09:12 2006 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Sat, 25 Mar 2006 12:09:12 +0100 Subject: Trouble getting GeoTiiff transparent: what to use ? transparent, offset, transparency ? Message-ID: Hi List, I have trouble displayin a geotiff. I'm not quite familiar with raster images... When viewing the raster in MapServer I get a black image. When viewing the raster in ArcGIS I get an image but I have to set display background value 1 as no data to make it transparent. In my mapfile I set following options TRANSPARENT ON (for the mapfile) OFFSITE 0 0 0 TRANSPARENCY 0 that's for the raster layer itself. Can anyone give me advice on how to get the black background which I can see now transparent ? From sparkymeister at GMAIL.COM Sat Mar 25 04:03:07 2006 From: sparkymeister at GMAIL.COM (Mark Wright) Date: Sat, 25 Mar 2006 04:03:07 -0800 Subject: Trouble getting GeoTiiff transparent: what to use ? transparent, offset, transparency ? In-Reply-To: <8d2ea9d70603250309x62a8c319gee14567894291114@mail.gmail.com> Message-ID: try removing the offsite and both transparancies from your mapfile. In your layer add this: CLASS EXPRESSION ([pixel] != 1) END This works for me so that the border around topo maps are transparant. Make sure the background color in your html file equals the color that you are removing. I don't use arcgis so I don't know if the background values start with 0 or 1. If they start with 1 then change the expression above from 1 to 0. Mark On 3/25/06, Steven De Vriendt wrote: > Hi List, > > I have trouble displayin a geotiff. I'm not quite familiar with raster images... > When viewing the raster in MapServer I get a black image. > When viewing the raster in ArcGIS I get an image but I have to set > display background value 1 as no data to make it transparent. > > In my mapfile I set following options > TRANSPARENT ON (for the mapfile) > > OFFSITE 0 0 0 > TRANSPARENCY 0 > that's for the raster layer itself. > > Can anyone give me advice on how to get the black background which I > can see now transparent ? > -- Have fun or die trying - but try not to actually die. From rtaylor at COVE.COM Sat Mar 25 04:44:25 2006 From: rtaylor at COVE.COM (Richard Taylor) Date: Sat, 25 Mar 2006 07:44:25 -0500 Subject: data proliferation or the data that ate the disk space Message-ID: Hello LIST this is not just a MapServer question, but perhaps some of you farther down the path have insights that you are willing to pass on. As my learning curve progresses i find that local data volume is increasing rapidly. It started of course with local apps, then expanded with my introduction to MapServer, in my case ms4w, for getting the basics, then has continued on to local directories to send up to remote unix system instances. While the mapfiles allow one to give a full path to your data, meaning locally you can get at it wherever it is, that structure does not hold well with or all with remote instances. the end result is multiple copies of many files, some of which are quite large, one for local apps, one for ms4w, and one for each remote mapserver. One solution is to keep getting large storage space but feeling this might a common problem wonder if any of the long term users or those with large data volumes have come to a 'best practises' solution to this issue. thanks in advance richard taylor From gisaalter at GMAIL.COM Sat Mar 25 05:01:24 2006 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Sat, 25 Mar 2006 14:01:24 +0100 Subject: Trouble getting GeoTiiff transparent: what to use ? transparent, offset, transparency ? In-Reply-To: Message-ID: Mark, thanks for replying. When adding the expression to my layer I get a white background. When replacing 1 by 0 I get a black background. Either way, I don't see my tiff coming up... Thanks for your advice, I think I have to find a way to leave the white (or transparent ???) background as it is and to assign the actual data the right pixel value... On 3/25/06, Mark Wright wrote: > > try removing the offsite and both transparancies from your mapfile. In > your layer add this: > > CLASS > EXPRESSION ([pixel] != 1) > END > > This works for me so that the border around topo maps are transparant. > Make sure the background color in your html file equals the color that > you are removing. I don't use arcgis so I don't know if the background > values start with 0 or 1. If they start with 1 then change the > expression above from 1 to 0. > > > > > Mark > > On 3/25/06, Steven De Vriendt wrote: > > Hi List, > > > > I have trouble displayin a geotiff. I'm not quite familiar with raster > images... > > When viewing the raster in MapServer I get a black image. > > When viewing the raster in ArcGIS I get an image but I have to set > > display background value 1 as no data to make it transparent. > > > > In my mapfile I set following options > > TRANSPARENT ON (for the mapfile) > > > > OFFSITE 0 0 0 > > TRANSPARENCY 0 > > that's for the raster layer itself. > > > > Can anyone give me advice on how to get the black background which I > > can see now transparent ? > > > > > -- > Have fun or die trying - but try not to actually die. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Sat Mar 25 06:16:23 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 25 Mar 2006 09:16:23 -0500 Subject: data proliferation or the data that ate the disk space In-Reply-To: <000301c65009$d925d1e0$6701a8c0@happydog100> Message-ID: Richard, Data management is a common problem. The best practices for me have been to separate physical storage and logical storage. This is easiest to do on Linux systems with symbolic links. For physical storage, I like to keep datasets self contained, especially if I have to update them at any frequency. Because these are self contained (ie. in a single directory tree) it is easy to create a parallel tree with new data and just swap out the old data for the new data by changing the symlink to the new data. This also allow any data tree to reside on any partition. For logical storage, I think in terms of maps or applications and I build a single directory for each. Into this directory, I link in the physical datasets in need and I create all the tileindexes relative to that directory. Then in the mapfile I set DATAPATH to point to that directory. So for example, I have tiger data directories for the separate tiger releases with physical names like: /u/data/tiger2004fe/ /u/data/tiger2004se/ /u2/data/tiger2005fe/ In my application directory I have something like: /u/application/tiger -> /u/data/tiger2005fe/ I call the tiger data by "tiger" regardless of the version I am showing. That way I can change the underlying data without the application caring and I don't need to rebuild the tileindexes. If I want to move the application to another server, I move the physical datasets I need and the application directory and fix up the symlinks to point to the respective new locations. In 99% of the time I do not need to rebuild the tileindexes. Hope this helps, -Steve W. Richard Taylor wrote: > Hello LIST > > this is not just a MapServer question, but perhaps some of you farther > down the path have insights that you are willing to pass on. > > As my learning curve progresses i find that local data volume is > increasing rapidly. It started of course with local apps, then expanded > with my introduction to MapServer, in my case ms4w, for getting the > basics, then has continued on to local directories to send up to remote > unix system instances. > > While the mapfiles allow one to give a full path to your data, meaning > locally you can get at it wherever it is, that structure does not hold > well with or all with remote instances. the end result is multiple > copies of many files, some of which are quite large, one for local apps, > one for ms4w, and one for each remote mapserver. > > One solution is to keep getting large storage space but feeling this > might a common problem wonder if any of the long term users or those > with large data volumes have come to a 'best practises' solution to this > issue. > > thanks in advance > > richard taylor > From szekeres.tamas at FREEMAIL.HU Sat Mar 25 14:02:10 2006 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Sat, 25 Mar 2006 16:02:10 -0600 Subject: Using Microsoft SQL Server? Message-ID: Or you could use the OGR ODBC driver directly by creating a view with an additional WKT column from your x, y fields and add this view to the GEOMETRY_COLUMNS table in your database For the OGR ODBC format visit: http://www.gdal.org/ogr/drv_odbc.html Tamas On Sat, 25 Mar 2006 10:09:09 +0100, Bart van den Eijnden (OSGIS) wrote: >You should be able to do that using OGR's Virtual Spatial Data, and >using ODBC to connect to your SQL Server database. > >http://www.gdal.org/ogr/drv_vrt.html > >Best regards, >Bart > >Chip Taylor wrote: > >> Can I integrate a layer in Mapserver using a connection to Microsoft >> SQL Server 2005, pulling XY (lat long) points and text, and plot >> these? How would I do that? >> >> >> >> >> >> Chip Taylor >> >> Prepared Response, Inc >> >> >> > > >-- >Bart van den Eijnden >OSGIS, Open Source GIS >http://www.osgis.nl From hydromap at GMAIL.COM Sat Mar 25 16:34:43 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Sun, 26 Mar 2006 10:34:43 +1000 Subject: To All Users ! Check It ! In-Reply-To: <55d79e59abde1877764326da507d698c@eidesis.org> Message-ID: you can get the GMap examples that come with fgs (http://www.maptools.org/fgs/index.phtml) or if you are on windows MS4W (http://www.maptools.org/ms4w/index.phtml). It contains the mapsize functionality you are looking for. http://www2.dmsolutions.ca/gmap/gmap75.phtml On 3/24/06, Puneet Kishor wrote: > On Mar 24, 2006, at 12:25 AM, M K Dey wrote: > .. > > Also I had posted two queries in the LIST but I have not got any > > response. So Plz I will really appreciate to all those who will share > > their views and experience. > > My queries are--- > > Both your queries have answers in basic JavaScript techniques. > > > > > 1) How to made the size of the final window in the browser a dynamic > > one. Like user should select the window as 800*500 or 700*550 etc and > > depending on the > > user choice the mapserver should built the size of the final window. > > See http://www.mapainterativo.ciasc.gov.br/sc.phtml for farthur > > clarifications. > > When the user chooses a Window size, that size is sent back to the > server, along with other parameters. You replace the size declared in > the .map file either programmatically (see your favorite > language/MapScript documentation, or via the CGI). > > > > > 2) How to get the Lat, Long information in the final map when a user > > moves his/her mouse over the image in the browser? > > As the user mouses over the image, the mouse coords are picked up, > converted from screen pixels to geo coords, and dynamically updated in > a form input field or a innerHTML div. > > > Also is it possible to get all the datas from the dbf file along with > > Lat, Long information, maybe in a separate popup window in the browser > > ? > > > > When the user clicks on a location, the coords are sent back to the > server, the feature at that location is queried (programmatically or > via the CGI), and a window is popped up to display the information. > > Just download the source code of any of the apps you like (they are > all, or should be, open source, and most creators of such apps will be > glad to share them), read through it (hopefully they are well > documented), and off you go. > > -- > Puneet Kishor > From dejan.gambin at PULA.HR Sun Mar 26 04:53:03 2006 From: dejan.gambin at PULA.HR (Dejan Gambin) Date: Sun, 26 Mar 2006 14:53:03 +0200 Subject: centering label inside a square Message-ID: Hi, I am trying to label a higway using a square and a highway number inside it. I am using: SYMBOL NAME "square" TYPE VECTOR POINTS 0 0 0 0.6 1 0.6 1 0 0 0 END FILLED TRUE END and the following layer definition: LAYER NAME "highway" TYPE ANNOTATION DATA "highways" LABELITEM 'highway_number' CLASS EXPRESSION (length ("[highway_number]") eq 2) #this way I change the square symbol depending of the higway number "width" (this is an example for a square that holds higways with two numbers) STYLE SYMBOL 'square' SIZE 10 COLOR 0 0 200 OUTLINECOLOR 0 0 0 END LABEL COLOR 255 255 255 TYPE truetype FONT "arial" SIZE 8 POSITION cc END TEMPLATE void END # Class # next class would have END # Layer Everything seems OK except that label text is not centered in the square. I have tried changing the symbol definition, size parameters, etc. but I don't get it correct... Any suggestions? thanks, dejan From saso.celarc at HERMES-PLUS.SI Sun Mar 26 10:30:36 2006 From: saso.celarc at HERMES-PLUS.SI (Sa=?ISO-8859-1?Q?=9Ao?= Celarc) Date: Sun, 26 Mar 2006 12:30:36 -0600 Subject: JPG speed /TIF speed Message-ID: I have original black&white (8 bits per pixel) tif ortophotos (4500x6000 pixles) with .tfw. I convert them to jpeg using gdal_translate -of JPEG -co "WORLDFILE=ON" -co "PROGRESSIVE=ON" (and i was happy because the size decreased to 20% of original. Then I produced two index files using gdaltindex - one for original tifs and one for jpegs. Then I produced two .map files - first is using the tif layer with tiftileindex.shp, the other one is using jpeg layer with jpgtileindex.shp. Then I compared the speed of response and I realised, that jpeg version is much much slower then tif version: This is slow: http://localhost/cgi-bin/mapserv?map=D:\mymap_jpeg.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=ob&width=800&height=800&BBOX=517800,72000,518800,73000 This is fast: http://localhost/cgi-bin/mapserv?map=D:\mymap_tif.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=ob&width=800&height=800&BBOX=517800,72000,518800,73000 Does somebody has an explanation of this? My intuition says that jpeg should be faster. Regards, Saso From perrygeo at GMAIL.COM Sun Mar 26 10:51:00 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Sun, 26 Mar 2006 10:51:00 -0800 Subject: JPG speed /TIF speed In-Reply-To: Message-ID: On 3/26/06, Sa?o Celarc wrote: > Does somebody has an explanation of this? My intuition says that jpeg should > be faster. jpegs are typically MUCH slower than tiffs because they have to be completely decompressed before mapserver can access any pixel values. For larger rasters, this can mean 10+ seconds of decompression just to be able to access the data wheras the tiff can be scanned and read immediately and efficiently. You might look at ECW compression which is much faster and better quality than jpeg. But the typical advice is to simply use uncompressed tiffs, internally tiled with overviews: gdal_translate -of GTiff -co "TILED=YES" input.tif output.tif gdaladdo -r average output.tif 2 4 8 16 32 64 128 It takes alot of disk space but it's orders of magnitude faster. -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From sgillies at FRII.COM Sun Mar 26 11:10:38 2006 From: sgillies at FRII.COM (Sean Gillies) Date: Sun, 26 Mar 2006 12:10:38 -0700 Subject: JPG speed /TIF speed In-Reply-To: Message-ID: On Mar 26, 2006, at 11:51 AM, Matthew Perry wrote: > On 3/26/06, Sa=9Ao Celarc wrote: >> Does somebody has an explanation of this? My intuition says that >> jpeg sho= > uld >> be faster. > > jpegs are typically MUCH slower than tiffs because they have to be > completely decompressed before mapserver can access any pixel values. > For larger rasters, this can mean 10+ seconds of decompression just to > be able to access the data wheras the tiff can be scanned and read > immediately and efficiently. > > You might look at ECW compression which is much faster and better > quality than jpeg. But the typical advice is to simply use > uncompressed tiffs, internally tiled with overviews: > > gdal_translate -of GTiff -co "TILED=3DYES" input.tif output.tif > gdaladdo -r average output.tif 2 4 8 16 32 64 128 > > It takes alot of disk space but it's orders of magnitude faster. > > -- > Matt Perry > perrygeo at gmail.com > http://www.perrygeo.net My understanding is that you can also use compression within TIFF tiles. You can save on disk space if you need to do so, but also won't have to decompress much more imagery than you actually need. cheers, Sean --- Sean Gillies http://zcologia.com From Jukka.Rahkonen at MMMTIKE.FI Mon Mar 27 00:43:09 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 27 Mar 2006 11:43:09 +0300 Subject: JPG speed /TIF speed Message-ID: ________________________________ Sean Gillies wrote: > You might look at ECW compression which is much faster and better > quality than jpeg. But the typical advice is to simply use > uncompressed tiffs, internally tiled with overviews: Or why not to have a try with JPEG 2000 which is ISO standard and behaves like other wavelett based formats like ECW and MrSID? For an easy start you could try to compress for example 10 - 100 images to JPEG 2000 with compression ratio of around 1: 10 or even 1:20 and to make a tileindex for Mapserver. By the way, if you have ESRI world files, they must be named as .wld for tileindex. You should see both a rather good performance and 90 percent savings in disk space (actually more than that, if you otherwise used overviews). It will mean more computing for the server because it must decompress JPEG 2000 streams first but because of internal indexing of JPEG 2000 disk operations will be fast and difference in time needed for the whole process is not that big. One problem is that JPEG 2000 streams can be created literally in millions of different ways, not all of them offering good spatially random access to data. Therefore I think that using some ready made application developed GIS in mind for compressing could be a good start. One alternative which should give good results is free ECW JPEG 2000 Compressor 7.0 from ER Mapper, but for sure there are others as well. You can use dgal_translate as well, but I have not used it myself and I can not suggest you any parameters. If you would like have a total control on JPEG 2000 compression you can use kdu_compress executable that can be downloaded from www.kakadusoftware.com . Because of those million of parameter combinations you might be a bit confused at the beginning but these parameters have satisfied me with lossless compression of 3-channel images of size 10000 by 10000 pixels: kdu_compress -i input.tif -o output.jp2 -rate - Clevels=7 Clayers=27 Creversible=yes Cycc=no Cprecincts={256,256},{128,128} Corder=RPCL Cblk={32,32} ORGgen_plt=yes -cpu 0 -mem For lossy compression "-rate 2.4" instead of "-rate -" would yield 1:10 compressed JPEG 2000 image. It would be nice if someone, sometime would make a study about most suitable ways to perform JPEG 2000 compression for Mapserver. Regards, -Jukka Rahkonen- From fx.prunayre at OIEAU.FR Mon Mar 27 01:53:51 2006 From: fx.prunayre at OIEAU.FR (=?iso-8859-1?Q?Fran=E7ois_Prunayre?=) Date: Mon, 27 Mar 2006 11:53:51 +0200 Subject: SLD / MAXSCALEDENOMINATOR, MINSCALEDENOMINATOR In-Reply-To: Message-ID: Hi list, I'm trying to use min & maxscaledenominator on SLD but can't make it work. Only the first rule is applied. Any ideas ? One exemple : http://sandre.eaufrance.fr/geo/sld/auto/STEP.sld STEP Min Min 25000 100000 square #OOffOO 2 ARIAL 6 1.0 0.5 5 0 #000000 Max Max 100000 1000000 circle #b3ac3b 2 ARIAL 6 1.0 0.5 5 0 #000000 Thanks for your help. Francois -- Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve. Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee. Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized. From mapserver at GEOWORLD.DE Mon Mar 27 04:26:46 2006 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Mon, 27 Mar 2006 14:26:46 +0200 Subject: Reprojection of EPSG 27572 to 4326 Message-ID: Hi List, i encounter a problem in the reprojection of EPSG 27572 to EPSG 4326. My reprojected layer are nearly 400 km on the left of the other layer. I use gdal 1.3.1 and proj 4.4.9 When i manually change the original epsg entry ( <27572> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=-2.33722917 +k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=63565 15 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs <> ) which comes with proj 4.4.9 for EPSG 27572 to: <27572> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=2.33722917 +k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +units=m +no_defs <> or <27572> +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 +k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs <> the shift disappear. I have no idea what happens behind the curtain but i assume that it has something to do with the prime meridian. My be a sign error. I found three references in the archives which are related to this problem i think: http://lists.umn.edu/cgi-bin/wa?A2=ind0504&L=mapserver-users&T=0&F=&S=&X=133A9569A7022E6B06&Y=mapserver%40geoworld.de&P=36962 http://bugzilla.remotesensing.org/show_bug.cgi?id=601 http://bugzilla.remotesensing.org/show_bug.cgi?id=811 May be this information helps to track down the source of the problem. Should i report this information as a new bug or should i update one of the existing? Nicol From davide.albertini at TICINO.COM Mon Mar 27 05:11:26 2006 From: davide.albertini at TICINO.COM (72555) Date: Mon, 27 Mar 2006 15:11:26 +0200 Subject: Problems with Itasca Demo Message-ID: Hallo, I'm a new MapServr user, I started to install mapserver with the ms4w 1.4.1 and I got no errors, so I decided to install the MapServer demo "workshop" downloaded from the main sit of map server. I followed the instruction but I can't get the right page when try to initialize the demo. This is the configuration that I've did: Error Log: [Thu Mar 23 13:59:51 2006] [error] [client 127.0.0.1] script not found or unable to stat: C:/Program Files, referer: http://127.0.0.1/workshop/index.html [Thu Mar 23 14:21:26 2006] [error] [client 127.0.0.1] script not found or unable to stat: C:/Program Files, referer: http://127.0.0.1/workshop/ Index.html (C:\MS4W\Apache\htdocs\workshop\): MapServer Itasca Application

MapServer Itasca Application


This demonstration application will take you through various levels of complexity. Starting with a basic application that allows a user to pan/zoom and change layers we add:

  • dynamically configured scalebars
  • javascript-based panning
  • query results to a frame
  • and finally, a DHTML rubber-band zoom/query capabilty
The base data is the old-reliable Itasca dataset that we know and love...


Changes in itasca.map: # change this value to match your setup WMS_ONLINERESOURCE "http://localhost/workshop/index.html" Changes in httpd.conf: ServerRoot "C:\ms4w\Apache" --> Line 57 DocumentRoot "C:\ms4w\Apache\htdocs" --> Line 228 Thanks for the help , I tried with the mailing list but I can't login. Greetings. From ibis.noir at GMAIL.COM Mon Mar 27 05:12:23 2006 From: ibis.noir at GMAIL.COM (Ibis Noir) Date: Mon, 27 Mar 2006 07:12:23 -0600 Subject: Newb question Message-ID: "I'm completely new to GIS and MapServer". I know you've seen this line before but I'm truly stuck: I can't seem to find the answers to some elementary questions, documentation "from scratch". I ordered a book on amazon (beginning mapserver...) and I'm waiting. I've done the demo's with success. But I'm stuck here: I have some data in the form of GeoTiff files. I don't have the shapefiles of these files. Is it possible to generate maps from these files anyway (without shapefiles)? I've tried to adapt the given examples in the doc but it doesn't work. The log file doesn't even mention anything special. All I get is a black screen. I've generated shapefiles with gdaltindex but the logs tells me then that it can't find the files, which paths btw i can see in the .dbf file when I look in it. I know I'm on the wrong track conceptually. Could somebody like give me a hint as to where to look? Thanks From ibis.noir at GMAIL.COM Mon Mar 27 05:28:26 2006 From: ibis.noir at GMAIL.COM (Ibis Noir) Date: Mon, 27 Mar 2006 07:28:26 -0600 Subject: Problems with Itasca Demo Message-ID: > > value="C:\ms4w\Apache\htdocs\tmp"> > > value=C:\ms4w\Apache\htdocs\tmp"> > > --------------------------------------------------------- what worked for me: - slashes instead of backslashes in the 1st of the above values. - in the latter just "/tmp/" instead of the whole path. Good luck. From D.Stone at ED.AC.UK Mon Mar 27 06:07:26 2006 From: D.Stone at ED.AC.UK (Dave Stone) Date: Mon, 27 Mar 2006 08:07:26 -0600 Subject: Web application error Message-ID: I am having problems adapting the class-level query template technique in Example 3.1 of the MapServer Tutorial. Essentially, I want to do as the tutorial example does, i.e. be able to click on a point feature on the map, and have a query template open up and display attributes for the point. The only significant difference between my setup and the example's (that I can see) is that the example queries a layer (cities) whose data source is a shapefile containing polygons, whereas my source is points in a PostGIS view (dedloc). The .map file segment for the layer is: LAYER # query layer using the dedloc PostgreSQL view CONNECTIONTYPE postgis NAME saint_dedications CONNECTION "user=erdb13 dbname=stdraft" DATA "geom from dedloc USING UNIQUE dr USING SRID=27700" STATUS DEFAULT DEBUG ON TYPE POINT FILTERITEM dedicationtype FILTER "dedicationtype='%dtype%'" TOLERANCE 5 CLASS NAME "Dedications" MINSCALE 2000000 TEMPLATE "result.html" STYLE SYMBOL "circle" SIZE 5 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END CLASS MAXSCALE 1900000 TEMPLATE "result.html" STYLE SYMBOL "circle" SIZE 10 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END END # test query layer and the URL invoking the query template is: http://drayton.ucs.ed.ac.uk/cgi-bin/mapserv?imgxy=300.0+300.0& imgext=217114.636666+624099.796666+387452.636666+794437.796666& map=%2Fvar%2Fwww%2Fhtml%2Fsaints%2Fdata%2Fparish%2Fuig.map& savequery=true&mode=browse&img.x=320&img.y=271&zoomdir=0&zoomsize=4& layer=parish_labels&layer=parish&layer=saint_dedications&mode=query& dtype=Altar+dedication What I get when I click on a dot on the map displaying saint_dedications is a web page headed 'MapServer Message', but then no message, no attributes for the dot I clicked, nothing! Can anyone suggest what might be going wrong? The query template (result.html) is very simple; like Example 3.1, it just displays boilerplate HTML and attribute values for the dot that was clicked. From sgillies at FRII.COM Mon Mar 27 06:34:34 2006 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 27 Mar 2006 07:34:34 -0700 Subject: JPG speed /TIF speed In-Reply-To: Message-ID: On Mar 27, 2006, at 1:43 AM, Rahkonen Jukka wrote: > ________________________________ > > Sean Gillies wrote: > >> You might look at ECW compression which is much faster and better >> quality than jpeg. But the typical advice is to simply use >> uncompressed tiffs, internally tiled with overviews: > > Or why not to have a try with JPEG 2000 which is ISO standard and = > behaves like other wavelett based formats like ECW and MrSID? For > an = > easy start you could try to compress for example 10 - 100 images to > JPEG = > 2000 with compression ratio of around 1: 10 or even 1:20 and to > make a = > tileindex for Mapserver. By the way, if you have ESRI world files, > they = > must be named as .wld for tileindex. You should see both a rather > good = > performance and 90 percent savings in disk space (actually more than = > that, if you otherwise used overviews). It will mean more computing > for = > the server because it must decompress JPEG 2000 streams first but = > because of internal indexing of JPEG 2000 disk operations will be > fast = > and difference in time needed for the whole process is not that big. > > One problem is that JPEG 2000 streams can be created literally in = > millions of different ways, not all of them offering good spatially = > random access to data. Therefore I think that using some ready made = > application developed GIS in mind for compressing could be a good > start. = > One alternative which should give good results is free ECW JPEG 2000 = > Compressor 7.0 from ER Mapper, but for sure there are others as > well. = > You can use dgal_translate as well, but I have not used it myself > and I = > can not suggest you any parameters. If you would like have a total = > control on JPEG 2000 compression you can use kdu_compress executable = > that can be downloaded from www.kakadusoftware.com . Because of > those = > million of parameter combinations you might be a bit confused at the = > beginning but these parameters have satisfied me with lossless = > compression of 3-channel images of size 10000 by 10000 pixels: > > kdu_compress -i input.tif -o output.jp2 -rate - Clevels=3D7 > Clayers=3D27 = > Creversible=3Dyes Cycc=3Dno Cprecincts=3D{256,256},{128,128} = > Corder=3DRPCL Cblk=3D{32,32} ORGgen_plt=3Dyes -cpu 0 -mem > > For lossy compression "-rate 2.4" instead of "-rate -" would yield > 1:10 = > compressed JPEG 2000 image. > > It would be nice if someone, sometime would make a study about most = > suitable ways to perform JPEG 2000 compression for Mapserver. > > Regards, > > -Jukka Rahkonen- > > =20 Jukka, Good points there, but you have misquoted me. I did not type the lines that you attributed to me. Sean --- Sean Gillies http://zcologia.com From davide.albertini at TICINO.COM Mon Mar 27 06:41:32 2006 From: davide.albertini at TICINO.COM (72555) Date: Mon, 27 Mar 2006 16:41:32 +0200 Subject: R: Re: [UMN_MAPSERVER-USERS] Problems with Itasca Demo Message-ID: >> >value="C:\ms4w\Apache\htdocs\tmp"> >> >> >value=C:\ms4w\Apache\htdocs\tmp"> >> >> >--------------------------------------------------------- > >what worked for me: > - slashes instead of backslashes in the 1st of the above values. > - in the latter just "/tmp/" instead of the whole path. > > >Good luck. Hi, I tried every possible path but I think that the problem isn't there. When I charge the //127.0.0.1/Itasca/demo.html I got a red cross over the image place. Why MapServer doesn't place the map file? Thanks Everybody From bpicinbono at WORLDONLINE.FR Mon Mar 27 05:57:57 2006 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Mon, 27 Mar 2006 15:57:57 +0200 Subject: R: Re: [UMN_MAPSERVER-USERS] Problems with Itasca Demo In-Reply-To: <380-220063127144132109@ticino.com> Message-ID: On Monday 27 March 2006 16:41, 72555 wrote: > >> >>value="C:\ms4w\Apache\htdocs\tmp"> > >> > >> >>value=C:\ms4w\Apache\htdocs\tmp"> > > > >--------------------------------------------------------- > > > >what worked for me: > > - slashes instead of backslashes in the 1st of the above values. > > - in the latter just "/tmp/" instead of the whole path. > > > > > >Good luck. > > Hi, > > I tried every possible path but I think that the problem isn't there. > When I charge the //127.0.0.1/Itasca/demo.html I got a red cross over > the image place. > Why MapServer doesn't place the map file? > > Thanks Everybody Check inside your tmp directory. Are the images being created ? Did you check the writing rights for this directory. Maybe mapserver can't write inside this directory because because Apache is not allowed to write here ? Blaise From dpinte at ITAE.BE Mon Mar 27 07:12:23 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Mon, 27 Mar 2006 17:12:23 +0200 Subject: query : from 4.4 to 4.8 Message-ID: Hi, I'm porting an application from MapServer 4.4 to 4.8. Everything works fine except the usage of the templates when querying layers. Is there a document somewhere describing changes in behaviour from 4.4 to 4.8 or a migration guide ? Many thanks, -- Didrik Pinte -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From steve.lime at DNR.STATE.MN.US Mon Mar 27 07:21:34 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 27 Mar 2006 09:21:34 -0600 Subject: centering label inside a square Message-ID: You might try using the label "OFFSET x y" parameter to tweak things just a bit. Font metrics and placement are not always an exact science... Steve >>> Dejan Gambin 03/26/06 6:53 AM >>> Hi, I am trying to label a higway using a square and a highway number inside it. I am using: SYMBOL NAME "square" TYPE VECTOR POINTS 0 0 0 0.6 1 0.6 1 0 0 0 END FILLED TRUE END and the following layer definition: LAYER NAME "highway" TYPE ANNOTATION DATA "highways" LABELITEM 'highway_number' CLASS EXPRESSION (length ("[highway_number]") eq 2) #this way I change the square symbol depending of the higway number "width" (this is an example for a square that holds higways with two numbers) STYLE SYMBOL 'square' SIZE 10 COLOR 0 0 200 OUTLINECOLOR 0 0 0 END LABEL COLOR 255 255 255 TYPE truetype FONT "arial" SIZE 8 POSITION cc END TEMPLATE void END # Class # next class would have END # Layer Everything seems OK except that label text is not centered in the square. I have tried changing the symbol definition, size parameters, etc. but I don't get it correct... Any suggestions? thanks, dejan From JamesP at ESDM.CO.UK Mon Mar 27 08:54:10 2006 From: JamesP at ESDM.CO.UK (James Perrins) Date: Mon, 27 Mar 2006 17:54:10 +0100 Subject: Mapserver CGI + ArcSDE 8.3 windows build ? Message-ID: Hi, We've been trying using the kitchen sink builds from http://hobu.stat.iastate.edu/mapserver/ However we need to install onto a machine that has Arc SDE 8.3 and the build on here seems to require SDE 9.0 Does anyone know where we can get a build using SDE 8.3 or does anyone have a windows build they could let us have ? I've never actually gone through the build process and would rather avoid it if I can ! Many Thanks James -------------- next part -------------- An HTML attachment was scrubbed... URL: From jvanulde at NRCAN.GC.CA Mon Mar 27 09:15:56 2006 From: jvanulde at NRCAN.GC.CA (Van Ulden, Joost) Date: Mon, 27 Mar 2006 12:15:56 -0500 Subject: Using Microsoft SQL Server? Message-ID: Hi Chip, here are some snippets you can use: #----------------------------------------------------------------------- ---------------- # Microsoft SQL Server #----------------------------------------------------------------------- ---------------- LAYER NAME [insert your layer name without spaces (eg. my_layer)] TYPE POINT CONNECTIONTYPE OGR CONNECTION ' ODBC:[insert user_name]/[insert password]@[insert dsn name],[insert table name] [insert table name] # OR [insert your sql statement (eg. SELECT Longitude,Latitude,... FROM MyTable)] wkbPoint WGS84 ' DUMP TRUE # for WFS only DATA "[insert your layer name]" STATUS default CLASS SYMBOL 'circle' SIZE 25 COLOR 255 0 0 END END #----------------------------------------------------------------------- ---------------- # FileMaker #----------------------------------------------------------------------- ---------------- LAYER NAME [insert your layer name without spaces (eg. my_layer)] TYPE POINT CONNECTIONTYPE OGR CONNECTION ' ODBC:[insert your dsn name],[insert your database name] wkbPoint [insert your sql statement (eg. SELECT Longitude,Latitude,... FROM Earthquake)] ' DUMP TRUE # for WFS only DATA "[insert your layer name]" STATUS default CLASS SYMBOL 'circle' SIZE 25 COLOR 255 0 0 END END #----------------------------------------------------------------------- ---------------- # Microsoft Access #----------------------------------------------------------------------- ---------------- LAYER NAME [insert your layer name without spaces (eg. my_layer)] TYPE POINT CONNECTIONTYPE OGR CONNECTION ' ODBC:[insert your dsn name],[insert your table name] wkbPoint ' DUMP TRUE # for WFS only DATA "[insert your layer name]" STATUS default CLASS SYMBOL 'circle' SIZE 25 COLOR 255 0 0 END END #----------------------------------------------------------------------- ---------------- # GML #----------------------------------------------------------------------- ---------------- LAYER NAME [insert your layer name without spaces (eg. my_layer)] TYPE POINT CONNECTIONTYPE OGR CONNECTION '[insert your directory path here]\[insert your filename here].gml' DUMP TRUE # for WFS only DATA "[insert the featureType here (eg. point | line | polygon)]" STATUS default CLASS SYMBOL 'circle' SIZE 25 COLOR 255 0 0 END END ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chip Taylor Sent: Friday, March 24, 2006 7:19 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Using Microsoft SQL Server? Can I integrate a layer in Mapserver using a connection to Microsoft SQL Server 2005, pulling XY (lat long) points and text, and plot these? How would I do that? Chip Taylor Prepared Response, Inc From naci0002 at UMN.EDU Mon Mar 27 09:25:30 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Mon, 27 Mar 2006 11:25:30 -0600 Subject: Web application error In-Reply-To: Message-ID: Dave, What does your result.html query template look like? Did you capitalize all the attribute names (as in "[ATT_NAME]")? If so, make them small caps for PostGIS tables--[att_name]. Also, here's another hint: Use the TOLERANCE keyword... http://mapserver.gis.umn.edu/docs/reference/mapfile/layer Or if you prefer a fancier mapfile reference, check http://umn.mapserver.ch/index_en.php Good luck! -Perry On Monday 27 March 2006 08:07, Dave Stone wrote: > I am having problems adapting the class-level query template technique in > Example 3.1 of the MapServer Tutorial. > > Essentially, I want to do as the tutorial example does, i.e. be able to > click on a point feature on the map, and have a query template open up and > display attributes for the point. > > The only significant difference between my setup and the example's (that I > can see) is that the example queries a layer (cities) whose data source is > a shapefile containing polygons, whereas my source is points in a PostGIS > view (dedloc). The .map file segment for the layer is: > > LAYER # query layer using the dedloc PostgreSQL view > CONNECTIONTYPE postgis > NAME saint_dedications > CONNECTION "user=erdb13 dbname=stdraft" > DATA "geom from dedloc USING UNIQUE dr USING SRID=27700" > STATUS DEFAULT > DEBUG ON > TYPE POINT > FILTERITEM dedicationtype > FILTER "dedicationtype='%dtype%'" > TOLERANCE 5 > CLASS > NAME "Dedications" > MINSCALE 2000000 > TEMPLATE "result.html" > STYLE > SYMBOL "circle" > SIZE 5 > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END > END > CLASS > MAXSCALE 1900000 > TEMPLATE "result.html" > STYLE > SYMBOL "circle" > SIZE 10 > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END > END > END # test query layer > > > and the URL invoking the query template is: > > http://drayton.ucs.ed.ac.uk/cgi-bin/mapserv?imgxy=300.0+300.0& > imgext=217114.636666+624099.796666+387452.636666+794437.796666& > map=%2Fvar%2Fwww%2Fhtml%2Fsaints%2Fdata%2Fparish%2Fuig.map& > savequery=true&mode=browse&img.x=320&img.y=271&zoomdir=0&zoomsize=4& > layer=parish_labels&layer=parish&layer=saint_dedications&mode=query& > dtype=Altar+dedication > > What I get when I click on a dot on the map displaying saint_dedications is > a web page headed 'MapServer Message', but then no message, no attributes > for the dot I clicked, nothing! > > Can anyone suggest what might be going wrong? The query template > (result.html) is very simple; like Example 3.1, it just displays > boilerplate HTML and attribute values for the dot that was clicked. -- Pericles S. Nacionales Conservation Biology Program University of Minnesota e-mail: naci0002 at umn.edu From pmoen at STATE.ND.US Mon Mar 27 09:51:13 2006 From: pmoen at STATE.ND.US (Paul Moen) Date: Mon, 27 Mar 2006 11:51:13 -0600 Subject: queryByAttributes PostGIS Problem Message-ID: The following gives me the ability I had in 4.6.2 with queryByAttributes. It seems that 4.8.2 does not include a fix for bug 1629. I downloaded and applied the patch and my query works as it did in 4.6.2. The patch is available by going to http://mapserver.gis.umn.edu/bugs/index.cgi and entering 1629 for the bug number. I downloaded the patch, named it mapostgis.patch and saved it in my mapserver-4.8.2 source directory. To apply the patch, in the mapserver-4.8.2 source directory, I typed in terminal, patch mappostgis.c mappostgis.patch I then recompiled mapserver and queryByAttributes works as it did in 4.6.2. Hopefully someone will find this useful. Paul Moen On Thu, 23 Mar 2006 13:15:40 -0600, Paul Moen wrote: >Can anyone tell me how to use queryByAttributes in PHP mapscript to query a >postgis layer with the following WHERE clause. > >WHERE (location LIKE '12458%' AND county = 'Bowman') > >I assume that I can do it with 4.8.2 since I could with mapscript 4.6.2 >using $search = $qlayer->queryByAttributes(county,"(location LIKE '12458%' >AND county = 'Bowman')",MS_MULTIPLE); > >With 4.6.2, it didn't seem to matter what field I put in the first >parameter, as long as it was a valid field. The second parameter was >essentially the where clause. > >With 4.8.2, using $search = $qlayer->queryByAttributes(county,"(location >LIKE '12458%' AND county = 'Bowman')",MS_MULTIPLE); >creates the malformed where clause below. > >WHERE (county = 'location LIKE '12458%' AND county = 'Bowman'') > >Is this a bug or did the functionality go away? > >Thank you, > >Paul T. Moen >pmoen at state.nd.us >ND State Water Commission From mcgrawj at AGR.GC.CA Mon Mar 27 11:14:14 2006 From: mcgrawj at AGR.GC.CA (McGraw, Joanne) Date: Mon, 27 Mar 2006 14:14:14 -0500 Subject: MapscriptJNI - No such file failure in new_projectionObj Message-ID: Solution: The problem was that the Java code (actually, dll at that point) could not find MapServer's epsg definition file. It CAN find it if the file is placed under C:\proj (in Windows) or if the directory it exists in is pointed to by the PROJ_LIB environment variable (any operating system). This is noted in the README.TXT file in MapServer's /proj directory. Cheers, jtm Joanne T. McGraw GIS Data Analyst / Analyste des donn?es du SIG Agriculture and Agri-Food Canada / Agriculture et Agroalimentaire Canada Telephone/T?l?phone: 613 759-6103 Facsimile/T?l?copieur: 613 759-1937 960 Carling Ave, Bldg. 20, Rm. 1136 Ottawa, Ontario K1A 0C6 mcgrawj at agr.gc.ca -----Original Message----- From: McGraw, Joanne Sent: Friday, March 24, 2006 3:44 PM To: 'MAPSERVER-USERS at LISTS.UMN.EDU' Subject: MapscriptJNI - No such file failure in new_projectionObj It's taken a while but I have finally been able to get something to happen in a Java Mapscript environment. In a JSP running on Tomcat 5.5.9, I created a new mapObj, drew it and saved the results to a file. Okay, good. Now, I'm actually trying to do what I started out wanting to do in the first place and am completely stuck. I have a JSP that receives an input EPSG projection, an output EPSG projection and a bounding box provided in the coordinate system of the input EPSG projection. So, my first two lines of code are: String szProjIn = "init=" + request.getParameter("INPROJ"); // szProjIn contains "init=EPSG:42304" projectionObj oProjIn = new projectionObj(szProjIn); When the code attempts the new projectionObj(szProjIn) code, it fails with the following message: java.lang.UnknownError: No such file or directory at edu.umn.gis.mapscript.mapscriptJNI.new_projectionObj(Native Method) at edu.umn.gis.mapscript.projectionObj.(projectionObj.java) at org.apache.jsp.MapScript_jsp._jspService(org.apache.jsp.MapScript_jsp:52) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) I'm guessing, but have no way of knowing, that the problem is that the new_projectionObj code in the dll is looking for a file that details the EPSG:42304 projection and not finding it. I'm assuming too that it's the /proj/epsg file that is part of the standard MapServer installation. If all this is correct, where in the Tomcat server configuration is it looking for this file? At the moment, my jar is under the app's WEB-INF/lib/ directory and the dll is in the same place. If this is not the problem, does anyone have any ideas what else it might be? Cheers, jtm From kevin at PEOPLEGIS.COM Mon Mar 27 13:21:15 2006 From: kevin at PEOPLEGIS.COM (Kevin Flanders) Date: Mon, 27 Mar 2006 16:21:15 -0500 Subject: ecws Message-ID: I have a large area of .sid photography. To keep their footprint small, I compressed them 100:1. They still look great, but it takes 7-10 seconds for them to appear. I have other .sid photos at 20:1 that seem much faster. Is this because of the compression ratio? Is there a compression ratio at which the compression begins to become such an issue? Are ecws faster than sids? Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin at PEOPLEGIS.COM Mon Mar 27 13:35:35 2006 From: kevin at PEOPLEGIS.COM (Kevin Flanders) Date: Mon, 27 Mar 2006 16:35:35 -0500 Subject: Filter vs. seperate shapefiles Message-ID: Is it better (ie. faster) to have several map layers reference the same shapefile using FILTER statements to specify the shapes they reference, or to create several different shapefiles.....one for each class (on/off control is required for each layer, which is why we are not simply using different CLASSES). Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Mon Mar 27 14:59:02 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 27 Mar 2006 17:59:02 -0500 Subject: Filter vs. seperate shapefiles In-Reply-To: Message-ID: Kevin, It is faster to filter that data into separate files. There is little cost to have a few extra layers, but to filter the layer requires looking at every record for every request. For performance always preprocess as much as you can. -Steve Kevin Flanders wrote: > Is it better (ie. faster) to have several map layers reference the same > shapefile using FILTER statements to specify the shapes they reference, > or to create several different shapefiles.....one for each class (on/off > control is required for each layer, which is why we are not simply using > different CLASSES). > > Kevin > > > From reh2 at PRODIGY.NET Mon Mar 27 15:11:21 2006 From: reh2 at PRODIGY.NET (Robert Hollingsworth) Date: Mon, 27 Mar 2006 17:11:21 -0600 Subject: arcCatalog 9.1 and MS WMS Message-ID: DD: MESSAGE From steve.lime at DNR.STATE.MN.US Mon Mar 27 15:34:12 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 27 Mar 2006 17:34:12 -0600 Subject: Filter vs. seperate shapefiles Message-ID: Kevin: Anything you can do ahead of time will always make things run faster. The question of how much faster is another matter. That is dependent on the number of features and the types of expressions (straight string comparison is much faster). If your site is going to get hammered then even tiny speed improvements may be worth the pre-processing. Steve >>> Kevin Flanders 03/27/06 3:35 PM >>> Is it better (ie. faster) to have several map layers reference the same shapefile using FILTER statements to specify the shapes they reference, or to create several different shapefiles.....one for each class (on/off control is required for each layer, which is why we are not simply using different CLASSES). Kevin From bene at KLATSCH.ORG Mon Mar 27 15:07:17 2006 From: bene at KLATSCH.ORG (Ben Eisenbraun) Date: Mon, 27 Mar 2006 18:07:17 -0500 Subject: shapefile optimization for dynamic data Message-ID: Hi- I'm building a Mapserver application with dynamic data coming in every second, and I'm not sure how to organize the shapefiles for speediest access. I'm collecting data via a GPS and a sensor that reports a data point once per second. I'm using Mapserver CGI to generate an overlay onto a map via a javascript frontend that auto-refreshes every few seconds. The application has to run on a low-power embedded hardware device (roughly a p2-266), and I'm running into performance problems once I've collected a few thousand data points. The Mapserver CGI process tends to consume all the CPU trying to render the overlays. Up to now, I've been using shpadd/dbfadd to add the data points to a single shapefile. I've tried using shptree to index the shapefile, but under my testing, it doesn't seem to speed up rendering time at all. The largest a shapefile should ever get to be is about 25,000 data points; I'm not sure if that's large or small compared to other people's data. I've thought about breaking up that single shapefile into multiple shapefiles of a given size, but I'm not sure if that would be a win for this type of situation. Given that I'm constantly updating the source shapefile, what are my options for optimizing it? Thanks for any tips or pointers. -ben -- simplicity is the most difficult thing to secure in this world; it is the last limit of experience and the last effort of genius. From woodbri at SWOODBRIDGE.COM Mon Mar 27 16:38:55 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 27 Mar 2006 19:38:55 -0500 Subject: shapefile optimization for dynamic data In-Reply-To: <20060327230717.GG3310@collab.or8.net> Message-ID: Using shptree will not help you that much in this scenario because of the frequency of updating the file. You best bet would be use multiple files and a tile index that you would have to add the new files to as they are created. Then you can shptree on the non-active file, but not on the active file. That will probably be the best scenario. Also make sure you shptree the tileindex. If a shapefile does not have a qix spatial index, then mapserver creates one on the fly and throws it away. If you are adding a point a second the file is probably getting updated faster than you can index it and then render it. Using the tileindex should really help in this case also, because only the files the intersect you current display window need to be opened and looked at. -Steve W. Ben Eisenbraun wrote: > Hi- > > I'm building a Mapserver application with dynamic data coming in every second, > and I'm not sure how to organize the shapefiles for speediest access. > > I'm collecting data via a GPS and a sensor that reports a data point once > per second. I'm using Mapserver CGI to generate an overlay onto a map via a > javascript frontend that auto-refreshes every few seconds. The application > has to run on a low-power embedded hardware device (roughly a p2-266), and > I'm running into performance problems once I've collected a few thousand > data points. The Mapserver CGI process tends to consume all the CPU trying > to render the overlays. > > Up to now, I've been using shpadd/dbfadd to add the data points to a single > shapefile. I've tried using shptree to index the shapefile, but under my > testing, it doesn't seem to speed up rendering time at all. The largest a > shapefile should ever get to be is about 25,000 data points; I'm not sure if > that's large or small compared to other people's data. > > I've thought about breaking up that single shapefile into multiple shapefiles > of a given size, but I'm not sure if that would be a win for this type of > situation. > > Given that I'm constantly updating the source shapefile, what are my options > for optimizing it? > > Thanks for any tips or pointers. > > -ben > > -- > simplicity is the most difficult thing to secure in this world; it is the > last limit of experience and the last effort of genius. > From chris at NARX.NET Mon Mar 27 16:51:04 2006 From: chris at NARX.NET (Chris Tweedie) Date: Tue, 28 Mar 2006 08:51:04 +0800 Subject: shapefile optimization for dynamic data In-Reply-To: <4428859F.5040503@swoodbridge.com> Message-ID: Ben, for the situation you described i would of thought pushing the GPS points into a database would make much more sense than trying to add/remake the shapefile especially at that frequency. Have you looked into using postgis (or any other db for that matter) as your datasource? Chris Quoting Stephen Woodbridge : > Using shptree will not help you that much in this scenario because of > the frequency of updating the file. You best bet would be use > multiple files and a tile index that you would have to add the new > files to as they are created. Then you can shptree on the non-active > file, but not on the active file. That will probably be the best > scenario. Also make sure you shptree the tileindex. > > If a shapefile does not have a qix spatial index, then mapserver > creates one on the fly and throws it away. If you are adding a point > a second the file is probably getting updated faster than you can > index it and then render it. Using the tileindex should really help > in this case also, because only the files the intersect you current > display window need to be opened and looked at. > > -Steve W. > > Ben Eisenbraun wrote: >> Hi- >> >> I'm building a Mapserver application with dynamic data coming in >> every second, and I'm not sure how to organize the shapefiles for >> speediest access. >> >> I'm collecting data via a GPS and a sensor that reports a data point >> once per second. I'm using Mapserver CGI to generate an overlay >> onto a map via a javascript frontend that auto-refreshes every few >> seconds. The application has to run on a low-power embedded >> hardware device (roughly a p2-266), and I'm running into performance >> problems once I've collected a few thousand data points. The >> Mapserver CGI process tends to consume all the CPU trying to render >> the overlays. >> >> Up to now, I've been using shpadd/dbfadd to add the data points to a >> single shapefile. I've tried using shptree to index the shapefile, >> but under my >> testing, it doesn't seem to speed up rendering time at all. The >> largest a shapefile should ever get to be is about 25,000 data >> points; I'm not sure if that's large or small compared to other >> people's data. >> >> I've thought about breaking up that single shapefile into multiple >> shapefiles of a given size, but I'm not sure if that would be a win >> for this type of situation. >> >> Given that I'm constantly updating the source shapefile, what are my options >> for optimizing it? >> >> Thanks for any tips or pointers. >> >> -ben >> >> -- >> simplicity is the most difficult thing to secure in this world; it >> is the last limit of experience and the last effort of genius. >> >> > From woodbri at SWOODBRIDGE.COM Mon Mar 27 19:16:20 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 27 Mar 2006 22:16:20 -0500 Subject: shapefile optimization for dynamic data In-Reply-To: <20060328085104.hbkhfcf7c0kgs80k@webmail.narx.net> Message-ID: Chris, I would have suggested that also, but I think in the use case presented which is an embedded system most likely excluded that as an option, but maybe that was a poor assumption on my part. If you can install postgres/postgis that would be ideal, otherwise I think something like I suggested would probably work best. Ben, let us know what works best for you. -Steve Chris Tweedie wrote: > Ben, for the situation you described i would of thought pushing the GPS > points into a database would make much more sense than trying to > add/remake the shapefile especially at that frequency. > > Have you looked into using postgis (or any other db for that matter) as > your datasource? > > Chris > > Quoting Stephen Woodbridge : > >> Using shptree will not help you that much in this scenario because of >> the frequency of updating the file. You best bet would be use multiple >> files and a tile index that you would have to add the new files to as >> they are created. Then you can shptree on the non-active file, but not >> on the active file. That will probably be the best scenario. Also make >> sure you shptree the tileindex. >> >> If a shapefile does not have a qix spatial index, then mapserver >> creates one on the fly and throws it away. If you are adding a point a >> second the file is probably getting updated faster than you can index >> it and then render it. Using the tileindex should really help in this >> case also, because only the files the intersect you current display >> window need to be opened and looked at. >> >> -Steve W. >> >> Ben Eisenbraun wrote: >> >>> Hi- >>> >>> I'm building a Mapserver application with dynamic data coming in >>> every second, and I'm not sure how to organize the shapefiles for >>> speediest access. >>> >>> I'm collecting data via a GPS and a sensor that reports a data point >>> once per second. I'm using Mapserver CGI to generate an overlay onto >>> a map via a javascript frontend that auto-refreshes every few >>> seconds. The application has to run on a low-power embedded hardware >>> device (roughly a p2-266), and I'm running into performance problems >>> once I've collected a few thousand data points. The Mapserver CGI >>> process tends to consume all the CPU trying to render the overlays. >>> >>> Up to now, I've been using shpadd/dbfadd to add the data points to a >>> single shapefile. I've tried using shptree to index the shapefile, >>> but under my >>> testing, it doesn't seem to speed up rendering time at all. The >>> largest a shapefile should ever get to be is about 25,000 data >>> points; I'm not sure if that's large or small compared to other >>> people's data. >>> >>> I've thought about breaking up that single shapefile into multiple >>> shapefiles of a given size, but I'm not sure if that would be a win >>> for this type of situation. >>> >>> Given that I'm constantly updating the source shapefile, what are my >>> options >>> for optimizing it? >>> >>> Thanks for any tips or pointers. >>> >>> -ben >>> >>> -- >>> simplicity is the most difficult thing to secure in this world; it is >>> the last limit of experience and the last effort of genius. >>> >>> >> > From bene at KLATSCH.ORG Mon Mar 27 19:56:28 2006 From: bene at KLATSCH.ORG (Ben Eisenbraun) Date: Mon, 27 Mar 2006 22:56:28 -0500 Subject: shapefile optimization for dynamic data In-Reply-To: <4428AA84.5060207@swoodbridge.com> Message-ID: The possibility of using the sqlite driver popped up a while back, but at the time I discounted it based on suggestions from the mailing list that properly optimized shapefiles were going to offer the fastest access. Thanks for the suggestions. I'll take a look at postgis. If we go that route, I suppose I should set up fastcgi for connection pooling too. -ben On Mon, Mar 27, 2006 at 10:16:20PM -0500, Stephen Woodbridge wrote: > Chris, > > I would have suggested that also, but I think in the use case presented > which is an embedded system most likely excluded that as an option, but > maybe that was a poor assumption on my part. If you can install > postgres/postgis that would be ideal, otherwise I think something like I > suggested would probably work best. > > Ben, let us know what works best for you. > > -Steve > > Chris Tweedie wrote: > >Ben, for the situation you described i would of thought pushing the GPS > >points into a database would make much more sense than trying to > >add/remake the shapefile especially at that frequency. > > > >Have you looked into using postgis (or any other db for that matter) as > >your datasource? > > > >Chris > > > >Quoting Stephen Woodbridge : > > > >>Using shptree will not help you that much in this scenario because of > >>the frequency of updating the file. You best bet would be use multiple > >>files and a tile index that you would have to add the new files to as > >>they are created. Then you can shptree on the non-active file, but not > >>on the active file. That will probably be the best scenario. Also make > >>sure you shptree the tileindex. > >> > >>If a shapefile does not have a qix spatial index, then mapserver > >>creates one on the fly and throws it away. If you are adding a point a > >>second the file is probably getting updated faster than you can index > >>it and then render it. Using the tileindex should really help in this > >>case also, because only the files the intersect you current display > >>window need to be opened and looked at. > >> > >>-Steve W. > >> > >>Ben Eisenbraun wrote: > >> > >>>Hi- > >>> > >>>I'm building a Mapserver application with dynamic data coming in > >>>every second, and I'm not sure how to organize the shapefiles for > >>>speediest access. > >>> > >>>I'm collecting data via a GPS and a sensor that reports a data point > >>>once per second. I'm using Mapserver CGI to generate an overlay onto > >>>a map via a javascript frontend that auto-refreshes every few > >>>seconds. The application has to run on a low-power embedded hardware > >>>device (roughly a p2-266), and I'm running into performance problems > >>>once I've collected a few thousand data points. The Mapserver CGI > >>>process tends to consume all the CPU trying to render the overlays. > >>> > >>>Up to now, I've been using shpadd/dbfadd to add the data points to a > >>>single shapefile. I've tried using shptree to index the shapefile, > >>>but under my > >>>testing, it doesn't seem to speed up rendering time at all. The > >>>largest a shapefile should ever get to be is about 25,000 data > >>>points; I'm not sure if that's large or small compared to other > >>>people's data. > >>> > >>>I've thought about breaking up that single shapefile into multiple > >>>shapefiles of a given size, but I'm not sure if that would be a win > >>>for this type of situation. > >>> > >>>Given that I'm constantly updating the source shapefile, what are my > >>>options > >>>for optimizing it? > >>> > >>>Thanks for any tips or pointers. > >>> > >>>-ben > >>> > >>>-- > >>>simplicity is the most difficult thing to secure in this world; it is > >>>the last limit of experience and the last effort of genius. > >>> > >>> > >> > > > -- error of opinion may be tolerated where the reason is left free to combat it. From zibiao.zhang at UMB.EDU Mon Mar 27 20:13:22 2006 From: zibiao.zhang at UMB.EDU (steven_zb) Date: Mon, 27 Mar 2006 20:13:22 -0800 Subject: mapserver demo WORKSHOP does not work correctly Message-ID: Hi All, I have installed mapserver4.0 on Redhat 9. when I ran the demo Workshop, something I can not understand happened: among the five options from the homepage, only "Adds Dhtml Rubber Band box" worked perfectly. all others would give me a page, but no image was shown. I checked with /tmp/ folder, images were created every time when I tried to open the page. following is the confguration from index.html and the error log file. all comments are welcome please: 22:36:58 2006] [error] [client 68.160.131.246] File does not exist: /var/www/html/mapserver/tmpITASCAref114351701828523.png, referer: http://wpcl.cs.umb.edu/cgi-bin/mapserv_40?layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Fvar%2Fwww%2Fhtml%2Fmapserver%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv_40&root=%2Fmapserver&map_web_imagepath=%2Fvar%2Fwww%2Fhtml%2Fmapserver%2Ftmp%2F&map_web_imageurl=%2Fmapserver%2Ftmp&map_web_template=itasca_basic.html -- View this message in context: http://www.nabble.com/mapserver-demo-WORKSHOP-does-not-work-correctly-t1353515.html#a3623213 Sent from the Mapserver - User forum at Nabble.com. From vaz.luiz at GMAIL.COM Mon Mar 27 21:18:48 2006 From: vaz.luiz at GMAIL.COM (Luiz Vaz) Date: Tue, 28 Mar 2006 02:18:48 -0300 Subject: open source font In-Reply-To: <010001c64c77$2ddaefe0$6500a8c0@lappy> Message-ID: Dean, take look at dafont.com ... Regards, Luiz Vaz 2006/3/20, Dean Gadoury : > > Hi, > > Does anyone know of an open source font that includes a serif italics > face? > > Dean > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim.bowden at WESTNET.COM.AU Mon Mar 27 22:34:07 2006 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Tue, 28 Mar 2006 14:34:07 +0800 Subject: ecw support- Alternate implementation Message-ID: Hi all, I have been playing around with ecw image files with mapserver but have come up against a licensing issue. The license offered by ermapper is vague so I queried them about it and it turns out it is only available for open source use (without license fee) if used for /non-commercial/ open source use. As our use of it is /commercial/ open source we are unable to use it without negotiating a license fee. Does anyone know of any /true/ open source ecw drivers that would work with mapserver? Thanks, Tim Bowden -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From Jukka.Rahkonen at MMMTIKE.FI Mon Mar 27 22:40:37 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Tue, 28 Mar 2006 09:40:37 +0300 Subject: ecw support- Alternate implementation Message-ID: Tim Bowden wrote: >Hi all, >I have been playing around with ecw image files with mapserver but have >come up against a licensing issue. The license offered by ermapper is >vague so I queried them about it and it turns out it is only available >for open source use (without license fee) if used for /non-commercial/ >open source use. As our use of it is /commercial/ open source we are >unable to use it without negotiating a license fee. >Does anyone know of any /true/ open source ecw drivers that would work >with mapserver? It's hard to believe so because ER Mapper is the patend holder of ECW format. If their licence is not suitable for you it coud be time to start studying JPEG 2000. Regards, -Jukka Rahkonen- From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Mar 27 22:55:45 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Tue, 28 Mar 2006 08:55:45 +0200 Subject: WMS time and Oracle Spatial Message-ID: Hi list, has the WMS time support of Mapserver been fully tested against Oracle Spatial? I do see a note in the WMS Time HOWTO about PostGIS but not about Oracle Spatial, so I would like some confirmation that WMS time against the native Oracle Spatial driver would work ..... Thanks in advance. Best regards, Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From steve.lime at DNR.STATE.MN.US Mon Mar 27 23:05:27 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 28 Mar 2006 01:05:27 -0600 Subject: mapserver demo WORKSHOP does not work correctly Message-ID: Try adding a trailing '/' to the value for map_web_imageurl. That should fix things. The DHTML example works because it doesn't use temporary images at all. Steve >>> steven_zb 03/27/06 10:13 PM >>> Hi All, I have installed mapserver4.0 on Redhat 9. when I ran the demo Workshop, something I can not understand happened: among the five options from the homepage, only "Adds Dhtml Rubber Band box" worked perfectly. all others would give me a page, but no image was shown. I checked with /tmp/ folder, images were created every time when I tried to open the page. following is the confguration from index.html and the error log file. all comments are welcome please: 22:36:58 2006] [error] [client 68.160.131.246] File does not exist: /var/www/html/mapserver/tmpITASCAref114351701828523.png, referer: http://wpcl.cs.umb.edu/cgi-bin/mapserv_40?layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Fvar%2Fwww%2Fhtml%2Fmapserver%2Fitasca.map&program=%2Fcgi-bin%2Fmapserv_40&root=%2Fmapserver&map_web_imagepath=%2Fvar%2Fwww%2Fhtml%2Fmapserver%2Ftmp%2F&map_web_imageurl=%2Fmapserver%2Ftmp&map_web_template=itasca_basic.html -- View this message in context: http://www.nabble.com/mapserver-demo-WORKSHOP-does-not-work-correctly-t1353515.html#a3623213 Sent from the Mapserver - User forum at Nabble.com. From dpinte at ITAE.BE Mon Mar 27 23:27:01 2006 From: dpinte at ITAE.BE (Didrik Pinte) Date: Tue, 28 Mar 2006 09:27:01 +0200 Subject: mapserver doc : website - french translation Message-ID: Mapserver-doc mailing list seems a little bit dead. That's why i'm crossposting. Hi, I'm back online and ready to start translating much more than the homepage ;-) Howard, was there any progress with the translation capabilities of the PHC ? With the amount of articles created on the site since last year, I propose to coordinate the effort of translation if they are other people wanting to do it. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From fabio.dovidio at PLANETEK.IT Tue Mar 28 01:28:09 2006 From: fabio.dovidio at PLANETEK.IT (Fabio D' Ovidio) Date: Tue, 28 Mar 2006 11:28:09 +0200 Subject: Displaying more classes in a legend Message-ID: hi list, I want to know if it's possible to display in a legend map all the classes associated wtith a single layer with mapserver 4.2 thank you ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Tue Mar 28 01:43:46 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Tue, 28 Mar 2006 11:43:46 +0200 Subject: Displaying more classes in a legend Message-ID: This should be possible. All classes which have a NAME should show up in the legend. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Fabio D' Ovidio Verzonden: dinsdag 28 maart 2006 11:28 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Displaying more classes in a legend hi list, I want to know if it's possible to display in a legend map all the classes associated wtith a single layer with mapserver 4.2 thank you **************************************************************************** **************** graphic Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it **************************************************************************** **************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From hydromap at GMAIL.COM Tue Mar 28 03:33:05 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Tue, 28 Mar 2006 22:33:05 +1100 Subject: shapefile optimization for dynamic data In-Reply-To: <20060328035628.GJ3310@collab.or8.net> Message-ID: > The possibility of using the sqlite driver popped up a while back, > but at the time I discounted it based on suggestions from the mailing > list that properly optimized shapefiles were going to offer the fastest > access. Ben, using Sqlite would be achieved via an OGR or and ODBC Connection and although its theoretically slower than reading a static shapefile, I have no idea how it would perform in your scenario. I suspect it might be faster, but would be _very_ interested in the results if you do happen to try it. > Thanks for the suggestions. I'll take a look at postgis. If we go that > route, I suppose I should set up fastcgi for connection pooling too. shoaib From Kenton_Williams at UMIT.MAINE.EDU Tue Mar 28 05:16:50 2006 From: Kenton_Williams at UMIT.MAINE.EDU (Kenton Williams) Date: Tue, 28 Mar 2006 08:16:50 -0500 Subject: ecws In-Reply-To: Message-ID: I have done some comparisons of ECW versus SID images on my pocket PC, where decompression speed is paramount. The ECW images decompress 6 to 10 times faster than the SID image created at a similar compression rate from the same source file. Not only that, but the ECW images look a little nicer, with fewer compression artifacts. If you have to compress your images and can use ECW, I'd advise it. If speed is what you're after, don't compress your images at all - use GeoTIFF or something similar. Kenton Williams From assefa at DMSOLUTIONS.CA Tue Mar 28 05:30:25 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 28 Mar 2006 08:30:25 -0500 Subject: WMS time and Oracle Spatial In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B2405F97A36@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: Bart, I personnaly did not test it on an oracle layer but here is how It is supposed to wirk : the wms time support would set the filter element of the layer with the time field and the time string as it was a normal attribute. Something like this ([time_field] = time_value) (timefield is extrcated from metedata on the layer and timevalue comes from the wms request). This sould normally translate into a a valid sql query (something like where + the filter string). If you are able to test it let me know. Later, Eijnden, B. van den (Bart) wrote: > Hi list, > > has the WMS time support of Mapserver been fully tested against Oracle > Spatial? I do see a note in the WMS Time HOWTO about PostGIS but not about > Oracle Spatial, so I would like some confirmation that WMS time against the > native Oracle Spatial driver would work ..... > > Thanks in advance. > > Best regards, > Bart > > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ************************************************************************ > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From zikas at TMB.UKA.DE Tue Mar 28 05:34:39 2006 From: zikas at TMB.UKA.DE (Theodoros) Date: Tue, 28 Mar 2006 05:34:39 -0800 Subject: Change Map dynamically Message-ID: Hi! I have a shapefile with a building stock and each building has his unique ID in a .dbf File. In a Oracle Database I have more information for the buildings assigned to the ID. Now I want to change the colors of some buildings according to the information in the oracle table e.x. commercial cuildings in red color and residential in blue or depending on calculation results. How can I change my Map dynamically? I found some infos about run-time substituations or the map object properties ... but all my tries didn't work yet ...Is there any easy example for me? :-) Thanks in advance! Theo -- View this message in context: http://www.nabble.com/Change-Map-dynamically-t1355679.html#a3629622 Sent from the Mapserver - User forum at Nabble.com. From toni at SIGTE.UDG.ES Tue Mar 28 06:17:11 2006 From: toni at SIGTE.UDG.ES (=?ISO-8859-1?Q?toni_hern=E1ndez?=) Date: Tue, 28 Mar 2006 16:17:11 +0200 Subject: a wms layer in a dhtml rubber-band box itasca demo. Message-ID: I am trying to understand how the dhmlt rubber-band box is working. The thing is I'd like to insert a wms layer in the map file. The map file is working fine, but when I use the rubber-band box functions the screen just turn red and no image (not even an error) is diplayed. Does anyone know what's happening? how can I insert a wms layer? thanks From woodbri at SWOODBRIDGE.COM Tue Mar 28 06:39:28 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 28 Mar 2006 09:39:28 -0500 Subject: PHP/Mapscript, apache2, mod_php - What is the status? In-Reply-To: <002d01c65238$85b5acc0$0302a8c0@windoze> Message-ID: Benjamin Wragg wrote: > Hi Steve, > > Sorry to email you off the list but I was wondering if you got any > answers to your mapserver question about "PHP/Mapscript, apache2, > mod_php - What is the status?" I also am interested in where things are at. I wrote on 22 March 2006: > Hi all, > > I want to update my mental knowledge based and I am wondering where we > stand with PHP/Mapscript working with mod_php and Apache 1.3 or Apache 2. > > I know there have been thread-safety issues and I have been a strong > advocate of using PHP-CGI with mapscript. Is this still the requirement? > > How about running Perl/Mapscript with mod_perl? > > Thanks for the update, > -Steve W Hi Benjamin, Thank you for reminding me to repost the question. I didn't get any response to this and I glad that I'm not the only one that wants to know the status of this. -Steve W From jorgzamb at GMAIL.COM Tue Mar 28 06:55:54 2006 From: jorgzamb at GMAIL.COM (Jorge Zambrano) Date: Tue, 28 Mar 2006 10:55:54 -0400 Subject: aerial picture Message-ID: Hi list, Does anyone know if it's posible and how to add an aerial picture (jpg) to a mapserver app?? I have an aerial picture of the place that I have on my postgis, and I want to add it as a layer on my map file. I tried creating the relation of the image with the info in the db using georeferencer plugin from quantum gis, but it crashes when I try to generate the raster image. I'm working with ms4w 1.4.1, postgresql/postgis 8.1 and Chameleon 2.4 beta1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kenton_Williams at UMIT.MAINE.EDU Tue Mar 28 08:00:23 2006 From: Kenton_Williams at UMIT.MAINE.EDU (Kenton Williams) Date: Tue, 28 Mar 2006 11:00:23 -0500 Subject: Joining another table in a PostGIS layer for CLASS Message-ID: Hello, I have a map layer that is in a Postgresql database and was wondering if it is possible to join another database table (in the same database) to the layer and use a field in the joined table for defining CLASS values in my mapfile? Any advice on this? Thanks in advance. Kenton Williams From bpicinbono at WORLDONLINE.FR Tue Mar 28 08:07:26 2006 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Tue, 28 Mar 2006 18:07:26 +0200 Subject: aerial picture In-Reply-To: Message-ID: On Tuesday 28 March 2006 16:55, Jorge Zambrano wrote: > Hi list, Does anyone know if it's posible and how to add an aerial picture > (jpg) to a mapserver app?? I have an aerial picture of the place that I > have on my postgis, and I want to add it as a layer on my map file. I > tried creating the relation of the image with the info in the db using > georeferencer plugin from quantum gis, but it crashes when I try to > generate the raster image. > > I'm working with ms4w 1.4.1, postgresql/postgis 8.1 and Chameleon 2.4 beta1 Did you check the raster howto ? : http://mapserver.gis.umn.edu/docs/howto/raster_data It's quite easy to add any raster layer, but you will need a world file to georeference it. You will need to know the coordinates of at least 3 points on your image for that. Blaise From Kenton_Williams at UMIT.MAINE.EDU Tue Mar 28 08:32:43 2006 From: Kenton_Williams at UMIT.MAINE.EDU (Kenton Williams) Date: Tue, 28 Mar 2006 11:32:43 -0500 Subject: aerial picture In-Reply-To: Message-ID: If you're having trouble georeferencing your image, you could try some free / open software like Landserf or Hypercube. Landserf is probably the easiest (www.landserf.org) and all you'd need is three ground-units coordinate pairs for three (preferably well-distributed throughout the image) image-coordinate locations in the image for a 1st order (linear) transformation. The appropriate world file would be generated for the resulting transformed image. Is your photo a digitized aerial photograph or an ortho-corrected photo (orthophoto)? If it's not ortho-corrected, it's best to perform some sort of corrective transformation on it before using it in a mapping application. An aerial photograph is NOT a map due to displacements caused by lens distortion, terrain relief variation, and the effects of a projective lens system (non-orthographic). If the image is an orthophoto, these effects have been removed as best as possible and can be treated generally as a map. You can transform/warp a non-orthocorrected image (using Landserf or others) into place using a 2nd order (quadratic) polynomial warp, which is sufficient to adequately correct for most displacements/distortions mentioned above. The drawback to the second order polynomial warp is that you'll need at least six control points instead of three ((N+1)*(N+2)/2 control points for an N-ordered polynomial transformation). A cubic (3rd order) polynomial warp can correct many more complex distortions, but it can also introduce some rather unpleasant new ones, so I rarely use a 3rd order warp unless I have a large number of very well-distributed control points. If your image is already rectified (is an orthophoto), you should be able to just create a world file rather than transforming the image. If I'm not mistaken, that's what the QGIS georeferencer is attempting to do. You will just need to figure out the coordinates of two corners and then compute the pixel size based upon their differences along each axis. You can actually create world files in a text editor! Kenton W. From David.Fawcett at STATE.MN.US Tue Mar 28 08:47:24 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 28 Mar 2006 10:47:24 -0600 Subject: MapServer Object Diagram Message-ID: I am definitely not the right person to answer this, so I am forwarding it to the list. David. -----Original Message----- From: Bill Thayer [mailto:thayer at syrres.com] Sent: Tuesday, March 28, 2006 10:44 AM To: Fawcett, David Subject: MapServer Object Diagram Is there an object diagram for Mapserver that shows all (or most) of the methods, events and properties that are available? Best regards, William C. Thayer, PhD, PE Syracuse Research Corporation 315-452-8424 thayer at syrres.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From work at XWB.COM Tue Mar 28 09:01:52 2006 From: work at XWB.COM (Chip Taylor) Date: Tue, 28 Mar 2006 09:01:52 -0800 Subject: Converting Polygon Shapefile In-Reply-To: <3629622.post@talk.nabble.com> Message-ID: Is there an open source utility that will convert a polygon shapefile to a point shapefile, using the centroid of the polygon as the xy for the point? Chip Taylor Prepared Response, Inc From bartvde at XS4ALL.NL Tue Mar 28 09:08:02 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 28 Mar 2006 19:08:02 +0200 Subject: Converting Polygon Shapefile In-Reply-To: <024301c65289$500b1aa0$0601a8c0@DevChip> Message-ID: You could load it into PostGIS, let PostGIS calculate the centroid and export it again to shape using e.g. ogr2ogr. You probably could also write an OGR Python script doing this. Best regards, Bart Chip Taylor wrote: >Is there an open source utility that will convert a polygon shapefile to a >point shapefile, using the centroid of the polygon as the xy for the point? > >Chip Taylor >Prepared Response, Inc > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From perrygeo at GMAIL.COM Tue Mar 28 09:19:23 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Tue, 28 Mar 2006 09:19:23 -0800 Subject: Converting Polygon Shapefile In-Reply-To: <44296D72.20700@xs4all.nl> Message-ID: PostGIS would be a fairly easy way to go. Probably just two steps: $ shp2pgsql states.shp states | psql -d gisdata $ pgsql2shp -f state_centroids.shp -h localhost gisdata "SELECT centroid(the_geom) AS the_geom, FROM states" - matt On 3/28/06, Bart van den Eijnden (OSGIS) wrote: > You could load it into PostGIS, let PostGIS calculate the centroid and > export it again to shape using e.g. ogr2ogr. > > You probably could also write an OGR Python script doing this. > > Best regards, > Bart > > Chip Taylor wrote: > > >Is there an open source utility that will convert a polygon shapefile to a > >point shapefile, using the centroid of the polygon as the xy for the point? > > > >Chip Taylor > >Prepared Response, Inc > > > > > > > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From sgillies at FRII.COM Tue Mar 28 09:20:57 2006 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 28 Mar 2006 10:20:57 -0700 Subject: Converting Polygon Shapefile In-Reply-To: Message-ID: There are tutorial-ish examples of programming with ogr.py at http://zcologia.com/news/16 http://www.perrygeo.net/wordpress/?p=4 cheers, Sean On Mar 28, 2006, at 10:08 AM, Bart van den Eijnden (OSGIS) wrote: > You could load it into PostGIS, let PostGIS calculate the centroid and > export it again to shape using e.g. ogr2ogr. > > You probably could also write an OGR Python script doing this. > > Best regards, > Bart > > Chip Taylor wrote: > >> Is there an open source utility that will convert a polygon >> shapefile to a >> point shapefile, using the centroid of the polygon as the xy for >> the point? >> >> Chip Taylor >> Prepared Response, Inc >> >> >> >> > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl --- Sean Gillies http://zcologia.com From perrygeo at GMAIL.COM Tue Mar 28 10:24:06 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Tue, 28 Mar 2006 10:24:06 -0800 Subject: Joining another table in a PostGIS layer for CLASS In-Reply-To: Message-ID: Theres an example on the postgis wiki that might help: http://postgis.refractions.net/support/wiki/index.php?ExamplesJoinTables -matt On 3/28/06, Kenton Williams wrote: > Hello, > > I have a map layer that is in a Postgresql database and was wondering if it is possible to join another database table (in the same database) to the layer and use a field in the joined table for defining CLASS values in my mapfile? Any advice on > this? > > Thanks in advance. > > Kenton Williams > -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From Kenton_Williams at UMIT.MAINE.EDU Tue Mar 28 11:24:50 2006 From: Kenton_Williams at UMIT.MAINE.EDU (Kenton Williams) Date: Tue, 28 Mar 2006 14:24:50 -0500 Subject: Joining another table in a PostGIS layer for CLASS In-Reply-To: <5383fa5e0603281024g6eb3f115k37354937174af439@mail.gmail.com> Message-ID: So, am I safe in assuming that the format would be something like this in my Layer definition: CONNECTIONTYPE postgis CONNECTION "user=the_user dbname=the_db host=localhost" DATA "a.the_geom as the_geom, a.Name as town_name, b.Class FROM towns a LEFT JOIN classes b ON a.Name=b.Name" CLASSITEM "Class" And then in the Layer's Class definition: CLASS NAME "Class 2" EXPRESSION "2" COLOR 255 178 0 OUTLINECOLOR 0 0 0 END Does all of this look legal? I'll try it when I get my PostGIS database back up and running. Kenton W. From perrygeo at GMAIL.COM Tue Mar 28 11:29:57 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Tue, 28 Mar 2006 11:29:57 -0800 Subject: Joining another table in a PostGIS layer for CLASS In-Reply-To: Message-ID: Kenton, You'll have to put that query below into a sub-query in the DATA stament. Check out http://postgis.refractions.net/docs/ch04.html#id2789268 for the details. matt On 3/28/06, Kenton Williams wrote: > So, am I safe in assuming that the format would be something like this in my Layer definition: > > CONNECTIONTYPE postgis > CONNECTION "user=the_user dbname=the_db host=localhost" > DATA "a.the_geom as the_geom, a.Name as town_name, b.Class FROM towns a LEFT JOIN classes b ON a.Name=b.Name" > CLASSITEM "Class" > > And then in the Layer's Class definition: > > CLASS > NAME "Class 2" > EXPRESSION "2" > COLOR 255 178 0 > OUTLINECOLOR 0 0 0 > END > > Does all of this look legal? > > I'll try it when I get my PostGIS database back up and running. > > Kenton W. > > -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From kmenke at EDAC.UNM.EDU Tue Mar 28 10:32:22 2006 From: kmenke at EDAC.UNM.EDU (Kurt Menke) Date: Tue, 28 Mar 2006 11:32:22 -0700 Subject: difficulty running new Mapserv CGI within cgi-bin Message-ID: Hello, I have just built Mapserv from source on a new Intel data server running RedHat Enterprise Server 4, u2, i386. I built Mapserv version 4.6.2 with Proj 4.4.9 and the server is running Apache 2.0.52. Mapserv compiled correctly and from the src directory I am able to do a ./mapserv -v and get the correct version info etc (below). MapServer version 4.6.2 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=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE However when I copy this Mapserv cgi to the cgi-bin I get no response from it command line. For the time being this data server is only being used as a WMS Server for large raster datasets served out to other clients. I built a GDALTINDEX against a series of DOQQ's and set up a mapfile as a WMS Server for the GDALTINDEX. I have a Mapserv client on another server that has a layer defined as a WMS request to this GDALTINDEX. When I turn this layer on I get the following error. Traceback (most recent call last): File "/var/www/cgi-bin/rgisraster/rgisraster.py", line 74, in ? phairmap.build_map() #build all map objects; process form data File "/var/www/cgi-bin/rgisraster/mapmodule.py", line 1286, in build_map self.map_image=self.currentMap.draw() File "/usr/local/lib/python2.3/site-packages/mapscript.py", line 867, in draw def draw(*args): return _mapscript.mapObj_draw(*args) _mapscript.MapServerError: msDrawWMSLayerLow(): WMS server error. WMS GetMap request failed for layer 'DOQQ05' (Status -7: Connection failed). msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 7 (Connection failed) for http://10.16.1.28/cgi-bin/mapserv?map=doqq05/doqq05_wms.map&LAYERS=doqq05&RE QUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&STYLES=&HEIGHT=550&VE The apache log on the new data server has the following error. [Tue Mar 28 09:58:36 2006] [error] [client 10.16.1.69] /var/www/cgi-bin/mapserv: error while loading shared libraries: libproj.so.0: failed to map segment from shared object: Permission denied [Tue Mar 28 09:58:36 2006] [error] [client 10.16.1.69] Premature end of script headers: mapserv The path to the libproj.so.0 has been set in the ld.so.conf file and the file is in the correct directory. If I try a GetCapabilities on the GDALTINDEX layer I just get a 500 Internal Server Error. Does anyone have any ideas on why the mapserv cgi could be responding this way in the cgi-bin? Thanks. ************************************* Kurt A. Menke, GISP GIS Analyst/Programmer Earth Data Analysis Center MSC01 1110 1 University of New Mexico Albuquerque, NM 87131-0001 Ph: 505-277-3622 x239 Fax: 505-277-3614 -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Tue Mar 28 12:16:37 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 28 Mar 2006 15:16:37 -0500 Subject: difficulty running new Mapserv CGI within cgi-bin In-Reply-To: <008901c65295$f43979d0$4501100a@tybalt> Message-ID: Kurt Menke wrote: > Hello, > > I have just built Mapserv from source on a new Intel data server running > RedHat Enterprise Server 4, u2, i386. I built Mapserv version 4.6.2 > with Proj 4.4.9 and the server is running Apache 2.0.52. > > > > Mapserv compiled correctly and from the src directory I am able to do a > ./mapserv ?v and get the correct version info etc (below). > > > > MapServer version 4.6.2 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=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > > > However when I copy this Mapserv cgi to the cgi-bin I get no response > from it command line. For the time being this data server is only being > used as a WMS Server for large raster datasets served out to other clients. Kurt, Are you saying that after copying mapserv to the cgi-bin directory, if you try to invoke that version with the -v flag you don't even get the version information? No messages about missing shared libraries? Nothing? If that is the case, the rest of the configuration info doesn't matter, and it would seem likely you are picking up a bad library version or something like that. 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 OSGF, http://osgeo.org From work at XWB.COM Tue Mar 28 14:17:04 2006 From: work at XWB.COM (Chip Taylor) Date: Tue, 28 Mar 2006 14:17:04 -0800 Subject: Specifying a symbol in a database In-Reply-To: Message-ID: I am drawing a layer from a SQL Server connection using OGR and it works great (thanks for the help, Joost!). Now, I need to know if I can specify the symbol name used for each point from the database by embedding the symbol name in a column in the table. My guess is that I can't, that I would need a class for each symbol type and use an expression to determine which one to display. Is that the only way? Chip Taylor Prepared Response, Inc From mhoward at AKIMEKA.COM Tue Mar 28 16:10:21 2006 From: mhoward at AKIMEKA.COM (Mark Howard) Date: Tue, 28 Mar 2006 14:10:21 -1000 Subject: Using a web image as a map layer Message-ID: Anybody know how to use an image off the web as a map layer? I'm thinking of an image that's updated periodically - such as: http://www.intellicast.com/WeatherImg/Satellite/world.gif Ideas? (simple ideas?) TIA!! Mark From mhoward at AKIMEKA.COM Tue Mar 28 16:07:03 2006 From: mhoward at AKIMEKA.COM (Mark Howard) Date: Tue, 28 Mar 2006 14:07:03 -1000 Subject: Converting messages to GIS Data Message-ID: I have a quick little project that requires that I convert incoming messages (arbitrary text format with LL's) into spatial data. Pretty easy to do - listen to a port - grab the message - stuff it into a database (jdbc). Use an OGR ODBC connection to serve up the stuff to mapserve. If anyone's done this in java you could save me some time if you would be willing to share your code. Another option is to put the data in a SDE database using the ESRI java library calls. Anyone like to help? TIA!!!!!! Mark JMEWS II/Medical Situational Awareness (MSA) Akimeka, LLC 1305 North Holopono Street, Suite # 3 Kihei, HI 96753 (808) 442-7137 mhoward at akimeka.com From Antti.Roppola at BRS.GOV.AU Tue Mar 28 16:53:46 2006 From: Antti.Roppola at BRS.GOV.AU (Antti Roppola) Date: Wed, 29 Mar 2006 11:53:46 +1100 Subject: [UNCLASSIFIED]RE: [UMN_MAPSERVER-USERS] Using a web image as a ma p layer Message-ID: I did this once by creating a world file to georeference the image, It was quite a while ago but I recall it was pretty straight forward. For your example, your GDAL build will need to support GIF or you will need to convert the image to a supported format first. Antti -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mark Howard Sent: Wednesday, 29 March 2006 11:10 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Using a web image as a map layer Anybody know how to use an image off the web as a map layer? I'm thinking of an image that's updated periodically - such as: http://www.intellicast.com/WeatherImg/Satellite/world.gif Ideas? (simple ideas?) TIA!! Mark ---------------------------------------------------------------------- IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF ---------------------------------------------------------------------- From vaz.luiz at GMAIL.COM Tue Mar 28 16:59:08 2006 From: vaz.luiz at GMAIL.COM (Luiz Vaz) Date: Tue, 28 Mar 2006 21:59:08 -0300 Subject: Crispy Lines Message-ID: Hi all, I?ve been successfully converted vmap0 data from VPF to shapefiles. After tests on the mapfile, i noted that boundary lines are very crispy and no matter what i do, they don?t look well... In very curvy places the dash don?t obey the gap. In other hand, solid line is vertically very thin... I tried the cartoline, but was worse than ellipse! I?m using PNG rather than JPG. But had the impression that I'm missing something... Below are my Symbol's and Layer's: # Simple solid line symbol SYMBOL NAME "solid" TYPE ELLIPSE POINTS 1 1 END FILLED true STYLE 1 0 END LINEJOINMAXSIZE 1 LINEJOIN round LINECAP round END # Simple dashed line symbol SYMBOL NAME 'dashed' TYPE ELLIPSE POINTS 1 1 END FILLED true STYLE 12 5 END LINEJOINMAXSIZE 1 LINEJOIN round LINECAP round END # Country Borders LAYER NAME "countries" DATA polbndl STATUS DEFAULT TYPE LINE CLASS NAME "Country" EXPRESSION ([use] = 23) SYMBOL 'solid' # Thick gray background COLOR 128 128 123 SIZE 3 END PROJECTION "proj=latlong" "datum=NAD83" END END # State borders LAYER NAME "states" DATA polbndl STATUS DEFAULT TYPE LINE #MAXSCALE 500000 TRANSPARENCY 70 CLASS NAME "States" EXPRESSION ([use] = 26) SYMBOL 'dashed' # Thick gray background COLOR 128 128 123 SIZE 2 END PROJECTION "proj=latlong" "datum=NAD83" END END Best Regards, Luiz Vaz -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: rounded.png Type: image/png Size: 2564 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: crispy.png Type: image/png Size: 3758 bytes Desc: not available URL: From kevinc at UPTIMEDATA.COM Tue Mar 28 17:19:25 2006 From: kevinc at UPTIMEDATA.COM (KevinC (UD)) Date: Tue, 28 Mar 2006 19:19:25 -0600 Subject: Following Bill Kropla's "Beginning Mapserver" Message-ID: Hello, list. I'm a newbie trying to stringently follow Bill Kropla's instructions on compiling MapServer in his recent book "Beginning MapServer - Open Source GIS Development". My OS is Clark Connect 3.2, a Red Hat distro with a totally standard directory structure. The strategy is to compile libraries step-by-step through each dependency, starting with zlib and proceeding to shapelib, then finally MapServer itself. All of the libraries appear to compile into usr/local/lib as they should. Then disaster: when I compile shapelib I get an error message that it cannot find Proj4, one of its dependencies. But Proj4 is indeed there. Does this suggest anything to anyone? Mucho thanks in advance. Kevin Carpenter UptimeData.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From vaz.luiz at GMAIL.COM Tue Mar 28 17:47:26 2006 From: vaz.luiz at GMAIL.COM (Luiz Vaz) Date: Tue, 28 Mar 2006 22:47:26 -0300 Subject: Crispy Lines In-Reply-To: Message-ID: Hi all, I?ve been successfully converted vmap0 data from VPF to shapefiles. After tests on the mapfile, i noted that boundary lines are very crispy and no matter what i do, they don?t look well... In very curvy places the dash don?t obey the gap. In other hand, solid line is vertically very thin... I tried the cartoline, but was worse than ellipse! I?m using PNG rather than JPG, samples images can be found here: Crispy one: http://img77.imageshack.us/my.php?image=crispy8ik.png Rounded one: http://img77.imageshack.us/my.php?image=rounded3hy.png Had the impression that I'm missing something... Below are my Symbol's and Layer's: # Simple solid line symbol SYMBOL NAME "solid" TYPE ELLIPSE POINTS 1 1 END FILLED true STYLE 1 0 END LINEJOINMAXSIZE 1 LINEJOIN round LINECAP round END # Simple dashed line symbol SYMBOL NAME 'dashed' TYPE ELLIPSE POINTS 1 1 END FILLED true STYLE 12 5 END LINEJOINMAXSIZE 1 LINEJOIN round LINECAP round END # Country Borders LAYER NAME "countries" DATA polbndl STATUS DEFAULT TYPE LINE CLASS NAME "Country" EXPRESSION ([use] = 23) SYMBOL 'solid' # Thick gray background COLOR 128 128 123 SIZE 3 END PROJECTION "proj=latlong" "datum=NAD83" END END # State borders LAYER NAME "states" DATA polbndl STATUS DEFAULT TYPE LINE #MAXSCALE 500000 TRANSPARENCY 70 CLASS NAME "States" EXPRESSION ([use] = 26) SYMBOL 'dashed' # Thick gray background COLOR 128 128 123 SIZE 2 END PROJECTION "proj=latlong" "datum=NAD83" END END Best Regards, Luiz Vaz -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Tue Mar 28 18:06:15 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 28 Mar 2006 21:06:15 -0500 Subject: Following Bill Kropla's "Beginning Mapserver" In-Reply-To: <003601c652ce$da612ce0$6701a8c0@vio3> Message-ID: KevinC (UD) wrote: > Hello, list. > > I'm a newbie trying to stringently follow Bill Kropla's instructions on > compiling MapServer in his recent book "Beginning MapServer - Open > Source GIS Development". My OS is Clark Connect 3.2, a Red Hat distro > with a totally standard directory structure. > > The strategy is to compile libraries step-by-step through each > dependency, starting with zlib and proceeding to shapelib, then finally > MapServer itself. > > All of the libraries appear to compile into usr/local/lib as they > should. Then disaster: when I compile shapelib I get an error message > that it cannot find Proj4, one of its dependencies. But Proj4 is indeed > there. Kevin, Well, first, you don't really need Shapelib. A modified copy of the Shapelib code is already embedded in MapServer and GDAL/OGR. But if you want it anyways, try editing contrib/Makefile in Shapelib, and changing the GEOOBJ from: GEOOBJ = ./shpgeo.o -lm -lproj To: GEOOBJ = ./shpgeo.o -lm -L/usr/local/lib -lproj 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 OSGF, http://osgeo.org From vaz.luiz at GMAIL.COM Tue Mar 28 19:17:44 2006 From: vaz.luiz at GMAIL.COM (Luiz Vaz) Date: Wed, 29 Mar 2006 00:17:44 -0300 Subject: Crispy Lines In-Reply-To: Message-ID: Hi all, I?ve been successfully converted vmap0 data from VPF to shapefiles. After tests on mapfile, i noted that boundary lines are very crispy. No matter what i do, they don?t look well... In very curvy places the dash don?t obey the gap. In other hand, solid line is vertically very thin... I tried the cartoline, but was worse than ellipse! I?m using PNG rather than JPG. But had the impression that I'm missing something... Crispy one: http://img77.imageshack.us/my.php?image=crispy8ik.png Rounded one: http://img77.imageshack.us/my.php?image=rounded3hy.png Below are my Symbol's and Layer's: # Simple solid line symbol SYMBOL NAME "solid" TYPE ELLIPSE POINTS 1 1 END FILLED true STYLE 1 0 END END # Simple dashed line symbol SYMBOL NAME 'dashed' TYPE ELLIPSE POINTS 1 1 END FILLED true STYLE 12 5 END END # Country Borders LAYER NAME "countries" DATA polbndl STATUS DEFAULT TYPE LINE CLASS NAME "Country" EXPRESSION ([use] = 23) SYMBOL 'solid' # Thick gray background COLOR 128 128 123 SIZE 3 END PROJECTION "proj=latlong" "datum=NAD83" END END # State borders LAYER NAME "states" DATA polbndl STATUS DEFAULT TYPE LINE #MAXSCALE 500000 TRANSPARENCY 70 CLASS NAME "States" EXPRESSION ([use] = 26) SYMBOL 'dashed' # Thick gray background COLOR 128 128 123 SIZE 2 END PROJECTION "proj=latlong" "datum=NAD83" END END Best Regards, Luiz Vaz -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Tue Mar 28 20:27:25 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 29 Mar 2006 07:27:25 +0300 Subject: [UNCLASSIFIED]RE: [UMN_MAPSERVER-USERS] Using a web image as a ma p layer Message-ID: Hi, You can check this article: http://www.xml.com/pub/a/2005/08/10/ka-map.html -Jukka- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Antti Roppola L?hetetty: ke 29.3.2006 3:53 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] [UNCLASSIFIED]RE: [UMN_MAPSERVER-USERS] Using a web image as a ma p layer I did this once by creating a world file to georeference the image, It was quite a while ago but I recall it was pretty straight forward. For your example, your GDAL build will need to support GIF or you will need to convert the image to a supported format first. Antti -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mark Howard Sent: Wednesday, 29 March 2006 11:10 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Using a web image as a map layer Anybody know how to use an image off the web as a map layer? I'm thinking of an image that's updated periodically - such as: http://www.intellicast.com/WeatherImg/Satellite/world.gif Ideas? (simple ideas?) TIA!! Mark ---------------------------------------------------------------------- IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF ---------------------------------------------------------------------- From kevinc at UPTIMEDATA.COM Tue Mar 28 20:45:51 2006 From: kevinc at UPTIMEDATA.COM (KevinC (UD)) Date: Tue, 28 Mar 2006 22:45:51 -0600 Subject: no joy: Bill Kropla's "Beginning Mapserver" Message-ID: Luis, Bill sez in his book "The shapelib build isn't configuration based". When I try your suggestion I get: # ./configure --with-proj=/usr/local/lib ./configure: No such file or directory This is not unexpected. *********************************************************************************** Frank Warmerdam, I made the changes as prescribed to shapelib-1.2.10/contrib/Makefile but no success. Bill Kropla instructs me to switch to tests/ , but I think he means contrib/ , then [root at ud5 contrib]# make check tests/shpproj.sh rm: cannot remove `test*': No such file or directory ../shpproj: error while loading shared libraries: libproj.so.0: cannot open shared object file: No such file or directory ../shpproj: error while loading shared libraries: libproj.so.0: cannot open shared object file: No such file or directory ../shpproj: error while loading shared libraries: libproj.so.0: cannot open shared object file: No such file or directory failure... So again ,the build cannot find Proj4 libraries. Kevin Carpenter UptimeData.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Tue Mar 28 21:12:11 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 29 Mar 2006 00:12:11 -0500 Subject: no joy: Bill Kropla's "Beginning Mapserver" In-Reply-To: <000801c652eb$abd08700$6701a8c0@vio3> Message-ID: KevinC (UD) wrote: > Luis, Bill sez in his book "The shapelib build isn't configuration > based". When I try your suggestion I get: > > > # ./configure --with-proj=/usr/local/lib > > ./configure: No such file or directory > > > > This is not unexpected. > > > > *********************************************************************************** > > Frank Warmerdam, I made the changes as prescribed to > shapelib-1.2.10/contrib/Makefile > > but no success. > > > > Bill Kropla instructs me to switch to tests/ , but I think he means > contrib/ , then > > > > [root at ud5 contrib]# make check > > tests/shpproj.sh > > rm: cannot remove `test*': No such file or directory > > ../shpproj: error while loading shared libraries: libproj.so.0: cannot > open shared object file: No such file or directory > > ../shpproj: error while loading shared libraries: libproj.so.0: cannot > open shared object file: No such file or directory > > ../shpproj: error while loading shared libraries: libproj.so.0: cannot > open shared object file: No such file or directory > > failure... > > > > So again ,the build cannot find Proj4 libraries. Kevin, With respect in this case the executable is not finding libproj.so at *runtime*, not build time. A completely different animal. You likely need to set the LD_LIBRARY_PATH environment variable to point to (or include) /usr/local/lib, or fiddle with /etc/ld.conf to include that directory and then re-run ldconfig. Please disregard any impoliteness or bad spelling in the above. I'm most of the way through a bottle of my mother-in-laws homemade wine. 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 OSGF, http://osgeo.org From bartvde at XS4ALL.NL Tue Mar 28 22:43:52 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 29 Mar 2006 08:43:52 +0200 Subject: [postgis] FATAL: Sorry, too many clients already Message-ID: Hi list, when using PHP/Mapscript as an Apache module (PHP 5.0.4) it seems there is a problem with properly closing PostGIS connections. We are using the connection pooling (close connection DEFER), and Mapscript 4.6.1. Is there a known issue with Mapscript not properly closing PostGIS connections in 4.6.1? Should we upgrade to 4.8.X and will it be fixed? Best regards, Bart From tealorama at GMAIL.COM Tue Mar 28 23:05:49 2006 From: tealorama at GMAIL.COM (=?ISO-8859-1?Q?Tero_Al=E9n?=) Date: Wed, 29 Mar 2006 10:05:49 +0300 Subject: Street names aren't shown Message-ID: Hello I have tried show street names on our map using angle auto definition and my problem is that the layer won't show. All other layers works perfectly, but street names won't show. Street names are on MapInfo file and I think ogrinfo shows the file properly (part of the output is at end of message - rest of output looks same and no errors). I guess the problem is on my map-file, but for me it looks good. Maybe somebody can help me? -Tero map-file layer definition: LAYER NAME test TYPE LINE STATUS ON CONNECTIONTYPE OGR CONNECTION "data/vector/Katunimet_viivat_nimet.TAB" LABELITEM "Teksti" TRANSFORM OFF CLASS NAME "Katunimet_viivat_nimet" TEMPLATE "foo" COLOR 255 0 0 LABEL TYPE TRUETYPE ANTIALIAS TRUE FONT FreeSans COLOR 0 0 0 OUTLINECOLOR 220 220 220 SIZE 11 ANGLE AUTO POSITION UC OFFSET 0 2 buffer 2 END #label END #class END # Layer test ends ogrinfo output (partial): Had to open data source read-only. INFO: Open of `Katunimet_viivat_nimet.TAB' using driver `MapInfo File' successful. Layer name: Katunimet_viivat_nimet Geometry: Line String Feature Count: 629 Extent: (32989.839419, 75140.700172) - (40614.080219, 79934.176527) Layer SRS WKT: PROJCS["unnamed", GEOGCS["unnamed", DATUM["European_Datum_1950", SPHEROID["International 1924",6378388,297], TOWGS84[-87,-98,-121,-0,-0,-0,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], PROJECTION["Transverse_Mercator_MapInfo_24"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",24], PARAMETER["scale_factor",1], PARAMETER["false_easting",-1.6], PARAMETER["false_northing",-6599998.7], UNIT["Meter",1.0]] ID: Integer (0.0) Laji: Integer (0.0) Lajin_selitys: String (30.0) Z1: Real (0.0) Z2: Real (0.0) Teksti: String (30.0) OGRFeature(Katunimet_viivat_nimet):1 ID (Integer) = 1 Laji (Integer) = 0 Lajin_selitys (String) = Z1 (Real) = 0 Z2 (Real) = 0 enpolku Style = PEN(w:3px,c:#ff0000,id:"mapinfo-pen-2.ogr-pen-0") LINESTRING (40265.910588528066 79858.487010750031914,40351.186863225280831 79920.804184913475183) OGRFeature(Katunimet_viivat_nimet):2 ID (Integer) = 2 Laji (Integer) = 0 Lajin_selitys (String) = Z1 (Real) = 0 Z2 (Real) = 0 Teksti (String) = Kahakuja Style = PEN(w:3px,c:#ff0000,id:"mapinfo-pen-2.ogr-pen-0") LINESTRING (39775.570305631983501 79868.326240636495641,39826.408155332894239 79891.285127554627252) OGRFeature(Katunimet_viivat_nimet):3 ID (Integer) = 45 Laji (Integer) = 0 Lajin_selitys (String) = Z1 (Real) = 0 Z2 (Real) = 0 Teksti (String) = Kuusiniemi Style = PEN(w:3px,c:#ff0000,id:"mapinfo-pen-2.ogr-pen-0") LINESTRING (40323.308443964415346 79491.141742735941079,40380.705775281661772 79512.460758006345714) OGRFeature(Katunimet_viivat_nimet):4 ID (Integer) = 44 Laji (Integer) = 0 Lajin_selitys (String) = Z1 (Real) = 0 Z2 (Real) = 0 Teksti (String) = Kuusiniemi Style = PEN(w:3px,c:#ff0000,id:"mapinfo-pen-2.ogr-pen-0") LINESTRING (40452.862824686657405 79468.182684855375555,40454.502793363069941 79532.139901629008818) --------------8<--- Clip---8<--------------------------------------------------------------- ---------------- From robert-fritz at WEB.DE Wed Mar 29 00:08:31 2006 From: robert-fritz at WEB.DE (robert fritz) Date: Wed, 29 Mar 2006 10:08:31 +0200 Subject: WMS - no image Message-ID: Hello, I have a mapscript application running locally on my desktop pc (win xp, iis, php_mapscript45) and I use some external WMS servers without any problems. I transferred the procject on one of our servers (win 2000, iis) and everything works fine but I do not receive any data from the wms-servers now. I get empty files (e.g. 114346929815880.img.tmp) only, no error messages. Any ideas? Robert ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Mar 29 01:06:02 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Wed, 29 Mar 2006 11:06:02 +0200 Subject: WMS - no image Message-ID: Could it be that you need to go through a proxy from your server? If so, have a look at the curl environment variable called http_proxy. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens robert fritz Verzonden: woensdag 29 maart 2006 10:09 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] WMS - no image Hello, I have a mapscript application running locally on my desktop pc (win xp, iis, php_mapscript45) and I use some external WMS servers without any problems. I transferred the procject on one of our servers (win 2000, iis) and everything works fine but I do not receive any data from the wms-servers now. I get empty files (e.g. 114346929815880.img.tmp) only, no error messages. Any ideas? Robert ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From laura.diaz at IVER.ES Wed Mar 29 00:33:54 2006 From: laura.diaz at IVER.ES (=?ISO-8859-1?Q?Laura_D=EDaz?=) Date: Wed, 29 Mar 2006 10:33:54 +0200 Subject: GetFeatureInfo reponse Message-ID: Hi, i am trying to find out if i could change the GML version i get back in a GetFeatureInfo response using Mapserver 4.6.1. I?ve seen you can specify GML2 or GML3 in the case of a GetFeature request. Is it possible to do the same when requesting GetFeatureInfo? and if so, can i set the GML profile as well? thanks in advance, Laura -------------- next part -------------- An HTML attachment was scrubbed... URL: From crane_ba at YAHOO.COM Wed Mar 29 01:51:36 2006 From: crane_ba at YAHOO.COM (Ben Crane) Date: Wed, 29 Mar 2006 01:51:36 -0800 Subject: Ka-map problems with Mapserver Message-ID: Hi all, I have some more problems running ka-map non mapserver. I have installed ka-map under ms4w/apache/ and tried to get the index.html file running so I've setup a web alias (using the hardcoded path to ka-map directory where the index.html file is stored) but still no joy. At this moment, I'm just trying to get ka-map running from within ms4w. Mapserver registers that ka-map is installed but I'm wondering if I've installed it under the wrong path? Can anyone tell me their default setup location for k-map on win xp using apache2? All the documentation on it says .../ka-map0.0.1 and I'm not sure I can unpack it anywhere under ms4w/apache or whether it needs to go in the apache/apps folder. Ben __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From crane_ba at YAHOO.COM Wed Mar 29 01:54:33 2006 From: crane_ba at YAHOO.COM (Ben Crane) Date: Wed, 29 Mar 2006 01:54:33 -0800 Subject: SVG not being created in Mapserver Message-ID: Hi all, On a similar vein, I have tried to set up a map file to convert shapefiles to svg. It appears to work and creates a SVG file under the temp folder, but the SVG file contains no information other than the standard header. My mime.types in apache/conf has svg-xml set; the shapefile isn't corrupted at all. The map file appears to be in order. It doesn't create any errors when mapserver tries to render it, it just creates a blank SVG canvas. I have double-checked that the path of the shapefile is correct in the map file... Any ideas? Unfortunately I do not have the map file with me to post. Ben __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From toni at SIGTE.UDG.ES Wed Mar 29 03:02:40 2006 From: toni at SIGTE.UDG.ES (=?ISO-8859-1?Q?toni_hern=E1ndez?=) Date: Wed, 29 Mar 2006 13:02:40 +0200 Subject: WFS GETFEATRUE COMPRESS GML Message-ID: HI, Is it possible to configure a wfs layer to be dumped in a compress gml format? From bartvde at XS4ALL.NL Wed Mar 29 03:09:55 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 29 Mar 2006 13:09:55 +0200 Subject: WFS GETFEATRUE COMPRESS GML In-Reply-To: <442A6950.8000701@sigte.udg.es> Message-ID: No, but ofcourse you could have Apache gzip the content for you (mod_deflate). Best regards, Bart > HI, > > Is it possible to configure a wfs layer to be dumped in a compress gml > format? > From gur.hanan at PGL.CO.IL Wed Mar 29 03:37:00 2006 From: gur.hanan at PGL.CO.IL (Gur Hanan) Date: Wed, 29 Mar 2006 13:37:00 +0200 Subject: problem with running the MS Demo Message-ID: Hi, I am a new user, and I am trying to run the demo without any success. I run the MS over Win32 platform. I follow the instruction of installing MS for windows, and now I am trying to run the demo. The MS install in: C:\ The Demo install in:C:\MS4W\workshop The cgi-bin is in:C:\ms4w\Apache\cgi-bin and there ther are some execute file: mapserv.exe, mapserv_46.exe, mapserv_48.exe I do the following changes in the index.html (marked in red): ...

..... Now I opened the index.html, and When I pressed the "Initialize" button, the address in the URL is "C:\Apache\cgi-bin\mapserv_48", and i got the message: "The page cannot be displayed". What did I do wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From w.blanken at GEON.NL Wed Mar 29 04:34:10 2006 From: w.blanken at GEON.NL (Wim Blanken) Date: Wed, 29 Mar 2006 14:34:10 +0200 Subject: problem with running the MS Demo Message-ID: Hello Gur, You are working on windows. Therefore you have to point the action url to mapserv_48.exe (and not to mapserv_48). (mind the .exe) Regards. Wim Blanken ----- Original Message ----- From: Gur Hanan To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, March 29, 2006 1:37 PM Subject: [UMN_MAPSERVER-USERS] problem with running the MS Demo Hi, I am a new user, and I am trying to run the demo without any success. I run the MS over Win32 platform. I follow the instruction of installing MS for windows, and now I am trying to run the demo. The MS install in: C:\ The Demo install in:C:\MS4W\workshop The cgi-bin is in:C:\ms4w\Apache\cgi-bin and there ther are some execute file: mapserv.exe, mapserv_46.exe, mapserv_48.exe I do the following changes in the index.html (marked in red): ... ..... Now I opened the index.html, and When I pressed the "Initialize" button, the address in the URL is "C:\Apache\cgi-bin\mapserv_48", and i got the message: "The page cannot be displayed". What did I do wrong? ------------------------------------------------------------------------------ No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.3.3/295 - Release Date: 3/28/2006 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Wed Mar 29 05:34:18 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 29 Mar 2006 08:34:18 -0500 Subject: problem with running the MS Demo In-Reply-To: Message-ID: The plans are to add a MS Demo package for MS4W - which will avoid these configuration issues for MS4W users in the future. http://bugzilla.maptools.org/show_bug.cgi?id=1383 jeff Gur Hanan wrote: > Hi, > I am a new user, and I am trying to run the demo without any success. > I run the MS over Win32 platform. > I follow the instruction of installing MS for windows, and now I am > trying to run the demo. > > The MS install in: C:\ > The Demo install in:C:\MS4W\workshop > The cgi-bin is in:C:\ms4w\Apache\cgi-bin and there ther are some > execute file: mapserv.exe, mapserv_46.exe, mapserv_48.exe > > I do the following changes in the index.html (marked in red): > > ... > > > > onSubmit="submit_form()"> > > > > > > > > > > > > > > > > > > > > > > ..... > > > > Now I opened the index.html, and When I pressed the "Initialize" button, > the address in the URL is "C:\Apache\cgi-bin\mapserv_48", > > and i got the message: "The page cannot be displayed". > > What did I do wrong? > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Mar 29 06:10:10 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Wed, 29 Mar 2006 16:10:10 +0200 Subject: tileindex: sequence of attributes in individual shapefiles matter s Message-ID: Hi list, today we encountered that the sequence of attributes of the individual shapefiles which were used in a tile-index are important. In 3 out of 4 shapefiles the CLASSITEM column was the 3rd column, but in the 4th shapefile it was the 4th column, so that one did not show up in the map .... Apparently Mapserver fetches attribute values based on a column index? Would it be better to fetch by name? Otherwise I think this requirement should be documented somewhere. Best regards, Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From jmckenna at DMSOLUTIONS.CA Wed Mar 29 06:32:20 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 29 Mar 2006 09:32:20 -0500 Subject: tileindex: sequence of attributes in individual shapefiles matter s In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B2405F97A47@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: and no error was thrown when generating the index? I swear I've hit this same problem when one dbf had a different field, and an error was displayed. jeff Eijnden, B. van den (Bart) wrote: > Hi list, > > today we encountered that the sequence of attributes of the individual > shapefiles which were used in a tile-index are important. In 3 out of 4 > shapefiles the CLASSITEM column was the 3rd column, but in the 4th shapefile > it was the 4th column, so that one did not show up in the map .... > > Apparently Mapserver fetches attribute values based on a column index? Would > it be better to fetch by name? Otherwise I think this requirement should be > documented somewhere. > > Best regards, > Bart > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From hgirard at CGQ.QC.CA Wed Mar 29 07:20:25 2006 From: hgirard at CGQ.QC.CA (Hugo Girard) Date: Wed, 29 Mar 2006 10:20:25 -0500 Subject: Really strange!!! Message-ID: Hi all, i published my mapserver application on the web. When i use it some event provoke some error like : when i zoom my reference disappear and the zoom is block to "Zoom out 10", and i pan the map, all the screen disappear. This error didnt appear always. When i use my application on localhost no error appear. I very confused !!!! please help me. Here the link to my application and test it. !!! http://www.cgq.qc.ca/cgi-bin/mapserv.exe?map=C:\Inetpub\wwwroot\randonneurs\map\main.map&mode=browse&layer=Hydro_poly&layer=Sentier_line&layer=NomMunicipalite&layer=Routes&layer=SentiersLoc Im very sorry for my english !!! Thanks Hugo Girard hgirard at cgq.qc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Wed Mar 29 07:33:05 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 29 Mar 2006 10:33:05 -0500 Subject: tileindex: sequence of attributes in individual shapefiles matter s In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B2405F97A47@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: Hi Bart, It does fetch by name from the first file that is opened but then remembers the indexes. If you use tile4ms, this now checks for these kinds of errors and trows and error. Mapserver can open 10 of thousands of files when drawing a layer and this would add a lot of additional overhead to fetch the column numbers based on names for every file. I know it is a pain, but your should fix the data. It would not be hard to write a little perl script to read the dbf file and reorder the attributes. -Steve W Eijnden, B. van den (Bart) wrote: > Hi list, > > today we encountered that the sequence of attributes of the individual > shapefiles which were used in a tile-index are important. In 3 out of 4 > shapefiles the CLASSITEM column was the 3rd column, but in the 4th shapefile > it was the 4th column, so that one did not show up in the map .... > > Apparently Mapserver fetches attribute values based on a column index? Would > it be better to fetch by name? Otherwise I think this requirement should be > documented somewhere. > > Best regards, > Bart > > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ************************************************************************ > From bartvde at XS4ALL.NL Wed Mar 29 07:53:30 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 29 Mar 2006 17:53:30 +0200 Subject: tileindex: sequence of attributes in individual shapefiles matter s In-Reply-To: <442A9A74.5070106@dmsolutions.ca> Message-ID: Hi Jeff, no error using ogrtindex, but it's not that there is a different field, it's just the sequence of fields which differs. Best regards, Bart Jeff McKenna wrote: > and no error was thrown when generating the index? I swear I've hit > this same problem when one dbf had a different field, and an error was > displayed. > > jeff > > > > Eijnden, B. van den (Bart) wrote: > >> Hi list, >> >> today we encountered that the sequence of attributes of the individual >> shapefiles which were used in a tile-index are important. In 3 out of 4 >> shapefiles the CLASSITEM column was the 3rd column, but in the 4th >> shapefile >> it was the 4th column, so that one did not show up in the map .... >> >> Apparently Mapserver fetches attribute values based on a column >> index? Would >> it be better to fetch by name? Otherwise I think this requirement >> should be >> documented somewhere. >> >> Best regards, >> Bart >> > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From bartvde at XS4ALL.NL Wed Mar 29 07:55:15 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 29 Mar 2006 17:55:15 +0200 Subject: tileindex: sequence of attributes in individual shapefiles matter s In-Reply-To: <442AA8B1.9020207@swoodbridge.com> Message-ID: Hi Steve, okay, good to know tile4ms checks for this sort of thing, ogrtindex doesn't throw errors ... Best regards, Bart Stephen Woodbridge wrote: > Hi Bart, > > It does fetch by name from the first file that is opened but then > remembers the indexes. If you use tile4ms, this now checks for these > kinds of errors and trows and error. Mapserver can open 10 of > thousands of files when drawing a layer and this would add a lot of > additional overhead to fetch the column numbers based on names for > every file. > > I know it is a pain, but your should fix the data. It would not be > hard to write a little perl script to read the dbf file and reorder > the attributes. > > -Steve W > > Eijnden, B. van den (Bart) wrote: > >> Hi list, >> >> today we encountered that the sequence of attributes of the individual >> shapefiles which were used in a tile-index are important. In 3 out of 4 >> shapefiles the CLASSITEM column was the 3rd column, but in the 4th >> shapefile >> it was the 4th column, so that one did not show up in the map .... >> >> Apparently Mapserver fetches attribute values based on a column >> index? Would >> it be better to fetch by name? Otherwise I think this requirement >> should be >> documented somewhere. >> >> Best regards, >> Bart >> >> >> Disclaimer >> ************************************************************************ >> Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >> uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis >> hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te >> informeren. Wij adviseren u om bij twijfel over de juistheid of de >> volledigheid van de mail contact met afzender op te nemen. >> >> This message shall not constitute any rights or obligations. >> This message is intended solely for the addressee. >> If you have received this message in error, please delete it and >> notify the sender immediately. When in doubt whether this message >> is correct or complete, please contact the sender. >> ************************************************************************ >> > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From woodbri at SWOODBRIDGE.COM Wed Mar 29 09:11:00 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 29 Mar 2006 12:11:00 -0500 Subject: tileindex: sequence of attributes in individual shapefiles matter s In-Reply-To: <442AADE3.3080204@xs4all.nl> Message-ID: Bart, Can I suggest you write a bug against ogrtindex as this is a requirement for mapserver to function and it save a lot of headaches to catch it early on. -Steve W. Bart van den Eijnden (OSGIS) wrote: > Hi Steve, > > okay, good to know tile4ms checks for this sort of thing, ogrtindex > doesn't throw errors ... > > Best regards, > Bart > > Stephen Woodbridge wrote: > >> Hi Bart, >> >> It does fetch by name from the first file that is opened but then >> remembers the indexes. If you use tile4ms, this now checks for these >> kinds of errors and trows and error. Mapserver can open 10 of >> thousands of files when drawing a layer and this would add a lot of >> additional overhead to fetch the column numbers based on names for >> every file. >> >> I know it is a pain, but your should fix the data. It would not be >> hard to write a little perl script to read the dbf file and reorder >> the attributes. >> >> -Steve W >> >> Eijnden, B. van den (Bart) wrote: >> >>> Hi list, >>> >>> today we encountered that the sequence of attributes of the individual >>> shapefiles which were used in a tile-index are important. In 3 out of 4 >>> shapefiles the CLASSITEM column was the 3rd column, but in the 4th >>> shapefile >>> it was the 4th column, so that one did not show up in the map .... >>> >>> Apparently Mapserver fetches attribute values based on a column >>> index? Would >>> it be better to fetch by name? Otherwise I think this requirement >>> should be >>> documented somewhere. >>> >>> Best regards, >>> Bart >>> >>> >>> Disclaimer >>> ************************************************************************ >>> Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >>> uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis >>> hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te >>> informeren. Wij adviseren u om bij twijfel over de juistheid of de >>> volledigheid van de mail contact met afzender op te nemen. >>> >>> This message shall not constitute any rights or obligations. >>> This message is intended solely for the addressee. >>> If you have received this message in error, please delete it and >>> notify the sender immediately. When in doubt whether this message >>> is correct or complete, please contact the sender. >>> ************************************************************************ >>> >> >> > > From bartvde at XS4ALL.NL Wed Mar 29 09:13:48 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 29 Mar 2006 19:13:48 +0200 Subject: tileindex: sequence of attributes in individual shapefiles matter s In-Reply-To: <442ABFA4.9000104@swoodbridge.com> Message-ID: Good suggestion, done: http://bugzilla.remotesensing.org/show_bug.cgi?id=1144 Best regards, Bart Stephen Woodbridge wrote: > Bart, > > Can I suggest you write a bug against ogrtindex as this is a > requirement for mapserver to function and it save a lot of headaches > to catch it early on. > > -Steve W. > > Bart van den Eijnden (OSGIS) wrote: > >> Hi Steve, >> >> okay, good to know tile4ms checks for this sort of thing, ogrtindex >> doesn't throw errors ... >> >> Best regards, >> Bart >> >> Stephen Woodbridge wrote: >> >>> Hi Bart, >>> >>> It does fetch by name from the first file that is opened but then >>> remembers the indexes. If you use tile4ms, this now checks for these >>> kinds of errors and trows and error. Mapserver can open 10 of >>> thousands of files when drawing a layer and this would add a lot of >>> additional overhead to fetch the column numbers based on names for >>> every file. >>> >>> I know it is a pain, but your should fix the data. It would not be >>> hard to write a little perl script to read the dbf file and reorder >>> the attributes. >>> >>> -Steve W >>> >>> Eijnden, B. van den (Bart) wrote: >>> >>>> Hi list, >>>> >>>> today we encountered that the sequence of attributes of the individual >>>> shapefiles which were used in a tile-index are important. In 3 out >>>> of 4 >>>> shapefiles the CLASSITEM column was the 3rd column, but in the 4th >>>> shapefile >>>> it was the 4th column, so that one did not show up in the map .... >>>> >>>> Apparently Mapserver fetches attribute values based on a column >>>> index? Would >>>> it be better to fetch by name? Otherwise I think this requirement >>>> should be >>>> documented somewhere. >>>> >>>> Best regards, >>>> Bart >>>> >>>> >>>> Disclaimer >>>> ************************************************************************ >>>> >>>> Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is >>>> uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis >>>> hebt ontvangen, wordt u verzocht het te vernietigen en de afzender >>>> te informeren. Wij adviseren u om bij twijfel over de juistheid of >>>> de volledigheid van de mail contact met afzender op te nemen. >>>> >>>> This message shall not constitute any rights or obligations. >>>> This message is intended solely for the addressee. >>>> If you have received this message in error, please delete it and >>>> notify the sender immediately. When in doubt whether this message >>>> is correct or complete, please contact the sender. >>>> ************************************************************************ >>>> >>>> >>> >>> >> >> > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From Derek.Bird at XWAVE.COM Wed Mar 29 09:46:36 2006 From: Derek.Bird at XWAVE.COM (Bird, Derek (xwave)) Date: Wed, 29 Mar 2006 12:46:36 -0500 Subject: Generate a map based on a context file Message-ID: Hi, I am using chameleon to author maps, but I would like to offer a "preview" of the context file that was generated by inserting an IMG tag on a web page. Is it possible to call MapServer with valid context file instead of a map file? This does not work for me, as it returns a full web application ... I just want an image based on the context file. http://localhost:8080/chameleon/cwc2/cwc2.php?service=VCG &request=GetApplication&version=0.1.0&CONTEXTS=http%3A%2F%2Flocalhost%3A8080 /chameleon/cwc2/contexts/operations.xml Also an other catch is that my xml is dynamically generated, so I can not hard code the layers in the url. Thanks for your time, Derek -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3084 bytes Desc: not available URL: From Derek.Bird at XWAVE.COM Wed Mar 29 09:53:54 2006 From: Derek.Bird at XWAVE.COM (Bird, Derek (xwave)) Date: Wed, 29 Mar 2006 12:53:54 -0500 Subject: Generate a map based on a context file Message-ID: This works by ready the context file, which is nice... but I still do not know how to automatically include all layers. Any help is appreciated . http://localhost:8080/cgi-bin/world.exe?service=WMS &request=GetMap&version=1.1.1&CONTEXTS=http%3A%2F%2Flocalhost%3A8080/chamele on/cwc2/contexts/operations.xml&service=WMS&layers=operations&width=500&heig ht=300&srs=EPSG:4326 Derek _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bird, Derek (xwave) Sent: Wednesday, March 29, 2006 12:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Generate a map based on a context file Hi, I am using chameleon to author maps, but I would like to offer a "preview" of the context file that was generated by inserting an IMG tag on a web page. Is it possible to call MapServer with valid context file instead of a map file? This does not work for me, as it returns a full web application ... I just want an image based on the context file. http://localhost:8080/chameleon/cwc2/cwc2.php?service=VCG &request=GetApplication&version=0.1.0&CONTEXTS=http%3A%2F%2Flocalhost%3A8080 /chameleon/cwc2/contexts/operations.xml Also an other catch is that my xml is dynamically generated, so I can not hard code the layers in the url. Thanks for your time, Derek -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3084 bytes Desc: not available URL: From akrherz at IASTATE.EDU Wed Mar 29 09:56:14 2006 From: akrherz at IASTATE.EDU (Daryl Herzmann) Date: Wed, 29 Mar 2006 11:56:14 -0600 Subject: Using a web image as a map layer In-Reply-To: <8B8A0BE7C14F2746B929BD359F623034CB7A70@NEW-MAIL.akimeka.com> Message-ID: On Tue, 28 Mar 2006, Mark Howard wrote: > Anybody know how to use an image off the web as a map layer? > I'm thinking of an image that's updated periodically - such as: > > http://www.intellicast.com/WeatherImg/Satellite/world.gif > > Ideas? (simple ideas?) Hi Mark, You can treat this image as if it was a RASTER data source. You will need to download the image locally and then create a world file for it. I suspect the RASTER howto would be of assistance. http://mapserver.gis.umn.edu/docs/howto/raster_data If you are looking for raw visible and infrared satellite data for the US, my page might be of assistance. http://mesonet.agron.iastate.edu/GIS/goes.phtml daryl -- /** * Daryl Herzmann (akrherz at iastate.edu) * Program Assistant -- Iowa Environmental Mesonet * http://mesonet.agron.iastate.edu */ From mhoward at AKIMEKA.COM Wed Mar 29 10:42:33 2006 From: mhoward at AKIMEKA.COM (Mark Howard) Date: Wed, 29 Mar 2006 08:42:33 -1000 Subject: [UNCLASSIFIED]RE: [UMN_MAPSERVER-USERS] Using a web image as a ma p layer Message-ID: Thanks Antti, Yes if I save the file locally and refresh it often, I can do that. I was hoping to access it directly using the URL - and just supply an extent for the map file; or something like that. Mark -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Antti Roppola Sent: Tuesday, March 28, 2006 2:54 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] [UNCLASSIFIED]RE: [UMN_MAPSERVER-USERS] Using a web image as a ma p layer I did this once by creating a world file to georeference the image, It was quite a while ago but I recall it was pretty straight forward. For your example, your GDAL build will need to support GIF or you will need to convert the image to a supported format first. Antti -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mark Howard Sent: Wednesday, 29 March 2006 11:10 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Using a web image as a map layer Anybody know how to use an image off the web as a map layer? I'm thinking of an image that's updated periodically - such as: http://www.intellicast.com/WeatherImg/Satellite/world.gif Ideas? (simple ideas?) TIA!! Mark ---------------------------------------------------------------------- IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF ---------------------------------------------------------------------- From t.r.decarlo at LARC.NASA.GOV Wed Mar 29 12:06:20 2006 From: t.r.decarlo at LARC.NASA.GOV (Thom DeCarlo) Date: Wed, 29 Mar 2006 15:06:20 -0500 Subject: Serving raster images via MapServer? Message-ID: Hi, I've got a fairly large archive of raster images that we would like to deliver to remote clients through WMS. I've still got much to learn about the technology. I thought I should ask the first obvious question here. Is there an accepted "best way" to organize and deliver imagery using MapServer? I have a PostgreSQL/PostGIS server set up to handle our vector data, but there doesn't seem to be support for raster data in that database. Thanks, Thom -- Thom DeCarlo -------------------------------------- That Which Does Not Kill Me Can Still Hurt Really Bad. From ed at TOPOZONE.COM Wed Mar 29 12:35:48 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 29 Mar 2006 15:35:48 -0500 Subject: Serving raster images via MapServer? Message-ID: Thom - There are a few general principles for working with large raster data sets in MapServer. Some of these are generalizations that apply to many similar applications and aren't necessarily MapServer-specific. If your imagery is updated with any frequency, you'll want to simplify things and avoid lots of complex fiddling with the images. For most users, it's good to keep the data on disks organized in a manner that's consistent with the way you receive the data and updates. For performance reasons, GeoTIFF is almost always the preferred format. Compression generally costs you in performance, and particularly costs you in scalability; some decompressors run quickly but require lots of RAM. That's fine for a small number of users, but if you scale up you may suffer as you can run out of physical RAM quickly. Disk space is cheap - I never compress imagery. If you can structure your GeoTIFFs to be internally tiled (using gdal_translate) with overviews (via gdaladdo) you can get GeoTIFFs that can be read quickly at a variety of scale levels. Organize your GeoTIFFs using TILEINDEX shapefiles (via gdaltindex) and index those shapefiles with shptree. Reprojection of raster data is faster than many folks think, but it's much slower than reprojecting vector data. Where possible, store your imagery in the same projection as you serve it. Keeping things simple is good - it's really not that complicated. I'm currently providing WMS service (via MapServer) to just over 40 terabytes of imagery in around 500,000 image files, using roughly the sort of system described above. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Thom DeCarlo Sent: Wednesday, March 29, 2006 3:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Serving raster images via MapServer? Hi, I've got a fairly large archive of raster images that we would like to deliver to remote clients through WMS. I've still got much to learn about the technology. I thought I should ask the first obvious question here. Is there an accepted "best way" to organize and deliver imagery using MapServer? I have a PostgreSQL/PostGIS server set up to handle our vector data, but there doesn't seem to be support for raster data in that database. Thanks, Thom -- Thom DeCarlo -------------------------------------- That Which Does Not Kill Me Can Still Hurt Really Bad. From nhv at CAPE.COM Wed Mar 29 12:42:59 2006 From: nhv at CAPE.COM (Norman Vine) Date: Wed, 29 Mar 2006 15:42:59 -0500 Subject: Serving raster images via MapServer? In-Reply-To: <007501c6536c$3f0b8210$959877c6@cts1149> Message-ID: Thom DeCarlo writes: > > Hi, > I've got a fairly large archive of raster images that we would like to > deliver to remote clients through WMS. I've still got much to learn about > the technology. I thought I should ask the first obvious question here. > > Is there an accepted "best way" to organize and deliver imagery using > MapServer? I have a PostgreSQL/PostGIS server set up to handle our vector > data, but there doesn't seem to be support for raster data in that database. I reccomend keeping the rasters in the file system This is a good starting point http://mapserver.gis.umn.edu/docs/howto/raster_data HTH Norman From Maxc at SPICERGROUP.COM Wed Mar 29 13:12:16 2006 From: Maxc at SPICERGROUP.COM (Clever, Max) Date: Wed, 29 Mar 2006 16:12:16 -0500 Subject: Windows Vista Message-ID: Hello fellow Mappers, I was wondering if anyone had an idea of how the MS4W package would work if installed on a computer with the Windows Vista operating system. I realize that the production version hasn't been released yet, but there are Betas and numerous notes on what they expect to be releasing. What seemed to me to be a possible problem was the file structure changes that Microsoft appears to be planning on implementing. Also, are completed map information systems going be able to be run on a system running Windows Vista? Does anyone have an idea of an MS4(Windows Vista) in the works or is it not going to come up until the OS is out in commercial use? Just wondering what you DMS boys were up to I guess. Max Clever SPICER GROUP 230 South Washington Ave. PO Box 1689 Saginaw, MI 48605-1689 Office: (989)-754-4717 ext.5184 Cell: (989)-928-8028 Fax: (989)-754-4440 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiencke at GLC.ORG Wed Mar 29 14:47:48 2006 From: pgiencke at GLC.ORG (Pete Giencke) Date: Wed, 29 Mar 2006 17:47:48 -0500 Subject: Escaping Mapfile Quotes Message-ID: Hi, I'm trying to include quotes within quotes in my mapfile (long story), which obviously isn't working. In lieu of installing the CVS 4.9-dev version (bug 1637 addresses this issue iirc), has anyone dealt with this before and come up with a workaround or anything? It's a long shot, but I thought I'd try. -pete -------------- next part -------------- An HTML attachment was scrubbed... URL: From wesp at GDV.COM Wed Mar 29 21:46:00 2006 From: wesp at GDV.COM (Oliver Wesp) Date: Thu, 30 Mar 2006 07:46:00 +0200 Subject: Java Mapscript - querybyattribut Message-ID: Dear List, I' struggling with queryByAttributes on an attribute field with german umlauts using java mapscript. The odd thing is that the same thing works fine with php mapscript and when I use expressions in my mapfile. I'm using a shapefile as datasource. Here is what I do: layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", mapscriptConstants.MS_MULTIPLE); layer.open(); System.out.println( "Result Count: " +layer.getNumResults() ); layer.close(); The result is always null while replacing the qstring with something that doesn't contain special characters (e.g. 'Mainz-Bingen') works fine. As noted above the following layer definition in a mapfile works fine LAYER NAME kreis STATUS DEFAULT TYPE polygon DATA "/tmp/subset" TEMPLATE "kreis.html" CLASSITEM KREIS_NAME CLASS NAME Boundary COLOR 128 128 0 OUTLINECOLOR 0 0 0 EXPRESSION /S?dliche Weinstra?e/ END END but this does not: layer.setClassitem("KREIS_NAME"); classObj cl = new classObj(layer); cl.setName("Classname"); cl.setExpression("/S?dliche Weinstra?e/"); I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. I can provide some sample data, just in case someone likes to reproduce. Any help is appreciated. best regards Oliver -- Dipl.-Geogr. Oliver Wesp Gesellschaft fuer geografische Datenverarbeitung Binger Strasse 49-51 D-55218 Ingelheim fon: +49 6132 714818 fax: +49 6132 714828 http: www.gdv.com From kevinc at UPTIMEDATA.COM Wed Mar 29 21:46:26 2006 From: kevinc at UPTIMEDATA.COM (KevinC (UD)) Date: Wed, 29 Mar 2006 23:46:26 -0600 Subject: no joy: Bill Kropla's "Beginning Mapserver" Message-ID: Frank: Neither LD_LIBRARY_PATH nor /etc/ld.conf exist. What does that tell you (beside the fact that I'm a raw newbie)? Kevin Carpenter, P.E. 20007 Jasperwood Cir Katy, TX 77449; USA Tel: 281/599-9611 Cel: 281/773-7731 Skype: txengineer UptimeData Web & Apps code KevinC at UptimeData.com www.UptimeData.com Value Instrument & Optical Corp. engineering & proto of optics & instruments optoengineer at valinoptx.com, www.valinoptx.com From sylvain.perrinel at AGRICULTURE.GOUV.FR Wed Mar 29 23:34:59 2006 From: sylvain.perrinel at AGRICULTURE.GOUV.FR (Sylvain Perrinel) Date: Thu, 30 Mar 2006 09:34:59 +0200 Subject: Strange colors behavior Message-ID: Hi list, I have got a map which behave strangely. At full extent without label, the colors are correct. But if I put labels on my map, the colors are strange (pink is grey, orange is yellow, ...). And with labels, if I zoom in, the colors become standard. I display only one layer with classes. I use Mapscript to make the mapfile and Mapserver 4.6.1 to generate the images. Here is the mapfile : MAP EXTENT 730454 2213900 840549 2339370 FONTSET "/geobase/local/web/geoweb/donnees_mapserver/symbols_and_fonts/fonts.txt" IMAGECOLOR 255 255 255 IMAGETYPE gif SYMBOLSET "/geobase/local/web/geoweb/donnees_mapserver/symbols_and_fonts/symbols.sym" SHAPEPATH "/var/www/tileindex/" SIZE 500 500 STATUS ON UNITS METERS NAME "Zonages_agricoles" OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE "PC256" TRANSPARENT FALSE FORMATOPTION "INTERLACE=OFF" END PROJECTION "init=epsg:27582" END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END POSITION LL STATUS OFF END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END REFERENCE COLOR -1 0 0 EXTENT 730454 2.2139e+06 840549 2.33937e+06 IMAGE "/geobase/local/web/geoweb/donnees_mapserver/images_ref//021-cotes-d-or.png" OUTLINECOLOR -1 0 0 SIZE 140 140 STATUS ON MARKER 0 MARKERSIZE 0 MINBOXSIZE 3 MAXBOXSIZE 0 END SCALEBAR BACKGROUNDCOLOR 255 255 255 COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END OUTLINECOLOR 0 0 0 POSITION LC SIZE 400 5 STATUS ON STYLE 1 TRANSPARENT TRUE UNITS METERS END WEB IMAGEPATH "/geobase/local/web/geoweb/tmp/" IMAGEURL "/tmp/" LOG "/geobase/local/web/geoweb/donnees_mapserver/log/log_mapserver" METADATA "wms_srs" "epsg:27582" "wms_onlineresource" "http://geoweb.ddaf21.agri/cgi-bin/mapserv?map=/geobase/local/web/geoweb/donnees_mapserver/stock_mapfiles/zonages_agricoles.map&" "wms_abstract" "Cartes des diff??rents zonages concernant le SEA" "Type_acces_rapide" "com" "code_dpt_acces_rapide" "021" "Extent_original" "730454;2213900;840549;2339370" "title" "Zonages agricoles" "wms_encoding" "UTF-8" "wms_title" "Zonages_agricoles" END QUERYFORMAT text/html END LAYER CLASSITEM "NOM_CT" CONNECTION "/geobase/local/web/geobase/CONSULTATION/AGRICULTURE/N_AGRI_ENVIRONNEMENT/N_ZONAGE_CAD_021.TAB" CONNECTIONTYPE OGR LABELCACHE OFF LABELITEM "NOM_CT" LABELMAXSCALE 1e+06 LABELMINSCALE 10000 METADATA "wms_srs" "epsg:27582" "wms_abstract" "Territoires d\'application des contrats-types CAD" "LAYERNAME" "Zones CAD" "OriginalLabelItem" "NOM_CT" "ExistLabel" "True" "wms_title" "Zones_CAD" END NAME "Zones_CAD" SIZEUNITS METERS STATUS OFF TOLERANCE 0 TOLERANCEUNITS PIXELS TRANSPARENCY 100 TYPE POLYGON UNITS METERS CLASS NAME "Plaine" EXPRESSION ([ID_CT]=21000001) LABEL SIZE 12 TYPE TRUETYPE BACKGROUNDCOLOR 0 0 0 BACKGROUNDSHADOWCOLOR 0 0 0 BACKGROUNDSHADOWSIZE 0 0 BUFFER 0 COLOR 237 224 17 ENCODING "UTF-8" FORCE FALSE MINDISTANCE 0 MINFEATURESIZE 0 OFFSET 0 0 OUTLINECOLOR 0 0 0 PARTIALS TRUE POSITION CC SHADOWCOLOR 0 0 0 SHADOWSIZE 0 0 END METADATA END STYLE ANGLE 360 COLOR 237 224 17 MAXSIZE 6 MINSIZE 5 OUTLINECOLOR 237 224 17 SIZE 5 SYMBOL 23 END TEMPLATE "blank.html" END CLASS NAME "Montagne Dijonnaise" EXPRESSION ([ID_CT]=21000002) LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT Vera-sans MAXSIZE 24 MINSIZE 10 SIZE 12 TYPE TRUETYPE BACKGROUNDCOLOR 0 0 0 BACKGROUNDSHADOWCOLOR 0 0 0 BACKGROUNDSHADOWSIZE 0 0 BUFFER 2 COLOR 3 136 187 ENCODING "UTF-8" FORCE FALSE MINDISTANCE 2 MINFEATURESIZE 0 OFFSET 0 0 OUTLINECOLOR 0 0 0 PARTIALS TRUE POSITION CC SHADOWCOLOR 0 0 0 SHADOWSIZE 0 0 END METADATA END STYLE ANGLE 360 COLOR 3 136 187 MAXSIZE 6 MINSIZE 5 OUTLINECOLOR 3 136 187 SIZE 5 SYMBOL 23 END TEMPLATE "blank.html" END CLASS NAME "Massif forestier" EXPRESSION ([ID_CT]=21000003) LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT Vera-sans MAXSIZE 24 MINSIZE 10 SIZE 12 TYPE TRUETYPE BACKGROUNDCOLOR 0 0 0 BACKGROUNDSHADOWCOLOR 0 0 0 BACKGROUNDSHADOWSIZE 0 0 BUFFER 2 COLOR 0 181 0 ENCODING "UTF-8" FORCE FALSE MINDISTANCE 2 MINFEATURESIZE 0 OFFSET 0 0 OUTLINECOLOR 0 0 0 PARTIALS TRUE POSITION CC SHADOWCOLOR 0 0 0 SHADOWSIZE 0 0 END METADATA END STYLE ANGLE 360 COLOR 0 181 0 MAXSIZE 6 MINSIZE 5 OUTLINECOLOR 0 181 0 SIZE 5 SYMBOL 23 END TEMPLATE "blank.html" END CLASS NAME "Plateau Chatillonnais" EXPRESSION ([ID_CT]=21000004) LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT Vera-sans MAXSIZE 24 MINSIZE 10 SIZE 12 TYPE TRUETYPE BACKGROUNDCOLOR 0 0 0 BACKGROUNDSHADOWCOLOR 0 0 0 BACKGROUNDSHADOWSIZE 0 0 BUFFER 2 COLOR 222 158 70 ENCODING "UTF-8" FORCE FALSE MINDISTANCE 2 MINFEATURESIZE 0 OFFSET 0 0 OUTLINECOLOR 0 0 0 PARTIALS TRUE POSITION CC SHADOWCOLOR 0 0 0 SHADOWSIZE 0 0 END METADATA END STYLE ANGLE 360 COLOR 222 158 70 MAXSIZE 6 MINSIZE 5 OUTLINECOLOR 222 158 70 SIZE 5 SYMBOL 23 END TEMPLATE "blank.html" END CLASS NAME "Morvan" EXPRESSION ([ID_CT]=21000005) LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT Vera-sans MAXSIZE 24 MINSIZE 10 SIZE 12 TYPE TRUETYPE BACKGROUNDCOLOR 0 0 0 BACKGROUNDSHADOWCOLOR 0 0 0 BACKGROUNDSHADOWSIZE 0 0 BUFFER 2 COLOR 0 130 93 ENCODING "UTF-8" FORCE FALSE MINDISTANCE 2 MINFEATURESIZE 0 OFFSET 0 0 OUTLINECOLOR 0 0 0 PARTIALS TRUE POSITION CC SHADOWCOLOR 0 0 0 SHADOWSIZE 0 0 END METADATA END STYLE ANGLE 360 COLOR 0 130 93 MAXSIZE 6 MINSIZE 5 OUTLINECOLOR 0 130 93 SIZE 5 SYMBOL 23 END TEMPLATE "blank.html" END CLASS NAME "Auxois" EXPRESSION ([ID_CT]=21000006) LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT Vera-sans MAXSIZE 24 MINSIZE 10 SIZE 12 TYPE TRUETYPE BACKGROUNDCOLOR 0 0 0 BACKGROUNDSHADOWCOLOR 0 0 0 BACKGROUNDSHADOWSIZE 0 0 BUFFER 2 COLOR 0 0 255 ENCODING "UTF-8" FORCE FALSE MINDISTANCE 2 MINFEATURESIZE 0 OFFSET 0 0 OUTLINECOLOR 0 0 0 PARTIALS TRUE POSITION CC SHADOWCOLOR 0 0 0 SHADOWSIZE 0 0 END METADATA END STYLE ANGLE 360 COLOR 0 0 255 MAXSIZE 6 MINSIZE 5 OUTLINECOLOR 0 0 255 SIZE 5 SYMBOL 23 END TEMPLATE "blank.html" END CLASS NAME "Territoires viticoles" EXPRESSION ([ID_CT]=21000007) LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT Vera-sans MAXSIZE 24 MINSIZE 10 SIZE 12 TYPE TRUETYPE BACKGROUNDCOLOR 0 0 0 BACKGROUNDSHADOWCOLOR 0 0 0 BACKGROUNDSHADOWSIZE 0 0 BUFFER 2 COLOR 133 39 199 ENCODING "UTF-8" FORCE FALSE MINDISTANCE 2 MINFEATURESIZE 0 OFFSET 0 0 OUTLINECOLOR 0 0 0 PARTIALS TRUE POSITION CC SHADOWCOLOR 0 0 0 SHADOWSIZE 0 0 END METADATA END STYLE ANGLE 360 COLOR 133 31 199 MAXSIZE 6 MINSIZE 5 OUTLINECOLOR 133 31 199 SIZE 5 SYMBOL 23 END TEMPLATE "blank.html" END CLASS NAME "Val de Sa??ne" EXPRESSION ([ID_CT]=21000008) LABEL ANGLE 0.000000 ANTIALIAS TRUE FONT Vera-sans MAXSIZE 24 MINSIZE 10 SIZE 12 TYPE TRUETYPE BACKGROUNDCOLOR 0 0 0 BACKGROUNDSHADOWCOLOR 0 0 0 BACKGROUNDSHADOWSIZE 0 0 BUFFER 2 COLOR 241 138 241 ENCODING "UTF-8" FORCE FALSE MINDISTANCE 2 MINFEATURESIZE 0 OFFSET 0 0 OUTLINECOLOR 0 0 0 PARTIALS TRUE POSITION CC SHADOWCOLOR 0 0 0 SHADOWSIZE 0 0 END METADATA END STYLE ANGLE 360 COLOR 241 138 214 MAXSIZE 6 MINSIZE 5 OUTLINECOLOR 241 138 214 SIZE 5 SYMBOL 23 END TEMPLATE "blank.html" END END END -- Sylvain Perrinel Minist?re de l'Agriculture et de la P?che SG/SM/SDSI/CERIT D?partement d'Information G?ographique (DIG) BP 12668 31326 Castanet Tolosan T?l?phone: 05.61.28.92.76 Web : http://10.202.61.44/sigsiti/ -------------- next part -------------- A non-text attachment was scrubbed... Name: without_label.png Type: image/png Size: 12425 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: with_labels.png Type: image/png Size: 22642 bytes Desc: not available URL: From sgillies at FRII.COM Wed Mar 29 23:56:11 2006 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 30 Mar 2006 00:56:11 -0700 Subject: Strange colors behavior In-Reply-To: Message-ID: On Mar 30, 2006, at 12:34 AM, Sylvain Perrinel wrote: > This is a multi-part message in MIME format. > > --Boundary_(ID_mpy39T624eCnTYq3FzSG2Q) > Content-type: text/plain; charset=ISO-8859-1; format=flowed > Content-transfer-encoding: 8BIT > > Hi list, > I have got a map which behave strangely. > > At full extent without label, the colors are correct. But if I put > labels on my map, the colors are strange (pink is grey, orange is > yellow, ...). > > And with labels, if I zoom in, the colors become standard. I display > only one layer with classes. > > I use Mapscript to make the mapfile and Mapserver 4.6.1 to generate > the > images. > > Here is the mapfile : [snip] Sylvain, Antialiased TrueType labels will tend to use up all the available colors in a 256 color palette, leaving none left over for following layers. Switching to 24 bit PNG will help, or you can draw dummy layers in the map early in order to get important colors into the palette before the labels are rendered. cheers, Sean --- Sean Gillies http://zcologia.com From sylvain.perrinel at AGRICULTURE.GOUV.FR Thu Mar 30 00:37:47 2006 From: sylvain.perrinel at AGRICULTURE.GOUV.FR (Sylvain Perrinel) Date: Thu, 30 Mar 2006 10:37:47 +0200 Subject: Strange colors behavior In-Reply-To: <3B722A0E-4731-4DC9-9F10-B5A3280D246E@frii.com> Message-ID: I understand. Thanks. Sean Gillies a ?crit : > On Mar 30, 2006, at 12:34 AM, Sylvain Perrinel wrote: > >> This is a multi-part message in MIME format. >> >> --Boundary_(ID_mpy39T624eCnTYq3FzSG2Q) >> Content-type: text/plain; charset=ISO-8859-1; format=flowed >> Content-transfer-encoding: 8BIT >> >> Hi list, >> I have got a map which behave strangely. >> >> At full extent without label, the colors are correct. But if I put >> labels on my map, the colors are strange (pink is grey, orange is >> yellow, ...). >> >> And with labels, if I zoom in, the colors become standard. I display >> only one layer with classes. >> >> I use Mapscript to make the mapfile and Mapserver 4.6.1 to generate the >> images. >> >> Here is the mapfile : > > [snip] > > Sylvain, > > Antialiased TrueType labels will tend to use up all the available colors > in a 256 color palette, leaving none left over for following layers. > Switching to 24 bit PNG will help, or you can draw dummy layers in the > map early in order to get important colors into the palette before the > labels are rendered. > > cheers, > Sean > > --- > Sean Gillies > http://zcologia.com > -- Sylvain Perrinel Minist?re de l'Agriculture et de la P?che SG/SM/SDSI/CERIT D?partement d'Information G?ographique (DIG) BP 12668 31326 Castanet Tolosan T?l?phone: 05.61.28.92.76 Web : http://10.202.61.44/sigsiti/ From listuser at HERZSYS.DE Thu Mar 30 01:31:22 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Thu, 30 Mar 2006 11:31:22 +0200 Subject: Mapserver CGI + ArcSDE 8.3 windows build ? In-Reply-To: <000b01c651bf$11b51000$0501a8c0@JAMES> Message-ID: James Perrins wrote: >Hi, > > > >We've been trying using the kitchen sink builds from >http://hobu.stat.iastate.edu/mapserver/ > > > >However we need to install onto a machine that has Arc SDE 8.3 and the build >on here seems to require SDE 9.0 > > > >Does anyone know where we can get a build using SDE 8.3 or does anyone have >a windows build they could let us have ? > >I've never actually gone through the build process and would rather avoid it >if I can ! > > > >Many Thanks > >James > > > > Hi James, I had a problem some weeks ago with the arcsde client 82 on SuSE SLES 9. Because ESRI don't support linux very good and the SDE client had a problem with system lib I had to take the SDE client 9.0. I know you are on windows but on linux this seem to work. The SDE client should be backward compatible. I could use the SDE client 9.0 with the SDE db version 8.2 so you can try to get and use the SDE client 9.0. Regards Norbert From listuser at HERZSYS.DE Thu Mar 30 01:38:50 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Thu, 30 Mar 2006 11:38:50 +0200 Subject: MapServer 4.8.2 In-Reply-To: <6.2.3.4.2.20060322164036.02d0e6d0@hobu.mail.iastate.edu> Message-ID: Howard Butler wrote: > All, > > I am pleased to announce the release of MapServer 4.8.2. Releases in > the 4.8 branch are maintenance releases, and changes are mostly > confined to bug fixes. Here is a list of the fixes in this release: > > - PHP MapScript building as a DLL (bug 1717) > - Numerous C# improvements by Tamas (bugs 1680, 1596, 1597) > - Hiding some items that are not to be exposed to MapScript (bug 1660) > - Numerous ArcSDE improvements (it might actually work now ;) (bugs > 1682 and 1699) > - Inter-tile "cracking" problem (bug 1715) > - msSaveMap properly writes out TRANSPARENCY ALPHA (bug 1669) > - Ability to set wfs_maxfeatures to 0 (bug 1678) > - Increase in precision of ScaleHit for WMS GetCapabilities response > (bug 1649) > - configure can now detect the Oracle Instant Client rpms (bugs 1470 > and 1683) > - Fuzzy brush fixes (bug 1659) > - Behavior of SIZE for pixmap symbols reverted to previous behavior > (bug 1684) > > The new version can be downloaded from > , full changelog > can be browsed at > , and > binaries should start to show up from the usual suspects in the next > few days. > > Howard > > Hi Howard, I currently use your kitchen sink with version 4.6 and oracle support. If you compile the new version can you also compile gdal/ogr with direct oracle support for the oracle package. In 4.6 I couldn't use Frank's vrt directly with the oracle client. I don't have the chance to compile myself so it would be very helpful for me. Thanks and regards, Norbert From baas at SPEERIT.NL Thu Mar 30 01:44:19 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Thu, 30 Mar 2006 11:44:19 +0200 Subject: MapServer 4.8.2 In-Reply-To: <442BA72A.6000006@herzsys.de> Message-ID: listuser HH wrote: > I currently use your kitchen sink with version 4.6 and oracle support. > If you compile the new version can you also compile gdal/ogr with direct > oracle support for the oracle package. In 4.6 I couldn't use Frank's vrt > directly with the oracle client. I don't have the chance to compile > myself so it would be very helpful for me. /signed. I would also like to use 4.8. -- Jelmer From fabio.dovidio at PLANETEK.IT Thu Mar 30 02:31:15 2006 From: fabio.dovidio at PLANETEK.IT (Fabio D' Ovidio) Date: Thu, 30 Mar 2006 12:31:15 +0200 Subject: Displaying layers Message-ID: Hello list, I'd like to know if mapserver 4.x.x is able to display a layer in the map without rendering it in the legend (in the sense that the client can't choose it). Thank you much ! ******************************************************************************************** Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From fabio.dovidio at PLANETEK.IT Thu Mar 30 02:32:49 2006 From: fabio.dovidio at PLANETEK.IT (Fabio D' Ovidio) Date: Thu, 30 Mar 2006 12:32:49 +0200 Subject: Displaying layers Message-ID: Hello list, I'd like to know if mapserver 4.x.x is able to display a layer in the map without rendering it in the legend (in the sense that the client can't choose it). Thank you much ! ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From listuser at HERZSYS.DE Thu Mar 30 03:04:46 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Thu, 30 Mar 2006 13:04:46 +0200 Subject: WMS and Web Services Message-ID: Hi List, this is the problem: I have x/y data comming from a normal web service - no wfs. I want to show the points in a map. I thought that I get the data from the web service and put it via mapscript to a layer. Should be possible - but what is to do when I want to serve this dynamic feature layer in WMS. At the moment the only thing that I see to solve this is to write the data from the web service in file and use this for the WMS. Is there a better possiblity? Has someone done something like that? Is there a difference in performance between reading the data from a file and adding data directly in mapscript? Thanks and best regards Norbert From j.prins at GMX.NET Thu Mar 30 03:55:43 2006 From: j.prins at GMX.NET (Jochem Prins) Date: Thu, 30 Mar 2006 13:55:43 +0200 Subject: No subject Message-ID: Hello all, currently I got a working map-file with some layers and want to extend it with some more data. The data from most layers is being retrieved from a local Oracle Spatial database and for most layers this is working as intended. However I seem unable to get another layer displayed, despite it being added to the mapfile and the data being available from the database. So far I suspect that my map file is wrong somehow, but I cannot find my problem. Perhaps someone can tell me what I am doing wrong here? I have included the map file as attachment. The layer I want to have displayed is called gemeente2003. Thanks in advance, Jochem Prins -- "Feel free" mit GMX FreeMail! Monat f?r Monat 10 FreeSMS inklusive! http://www.gmx.net -------------- next part -------------- A non-text attachment was scrubbed... Name: global.map Type: application/octet-stream Size: 2476 bytes Desc: not available URL: From steve.lime at DNR.STATE.MN.US Thu Mar 30 05:29:23 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 30 Mar 2006 07:29:23 -0600 Subject: Escaping Mapfile Quotes Message-ID: So you've got a string containing both double and single quotes? What parameter? Steve >>> Pete Giencke 03/29/06 4:47 PM >>> Hi, I'm trying to include quotes within quotes in my mapfile (long story), which obviously isn't working. In lieu of installing the CVS 4.9-dev version (bug 1637 addresses this issue iirc), has anyone dealt with this before and come up with a workaround or anything? It's a long shot, but I thought I'd try. -pete From JamesP at ESDM.CO.UK Thu Mar 30 05:56:45 2006 From: JamesP at ESDM.CO.UK (James Perrins) Date: Thu, 30 Mar 2006 14:56:45 +0100 Subject: OGR Virtual problem with Where clause Message-ID: Hi, I'm just experimenting with this - (just discovered it :-)) which looks great. I'm calling from mapserver with the XML connection statement in the map file (IIS5 + Mapserver 4.6.1) I've been playing with MDB and SQL Server - both of which I can get to plot points and polygons (with WKT) In the examples below - KeyField is an Integer in the database and Name is a text / nvarchar (50) Plotting the whole layer works fine SELECT * FROM TestPolygon Using a filter on an integer field works fine SELECT * FROM TestPolygon WHERE KeyField=1 But I just can't get it to filter using any other sort of where clause - specifically text string e.g. SELECT * FROM TestPolygon WHERE Name="Cosh" I've tried a variety of syntaxes but no success - everything I try returns something like: SQL statement failed, or returned no layer result: SELECT GEOMETRY FROM TestPolygon WHERE Name="Cosh" Can anyone help me out ? Have I got the syntax wrong - if so is there any doc that details this ? Looking at others questions they seem to have it working - do I need to be careful of build versions? Many Thanks James -------------- next part -------------- An HTML attachment was scrubbed... URL: From Derek.Bird at XWAVE.COM Thu Mar 30 06:13:53 2006 From: Derek.Bird at XWAVE.COM (Bird, Derek (xwave)) Date: Thu, 30 Mar 2006 09:13:53 -0500 Subject: WMS and Web Services Message-ID: I did something like that using GML ... There are some demos on the umn website ... But pretty much just make your webservice output xml and add an entry to your mapfile. LAYER .. Bunch of layer code .. CONNECTIONTYPE WFS CONNECTION "http://URL/doGetSystemStatusGML?pGroup_id=1&pSite_id=1&" END Cheers, Derek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of listuser HH Sent: Thursday, March 30, 2006 6:05 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WMS and Web Services Hi List, this is the problem: I have x/y data comming from a normal web service - no wfs. I want to show the points in a map. I thought that I get the data from the web service and put it via mapscript to a layer. Should be possible - but what is to do when I want to serve this dynamic feature layer in WMS. At the moment the only thing that I see to solve this is to write the data from the web service in file and use this for the WMS. Is there a better possiblity? Has someone done something like that? Is there a difference in performance between reading the data from a file and adding data directly in mapscript? Thanks and best regards Norbert -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3084 bytes Desc: not available URL: From work at XWB.COM Thu Mar 30 07:00:23 2006 From: work at XWB.COM (Chip Taylor) Date: Thu, 30 Mar 2006 07:00:23 -0800 Subject: Defining a line from SQL server using OGR Message-ID: I am retrieving a set of point from SQL Server using OGR. If I declare the layer type to be "Point" then it works fine. However, I want the series of XY coordinates to define a line. If I declare the layer type "Line" nothing renders. Any help would be appreciated. Here is the layer code defined as a line (there are two xy points in the database): ##################################### # Tracking # LAYER NAME GPSLayer1 TYPE Point CONNECTIONTYPE OGR CONNECTION ' ODBC:myUser/myPwd at myDSN EXEC pGetTracking wkbLineString ' DATA "GPSData" CLASSITEM "gpsDeviceId" STATUS off CLASS EXPRESSION /Device1/ STYLE COLOR 90 0 255 OUTLINECOLOR 0 255 0 SYMBOL 'BigLine' SIZE 40 END END END ########### End of Tracking Layer ############### -------------- next part -------------- An HTML attachment was scrubbed... URL: From h-j.luecking at GGS-BHV.DE Thu Mar 30 06:33:42 2006 From: h-j.luecking at GGS-BHV.DE (=?ISO-8859-15?Q?Heinz-Josef_L=FCcking?=) Date: Thu, 30 Mar 2006 16:33:42 +0200 Subject: Combing Symbols/Points to one when changing scale when points/symbols are agglomerating Message-ID: Hello community I would like to combing Symbols/Points to one when changing scale and when points/symbols are agglomerating. Any hints? thx. Heinz From laura.diaz at IVER.ES Thu Mar 30 07:11:52 2006 From: laura.diaz at IVER.ES (=?ISO-8859-1?Q?Laura_D=EDaz?=) Date: Thu, 30 Mar 2006 17:11:52 +0200 Subject: labeling with SLDs in MapServer Message-ID: Hi all, i am trying to label a layer i have defined in my map file, it is a point shapefile layer, the SLD i am using is as follows: hojas_label default:hojas_label:COD10000 1 labels Serif normal normal 12 #000000 above 2.5 5 When i request a GetMap with this layer and using this SLD i get the message from Mapserver: msDrawMap(): Image handling error. Failed to draw layer named 'hojas_label'. msDBFGetItemIndex(): DBASE file error. Item 'PropertyName' not found. i?ve checked out the name of the field i want to label, and it is correct, actually i did try with all the fields and i have the same problem, the layer is good as well because i can visualize it if i just don't use this SLD.... Any ideas? thanks in advance, Laura -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Mar 30 07:15:38 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 30 Mar 2006 10:15:38 -0500 Subject: no joy: Bill Kropla's "Beginning Mapserver" In-Reply-To: <000401c653bd$4baa1580$6701a8c0@vio3> Message-ID: KevinC (UD) wrote: > Frank: > > Neither LD_LIBRARY_PATH nor /etc/ld.conf exist. What does that tell you > (beside the fact that I'm a raw newbie)? Kevin, LD_LIBRARY_PATH can be set even if it has no existing value. In "bash" something like: export LD_LIBRARY_PATH=/usr/local/lib Add this to your ~/.bashrc (or perhaps ~/.bash_profile) to get it each time you login. I misnamed the other file. It is actually /etc/ld.so.conf. You might want to read the "man ldconfig" man page for details on this mechanism. There is indeed a learning curve to all this! 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 OSGF, http://osgeo.org From Debbie.Pagurek at EC.GC.CA Thu Mar 30 07:18:28 2006 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Thu, 30 Mar 2006 10:18:28 -0500 Subject: OGR Virtual problem with Where clause Message-ID: Try using single quotes instead of double quotes: SELECT * FROM TestPolygon WHERE Name='Cosh' D. Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of James Perrins Sent: Thursday, March 30, 2006 8:57 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] OGR Virtual problem with Where clause Hi, I'm just experimenting with this - (just discovered it :-)) which looks great. I'm calling from mapserver with the XML connection statement in the map file (IIS5 + Mapserver 4.6.1) I've been playing with MDB and SQL Server - both of which I can get to plot points and polygons (with WKT) In the examples below - KeyField is an Integer in the database and Name is a text / nvarchar (50) Plotting the whole layer works fine SELECT * FROM TestPolygon Using a filter on an integer field works fine SELECT * FROM TestPolygon WHERE KeyField=1 But I just can't get it to filter using any other sort of where clause - specifically text string e.g. SELECT * FROM TestPolygon WHERE Name="Cosh" I've tried a variety of syntaxes but no success - everything I try returns something like: SQL statement failed, or returned no layer result: SELECT GEOMETRY FROM TestPolygon WHERE Name="Cosh" Can anyone help me out ? Have I got the syntax wrong - if so is there any doc that details this ? Looking at others questions they seem to have it working - do I need to be careful of build versions? Many Thanks James -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at KYNGCHAOS.COM Thu Mar 30 07:28:18 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Thu, 30 Mar 2006 09:28:18 -0600 Subject: MapServer Oracle - MS or OGR? Message-ID: I'm wondering how MapServer's builtin Oracle support is different from OGR's? Feature support and performance. I would rather use Oracle from GDAL. My concern is that Oracle support is fixed into the MapServer binary, either it has it or it doesn't. No plugin mechanism in MapServer (or is there?). If it does, a user must install the Oracle Instant Client to use MapServer even if they don't use Oracle (tho there is the weak link trick in Darwin). But with OGR, one should be able to build Oracle support as a plugin, much like the GRASS plugin (I plan to try it for my next GIS Libs for Mac OS X). ----- William Kyngesburye http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro From warmerdam at POBOX.COM Thu Mar 30 07:41:09 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 30 Mar 2006 10:41:09 -0500 Subject: MapServer Oracle - MS or OGR? In-Reply-To: Message-ID: William Kyngesburye wrote: > I'm wondering how MapServer's builtin Oracle support is different from > OGR's? Feature support and performance. William, I think the main downside of OGR Oracle support is performance. Going throug the extra "OGRFeature" layer has to cost something. The other issue I think is that the direct access in MapServer allows the user to specify a highly customized query but still have MapServer add the spatial component to it, so that all the query is done in Oracle. If you go through OGR you have two choices. If you use a custom query then then OGR is too dumb to know how to add the spatial component into it and so (I assume) the spatial query is done in OGR after fetching from the DB. If you just use normal table access with (with perhaps a simple WHERE clause in your FILTER) then OGR will pass the spatial query into Oracle to resolve. > I would rather use Oracle from GDAL. My concern is that Oracle support > is fixed into the MapServer binary, either it has it or it doesn't. No > plugin mechanism in MapServer (or is there?). In 4.8 there *is* a plugin mechanism but the build architecture has no particular support to utilize it to make something like the oracle driver a plugin. So it is practical, but not terribly easy, to make the oracle support a plugin for mapserver. > If it does, a user must > install the Oracle Instant Client to use MapServer even if they don't > use Oracle (tho there is the weak link trick in Darwin). But with OGR, > one should be able to build Oracle support as a plugin, much like the > GRASS plugin (I plan to try it for my next GIS Libs for Mac OS X). Right. 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 OSGF, http://osgeo.org From t.r.decarlo at LARC.NASA.GOV Thu Mar 30 07:47:56 2006 From: t.r.decarlo at LARC.NASA.GOV (Thom DeCarlo) Date: Thu, 30 Mar 2006 10:47:56 -0500 Subject: Serving raster images via MapServer? In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DDAF9@ptolemy.topozone.com> Message-ID: Hey Ed, (So, you and Norm are over here, too. Small world!) This sounds good. I've been reading up on the gdaltindex and I think I understand how to get it set up. But, what is this shptree thing you mentioned? Also, two other issues. First, the client is going to be continually requesting map updates and the server will be getting frequent additions to its repository. If the tile index is held in a shapefile will the MapServer re-read that file when a new client request comes in or is it only read when Mapserver starts? Second, since I've already got a PostgreSQL server managing the vector data, can the tile index be held in it, too? I'm going to have a lot of overlapping imagery and it seems (to the novice that I am) that SQL queries could find the best/newest data to serve out to the client. Or, is this just unnecessary overhead? Thanks! Thom -- Thom DeCarlo -------------------------------------------------------- Any sufficiently advanced technology is indistinguishable from a rigged demo. > -----Original Message----- > From: Ed McNierney > Sent: Wednesday, March 29, 2006 3:36 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Serving raster images via MapServer? > > Thom - > > There are a few general principles for working with large raster data > sets in MapServer. Some of these are generalizations that apply to many > similar applications and aren't necessarily MapServer-specific. > > If your imagery is updated with any frequency, you'll want to simplify > things and avoid lots of complex fiddling with the images. For most > users, it's good to keep the data on disks organized in a manner that's > consistent with the way you receive the data and updates. > > For performance reasons, GeoTIFF is almost always the preferred format. > Compression generally costs you in performance, and particularly costs > you in scalability; some decompressors run quickly but require lots of > RAM. That's fine for a small number of users, but if you scale up you > may suffer as you can run out of physical RAM quickly. Disk space is > cheap - I never compress imagery. > > If you can structure your GeoTIFFs to be internally tiled (using > gdal_translate) with overviews (via gdaladdo) you can get GeoTIFFs that > can be read quickly at a variety of scale levels. > > Organize your GeoTIFFs using TILEINDEX shapefiles (via gdaltindex) and > index those shapefiles with shptree. > > Reprojection of raster data is faster than many folks think, but it's > much slower than reprojecting vector data. Where possible, store your > imagery in the same projection as you serve it. > > Keeping things simple is good - it's really not that complicated. I'm > currently providing WMS service (via MapServer) to just over 40 > terabytes of imagery in around 500,000 image files, using roughly the > sort of system described above. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Thom DeCarlo > Sent: Wednesday, March 29, 2006 3:06 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Serving raster images via MapServer? > > Hi, > I've got a fairly large archive of raster images that we would like to > deliver to remote clients through WMS. I've still got much to learn > about the technology. I thought I should ask the first obvious question > here. > > Is there an accepted "best way" to organize and deliver imagery using > MapServer? I have a PostgreSQL/PostGIS server set up to handle our > vector data, but there doesn't seem to be support for raster data in > that database. > > Thanks, > Thom > -- > Thom DeCarlo > -------------------------------------- > That Which Does Not Kill Me > Can Still Hurt Really Bad. From watry at COAPS.FSU.EDU Thu Mar 30 08:12:14 2006 From: watry at COAPS.FSU.EDU (Gary Watry) Date: Thu, 30 Mar 2006 11:12:14 -0500 Subject: test - disregard In-Reply-To: <00ef01c65411$50288d90$959877c6@cts1149> Message-ID: For some reason, I can not post the normal way ______________________________________________________________ Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 215 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 E-Mail: watry at coaps.fsu.edu From warmerdam at POBOX.COM Thu Mar 30 08:18:28 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 30 Mar 2006 11:18:28 -0500 Subject: Serving raster images via MapServer? In-Reply-To: <00ef01c65411$50288d90$959877c6@cts1149> Message-ID: Thom DeCarlo wrote: > Hey Ed, > (So, you and Norm are over here, too. Small world!) > > This sounds good. I've been reading up on the gdaltindex and I think I > understand how to get it set up. But, what is this shptree thing you > mentioned? > Also, two other issues. First, the client is going to be continually > requesting map updates and the server will be getting frequent additions to > its repository. If the tile index is held in a shapefile will the MapServer > re-read that file when a new client request comes in or is it only read when > Mapserver starts? > Second, since I've already got a PostgreSQL server managing the vector data, > can the tile index be held in it, too? I'm going to have a lot of > overlapping imagery and it seems (to the novice that I am) that SQL queries > could find the best/newest data to serve out to the client. Or, is this just > unnecessary overhead? Thom, My understanding is that Steve modified things a while ago (for 4.8) so that the tileindexes could be a reference to another layer which can be from Oracle or any other legitimate layer source. I haven't tried doing this so there might be some quirkiness in the mechanism. But if it is important to you to have the tileindexes is oracle you can give it a try. BTW, yes, MapServer re-reads the tileindexes for each request. If you are altering them frequently you would either need to regenerate any spatial index that goes with them or avoid having one. 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 OSGF, http://osgeo.org From Debbie.Pagurek at EC.GC.CA Thu Mar 30 08:24:03 2006 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Thu, 30 Mar 2006 11:24:03 -0500 Subject: OGR Virtual problem with Where clause Message-ID: Please reply to the list so that others can comment too. One easy way to solve this is to put your xml in an OVF file that resides outside of your mapfile, and then just refer to that file in your mapfile. e.g. in your mapfile LAYER section: LAYER NAME "air1_2005" DEBUG ON DATA "air1_layer" # Must be the same as in ovf file- case sensitive CONNECTIONTYPE OGR #Must be OGR for the ODBC connection CONNECTION /web_map_services/data/cesi/air1_map_2005_en.ovf etc. Another way to solve it is to put double quotes around your XML in the mapfile so then your single quotes should work? refer to http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialDa ta/?searchterm=ovf for more information and examples. D. Pagurek -----Original Message----- From: James Perrins [mailto:JamesP at esdm.co.uk] Sent: Thursday, March 30, 2006 10:46 AM To: Pagurek,Debbie [NCR] Subject: RE: [UMN_MAPSERVER-USERS] OGR Virtual problem with Where clause Thanks - but single quotes don't work because the whole xml is in single quotes in the map file Unless there is some way to escape the quotes which I've failed to manage e.g. ' ODBC:WKT,TestPolygon SELECT * FROM TestMemo where Name="Cosh" TestMemo wkbPolygon ' P.S. I know the above example is actually for Access not SQL - but I'm seeing the same behaviour in both Thanks James _____ From: Pagurek,Debbie [NCR] [mailto:Debbie.Pagurek at EC.GC.CA] Sent: 30 March 2006 16:18 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual problem with Where clause Try using single quotes instead of double quotes: SELECT * FROM TestPolygon WHERE Name='Cosh' D. Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of James Perrins Sent: Thursday, March 30, 2006 8:57 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] OGR Virtual problem with Where clause Hi, I'm just experimenting with this - (just discovered it :-)) which looks great. I'm calling from mapserver with the XML connection statement in the map file (IIS5 + Mapserver 4.6.1) I've been playing with MDB and SQL Server - both of which I can get to plot points and polygons (with WKT) In the examples below - KeyField is an Integer in the database and Name is a text / nvarchar (50) Plotting the whole layer works fine SELECT * FROM TestPolygon Using a filter on an integer field works fine SELECT * FROM TestPolygon WHERE KeyField=1 But I just can't get it to filter using any other sort of where clause - specifically text string e.g. SELECT * FROM TestPolygon WHERE Name="Cosh" I've tried a variety of syntaxes but no success - everything I try returns something like: SQL statement failed, or returned no layer result: SELECT GEOMETRY FROM TestPolygon WHERE Name="Cosh" Can anyone help me out ? Have I got the syntax wrong - if so is there any doc that details this ? Looking at others questions they seem to have it working - do I need to be careful of build versions? Many Thanks James -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at KYNGCHAOS.COM Thu Mar 30 08:32:58 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Thu, 30 Mar 2006 10:32:58 -0600 Subject: MapServer Oracle - MS or OGR? In-Reply-To: <442BFC15.6060102@pobox.com> Message-ID: On Mar 30, 2006, at 9:41 AM, Frank Warmerdam wrote: > William Kyngesburye wrote: >> I'm wondering how MapServer's builtin Oracle support is different >> from OGR's? Feature support and performance. > > William, > > I think the main downside of OGR Oracle support is performance. Going > throug the extra "OGRFeature" layer has to cost something. The other > issue I think is that the direct access in MapServer allows the user > to specify a highly customized query but still have MapServer add > the spatial component to it, so that all the query is done in Oracle. > > If you go through OGR you have two choices. If you use a custom query > then then OGR is too dumb to know how to add the spatial component > into > it and so (I assume) the spatial query is done in OGR after fetching > from the DB. If you just use normal table access with (with perhaps a > simple WHERE clause in your FILTER) then OGR will pass the spatial > query > into Oracle to resolve. > I kinda figured it might be something like that. >> I would rather use Oracle from GDAL. My concern is that Oracle >> support is fixed into the MapServer binary, either it has it or it >> doesn't. No plugin mechanism in MapServer (or is there?). > > In 4.8 there *is* a plugin mechanism but the build architecture has no > particular support to utilize it to make something like the oracle > driver > a plugin. So it is practical, but not terribly easy, to make the > oracle > support a plugin for mapserver. > Is there any documentation on the hidden plugin mechanism? All I found on the MS site was an RFC to add this feature. > > If it does, a user must >> install the Oracle Instant Client to use MapServer even if they >> don't use Oracle (tho there is the weak link trick in Darwin). >> But with OGR, one should be able to build Oracle support as a >> plugin, much like the GRASS plugin (I plan to try it for my next >> GIS Libs for Mac OS X). > > Right. > I'll probably keep doing the weak-link thing for now, until I figure out the plugin mechanism. ----- William Kyngesburye http://www.kyngchaos.com/ First Pogril: Why is life like sticking your head in a bucket filled with hyena offal? Second Pogril: I don't know. Why IS life like sticking your head in a bucket filled with hyena offal? First Pogril: I don't know either. Wretched, isn't it? -HitchHiker's Guide to the Galaxy From jmckenna at DMSOLUTIONS.CA Thu Mar 30 08:36:16 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Thu, 30 Mar 2006 11:36:16 -0500 Subject: Windows Vista In-Reply-To: Message-ID: Hi Max, We haven't thought that far ahead honestly. But we are planning on releasing a Windows installer version of MS4W. It's also good to see that the OSGeo Foundation is discussing various distribution packages, so that may impact MS4W in the future. jeff Clever, Max wrote: > Hello fellow Mappers, > > > > I was wondering if anyone had an idea of how the MS4W package would work > if installed on a computer with the Windows Vista operating system. I > realize that the production version hasn?t been released yet, but there > are Betas and numerous notes on what they expect to be releasing. What > seemed to me to be a possible problem was the file structure changes > that Microsoft appears to be planning on implementing. Also, are > completed map information systems going be able to be run on a system > running Windows Vista? Does anyone have an idea of an MS4(Windows > Vista) in the works or is it not going to come up until the OS is out in > commercial use? Just wondering what you DMS boys were up to I guess. > > > > Max Clever > > *SPICER GROUP* > > 230 South Washington Ave. > > PO Box 1689 > > Saginaw, MI 48605-1689 > > Office: (989)-754-4717 ext.5184 > > Cell: (989)-928-8028 > > Fax: (989)-754-4440 > > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From warmerdam at POBOX.COM Thu Mar 30 08:45:58 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 30 Mar 2006 11:45:58 -0500 Subject: MapServer Oracle - MS or OGR? In-Reply-To: <7929AE27-CD2F-4E19-837D-DA72D7E620DF@kyngchaos.com> Message-ID: William Kyngesburye wrote: > Is there any documentation on the hidden plugin mechanism? All I found > on the MS site was an RFC to add this feature. William, The RFC is the documentation for the plugin mechanism. There is no documentation on how to build stuff like Oracle that way. 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 OSGF, http://osgeo.org From warmerdam at POBOX.COM Thu Mar 30 09:02:46 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 30 Mar 2006 12:02:46 -0500 Subject: Defining a line from SQL server using OGR In-Reply-To: <03dc01c6540a$acc0a3f0$0601a8c0@DevChip> Message-ID: Chip Taylor wrote: > I am retrieving a set of point from SQL Server using OGR. If I declare > the layer type to be "Point" then it works fine. However, I want the > series of XY coordinates to define a line. If I declare the layer type > "Line" nothing renders. Any help would be appreciated. Here is the > layer code defined as a line (there are two xy points in the database): ... > > ' > > ODBC:myUser/myPwd at myDSN > EXEC pGetTracking > wkbLineString > y="gpsLatitude"/> > > ' Chip, what are the types of your gpsLongitude columns? Are they array types of some kind? Or perhaps you are hoping that OGR will collect all the rows, and make it into a single linestring features? Basically, this is not supported. If you could do something in the database to prepare an appropriate line geometry in WKT format, you could use the WKT column support in VRT. 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 OSGF, http://osgeo.org From Maxc at SPICERGROUP.COM Thu Mar 30 09:03:44 2006 From: Maxc at SPICERGROUP.COM (Clever, Max) Date: Thu, 30 Mar 2006 12:03:44 -0500 Subject: Windows Vista Message-ID: Thanks Jeff, I think one of the biggest selling points of mapserver has been its capability to work across a wide variety of platforms. I'm just hoping Windows Vista doesn't throw a wrench in it. Max -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff McKenna Sent: Thursday, March 30, 2006 11:36 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Windows Vista Hi Max, We haven't thought that far ahead honestly. But we are planning on releasing a Windows installer version of MS4W. It's also good to see that the OSGeo Foundation is discussing various distribution packages, so that may impact MS4W in the future. jeff Clever, Max wrote: > Hello fellow Mappers, > > > > I was wondering if anyone had an idea of how the MS4W package would work > if installed on a computer with the Windows Vista operating system. I > realize that the production version hasn't been released yet, but there > are Betas and numerous notes on what they expect to be releasing. What > seemed to me to be a possible problem was the file structure changes > that Microsoft appears to be planning on implementing. Also, are > completed map information systems going be able to be run on a system > running Windows Vista? Does anyone have an idea of an MS4(Windows > Vista) in the works or is it not going to come up until the OS is out in > commercial use? Just wondering what you DMS boys were up to I guess. > > > > Max Clever > > *SPICER GROUP* > > 230 South Washington Ave. > > PO Box 1689 > > Saginaw, MI 48605-1689 > > Office: (989)-754-4717 ext.5184 > > Cell: (989)-928-8028 > > Fax: (989)-754-4440 > > > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From JamesP at ESDM.CO.UK Thu Mar 30 08:43:11 2006 From: JamesP at ESDM.CO.UK (James Perrins) Date: Thu, 30 Mar 2006 17:43:11 +0100 Subject: OGR Virtual problem with Where clause Message-ID: Apologies - I had intended to reply to the list - my mistake. I was trying to avoid using an OVF file as I'm using CGI and the next step was to look at dynamically changing the where clause from the URL Using double quotes round the whole xml string does make it work - I read someone else on the list saying that this didn't work - so hadn't tried it Thanks very much James _____ From: Pagurek,Debbie [NCR] [mailto:Debbie.Pagurek at EC.GC.CA] Sent: 30 March 2006 17:24 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual problem with Where clause Please reply to the list so that others can comment too. One easy way to solve this is to put your xml in an OVF file that resides outside of your mapfile, and then just refer to that file in your mapfile. e.g. in your mapfile LAYER section: LAYER NAME "air1_2005" DEBUG ON DATA "air1_layer" # Must be the same as in ovf file- case sensitive CONNECTIONTYPE OGR #Must be OGR for the ODBC connection CONNECTION /web_map_services/data/cesi/air1_map_2005_en.ovf etc. Another way to solve it is to put double quotes around your XML in the mapfile so then your single quotes should work? refer to http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialDa ta/?searchterm=ovf for more information and examples. D. Pagurek -----Original Message----- From: James Perrins [mailto:JamesP at esdm.co.uk] Sent: Thursday, March 30, 2006 10:46 AM To: Pagurek,Debbie [NCR] Subject: RE: [UMN_MAPSERVER-USERS] OGR Virtual problem with Where clause Thanks - but single quotes don't work because the whole xml is in single quotes in the map file Unless there is some way to escape the quotes which I've failed to manage e.g. ' ODBC:WKT,TestPolygon SELECT * FROM TestMemo where Name="Cosh" TestMemo wkbPolygon ' P.S. I know the above example is actually for Access not SQL - but I'm seeing the same behaviour in both Thanks James _____ From: Pagurek,Debbie [NCR] [mailto:Debbie.Pagurek at EC.GC.CA] Sent: 30 March 2006 16:18 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual problem with Where clause Try using single quotes instead of double quotes: SELECT * FROM TestPolygon WHERE Name='Cosh' D. Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of James Perrins Sent: Thursday, March 30, 2006 8:57 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] OGR Virtual problem with Where clause Hi, I'm just experimenting with this - (just discovered it :-)) which looks great. I'm calling from mapserver with the XML connection statement in the map file (IIS5 + Mapserver 4.6.1) I've been playing with MDB and SQL Server - both of which I can get to plot points and polygons (with WKT) In the examples below - KeyField is an Integer in the database and Name is a text / nvarchar (50) Plotting the whole layer works fine SELECT * FROM TestPolygon Using a filter on an integer field works fine SELECT * FROM TestPolygon WHERE KeyField=1 But I just can't get it to filter using any other sort of where clause - specifically text string e.g. SELECT * FROM TestPolygon WHERE Name="Cosh" I've tried a variety of syntaxes but no success - everything I try returns something like: SQL statement failed, or returned no layer result: SELECT GEOMETRY FROM TestPolygon WHERE Name="Cosh" Can anyone help me out ? Have I got the syntax wrong - if so is there any doc that details this ? Looking at others questions they seem to have it working - do I need to be careful of build versions? Many Thanks James -------------- next part -------------- An HTML attachment was scrubbed... URL: From naci0002 at UMN.EDU Thu Mar 30 09:15:48 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Thu, 30 Mar 2006 11:15:48 -0600 Subject: Web application error In-Reply-To: <004401c65262$89ac2230$6f46d781@ed.ac.uk> Message-ID: Dave, Can you please post your mapfile or at least the object corresponding to the layer you're querying? We can't answer your question without the details. -Perry Dave Stone wrote: > Apologies for emailing direct -- LISTSERV keeps rejecting my posts as > duplicates. > > No joy so far, I'm afraid, Perry. You were right about the PostGIS names > being upper-case, so I've > changed them all to lower-case, and the result.html query template now > looks like this: > > # query template > > > MapServer - ItemQuery > > > > > Case 1: Simple ItemQuery With > QueryMap > >

> > This is just a simple dump of a few attributes for an individual location > in the test suites parishes layer: > >

> > Place Name: [placename]
> Qualifying Name: [qualifyingname]
> Location Type: [locationtype]
> Grid Reference: [locationgridref]
> Religious Order: [religiousorder]
> >

> > and here's the map of the query results (you can zoom to a set of > results as well): > >

> > > > I had TOLERANCE set to 5 (pixels) for the PostGIS layer originally, and > tried upping it to 25 in > hope that it would make it easier to 'hit the spot' when clicking on the > dots on the map. But no > output -- just a blank page titled 'MapServer Message'. > > I also tried setting DEBUG ON for the layer and class objects, but there > wasn't anything significant > in the log file, just some map extent parameters. > > Thanks for the pointer to the 'flashy' mapfile reference; there's some > useful examples in there. > > Cheers, > > Dave > > ----- Original Message ----- From: "Pericles S. Nacionales" > > To: "Dave Stone" > Cc: > Sent: Monday, March 27, 2006 6:25 PM > Subject: Re: [UMN_MAPSERVER-USERS] Web application error > > >> Dave, >> >> What does your result.html query template look like? Did you >> capitalize all >> the attribute names (as in "[ATT_NAME]")? If so, make them small caps >> for >> PostGIS tables--[att_name]. >> >> Also, here's another hint: Use the TOLERANCE keyword... >> http://mapserver.gis.umn.edu/docs/reference/mapfile/layer >> >> Or if you prefer a fancier mapfile reference, check >> http://umn.mapserver.ch/index_en.php >> >> Good luck! >> -Perry >> >> On Monday 27 March 2006 08:07, Dave Stone wrote: >>> I am having problems adapting the class-level query template >>> technique in >>> Example 3.1 of the MapServer Tutorial. >>> >>> Essentially, I want to do as the tutorial example does, i.e. be able to >>> click on a point feature on the map, and have a query template open >>> up and >>> display attributes for the point. >>> >>> The only significant difference between my setup and the example's >>> (that I >>> can see) is that the example queries a layer (cities) whose data >>> source is >>> a shapefile containing polygons, whereas my source is points in a >>> PostGIS >>> view (dedloc). The .map file segment for the layer is: >>> >>> LAYER # query layer using the dedloc PostgreSQL view >>> CONNECTIONTYPE postgis >>> NAME saint_dedications >>> CONNECTION "user=erdb13 dbname=stdraft" >>> DATA "geom from dedloc USING UNIQUE dr USING SRID=27700" >>> STATUS DEFAULT >>> DEBUG ON >>> TYPE POINT >>> FILTERITEM dedicationtype >>> FILTER "dedicationtype='%dtype%'" >>> TOLERANCE 5 >>> CLASS >>> NAME "Dedications" >>> MINSCALE 2000000 >>> TEMPLATE "result.html" >>> STYLE >>> SYMBOL "circle" >>> SIZE 5 >>> COLOR 255 0 0 >>> OUTLINECOLOR 0 0 0 >>> END >>> END >>> CLASS >>> MAXSCALE 1900000 >>> TEMPLATE "result.html" >>> STYLE >>> SYMBOL "circle" >>> SIZE 10 >>> COLOR 255 0 0 >>> OUTLINECOLOR 0 0 0 >>> END >>> END >>> END # test query layer >>> >>> >>> and the URL invoking the query template is: >>> >>> http://drayton.ucs.ed.ac.uk/cgi-bin/mapserv?imgxy=300.0+300.0& >>> imgext=217114.636666+624099.796666+387452.636666+794437.796666& >>> map=%2Fvar%2Fwww%2Fhtml%2Fsaints%2Fdata%2Fparish%2Fuig.map& >>> savequery=true&mode=browse&img.x=320&img.y=271&zoomdir=0&zoomsize=4& >>> layer=parish_labels&layer=parish&layer=saint_dedications&mode=query& >>> dtype=Altar+dedication >>> >>> What I get when I click on a dot on the map displaying >>> saint_dedications is >>> a web page headed 'MapServer Message', but then no message, no >>> attributes >>> for the dot I clicked, nothing! >>> >>> Can anyone suggest what might be going wrong? The query template >>> (result.html) is very simple; like Example 3.1, it just displays >>> boilerplate HTML and attribute values for the dot that was clicked. >> >> -- >> Pericles S. Nacionales >> Conservation Biology Program >> University of Minnesota >> e-mail: naci0002 at umn.edu >> > > > . > From JamesP at ESDM.CO.UK Thu Mar 30 09:12:09 2006 From: JamesP at ESDM.CO.UK (James Perrins) Date: Thu, 30 Mar 2006 18:12:09 +0100 Subject: Defining a line from SQL server using OGR Message-ID: Hi, I've just been playing with this. As Frank says - if your Lat/Long fields are single/double then you need something like: ' ODBC:WKT,TestPoint SELECT X,Y FROM TestPoint WHERE KeyName=2 wkbPoint ' Note wkbPoint not wkbLine If you can convert your GPS readings into a WKT string and store this in a text field in your table - such as: POLYGON (( 100000 100000, 200000 500000,500000 500000,500000 200000, 100000 100000)) Then something like: ' ODBC:WKT,TestPolygon SELECT * FROM TestPolygon WHERE KeyField=1 TestPolygon wkbPolygon ' Should work. Best wishes James _____ From: Chip Taylor [mailto:work at XWB.COM] Sent: 30 March 2006 16:00 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Defining a line from SQL server using OGR I am retrieving a set of point from SQL Server using OGR. If I declare the layer type to be "Point" then it works fine. However, I want the series of XY coordinates to define a line. If I declare the layer type "Line" nothing renders. Any help would be appreciated. Here is the layer code defined as a line (there are two xy points in the database): ##################################### # Tracking # LAYER NAME GPSLayer1 TYPE Point CONNECTIONTYPE OGR CONNECTION ' ODBC:myUser/myPwd at myDSN EXEC pGetTracking wkbLineString ' DATA "GPSData" CLASSITEM "gpsDeviceId" STATUS off CLASS EXPRESSION /Device1/ STYLE COLOR 90 0 255 OUTLINECOLOR 0 255 0 SYMBOL 'BigLine' SIZE 40 END END END ########### End of Tracking Layer ############### -------------- next part -------------- An HTML attachment was scrubbed... URL: From cplist at EARTHLINK.NET Thu Mar 30 09:37:51 2006 From: cplist at EARTHLINK.NET (Charlton Purvis) Date: Thu, 30 Mar 2006 12:37:51 -0500 Subject: OGR Virtual problem with Where clause In-Reply-To: <17F9912F5E9F874B8EF0BDB0FCC40CC84E14A3@esdmserver.smallbusiness.local> Message-ID: > I was trying to avoid using an OVF file as I'm using CGI and the next step > was to look at dynamically changing the where clause from the URL I've had a lot of luck embedding the OVF directly in the .map. I believe I had to modify mapserv.c to do the % CGI variable substation to change parameters in the OVF string, but it works great. I use it as part of a cgi wrapper whose job is to help figure out what file matches things like my time parameter. I'm not quite sure if this is what you had in mind, though. Here's a simplified version of what I'm doing to pull data from a CSV whose location is defined by %MY_PATH_VARIABLE_HERE%. Notice the EXPRESSION, too. OGR r-o-c-k-s when it comes to ease of use w/ CSV's. LAYER NAME trk_line_blue_01 GROUP trk_line PROJECTION "init=epsg:4269" END CONNECTIONTYPE OGR CONNECTION " %MY_PATH_VARIABLE_HERE%.csv wkbLineString " ... EXPRESSION ('[t]' eq '' and '[trk]' eq '01') END END Charlton From work at XWB.COM Thu Mar 30 10:09:21 2006 From: work at XWB.COM (Chip Taylor) Date: Thu, 30 Mar 2006 10:09:21 -0800 Subject: Defining a line from SQL server using OGR In-Reply-To: <442C0F36.6040901@pobox.com> Message-ID: The x,y columns are doubles. Where can I learn about geometry in WKT format? Thanks for all your help! Chip Chip, what are the types of your gpsLongitude columns? Are they array types of some kind? Or perhaps you are hoping that OGR will collect all the rows, and make it into a single linestring features? Basically, this is not supported. If you could do something in the database to prepare an appropriate line geometry in WKT format, you could use the WKT column support in VRT. 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 OSGF, http://osgeo.org From warmerdam at POBOX.COM Thu Mar 30 10:26:18 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 30 Mar 2006 13:26:18 -0500 Subject: Defining a line from SQL server using OGR In-Reply-To: <040101c65425$126dd9b0$0601a8c0@DevChip> Message-ID: Chip Taylor wrote: > The x,y columns are doubles. Where can I learn about geometry in WKT > format? Chip, Details are at: http://www.gdal.org/ogr/drv_vrt.html Note in particular the option for something like: 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 OSGF, http://osgeo.org From JamesP at ESDM.CO.UK Thu Mar 30 10:31:24 2006 From: JamesP at ESDM.CO.UK (James Perrins) Date: Thu, 30 Mar 2006 19:31:24 +0100 Subject: Defining a line from SQL server using OGR Message-ID: These are the two docs from the OGC site that I've been looking at - they aren't exactly brief. Someone may know a more succinct summary http://portal.opengeospatial.org/files/?artifact_id=13227 http://portal.opengeospatial.org/files/?artifact_id=13228 From steve.lime at DNR.STATE.MN.US Thu Mar 30 12:41:58 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 30 Mar 2006 14:41:58 -0600 Subject: ANNOUNCE: Free and Open Source Software for Geoinformatics Conference Message-ID: FOSS4G2006, the international conference addressing geospatial data technologies developed by or of relevance to the Open Source community, will be held September 12-15th, 2006 in Lausanne, Switzerland. The conference will bring together all of the Free and Open Source Software for Geoinformatics (FOSS4G) communities. The conference incorporates the OSGIS Conference, Mapserver User Meeting, GRASS Users Conference, Java oriented FOSS4G and EOGEO Workshops with the intent to be broadly inclusive. Lausanne, Switzerland will host the conference, making it the first time many of these groups will meet in Europe. A committee is working to design a program with elements that will interest participants from the novice to the expert. The conference strives to build on the successes and enthusiasm generated by previous, related meetings. Important dates to note (dates are approximate and subject to change): April 15, 2006 Workshop submission deadline June 30, 2006 Presentation submission deadline April 15, 2006 Final registration opening (pre-registration is open) June 30, 2006 Early registration deadline We strongly encourage making your room reservation early as September is still high season for tourism in Lausanne. For more information, registration and/or submit a contribution, please visit the conference website at http://www.foss4g2006.org Take advantage of the opportunity FOSS4G2006 offers to network with fellow geospatial data professionals, renewing old acquaintances and making new ones. Hope to see you there! Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-259-5473 From armin.burger at GMX.NET Thu Mar 30 13:20:23 2006 From: armin.burger at GMX.NET (Armin Burger) Date: Thu, 30 Mar 2006 23:20:23 +0200 Subject: Serving raster images via MapServer? In-Reply-To: <00ef01c65411$50288d90$959877c6@cts1149> Message-ID: Thom, I found it a perfect solution to store the tileindex vectors in a PostGIS database. It makes the use of tileindexes (image catalogs) more flexible. It's possible to set SQL filters on the tileindex layers. All updates are easily to achieve, just need to send SQL commands with whatever programming language you want to Postgis to reference a new image. Spatial indexes are updated automatically too. And you can keep additional metadata also in the database. The only requirement is to use 2 instead of one layer definition for the image catalog. Armin Thom DeCarlo wrote: > Hey Ed, > (So, you and Norm are over here, too. Small world!) > > This sounds good. I've been reading up on the gdaltindex and I think I > understand how to get it set up. But, what is this shptree thing you > mentioned? > Also, two other issues. First, the client is going to be continually > requesting map updates and the server will be getting frequent additions to > its repository. If the tile index is held in a shapefile will the MapServer > re-read that file when a new client request comes in or is it only read when > Mapserver starts? > Second, since I've already got a PostgreSQL server managing the vector data, > can the tile index be held in it, too? I'm going to have a lot of > overlapping imagery and it seems (to the novice that I am) that SQL queries > could find the best/newest data to serve out to the client. Or, is this just > unnecessary overhead? > From David.Fawcett at STATE.MN.US Thu Mar 30 14:11:08 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 30 Mar 2006 16:11:08 -0600 Subject: pixmap transparency png Message-ID: I am trying to use a png image as a pixmap symbol with transparency. MapServer 4.6.1 The symbol renders, but I can't get the background to go transparent. I looked up the color index in photoshop and it looks like the background color is number 255. My layer looks like: LAYER NAME spots STATUS DEFAULT TYPE POINT DATA 'spotfile' CLASS NAME "None" STYLE Symbol "greendot" END END END The symbol file looks like: SYMBOL NAME "greendot" TYPE PIXMAP IMAGE "DotGreen.png" TRANSPARENT 255 END Any ideas what could be going wrong? David. From pgiencke at GLC.ORG Thu Mar 30 14:44:32 2006 From: pgiencke at GLC.ORG (Pete Giencke) Date: Thu, 30 Mar 2006 17:44:32 -0500 Subject: Escaping Mapfile Quotes In-Reply-To: Message-ID: Steve, I mostly got it figured out. I was trying to use quotes within quotes for both a mapfile regex/filter (decided to "wait" on that one), and for the GROUP parameter (realized the '"foo" bar' notation worked for that). -pete -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Thursday, March 30, 2006 8:29 AM To: pgiencke at GLC.ORG; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Escaping Mapfile Quotes So you've got a string containing both double and single quotes? What parameter? Steve >>> Pete Giencke 03/29/06 4:47 PM >>> Hi, I'm trying to include quotes within quotes in my mapfile (long story), which obviously isn't working. In lieu of installing the CVS 4.9-dev version (bug 1637 addresses this issue iirc), has anyone dealt with this before and come up with a workaround or anything? It's a long shot, but I thought I'd try. -pete From hobu at IASTATE.EDU Thu Mar 30 16:04:20 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Thu, 30 Mar 2006 18:04:20 -0600 Subject: MapServer 4.8.3 Message-ID: All, I am pleased to announce the release of MapServer 4.8.3. This release fixes a critical issue with PIXMAP symbols, applies a PostGIS fix that missed the last release, and smoothes out a configure issue with Oracle Spatial. Releases in the 4.8 branch are maintenance releases, and changes are mostly confined to bug fixes. Here is a list of the fixes in this release: - PIXMAP symbols were broken causing GD to spin off forever (bug 1725) - Configure wasn't working for Oracle Spatial in the ORACLE_HOME case for 9i. - queryByAttributes for PostGIS layers was creating the wrong WHERE clause (bug 1629). The new version can be downloaded from shortly, full changelog can be browsed at , and binaries should start to show up from the usual suspects in the next few days. Howard From Dominicgusah at AOL.COM Thu Mar 30 16:48:40 2006 From: Dominicgusah at AOL.COM (Dominic Gusah) Date: Thu, 30 Mar 2006 19:48:40 EST Subject: Re.: Recommend a book Message-ID: Could anyone recommend a good Mapserver book for a beginner like me? Dominic -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at REFRACTIONS.NET Thu Mar 30 17:26:46 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Thu, 30 Mar 2006 17:26:46 -0800 Subject: Serving raster images via MapServer? In-Reply-To: <00ef01c65411$50288d90$959877c6@cts1149> Message-ID: Wow, Armin's solution (using PostGIS as the tileindex) is well nigh perfect. Have an image metadata table with nice information like capture date, sensor, whatnot, and the path reference to the raw data... then using the arbitrary SQL capabilities of Mapserver/ PostGIS set up to do the "latest-and-greatest" query. For a PoC you could just do a latest-limit-1 query. For a real one, you'll probably have to do some pl/pgsql in order to reduce the return set to just the minimal latest overlapping set. Could be v. v. slick. P. On Mar 30, 2006, at 7:47 AM, Thom DeCarlo wrote: > Hey Ed, > (So, you and Norm are over here, too. Small world!) > > This sounds good. I've been reading up on the gdaltindex and I think I > understand how to get it set up. But, what is this shptree thing you > mentioned? > Also, two other issues. First, the client is going to be continually > requesting map updates and the server will be getting frequent > additions to > its repository. If the tile index is held in a shapefile will the > MapServer > re-read that file when a new client request comes in or is it only > read when > Mapserver starts? > Second, since I've already got a PostgreSQL server managing the > vector data, > can the tile index be held in it, too? I'm going to have a lot of > overlapping imagery and it seems (to the novice that I am) that SQL > queries > could find the best/newest data to serve out to the client. Or, is > this just > unnecessary overhead? > > Thanks! > Thom > > -- > Thom DeCarlo > -------------------------------------------------------- > Any sufficiently advanced technology > is indistinguishable from a rigged demo. > > >> -----Original Message----- >> From: Ed McNierney >> Sent: Wednesday, March 29, 2006 3:36 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Serving raster images via >> MapServer? >> >> Thom - >> >> There are a few general principles for working with large raster data >> sets in MapServer. Some of these are generalizations that apply >> to many >> similar applications and aren't necessarily MapServer-specific. >> >> If your imagery is updated with any frequency, you'll want to >> simplify >> things and avoid lots of complex fiddling with the images. For most >> users, it's good to keep the data on disks organized in a manner >> that's >> consistent with the way you receive the data and updates. >> >> For performance reasons, GeoTIFF is almost always the preferred >> format. >> Compression generally costs you in performance, and particularly >> costs >> you in scalability; some decompressors run quickly but require >> lots of >> RAM. That's fine for a small number of users, but if you scale up >> you >> may suffer as you can run out of physical RAM quickly. Disk space is >> cheap - I never compress imagery. >> >> If you can structure your GeoTIFFs to be internally tiled (using >> gdal_translate) with overviews (via gdaladdo) you can get GeoTIFFs >> that >> can be read quickly at a variety of scale levels. >> >> Organize your GeoTIFFs using TILEINDEX shapefiles (via gdaltindex) >> and >> index those shapefiles with shptree. >> >> Reprojection of raster data is faster than many folks think, but it's >> much slower than reprojecting vector data. Where possible, store >> your >> imagery in the same projection as you serve it. >> >> Keeping things simple is good - it's really not that complicated. >> I'm >> currently providing WMS service (via MapServer) to just over 40 >> terabytes of imagery in around 500,000 image files, using roughly the >> sort of system described above. >> >> - Ed >> >> Ed McNierney >> President and Chief Mapmaker >> TopoZone.com / Maps a la carte, Inc. >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> ed at topozone.com >> (978) 251-4242 >> >> -----Original Message----- >> From: Thom DeCarlo >> Sent: Wednesday, March 29, 2006 3:06 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] Serving raster images via MapServer? >> >> Hi, >> I've got a fairly large archive of raster images that we would >> like to >> deliver to remote clients through WMS. I've still got much to learn >> about the technology. I thought I should ask the first obvious >> question >> here. >> >> Is there an accepted "best way" to organize and deliver imagery using >> MapServer? I have a PostgreSQL/PostGIS server set up to handle our >> vector data, but there doesn't seem to be support for raster data in >> that database. >> >> Thanks, >> Thom >> -- >> Thom DeCarlo >> -------------------------------------- >> That Which Does Not Kill Me >> Can Still Hurt Really Bad. From mikereilly2 at GMAIL.COM Thu Mar 30 17:36:27 2006 From: mikereilly2 at GMAIL.COM (Mike Reilly) Date: Thu, 30 Mar 2006 17:36:27 -0800 Subject: Re.: Recommend a book In-Reply-To: <25f.9994a72.315dd668@aol.com> Message-ID: Beginning Mapserver is a pretty good beginner book. It doesn't have a lot of the more advanced mapscript concepts or much on how to connect to mysql, postgres or oracle for spatial data, but it covers the basics nicely. On 3/30/06, Dominic Gusah wrote: > > > Could anyone recommend a good Mapserver book for a beginner like me? > > Dominic > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Thu Mar 30 18:32:29 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 30 Mar 2006 21:32:29 -0500 Subject: Serving raster images via MapServer? Message-ID: Paul - It's good to hear someone's really doing that, and I agree that Armin's approach is excellent. However, I would not want readers of this thread to think the PostGIS is the "best" way to manage TILEINDEXes, or that it is somehow necessary to get good performance. For standard TILEINDEX usage, the use of a shapefile index is perfectly fine. Armin's approach is intended for users who need an additional level of selection, by providing a way to create a TILEINDEX with *additional* attribute columns, giving the user control over which subset of images in a single TILEINDEX are displayed in response to a particular query. - 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 Paul Ramsey Sent: Thursday, March 30, 2006 8:27 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Serving raster images via MapServer? Wow, Armin's solution (using PostGIS as the tileindex) is well nigh perfect. Have an image metadata table with nice information like capture date, sensor, whatnot, and the path reference to the raw data... then using the arbitrary SQL capabilities of Mapserver/ PostGIS set up to do the "latest-and-greatest" query. For a PoC you could just do a latest-limit-1 query. For a real one, you'll probably have to do some pl/pgsql in order to reduce the return set to just the minimal latest overlapping set. Could be v. v. slick. P. On Mar 30, 2006, at 7:47 AM, Thom DeCarlo wrote: > Hey Ed, > (So, you and Norm are over here, too. Small world!) > > This sounds good. I've been reading up on the gdaltindex and I think I > understand how to get it set up. But, what is this shptree thing you > mentioned? > Also, two other issues. First, the client is going to be continually > requesting map updates and the server will be getting frequent > additions to its repository. If the tile index is held in a shapefile > will the MapServer re-read that file when a new client request comes > in or is it only read when Mapserver starts? > Second, since I've already got a PostgreSQL server managing the vector > data, can the tile index be held in it, too? I'm going to have a lot > of overlapping imagery and it seems (to the novice that I am) that SQL > queries could find the best/newest data to serve out to the client. > Or, is this just unnecessary overhead? > > Thanks! > Thom > > -- > Thom DeCarlo > -------------------------------------------------------- > Any sufficiently advanced technology > is indistinguishable from a rigged demo. > > >> -----Original Message----- >> From: Ed McNierney >> Sent: Wednesday, March 29, 2006 3:36 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Serving raster images via >> MapServer? >> >> Thom - >> >> There are a few general principles for working with large raster data >> sets in MapServer. Some of these are generalizations that apply to >> many similar applications and aren't necessarily MapServer-specific. >> >> If your imagery is updated with any frequency, you'll want to >> simplify things and avoid lots of complex fiddling with the images. >> For most users, it's good to keep the data on disks organized in a >> manner that's consistent with the way you receive the data and >> updates. >> >> For performance reasons, GeoTIFF is almost always the preferred >> format. >> Compression generally costs you in performance, and particularly >> costs you in scalability; some decompressors run quickly but require >> lots of RAM. That's fine for a small number of users, but if you >> scale up you may suffer as you can run out of physical RAM quickly. >> Disk space is cheap - I never compress imagery. >> >> If you can structure your GeoTIFFs to be internally tiled (using >> gdal_translate) with overviews (via gdaladdo) you can get GeoTIFFs >> that can be read quickly at a variety of scale levels. >> >> Organize your GeoTIFFs using TILEINDEX shapefiles (via gdaltindex) >> and index those shapefiles with shptree. >> >> Reprojection of raster data is faster than many folks think, but it's >> much slower than reprojecting vector data. Where possible, store >> your imagery in the same projection as you serve it. >> >> Keeping things simple is good - it's really not that complicated. >> I'm >> currently providing WMS service (via MapServer) to just over 40 >> terabytes of imagery in around 500,000 image files, using roughly the >> sort of system described above. >> >> - Ed >> >> Ed McNierney >> President and Chief Mapmaker >> TopoZone.com / Maps a la carte, Inc. >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> ed at topozone.com >> (978) 251-4242 >> >> -----Original Message----- >> From: Thom DeCarlo >> Sent: Wednesday, March 29, 2006 3:06 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] Serving raster images via MapServer? >> >> Hi, >> I've got a fairly large archive of raster images that we would like >> to deliver to remote clients through WMS. I've still got much to >> learn about the technology. I thought I should ask the first obvious >> question here. >> >> Is there an accepted "best way" to organize and deliver imagery using >> MapServer? I have a PostgreSQL/PostGIS server set up to handle our >> vector data, but there doesn't seem to be support for raster data in >> that database. >> >> Thanks, >> Thom >> -- >> Thom DeCarlo >> -------------------------------------- >> That Which Does Not Kill Me >> Can Still Hurt Really Bad. From wbr at DETEMOBIL.DE Thu Mar 30 22:46:16 2006 From: wbr at DETEMOBIL.DE (wbr) Date: Fri, 31 Mar 2006 08:46:16 +0200 Subject: UTM Projection Message-ID: Hi All, i got raster maps in UTM32 where the geotiff info shows the extent like this: Geotiff_Information: Version: 1 Key_Revision: 1.0 Tagged_Information: ModelTiepointTag (2,3): 0 0 0 32637056.7 5656558.91 0 ModelPixelScaleTag (1,3): 2.5 2.5 0 End_Of_Tags. Keyed_Information: GTRasterTypeGeoKey (Short,1): RasterPixelIsPoint End_Of_Keys. End_Of_Geotiff. Corner Coordinates: Upper Left (32637056.692, 5656558.906) Lower Left (32637056.692, 5649358.906) Upper Right (32649056.692, 5656558.906) Lower Right (32649056.692, 5649358.906) Center (32643056.692, 5652958.906) As you can see the easting value has a prefix 32 for the UTM Zone (The Source of information told me that this is common in Germany). Now my Question: I have converted a lot of Shapefiles in UTM32, but the easting values does not have this prefix, can i define a offset in the mapserver file to avoid this Problem ? Thanks, Wolfgang Brungert -- T-Mobile Deutschland GmbH Program and Budget Management (TRPD13-D) Roddestr. 12 48153 M?nster Phone: +49 251 977 4142 Fax: +49 251 977 4149 email: wolfgang.brungert at t-mobile.de PGP Fingerprint: B3F8 D368 5EEF 3873 3C4F 423C 171E F217 7CA4 3467 From baas at SPEERIT.NL Thu Mar 30 23:07:09 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Fri, 31 Mar 2006 09:07:09 +0200 Subject: MapServer 4.8.3 In-Reply-To: <6.2.3.4.2.20060330175820.02728be8@hobu.mail.iastate.edu> Message-ID: Howard Butler wrote: > All, > > I am pleased to announce the release of MapServer 4.8.3. This release > fixes a critical issue with PIXMAP symbols, applies a PostGIS fix that > missed the last release, and smoothes out a configure issue with Oracle > Spatial. Releases in the 4.8 branch are maintenance releases, and > changes are mostly confined to bug fixes. Here is a list of the fixes > in this release: Just like the last time: where can I download the Windows version with Oracle support? Because I cannot compile it myself. -- Jelmer From gisaalter at GMAIL.COM Fri Mar 31 00:21:21 2006 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Fri, 31 Mar 2006 10:21:21 +0200 Subject: Serve GeoTIFF with Mapserver Message-ID: Hi, Related to the raster serving images question, I'd like to ask if there's a reference for serving geotiff files ? What do I need to specify more in the map file for letting mapserver to do this. I've tried with the WCS tutorials but I think I'm missing out on something because I can't see my geotiff... -------------- next part -------------- An HTML attachment was scrubbed... URL: From listuser at HERZSYS.DE Fri Mar 31 00:35:54 2006 From: listuser at HERZSYS.DE (listuser HH) Date: Fri, 31 Mar 2006 10:35:54 +0200 Subject: Java Mapscript - querybyattribut In-Reply-To: <442B7098.3060209@gdv.com> Message-ID: Oliver Wesp wrote: > Dear List, > > I' struggling with queryByAttributes on an attribute field with german > umlauts using java mapscript. > The odd thing is that the same thing works fine with php mapscript and > when I use expressions in my mapfile. I'm using a shapefile as > datasource. > > Here is what I do: > > layer.queryByAttributes(map,"KREIS_NAME", "/S?dliche Weinstra?e/", > mapscriptConstants.MS_MULTIPLE); > layer.open(); > System.out.println( "Result Count: " +layer.getNumResults() ); > layer.close(); > > The result is always null while replacing the qstring with something > that doesn't contain special characters (e.g. > 'Mainz-Bingen') works fine. > > As noted above the following layer definition in a mapfile works fine > > LAYER > NAME kreis > STATUS DEFAULT > TYPE polygon > DATA "/tmp/subset" > TEMPLATE "kreis.html" > CLASSITEM KREIS_NAME > CLASS > NAME Boundary > COLOR 128 128 0 > OUTLINECOLOR 0 0 0 > EXPRESSION /S?dliche Weinstra?e/ > END > END > > > but this does not: > > layer.setClassitem("KREIS_NAME"); > classObj cl = new classObj(layer); > cl.setName("Classname"); > cl.setExpression("/S?dliche Weinstra?e/"); > > I use Mapserver 4.8.1 on W2k, Tomcat 5.0.28. > > I can provide some sample data, just in case someone likes to reproduce. > > Any help is appreciated. > > best regards > Oliver Hi Oliver, only a guess but there seems to a difference in the string encoding between the mapserver lib in the system and java. Try to convert the String before you set the expression in your code. (-> String( byte bytes[], String ) throws UnsupportedEncodingException) Please let me if this helps or how you solved it. Regards, Norbert From fabio.dovidio at PLANETEK.IT Fri Mar 31 00:40:00 2006 From: fabio.dovidio at PLANETEK.IT (Fabio D' Ovidio) Date: Fri, 31 Mar 2006 10:40:00 +0200 Subject: MapServer & MapGuide Message-ID: Dear list, I have visited the new Web Site of Open Source Geospatial Foundation. In this page : https://mapguide.osgeo.org/ I have noticed that Autodesk has given to the community its MapGuide Product. Now, there is no more MapServer geospatial foundation and I have read about this : http://veryspatial.com/?p=688 I'm a beat confused. I want to know : Will MapServer be integrated with Autodesk MapGuide to become a MapServer Enterprise? In this case, Will MapServer Enterprise be completely Open Source ? Could you compare MapServer and MapGuide ? Thank you . ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From ml.dje at GEOCONTENT.DE Fri Mar 31 00:39:46 2006 From: ml.dje at GEOCONTENT.DE (Dirk Jesko) Date: Fri, 31 Mar 2006 10:39:46 +0200 Subject: UTM Projection In-Reply-To: <442CD038.6060703@detemobil.de> Message-ID: Hi, if you specify the projection within the map file explicitly (not by epsg code) as Transverse Mercator ("proj=tmerc") and set the false easting (x_0 parameter) to 32500000 (?) it should work. Something like this probably PROJECTION "proj=tmerc" "lon_0=9.0" "x_0=32500000" # maybe something else "lat_0=0" "y_0=0" "ellps=wgs84" "datum=wgs84" "units=m" "k_0=0.9996" "no_defs" END Let me know, if works. The other option would be to rewrite the GeoTIFF-Header using geotifcp. Regards, Dirk Jesko wbr wrote: >Hi All, > >i got raster maps in UTM32 where the geotiff info shows the extent like >this: > >Geotiff_Information: > Version: 1 > Key_Revision: 1.0 > Tagged_Information: > ModelTiepointTag (2,3): > 0 0 0 > 32637056.7 5656558.91 0 > ModelPixelScaleTag (1,3): > 2.5 2.5 0 > End_Of_Tags. > Keyed_Information: > GTRasterTypeGeoKey (Short,1): RasterPixelIsPoint > End_Of_Keys. > End_Of_Geotiff. > > >Corner Coordinates: >Upper Left (32637056.692, 5656558.906) >Lower Left (32637056.692, 5649358.906) >Upper Right (32649056.692, 5656558.906) >Lower Right (32649056.692, 5649358.906) >Center (32643056.692, 5652958.906) > >As you can see the easting value has a prefix 32 for the UTM Zone (The >Source of information told me that this is common in Germany). > >Now my Question: >I have converted a lot of Shapefiles in UTM32, but the easting values >does not have this prefix, can i define a offset in the mapserver file >to avoid this Problem ? > >Thanks, >Wolfgang Brungert > > From adams at TERRESTRIS.DE Fri Mar 31 00:46:04 2006 From: adams at TERRESTRIS.DE (Till Adams) Date: Fri, 31 Mar 2006 10:46:04 +0200 Subject: MapServer & MapGuide In-Reply-To: <442D0700.6761.3B4023@fabio.dovidio.planetek.it> Message-ID: Fabio, no, mapserver will persist as mapserver and mapguide is now called "Mapguide Open Source" and also released as OS. The plan about a mapserver "Enterprise" and a mapserver "Chitah" died. So: Mapserver persist and not become anything else than OS. Regards, Till Fabio D' Ovidio schrieb: > Dear list, > I have visited the new Web Site of Open Source Geospatial Foundation. > > In this page : https://mapguide.osgeo.org/ > I have noticed that Autodesk has given to the community its MapGuide > Product. > > Now, there is no more MapServer geospatial foundation and I have read > about this : > http://veryspatial.com/?p=688 > > I'm a beat confused. I want to know : Will MapServer be integrated > with Autodesk MapGuide to become a MapServer Enterprise? In this > case, Will MapServer Enterprise be completely Open Source ? > > Could you compare MapServer and MapGuide ? > > Thank you . > > > ******************************************************************************************** > graphic > * > * > * Ing. Fabio D'Ovidio* > WebGIS Staff > Planetek Italia Srl > via Massaua, 12 - 70123 Bari - Italy > web : http ://www.planetek.it > e-mail : dovidio at planetek.it > > ******************************************************************************************** -- ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From nbarker at RSINC.COM Fri Mar 31 00:52:13 2006 From: nbarker at RSINC.COM (Norman Barker) Date: Fri, 31 Mar 2006 09:52:13 +0100 Subject: Serve GeoTIFF with Mapserver Message-ID: ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steven De Vriendt Sent: Friday, March 31, 2006 9:21 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Serve GeoTIFF with Mapserver Hi, Related to the raster serving images question, I'd like to ask if there's a reference for serving geotiff files ? What do I need to specify more in the map file for letting mapserver to do this. I've tried with the WCS tutorials but I think I'm missing out on something because I can't see my geotiff... Steven, Any chance you can post your map file, and a sample (small) geotiff? I have used MapServer WCS a lot, and it is very good / stable. Gail Millin and myself wrote a tutorial here http://mapserver.gis.umn.edu/docs/howto/WCSServerFormatHowTo that may be of use as well. Norman -------------- next part -------------- An HTML attachment was scrubbed... URL: From wbr at DETEMOBIL.DE Fri Mar 31 00:56:21 2006 From: wbr at DETEMOBIL.DE (wbr) Date: Fri, 31 Mar 2006 10:56:21 +0200 Subject: UTM Projection In-Reply-To: <442CEAD2.4030204@geocontent.de> Message-ID: Hi Dirk, Dirk Jesko schrieb: > Hi, > > if you specify the projection within the map file explicitly (not by > epsg code) as Transverse Mercator ("proj=tmerc") and set the false > easting (x_0 parameter) to 32500000 (?) it should work. Something like > this probably > > PROJECTION > "proj=tmerc" > "lon_0=9.0" > "x_0=32500000" # maybe something else > "lat_0=0" > "y_0=0" > "ellps=wgs84" > "datum=wgs84" > "units=m" > "k_0=0.9996" > "no_defs" > END it works ! > > Let me know, if works. > > The other option would be to rewrite the GeoTIFF-Header using geotifcp. > > Regards, > Dirk Jesko > Thanks, Wolfgang Brungert -- T-Mobile Deutschland GmbH Program and Budget Management (TRPD13-D) Roddestr. 12 48153 M?nster Phone: +49 251 977 4142 Fax: +49 251 977 4149 email: wolfgang.brungert at t-mobile.de PGP Fingerprint: B3F8 D368 5EEF 3873 3C4F 423C 171E F217 7CA4 3467 From fabio.dovidio at PLANETEK.IT Fri Mar 31 01:00:14 2006 From: fabio.dovidio at PLANETEK.IT (Fabio D' Ovidio) Date: Fri, 31 Mar 2006 11:00:14 +0200 Subject: (Fwd) Re: [UMN_MAPSERVER-USERS] MapServer & MapGuide Message-ID: A Question : Wich Open Source product the user have to choose ??? If two projects othe same kind exist in the same community, I think a comparison is necessary ? Don't you think ? Which are the differencies ? ------- Forwarded message follows ------- Date sent: Fri, 31 Mar 2006 10:46:04 +0200 From: Till Adams To: fabio.dovidio at PLANETEK.IT Copies to: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer & MapGuide Keywords: Fabio, no, mapserver will persist as mapserver and mapguide is now called "Mapguide Open Source" and also released as OS. The plan about a mapserver "Enterprise" and a mapserver "Chitah" died. So: Mapserver persist and not become anything else than OS. Regards, Till Fabio D' Ovidio schrieb: > Dear list, > I have visited the new Web Site of Open Source Geospatial Foundation. > > In this page : https://mapguide.osgeo.org/ > I have noticed that Autodesk has given to the community its MapGuide > Product. > > Now, there is no more MapServer geospatial foundation and I have read > about this : > http://veryspatial.com/?p=688 > > I'm a beat confused. I want to know : Will MapServer be integrated > with Autodesk MapGuide to become a MapServer Enterprise? In this > case, Will MapServer Enterprise be completely Open Source ? > > Could you compare MapServer and MapGuide ? > > Thank you . > > > ******************************************************************************************** > graphic > * > * > * Ing. Fabio D'Ovidio* > WebGIS Staff > Planetek Italia Srl > via Massaua, 12 - 70123 Bari - Italy > web : http ://www.planetek.it > e-mail : dovidio at planetek.it > > ******************************************************************************************** -- ****************************************** * released: AmeiN! ArcMap-Export-2-UMN * * LiveLinux 'WebGIS on CD' * * http://www.terrestris.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de ------- End of forwarded message ------- ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: planetek.gif Date: 28 Feb 2006, 16:15 Size: 1899 bytes. Type: Unknown -------------- next part -------------- A non-text attachment was scrubbed... Name: planetek.gif Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From gisaalter at GMAIL.COM Fri Mar 31 01:05:59 2006 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Fri, 31 Mar 2006 11:05:59 +0200 Subject: Serve GeoTIFF with Mapserver In-Reply-To: Message-ID: Norman, thanks for your quick reply. I've did some cut and paste work based on your tutorial, thanks ! This is my mapfile, I think 10meg is quite big for posting here, so I think I have to leave you with this mapfile...Thanks for helping out ! MAP NAME DEMO STATUS ON SIZE 500 500 SYMBOLSET ../etc/symbols.sym EXTENT 77336.359625 189988.500250 90937.297125 201812.968625 UNITS METERS SHAPEPATH "/ms4w/apps/chameleon/samples/data/topo" IMAGECOLOR 125 125 125 FONTSET ../etc/fonts.txt TRANSPARENT FALSE PROJECTION "init=epsg:31300" END OUTPUTFORMAT NAME GEOTIFF DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "RGB" EXTENSION "tif" END WEB IMAGEPATH "c:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "Aalter_WMS" "wms_onlineresource" " http://10.109.2.100/cgi-bin/mapserv.exe?map=/ms4w/apps/chameleon/samples/map/wmsserver.map &" "wcs_description" "Orthospot mosaic" "wcs_name" "TOPO" "wcs_label" "Topokaart" "ows_srs" "EPSG:31300" "ows_extent" "77336.359625 189988.500250 90937.297125 201812.968625" "wcs_resolution" "381 381" "wcs_bandcount" "1" "wcs_formats" "GEOTIFF" "wcs_nativeformat" "8-bit GeoTIF" END END LAYER NAME topokaart DATA t136n.tif TYPE RASTER STATUS ON PROCESSING "SCALE=AUTO" DUMP TRUE METADATA "wms_title" "AALTER" END TRANSPARENCY 0 OFFSITE 255 255 255 PROJECTION "init=epsg:31300" END END END On 3/31/06, Norman Barker wrote: > > > > > ------------------------------ > > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *Steven De Vriendt > *Sent:* Friday, March 31, 2006 9:21 AM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] Serve GeoTIFF with Mapserver > > > > Hi, > > > > Related to the raster serving images question, I'd like to ask if there's > a reference > > for serving geotiff files ? What do I need to specify more in the map file > > for letting mapserver to do this. I've tried with the WCS tutorials but I > > think I'm missing out on something because I can't see my geotiff... > > > > Steven, > > > > Any chance you can post your map file, and a sample (small) geotiff? I > have used MapServer WCS a lot, and it is very good / stable. > > > > Gail Millin and myself wrote a tutorial here > http://mapserver.gis.umn.edu/docs/howto/WCSServerFormatHowTo that may be > of use as well. > > > > Norman > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nbarker at RSINC.COM Fri Mar 31 01:10:50 2006 From: nbarker at RSINC.COM (Norman Barker) Date: Fri, 31 Mar 2006 10:10:50 +0100 Subject: Serve GeoTIFF with Mapserver Message-ID: ________________________________ From: Steven De Vriendt [mailto:gisaalter at gmail.com] Sent: Friday, March 31, 2006 10:06 AM To: Norman Barker Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Serve GeoTIFF with Mapserver Norman, thanks for your quick reply. I've did some cut and paste work based on your tutorial, thanks ! This is my mapfile, I think 10meg is quite big for posting here, so I think I have to leave you with this mapfile...Thanks for helping out ! MAP NAME DEMO STATUS ON SIZE 500 500 SYMBOLSET ../etc/symbols.sym EXTENT 77336.359625 189988.500250 90937.297125 201812.968625 UNITS METERS SHAPEPATH "/ms4w/apps/chameleon/samples/data/topo" IMAGECOLOR 125 125 125 FONTSET ../etc/fonts.txt TRANSPARENT FALSE PROJECTION "init=epsg:31300" END OUTPUTFORMAT NAME GEOTIFF DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "RGB" EXTENSION "tif" END WEB IMAGEPATH "c:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "Aalter_WMS" "wms_onlineresource" " http://10.109.2.100/cgi-bin/mapserv.exe?map=/ms4w/apps/chameleon/samples /map/wmsserver.map &" "wcs_description" "Orthospot mosaic" "wcs_name" "TOPO" "wcs_label" "Topokaart" "ows_srs" "EPSG:31300" "ows_extent" "77336.359625 189988.500250 90937.297125 201812.968625" "wcs_resolution" "381 381" "wcs_bandcount" "1" "wcs_formats" "GEOTIFF" "wcs_nativeformat" "8-bit GeoTIF" END END LAYER NAME topokaart DATA t136n.tif TYPE RASTER STATUS ON PROCESSING "SCALE=AUTO" DUMP TRUE METADATA "wms_title" "AALTER" END TRANSPARENCY 0 OFFSITE 255 255 255 PROJECTION "init=epsg:31300" END END END On 3/31/06, Norman Barker wrote: ________________________________ From: UMN MapServer Users List [mailto: MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steven De Vriendt Sent: Friday, March 31, 2006 9:21 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Serve GeoTIFF with Mapserver Hi, Related to the raster serving images question, I'd like to ask if there's a reference for serving geotiff files ? What do I need to specify more in the map file for letting mapserver to do this. I've tried with the WCS tutorials but I think I'm missing out on something because I can't see my geotiff... Steven, Any chance you can post your map file, and a sample (small) geotiff? I have used MapServer WCS a lot, and it is very good / stable. Gail Millin and myself wrote a tutorial here http://mapserver.gis.umn.edu/docs/howto/WCSServerFormatHowTo that may be of use as well. Norman Hi Steven, You seem to be mixed up between a WMS and WCS (see the processing option in your map file, and the geotiff format with RGB), you can send the 10mb tiff to me directly (not to the list) and I will see if I can get it working, and post back the map file. I think the more WCS map file examples we can get out the more it will be adopted. Norman -------------- next part -------------- An HTML attachment was scrubbed... URL: From gisaalter at GMAIL.COM Fri Mar 31 01:20:35 2006 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Fri, 31 Mar 2006 11:20:35 +0200 Subject: Serve GeoTIFF with Mapserver In-Reply-To: Message-ID: Norman You can find a zip file containing the geotiff and tfw file on this url: http://www.9880.be/topo/topo.zip Thanks for helping out ! Steven On 3/31/06, Norman Barker wrote: > > > > > ------------------------------ > > *From:* Steven De Vriendt [mailto:gisaalter at gmail.com] > *Sent:* Friday, March 31, 2006 10:06 AM > *To:* Norman Barker > *Cc:* MAPSERVER-USERS at lists.umn.edu > *Subject:* Re: [UMN_MAPSERVER-USERS] Serve GeoTIFF with Mapserver > > > > > > Norman, thanks for your quick reply. I've did some cut and paste work > based on your tutorial, thanks ! > > This is my mapfile, I think 10meg is quite big for posting here, so I > think I have to leave you with this mapfile...Thanks for helping out ! > > > > MAP > NAME DEMO > STATUS ON > SIZE 500 500 > SYMBOLSET ../etc/symbols.sym > EXTENT 77336.359625 189988.500250 90937.297125 201812.968625 > UNITS METERS > SHAPEPATH "/ms4w/apps/chameleon/samples/data/topo" > IMAGECOLOR 125 125 125 > FONTSET ../etc/fonts.txt > TRANSPARENT FALSE > > PROJECTION > "init=epsg:31300" > END > > OUTPUTFORMAT > NAME GEOTIFF > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE "RGB" > EXTENSION "tif" > END > > > WEB > IMAGEPATH "c:/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wms_title" "Aalter_WMS" > "wms_onlineresource" "http://10.109.2.100/cgi-bin/mapserv.exe?map=/ms4w/apps/chameleon/samples/map/wmsserver.map > &" > "wcs_description" "Orthospot mosaic" > "wcs_name" "TOPO" > "wcs_label" "Topokaart" > "ows_srs" "EPSG:31300" > "ows_extent" "77336.359625 189988.500250 90937.297125 201812.968625" > "wcs_resolution" "381 381" > "wcs_bandcount" "1" > "wcs_formats" "GEOTIFF" > "wcs_nativeformat" "8-bit GeoTIF" > > > END > END > > LAYER > NAME topokaart > DATA t136n.tif > TYPE RASTER > STATUS ON > PROCESSING "SCALE=AUTO" > DUMP TRUE > METADATA > > "wms_title" "AALTER" > END > TRANSPARENCY 0 > OFFSITE 255 255 255 > PROJECTION > "init=epsg:31300" > END > > END > > > > END > > > > > > > > > > > On 3/31/06, *Norman Barker* wrote: > > > > > ------------------------------ > > *From:* UMN MapServer Users List [mailto: MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *Steven De Vriendt > *Sent:* Friday, March 31, 2006 9:21 AM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] Serve GeoTIFF with Mapserver > > > > Hi, > > > > Related to the raster serving images question, I'd like to ask if there's > a reference > > for serving geotiff files ? What do I need to specify more in the map file > > for letting mapserver to do this. I've tried with the WCS tutorials but I > > think I'm missing out on something because I can't see my geotiff... > > > > Steven, > > > > Any chance you can post your map file, and a sample (small) geotiff? I > have used MapServer WCS a lot, and it is very good / stable. > > > > Gail Millin and myself wrote a tutorial here > http://mapserver.gis.umn.edu/docs/howto/WCSServerFormatHowTo that may be > of use as well. > > > > Norman > > > > Hi Steven, > > > > You seem to be mixed up between a WMS and WCS (see the processing option > in your map file, and the geotiff format with RGB), you can send the 10mb > tiff to me directly (not to the list) and I will see if I can get it > working, and post back the map file. I think the more WCS map file examples > we can get out the more it will be adopted. > > > > Norman > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabio.dovidio at PLANETEK.IT Fri Mar 31 01:57:37 2006 From: fabio.dovidio at PLANETEK.IT (Fabio D' Ovidio) Date: Fri, 31 Mar 2006 11:57:37 +0200 Subject: MapServer ArcIMS and MapGUIDE Message-ID: Is possibile to read any comparison between MapServer MapGuide and ArcIMS ? ******************************************************************************************** Ing. Fabio D'Ovidio WebGIS Staff Planetek Italia Srl via Massaua, 12 - 70123 Bari - Italy web : http ://www.planetek.it e-mail : dovidio at planetek.it ******************************************************************************************** From nbarker at RSINC.COM Fri Mar 31 03:01:18 2006 From: nbarker at RSINC.COM (Norman Barker) Date: Fri, 31 Mar 2006 12:01:18 +0100 Subject: Serve GeoTIFF with Mapserver Message-ID: ________________________________ From: Steven De Vriendt [mailto:gisaalter at gmail.com] Sent: Friday, March 31, 2006 10:21 AM To: Norman Barker Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Serve GeoTIFF with Mapserver Norman You can find a zip file containing the geotiff and tfw file on this url: http://www.9880.be/topo/topo.zip Thanks for helping out ! Steven On 3/31/06, Norman Barker wrote: Steven, I have created a WCS server here MapFile http://217.37.214.210/topo/t136n.map GETCAPABILITIES http://217.37.214.210/cgi-bin/mapserv.cgi?map=/var/www/html/topo/t136n.m ap&REQUEST=GetCapabilities&SERVICE=WCS&VERSION=1.0.0 DESCRIBECOVERAGE http://217.37.214.210/cgi-bin/mapserv.cgi?map=/var/www/html/topo/t136n.m ap&REQUEST=DescribeCoverage&Coverage=topo&SERVICE=WCS&VERSION=1.0.0 GETCOVERAGE http://217.37.214.210/cgi-bin/mapserv.cgi?map=/var/www/html/topo/t136n.m ap&REQUEST=GetCoverage&Coverage=topo&SERVICE=WCS&VERSION=1.0.0&BBOX=3.27 ,51.14,3.38,51.17&CRS=EPSG:4326&FORMAT=GEOTIFF&WIDTH=1000&HEIGHT=1000 (note you can also do RESX, RESY instead of width and height) Looks good to me! Let me know I can help you any more Norman -------------- next part -------------- An HTML attachment was scrubbed... URL: From gisaalter at GMAIL.COM Fri Mar 31 04:19:52 2006 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Fri, 31 Mar 2006 14:19:52 +0200 Subject: Serve GeoTIFF with Mapserver In-Reply-To: Message-ID: Norman, Thanks a million, I still have to figure some things out but now with this help I think I can't do no wrong. Thanks a lot ! I'm not familiar with the WCS specs, so I still have to learn quite a bit. Anyway, thanks for taking up your time for helping me out. Cheers ! Steven On 3/31/06, Norman Barker wrote: > > > > > ------------------------------ > > *From:* Steven De Vriendt [mailto:gisaalter at gmail.com] > *Sent:* Friday, March 31, 2006 10:21 AM > > *To:* Norman Barker > *Cc:* MAPSERVER-USERS at lists.umn.edu > *Subject:* Re: [UMN_MAPSERVER-USERS] Serve GeoTIFF with Mapserver > > > > Norman > > You can find a zip file containing the geotiff and tfw file on this url: > > http://www.9880.be/topo/topo.zip > > > Thanks for helping out ! > > Steven > > On 3/31/06, *Norman Barker* wrote: > > > > > > Steven, > > I have created a WCS server here > > MapFile > > http://217.37.214.210/topo/t136n.map > > GETCAPABILITIES > > > http://217.37.214.210/cgi-bin/mapserv.cgi?map=/var/www/html/topo/t136n.map&REQUEST=GetCapabilities&SERVICE=WCS&VERSION=1.0.0 > > DESCRIBECOVERAGE > > > http://217.37.214.210/cgi-bin/mapserv.cgi?map=/var/www/html/topo/t136n.map&REQUEST=DescribeCoverage&Coverage=topo&SERVICE=WCS&VERSION=1.0.0 > > GETCOVERAGE > > > http://217.37.214.210/cgi-bin/mapserv.cgi?map=/var/www/html/topo/t136n.map&REQUEST=GetCoverage&Coverage=topo&SERVICE=WCS&VERSION=1.0.0&BBOX=3.27,51.14,3.38,51.17&CRS=EPSG:4326&FORMAT=GEOTIFF&WIDTH=1000&HEIGHT=1000 > > (note you can also do RESX, RESY instead of width and height) > > Looks good to me! > > Let me know I can help you any more > > Norman > -------------- next part -------------- An HTML attachment was scrubbed... URL: From naci0002 at UMN.EDU Fri Mar 31 11:04:47 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Fri, 31 Mar 2006 13:04:47 -0600 Subject: Web application error In-Reply-To: <442CF13C.10209@ed.ac.uk> Message-ID: Sorry wasn't paying attention. :) I don't see a problem on quick look but try simplifying your layer (as a test) and see if it works: LAYER # query layer using the dedloc PostgreSQL view CONNECTIONTYPE postgis NAME saint_dedications CONNECTION "user=erdb13 dbname=stdraft" DATA "geom from dedloc using unique dr using SRID=27700" STATUS DEFAULT DEBUG ON TYPE POINT TOLERANCE 25 CLASS NAME "Dedications" TEMPLATE "result.html" DEBUG ON STYLE SYMBOL "circle" SIZE 5 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END END # test query layer Note the lower case on the DATA parameter... I don't know if that's still a problem. If that still doesn't work, check the PostGIS log (if you have logging enabled)... Also, I don't know which version of MapServer you're using. Try upgrading to 4.8.3 (or downgrading to 4.6.x). You can also do a search on bugzilla to see if there's any open bugs that pertain to your problem. Good luck! -Perry Dave Stone wrote: > The layer addressing the PostGIS view was in the original post, but in > case the problem is elsewhere in the .map file, I've attached the whole > thing. Also the uig.html template which displays the map. The query > template (result.html) you have below. Thanks for your patience; I > really appreciate your support. > > Cheers, > > Dave > > Pericles S. Nacionales wrote: >> Dave, >> >> Can you please post your mapfile or at least the object corresponding >> to the layer you're querying? We can't answer your question without >> the details. >> >> -Perry >> >> Dave Stone wrote: >>> Apologies for emailing direct -- LISTSERV keeps rejecting my posts as >>> duplicates. >>> >>> No joy so far, I'm afraid, Perry. You were right about the PostGIS >>> names being upper-case, so I've >>> changed them all to lower-case, and the result.html query template >>> now looks like this: >>> >>> # query template >>> >>> >>> MapServer - ItemQuery >>> >>> >>> >>> >>> Case 1: Simple ItemQuery >>> With QueryMap >>> >>>

>>> >>> This is just a simple dump of a few attributes for an individual >>> location >>> in the test suites parishes layer: >>> >>>

>>> >>> Place Name: [placename]
>>> Qualifying Name: [qualifyingname]
>>> Location Type: [locationtype]
>>> Grid Reference: [locationgridref]
>>> Religious Order: [religiousorder]
>>> >>>

>>> >>> and here's the map of the query results (you can zoom to a set of >>> results as well): >>> >>>

>>> >>> >>> >>> I had TOLERANCE set to 5 (pixels) for the PostGIS layer originally, >>> and tried upping it to 25 in >>> hope that it would make it easier to 'hit the spot' when clicking on >>> the dots on the map. But no >>> output -- just a blank page titled 'MapServer Message'. >>> >>> I also tried setting DEBUG ON for the layer and class objects, but >>> there wasn't anything significant >>> in the log file, just some map extent parameters. >>> >>> Thanks for the pointer to the 'flashy' mapfile reference; there's >>> some useful examples in there. >>> >>> Cheers, >>> >>> Dave >>> >>> ----- Original Message ----- From: "Pericles S. Nacionales" >>> >>> To: "Dave Stone" >>> Cc: >>> Sent: Monday, March 27, 2006 6:25 PM >>> Subject: Re: [UMN_MAPSERVER-USERS] Web application error >>> >>> >>>> Dave, >>>> >>>> What does your result.html query template look like? Did you >>>> capitalize all >>>> the attribute names (as in "[ATT_NAME]")? If so, make them small >>>> caps for >>>> PostGIS tables--[att_name]. >>>> >>>> Also, here's another hint: Use the TOLERANCE keyword... >>>> http://mapserver.gis.umn.edu/docs/reference/mapfile/layer >>>> >>>> Or if you prefer a fancier mapfile reference, check >>>> http://umn.mapserver.ch/index_en.php >>>> >>>> Good luck! >>>> -Perry >>>> >>>> On Monday 27 March 2006 08:07, Dave Stone wrote: >>>>> I am having problems adapting the class-level query template >>>>> technique in >>>>> Example 3.1 of the MapServer Tutorial. >>>>> >>>>> Essentially, I want to do as the tutorial example does, i.e. be >>>>> able to >>>>> click on a point feature on the map, and have a query template open >>>>> up and >>>>> display attributes for the point. >>>>> >>>>> The only significant difference between my setup and the example's >>>>> (that I >>>>> can see) is that the example queries a layer (cities) whose data >>>>> source is >>>>> a shapefile containing polygons, whereas my source is points in a >>>>> PostGIS >>>>> view (dedloc). The .map file segment for the layer is: >>>>> >>>>> LAYER # query layer using the dedloc PostgreSQL view >>>>> CONNECTIONTYPE postgis >>>>> NAME saint_dedications >>>>> CONNECTION "user=erdb13 dbname=stdraft" >>>>> DATA "geom from dedloc USING UNIQUE dr USING SRID=27700" >>>>> STATUS DEFAULT >>>>> DEBUG ON >>>>> TYPE POINT >>>>> FILTERITEM dedicationtype >>>>> FILTER "dedicationtype='%dtype%'" >>>>> TOLERANCE 5 >>>>> CLASS >>>>> NAME "Dedications" >>>>> MINSCALE 2000000 >>>>> TEMPLATE "result.html" >>>>> STYLE >>>>> SYMBOL "circle" >>>>> SIZE 5 >>>>> COLOR 255 0 0 >>>>> OUTLINECOLOR 0 0 0 >>>>> END >>>>> END >>>>> CLASS >>>>> MAXSCALE 1900000 >>>>> TEMPLATE "result.html" >>>>> STYLE >>>>> SYMBOL "circle" >>>>> SIZE 10 >>>>> COLOR 255 0 0 >>>>> OUTLINECOLOR 0 0 0 >>>>> END >>>>> END >>>>> END # test query layer >>>>> >>>>> >>>>> and the URL invoking the query template is: >>>>> >>>>> http://drayton.ucs.ed.ac.uk/cgi-bin/mapserv?imgxy=300.0+300.0& >>>>> imgext=217114.636666+624099.796666+387452.636666+794437.796666& >>>>> map=%2Fvar%2Fwww%2Fhtml%2Fsaints%2Fdata%2Fparish%2Fuig.map& >>>>> savequery=true&mode=browse&img.x=320&img.y=271&zoomdir=0&zoomsize=4& >>>>> layer=parish_labels&layer=parish&layer=saint_dedications&mode=query& >>>>> dtype=Altar+dedication >>>>> >>>>> What I get when I click on a dot on the map displaying >>>>> saint_dedications is >>>>> a web page headed 'MapServer Message', but then no message, no >>>>> attributes >>>>> for the dot I clicked, nothing! >>>>> >>>>> Can anyone suggest what might be going wrong? The query template >>>>> (result.html) is very simple; like Example 3.1, it just displays >>>>> boilerplate HTML and attribute values for the dot that was clicked. >>>> >>>> -- >>>> Pericles S. Nacionales >>>> Conservation Biology Program >>>> University of Minnesota >>>> e-mail: naci0002 at umn.edu >>>> >>> >>> >>> . >>> >> From David.Fawcett at STATE.MN.US Fri Mar 31 13:39:22 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 31 Mar 2006 15:39:22 -0600 Subject: Mysql ogr Message-ID: Can anyone provide an example layer definition that uses OGR make a direct connection to mysql? (as opposed to using odbc) Thanks, David. From banders at REFRACTIONS.NET Fri Mar 31 14:57:29 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Fri, 31 Mar 2006 14:57:29 -0800 Subject: setting STYLE with CGI parameters Message-ID: Hi All, I am trying to use CGI parameters to dynamically set the WIDTH and OUTLINECOLOR within a STYLE tag. I've tried various formats for the CGI parameters, including something like: &map_mylayer_class_style_1_width=3 ... but the parameters are being ignored. Is it possible to use CGI parameters to set values within a STYLE element? How? Brock I'm using Mapserver 4.6.2. A piece of my map file: LAYER NAME "mylayer" CONNECTIONTYPE postgis CONNECTION "..." DATA "..." CLASS EXPRESSION ([pop] > 5000) NAME "above 5000" STYLE COLOR 0 197 255 END #end style STYLE OUTLINECOLOR 0 197 255 WIDTH 5 END #end style END #end class TYPE polygon STATUS DEFAULT PROJECTION "init=epsg:4269" END #projection END #LAYER From pramsey at REFRACTIONS.NET Fri Mar 31 15:11:35 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Fri, 31 Mar 2006 15:11:35 -0800 Subject: setting STYLE with CGI parameters In-Reply-To: <442DB3D9.2060903@refractions.net> Message-ID: I think you have to enumerate all the unnameable elements for which there are potentially more than one entry. (Not sure if we count from 0 or 1) &map_mylayer_class_0_style_0_width=3 P On 31-Mar-06, at 2:57 PM, Brock Anderson wrote: > Hi All, > > I am trying to use CGI parameters to dynamically set the WIDTH and > OUTLINECOLOR within a STYLE tag. I've tried various formats for > the CGI parameters, including something like: > > &map_mylayer_class_style_1_width=3 > > ... but the parameters are being ignored. Is it possible to use > CGI parameters to set values within a STYLE element? How? > > Brock > > I'm using Mapserver 4.6.2. A piece of my map file: > > LAYER > NAME "mylayer" > CONNECTIONTYPE postgis > CONNECTION "..." > DATA "..." > > CLASS > EXPRESSION ([pop] > 5000) > NAME "above 5000" > STYLE > COLOR 0 197 255 > END #end style > STYLE > OUTLINECOLOR 0 197 255 > WIDTH 5 > END #end style > END #end class > > TYPE polygon > STATUS DEFAULT > PROJECTION > "init=epsg:4269" > END #projection > END #LAYER From banders at REFRACTIONS.NET Fri Mar 31 15:22:21 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Fri, 31 Mar 2006 15:22:21 -0800 Subject: setting STYLE with CGI parameters In-Reply-To: Message-ID: Thanks Paul. Near the bottom of this page: http://mapserver.gis.umn.edu/docs/reference/cgi/controls it says if there is only one class, then omit the index. I actually have the CGI parameters working to set outlinecolor directly within the class. I use a query string parameter like this: &map_mylayer_class_outlinecolor=... I just can't seem to get into the STYLE elemen to set WIDTH. Brock Paul Ramsey wrote: > I think you have to enumerate all the unnameable elements for which > there are potentially more than one entry. (Not sure if we count from > 0 or 1) > > &map_mylayer_class_0_style_0_width=3 > > P > > On 31-Mar-06, at 2:57 PM, Brock Anderson wrote: > >> Hi All, >> >> I am trying to use CGI parameters to dynamically set the WIDTH and >> OUTLINECOLOR within a STYLE tag. I've tried various formats for the >> CGI parameters, including something like: >> >> &map_mylayer_class_style_1_width=3 >> >> ... but the parameters are being ignored. Is it possible to use CGI >> parameters to set values within a STYLE element? How? >> >> Brock >> >> I'm using Mapserver 4.6.2. A piece of my map file: >> >> LAYER >> NAME "mylayer" >> CONNECTIONTYPE postgis >> CONNECTION "..." >> DATA "..." >> >> CLASS >> EXPRESSION ([pop] > 5000) >> NAME "above 5000" >> STYLE >> COLOR 0 197 255 >> END #end style >> STYLE >> OUTLINECOLOR 0 197 255 >> WIDTH 5 >> END #end style >> END #end class >> >> TYPE polygon >> STATUS DEFAULT >> PROJECTION >> "init=epsg:4269" >> END #projection >> END #LAYER > > From banders at REFRACTIONS.NET Fri Mar 31 16:39:46 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Fri, 31 Mar 2006 16:39:46 -0800 Subject: setting STYLE with CGI parameters In-Reply-To: <3FAED257-BC73-4DA2-A5E8-FA02EF1C7AC2@refractions.net> Message-ID: You're right, we can't access STYLE directly from CGI parameters. After some investigation I found a workaround: Mapserver treats CLASS COLOR OVERLAYOUTLINECOLOR OVERLAYSYMBOL 'circle' OVERLAYSIZE 3 END #class ...the like a synonymn for... CLASS STYLE COLOR END #style STYLE OUTLINECOLOR SYMBOL 'circle SIZE 3 END #style END #class The OVERLAY elements are used to access the second style. I can set outline width and outline color via CGI parameters with: &map_mylayer_class_overlaysize=3 &map_mylayer_class_overlayoutlinecolor=3 Brock Paul Ramsey wrote: > Then my money is on: they did not update the CGI interface when they > added the STYLE concept to the object model. Blarg! > > On 31-Mar-06, at 3:22 PM, Brock Anderson wrote: > >> Thanks Paul. >> >> Near the bottom of this page: >> >> http://mapserver.gis.umn.edu/docs/reference/cgi/controls >> >> it says if there is only one class, then omit the index. I actually >> have the CGI parameters working to set outlinecolor directly within >> the class. I use a query string parameter like this: >> >> &map_mylayer_class_outlinecolor=... >> >> I just can't seem to get into the STYLE elemen to set WIDTH. >> >> Brock >> >> Paul Ramsey wrote: >> >>> I think you have to enumerate all the unnameable elements for >>> which there are potentially more than one entry. (Not sure if we >>> count from 0 or 1) >>> >>> &map_mylayer_class_0_style_0_width=3 >>> >>> P >>> >>> On 31-Mar-06, at 2:57 PM, Brock Anderson wrote: >>> >>>> Hi All, >>>> >>>> I am trying to use CGI parameters to dynamically set the WIDTH >>>> and OUTLINECOLOR within a STYLE tag. I've tried various formats >>>> for the CGI parameters, including something like: >>>> >>>> &map_mylayer_class_style_1_width=3 >>>> >>>> ... but the parameters are being ignored. Is it possible to use >>>> CGI parameters to set values within a STYLE element? How? >>>> >>>> Brock >>>> >>>> I'm using Mapserver 4.6.2. A piece of my map file: >>>> >>>> LAYER >>>> NAME "mylayer" >>>> CONNECTIONTYPE postgis >>>> CONNECTION "..." >>>> DATA "..." >>>> >>>> CLASS >>>> EXPRESSION ([pop] > 5000) >>>> NAME "above 5000" >>>> STYLE >>>> COLOR 0 197 255 >>>> END #end style >>>> STYLE >>>> OUTLINECOLOR 0 197 255 >>>> WIDTH 5 >>>> END #end style >>>> END #end class >>>> >>>> TYPE polygon >>>> STATUS DEFAULT >>>> PROJECTION >>>> "init=epsg:4269" >>>> END #projection >>>> END #LAYER >>> >>> >>> >> >