From wallacher at INNOMIS.COM Fri Feb 1 04:25:33 2008 From: wallacher at INNOMIS.COM (Wally Maddoc) Date: Fri, 1 Feb 2008 06:25:33 -0600 Subject: Reference map object Message-ID: Hi Roman if $map is your map object than the lines below would set the extent of the reference map: $map->reference->set('minx',-180) $map->reference->set('miny',-180) $map->reference->set('maxx',180) $map->reference->set('maxy',180) (The numbers -180, 180 are just examples) I hope it helps. Erik From beyhan at DEPREM.GOV.TR Fri Feb 1 05:54:23 2008 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Fri, 1 Feb 2008 15:54:23 +0200 Subject: installing gdal In-Reply-To: <47A2C1B0.7020509@hostgis.com> Message-ID: Dear friends, I'm going to install mapserver5.0.2 to the new mandriva2008 x64 OS I was faced a problem when I try to install gdal-1.5.0 The problem as follows. In file included from ogrmysqldriver.cpp:30: ogr_mysql.h:34:23: error: my_global.h: No such file or directory ogr_mysql.h:35:19: error: mysql.h: No such file or directory In file included from ogrmysqldriver.cpp:30: ogr_mysql.h:73: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type ogr_mysql.h:73: error: expected ';' before '*' token ogr_mysql.h:170: error: 'MYSQL_RES' has not been declared ogr_mysql.h:195: error: ISO C++ forbids declaration of 'MYSQL' with no type ogr_mysql.h:195: error: expected ';' before '*' token ogr_mysql.h:211: error: ISO C++ forbids declaration of 'MYSQL' with no type ogr_mysql.h:211: error: expected ';' before '*' token ogr_mysql.h:214: error: expected `;' before 'int' make[3]: *** [../o/ogrmysqldriver.o] Error 1 make[3]: Leaving directory `/usr/local/gdal-1.5.0/ogr/ogrsf_frmts/mysql' make[2]: *** [mysql-target] Error 2 make[2]: Leaving directory `/usr/local/gdal-1.5.0/ogr/ogrsf_frmts' make[1]: *** [sublibs] Error 2 make[1]: Leaving directory `/usr/local/gdal-1.5.0/ogr' make: *** [ogr-target] Error 2 And I strictly would like to use ogr functionality. So How can I pass this handicap. Regards. Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From juanma.mr at GMAIL.COM Fri Feb 1 06:10:24 2008 From: juanma.mr at GMAIL.COM (Juanma M. R.) Date: Fri, 1 Feb 2008 15:10:24 +0100 Subject: Problems using SLDs with negative values Message-ID: Hi all, We are working with SLDs in a webmapping application and we are having problems with negative values using Mapserver 4.10.1 y 4.10.2. Whenever we define an SLD clasified for a vector layer, if we define negative ranges it seems to colour all the negative ranges with the first negative range it founds. I would like to know if there is a bug or is a bad use from our side with SLDs. Does anyone know this kind of behabour? Cheers, Juanma. -------------- next part -------------- An HTML attachment was scrubbed... URL: From beyhan at DEPREM.GOV.TR Fri Feb 1 06:14:01 2008 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Fri, 1 Feb 2008 16:14:01 +0200 Subject: installing gdal In-Reply-To: <20080201135102.M76363@deprem.gov.tr> Message-ID: Dear Friends, I have already solved the problem checking and finding the rpm packages of the gdal Regards. Murat On Fri, 1 Feb 2008 15:54:23 +0200, Murat BEYHAN wrote > Dear friends, > > I'm going to install mapserver5.0.2 to the new mandriva2008 x64 OS > > I was faced a problem when I try to install gdal-1.5.0 > > The problem as follows. > > In file included from ogrmysqldriver.cpp:30: > ogr_mysql.h:34:23: error: my_global.h: No such file or directory > ogr_mysql.h:35:19: error: mysql.h: No such file or directory > In file included from ogrmysqldriver.cpp:30: > ogr_mysql.h:73: error: ISO C++ forbids declaration of 'MYSQL_RES' > with no type ogr_mysql.h:73: error: expected ';' before '*' token > ogr_mysql.h:170: error: 'MYSQL_RES' has not been declared > ogr_mysql.h:195: error: ISO C++ forbids declaration of 'MYSQL' with > no type ogr_mysql.h:195: error: expected ';' before '*' token > ogr_mysql.h:211: error: ISO C++ forbids declaration of 'MYSQL' with > no type ogr_mysql.h:211: error: expected ';' before '*' token > ogr_mysql.h:214: error: expected `;' before 'int' make[3]: *** > [../o/ogrmysqldriver.o] Error 1 make[3]: Leaving directory > `/usr/local/gdal-1.5.0/ogr/ogrsf_frmts/mysql' make[2]: *** [mysql- > target] Error 2 make[2]: Leaving directory `/usr/local/gdal-1.5.0/ogr/ogrsf_frmts' > make[1]: *** [sublibs] Error 2 > make[1]: Leaving directory `/usr/local/gdal-1.5.0/ogr' > make: *** [ogr-target] Error 2 > > And I strictly would like to use ogr functionality. > > So How can I pass this handicap. > Regards. > Murat > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. Murat Beyhan Jeofizik Y?k. M?h. Afet ??leri Genel M?d?rl??? Deprem Ara?t?rma Dairesi Eski?ehir Yolu 12. Km. Lodumlu/Ankara Tel:+90 (312) 2872680-1550 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From wallacher at INNOMIS.COM Fri Feb 1 06:26:52 2008 From: wallacher at INNOMIS.COM (Wally Maddoc) Date: Fri, 1 Feb 2008 08:26:52 -0600 Subject: Reference map object Message-ID: Sorry list, there has been an error in my reply I wrote: _______________________________________________________________ if $map is your map object than the lines below would set the extent of the reference map: $map->reference->set('minx',-180) $map->reference->set('miny',-180) $map->reference->set('maxx',180) $map->reference->set('maxy',180) _______________________________________________________________ It should be: $map->reference->extent->set('minx',-180) $map->reference->extent->set('miny',-180) $map->reference->extent->set('maxx',180) $map->reference->extent->set('maxy',180) sorry erik From wallacher at INNOMIS.COM Fri Feb 1 06:27:41 2008 From: wallacher at INNOMIS.COM (Wally Maddoc) Date: Fri, 1 Feb 2008 08:27:41 -0600 Subject: Reference map object Message-ID: I wrote: _______________________________________________________________ if $map is your map object than the lines below would set the extent of the reference map: $map->reference->set('minx',-180) $map->reference->set('miny',-180) $map->reference->set('maxx',180) $map->reference->set('maxy',180) _______________________________________________________________ It should be: $map->reference->extent->set('minx',-180) $map->reference->extent->set('miny',-180) $map->reference->extent->set('maxx',180) $map->reference->extent->set('maxy',180) sorry erik From stoutant at HOTMAIL.COM Fri Feb 1 07:19:53 2008 From: stoutant at HOTMAIL.COM (Steve Toutant) Date: Fri, 1 Feb 2008 09:19:53 -0600 Subject: mapInfo Point Feature Message-ID: I have trouble displaying a feature. If I enabled STYLEITEM "AUTO" the layers is shown, if I disable it I is not. Also, I can't figure out how to manage the symbology of the points, the color, the size, etc... Any tip would be appreciate... thanks! steve LAYER NAME med TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "Clinique_medicale.TAB" # STYLEITEM "AUTO" CLASS NAME "med" COLOR 255 255 0 END END From Tim.Nolte at IPCSWIRELESSINC.COM Fri Feb 1 07:43:40 2008 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Fri, 1 Feb 2008 10:43:40 -0500 Subject: mapInfo Point Feature In-Reply-To: A Message-ID: Steve, Here is an example of what I use for some points: LAYER GROUP "Points" NAME "Cities" TYPE POINT STATUS ON DATA "points.tab" LABELITEM "city_nm" CLASS STYLE SYMBOL "circle" COLOR 0 0 0 OUTLINECOLOR 255 255 255 SIZE 12 END LABEL TYPE TRUETYPE FONT "sans" SIZE 7 POSITION CR OFFSET 0 2 ANGLE AUTO BUFFER 3 MINDISTANCE 30 MINFEATURESIZE 10 COLOR 0 0 0 OUTLINECOLOR 245 245 231 SHADOWSIZE 3 3 BACKGROUNDSHADOWSIZE 1 -1 END END END ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Toutant Sent: Friday, February 01, 2008 10:20 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapInfo Point Feature I have trouble displaying a feature. If I enabled STYLEITEM "AUTO" the layers is shown, if I disable it I is not. Also, I can't figure out how to manage the symbology of the points, the color, the size, etc... Any tip would be appreciate... thanks! steve LAYER NAME med TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "Clinique_medicale.TAB" # STYLEITEM "AUTO" CLASS NAME "med" COLOR 255 255 0 END END From yassefa at DMSOLUTIONS.CA Fri Feb 1 07:01:36 2008 From: yassefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 1 Feb 2008 10:01:36 -0500 Subject: Problems using SLDs with negative values In-Reply-To: <7cf5c5b80802010610o24eb53d8r682af690348e32d7@mail.gmail.com> Message-ID: Hi There, Is it possible to send me directly a sample SLD (and if possible map and data). I can check to see what the issue is. Best Regards, Juanma M. R. wrote: > Hi all, > > We are working with SLDs in a webmapping application and we are having > problems with negative values using Mapserver 4.10.1 y 4.10.2. Whenever > we define an SLD clasified for a vector layer, if we define negative > ranges it seems to colour all the negative ranges with the first > negative range it founds. > > I would like to know if there is a bug or is a bad use from our side > with SLDs. Does anyone know this kind of behabour? > > Cheers, > Juanma. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From hartpence_gis at CO.JASPER.IA.US Fri Feb 1 14:34:25 2008 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Fri, 1 Feb 2008 16:34:25 -0600 Subject: dBox main.dragOn persistence Message-ID: Hello, I am using dBox with CGI MapServer 4.8 in a MS4W configuration. The URL for my site is http://71.7.3.212/JasperMaps/Parcels/goParcels.html I have a pick list selections to zoom out, zoom in or pan. I am trying to the dragOn() method for the pan tool. This works the first time I select PAN from the pick list, but if I want to drag another pan, I need to select it from teh pick list again. Does anyone know what I am missing? The following is the part of my code where I am trying to set this up. Thanks! Lawrence function main_setbox(minx, miny, maxx, maxy) { var MSMode = document.the_form.mode.value var zoomVal = document.the_form.zoomdir.options [document.the_form.zoomdir.selectedIndex].value; //document.the_form.zoomdir.value = zoomVal; alert(zoomVal) if(MSMode == 'browse') { if (zoomVal == 1 && minx != maxx && miny != maxy){ document.the_form.imgbox.value = minx + " " + miny + " " + maxx + " " + maxy; document.the_form.submit(); } else if (zoomVal == 1 && minx == maxx && miny == maxy){ document.the_form.imgxy.value = minx + " " + miny; document.the_form.submit(); } if (zoomVal == 0 && minx != maxx && miny != maxy){ document.the_form.imgbox.value = minx + " " + miny + " " + maxx + " " + maxy; document.the_form.submit(); } else if (zoomVal == 0 && minx == maxx && miny == maxy){ document.the_form.imgxy.value = minx + " " + miny; document.the_form.submit(); } if (zoomVal == -1){ document.the_form.imgxy.value = minx + " " + miny; document.the_form.submit(); } } else if(MSMode != 'browse') { if(minx != maxx && miny != maxy){ document.the_form.imgbox.value = minx + " " + miny + " " + maxx + " " + maxy; document.the_form.submit(); } else { document.the_form.imgxy.value = minx + " " + miny; document.the_form.submit(); } } } From richard.greenwood at GMAIL.COM Fri Feb 1 19:24:23 2008 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 1 Feb 2008 20:24:23 -0700 Subject: dBox main.dragOn persistence In-Reply-To: Message-ID: It looks to me like you are persisting your state, but you have something peculiar with the box behavior. Pan keeps working as long as I don't drag. (and you're never getting an image drag.) Try setting boxoff() and dragon(). Rich On Feb 1, 2008 3:34 PM, Lawrence Hartpence wrote: > Hello, > > I am using dBox with CGI MapServer 4.8 in a MS4W configuration. The URL for > my site is http://71.7.3.212/JasperMaps/Parcels/goParcels.html > > I have a pick list selections to zoom out, zoom in or pan. I am trying to the > dragOn() method for the pan tool. This works the first time I select PAN from > the pick list, but if I want to drag another pan, I need to select it from teh > pick list again. Does anyone know what I am missing? The following is the > part of my code where I am trying to set this up. > > > Thanks! > Lawrence > > function main_setbox(minx, miny, maxx, maxy) { > > var MSMode = document.the_form.mode.value > var zoomVal = document.the_form.zoomdir.options > [document.the_form.zoomdir.selectedIndex].value; > //document.the_form.zoomdir.value = zoomVal; > alert(zoomVal) > if(MSMode == 'browse') { > if (zoomVal == 1 && minx != maxx && miny != maxy){ > > document.the_form.imgbox.value = minx + " " + miny + " " + maxx + " " > + maxy; > document.the_form.submit(); > > } > else if (zoomVal == 1 && minx == maxx && miny == maxy){ > > document.the_form.imgxy.value = minx + " " + miny; > document.the_form.submit(); > } > if (zoomVal == 0 && minx != maxx && miny != maxy){ > > document.the_form.imgbox.value = minx + " " + miny + " " + maxx + " " > + maxy; > document.the_form.submit(); > > } > else if (zoomVal == 0 && minx == maxx && miny == maxy){ > > document.the_form.imgxy.value = minx + " " + miny; > document.the_form.submit(); > } > > if (zoomVal == -1){ > > document.the_form.imgxy.value = minx + " " + miny; > document.the_form.submit(); > } > > > } > > > else if(MSMode != 'browse') { > > if(minx != maxx && miny != maxy){ > document.the_form.imgbox.value = minx + " " + miny + " " + maxx + " " > + maxy; > document.the_form.submit(); > } > else { > document.the_form.imgxy.value = minx + " " + miny; > document.the_form.submit(); > } > > } > } > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From michelle at MARKSCHULZE.NET Fri Feb 1 21:50:03 2008 From: michelle at MARKSCHULZE.NET (Michelle Schulze) Date: Fri, 1 Feb 2008 23:50:03 -0600 Subject: How to create a legend containing ONLY classes shown in current extents? Message-ID: I have been working for the past several months on a map based entry for an existing database. I'm using ka maps for the tiling and for the layout, because I don't have much programming experience and I want to try and make it as simple as I can for myself. I have my scripts written to retrieve the data, and I have the layout looking the way I want it, but I have some performance issues, and I cannot get the legend to do what I want it to do. As an example, one of my maps covers North America, and the projects I am displaying on the map (using shape files of various vintages) can cover multiple territories/states down to only a few counties. Some of the maps contain 60-70 projects, grouped by vendor. I would like to have the legend show only the classes that are visible within the current extents of the displayed map. I naively assumed that when the map extents were changed in a map file, the legend would only return entries for classes that were visible in the map image. I originally attacked this problem in ka maps by changing the map extents used in legend.php, but when it didn't work, I ran the map file directly through Mapserver and realized that the extent made no difference. Then, I searched through the listserve archives for help, but the last posting I could find on this subject is from 2004 and the gist is that it isn't supported in Mapserver. Has this issue been addressed in subsequent releases of Mapserver? Or is there a way to customize without a lot of programming? While I'm here, I'd also like to ask about tileindexing? My data is all contained in shape files. For convenience, I'm trying to use files that have already been created that cover the aoi of the project. Depending on the data type, the shape file are polygons, line or point files and each project is contained in it's own shape file. Is tileindexing even going to be helpful for me? I tried some sample sets using tileindexing and the polygon shapes seem to work fine. However when I tried indexing using the point shapefiles, Mapserver appears to be retrieving every shape file in the tileindex shape file for every layer. Any advice would be helpful. Thank you, Michelle From vishu_73ns at YAHOO.COM Sat Feb 2 00:53:49 2008 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Sat, 2 Feb 2008 02:53:49 -0600 Subject: my own program Message-ID: As part of my familiarization with Mapserver, I started off with working on demo available at mapserver website(workshop). then I also installed Cartoweb3 and tried to build an application. On this mailing list I came across openLayers and realised it was a great tool to add cartography to my page. So I shifted to Openlayers ( Javascript). But now I have to start building my application which involves planning of Wi Max network(Line Of Sight, Coverage etc) using GIS(3D) information. This will require some processing of data at server side. So I just want to finalize my tools before I start building the final application. Regards, vishal From jayzee.smith at GMAIL.COM Sat Feb 2 12:43:52 2008 From: jayzee.smith at GMAIL.COM (John Smith) Date: Sat, 2 Feb 2008 15:43:52 -0500 Subject: [GENERAL][UMN_MAPSERVER-USERS] query postgres AND oracle In-Reply-To: <47A283F1.8010707@otg-nc.com> Message-ID: thanks. thought dbi-link could only connect across postgres databases, didn't realize it can connect postgres AND oracle. will look into it. jzs On 1/31/08, Chander Ganesan wrote: > > John Smith wrote: > guys, > i got geometry in postgres, some other data in oracle. is it possible > to filter postgres geometry based on oracle data (without using > services)? > cheers, jzs > > ---------------------------(end of > broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster > > Have you looked at http://pgfoundry.org/projects/dbi-link/ > ? > -- > Chander Ganesan > Open Technology Group, Inc. > One Copley Parkway, Suite 210 > Morrisville, NC 27560 > Phone: 877-258-8987/919-463-0999 > http://www.otg-nc.com From jayzee.smith at GMAIL.COM Sat Feb 2 12:50:18 2008 From: jayzee.smith at GMAIL.COM (John Smith) Date: Sat, 2 Feb 2008 15:50:18 -0500 Subject: [GENERAL][UMN_MAPSERVER-USERS] query postgres AND oracle In-Reply-To: Message-ID: guys, from what i read and tested this is a no-go, but is it possible to connect mapserver to 1 db for geometry AND another db to filter results by putting 2 CONNECTIONTYPEs or something in *.map?? jzs On 2/2/08, John Smith wrote: > thanks. thought dbi-link could only connect across postgres databases, > didn't realize it can connect postgres AND oracle. will look into it. > jzs > > On 1/31/08, Chander Ganesan wrote: > > > > John Smith wrote: > > guys, > > i got geometry in postgres, some other data in oracle. is it possible > > to filter postgres geometry based on oracle data (without using > > services)? > > cheers, jzs > > > > ---------------------------(end of > > broadcast)--------------------------- > > TIP 2: Don't 'kill -9' the postmaster > > > > Have you looked at http://pgfoundry.org/projects/dbi-link/ > > ? > > -- > > Chander Ganesan > > Open Technology Group, Inc. > > One Copley Parkway, Suite 210 > > Morrisville, NC 27560 > > Phone: 877-258-8987/919-463-0999 > > http://www.otg-nc.com From 2voodoo at GMX.DE Sat Feb 2 17:52:25 2008 From: 2voodoo at GMX.DE (Tom Kazimiers) Date: Sun, 3 Feb 2008 02:52:25 +0100 Subject: How does MapServer store vector data internaly? Message-ID: Hello, can you tell me how the MapServer deals with vector data? I mean what happens after a Request? E.g.: If file not already open, the file is opened, a quadtree is build and the request is performed on the quadtree data and no further file reading is required. Thanks in advance, Tom From warmerdam at POBOX.COM Sat Feb 2 19:47:05 2008 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 2 Feb 2008 22:47:05 -0500 Subject: How does MapServer store vector data internaly? In-Reply-To: <47A51E59.4030609@gmx.de> Message-ID: Tom Kazimiers wrote: > Hello, > > can you tell me how the MapServer deals with vector data? I mean what > happens after a Request? > E.g.: If file not already open, the file is opened, a quadtree is build > and the request is performed on the quadtree data and no further file > reading is required. Tom, This is a very broad question. The definition of what MapServer does is in the source. But I'll try to give a wee bit of information. I'll address this in the context of a WMS GetMap request with vector layers from shapefiles. 1) The map file to be used is identified, and parse into a mapObj. 2) The request parameters are parsed and used to manipulate the mapObj state. (turning layers on/off, setting the region and resolution, etc) 3) Each "on" layer is rendered in turn in msDrawLayer(). 4) For vector layers, the layer is "opened" which basically means the associated data files are opened. In normal use vector file handles are not kept open from request to request (since each request is a new cgi invocation) and not even from layer to layer in the same map draw. So called "connection caching" in a fastcgi situation is an exception to the rule. For shapefiles this open results in opening the .shp, .shx, .dbf and .qix if there is one. 5) The draw function loops through asking for shapes from the shapefile code. If there is a .qix file, mapserver will use it and the spatial extent to figure out the shape indices to load. (actually, I think it may do this in one complete pass and then sort the indices rather than doing it on an ongoing basis). 6) each shape is drawn. Note that the in-memory representation (a shapeObj) normally only lives long enough to be drawn and is freed before the next features is read. 7) the layer is closed, and all associated files are closed. NOTE: there is no in-memory quadtree built. If a qix (spatial index using quadtrees) exists on disk it is used, otherwise all features are scanned and compared to the spatial and attribute filters. I think there is some short circuiting of the shape reading to first look at the shape extent before processing the rest of the shape. Particulars vary based on the file type, the kind of request made, and various other circumstances. I'm also likely a bit off on some low level details. But hopefully this is a helpful response to what I claim is a vague question! Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From 2voodoo at GMX.DE Sun Feb 3 01:27:16 2008 From: 2voodoo at GMX.DE (Tom Kazimiers) Date: Sun, 3 Feb 2008 10:27:16 +0100 Subject: How does MapServer store vector data internaly? In-Reply-To: <47A53939.80709@pobox.com> Message-ID: Frank Warmerdam schrieb: > Tom Kazimiers wrote: >> Hello, >> >> can you tell me how the MapServer deals with vector data? I mean what >> happens after a Request? >> E.g.: If file not already open, the file is opened, a quadtree is >> build and the request is performed on the quadtree data and no >> further file reading is required. > > Tom, > > This is a very broad question. The definition of what MapServer does > is in > the source. But I'll try to give a wee bit of information. I'll address > this in the context of a WMS GetMap request with vector layers from > shapefiles. > > 1) The map file to be used is identified, and parse into a mapObj. > > 2) The request parameters are parsed and used to manipulate the mapObj > state. > (turning layers on/off, setting the region and resolution, etc) > > 3) Each "on" layer is rendered in turn in msDrawLayer(). > > 4) For vector layers, the layer is "opened" which basically means the > associated data files are opened. In normal use vector file handles are > not kept open from request to request (since each request is a new cgi > invocation) and not even from layer to layer in the same map draw. So > called "connection caching" in a fastcgi situation is an exception to the > rule. For shapefiles this open results in opening the .shp, .shx, .dbf > and .qix if there is one. > > 5) The draw function loops through asking for shapes from the shapefile > code. If there is a .qix file, mapserver will use it and the spatial > extent to figure out the shape indices to load. (actually, I think it may > do this in one complete pass and then sort the indices rather than doing > it on an ongoing basis). > > 6) each shape is drawn. Note that the in-memory representation (a > shapeObj) > normally only lives long enough to be drawn and is freed before the next > features is read. > > 7) the layer is closed, and all associated files are closed. > > NOTE: there is no in-memory quadtree built. If a qix (spatial index > using > quadtrees) exists on disk it is used, otherwise all features are > scanned and > compared to the spatial and attribute filters. I think there is some > short > circuiting of the shape reading to first look at the shape extent before > processing the rest of the shape. > > Particulars vary based on the file type, the kind of request made, and > various other circumstances. I'm also likely a bit off on some low level > details. But hopefully this is a helpful response to what I claim is > a vague > question! > > Best regards, Frank, thank you for your quick response. This is what I wanted to read indeed. I did also take a look at the source, found also msdraw.c but somehow missed orientation :) This (vague) question came up by thinking about how I can change a tool I have written which is basically a GIS application for PDAs in way that I can for example identify single features of a shapefile (since currently I only draw them without making constraints like attributes available). Do you think that if MapServer would be a whole GIS application on its own and no "server" and has only to deal with about 20 maps or so it would also do displaying like it is done now? Or could it be that in this case the opening and closing of files would be too slow compared to an in-memory quadtree for example? Thanks again Tom From vishu_73ns at YAHOO.COM Mon Feb 4 02:30:23 2008 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Mon, 4 Feb 2008 04:30:23 -0600 Subject: Single layer, Multiple colors Message-ID: Hello everybody, Is it possible to have multiple colors in the same layer based on the value of the class item. for example if I am using the humidity in soil as a factor , i would like it to show different color for different values. I am familiar with EXPRESSION to filter but how to use it for classifying data. Vishal From gregoavila at GMAIL.COM Mon Feb 4 02:24:48 2008 From: gregoavila at GMAIL.COM (=?ISO-8859-1?Q?Gregorio_Mu=F1oz?=) Date: Mon, 4 Feb 2008 11:24:48 +0100 Subject: scalebar graphic Message-ID: Hello. Is it possible to request a scalebar graphic from a MapServer WMS service or another option? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.weaver at ZEN.CO.UK Mon Feb 4 02:46:39 2008 From: dave.weaver at ZEN.CO.UK (Dave Weaver) Date: Mon, 4 Feb 2008 04:46:39 -0600 Subject: Polygons crossing the International Dateline Message-ID: Is it possible for MapServer to display that crosses the International Dateline? I have created a simple shapefile, with one square polygon (4 points, close together, left and right points on opposite sides of the Dateline) and MapServer always displays it crossing the Greenwich Meridian, not the Dateline (i.e. one very, very wide rectangle). Do I have to split the polygon into 2, or is there an easier way to do it? Many thanks, Dave. From mlinden at ZEELANDNET.NL Mon Feb 4 03:01:16 2008 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Mon, 4 Feb 2008 12:01:16 +0100 Subject: Single layer, Multiple colors In-Reply-To: Message-ID: Hello Vishal, Do as follow: CLASSITEM 'RD_5' #The column in the dataset that hold the classification CLASS NAME 'myclass1' EXPRESSION '4' #if value = 4 do this style MINSCALE 0 MAXSCALE 100000 STYLE SYMBOL 0 SIZE 6 WIDTH 3 COLOR 249 201 139 END END CLASS NAME 'myclass2' EXPRESSION '1' #if value = 1 do this style MINSCALE 0 MAXSCALE 300000 STYLE SYMBOL 0 SIZE 6 WIDTH 4 COLOR 128 155 192 #ANTIALIAS TRUE END END CLASS NAME 'myclass3' #if value = 2 do this style EXPRESSION '2' MINSCALE 0 MAXSCALE 300000 STYLE SYMBOL 0 SIZE 6 WIDTH 3 COLOR 128 155 192 END END CLASS NAME 'myclass4' #if value = 3 do this style EXPRESSION '3' MINSCALE 0 MAXSCALE 150000 STYLE SYMBOL 0 SIZE 6 WIDTH 3 COLOR 227 109 113 END END Vishal Nagpal schreef: > Hello everybody, > Is it possible to have multiple colors in the same layer based on the value > of the class item. > for example if I am using the humidity in soil as a factor , i would like it > to show different color for different values. > I am familiar with EXPRESSION to filter but how to use it for classifying data. > Vishal > > From mlinden at ZEELANDNET.NL Mon Feb 4 03:03:44 2008 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Mon, 4 Feb 2008 12:03:44 +0100 Subject: Polygons crossing the International Dateline In-Reply-To: Message-ID: Dave Weaver schreef: > Is it possible for MapServer to display that crosses the International Dateline? > > I have created a simple shapefile, with one square polygon (4 points, close > together, left and right points on opposite sides of the Dateline) and > MapServer always displays it crossing the Greenwich Meridian, not the > Dateline (i.e. one very, very wide rectangle). > > Do I have to split the polygon into 2, or is there an easier way to do it? > > Many thanks, > Dave. > > You would indeed have to split the polygon. Mapserver has an issue with objects crossing the extends of the globe (180 degree meridian) and cannot pan outside the square that is defined for the globe. This means that you will get a piece of the object on the far right of the map and another piece on the far left. From gregoavila at GMAIL.COM Mon Feb 4 04:16:06 2008 From: gregoavila at GMAIL.COM (=?ISO-8859-1?Q?Gregorio_Mu=F1oz?=) Date: Mon, 4 Feb 2008 13:16:06 +0100 Subject: Reference map graphic Message-ID: Hello. Is it possible to request a reference map graphic from a MapServer WMS service or another option? format png or jpeg Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From patrice.canonici at GMAIL.COM Mon Feb 4 06:44:17 2008 From: patrice.canonici at GMAIL.COM (patrice canonici) Date: Mon, 4 Feb 2008 15:44:17 +0100 Subject: mapserver 4.10.2 and debug informations Message-ID: Hi I'm trying to have lots of debug information into log file. In the mapfile there is : MAP bloc : DEBUG ON WEB bloc : LOG "/tmp/mapserver.log" in many LAYER bloc DEBUG ON mapserver is configure as follow : ./mapserv -vMapServer version 4.10.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG mapserver is running into apache httpd 2.0.59 (compiled, not from rpm) on Red Hat Linux. /tmp/mapserver.log remains empty, and I get only "error" (that seems not to be errors) level message into the httpd error_log file. is it possible to have these informations into the mapserver log file ? (/tmp/mapserver.log). ? if yes, how ? and, is it possible to have a more verbose log ? with debug/warn/... informations ? Regards Patrice From bokhorst at ARGOSS.NL Mon Feb 4 07:01:10 2008 From: bokhorst at ARGOSS.NL (Reinoud Bokhorst) Date: Mon, 4 Feb 2008 16:01:10 +0100 Subject: Reference map graphic In-Reply-To: Message-ID: Gregorio Mu?oz wrote: > Hello. > > Is it possible to request a reference map graphic from a MapServer WMS > service or another option? > > format png or jpeg > > > > Thanks. Have you tried the "mode=reference" CGI parameter from mapserv? Described here: http://mapserver.gis.umn.edu/docs/reference/cgi/controls Reinoud From dmorissette at MAPGEARS.COM Mon Feb 4 07:01:43 2008 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Mon, 4 Feb 2008 10:01:43 -0500 Subject: mapserver 4.10.2 and debug informations In-Reply-To: Message-ID: With MapServer 4.x, LOG is only used to log errors (as you noticed) and all DEBUG output goes to stderr, in the case of Apache that is Apache's error_log file. Note that you can also set DEBUG ON at the layer level to get more debug info for specific layers. Starting with MapServer 5.0, the DEBUG output location is controlled by the CONFIG "MS_ERRORFILE" "/path/to/logfile" directive, and support for multiple debug levels has been added. More info is available in RFC-28: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-28 Daniel patrice canonici wrote: > Hi > > I'm trying to have lots of debug information into log file. > > In the mapfile there is : > > MAP bloc : DEBUG ON > WEB bloc : LOG "/tmp/mapserver.log" > in many LAYER bloc DEBUG ON > > mapserver is configure as follow : > > ./mapserv -vMapServer version 4.10.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS > INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > DEBUG=MSDEBUG > > mapserver is running into apache httpd 2.0.59 (compiled, not from rpm) > on Red Hat Linux. > > /tmp/mapserver.log remains empty, and I get only "error" (that seems > not to be errors) level message into the httpd error_log file. > > is it possible to have these informations into the mapserver log file > ? (/tmp/mapserver.log). ? if yes, how ? > > and, is it possible to have a more verbose log ? with debug/warn/... > informations ? > > Regards > Patrice -- Daniel Morissette http://www.mapgears.com/ From jdoyon at NRCAN.GC.CA Mon Feb 4 07:12:23 2008 From: jdoyon at NRCAN.GC.CA (Doyon, Jean-Francois) Date: Mon, 4 Feb 2008 10:12:23 -0500 Subject: Upgrade to MapServer 5.0.2 from 4.8.1: extent/scale calculation changes? Message-ID: Hello, Although all the cartographic testing has been done, I just tested for the first time upgrading 4.8.1 to 5.0.2 with my JavaScript mapping UI, and have discovered something troubling: For a given map file, the final extent and scale calculations are different between the two versions! For the same mapfile "105.map" with: EXTENT -2750564.75 -936638.5 3583872.5 4673125 With 4.8.1: http://atlas.nrcan.gc.ca/cgi-bin/mapserv?map=/home/atlas/mapdata/english/105.map&map_web_template=/home/atlas/mapdata/to_zope_new.html&mapsize=428+380&map_scalebar_imagecolor=255+255+255 -2750564.750000 -943773.286215 3583872.500000 4680259.786215 41953025.267029 With 5.0.2: http://dev.atlas.gc.ca/cgi-bin/mapserv502atlas?map=/home/atlas/mapdata/english/105.map&map.web=TEMPLATE+/home/atlas/mapdata/to_zope_new.html&mapsize=428+380&map.scalebar=COLOR+255+255+255 -2750564.750000 -942941.431206 3583872.500000 4679427.931206 42051275.911682 That scale change is big enough to break all our min/max scale ranges and so on :( (on hundreds of mapfiles) I've looked through HISTORY.TXT and the Migration Guide but am not seeing anything about this (All I saw was a change in scale calculation for PHP?) Help? Jean-Fran?ois Doyon Data Dissemination Division | Division de la diffusion des donn?es Data Management and Dissemination Branch | Direction de la gestion et de la diffusion des donn?es Earth Sciences Sector | Secteur des sciences de la Terre Natural Resources Canada | Ressources naturelles Canada Ottawa, Canada K1A 0E9 jdoyon at nrcan-rncan.gc.ca Telephone | T?l?phone 613-992-4902 Facsimile | T?l?copieur 613-947-2410 Teletypewriter | T?l?imprimeur 613-996-4397 Government of Canada | Gouvernement du Canada -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregoavila at GMAIL.COM Mon Feb 4 07:41:40 2008 From: gregoavila at GMAIL.COM (=?ISO-8859-1?Q?Gregorio_Mu=F1oz?=) Date: Mon, 4 Feb 2008 16:41:40 +0100 Subject: Reference map graphic In-Reply-To: <47A728B6.2000306@argoss.nl> Message-ID: Do you have any example? Thank you! 2008/2/4, Reinoud Bokhorst : > > Gregorio Mu?oz wrote: > > Hello. > > > > Is it possible to request a reference map graphic from a MapServer WMS > > service or another option? > > > > format png or jpeg > > > > > > > > Thanks. > > > Have you tried the "mode=reference" CGI parameter from mapserv? Described > here: > > http://mapserver.gis.umn.edu/docs/reference/cgi/controls > > Reinoud > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at GEOANALYTIC.COM Mon Feb 4 07:47:32 2008 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Mon, 4 Feb 2008 08:47:32 -0700 Subject: my own program Message-ID: Vishal, Mapserver does a geat job of rendering GIS vectors and imagery data as part of a web-based mapping solution, but it doesn't do any operations related to height/elevation. If your application will be focused on 3d, you may want to look at 3d-aware open source projects such as VTP (great interactive GUI for 3d) and Grass (powerful analysis). However, if you already have software to do the 3d calculations and are looking for a web-based "presentation" application, then Mapserver (plus a client-side tool like OpenLayers) is a good choice. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Vishal Nagpal" To: Sent: Saturday, February 02, 2008 1:53 AM Subject: Re: [UMN_MAPSERVER-USERS] my own program As part of my familiarization with Mapserver, I started off with working on demo available at mapserver website(workshop). then I also installed Cartoweb3 and tried to build an application. On this mailing list I came across openLayers and realised it was a great tool to add cartography to my page. So I shifted to Openlayers ( Javascript). But now I have to start building my application which involves planning of Wi Max network(Line Of Sight, Coverage etc) using GIS(3D) information. This will require some processing of data at server side. So I just want to finalize my tools before I start building the final application. Regards, vishal From percyd at PDX.EDU Mon Feb 4 09:33:17 2008 From: percyd at PDX.EDU (percy) Date: Mon, 4 Feb 2008 09:33:17 -0800 Subject: my own program In-Reply-To: <01a301c86745$4152aa00$140002c0@shark> Message-ID: If you want to stick with a web-based interface, you might want to look at web processing services (WPS), here's a very nice example that shows calculating viewsheds from user input, among other examples, using GRASS as the backend: http://pywps.ominiverdi.org/ Cheers, Percy Brent Fraser wrote: > Vishal, > > Mapserver does a geat job of rendering GIS vectors and > imagery data as part of a web-based mapping solution, but it > doesn't do any operations related to height/elevation. > > If your application will be focused on 3d, you may want to > look at 3d-aware open source projects such as VTP (great > interactive GUI for 3d) and Grass (powerful analysis). > > However, if you already have software to do the 3d > calculations and are looking for a web-based "presentation" > application, then Mapserver (plus a client-side tool like > OpenLayers) is a good choice. > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > ----- Original Message ----- > From: "Vishal Nagpal" > To: > Sent: Saturday, February 02, 2008 1:53 AM > Subject: Re: [UMN_MAPSERVER-USERS] my own program > > > As part of my familiarization with Mapserver, > I started off with working on demo available at mapserver > website(workshop). > then I also installed Cartoweb3 and tried to build an > application. > On this mailing list I came across openLayers and realised > it was a great > tool to add cartography to my page. So I shifted to > Openlayers ( Javascript). > But now I have to start building my application which > involves planning of > Wi Max network(Line Of Sight, Coverage etc) using GIS(3D) > information. This > will require some processing of data at server side. > So I just want to finalize my tools before I start building > the final > application. > > Regards, > vishal > > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From neil at ASDF.CO.NZ Mon Feb 4 12:55:08 2008 From: neil at ASDF.CO.NZ (Neil Fincham) Date: Tue, 5 Feb 2008 09:55:08 +1300 Subject: REQUIRES syntax in Mapfile Message-ID: Hi All, Quick question today, what is the correct syntax for the REQUIRES tag in the mapfile? I have tried "REQUIRES ([OtherRoad] = 1)" (I.E, the layer OtherRoad must be on for the layer to display) and a few other things and I don't seem to be getting any joy. I have included the map layer definitions below;- LAYER NAME 'OtherRoad' TYPE LINE CONNECTIONTYPE postgis CONNECTION 'host=localhost user=postgres dbname=NZMM' DATA 'the_geom FROM public.road_all_layer2_polyline' METADATA 'wms_title' 'OtherRoad' END MAXSCALE 15000 STATUS ON LABELITEM "road_name" TRANSPARENCY 100 CLASS NAME 'Road - Other' STYLE SYMBOL road-line SIZE 1 COLOR 0 0 0 END END END LAYER NAME 'MinorRuralRoad' TYPE LINE CONNECTIONTYPE postgis CONNECTION 'host=localhost user=postgres dbname=NZMM' DATA 'the_geom FROM public.road_all_layer2_polyline' METADATA 'wms_title' 'MinorRuralRoad' END MAXSCALE 15000 STATUS ON LABELITEM "road_name" TRANSPARENCY 100 REQUIRES ([OtherRoad] eq 1) CLASS NAME 'Minor Rural Road' EXPRESSION ("[class]" = "MINOR RURAL ROAD") LABEL COLOR 0 0 0 FONT sans TYPE truetype SIZE 6 POSITION AUTO PARTIALS FALSE ANGLE FOLLOW BUFFER 10 OUTLINECOLOR 255 255 255 END STYLE SYMBOL road-line SIZE 6 COLOR 0 0 0 END STYLE SYMBOL road-line SIZE 5 COLOR 255 0 255 END END END Thanks Heaps Neil From stoutant at HOTMAIL.COM Mon Feb 4 13:10:32 2008 From: stoutant at HOTMAIL.COM (Steve Toutant) Date: Mon, 4 Feb 2008 21:10:32 +0000 Subject: insert a query_template into the HTML template Message-ID: I created a map file and an HTML template with my own data following the MapServer 5.x tutorial. http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?root=%2Ftutorial&program=%2Fcgi-bin%2Fmapserv.exe&map=%2Fms4w%2Fapps%2Ftutorial%2Fhtdocs%2Fexample3.map&layer=states&zoom=0&map_web=template+example3-4.html+header+..%2Ftemplates%2Fexample3_header.html+footer+..%2Ftemplates%2Fexample3_footer_querymap.html&submit=Go+there%21 Section 3 explains how to create a query template. When the user select a feature on the map the query template opens and shows the result on a grid. I would like this grid to appear in the HTML template just below the map instead of appearing on a new page. Anyone knows if it possible? thanks, steve _________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From naci0002 at UMN.EDU Mon Feb 4 13:16:26 2008 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Mon, 4 Feb 2008 15:16:26 -0600 Subject: insert a query_template into the HTML template In-Reply-To: Message-ID: Steve Toutant wrote: > I created a map file and an HTML template with my own data following > the MapServer 5.x tutorial. > http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?root=%2Ftutorial&program=%2Fcgi-bin%2Fmapserv.exe&map=%2Fms4w%2Fapps%2Ftutorial%2Fhtdocs%2Fexample3.map&layer=states&zoom=0&map_web=template+example3-4.html+header+..%2Ftemplates%2Fexample3_header.html+footer+..%2Ftemplates%2Fexample3_footer_querymap.html&submit=Go+there%21 > > > Section 3 explains how to create a query template. When the user > select a feature on the map the query template opens and shows the > result on a grid. > > I would like this grid to appear in the HTML template just below the > map instead of appearing on a new page. Anyone knows if it possible? > thanks, > steve You should be able to do this by placing the query map stuff on the main header instead of the footer. -Perry From naci0002 at UMN.EDU Mon Feb 4 13:20:23 2008 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Mon, 4 Feb 2008 15:20:23 -0600 Subject: insert a query_template into the HTML template In-Reply-To: <47A780AA.5010000@umn.edu> Message-ID: Pericles S. Nacionales wrote: > Steve Toutant wrote: >> I created a map file and an HTML template with my own data following >> the MapServer 5.x tutorial. >> http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?root=%2Ftutorial&program=%2Fcgi-bin%2Fmapserv.exe&map=%2Fms4w%2Fapps%2Ftutorial%2Fhtdocs%2Fexample3.map&layer=states&zoom=0&map_web=template+example3-4.html+header+..%2Ftemplates%2Fexample3_header.html+footer+..%2Ftemplates%2Fexample3_footer_querymap.html&submit=Go+there%21 >> >> >> >> Section 3 explains how to create a query template. When the user >> select a feature on the map the query template opens and shows the >> result on a grid. >> >> I would like this grid to appear in the HTML template just below the >> map instead of appearing on a new page. Anyone knows if it possible? >> thanks, >> steve > You should be able to do this by placing the query map stuff on the > main header instead of the footer. > > -Perry Once again, I jumped the gun. You can certainly do it--look at the MapServer 5.x demo at http://mapserver.gis.umn.edu/download/current/ for an example. You can use frames or DHTML for this. -Perry From joealan at SBCGLOBAL.NET Mon Feb 4 13:46:04 2008 From: joealan at SBCGLOBAL.NET (Joe Nannery) Date: Mon, 4 Feb 2008 13:46:04 -0800 Subject: Compiling Mapserver-5.0.0 with Regex Message-ID: Hello everyone, I've been trying to post on the users list on the UMN site, but nothing seems to be appearing, so I apologize in advance if this is the 3rd time I've sent this. I'm compiling with regex-0.12, and am experiencing some of the usual problems some people have posted. I have tried the steps in the Win32 Comp, replacing: //extern void printchar (); with: void printchar( int i ) {} However, there are still problems. Is there a different regex.c file without all these errors? I have tried a couple others with no luck. This is the error: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> SE_GD_ANTIALIAS -DUSE_ZLIB -DWIN32 -D_WIN32 /c C:\Mapserver\mapserver-5 .0.0\regex\regex.c /FoC:\Mapserver\mapserver-5.0.0\regex\regex.obj regex.c C:\Mapserver\mapserver-5.0.0\regex\regex.c(769) : warning C4018: '<' : signed/un signed mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(775) : warning C4018: '<' : signed/un signed mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1124) : warning C4018: '<' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1190) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1205) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1298) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1323) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1337) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1347) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1359) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1365) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1373) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1609) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1639) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1684) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1699) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1727) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1814) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1927) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1933) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1938) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1942) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1946) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1950) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1954) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1958) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(1976) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(2024) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(2028) : warning C4018: '>' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(2043) : warning C4013: 'free' undefin ed; assuming extern returning int C:\Mapserver\mapserver-5.0.0\regex\regex.c(2237) : warning C4018: '<=' : signed/ unsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(2785) : warning C4013: 'abort' undefi ned; assuming extern returning int C:\Mapserver\mapserver-5.0.0\regex\regex.c(2835) : warning C4047: '=' : 'regoff_ t *' differs in levels of indirection from 'int' C:\Mapserver\mapserver-5.0.0\regex\regex.c(3314) : warning C4018: '<' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(3404) : warning C4018: '<' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(3428) : warning C4018: '<' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(3481) : warning C4018: '<' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(3497) : warning C4018: '<' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(3761) : warning C4018: '<' : signed/u nsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(3772) : warning C4018: '<=' : signed/ unsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(3919) : warning C4018: '<=' : signed/ unsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(3972) : warning C4018: '<=' : signed/ unsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(4080) : warning C4018: '>=' : signed/ unsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(4111) : warning C4018: '<=' : signed/ unsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(4124) : warning C4018: '<=' : signed/ unsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(4294) : warning C4018: '>=' : signed/ unsigned mismatch C:\Mapserver\mapserver-5.0.0\regex\regex.c(3772) : warning C4101: 'destination' : unreferenced local variable C:\Mapserver\mapserver-5.0.0\regex\regex.c(3919) : warning C4101: 'destination' : unreferenced local variable C:\Mapserver\mapserver-5.0.0\regex\regex.c(3972) : warning C4101: 'destination' : unreferenced local variable C:\Mapserver\mapserver-5.0.0\regex\regex.c(4111) : warning C4101: 'destination' : unreferenced local variable C:\Mapserver\mapserver-5.0.0\regex\regex.c(4124) : warning C4101: 'destination' : unreferenced local variable C:\Mapserver\mapserver-5.0.0\regex\regex.c(4877) : warning C4996: 'errcode' was declared deprecated C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : s ee declaration of 'errcode' Message: 'This name was supported during some Whidbey pre-releases. Inst ead, use the standard name errno_t.' C:\Mapserver\mapserver-5.0.0\regex\regex.c(4877) : error C2081: 'preg' : name in formal parameter list illegal C:\Mapserver\mapserver-5.0.0\regex\regex.c(4877) : error C2081: 'errbuf' : name in formal parameter list illegal C:\Mapserver\mapserver-5.0.0\regex\regex.c(4877) : error C2081: 'errbuf_size' : name in formal parameter list illegal C:\Mapserver\mapserver-5.0.0\regex\regex.c(4878) : error C2055: expected formal parameter list, not a type list C:\Mapserver\mapserver-5.0.0\regex\regex.c(4878) : error C2082: redefinition of formal parameter 'errcode' C:\Mapserver\mapserver-5.0.0\regex\regex.c(4886) : warning C4996: 'errcode' was declared deprecated C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : s ee declaration of 'errcode' Message: 'This name was supported during some Whidbey pre-releases. Inst ead, use the standard name errno_t.' C:\Mapserver\mapserver-5.0.0\regex\regex.c(4886) : error C2059: syntax error : ' type' C:\Mapserver\mapserver-5.0.0\regex\regex.c(4894) : error C2275: 'errcode' : ille gal use of this type as an expression C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : s ee declaration of 'errcode' C:\Mapserver\mapserver-5.0.0\regex\regex.c(4911) : warning C4996: 'strcpy' was d eclared deprecated Message: 'This function or variable may be unsafe. Consider using strcpy _s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online hel p for details.' NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c l.EXE"' : return code '0x2' Stop. C:\Mapserver\mapserver-5.0.0> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Thanks in advance for any help! Joe Nannery joealan at sbcglobal.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam420 at YAHOO.COM Mon Feb 4 14:00:06 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Mon, 4 Feb 2008 14:00:06 -0800 Subject: mapserver 4.10.2 and debug informations In-Reply-To: Message-ID: patrice canonici wrote: > > MAP bloc : DEBUG ON > > and, is it possible to have a more verbose log ? with debug/warn/... > informations ? > i don't know about 4.10.2, but for 5.0.0, besides ON, the DEBUG directive can also take a number, up to 5. it appears that ON is the equivalent of 1. from maperror.h (in mapserver 5.0.0): /*==================================================================== * mapdebug.c (See also MS-RFC-28) *====================================================================*/ typedef enum { MS_DEBUGLEVEL_ERRORSONLY = 0, /* DEBUG OFF, log fatal errors */ MS_DEBUGLEVEL_DEBUG = 1, /* DEBUG ON */ MS_DEBUGLEVEL_TUNING = 2, /* Reports timing info */ MS_DEBUGLEVEL_V = 3, /* Verbose */ MS_DEBUGLEVEL_VV = 4, /* Very verbose */ MS_DEBUGLEVEL_VVV = 5 /* Very very verbose */ } debugLevel; nevertheless, you may find that even the most verbose debugging doesn't contain all of the information that you are looking for. - rich -- View this message in context: http://www.nabble.com/mapserver-4.10.2-and-debug-informations-tp15269744p15278508.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at DNR.STATE.MN.US Mon Feb 4 15:16:13 2008 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 4 Feb 2008 17:16:13 -0600 Subject: REQUIRES syntax in Mapfile In-Reply-To: <47A77BAC.9040507@asdf.co.nz> Message-ID: Try: REQUIRES "[OtherRoad]" The tokenizer is just looking for a string there... Steve >>> On 2/4/2008 at 2:55 PM, in message <47A77BAC.9040507 at asdf.co.nz>, Neil Fincham wrote: > Hi All, > > Quick question today, what is the correct syntax for the REQUIRES tag > in the mapfile? I have tried "REQUIRES ([OtherRoad] = 1)" (I.E, the > layer OtherRoad must be on for the layer to display) and a few other > things and I don't seem to be getting any joy. I have included the map > layer definitions below;- > > LAYER > NAME 'OtherRoad' > TYPE LINE > CONNECTIONTYPE postgis > CONNECTION 'host=localhost user=postgres dbname=NZMM' > DATA 'the_geom FROM public.road_all_layer2_polyline' > METADATA > 'wms_title' 'OtherRoad' > END > MAXSCALE 15000 > STATUS ON > LABELITEM "road_name" > TRANSPARENCY 100 > CLASS > NAME 'Road - Other' > STYLE > SYMBOL road-line > SIZE 1 > COLOR 0 0 0 > END > END > END > > LAYER > NAME 'MinorRuralRoad' > TYPE LINE > CONNECTIONTYPE postgis > CONNECTION 'host=localhost user=postgres dbname=NZMM' > DATA 'the_geom FROM public.road_all_layer2_polyline' > METADATA > 'wms_title' 'MinorRuralRoad' > END > MAXSCALE 15000 > STATUS ON > LABELITEM "road_name" > TRANSPARENCY 100 > REQUIRES ([OtherRoad] eq 1) > CLASS > NAME 'Minor Rural Road' > EXPRESSION ("[class]" = "MINOR RURAL ROAD") > LABEL > COLOR 0 0 0 > FONT sans > TYPE truetype > SIZE 6 > POSITION AUTO > PARTIALS FALSE > ANGLE FOLLOW > BUFFER 10 > OUTLINECOLOR 255 255 255 > END > STYLE > SYMBOL road-line > SIZE 6 > COLOR 0 0 0 > END > STYLE > SYMBOL road-line > SIZE 5 > COLOR 255 0 255 > END > END > END > > Thanks Heaps > > > Neil From Steve.Lime at DNR.STATE.MN.US Mon Feb 4 15:21:20 2008 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 4 Feb 2008 17:21:20 -0600 Subject: scalebar graphic In-Reply-To: Message-ID: Not via WMS but you can hit the CGI with mode=scalebar. Here's an example using OpenLayers: http://preview.dnr.state.mn.us/maps/compass.html I'm using calls to the CGI to generate scalebars based on the OL map object. Steve >>> On 2/4/2008 at 4:24 AM, in message , Gregorio Mu?oz wrote: > Hello. > > Is it possible to request a scalebar graphic from a MapServer WMS service or > another option? > > Thanks. From jill.recla at JAX.ORG Mon Feb 4 15:41:14 2008 From: jill.recla at JAX.ORG (Jill Recla) Date: Mon, 4 Feb 2008 18:41:14 -0500 Subject: QueryByPoint and MySQL Message-ID: Hi all, I'm trying to modify the 5.x Itasca demo (itasca_adds_dhtml) to create layers from a MySQL database. The layers are created successfully, but when I select "Query Feature" and click a MySQL data layer point, I get this error: Content-type: text/html msOGRFileGetItems(): OGR error. Layer MYSQL:genosis,user=root,password=Passw0rd,port=3306,tables=gene_data,-1 contains no fields. Here is the layer definition in my .map file: LAYER NAME lines TYPE LINE STATUS OFF CLASS NAME 'lines' STYLE COLOR 150 0 0 SYMBOL 'circle' SIZE 5 END END TEMPLATE "templates/lines.html" CONNECTIONTYPE OGR CONNECTION "MYSQL:genosis,user=root,password=Passw0rd,port=3306,tables=line_data" DATA "SELECT line FROM line_data" END I have made the line.html template file with the corresponding MySQL fields. I know I'm missing something simple, here........ Can someone please help? Thanks, Jill -- ***************************************************** *****Jill M. Recla****UMaine Functional Genomics***** ***jill.recla at jax.org*****************906-282-8033*** ***************************************************** From mikesaunt at GMAIL.COM Mon Feb 4 15:58:29 2008 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Mon, 4 Feb 2008 23:58:29 +0000 Subject: REQUIRES syntax in Mapfile In-Reply-To: <47A77BAC.9040507@asdf.co.nz> Message-ID: Neil Another good one is REQUIRES "![LayerName]" I use this alot to have a base vector layer not draw if Aerial Photography is shown... Cheers Mike On 04/02/2008, Neil Fincham wrote: > > Hi All, > > Quick question today, what is the correct syntax for the REQUIRES > tag > in the mapfile? I have tried "REQUIRES ([OtherRoad] = 1)" (I.E, the > layer OtherRoad must be on for the layer to display) and a few other > things and I don't seem to be getting any joy. I have included the map > layer definitions below;- > > LAYER > NAME 'OtherRoad' > TYPE LINE > CONNECTIONTYPE postgis > CONNECTION 'host=localhost user=postgres dbname=NZMM' > DATA 'the_geom FROM public.road_all_layer2_polyline' > METADATA > 'wms_title' 'OtherRoad' > END > MAXSCALE 15000 > STATUS ON > LABELITEM "road_name" > TRANSPARENCY 100 > CLASS > NAME 'Road - Other' > STYLE > SYMBOL road-line > SIZE 1 > COLOR 0 0 0 > END > END > END > > LAYER > NAME 'MinorRuralRoad' > TYPE LINE > CONNECTIONTYPE postgis > CONNECTION 'host=localhost user=postgres dbname=NZMM' > DATA 'the_geom FROM public.road_all_layer2_polyline' > METADATA > 'wms_title' 'MinorRuralRoad' > END > MAXSCALE 15000 > STATUS ON > LABELITEM "road_name" > TRANSPARENCY 100 > REQUIRES ([OtherRoad] eq 1) > CLASS > NAME 'Minor Rural Road' > EXPRESSION ("[class]" = "MINOR RURAL ROAD") > LABEL > COLOR 0 0 0 > FONT sans > TYPE truetype > SIZE 6 > POSITION AUTO > PARTIALS FALSE > ANGLE FOLLOW > BUFFER 10 > OUTLINECOLOR 255 255 255 > END > STYLE > SYMBOL road-line > SIZE 6 > COLOR 0 0 0 > END > STYLE > SYMBOL road-line > SIZE 5 > COLOR 255 0 255 > END > END > END > > Thanks Heaps > > > Neil > -------------- next part -------------- An HTML attachment was scrubbed... URL: From neil at ASDF.CO.NZ Mon Feb 4 16:22:29 2008 From: neil at ASDF.CO.NZ (Neil Fincham) Date: Tue, 5 Feb 2008 13:22:29 +1300 Subject: REQUIRES syntax in Mapfile In-Reply-To: <5a9686e80802041558u5a582093m1c771572d60b6d38@mail.gmail.com> Message-ID: Thanks Mike & Steve, all working as expected now. Neil Mike Saunt wrote: > Neil > > Another good one is REQUIRES "![LayerName]" > > I use this alot to have a base vector layer not draw if Aerial > Photography is shown... > > Cheers > Mike > > > On 04/02/2008, *Neil Fincham* > > wrote: > > Hi All, > > Quick question today, what is the correct syntax for the > REQUIRES tag > in the mapfile? I have tried "REQUIRES ([OtherRoad] = 1)" (I.E, the > layer OtherRoad must be on for the layer to display) and a few other > things and I don't seem to be getting any joy. I have included the map > layer definitions below;- > > LAYER > NAME 'OtherRoad' > TYPE LINE > CONNECTIONTYPE postgis > CONNECTION 'host=localhost user=postgres dbname=NZMM' > DATA 'the_geom FROM public.road_all_layer2_polyline' > METADATA > 'wms_title' 'OtherRoad' > END > MAXSCALE 15000 > STATUS ON > LABELITEM "road_name" > TRANSPARENCY 100 > CLASS > NAME 'Road - Other' > STYLE > SYMBOL road-line > SIZE 1 > COLOR 0 0 0 > END > END > END > > LAYER > NAME 'MinorRuralRoad' > TYPE LINE > CONNECTIONTYPE postgis > CONNECTION 'host=localhost user=postgres dbname=NZMM' > DATA 'the_geom FROM public.road_all_layer2_polyline' > METADATA > 'wms_title' 'MinorRuralRoad' > END > MAXSCALE 15000 > STATUS ON > LABELITEM "road_name" > TRANSPARENCY 100 > REQUIRES ([OtherRoad] eq 1) > CLASS > NAME 'Minor Rural Road' > EXPRESSION ("[class]" = "MINOR RURAL ROAD") > LABEL > COLOR 0 0 0 > FONT sans > TYPE truetype > SIZE 6 > POSITION AUTO > PARTIALS FALSE > ANGLE FOLLOW > BUFFER 10 > OUTLINECOLOR 255 255 255 > END > STYLE > SYMBOL road-line > SIZE 6 > COLOR 0 0 0 > END > STYLE > SYMBOL road-line > SIZE 5 > COLOR 255 0 255 > END > END > END > > Thanks Heaps > > > Neil > > From vishu_73ns at YAHOO.COM Mon Feb 4 20:27:28 2008 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Mon, 4 Feb 2008 22:27:28 -0600 Subject: Single layer, Multiple colors Message-ID: Hi, I have tried multiple class in the same layer but it doesn't work. Though I am able to use single layer with expression to filter the values I require. Thanks, Regards, vishal From ktissahadi at YAHOO.COM Mon Feb 4 23:03:37 2008 From: ktissahadi at YAHOO.COM (I Ketut Tissahadi) Date: Mon, 4 Feb 2008 23:03:37 -0800 Subject: unsubscribe Message-ID: ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping From vishu_73ns at YAHOO.COM Mon Feb 4 23:57:49 2008 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Tue, 5 Feb 2008 01:57:49 -0600 Subject: Single layer, Multiple colors Message-ID: Thanks a lot it worked, perhaps I was not defining the variables properly, I am able to get multi-colors in same layer as suggested by you. Regards, From fatmanyash at GMAIL.COM Tue Feb 5 00:36:02 2008 From: fatmanyash at GMAIL.COM (Yash Amin) Date: Tue, 5 Feb 2008 12:36:02 +0400 Subject: unsubscribe Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Tue Feb 5 05:49:46 2008 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 5 Feb 2008 07:49:46 -0600 Subject: QueryByPoint and MySQL In-Reply-To: A<47A7A29A.2000109@jax.org> Message-ID: Jill, I am guessing that you will need to add the names of your attribute columns to the select statement in your connection string. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jill Recla Sent: Monday, February 04, 2008 5:41 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] QueryByPoint and MySQL Hi all, I'm trying to modify the 5.x Itasca demo (itasca_adds_dhtml) to create layers from a MySQL database. The layers are created successfully, but when I select "Query Feature" and click a MySQL data layer point, I get this error: Content-type: text/html msOGRFileGetItems(): OGR error. Layer MYSQL:genosis,user=root,password=Passw0rd,port=3306,tables=gene_data,-1 contains no fields. Here is the layer definition in my .map file: LAYER NAME lines TYPE LINE STATUS OFF CLASS NAME 'lines' STYLE COLOR 150 0 0 SYMBOL 'circle' SIZE 5 END END TEMPLATE "templates/lines.html" CONNECTIONTYPE OGR CONNECTION "MYSQL:genosis,user=root,password=Passw0rd,port=3306,tables=line_data" DATA "SELECT line FROM line_data" END I have made the line.html template file with the corresponding MySQL fields. I know I'm missing something simple, here........ Can someone please help? Thanks, Jill -- ***************************************************** *****Jill M. Recla****UMaine Functional Genomics***** ***jill.recla at jax.org*****************906-282-8033*** ***************************************************** From David.Fawcett at STATE.MN.US Tue Feb 5 05:56:25 2008 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 5 Feb 2008 07:56:25 -0600 Subject: Single layer, Multiple colors In-Reply-To: A Message-ID: Without and your map file layer text, it is pretty hard to help you with questions like this. Also note that like a case statement, the expressions are evaluated in order. If a record matches the expression in the first class, it will not be evaluated against the expressions in any of the other classes. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Vishal Nagpal Sent: Monday, February 04, 2008 10:27 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Single layer, Multiple colors Hi, I have tried multiple class in the same layer but it doesn't work. Though I am able to use single layer with expression to filter the values I require. Thanks, Regards, vishal From Jukka.Rahkonen at MMMTIKE.FI Tue Feb 5 07:13:06 2008 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Tue, 5 Feb 2008 17:13:06 +0200 Subject: Overriding GeoTIFF projection with world file In-Reply-To: A<5a9686e80802041558u5a582093m1c771572d60b6d38@mail.gmail.com> Message-ID: Hi, I must use two different projections (epsg:2393 and 3067) which both have a common centre meridian 27?E. One is transverse Mercator with scale factor 1, another UTM with scale factor 0.996. Now I can use the same images, without any physical or on-the-fly reprojection simply by creating two sets of world files with adjusted origos and pixel sizes. Actually in my case this leads also to better accuracy because another system has some local distortions which I can compensate by sliding the origo to correct place with world file. But I have a problem: vast majority of my images are in GeoTIFF format having internally defined coordinate system epsg:3067. I wonder if there is some trick to override this projection by world files. Something like a hidden switch TRUST_WORLDFILE=YES which I could use in the mapfile. Does such a switch exist? -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From hartpence_gis at CO.JASPER.IA.US Tue Feb 5 07:15:45 2008 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Tue, 5 Feb 2008 09:15:45 -0600 Subject: dBox CGI point query Message-ID: Hello, I recently posted an issue I was having with dragging a pan using dBox. I now have that isue resolved, but now I have lost teh ability to query by a single mouse click. Selecting by box works fine, but not by point. When I click a point, I get the error: mapserv(): Web application error. No way to generate a valid map extent from selected shapes. Any help would be greatly appreciated!! Lawrence Here is the URL for my website: http://71.7.3.212/JasperMaps/Parcels/goParcels.html Once you initiate the map by clicking the "County View" button, zoom a small box, click the "i" next to teh parcels layer and click on a parcel. Here is the portion of my HTML that sets up the set box parameters: function main_setbox(minx, miny, maxx, maxy) { var MSMode = document.the_form.mode.value var zoomVal = document.the_form.zoomdir.options [document.the_form.zoomdir.selectedIndex].value; //document.the_form.zoomdir.value = zoomVal; //alert(zoomVal) if(MSMode == 'browse') { if (zoomVal == 1 && minx != maxx && miny != maxy){ document.the_form.imgbox.value = minx + " " + miny + " " + maxx + " " + maxy; document.the_form.submit(); } else if (zoomVal == 1 && minx == maxx && miny == maxy){ document.the_form.imgxy.value = minx + " " + miny; document.the_form.submit(); } if (zoomVal == 0 && minx != maxx && miny != maxy){ ZoomMode(); } else if (zoomVal == 0 && minx == maxx && miny == maxy){ document.the_form.imgxy.value = minx + " " + miny; document.the_form.submit(); } if (zoomVal == -1){ document.the_form.imgxy.value = minx + " " + miny; document.the_form.submit(); } } if (MSMode != 'browse' && minx != maxx && miny != maxy) { document.the_form.imgbox.value = minx + " " + miny + " " + maxx + " " + maxy; document.the_form.submit(); } if (MSMode != 'browse' && minx == maxx && miny == maxy) { document.the_form.imgxy.value = minx + " " + miny; document.the_form.submit(); } } From warmerdam at POBOX.COM Tue Feb 5 09:44:50 2008 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 5 Feb 2008 12:44:50 -0500 Subject: Overriding GeoTIFF projection with world file In-Reply-To: Message-ID: Rahkonen Jukka wrote: > Hi, > > I must use two different projections (epsg:2393 and 3067) which both > have a common centre meridian 27?E. One is transverse Mercator with > scale factor 1, another UTM with scale factor 0.996. Now I can use the > same images, without any physical or on-the-fly reprojection simply by > creating two sets of world files with adjusted origos and pixel > sizes. Actually in my case this leads also to better accuracy because > another system has some local distortions which I can compensate by > sliding the origo to correct place with world file. > But I have a problem: vast majority of my images are in GeoTIFF format > having internally defined coordinate system epsg:3067. I wonder if > there is some trick to override this projection by world files. > Something like a hidden switch TRUST_WORLDFILE=YES which I could use in > the mapfile. Does such a switch exist? Jukka, I'm afraid there is no such option. Alternate approaches include: 1) reprocess the tiff so it has no internal geo information. For example, with gdal_translate -co PROFILE=BASELINE 2) Create a VRT wrapper for the TIFF in which you can modify the geotransform and then use that VRT proxy in place of the TIFF. 3) well, I'm sure there are other methods. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From Jukka.Rahkonen at MMMTIKE.FI Tue Feb 5 10:17:22 2008 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Tue, 5 Feb 2008 20:17:22 +0200 Subject: Overriding GeoTIFF projection with world file Message-ID: Frank Warmerdam wrote: > Rahkonen Jukka wrote: >> Hi, >> >> I must use two different projections (epsg:2393 and 3067) which both >> have a common centre meridian 27?E. One is transverse Mercator with >> scale factor 1, another UTM with scale factor 0.996. Now I can use the >> same images, without any physical or on-the-fly reprojection simply by >> creating two sets of world files with adjusted origos and pixel >> sizes. Actually in my case this leads also to better accuracy because >> another system has some local distortions which I can compensate by >> sliding the origo to correct place with world file. >> But I have a problem: vast majority of my images are in GeoTIFF format >> having internally defined coordinate system epsg:3067. I wonder if >> there is some trick to override this projection by world files. >> Something like a hidden switch TRUST_WORLDFILE=YES which I could use in >> the mapfile. Does such a switch exist? >Jukka, > I'm afraid there is no such option. > Alternate approaches include: > 1) reprocess the tiff so it has no internal geo information. For example, with gdal_translate -co PROFILE=BASELINE Yes, I know that this would work, but I hate this option anyway. I have 20000 image files and removing geoinformation from them would take at least 3 minutes per image. Even one minute per image would mean 333 hours. And I would like to keep the internal geoinformation inside the image file because usually it is extremely useful. > 2) Create a VRT wrapper for the TIFF in which you can modify the geotransform and then use that VRT proxy in place of the TIFF. > 3) well, I'm sure there are other methods. How about trying to motivate some clever developer to create the option I mentioned... Point 1) might give me possibilities for making an investment. I fear this feature is not too much of general interest. -Jukka- From warmerdam at POBOX.COM Tue Feb 5 11:38:49 2008 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 5 Feb 2008 14:38:49 -0500 Subject: Overriding GeoTIFF projection with world file In-Reply-To: Message-ID: Rahkonen Jukka wrote: >> 3) well, I'm sure there are other methods. > > How about trying to motivate some clever developer to create the option I > mentioned... Point 1) might give me possibilities for making an investment. > I fear this feature is not too much of general interest. Jukka, From a coding point of view this is not complicated. The function msGetGDALGeoTransform() is used for all code needing a gdal geotransform and it is trivial to make the GDALGetGeoTransform() call lower priority than the world file or ows metadata. I'm just not sure I could justify this as a change to make to the core mapserver software. If you wanted to keep this as a local change in your own builds of mapserver you can change that function around somewhat. Of course, this might introduce a configuration management issues on your end in the long term. I don't really need any financial motivation in this case. It's more of a concern that we may be introducing too many quirky behaviors in the software. If you *really* need it I could add an undocumented PROCESSING option that can be set on a layer and that msGetGDALGeoTransform() would use to decide on priority of checks. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From nelson.guda at GMAIL.COM Tue Feb 5 13:31:55 2008 From: nelson.guda at GMAIL.COM (nelson guda) Date: Tue, 5 Feb 2008 15:31:55 -0600 Subject: join tables question Message-ID: Hi all, I was looking into the JOIN feature. In the reference it says "You cannot use joins to affect the look of a map." Will there ever be a way to use a JOIN in this manner? For example, it would be extremely useful to be able to create maps that use geographic data from an existing shapefile, modified by parameters from a dynamically created csv. I know that you can do something similar fairly easily with postgis, but I am trying to find ways around postgis since it is so slow and requires a special server setup. thanks, nelson From agrodrigues at IPT.PT Mon Feb 4 14:05:45 2008 From: agrodrigues at IPT.PT (=?iso-8859-1?Q?Ant=F3nio_Rodrigues?=) Date: Mon, 4 Feb 2008 22:05:45 -0000 Subject: getting mapserver running (new user) Message-ID: Dear all, I'm a new mapserver user. I've tried to get some demos running locally on my pc (running ubuntu 7.10), but with no success. All required software is installed, the webserver (5.0) is up and running (after installing, unpacking the demo archive, restarting apache, opening the browser and testing, I get the "No query information to decode. QUERY_STRING is set, but empty."), but Somehow, I haven't been able to modify the MAP and HTML files to reflect the paths of my machine. This is probably a really simple and basic question, but I've really spent several hours on it and I'm getting quite frustrated. Rather than listing all errors I got, here's a simples example: I created the following MAP file (almost a copy from something I found on the net): MAP NAME Davos_test UNITS DD # map units are decimal degrees EXTENT -180 -90 180 90 # geographic extent in latitude / longitude coordinates SIZE 800 400 # width and height of the display in pixels IMAGECOLOR 128 128 255 #image background colour SHAPEPATH '../data' END Now, I think this will just create an empty frame. I saved this file as test.MAP. My question is: How do I get this frame on my browser. I'm not sure if the question is clear enough. I apologize if this is a too simple king of question, but I would really appreciate some help. Thanks, Ant?nio -------------- next part -------------- An HTML attachment was scrubbed... URL: From vishu_73ns at YAHOO.COM Tue Feb 5 19:45:19 2008 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Tue, 5 Feb 2008 21:45:19 -0600 Subject: Single layer, Multiple colors Message-ID: Thanks a lot, Its working now, Regards From porath at WEB.DE Tue Feb 5 23:55:08 2008 From: porath at WEB.DE (H. Porath) Date: Wed, 6 Feb 2008 01:55:08 -0600 Subject: Overriding GeoTIFF projection with world file Message-ID: Hi all, we had the same problem. We solved it by patching the file geotiff.cpp of the gdal distribution. With this patch GDAL now first looks for a worldfile and only looks for internal georeferences if it cannot find a worldfile. If someone is interested in this patch i can send it to him or her. Even better would be an extension as mentioned by Frank. Regards, Holger From gregoavila at GMAIL.COM Wed Feb 6 02:36:21 2008 From: gregoavila at GMAIL.COM (=?ISO-8859-1?Q?Gregorio_Mu=F1oz?=) Date: Wed, 6 Feb 2008 11:36:21 +0100 Subject: SLD Message-ID: Hello! I am working with SLD but can not make it work. This my url: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/urbanismo/maps/mymap.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=Recintos&SRS=EPSG:23030&BBOX=235455.57724245856,4140286.563575713,240403.0990635437,4144581.824219214&WIDTH=500&HEIGHT=400&FORMAT=image/png&STYLES=default&TRANSPARENT=TRUE&http://127.0.0.1/ms4w/apps/urbanismo/sld/recintos.sld And this is my SLD document "recintos.sld": urbanismo SLD for MapServer OGC Web Services Workshop This is an SLD to show how one can make a custom style without having to change the data style at the server-side Recintos sld_01 sld_01 1 #FF00FF 3 In my map file "mymap.map" there is a layer called "Recintos" (TYPE LINE). Does anyone know why it does not work? Any idea please? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at GMAIL.COM Wed Feb 6 03:34:27 2008 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Wed, 6 Feb 2008 12:34:27 +0100 Subject: SLD In-Reply-To: Message-ID: Your URL should have &SLD= before the sld URL. Best regards, Bart On Feb 6, 2008 11:36 AM, Gregorio Mu?oz wrote: > Hello! > > I am working with SLD but can not make it work. > > This my url: > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/urbanismo/maps/mymap.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=Recintos&SRS=EPSG:23030&BBOX=235455.57724245856,4140286.563575713,240403.0990635437,4144581.824219214&WIDTH=500&HEIGHT=400&FORMAT=image/png&STYLES=default&TRANSPARENT=TRUE&http://127.0.0.1/ms4w/apps/urbanismo/sld/recintos.sld > > And this is my SLD document "recintos.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 > http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> > urbanismo > SLD for MapServer OGC Web Services Workshop > This is an SLD to show how one can make a custom style > without having to change the data style at the server-side > > Recintos > > sld_01 > sld_01 > 1 > > > > > name="stroke">#FF00FF > name="stroke-width">3 > > > > > > > > > In my map file "mymap.map" there is a layer called "Recintos" (TYPE LINE). > > > Does anyone know why it does not work? > > Any idea please? > > Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From chippy2005 at GMAIL.COM Wed Feb 6 06:49:59 2008 From: chippy2005 at GMAIL.COM (tim) Date: Wed, 6 Feb 2008 14:49:59 +0000 Subject: mapfile .map syntax for gedit text editor Message-ID: Hello, I've written a syntax file for Mapserver's mapfile (.map) for the gedit text editor. 1. To get gnome/gedit to recognise a .map file and give it the correct syntax: http://geothings.net/thinkwhere/mapserver/map.lang copy it to /usr/share/mime/packages/ directory then run "sudo update-mime-database /usr/share/mime" 2. The syntax file: http://geothings.net/thinkwhere/mapserver/mapserver.xml /usr/share/gtksourceview-1.0/language-specs (or gtksourceview-2.0/language-specs for Gutsy) then restart gedit and open a .map file. More fuller directions here (with links and screenshot) http://thinkwhere.wordpress.com/2008/02/06/mapserver-syntax-file-for-gedit/ Many thanks to the other syntax files for vim, textpad and notepad++ that I used to help write it. Tested on ubuntu Fiesty, let me know if it works, or doesn't. Thanks, Tim From chippy2005 at GMAIL.COM Wed Feb 6 07:55:24 2008 From: chippy2005 at GMAIL.COM (tim) Date: Wed, 6 Feb 2008 15:55:24 +0000 Subject: mapfile .map syntax for gedit text editor In-Reply-To: <73c11890802060649x59e79ebfn8aee696d3fac0d61@mail.gmail.com> Message-ID: Whoops! the directories for the files should go in the other way around. Correct: mapserver.xml to /usr/share/mime/packages/ and map.lang to /usr/share/gtksourceview-1.0/language-specs also for Gutsy, gtksourceview2.0 is a bit different than 1.0 http://live.gnome.org/GtkSourceView so will see if it can be compatible with that, also. cheers tim From David.Hunter at FNIS.COM Wed Feb 6 09:51:29 2008 From: David.Hunter at FNIS.COM (Hunter, David - St. Louis Park, MN) Date: Wed, 6 Feb 2008 11:51:29 -0600 Subject: AGG and legends Message-ID: While experimenting with AGG, it appears that the legend is still drawn using GD, no matter what the OUTPUTFORMAT settings are. Is this intentional? David S. Hunter Lead Software Engineer Fidelity National Geographic Solutions division of Fidelity National Information Services 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 Email: david.hunter at fnis.com Phone: 952.542.1440 ext. 256 Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Hunter at FNIS.COM Wed Feb 6 09:56:24 2008 From: David.Hunter at FNIS.COM (Hunter, David - St. Louis Park, MN) Date: Wed, 6 Feb 2008 11:56:24 -0600 Subject: AGG and vertical line symbol Message-ID: When I use SYMBOL "line-vertical" in a class with AGG, the lines are broken up, looking like vertical dashes. Is there a workaround for this, or another symbol that works? David S. Hunter Lead Software Engineer Fidelity National Geographic Solutions division of Fidelity National Information Services 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 Email: david.hunter at fnis.com Phone: 952.542.1440 ext. 256 Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Hunter at FNIS.COM Wed Feb 6 10:10:20 2008 From: David.Hunter at FNIS.COM (Hunter, David - St. Louis Park, MN) Date: Wed, 6 Feb 2008 12:10:20 -0600 Subject: AGG and symbol, more info Message-ID: I thought I'd add the definition of the "line-vertical" symbol from my previous email: SYMBOL NAME "line-vertical" TYPE vector POINTS 0.5 0 0.5 1 END END I tried adding "GAP 0", but it had no effect. David S. Hunter Lead Software Engineer Fidelity National Geographic Solutions division of Fidelity National Information Services 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 Email: david.hunter at fnis.com Phone: 952.542.1440 ext. 256 Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at GMAIL.COM Wed Feb 6 11:08:53 2008 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Wed, 6 Feb 2008 20:08:53 +0100 Subject: AGG and legends In-Reply-To: <82227F50E3BCD34F89FA1A6F46A96B5B03BF9F36@smbfnis-chi01.fnis.com> Message-ID: legends are drawn with agg to. please post the relevant sections of your mapfile to see what could be going wrong. regards, thomas On Feb 6, 2008 6:51 PM, Hunter, David - St. Louis Park, MN wrote: > > > > > While experimenting with AGG, it appears that the legend is still drawn > using GD, no matter what the OUTPUTFORMAT settings are. Is this > intentional? > > > > > > David S. Hunter > Lead Software Engineer > Fidelity National Geographic Solutions > division of Fidelity National Information Services > 5353 Gamble Drive, Suite 201 > St. Louis Park, MN 55416 > Email: david.hunter at fnis.com > Phone: 952.542.1440 ext. 256 > Fax: 952.542.3859 > > > > > > From thomas.bonfort at GMAIL.COM Wed Feb 6 11:11:08 2008 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Wed, 6 Feb 2008 20:11:08 +0100 Subject: AGG and vertical line symbol In-Reply-To: <82227F50E3BCD34F89FA1A6F46A96B5B03BF9F3B@smbfnis-chi01.fnis.com> Message-ID: if your trying to get hatching, you should probably be going with the hatch symbol. if not, could you post your layer definition and a screenshot of what you're getting regards, thomas On Feb 6, 2008 6:56 PM, Hunter, David - St. Louis Park, MN wrote: > > > > > When I use > > > > SYMBOL "line-vertical" > > > > in a class with AGG, the lines are broken up, looking like vertical dashes. > Is there a workaround for this, or another symbol that works? > > > > David S. Hunter > Lead Software Engineer > Fidelity National Geographic Solutions > division of Fidelity National Information Services > 5353 Gamble Drive, Suite 201 > St. Louis Park, MN 55416 > Email: david.hunter at fnis.com > Phone: 952.542.1440 ext. 256 > Fax: 952.542.3859 > > > > > > From David.Hunter at FNIS.COM Wed Feb 6 11:25:36 2008 From: David.Hunter at FNIS.COM (Hunter, David - St. Louis Park, MN) Date: Wed, 6 Feb 2008 13:25:36 -0600 Subject: AGG and legends Message-ID: Here's my legend section: LEGEND STATUS ON KEYSIZE 22 22 LABEL TYPE BITMAP SIZE SMALL COLOR 0 0 89 END TEMPLATE "nyptmaps_legend.htm" END It looks like GD is drawing the legend symbols, because the lines are very coarse, and the hatching problem that I talked about in another email is not present. -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Wednesday, February 06, 2008 1:09 PM To: Hunter, David - St. Louis Park, MN Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] AGG and legends legends are drawn with agg to. please post the relevant sections of your mapfile to see what could be going wrong. regards, thomas On Feb 6, 2008 6:51 PM, Hunter, David - St. Louis Park, MN wrote: > > > > > While experimenting with AGG, it appears that the legend is still drawn > using GD, no matter what the OUTPUTFORMAT settings are. Is this > intentional? > > > > > > David S. Hunter > Lead Software Engineer > Fidelity National Geographic Solutions > division of Fidelity National Information Services > 5353 Gamble Drive, Suite 201 > St. Louis Park, MN 55416 > Email: david.hunter at fnis.com > Phone: 952.542.1440 ext. 256 > Fax: 952.542.3859 > > > > > > From Bob.Basques at CI.STPAUL.MN.US Wed Feb 6 11:38:53 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 6 Feb 2008 13:38:53 -0600 Subject: AGG and legends In-Reply-To: Message-ID: I don't think that BITMAP fonts are supported for AGG, Here is the Legend def from the Googlish Mapfile I put together a couple of weeks ago. LEGEND STATUS ON KEYSPACING 5 10 KEYSIZE 20 12 IMAGECOLOR 255 255 255 LABEL TYPE TRUETYPE FONT bluehigh COLOR 0 0 0 OUTLINECOLOR 254 254 254 SIZE 12 END END The above combined with a separate section in the mapfile dedicated to the Legends generates this graphic: http://gis.ci.stpaul.mn.us/datasets/SHP/METC/TLG/CENTERLINES_TLG/tlg_shields_googlish_agg_public.map-4.99-pwcs-01?mapext=335538.0886426592%20-11724.376731301949%20719547.783933518%20343275.62326869805&mapsize=781%20722&mode=legend Which is a 24 bit png with transparent background (no IE 6 happy) bobb Bob Basques GIS Systems Developer City of Saint Paul, MN GISmo Powered by GeoMOOSE >>> "Hunter, David - St. Louis Park, MN" wrote: Here's my legend section: LEGEND STATUS ON KEYSIZE 22 22 LABEL TYPE BITMAP SIZE SMALL COLOR 0 0 89 END TEMPLATE "nyptmaps_legend.htm" END It looks like GD is drawing the legend symbols, because the lines are very coarse, and the hatching problem that I talked about in another email is not present. -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com]=20 Sent: Wednesday, February 06, 2008 1:09 PM To: Hunter, David - St. Louis Park, MN Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] AGG and legends legends are drawn with agg to. please post the relevant sections of your mapfile to see what could be going wrong. regards, thomas On Feb 6, 2008 6:51 PM, Hunter, David - St. Louis Park, MN wrote: > > > > > While experimenting with AGG, it appears that the legend is still drawn > using GD, no matter what the OUTPUTFORMAT settings are. Is this > intentional? > > > > > > David S. Hunter > Lead Software Engineer > Fidelity National Geographic Solutions > division of Fidelity National Information Services > 5353 Gamble Drive, Suite 201 > St. Louis Park, MN 55416 > Email: david.hunter at fnis.com > Phone: 952.542.1440 ext. 256 > Fax: 952.542.3859 > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 11946 bytes Desc: not available URL: From thomas.bonfort at GMAIL.COM Wed Feb 6 11:44:45 2008 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Wed, 6 Feb 2008 20:44:45 +0100 Subject: AGG and vertical line symbol In-Reply-To: <82227F50E3BCD34F89FA1A6F46A96B5B03BF9F7F@smbfnis-chi01.fnis.com> Message-ID: this was also fixed in trunk since the 5.0 but didn't make it into the 5.0 branch. you can use the hatch symbol which is designed for this kind of symbology SYMBOL NAME 'hatch' TYPE HATCH END and then in your style block STYLE SYMBOL 'hatch' SIZE 10 # the spacing between lines in hatch WIDTH 1 # the width of each individual hatch line ANGLE 90 #can be any other angle to COLOR .... ... END regards, thomas On Feb 6, 2008 8:34 PM, Hunter, David - St. Louis Park, MN wrote: > I turn AGG on with this: > > OUTPUTFORMAT > NAME 'AGG_Q' > DRIVER AGG/PNG > IMAGEMODE RGB > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_DITHER=OFF" > FORMATOPTION "QUANTIZE_COLORS=256" > END > > When I test with GD, I remove the above OUTPUTFORMAT block, and add this > line at the MAP level: > > IMAGETYPE PNG24 > > Note that that the PNG24 and JPEG AGG drivers produce the same result. > > The layer that produces the hatched polygons is defined like this: > > # Hydrants > LAYER > NAME "Hydrants" > TILEINDEX "PPC/hydrants" > STATUS DEFAULT > TYPE POLYGON > TRANSPARENCY 50 > > MAXSCALE 3920 > CLASS > EXPRESSION ('[WATER_SUPP]' = 'H' || '[WATER_SUPP]' = 'D' || > '[WATER_SUPP]' = 'S') > NAME "Creditable Water Supply Area" > SYMBOL "line-vertical" > COLOR 102 153 204 > OUTLINECOLOR 102 153 204 > SIZE 5 > END > CLASS > EXPRESSION ('[WATER_SUPP]' = 'U') > NAME "Non-Creditable Water Supply Area" > SYMBOL "line-horizontal" > COLOR 102 102 102 > OUTLINECOLOR 102 102 102 > SIZE 2 > END > END > > > > Attached are sample maps produced with AGG and GD. > > > > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Wednesday, February 06, 2008 1:11 PM > To: Hunter, David - St. Louis Park, MN > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] AGG and vertical line symbol > > if your trying to get hatching, you should probably be going with the > hatch symbol. > if not, could you post your layer definition and a screenshot of what > you're getting > regards, > thomas > > On Feb 6, 2008 6:56 PM, Hunter, David - St. Louis Park, MN > wrote: > > > > > > > > > > When I use > > > > > > > > SYMBOL "line-vertical" > > > > > > > > in a class with AGG, the lines are broken up, looking like vertical > dashes. > > Is there a workaround for this, or another symbol that works? > > > > > > > > David S. Hunter > > Lead Software Engineer > > Fidelity National Geographic Solutions > > division of Fidelity National Information Services > > 5353 Gamble Drive, Suite 201 > > St. Louis Park, MN 55416 > > Email: david.hunter at fnis.com > > Phone: 952.542.1440 ext. 256 > > Fax: 952.542.3859 > > > > > > > > > > > > > > From thomas.bonfort at GMAIL.COM Wed Feb 6 12:21:15 2008 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Wed, 6 Feb 2008 21:21:15 +0100 Subject: AGG and legends In-Reply-To: <47A9B86D.163B.00A8.0@ci.stpaul.mn.us> Message-ID: On Feb 6, 2008 8:38 PM, Bob Basques wrote: > > > I don't think that BITMAP fonts are supported for AGG, they are supported in trunk (i.e. what will be 5.2) From clinton at CO.EMERY.UT.US Wed Feb 6 13:35:53 2008 From: clinton at CO.EMERY.UT.US (Clinton Olsen) Date: Wed, 6 Feb 2008 15:35:53 -0600 Subject: Zoom & Pan Message-ID: Hello, I would like to know how I can take the application I created from the tutorial, and add zoom windows, so I can click on the viewer and drag a window across a certain area to zoom in or out. And I need to know if there is a way I can make my application pan by using the click and drag method. For reference my application can be found at the internet address below. http://www.emerycounty.com:90/cgi-bin/mapserv.exe? map=/emerycounty/ms4w/apps/tutorial/htdocs/lawcem- maps/lawcem.map&layer=emeryroads&layer=emeryborder&layer=living&layer=bu riedother&layer=plots&layer=fences&layer=gravemarkers&layer=cemlabels&zoom =0&mode=browse&root=/tutorial&program=/cgi- bin/mapserv.exe&map_web_imageurl=/ms_tmp/&map_web_imagepath=/emeryco unty/ms4w/tmp/ms_tmp/&map_web_template=index.html&mapext=1357154+65 19737+2340584+7175357 Please let me know what all you need in order to give me some ideas. Thanks. From Jukka.Rahkonen at MMMTIKE.FI Wed Feb 6 14:04:40 2008 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 7 Feb 2008 00:04:40 +0200 Subject: Overriding GeoTIFF projection with world file Message-ID: Frank Warmerdam wrote: > Rahkonen Jukka wrote: >>> 3) well, I'm sure there are other methods. >> >> How about trying to motivate some clever developer to create the option I >> mentioned... Point 1) might give me possibilities for making an investment. >> I fear this feature is not too much of general interest. >Jukka, > From a coding point of view this is not complicated. The function > msGetGDALGeoTransform() is used for all code needing a gdal geotransform and > it is trivial to make the GDALGetGeoTransform() call lower priority than > the world file or ows metadata. I'm just not sure I could justify this > as a change to make to the core mapserver software. > If you wanted to keep this as a local change in your own builds of mapserver > you can change that function around somewhat. Of course, this might > introduce a configuration management issues on your end in the long term. > I don't really need any financial motivation in this case. It's more of a > concern that we may be introducing too many quirky behaviors in the software. > If you *really* need it I could add an undocumented PROCESSING option that > can be set on a layer and that msGetGDALGeoTransform() would use to decide > on priority of checks. Frank, I have been considerering the situation and yes, I think I would *really* like to use this trick if it exists. In general, wouldn't it make at least some sense to first check something that is fast and simple to edit or rename or delete if needed (world file in this case), and not something like GeoTIFF tags which are much more hard and expensive to handle? -Jukka- From Bob.Basques at CI.STPAUL.MN.US Wed Feb 6 15:16:58 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 6 Feb 2008 17:16:58 -0600 Subject: Feedback request for a Modified GeoMoose client. Message-ID: All, Looking for comments on the following Flash video related to possible future directions of GeoMoose development. Beware, this is a 15 meg file, but it does stream pretty well. http://pwultra5.ci.stpaul.mn.us/cp_tiles/temp/gismo/gismo3_files/gismo3.swf I did this video quite a while back, in Nov of 2006. This was an early prototype of GeoMoose code (actaully, before it was even called GeoMoose), it's known internally as GISmo. You'll see that the operational ideas were a bit different in this version, but the majority of it was functional. This code base was used for the distributed version of GeoMoose as it now is distributed. The currently distributed version of GeoMoose is in a simpler form because the majority of users and development partners were after an interface that would be simple and easy to learn and use, primarily for General Internet users for map browsing. This proved to be a good decision I believe based on the positive acceptance of the GeoMoose product by it's adopters to date. The feedback that I'm looking for is, should we (re)examine the idea of going back to this earlier development track with more emphasis on some GIS analysis capabilities vs the data discovery method that GeoMoose is currently distributed with. BTW, a lot of the tools described in this interface, is still pertinent to the released version of GeoMoose. Let the feedback begin . . . bobb **************** You can't be late until you show up. *************** ************ You never learn anything by doing it right. ************ *** War doesn't determine who's right. War determines who's left. *** From warmerdam at POBOX.COM Wed Feb 6 15:22:19 2008 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 6 Feb 2008 18:22:19 -0500 Subject: Overriding GeoTIFF projection with world file In-Reply-To: Message-ID: Rahkonen Jukka wrote: > Frank, > > I have been considerering the situation and yes, I think I would *really* > like to use this trick if it exists. In general, wouldn't it make at least > some sense to first check something that is fast and simple to edit or > rename or delete if needed (world file in this case), and not something > like GeoTIFF tags which are much more hard and expensive to handle? Jukka, No, I don't agree. The GeoTIFF tags are already being read as the TIFF directory is read, and so access to them is essentially free. Looking for the world files requires an extra operating system open attempt (or several for the various possible extensions) which are at least moderately expensive. And world files can occasionally end up being applied to the wrong file. For instance a directory with abc.png, abc.tif and abc.wld - it is hard to know which image file the .wld was intended to apply to. However, I'm willing to add a mechanism to override the default behavior. There are a couple approaches. One is to handle this in MapServer in the msGetGDALGeoTransform() function and it would likely be based on a layer level PROCESSING option. The other approach is to do it in GDAL's GeoTIFF driver and based on a configuration option (normally an environment variable though these can also be set in .map files with a CONFIG line). The benefit of doing it in GDAL is that it applies to all GDAL apps. The downside is that it only applies to GeoTIFF files. Note, in any event, I expect this change will only go into the development version (trunk) of either GDAL or MapServer. I trust you are ok with building from source 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 OSGeo, http://osgeo.org From David.Hunter at FNIS.COM Wed Feb 6 15:35:11 2008 From: David.Hunter at FNIS.COM (Hunter, David - St. Louis Park, MN) Date: Wed, 6 Feb 2008 17:35:11 -0600 Subject: qstring validation Message-ID: Since moving to mapserver 5.0 (mostly to test AGG), a layer in my map file that has this class definition: CLASS EXPRESSION (%qstring%) COLOR 230 230 179 END The query no longer works. If I change it to an explicit query string, like: EXPRESSION ('[DISTRICT]' eq 'ALTAMONT') The polygon is filled as expected. In the "MapServer 4.10 to 5.0 Migration Guide", there is mention that in the case of qstring queries, the qstring_validation_pattern layer-level metadata is required. It also says the absence of this setting produces a fatal error. My maps still work, they just do not fill in the polygon that matches the qstring. I cannot find any examples or documentation for the qstring_validation_pattern setting. Can anybody give me a pointer in the right direction? David S. Hunter Lead Software Engineer Fidelity National Geographic Solutions division of Fidelity National Information Services 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 Email: david.hunter at fnis.com Phone: 952.542.1440 ext. 256 Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From flavio at TYDAC.CH Wed Feb 6 22:56:16 2008 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 7 Feb 2008 07:56:16 +0100 Subject: AGG and PNG Output - no white background In-Reply-To: Message-ID: Hi Thomas / Group Using PNG Output using AGG, the map background does not turn out white (255,255,255) but in some greyish (250,252,250 or similar). Does not really matter on screen, but is remarkable printing ... This no matter if I use quantize or not. Same map using JPEG no problem. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch TYDAC SwissMaps: http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/luternauweg/12 ---------------------------------------------------------------- From thomas.bonfort at GMAIL.COM Wed Feb 6 23:44:19 2008 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Thu, 7 Feb 2008 08:44:19 +0100 Subject: AGG and PNG Output - no white background In-Reply-To: Message-ID: hi Flavio, can you double check you're not using quantization or palette_force? I don't experience the problem you're pointing out if using plain png output. cheers, thomas On Feb 7, 2008 7:56 AM, Flavio Hendry wrote: > Hi Thomas / Group > > Using PNG Output using AGG, the map background does not turn out white > (255,255,255) but in some greyish (250,252,250 or similar). Does not > really matter on screen, but is remarkable printing ... This no matter > if I use quantize or not. Same map using JPEG no problem. > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC Web-Site: http://www.tydac.ch > TYDAC MapServer: http://www.mapserver.ch > TYDAC SwissMaps: http://www.mapplus.ch > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > Location: http://www.mapplus.ch/adr/bern/luternauweg/12 > ---------------------------------------------------------------- > > > From stefano.bonnin at COMAI.TO Wed Feb 6 23:29:41 2008 From: stefano.bonnin at COMAI.TO (Stefano Bonnin) Date: Thu, 7 Feb 2008 08:29:41 +0100 Subject: Mapserver 5 cgi Compilation problem Message-ID: Hi, I've just compiled the 5.0.0 version of mapserver in my freebsd 5.3. The compilation step seems ok and I don't receive any errors. But when I try: ./mapserv -v MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE mapserv in free(): error: chunk is already free Abort (core dumped) same problem with 5.0.2 version. I compile with the following configuration: ./configure --with-proj=../proj-4.6.0/ --with-php=../php-5.2.5 --with-postgis=/usr/local/postgresql/8.3/bin/pg_config --with-freetype=/usr/local/include/freetype2/freetype --with-gd=/usr/local --without-tiff --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-httpd=/usr/www2/bin/httpd --with-wmsclient --with-wfsclient --with-wfs --with-curl-config=/usr/local/bin/curl-config --with-libiconv=/usr/local but a simple ./configure give the same problem Thanks in advance Stefano From szekerest at GMAIL.COM Thu Feb 7 01:21:11 2008 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 7 Feb 2008 10:21:11 +0100 Subject: Mapserver 5 cgi Compilation problem In-Reply-To: <47AAB365.9020804@comai.to> Message-ID: Stefano, Would you provide the core dump and/or any further info you have so as to locate the problem? Best regards, Tamas 2008/2/7, Stefano Bonnin : > Hi, I've just compiled the 5.0.0 version of mapserver in my freebsd 5.3. > The compilation step seems ok and I don't receive any errors. > But when I try: > > ./mapserv -v > MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > mapserv in free(): error: chunk is already free > Abort (core dumped) > > same problem with 5.0.2 version. > > I compile with the following configuration: > ./configure --with-proj=../proj-4.6.0/ --with-php=../php-5.2.5 > --with-postgis=/usr/local/postgresql/8.3/bin/pg_config > --with-freetype=/usr/local/include/freetype2/freetype > --with-gd=/usr/local --without-tiff --with-gdal=/usr/local/bin/gdal-config > --with-ogr=/usr/local/bin/gdal-config --with-httpd=/usr/www2/bin/httpd > --with-wmsclient --with-wfsclient --with-wfs > --with-curl-config=/usr/local/bin/curl-config --with-libiconv=/usr/local > > but a simple ./configure give the same problem > > Thanks in advance > Stefano > From sylvain.perrinel at AGRICULTURE.GOUV.FR Thu Feb 7 07:06:00 2008 From: sylvain.perrinel at AGRICULTURE.GOUV.FR (Sylvain Perrinel) Date: Thu, 7 Feb 2008 16:06:00 +0100 Subject: Mapserver 5.0.2 compilation fails at Agg/GD Message-ID: Hello list, I'm trying to compile Mapserver 5.0.2 on RedHat 4 E.L. with Agg-2.5. Configuration is oki but compilation fails on this lines : mapgd.c:1003: attention : ?? drawVectorSymbolGD ?? d??fini mais n'a pas ??t?? utilis?? g++ -O2 -fPIC -Wall -DNEED_NONBLOCKING_STDERR -DHAVE_VSNPRINTF -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_AGG -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DUSE_ZLIB -I/usr/include -I/export/home/rimboval/sgbdr/agg-2.5/include -I/export/home/rimboval/sgbdr/agg-2.5/font_freetype -I/usr/include/freetype2 -I/export/home/rimboval/sgbdr/logicielDIG/include -I/export/home/rimboval/sgbdr/logicielDIG/include -I/export/home/rimboval/sgbdr/logicielDIG/include -I/export/home/rimboval/sgbdr/logicielDIG/include -c -o mapagg.o mapagg.cpp mapagg.cpp: In function `agg::rendering_buffer gdImg2AGGRB_BGRA(gdImage*)': mapagg.cpp:201: erreur: ?? gdImageGetTrueColorPixel ?? n'a pas ??t?? d??clar?? dans cet horizon mapagg.cpp:201: attention : variable ?? gdImageGetTrueColorPixel ?? inutilis??e make: *** [mapagg.o] Erreur 1 The failure seems to be associated with Agg and GD. The GD version is 2.0.28. Thanks for any suggestions. -- Sylvain Perrinel France / Minist?re de l'Agriculture From hobu.inc at GMAIL.COM Thu Feb 7 06:22:07 2008 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Thu, 7 Feb 2008 08:22:07 -0600 Subject: Mapserver 5.0.2 compilation fails at Agg/GD In-Reply-To: <47AB1E58.8000704@agriculture.gouv.fr> Message-ID: On Feb 7, 2008, at 9:06 AM, Sylvain Perrinel wrote: > Hello list, > I'm trying to compile Mapserver 5.0.2 on RedHat 4 E.L. with Agg-2.5. > Configuration is oki but compilation fails on this lines : > > mapgd.c:1003: attention : ?? drawVectorSymbolGD ?? d??fini mais n'a > pas ??t?? utilis?? > g++ -O2 -fPIC -Wall -DNEED_NONBLOCKING_STDERR -DHAVE_VSNPRINTF - > DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - > DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_GD_GIF -DUSE_GD_PNG - > DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - > DGD_HAS_GETBITMAPFONTS -DUSE_AGG -DUSE_OGR -DUSE_GDAL -DUSE_GEOS - > DUSE_ICONV -DUSE_POSTGIS -DUSE_ZLIB -I/usr/include -I/export/ > home/rimboval/sgbdr/agg-2.5/include -I/export/home/rimboval/sgbdr/ > agg-2.5/font_freetype -I/usr/include/freetype2 -I/export/home/ > rimboval/sgbdr/logicielDIG/include -I/export/home/rimboval/sgbdr/ > logicielDIG/include -I/export/home/rimboval/sgbdr/logicielDIG/ > include -I/export/home/rimboval/sgbdr/logicielDIG/include -c - > o mapagg.o mapagg.cpp > mapagg.cpp: In function `agg::rendering_buffer > gdImg2AGGRB_BGRA(gdImage*)': > mapagg.cpp:201: erreur: ?? gdImageGetTrueColorPixel ?? n'a pas ??t?? > d??clar?? dans cet horizon > mapagg.cpp:201: attention : variable ?? gdImageGetTrueColorPixel ?? > inutilis??e > make: *** [mapagg.o] Erreur 1 > > The failure seems to be associated with Agg and GD. The GD version > is 2.0.28. > > Thanks for any suggestions. I think you need GD version 2.0.32 or greater (the newer the better). Howard From Jukka.Rahkonen at MMMTIKE.FI Thu Feb 7 07:25:35 2008 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 7 Feb 2008 17:25:35 +0200 Subject: Overriding GeoTIFF projection with world file In-Reply-To: <47AA412B.6090605@pobox.com> Message-ID: Frank Warmerdam wrote > Rahkonen Jukka wrote: > > Frank, > > > > I have been considerering the situation and yes, I think I would > > *really* like to use this trick if it exists. In general, > wouldn't it > > make at least some sense to first check something that is fast and > > simple to edit or rename or delete if needed (world file in this > > case), and not something like GeoTIFF tags which are much > more hard and expensive to handle? > > Jukka, > > No, I don't agree. The GeoTIFF tags are already being read > as the TIFF directory is read, and so access to them is > essentially free. Looking for the world files requires an > extra operating system open attempt (or several for the > various possible extensions) which are at least moderately > expensive. And world files can occasionally end up being > applied to the wrong file. For instance a directory with > abc.png, abc.tif and abc.wld - it is hard to know which image > file the .wld was intended to apply to. > However, I'm willing to add a mechanism to override the > default behavior. > There are a couple approaches. One is to handle this in > MapServer in the msGetGDALGeoTransform() function and it > would likely be based on a layer level PROCESSING option. The > other approach is to do it in GDAL's GeoTIFF driver and based > on a configuration option (normally an environment variable > though these can also be set in .map files with a CONFIG line). > > The benefit of doing it in GDAL is that it applies to all > GDAL apps. The downside is that it only applies to GeoTIFF files. > > Note, in any event, I expect this change will only go into > the development version (trunk) of either GDAL or MapServer. > I trust you are ok with building from source or something like that? Hi Frank, Sorry, I did not mean heavy from the computitional point of view. I meant that if there is something wrong with the geoinfo then it is easier for the user to edit worldfiles. Or perhaps there are more user friendly tools for playing with GeoTIFF tags than the 'write out with listgeo - edit - make copy with geotifcp' way? For me the Mapserver PROCESSING option might be better, but the other one is OK as well. And if this feature won't find it's way even to FWTools package then I will find somebody to build it for me. I have to say that I did not get 100 percent support from my boss for the process that envolves employing some woodoo man to take source from the place called trunk and build something special from that, in order to get a secret, undocumented processing option as a result. However I still think it will be useful for us. -Jukka- From tmelhuish at WEBINSIGHTSINC.COM Thu Feb 7 07:56:10 2008 From: tmelhuish at WEBINSIGHTSINC.COM (Tom Melhuish) Date: Thu, 7 Feb 2008 10:56:10 -0500 Subject: ProjectionObject Conversion Problem Message-ID: MS_Users, I'm converting my mapscript code from cgi to php. I was using the following proj4 commands in cgi to convert from Latitude / Longitude in Radians to meters: $pj = proj::pj_init($ProjParnNum, \@LatLongProjParm) ; $in = new projUV(); $in->{v} = $LatRad; $in->{u} = $LngRad; $out = proj::pj_fwd($in, $pj); Attached is the php code I wrote to try to perform the same conversion using Mapserver ProjectionObject but the results are not the same. I'm not an expert at Proj4/Projections so any help would be appreciated. Mapserver 4.10.1 PHP 5.1.6 /** Results should be * [x] => 668830 meters * [x] => 177066 meters * but are * [x] => 45386984.852019 * [y] => -10739937.18402 */ Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: ms_proj_test1.php Type: application/octet-stream Size: 1721 bytes Desc: not available URL: From mlinden at ZEELANDNET.NL Thu Feb 7 08:55:36 2008 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Thu, 7 Feb 2008 17:55:36 +0100 Subject: Zoom & Pan In-Reply-To: Message-ID: Hello Clinton! Zoom and Pan is Clientside functionality. For this an application needs to be enhanced with Javascript. As an example: - When you drag a box, your browser needs to respond to the MouseDown and MouseUp and even MouseMove events. Then it has to store temporary variables telling it where you are zooming. When the MouseDown event is fired, you connect to the server and fire mapserv to pass a new image. If this sounds to complex, you might consider looking at available dynamic client software for mapserver. Take a look at the following: www.openlayers.org - Good javascript library to have dynamic mapfunctions, but needs mapserver to be installed as a WMS server www.cartoweb.org - reasonably documented if your requirements are straight forward. http://ka-map.maptools.org/ - not a lot development going on there, but it might fit your needs. Remember, mapserver is mostly an excellent SERVER, if you want more from clients then the old fashioned request - response stream where browsers react on a single click; take a look at one of the clients mentioned above. Good luck! Clinton Olsen schreef: > Hello, > > I would like to know how I can take the application I created from the tutorial, > and add zoom windows, so I can click on the viewer and drag a window across > a certain area to zoom in or out. And I need to know if there is a way I can > make my application pan by using the click and drag method. For reference > my application can be found at the internet address below. > > http://www.emerycounty.com:90/cgi-bin/mapserv.exe? > map=/emerycounty/ms4w/apps/tutorial/htdocs/lawcem- > maps/lawcem.map&layer=emeryroads&layer=emeryborder&layer=living&layer=bu > riedother&layer=plots&layer=fences&layer=gravemarkers&layer=cemlabels&zoom > =0&mode=browse&root=/tutorial&program=/cgi- > bin/mapserv.exe&map_web_imageurl=/ms_tmp/&map_web_imagepath=/emeryco > unty/ms4w/tmp/ms_tmp/&map_web_template=index.html&mapext=1357154+65 > 19737+2340584+7175357 > > Please let me know what all you need in order to give me some ideas. > > Thanks. > > From David.Hunter at FNIS.COM Thu Feb 7 09:34:09 2008 From: David.Hunter at FNIS.COM (Hunter, David - St. Louis Park, MN) Date: Thu, 7 Feb 2008 11:34:09 -0600 Subject: UPDATE: qstring validation Message-ID: After a little more digging, I discovered that the qstring is ignored in version 5.0 when the mode=map. I changed everything from qstring to myvar, and it now works as expected. Just wanted everybody to know that if you need to highlight features in a map based on an expression, you need to use myvar instead of qstring (or was I the only one who didn't know this???). _____ From: Hunter, David - St. Louis Park, MN Sent: Wednesday, February 06, 2008 5:35 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: qstring validation Since moving to mapserver 5.0 (mostly to test AGG), a layer in my map file that has this class definition: CLASS EXPRESSION (%qstring%) COLOR 230 230 179 END The query no longer works. If I change it to an explicit query string, like: EXPRESSION ('[DISTRICT]' eq 'ALTAMONT') The polygon is filled as expected. In the "MapServer 4.10 to 5.0 Migration Guide", there is mention that in the case of qstring queries, the qstring_validation_pattern layer-level metadata is required. It also says the absence of this setting produces a fatal error. My maps still work, they just do not fill in the polygon that matches the qstring. I cannot find any examples or documentation for the qstring_validation_pattern setting. Can anybody give me a pointer in the right direction? David S. Hunter Lead Software Engineer Fidelity National Geographic Solutions division of Fidelity National Information Services 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 Email: david.hunter at fnis.com Phone: 952.542.1440 ext. 256 Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Fri Feb 8 13:49:53 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Fri, 8 Feb 2008 16:49:53 -0500 Subject: [mapserver-users] Mailing List Migration In-Reply-To: <47ACBE1F.9000506@pobox.com> References: <47ACBE1F.9000506@pobox.com> Message-ID: <20080208214953.GA6928@alta.metacarta.com> On Fri, Feb 08, 2008 at 03:39:59PM -0500, Frank Warmerdam wrote: > The good news is that our archives will no longer be hidden behind a login > which means they should start turning up in Google. Also we merged in the > older archives from before the move to lists.umn.edu. Hooray! Congrats on completing a useful move like this; I see this as a great step forward for the project. Regards, -- Christopher Schmidt MetaCarta From bob.basques at ci.stpaul.mn.us Fri Feb 8 18:30:33 2008 From: bob.basques at ci.stpaul.mn.us (Blammo) Date: Fri, 08 Feb 2008 20:30:33 -0600 Subject: [mapserver-users] Testing new list posting. Message-ID: <47AD1049.1030101@ci.stpaul.mn.us> All, I didn't get too many feedback comments on the geomoose development path question. bobb From bob.basques at ci.stpaul.mn.us Fri Feb 8 18:32:13 2008 From: bob.basques at ci.stpaul.mn.us (Blammo) Date: Fri, 08 Feb 2008 20:32:13 -0600 Subject: [mapserver-users] testing posting to new list. Message-ID: <47AD10AD.8040304@ci.stpaul.mn.us> All, Just a test. bobb From giorgio at nauta.it Sat Feb 9 04:11:25 2008 From: giorgio at nauta.it (Giorgio) Date: Sat, 09 Feb 2008 13:11:25 +0100 Subject: [mapserver-users] Mailing List Migration In-Reply-To: <20080208214953.GA6928@alta.metacarta.com> References: <47ACBE1F.9000506@pobox.com> <20080208214953.GA6928@alta.metacarta.com> Message-ID: <47AD986D.4030905@nauta.it> I unsubscribed from the list many time ago! Now, I suppose, I'm subscribed again ... no problem, but I think it can be useful for you to now this! Regards ... Giorgio From bartvde at gmail.com Sat Feb 9 13:35:33 2008 From: bartvde at gmail.com (Bart van den Eijnden) Date: Sat, 9 Feb 2008 22:35:33 +0100 Subject: [mapserver-users] question on layer projection and WMS Message-ID: <1ebb87870802091335u2c16ea7eu2ff10f2c9b190798@mail.gmail.com> Hi list, I've always thought it was mandatory to have a LAYER PROJECTION block for a layer in a WMS service. Did something change with respect to this requirement, since it seems you can leave out the LAYER PROJECTION (at least since 4.10) and it will still work (even reprojection), and you'll even get a performance increase since there are less PROJ lookups. Does it default now to the MAP's projection? Or what's happening? If so, should the WARNING in the capabilities not be changed/removed? Best regards, Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: From mhungc at gmail.com Sat Feb 9 21:17:25 2008 From: mhungc at gmail.com (mhungc) Date: Sat, 9 Feb 2008 21:17:25 -0800 (PST) Subject: [MAPSERVER-USERS] how can i find the dbox.js? help me!! Message-ID: <15393468.post@talk.nabble.com> Hi, I need to make a Rectangle in javascript when i do zoom Rectangle in any directions depending the mouse's move. for example if a move the mouse at left it have to draw a Rectangle in that direction. Now i'm using a dbox.js that only draw a Rectangle at directions to right. Someone can help me? where can i download it? -- View this message in context: http://www.nabble.com/how-can-i-find-the-dbox.js--help-me%21%21-tp15393468p15393468.html Sent from the Mapserver - User mailing list archive at Nabble.com. From richard.greenwood at gmail.com Sat Feb 9 21:24:38 2008 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Sat, 9 Feb 2008 22:24:38 -0700 Subject: [MAPSERVER-USERS] how can i find the dbox.js? help me!! In-Reply-To: <15393468.post@talk.nabble.com> References: <15393468.post@talk.nabble.com> Message-ID: On Feb 9, 2008 10:17 PM, mhungc wrote: > > Hi, > > I need to make a Rectangle in javascript when i do zoom Rectangle in any > directions depending the mouse's move. for example if a move the mouse at > left it have to draw a Rectangle in that direction. > > Now i'm using a dbox.js that only draw a Rectangle at directions to right. > > Someone can help me? where can i download it? http://www.maptools.org/ms4w/index.phtml?page=downloads.html -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From mhungc at gmail.com Sun Feb 10 07:39:58 2008 From: mhungc at gmail.com (mhungc) Date: Sun, 10 Feb 2008 07:39:58 -0800 (PST) Subject: [MAPSERVER-USERS] How can i do that the street's label have the same directions...? Message-ID: <15397360.post@talk.nabble.com> Hi, How can i do that the street's label have the same diretions of them? For example if a do a zoom at street ant this is a curve the label have to take the same direction of it.... a curve. Help me how can i do that in the .map file? -- View this message in context: http://www.nabble.com/How-can-i-do-that-the-street%27s-label-have-the-same-directions...--tp15397360p15397360.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gregor at hostgis.com Sun Feb 10 09:37:38 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Sun, 10 Feb 2008 10:37:38 -0700 Subject: [MAPSERVER-USERS] How can i do that the street's label have the same directions...? In-Reply-To: <15397360.post@talk.nabble.com> References: <15397360.post@talk.nabble.com> Message-ID: <47AF3662.7000501@hostgis.com> > How can i do that the street's label have the same diretions of them? Set the LABEL's ANGLE to "follow" That's as of Mapserver 4.10 and also in 5.0 -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From pal.kristensen at statkart.no Sun Feb 10 09:58:24 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Sun, 10 Feb 2008 09:58:24 -0800 (PST) Subject: [MAPSERVER-USERS] SLD In-Reply-To: References: Message-ID: <15399109.post@talk.nabble.com> Hi! The URL parameters is not correct, you should putt a &SLD= prior to the SLD link, and also omit the &STYLES= when using SLD. Regards P?l Kristensen Gregorio Mu?oz wrote: > > Hello! > > I am working with SLD but can not make it work. > > This my url: > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/urbanismo/maps/mymap.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=Recintos&SRS=EPSG:23030&BBOX=235455.57724245856,4140286.563575713,240403.0990635437,4144581.824219214&WIDTH=500&HEIGHT=400&FORMAT=image/png&STYLES=default&TRANSPARENT=TRUE&http://127.0.0.1/ms4w/apps/urbanismo/sld/recintos.sld > > And this is my SLD document "recintos.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 > http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> > urbanismo > SLD for MapServer OGC Web Services Workshop > This is an SLD to show how one can make a custom style > without > having to change the data style at the server-side > > Recintos > > sld_01 > sld_01 > 1 > > > > > name="stroke">#FF00FF > name="stroke-width">3 > > > > > > > > > In my map file "mymap.map" there is a layer called "Recintos" (TYPE LINE). > > > Does anyone know why it does not work? > > Any idea please? > > Thanks! > > -- View this message in context: http://www.nabble.com/SLD-tp15309611p15399109.html Sent from the Mapserver - User mailing list archive at Nabble.com. From matthew.pettis at gmail.com Sun Feb 10 11:00:46 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Sun, 10 Feb 2008 13:00:46 -0600 Subject: [mapserver-users] Query with template not working with complex query Message-ID: <82ba77b80802101100q152b124fh9a249f6fae3d6d8@mail.gmail.com> Hi, A while back, I posted a question like this to the group, and got an answer that worked for me: http://lists.umn.edu/cgi-bin/wa?A2=ind0705&L=mapserver-users&D=0&O=D&T=0&P=5373 I was able to get correct results by making a simple query. Now, however, I need to use a more complex query to return results. The problem is this... I have a template and a map file with a layer that uses that template. When the DATA attribute is: DATA "the_geom from shp_prct" the query works fine and i get my template back appropriately filled out. When I use the more complex but equivalent formulation: DATA "the_geom from (select the_geom from shp_prct) as foo using unique the_geom using SRID=-1" The result is the following: Content-type: text/html > > > MapServer Message > > > > > Just to note, the query I really need isn't the second one verbatim, but uses the form of "select the geom from () as foo ...". I'm omitting the rest of the info assuming it isn't important at this time, but will supply it if someone thinks that it is key to solving this... Any ideas? Thanks, Matt -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvehjem at runestone.net Sun Feb 10 15:39:53 2008 From: elvehjem at runestone.net (Ken S. Elvehjem) Date: Sun, 10 Feb 2008 17:39:53 -0600 Subject: [mapserver-users] Simple MrSid map file Message-ID: <006401c86c3e$42bbb870$6401a8c0@Kens> Hi, I am trying to make ms4w show me a MrSid file. Eventually, I would like to be able to send center coordinates and dimensions and have it return a JPG. For now, however, I have apparently gotten into a tail chasing game -- no matter what I try, I seem to need to do something else first. I'm hoping that someone who uses MrSid files w/ ms4w could send me a "simplest" map file and html code that will allow me to display MrSid data over the web. This will give me a "solid place to stand" (or a safe position for a retreat) and I can add components and code from there. My MrSid file happens to be the NAIP file for McCook Co, SD. The file structure is like this: SD/mccook/..... files here. Sincerely, Ken -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Sun Feb 10 18:03:26 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sun, 10 Feb 2008 19:03:26 -0700 (Mountain Standard Time) Subject: [mapserver-users] Simple MrSid map file In-Reply-To: <006401c86c3e$42bbb870$6401a8c0@Kens> References: <006401c86c3e$42bbb870$6401a8c0@Kens> Message-ID: <.68.144.5.189.1202695406.squirrel@68.144.5.189> Ken, I don't use MrSID, but here are some general things to look at: 1. Does your MrSID file have geo-referencing and coordinate system definition information with it? Use GDAL's "gdalinfo" to find out. 2. Do your EXTENTS (with the related PROJECTION and UNITS) in the map file actually cover/intersect the MrSID file? 3. Check your DATA value in the map file's LAYER. Is the path correct? Is Mapserver able to access the file? Brent Fraser GeoAnalytic Inc. Calgary, Alberta > Hi, > > I am trying to make ms4w show me a MrSid file. Eventually, I would like > to be able to send center coordinates and dimensions and have it return a > JPG. > > For now, however, I have apparently gotten into a tail chasing game -- no > matter what I try, I seem to need to do something else first. > > I'm hoping that someone who uses MrSid files w/ ms4w could send me a > "simplest" map file and html code that will allow me to display MrSid data > over the web. This will give me a "solid place to stand" (or a safe > position for a retreat) and I can add components and code from there. > > My MrSid file happens to be the NAIP file for McCook Co, SD. The file > structure is like this: SD/mccook/..... files here. > > Sincerely, > > Ken > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From elvehjem at runestone.net Sun Feb 10 18:19:57 2008 From: elvehjem at runestone.net (Ken S. Elvehjem) Date: Sun, 10 Feb 2008 20:19:57 -0600 Subject: [mapserver-users] Simple MrSid map file References: <006401c86c3e$42bbb870$6401a8c0@Kens> <.68.144.5.189.1202695406.squirrel@68.144.5.189> Message-ID: <00bc01c86c54$a09437e0$6401a8c0@Kens> Brent, Thanks for the response. I appreciate the *watch* items you included! and I think that I have all that info available. I think my main problem is that I cannot separate out what is *nice* in a mapfile from what is *necessary* ... most of the examples I have been able to find have multiple layers, labels, scales etc. that I may use one day, but I have to comment them out because they don't apply. It's why I'm trying to find the world's simplest mapfile that works for displaying raster data... MrSID data if possible. A sort of a "Hello Raster (world)" Mapfile for Mapserver. I have been reading more about mapfiles @ http://umn.mapserver.ch/index_en.php . This has an astonishing amount of information and is well organized. Perhaps I should wait until I am over this bad head cold before I plow back into it ;>) Sincerest thanks! Ken ----- Original Message ----- From: "Brent Fraser" To: "Ken S. Elvehjem" Cc: Sent: Sunday, February 10, 2008 8:03 PM Subject: Re: [mapserver-users] Simple MrSid map file > Ken, > > I don't use MrSID, but here are some general things to look at: > > 1. Does your MrSID file have geo-referencing and coordinate system > definition information with it? Use GDAL's "gdalinfo" to find out. > > 2. Do your EXTENTS (with the related PROJECTION and UNITS) in the map file > actually cover/intersect the MrSID file? > > 3. Check your DATA value in the map file's LAYER. Is the path correct? > Is Mapserver able to access the file? > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > >> Hi, >> >> I am trying to make ms4w show me a MrSid file. Eventually, I would like >> to be able to send center coordinates and dimensions and have it return a >> JPG. >> >> For now, however, I have apparently gotten into a tail chasing game -- no >> matter what I try, I seem to need to do something else first. >> >> I'm hoping that someone who uses MrSid files w/ ms4w could send me a >> "simplest" map file and html code that will allow me to display MrSid >> data >> over the web. This will give me a "solid place to stand" (or a safe >> position for a retreat) and I can add components and code from there. >> >> My MrSid file happens to be the NAIP file for McCook Co, SD. The file >> structure is like this: SD/mccook/..... files here. >> >> Sincerely, >> >> Ken >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > From bfraser at geoanalytic.com Sun Feb 10 20:46:56 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sun, 10 Feb 2008 21:46:56 -0700 (Mountain Standard Time) Subject: [mapserver-users] Simple MrSid map file In-Reply-To: <00bc01c86c54$a09437e0$6401a8c0@Kens> References: <006401c86c3e$42bbb870$6401a8c0@Kens> <.68.144.5.189.1202695406.squirrel@68.144.5.189> <00bc01c86c54$a09437e0$6401a8c0@Kens> Message-ID: <.68.144.5.189.1202705216.squirrel@68.144.5.189> Ken, Here's a minimal Map file (edited from the well-known Itasca demo data): MAP NAME ITASCA STATUS ON IMAGETYPE PNG SIZE 600 600 # Projection - same as input data (UTM Zone 15, NAD83), # so no need to have MapServer re-project UNITS METERS # [minx] [miny] [maxx] [maxy] in meters EXTENT 388107 5203120 500896 5310243 #--------------------------------------------------------- WEB IMAGEPATH "C:\Inetpub\wwwroot\tmp" IMAGEURL "\tmp" END #--------------------------------------------------------- LAYER NAME drgs TYPE RASTER STATUS ON DATA "C:\Inetpub\wwwroot\workshop-5.0\data\drgncimq1942.tif" END END # Map File Not that I've tested it... Brent > Brent, > > Thanks for the response. I appreciate the *watch* items you included! and > I > think that I have all that info available. > > I think my main problem is that I cannot separate out what is *nice* in a > mapfile from what is *necessary* ... most of the examples I have been able > to find have multiple layers, labels, scales etc. that I may use one day, > but I have to comment them out because they don't apply. It's why I'm > trying to find the world's simplest mapfile that works for displaying > raster > data... MrSID data if possible. A sort of a "Hello Raster (world)" > Mapfile > for Mapserver. > > I have been reading more about mapfiles @ > http://umn.mapserver.ch/index_en.php . This has an astonishing amount of > information and is well organized. > > Perhaps I should wait until I am over this bad head cold before I plow > back > into it ;>) > > Sincerest thanks! > > Ken > > > > ----- Original Message ----- > From: "Brent Fraser" > To: "Ken S. Elvehjem" > Cc: > Sent: Sunday, February 10, 2008 8:03 PM > Subject: Re: [mapserver-users] Simple MrSid map file > > >> Ken, >> >> I don't use MrSID, but here are some general things to look at: >> >> 1. Does your MrSID file have geo-referencing and coordinate system >> definition information with it? Use GDAL's "gdalinfo" to find out. >> >> 2. Do your EXTENTS (with the related PROJECTION and UNITS) in the map >> file >> actually cover/intersect the MrSID file? >> >> 3. Check your DATA value in the map file's LAYER. Is the path correct? >> Is Mapserver able to access the file? >> >> Brent Fraser >> GeoAnalytic Inc. >> Calgary, Alberta >> >> >>> Hi, >>> >>> I am trying to make ms4w show me a MrSid file. Eventually, I would >>> like >>> to be able to send center coordinates and dimensions and have it return >>> a >>> JPG. >>> >>> For now, however, I have apparently gotten into a tail chasing game -- >>> no >>> matter what I try, I seem to need to do something else first. >>> >>> I'm hoping that someone who uses MrSid files w/ ms4w could send me a >>> "simplest" map file and html code that will allow me to display MrSid >>> data >>> over the web. This will give me a "solid place to stand" (or a safe >>> position for a retreat) and I can add components and code from there. >>> >>> My MrSid file happens to be the NAIP file for McCook Co, SD. The file >>> structure is like this: SD/mccook/..... files here. >>> >>> Sincerely, >>> >>> Ken >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> >> > > From bokhorst at argoss.nl Mon Feb 11 00:02:41 2008 From: bokhorst at argoss.nl (Reinoud Bokhorst) Date: Mon, 11 Feb 2008 09:02:41 +0100 Subject: [mapserver-users] question on layer projection and WMS In-Reply-To: <1ebb87870802091335u2c16ea7eu2ff10f2c9b190798@mail.gmail.com> References: <1ebb87870802091335u2c16ea7eu2ff10f2c9b190798@mail.gmail.com> Message-ID: <47B00121.6000106@argoss.nl> Hi Bart, By default, layers inherit the projection of its parent object. Usually the projection of the MAP object. (don't know since when it is like this but I have not known it differently...). The warning indicates that you have not specified at least one of the named projection parameters in your mapfile that Mapserver needs to generate the information in the capabilities. Have you? Regards, Reinoud Bart van den Eijnden wrote: > Hi list, > > I've always thought it was mandatory to have a LAYER PROJECTION block > for a layer in a WMS service. > > Did something change with respect to this requirement, since it seems > you can leave out the LAYER PROJECTION (at least since 4.10) and it will > still work (even reprojection), and you'll even get a performance > increase since there are less PROJ lookups. Does it default now to the > MAP's projection? Or what's happening? > > If so, should the WARNING in the capabilities not be changed/removed? > > > > Best regards, > Bart > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bartvde at osgis.nl Mon Feb 11 00:22:01 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Mon, 11 Feb 2008 09:22:01 +0100 Subject: [mapserver-users] question on layer projection and WMS Message-ID: <6aec9fc1ad869a34a16f27fd49fd73ed@145.50.39.11> Hi Reinoud, I do have a PROJECTION block at the MAP object, as well as WMS_SRS METADATA in my LAYERs. So I am quite sure the warning is about the missing LAYER PROJECTION block. But as you said, this should not be needed anymore, and the warning should be updated to reflect this. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Reinoud Bokhorst Naar: Bart van den Eijnden Cc: mapserver-users at lists.osgeo.org Onderwerp: Re: [mapserver-users] question on layer projection and WMS Datum: 11/02/08 06:03 > Hi Bart, > By default, layers inherit the projection of its parent object. Usually the projection of the MAP object. (don't know since when it is like this but I have not known it differently...). > > The warning indicates that you have not specified at least one of the named projection parameters in your mapfile that Mapserver needs to generate the information in the capabilities. Have you? > > Regards, > Reinoud > > > Bart van den Eijnden wrote: > > Hi list, > > > > I've always thought it was mandatory to have a LAYER PROJECTION block > > for a layer in a WMS service. > > > > Did something change with respect to this requirement, since it seems > > you can leave out the LAYER PROJECTION (at least since 4.10) and it will > > still work (even reprojection), and you'll even get a performance > > increase since there are less PROJ lookups. Does it default now to the > > MAP's projection? Or what's happening? > > > > If so, should the WARNING in the capabilities not be changed/removed? > > > > <!-- WARNING: Mandatory mapfile parameter '(at least one of) > > MAP.PROJECTION, LAYER.PROJECTION or wms_srs metadata' was missing in > > this context. --> > > > > Best regards, > > Bart > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From ritesh.linux at gmail.com Mon Feb 11 06:22:48 2008 From: ritesh.linux at gmail.com (riteshambastha) Date: Mon, 11 Feb 2008 06:22:48 -0800 (PST) Subject: [MAPSERVER-USERS] How can i do that the street's label have the same directions...? In-Reply-To: <47AF3662.7000501@hostgis.com> References: <15397360.post@talk.nabble.com> <47AF3662.7000501@hostgis.com> Message-ID: <15412357.post@talk.nabble.com> ANGLE [double|auto|follow] Angle, given in degrees, to draw the label or AUTO to allow the software to compute the angle, AUTO is valid for LINE layers only. FOLLOW was introduced in version 4.10 and tells map server to compute a curved label for appropriate linear features . Regards, Ritesh Ambastha Gregor Mosheh-3 wrote: > >> How can i do that the street's label have the same diretions of them? > > Set the LABEL's ANGLE to "follow" > That's as of Mapserver 4.10 and also in 5.0 > > -- > Gregor Mosheh / Greg Allensworth, BS, A+ > System Administrator > HostGIS cartographic development & hosting services > http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/How-can-i-do-that-the-street%27s-label-have-the-same-directions...--tp15397360p15412357.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Tom.Kralidis at ec.gc.ca Mon Feb 11 08:29:37 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Mon, 11 Feb 2008 11:29:37 -0500 Subject: [mapserver-users] RE: [UMN_MAPSERVER-USERS] problem in configuration In-Reply-To: A<1202720438.6337.4.camel@orkun-desktop> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CEFF5@ecburexch1.ontario.int.ec.gc.ca> > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of orkun > Sent: 11 February, 2008 4:01 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] problem in configuration > > hello > > I try to configure mapserver. > But a part of configure.log shows: > ~~~~~~~~~~~~~~ > configure:1711: checking for C compiler default output file name > configure:1714: gcc conftest.c >&5 > /usr/bin/ld: crt1.o: No such file: No such file or directory > collect2: ld returned 1 exit status > configure:1717: $? = 1 > configure: failed program was: > | /* confdefs.h. */ > ~~~~~~~~~~~~~~ > > how can I solve the problem ? > Hi, (N.B. the new mailing list address) I'm not a build guru, but, for starters, Can you specify: - what operating system / platform you are attempting to build MapServer on - what is your full configure command ..Tom From naci0002 at umn.edu Mon Feb 11 08:36:41 2008 From: naci0002 at umn.edu (Pericles S. Nacionales) Date: Mon, 11 Feb 2008 10:36:41 -0600 Subject: [mapserver-users] Re: [UMN_MAPSERVER-USERS] getString(): Symbol definition error. Parsing error near (map):(line 21) In-Reply-To: References: Message-ID: <47B07999.3000906@umn.edu> Simone, I'm responding to the new list at osgeo.org... Please remember to use this new address as the old one will go away soon. What exactly does the error say and what does your mapfile look like? Can't help you when we can't see what's wrong. There have been a few changes in MapServer 5.x (from MapServer 4.x)--you might want to check the WMS documentation. Chances are there are a few more required WMS-specific parameters that you have to add to your WMS layer. -Perry Simone Dalmasso wrote: > Hi. I am tying to use mapserver to provide a wms service. > For testing purposes, i wrote a simple mapfile with one raster layer. > And with mapserver 4.x all was right but with the new 5.x when i write > the getcapabilities it answers the getString() error. > The query is the following: > http://localhost/cgi-bin/mapserv?map=/users/simo/sites/mapfile/provamapserv.map&service=wms&version=1.1.1&request=getcapabilities > > > And in the mapfile at the line 21 there is the LAYER string. > > Does anyone can help me? > Thanks > -- > Simone Dalmasso > From Tom.Kralidis at ec.gc.ca Mon Feb 11 08:45:16 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Mon, 11 Feb 2008 11:45:16 -0500 Subject: [mapserver-users] Re: [UMN_MAPSERVER-USERS] getString(): Symbol definition error. Parsing error near (map):(line 21) In-Reply-To: <47B07999.3000906@umn.edu> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CEFF8@ecburexch1.ontario.int.ec.gc.ca> FYI Testing Simone's mapfile (sent offline) gave me no problems against trunk. ..Tom > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Pericles S. Nacionales > Sent: 11 February, 2008 11:37 AM > To: Simone Dalmasso > Cc: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Re: [UMN_MAPSERVER-USERS] > getString(): Symbol definition error. Parsing error near > (map):(line 21) > > Simone, > > I'm responding to the new list at osgeo.org... Please > remember to use this new address as the old one will go away soon. > > What exactly does the error say and what does your mapfile > look like? > Can't help you when we can't see what's wrong. There have > been a few changes in MapServer 5.x (from MapServer 4.x)--you > might want to check the WMS documentation. Chances are there > are a few more required WMS-specific parameters that you have > to add to your WMS layer. > > -Perry > > Simone Dalmasso wrote: > > Hi. I am tying to use mapserver to provide a wms service. > > For testing purposes, i wrote a simple mapfile with one > raster layer. > > And with mapserver 4.x all was right but with the new 5.x > when i write > > the getcapabilities it answers the getString() error. > > The query is the following: > > > http://localhost/cgi-bin/mapserv?map=/users/simo/sites/mapfile/provama > > pserv.map&service=wms&version=1.1.1&request=getcapabilities > > > > apserv.map&service=wms&version=1.1.1&request=getcapabilities> > > > > And in the mapfile at the line 21 there is the LAYER string. > > > > Does anyone can help me? > > Thanks > > -- > > Simone Dalmasso > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From naci0002 at umn.edu Mon Feb 11 08:47:01 2008 From: naci0002 at umn.edu (Pericles S. Nacionales) Date: Mon, 11 Feb 2008 10:47:01 -0600 Subject: [mapserver-users] Re: [UMN_MAPSERVER-USERS] MapServer on a web hosting service In-Reply-To: References: Message-ID: <47B07C05.7000904@umn.edu> Scott, You can certainly do that but I don't know if it's safe or not. Better still, keep the MapServer-related files to a directory outside of your CGI directory leaving only the Mapserv CGI program. Use the SetEnv parameter in Apache to add this new directory in your PATH. This is only doable if you can edit the Apache configuration that pertains to your web site. -Perry PS: Please remember to update your list address to mapserver-users at lists.osgeo.org. We're closing down the UMN list soon. Scott Oatley wrote: > My web hosting service is linux based, and provides CGI capabilities. > > Is it possible to simply upload the executable MapServer CGI file and > related support files into my CGI file structure so I can run > MapServer from my web site? > > I know you can do something similar with the ms4w package by putting > mapserver.exe and related dll's, etc. into the CGI directory structure > of an existing Apache based Windows install. > > -Scott > From bernardosk at gmail.com Mon Feb 11 08:49:42 2008 From: bernardosk at gmail.com (Bernardo Rocha) Date: Mon, 11 Feb 2008 14:49:42 -0200 Subject: [mapserver-users] (no subject) Message-ID: <8d285c840802110849p71532b02of326854b7cbd0e42@mail.gmail.com> -- =================================== Bernardo Martins Rocha msn: bernardo.m.rocha at hotmail.com skype:bernardo.m.rocha =================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From bernardosk at gmail.com Mon Feb 11 08:50:15 2008 From: bernardosk at gmail.com (Bernardo Rocha) Date: Mon, 11 Feb 2008 14:50:15 -0200 Subject: [mapserver-users] UN - SUBSCRIBE Message-ID: <8d285c840802110850j2aece43bjc7cbeb712aaa5fcc@mail.gmail.com> I would like to UN_SUBSCRIBE from this list. What is the email for it? -- =================================== Bernardo Martins Rocha msn: bernardo.m.rocha at hotmail.com skype:bernardo.m.rocha =================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at kyngchaos.com Mon Feb 11 09:23:08 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Mon, 11 Feb 2008 11:23:08 -0600 Subject: [mapserver-users] Re: getString(): Symbol definition error. Parsing error near (map):(line 21) In-Reply-To: References: Message-ID: <8C4F2F82-6653-49DD-BBE3-3400FC196665@kyngchaos.com> By the version number and map path, it looks like you're on OSX, with my MapServer binaries? Works for me. Which OSX version and processor? I tested on Leopard 64bit Core 2 Duo. It's possible something got messed up in the build for the other architectures. What is the full error? On Feb 11, 2008, at 10:50 AM, Simone Dalmasso wrote: > My mapserver version in 5.0.2-2 and the mapfile is: > MAP > NAME wmstry > STATUS ON > EXTENT -180 -90 180 90 > UNITS dd > PROJECTION > "init=epsg:4326" > END > SHAPEPATH "/data/" > WEB > IMAGEPATH "/library/webserver/tmp/" > IMAGEURL "/tmp/" > METADATA > "wms_title" "Wms_prova" > "wms_onlineresource" "http://130.192.93.76/cgi-executables/mapserv?map=/users/simo/sites/mapfile/provamapserv.map > " > "wms_srs" "epsg:4326" > END > END > LAYER > NAME namerica > METADATA > "wms_title" "namerica" > END > TYPE RASTER > DATA namerica0311_2.tif > STATUS ON > PROJECTION > "init=epsg:4326" > END > CLASS > NAME Namerica > STYLE > COLOR 0 0 0 > END > END > END > END > > Thanks a lot. > -- > Simone Dalmasso > ----- William Kyngesburye http://www.kyngchaos.com/ "Those people who most want to rule people are, ipso-facto, those least suited to do it." - A rule of the universe, from the HitchHiker's Guide to the Galaxy From jpass at bgs.ac.uk Mon Feb 11 10:24:21 2008 From: jpass at bgs.ac.uk (Passmore, James H) Date: Mon, 11 Feb 2008 18:24:21 -0000 Subject: [mapserver-users] Maximum number of classes per layer Message-ID: Hi list, I'm trying to serve out the 1:50,000 geology of the United Kingdom and have a number of layers with more than 250 classes; which seems to be the limit for the MapServer for Windows - MS4W package we are using. Before going down the route of compiling our own version of MapServer, can anyone offer any advice as to whether this is a wise plan of action? ...that is recompiling to show more classes per layer rather than recompiling... thanks James Passmore Information Systems British Geological Survey www.bgs.ac.uk *************************************************************************************************************** This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. *************************************************************************************************************** From jdoyon at NRCan.gc.ca Mon Feb 11 10:29:39 2008 From: jdoyon at NRCan.gc.ca (Doyon, Jean-Francois) Date: Mon, 11 Feb 2008 13:29:39 -0500 Subject: [mapserver-users] Maximum number of classes per layer In-Reply-To: References: Message-ID: I used to do this all the time under Linux, though I imagine the process isn't quite as straightforward under Windows. Or you could upgrade to the latest MS4W with mapserver 5, where those limits are gone. J.F. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Passmore, James H Sent: February 11, 2008 13:24 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Maximum number of classes per layer Hi list, I'm trying to serve out the 1:50,000 geology of the United Kingdom and have a number of layers with more than 250 classes; which seems to be the limit for the MapServer for Windows - MS4W package we are using. Before going down the route of compiling our own version of MapServer, can anyone offer any advice as to whether this is a wise plan of action? ...that is recompiling to show more classes per layer rather than recompiling... thanks James Passmore Information Systems British Geological Survey www.bgs.ac.uk ************************************************************************ *************************************** This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. ************************************************************************ *************************************** From woklist at kyngchaos.com Mon Feb 11 11:49:47 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Mon, 11 Feb 2008 13:49:47 -0600 Subject: [mapserver-users] Re: getString(): Symbol definition error. Parsing error near (map):(line 21) In-Reply-To: References: <8C4F2F82-6653-49DD-BBE3-3400FC196665@kyngchaos.com> Message-ID: So, same as mine. Hmm, don't know then. I can get various errors to appear with accidental non-breaking spaces (like what happens when I copy it from the email), but not that exact error. On Feb 11, 2008, at 12:04 PM, Simone Dalmasso wrote: > Yes i'm using all your binaries. :-) > My computer is a MacBook Pro 2.6GHz Intel Core 2 Duo with Leopard > 10.5.1. > I' ve installed all required frameworks and php-cgi it's running. > the full error is: getString(): Symbol definition error. Parsing > error near (map):(line 21) > the mapfile is: > > 2008/2/11, William Kyngesburye : By the > version number and map path, it looks like you're on OSX, with > my MapServer binaries? Works for me. > > Which OSX version and processor? > > I tested on Leopard 64bit Core 2 Duo. It's possible something got > messed up in the build for the other architectures. > > What is the full error? > ----- 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 mhungc at gmail.com Tue Feb 12 03:56:22 2008 From: mhungc at gmail.com (mhungc) Date: Tue, 12 Feb 2008 03:56:22 -0800 (PST) Subject: [MAPSERVER-USERS] Problem with ms_newShapefileObj ... Message-ID: <15431756.post@talk.nabble.com> Hi, I'm having problem with this function ms_newShapefileObj($path ,int Val); I want to read a Shape File but when I do that the code only executes up to the line echo "evaluar"; and the line echo "shape: ".$shape; not display the message. I did this: $path = "AcariguaAraureDBL_region"; echo "evaluar"; $shape = ms_newShapefileObj($path ,-1); echo "shape: ".$shape; What is the problem? Hel me please. Thanks. -- View this message in context: http://www.nabble.com/Problem-with-ms_newShapefileObj-...-tp15431756p15431756.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mhungc at gmail.com Tue Feb 12 04:13:03 2008 From: mhungc at gmail.com (mhungc) Date: Tue, 12 Feb 2008 04:13:03 -0800 (PST) Subject: [MAPSERVER-USERS] How can I display some Mapserver error? Message-ID: <15432049.post@talk.nabble.com> I have problem in some Code line and mapserver not display what is the error and i need to Know ... How can i captured and display it? -- View this message in context: http://www.nabble.com/How-can-I-display-some-Mapserver-error--tp15432049p15432049.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bfraser at geoanalytic.com Tue Feb 12 11:01:57 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 12 Feb 2008 12:01:57 -0700 Subject: [mapserver-users] Simple MrSid map file References: <006401c86c3e$42bbb870$6401a8c0@Kens> <.68.144.5.189.1202695406.squirrel@68.144.5.189> <00bc01c86c54$a09437e0$6401a8c0@Kens> <.68.144.5.189.1202705216.squirrel@68.144.5.189> <011101c86cb7$10c09290$6401a8c0@Kens> <010a01c86cbc$488f6e30$ <010901c86cd1$8e8fc2d0$5000a8c0@kensamd> <022601c86cd3$0c47f200$140002c0@shark> <011f01c86cd6$825e7a10$6401a8c0@Kens> <02b801c86cd8$48048290$140002c0@shark> <016d01c86ce3$040ac5d0$6401a8c0@Kens> <030101c86ce5$000cf960$140002c0@shark> <018401c86ce8$1bfe <018d01c86ceb$fc0a58b0$6401a8c0@Kens> <414801c86cf0$52d63520$140002c0@shark> <019601c86cf2$21fea0c0$6401a8c0@Kens> <415f01c86cf3$44fa5b90$140002c0@shark> <01a901c86cf5$01a30f70$6401a8c0@Kens> <41a001c86d03$3d5d3ff0$140002c0@shark> <023b01c86da2$036158a0$6401a8c0@Kens> Message-ID: <029401c86da9$bd5b7f90$140002c0@shark> Ken, I've CC'd my response to the Mapserver list as there are lots of smart and helpful people out there (I edited your URLs to remove the IP address so your site won't get 500 hits as everyone rushes to solve your problem :) ) Basically you need to know the coordinate system of your input data (I think it is UTM zone 14 NAD83, so EPSG 26914, not 4269), and your desired output coordinate system (EPSG 4269 is ok, it's Geographic (AKA lat/lon, un-projected,...) so it may not be what you'd expect). Some WMS client applications prefer Geographic and do the re-projection to a Cartesian coordinate system themselves after they've received the map image from the server. Others let the users pick the coordinate system from the list supplied by the WMS server and let the server re-project and supply the image in the user-selected coordinate system. If you need a stand-alone WMS client, try Quantum GIS. If you plan on constructing a web front-end to Mapserver, have a look at Open Layers. Other comments inserted below... Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Ken S. Elvehjem" To: "Brent Fraser" Sent: Tuesday, February 12, 2008 11:06 AM Subject: Re: [mapserver-users] Simple MrSid map file > Brent, > > My goal is to be able to query the raster data that I have stored. > Apparently it's required to take the next step: Create a WMS... > > So I did. According to the directions, a wms is just a glorified mapfile, > with some certain elements required. I am reasonably sure I have my *epsg* > numbers wrong, but the examples showed so many I couldn't figger out which > was which. My data is all within UTMZ 14 for McCook Co SD. > > I'd appreciate any comments -- even rude ones -- that you'd care to make! > > Sincerely, > > Ken > > My mapfile looks like this: > > MAP > NAME MCCOOK > STATUS ON > > IMAGETYPE PNG > SIZE 600 600 > > # Projection - same as input data (UTM Zone 15, NAD83), > # so no need to have MapServer re-project > PROJECTION > "init=epsg:4269" > END > > UNITS METERS > # [minx] [miny] [maxx] [maxy] in meters > EXTENT 610471 4810318 651740 4859698 > > #--------------------------------------------------------- > WEB > TEMPLATE "mccook.html" > IMAGEPATH "C:\ms4w\Apache\htdocs\tmp/" > IMAGEURL "/tmp/" > > METADATA > "wms_title" "WMS McCOOK" > "wms_onlineresource" "http://myserver/cgi-bin/mapserv?" > # map=c:\ms4w\Apache\htdocs\SD\mccook\mccook-wms.map&" > "wms_srs" "EPSG:4269 EPSG:4326" > END > > > END > > #--------------------------------------------------------- > LAYER > NAME NAIP2006 > TYPE RASTER > STATUS DEFAULT > DATA "mccook2006.sid" > > PROJECTION > "init=epsg:4269" > END > > METADATA > "wms_title" "WMS McCOOK" > "wms_onlineresource" "http://myserver/cgi-bin/mapserv?" > # map=c:\ms4w\Apache\htdocs\SD\mccook\mccook-wms.map&" > "wms_srs" "EPSG:4269 EPSG:4326" > END > > END > > END # Map File > > > The following URL: > http://myserver/cgi-bin/mapserv.exe?map=c:\ms4w\Apache\htdocs\SD\mccook\mccook-wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > returns the following: (returns as mapserv.exe... I had to save it, looked > at it w/ my hex editor and decided it was *not* an exe.-- renamed it and > viewed with text editor) You need to use a WMS client to issue the URL (and interprete the results). And I think you may need to do some minor configuring of Apache to send the right Content-type (text-html). The Mapserver Apache experts would know more... > > > > It's a valid capabilities document and will be understood by a WMS client (I think). Brent From gregor at hostgis.com Wed Feb 13 01:49:30 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed, 13 Feb 2008 02:49:30 -0700 Subject: [mapserver-users] Get a pixel's RGB by latlon? Message-ID: <47B2BD2A.9090306@hostgis.com> Hi, all. I have a bunch of Mapserver layers, with GeoTIFFs and sometimes tileindexes as the backend. Given a single layer, I would like to get the color of the pixel at a given lat/lon. If anyone has code handy that does this, preferably in either PHP or Mapserver-via-CGI, I would appreciate it greatly, as it would be a major time saver. There seem to be a few methods of doing this, from CGI's mode=query to MapScript's queryByPoint() but a working example would sure be nice, since my queries are returning nothing and the Python Mapscript example on the MS website is apparently for an older version of Mapscript. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gregor at hostgis.com Wed Feb 13 02:27:17 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed, 13 Feb 2008 03:27:17 -0700 Subject: [mapserver-users] Get a pixel's RGB by latlon? In-Reply-To: <47B2BD2A.9090306@hostgis.com> References: <47B2BD2A.9090306@hostgis.com> Message-ID: <47B2C605.6060109@hostgis.com> Never mind, I got it. A silly typo in the coordinates, putting my query on the wrong end of the planet. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From elvehjem at runestone.net Wed Feb 13 06:34:29 2008 From: elvehjem at runestone.net (Ken S. Elvehjem) Date: Wed, 13 Feb 2008 08:34:29 -0600 Subject: [mapserver-users] Simple thanks (re: Simple MrSID Map File) Message-ID: <130401c86e4d$91464da0$6401a8c0@Kens> Just a note to everyone to say how much I appreciate the availability of this list. A special thanks to Brent Fraser for his help... Was feeling like I had wandered into *Looking Glass Land*... But Now... my MrSID files are served up in a WMS server on my office machine... and I know I couldn't have done it without his comments, suggestions, and encouragement. "A patch of ground in South Dakota:" http://206.183.188.202/cgi-bin/mapserv.exe?map=c:\ms4w\Apache\htdocs\SD\mccook-wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=NAIP2006&STYLES=&SRS=EPSG:4269&BBOX=611300,4815500,613300,4817500&WIDTH=800&HEIGHT=800&FORMAT=image/jpeg Sincerely, Ken Ken S. Elvehjem ELVEHJEM TECHNICAL SUPPORT 250 Drury Ave PO Box 37 Lowry MN 56349 320.283.5684 320.283.5247 h 320.424.1299 c -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Wed Feb 13 07:49:40 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 13 Feb 2008 08:49:40 -0700 Subject: [mapserver-users] Simple thanks (re: Simple MrSID Map File) References: <130401c86e4d$91464da0$6401a8c0@Kens> Message-ID: <018501c86e58$0b3acf00$140002c0@shark> Ken (and all), Thanks for the thanks :) For those new users searching this list sometime in the future, below are the minimalist steps to get mapserver to read a raster file and display it in a browser (as Ken says, the "hello world" of web mapping). (0. Install ms2w and the Itasca demo dataset) 1. Make a map file using a text editor. Call it min.map and put it in the Workshop directory (in your web server's document-root directory). =========================== MAP NAME ITASCA # ----- Output image properties ----- IMAGETYPE PNG # output type SIZE 600 600 # image size in pixels # ----- Output image spatial reference system definition ----- # Output Projection - same as input data (UTM Zone 15, NAD83), # so no need to have MapServer re-project, # therefor no PROJECTION object required UNITS METERS # minx miny maxx maxy (in meters) EXTENT 423900 5205200 576000 5317000 # ----- Web interface definition ----- WEB TEMPLATE "min.html" # the html Mapserver will send to your browser IMAGEPATH "C:\Inetpub\wwwroot\tmp\" # dir where mapserver will IMAGEURL "/tmp/" # create the output image END # ----- Source data definition ----- LAYER NAME "drg" TYPE RASTER STATUS DEFAULT # always "on" DATA "C:\Inetpub\wwwroot\workshop\data\drgncimq1942.tif" END END # Map File ============================== 2. Make an html template file The above map file relies on an html "template", stored in the same directory as min.map, in our case named "min.html" : ============================== Hello World!

3. The URL you issue in your browser: http://localhost/cgi-bin/mapserv.exe?map=c:\Inetpub\wwwroot\workshop\min.map Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Ken S. Elvehjem" To: Sent: Wednesday, February 13, 2008 7:34 AM Subject: [mapserver-users] Simple thanks (re: Simple MrSID Map File) Just a note to everyone to say how much I appreciate the availability of this list. A special thanks to Brent Fraser for his help... Was feeling like I had wandered into *Looking Glass Land*... But Now... my MrSID files are served up in a WMS server on my office machine... and I know I couldn't have done it without his comments, suggestions, and encouragement. "A patch of ground in South Dakota:" http://206.183.188.202/cgi-bin/mapserv.exe?map=c:\ms4w\Apache\htdocs\SD\mccook-wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=NAIP2006&STYLES=&SRS=EPSG:4269&BBOX=611300,4815500,613300,4817500&WIDTH=800&HEIGHT=800&FORMAT=image/jpeg Sincerely, Ken Ken S. Elvehjem ELVEHJEM TECHNICAL SUPPORT 250 Drury Ave PO Box 37 Lowry MN 56349 320.283.5684 320.283.5247 h 320.424.1299 c ------------------------------------------------------------ -------------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From begodom at gmail.com Wed Feb 13 10:51:37 2008 From: begodom at gmail.com (=?ISO-8859-1?Q?Bego=F1a_Gonzalez?=) Date: Wed, 13 Feb 2008 19:51:37 +0100 Subject: [mapserver-users] Query in frame with mapserv-demo doesn't work Message-ID: <95d1ba280802131051h368bb174g54017cc73489b899@mail.gmail.com> Hello All I?m new with MapServer.I?m trying to build my aplication based in mapserv-demo. All the examples of mapserv-demo works fine. I?ve made a copy of all the files and rename the aplication. I want to have the same results as Adds dhtml rubber-band box. I?ve adapted the index.html, the itasca_adds_dhtml.html(renamed plantilla.html) and itasca.map (renamed eielmap.) In itasca_adds_dhtml.html and itasca.map I just changed regarding the layers and the map coordinates and size. The index.html file I have adapted in this way, to have my starup file and not having to choose the template in the select:

All works fine, the zoom bottons, the layers... except the query. When I do a query,into the bottom frame not show me anything, there is no error message of mapserver. The browser shows a message error: "no se puede encontrar la pagina web" "the web page is not found...", the url command is that this seems to be well: http://localhost/cgi-bin/mapserv.exe?mode=query&map=/ms4w/apps/eiel2/eielmap.map&imgext=642050+4192100+646950+4197000&imgxy=317+187&imgbox=317+187+317+187&imgsize=400+400&layers=ABASTECIMIENTO_A+MANZANAS Thanks in advance and sorry form my english. Bego?a -------------- next part -------------- An HTML attachment was scrubbed... URL: From begodom at gmail.com Wed Feb 13 11:59:54 2008 From: begodom at gmail.com (=?ISO-8859-1?Q?Bego=F1a_Gonzalez?=) Date: Wed, 13 Feb 2008 20:59:54 +0100 Subject: [mapserver-users] Query in frame with mapserv-demo doesn't work Message-ID: <95d1ba280802131159o244fe528s8e3a37abab75fa85@mail.gmail.com> I already have my layers definition with template... from Oscar ^_^ hide details 7:57 pm (58 minutes ago) to Bego?a Gonzalez date Feb 13, 2008 7:57 PM subject Re: [mapserver-users] Query in frame with mapserv-demo doesn't work mailed-by gmail.com Hello Bego?a, to do a query in a layer You must put it queryable. Configure a TEMPLATE in your layer definition to make your layer queryable. 2008/2/13, Bego?a Gonzalez : > > > - Hide quoted text - > Hello All > I?m new with MapServer.I?m trying to build my aplication based in mapserv-demo. > All the examples of mapserv-demo works fine. I?ve made a copy of all the files and rename the aplication. > I want to have the same results as Adds dhtml rubber-band box. > I?ve adapted the index.html, the itasca_adds_dhtml.html(renamed plantilla.html) and itasca.map (renamed eielmap.) > In itasca_adds_dhtml.html and itasca.map I just changed regarding the layers and the map coordinates and size. > The index.html file I have adapted in this way, to have my starup file and not having to choose the template in the select: > >
> > > > > > > >
> > All works fine, the zoom bottons, the layers... except the query. > > When I do a query,into the bottom frame not show me anything, there is no error message of mapserver. The browser shows a message error: > "no se puede encontrar la pagina web" "the web page is not found...", the url command is that this seems to be well: > http://localhost/cgi-bin/mapserv.exe?mode=query&map=/ms4w/apps/eiel2/eielmap.map&imgext=642050+4192100+646950+4197000&imgxy=317+187&imgbox=317+187+317+187&imgsize=400+400&layers=ABASTECIMIENTO_A+MANZANAS > > > Thanks in advance and sorry form my english. > > Bego?a From David.Fawcett at state.mn.us Wed Feb 13 12:10:18 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 13 Feb 2008 14:10:18 -0600 Subject: [mapserver-users] Query in frame with mapserv-demo doesn't work In-Reply-To: <95d1ba280802131159o244fe528s8e3a37abab75fa85@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBAA8@s-sp22.pca.state.mn.us> Please include the text of your map file. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bego?a Gonzalez Sent: Wednesday, February 13, 2008 2:00 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Query in frame with mapserv-demo doesn't work I already have my layers definition with template... from Oscar ^_^ hide details 7:57 pm (58 minutes ago) to Bego?a Gonzalez date Feb 13, 2008 7:57 PM subject Re: [mapserver-users] Query in frame with mapserv-demo doesn't work mailed-by gmail.com Hello Bego?a, to do a query in a layer You must put it queryable. Configure a TEMPLATE in your layer definition to make your layer queryable. 2008/2/13, Bego?a Gonzalez : > > > - Hide quoted text - > Hello All > I?m new with MapServer.I?m trying to build my aplication based in > mapserv-demo. All the examples of mapserv-demo works fine. I?ve made a > copy of all the files and rename the aplication. I want to have the > same results as Adds dhtml rubber-band box. I?ve adapted the > index.html, the itasca_adds_dhtml.html(renamed plantilla.html) and > itasca.map (renamed eielmap.) In itasca_adds_dhtml.html and itasca.map > I just changed regarding the layers and the map coordinates and size. > The index.html file I have adapted in this way, to have my starup file > and not having to choose the template in the select: > >
> > > > > > > >
> > All works fine, the zoom bottons, the layers... except the query. > > When I do a query,into the bottom frame not show me anything, there is > no error message of mapserver. The browser shows a message error: "no > se puede encontrar la pagina web" "the web page is not found...", the > url command is that this seems to be well: > http://localhost/cgi-bin/mapserv.exe?mode=query&map=/ms4w/apps/eiel2/e > ielmap.map&imgext=642050+4192100+646950+4197000&imgxy=317+187&imgbox=3 > 17+187+317+187&imgsize=400+400&layers=ABASTECIMIENTO_A+MANZANAS > > > Thanks in advance and sorry form my english. > > Bego?a _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From simone.dalmasso at gmail.com Wed Feb 13 13:15:27 2008 From: simone.dalmasso at gmail.com (Simone Dalmasso) Date: Wed, 13 Feb 2008 22:15:27 +0100 Subject: [mapserver-users] Ka-map on leopard Message-ID: Hi, I'm trying to ues Ka-map on mapserver in a mac osx 10.5.2 environment. My mapserver is up and running (i can use wms service). I've put ka-map in my /users/simo/sites dir, my mapfile is: MAP NAME maptry STATUS ON EXTENT -180 -90 180 90 SIZE 600 600 UNITS dd IMAGECOLOR 255 255 255 IMAGETYPE png PROJECTION "init=epsg:4326" END WEB IMAGEPATH "/tmp/kacache/" IMAGEURL "/tmp/kacache/" END LAYER NAME road GROUP roads TYPE LINE DATA ../data/roads.shp STATUS ON PROJECTION "init=epsg:4326" END CLASS NAME "roads" END END END and my config.php is: $aszGMap = array ( 'title' => 'prova', 'path' => '/users/simo/sites/mapfile/kamap.map', 'scales' => array( 40000000, 25000000, 12000000, 7500000, 3000000, 1000000 ), 'format' =>'PNG' /* Sample authorized_users entry. See auth.php for more details: * ,'authorized_users' => array('popplace' => array('user1', 'user2'), * 'park' => array('user1') */ ); $aszMapFiles = array( 'prova' => $aszGMap /* Add more elements to this array to offer multiple mapfiles */ ); When I access to ka-map i can see the standard interface but no mapfile are loaded. I'm sure that the path is correct. I think the problem is in the php_gd, because in my mac I haven't found any php_gd.so files. I've installed all frameworks from http://www.kyngchaos.com/ GD framework included. I've also installed the php-cgi 5.2 and used phpenable.app. But in my phpinfo, in the configure section, i read : '--with-gd=/Users/Shared/unix/gd' but in this folder I haven't any unix dir. All files are in /library/frameworks/gd.framework. Can you help me? Thanks in advance. -- Simone Dalmasso -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at kyngchaos.com Wed Feb 13 14:59:56 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Wed, 13 Feb 2008 16:59:56 -0600 Subject: [mapserver-users] Ka-map on leopard In-Reply-To: References: Message-ID: On Feb 13, 2008, at 3:15 PM, Simone Dalmasso wrote: > When I access to ka-map i can see the standard interface but no > mapfile are loaded. I'm sure that the path is correct. > I think the problem is in the php_gd, because in my mac I haven't > found any php_gd.so files. > > I've installed all frameworks from http://www.kyngchaos.com/ GD > framework included. I've also installed the php-cgi 5.2 and used > phpenable.app. > But in my phpinfo, in the configure section, i read : '--with-gd=/ > Users/Shared/unix/gd' but in this folder I haven't any unix dir. All > files are in /library/frameworks/gd.framework. > Can you help me? > php_gd.so is the extension for GD support in PHP. It's also possible to build GD into PHP, which I have done with my PHP, no extension files necessary. The --with-gd= you found is just how I configured PHP when compiling it and has nothing to do (in this case) with needing that folder at runtime. As long as there is a GD section in the phpinfo() features, GD support is working. Note that my recent PHP and Mapserver both have GD built into them, and the GD framework has been discontinued, so there is no need to install it, though it won't hurt anything except to take up space. I haven't tried ka-map since a long time ago (it worked then), so I don't know how to troubleshoot the ka-map configuration. ----- William Kyngesburye http://www.kyngchaos.com/ [Trillian] What are you supposed to do WITH a maniacally depressed robot? [Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer... - HitchHiker's Guide to the Galaxy From Paul.McCullough at sfgov.org Wed Feb 13 17:15:45 2008 From: Paul.McCullough at sfgov.org (Paul McCullough) Date: Wed, 13 Feb 2008 17:15:45 -0800 (PST) Subject: [MAPSERVER-USERS] SLD not working Message-ID: <15471896.post@talk.nabble.com> All, I am new to map server and I cannot get an SLD to work. I found posts similar to mine - none helped. The SLD works fine in geoserver so I suspect my mapserver config (3 days old). Here is my URL on one line: http://10.1.15.68/cgi-bin/mapserv.exe?map=/ms4w/maps/map.map&LAYERS=shore_extent&UNITS=dd&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-122.42699980800003,37.752500096,-122.36449971200004,37.815000192&WIDTH=256&HEIGHT=256&PROJECTION=EPSG%3A4326&SLD="http://10.1.15.68/sfmaps/sld/sfgis_shoreext.xml"& Here is my URL formatted nicely for your inspection: http://10.1.15.68/cgi-bin/mapserv.exe ?map=/ms4w/maps/map.map &LAYERS=shore_extent &UNITS=dd &SERVICE=WMS &VERSION=1.1.1 &REQUEST=GetMap &STYLES= &FORMAT=image%2Fjpeg &SRS=EPSG%3A4326 &BBOX=-122.42699980800003,37.752500096,-122.36449971200004,37.815000192 &WIDTH=256 &HEIGHT=256 &PROJECTION=EPSG%3A4326 &SLD="http://10.1.15.68/sfmaps/sld/sfgis_shoreext.xml" & Here is my map file: MAP IMAGECOLOR 180 180 250 IMAGETYPE PNG24 UNITS DD WEB IMAGEPATH "/tmp/" IMAGEURL "tmp/" METADATA "wms_title" "a wms title" "wms_srs" "EPSG:4326" END END PROJECTION "init=EPSG:4326" END LAYER NAME "shore_extent" DEBUG ON GROUP "Selected" CONNECTIONTYPE postgis CONNECTION "user=postgres password=postgres dbname=postgis host=localhost port=5432" DATA "the_geom from shoreext" TYPE POLYGON STATUS DEFAULT PROJECTION "init=EPSG:102643" END CLASS NAME 'Shore Extent' METADATA "wms_sld_body" "AUTO" END # I have tried this style section commented in and out STYLE OUTLINECOLOR 100 100 100 COLOR 200 200 200 END END END END Here is the SLD Default Styler Default Styler simple title abstract shoreext generic:geometry name title Abstract #EBE6DC 1.0 Here is my httpd.conf file: http://www.nabble.com/file/p15471896/httpd.conf httpd.conf I am on - windows xp sp 2. - Apache 2.2 (installed separately) - ms4w (cgi-bin hooked up "manually") I can get the map file style to work but not the SLD. I am obviously missing something. I would have tried, without success, to put this into the map file. And have read some inconclusive discussion about server side SLD. I have read about how mapserver does not implement all SLD idioms and played around with my SLD. All suggestions welcome. Regards, Paul -- View this message in context: http://www.nabble.com/SLD-not-working-tp15471896p15471896.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Wed Feb 13 18:55:43 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 14 Feb 2008 04:55:43 +0200 Subject: [MAPSERVER-USERS] SLD not working References: <15471896.post@talk.nabble.com> Message-ID: Hi Paul, What happens if you remove the dummy "&STYLES=" part? -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Paul McCullough L?hetetty: to 14.2.2008 3:15 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [MAPSERVER-USERS] SLD not working All, I am new to map server and I cannot get an SLD to work. I found posts similar to mine - none helped. The SLD works fine in geoserver so I suspect my mapserver config (3 days old). Here is my URL on one line: http://10.1.15.68/cgi-bin/mapserv.exe?map=/ms4w/maps/map.map&LAYERS=shore_extent&UNITS=dd&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-122.42699980800003,37.752500096,-122.36449971200004,37.815000192&WIDTH=256&HEIGHT=256&PROJECTION=EPSG%3A4326&SLD="http://10.1.15.68/sfmaps/sld/sfgis_shoreext.xml"& Here is my URL formatted nicely for your inspection: http://10.1.15.68/cgi-bin/mapserv.exe ?map=/ms4w/maps/map.map &LAYERS=shore_extent &UNITS=dd &SERVICE=WMS &VERSION=1.1.1 &REQUEST=GetMap &STYLES= &FORMAT=image%2Fjpeg &SRS=EPSG%3A4326 &BBOX=-122.42699980800003,37.752500096,-122.36449971200004,37.815000192 &WIDTH=256 &HEIGHT=256 &PROJECTION=EPSG%3A4326 &SLD="http://10.1.15.68/sfmaps/sld/sfgis_shoreext.xml" & Here is my map file: MAP IMAGECOLOR 180 180 250 IMAGETYPE PNG24 UNITS DD WEB IMAGEPATH "/tmp/" IMAGEURL "tmp/" METADATA "wms_title" "a wms title" "wms_srs" "EPSG:4326" END END PROJECTION "init=EPSG:4326" END LAYER NAME "shore_extent" DEBUG ON GROUP "Selected" CONNECTIONTYPE postgis CONNECTION "user=postgres password=postgres dbname=postgis host=localhost port=5432" DATA "the_geom from shoreext" TYPE POLYGON STATUS DEFAULT PROJECTION "init=EPSG:102643" END CLASS NAME 'Shore Extent' METADATA "wms_sld_body" "AUTO" END # I have tried this style section commented in and out STYLE OUTLINECOLOR 100 100 100 COLOR 200 200 200 END END END END Here is the SLD Default Styler Default Styler simple title abstract shoreext generic:geometry name title Abstract #EBE6DC 1.0 Here is my httpd.conf file: http://www.nabble.com/file/p15471896/httpd.conf httpd.conf I am on - windows xp sp 2. - Apache 2.2 (installed separately) - ms4w (cgi-bin hooked up "manually") I can get the map file style to work but not the SLD. I am obviously missing something. I would have tried, without success, to put this into the map file. And have read some inconclusive discussion about server side SLD. I have read about how mapserver does not implement all SLD idioms and played around with my SLD. All suggestions welcome. Regards, Paul -- View this message in context: http://www.nabble.com/SLD-not-working-tp15471896p15471896.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bartvde at osgis.nl Wed Feb 13 21:54:13 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Thu, 14 Feb 2008 06:54:13 +0100 Subject: [MAPSERVER-USERS] SLD not working Message-ID: Don't use quotes around the SLD URL. &SLD=http://10.1.15.68/sfmaps/sld/sfgis_shoreext.xml Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Paul McCullough Naar: mapserver-users at lists.osgeo.org Onderwerp: [MAPSERVER-USERS] SLD not working Datum: 13/02/08 23:16 > > All, > > I am new to map server and I cannot get an SLD to work. > I found posts similar to mine - none helped. > The SLD works fine in geoserver so I suspect my mapserver config (3 days > old). > > Here is my URL on one line: > http://10.1.15.68/cgi-bin/mapserv.exe?map=/ms4w/maps/map.map&LAYERS=shore_extent&UNITS=dd&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-122.42699980800003,37.752500096,-122.36449971200004,37.815000192&WIDTH=256&HEIGHT=256&PROJECTION=EPSG%3A4326&SLD="http://10.1.15.68/sfmaps/sld/sfgis_shoreext.xml"& > > Here is my URL formatted nicely for your inspection: > http://10.1.15.68/cgi-bin/mapserv.exe > ?map=/ms4w/maps/map.map > &LAYERS=shore_extent > &UNITS=dd > &SERVICE=WMS > &VERSION=1.1.1 > &REQUEST=GetMap > &STYLES= > &FORMAT=image%2Fjpeg > &SRS=EPSG%3A4326 > &BBOX=-122.42699980800003,37.752500096,-122.36449971200004,37.815000192 > &WIDTH=256 > &HEIGHT=256 > &PROJECTION=EPSG%3A4326 > &SLD="http://10.1.15.68/sfmaps/sld/sfgis_shoreext.xml" > & > > Here is my map file: > MAP > IMAGECOLOR 180 180 250 > IMAGETYPE PNG24 > UNITS DD > WEB > IMAGEPATH "/tmp/" > IMAGEURL "tmp/" > METADATA > "wms_title" "a wms title" > "wms_srs" "EPSG:4326" > END > END > PROJECTION > "init=EPSG:4326" > END > LAYER > NAME "shore_extent" > DEBUG ON > GROUP "Selected" > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=postgres dbname=postgis host=localhost > port=5432" > DATA "the_geom from shoreext" > TYPE POLYGON > STATUS DEFAULT > PROJECTION > "init=EPSG:102643" > END > CLASS > NAME 'Shore Extent' > METADATA > "wms_sld_body" "AUTO" > END > # I have tried this style section commented in and out > STYLE > OUTLINECOLOR 100 100 100 > COLOR 200 200 200 > END > END > END > END > > Here is the SLD > <?xml version="1.0" encoding="UTF-8"?> > <sld:StyledLayerDescriptor xmlns:sld="http://www.opengis.net/sld" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:gml="http://www.opengis.net/gml" version="1.0.0"> > <sld:UserLayer> > <sld:LayerFeatureConstraints> > <sld:FeatureTypeConstraint/> > </sld:LayerFeatureConstraints> > <sld:UserStyle> > <sld:Name>Default Styler</sld:Name> > <sld:Title>Default Styler</sld:Title> > <sld:Abstract/> > <sld:FeatureTypeStyle> > <sld:Name>simple</sld:Name> > <sld:Title>title</sld:Title> > <sld:Abstract>abstract</sld:Abstract> > <sld:FeatureTypeName>shoreext</sld:FeatureTypeName> > > <sld:SemanticTypeIdentifier>generic:geometry</sld:SemanticTypeIdentifier> > <sld:Rule> > <sld:Name>name</sld:Name> > <sld:Title>title</sld:Title> > <sld:Abstract>Abstract</sld:Abstract> > <sld:PolygonSymbolizer> > <sld:Fill> > <sld:CssParameter name="fill"> > <ogc:Literal>#EBE6DC</ogc:Literal> > </sld:CssParameter> > <sld:CssParameter name="fill-opacity"> > <ogc:Literal>1.0</ogc:Literal> > </sld:CssParameter> > </sld:Fill> > </sld:PolygonSymbolizer> > </sld:Rule> > </sld:FeatureTypeStyle> > </sld:UserStyle> > </sld:UserLayer> > </sld:StyledLayerDescriptor> > > Here is my httpd.conf file: > http://www.nabble.com/file/p15471896/httpd.conf httpd.conf > > > I am on > - windows xp sp 2. > - Apache 2.2 (installed separately) > - ms4w (cgi-bin hooked up "manually") > > I can get the map file style to work but not the SLD. > I am obviously missing something. > I would have tried, without success, to put this into the map file. > And have read some inconclusive discussion about server side SLD. > I have read about how mapserver does not implement all SLD idioms and played > around with my SLD. > All suggestions welcome. > > Regards, > Paul > > -- > View this message in context: http://www.nabble.com/SLD-not-working-tp15471896p15471896.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From begodom at gmail.com Thu Feb 14 00:02:33 2008 From: begodom at gmail.com (=?ISO-8859-1?Q?Bego=F1a_Gonzalez?=) Date: Thu, 14 Feb 2008 09:02:33 +0100 Subject: [mapserver-users] Query in frame with mapserv-demo doesn't work In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBAA8@s-sp22.pca.state.mn.us> References: <95d1ba280802131159o244fe528s8e3a37abab75fa85@mail.gmail.com> <6246727221874A4FB8D3F9BBC37D9BD5021FBAA8@s-sp22.pca.state.mn.us> Message-ID: <95d1ba280802140002w4af572c3k92e177984a0dbea7@mail.gmail.com> hello david This is my map file, I send you only one layer but the others are similars: MAP NAME EIEL STATUS ON SIZE 600 600 IMAGETYPE PNG IMAGECOLOR 249 249 249 EXTENT 643925 4192100 645075 4197000 TEMPLATEPATTERN "eiel" UNITS METERS IMAGETYPE PNG SHAPEPATH "datos" SYMBOLSET "c:/ms4w/apps/eiel2/etc/symbols.sym" FONTSET "c:/ms4w/apps/eiel2/etc/fonts.txt" WEB HEADER templates/header.html TEMPLATE "/ms4w/apps/eiel2/plantilla.html" FOOTER templates/footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" EMPTY "/eiel/VACIO.html" END LAYER NAME "ABASTECIMIENTO_A" STATUS ON TYPE POINT CONNECTIONTYPE oraclespatial CONNECTION "***/***@bbdd" DATA "GEOLOC FROM ***.**** USING UNIQUE MI_PRINX SRID 82337" CLASS STYLE SYMBOL "rechteck-hoch" COLOR 150 0 0 SIZE 15 OUTLINECOLOR 150 0 0 END TEMPLATE "templates/ABASTECIMIENTO_A.html" END END #I have more layers but similars than previous.... SCALEBAR IMAGECOLOR 249 249 249 STATUS ON LABEL COLOR 0 0 0 ANTIALIAS ON SIZE TINY END UNITS METERS POSITION LR SIZE 150 3 INTERVALS 3 TRANSPARENT TRUE STYLE 1 END REFERENCE STATUS ON IMAGE "ref/carto.gif" SIZE 160 110 EXTENT 644125 4192100 647275 4199000 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 MINBOXSIZE 5 MARKERSIZE 8 MARKER 'star' END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END END END Thanks On Wed, Feb 13, 2008 at 9:10 PM, Fawcett, David wrote: > Please include the text of your map file. > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bego?a Gonzalez > Sent: Wednesday, February 13, 2008 2:00 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Query in frame with mapserv-demo doesn't work > > > I already have my layers definition with template... > > > from Oscar ^_^ hide details 7:57 pm (58 minutes ago) > to Bego?a Gonzalez > date Feb 13, 2008 7:57 PM > subject Re: [mapserver-users] Query in frame with mapserv-demo doesn't work mailed-by gmail.com > > > Hello Bego?a, to do a query in a layer You must put it queryable. Configure a TEMPLATE in your layer definition to make your layer queryable. > > > 2008/2/13, Bego?a Gonzalez : > > > > > > - Hide quoted text - > > Hello All > > I?m new with MapServer.I?m trying to build my aplication based in > > mapserv-demo. All the examples of mapserv-demo works fine. I?ve made a > > copy of all the files and rename the aplication. I want to have the > > same results as Adds dhtml rubber-band box. I?ve adapted the > > index.html, the itasca_adds_dhtml.html(renamed plantilla.html) and > > itasca.map (renamed eielmap.) In itasca_adds_dhtml.html and itasca.map > > I just changed regarding the layers and the map coordinates and size. > > The index.html file I have adapted in this way, to have my starup file > > and not having to choose the template in the select: > > > >
> > > > > > > > > > > > > > > >
> > > > All works fine, the zoom bottons, the layers... except the query. > > > > When I do a query,into the bottom frame not show me anything, there is > > no error message of mapserver. The browser shows a message error: "no > > se puede encontrar la pagina web" "the web page is not found...", the > > url command is that this seems to be well: > > http://localhost/cgi-bin/mapserv.exe?mode=query&map=/ms4w/apps/eiel2/e > > ielmap.map&imgext=642050+4192100+646950+4197000&imgxy=317+187&imgbox=3 > > 17+187+317+187&imgsize=400+400&layers=ABASTECIMIENTO_A+MANZANAS > > > > > > Thanks in advance and sorry form my english. > > > > Bego?a > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users > From aberenyi at burken.hu Wed Feb 13 07:28:52 2008 From: aberenyi at burken.hu (=?ISO-8859-2?Q?Attila_Ber=E9nyi?=) Date: Wed, 13 Feb 2008 16:28:52 +0100 Subject: [mapserver-users] scalebar imageObj Message-ID: <47B30CB4.1060506@burken.hu> Dear All, I'd like to know how could I reach the existing scalebar image. I'm able to create a new one with $map->drawScaleBar(); but I need the one from the existing session, because I'd like to paste it into a pdf. Thanks in advance, Attila -------------- next part -------------- An HTML attachment was scrubbed... URL: From aberenyi at burken.hu Thu Feb 14 04:32:23 2008 From: aberenyi at burken.hu (=?ISO-8859-2?Q?Attila_Ber=E9nyi?=) Date: Thu, 14 Feb 2008 13:32:23 +0100 Subject: [mapserver-users] scalebar imageObj Message-ID: <47B434D7.2090005@burken.hu> Dear All, I'd like to know how could I reach the existing scalebar imageObj. I'm able to create a new one with $map->drawScaleBar(); but I need the one from the existing session, because I'd like to paste it into a pdf. Thanks in advance, Attila P.S.: Sorry, but there's some trouble with our mailserver, so I try to send it again. -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Thu Feb 14 08:29:59 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 14 Feb 2008 11:29:59 -0500 Subject: [mapserver-users] Re: [UMN_MAPSERVER-USERS] Non-MS4W Windows binaries for MapServer 5 In-Reply-To: <003301c86f22$26307420$c7d0210a@sadl.agr.ad10.intern.kuleuven.ac.be> References: <003301c86f22$26307420$c7d0210a@sadl.agr.ad10.intern.kuleuven.ac.be> Message-ID: <47B46C87.40302@dmsolutions.ca> Rafal, If you only need the binaries and not the whole ms4w environment, you can still download the ms4w and just get the binaries from it. Look at http://maptools.org/ms4w/index.phtml?page=README_INSTALL.html#i-installing-the-ms4w-mapserver-binaries-in-other-environments for what needs to be extracted. Best Regards Rafal Wawer wrote: > Dear All, > > I am looking for MapServer 5.x. binaries precompiled for Windows. > > I know, that there is the MS4W ( I've been using it for testing) but in > opinon of my network amdins that solution is not safe enough for a > proffessional service with copyrighted data behind it. > What I am looking for is a MapServer to be put on top on Apache under > Windows OS. I thought I will find it on MapServer's website, but there > is only a link to MS4W and FWTools. > > I will appreciate your help. > Kind regards: > Raf > > > Dr. Rafal Wawer > > K.U.Leuven > > R&D Division SADL (Spatial Application Division) > > Celestijnenlaan 200e bus 2224 > > BE-3001 Leuven-Heverlee > > Belgium > > tel. 0032 16 329731 > > > > > Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm for more > information. > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Paul.McCullough at sfgov.org Thu Feb 14 08:57:09 2008 From: Paul.McCullough at sfgov.org (Paul McCullough) Date: Thu, 14 Feb 2008 08:57:09 -0800 (PST) Subject: [MAPSERVER-USERS] SUMMARY: SLD not working In-Reply-To: <15471896.post@talk.nabble.com> References: <15471896.post@talk.nabble.com> Message-ID: <15481665.post@talk.nabble.com> Thanks for replies: Bart van den Eijnden Jukka Rahkonen While they did not provide the solution, they got me to thinking differently. The problem was that the SLD that works fine in geoserver does not work fine in mapserver. In MapServer, one must use sld:NamedLayer rather than sld:UserLayer. Further, the NamedLayer name must match the map file layer name. Jeff McKenna says it all in the docs: When MapServer gets a valid SLD through a request, it parses this SLD to extract all the styles attached to the NamedLayers, and then it applies these styles to the map before it is returned to the client. When applying the SLD, MapServer compares the names used in the map files with the names of the NamedLayers in the SLD document. RE http://mapserver.gis.umn.edu/docs/howto/sldhowto For clarity, I never stated what I meant exactly by "not working." "Not working" in this case meant that the polygon was not being rendered. -- View this message in context: http://www.nabble.com/SLD-not-working-tp15471896p15481665.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Tim.Nolte at ipcswirelessinc.com Thu Feb 14 09:06:49 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Thu, 14 Feb 2008 12:06:49 -0500 Subject: [mapserver-users] RE: [UMN_MAPSERVER-USERS] Input Image and Image Map In-Reply-To: <82ba77b80802130701m3521437dle855a044cff6c24c@mail.gmail.com> References: <1532456BD081F146A176FB6929E6B0D1BAAF5E@KTWMAIL.ilpcs.com> <82ba77b80802121109s10784a8aqdc24293960b3c3e2@mail.gmail.com> <1532456BD081F146A176FB6929E6B0D1BF0478@KTWMAIL.ilpcs.com> <82ba77b80802130701m3521437dle855a044cff6c24c@mail.gmail.com> Message-ID: <1532456BD081F146A176FB6929E6B0D1BF05C8@KTWMAIL.ilpcs.com> Matthew, >From everything I see this should work. However, something you might try doing is setup a little JavaScript that tracks the mouse movement (x,y) within the map area and have those stored in a couple read-only form fields. When you click on the map and the page is submitted you'll have the x,y from those form fields to use in doing your zoom. I'm a little swamped at the moment so until I can setup your code in a test environment to interact with myself I'm probably not going to be much more help. Sry. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com From matthew.pettis at gmail.com Thu Feb 14 09:15:09 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Thu, 14 Feb 2008 11:15:09 -0600 Subject: [mapserver-users] Re: [UMN_MAPSERVER-USERS] Input Image and Image Map In-Reply-To: <1532456BD081F146A176FB6929E6B0D1BF05C8@KTWMAIL.ilpcs.com> References: <1532456BD081F146A176FB6929E6B0D1BAAF5E@KTWMAIL.ilpcs.com> <82ba77b80802121109s10784a8aqdc24293960b3c3e2@mail.gmail.com> <1532456BD081F146A176FB6929E6B0D1BF0478@KTWMAIL.ilpcs.com> <82ba77b80802130701m3521437dle855a044cff6c24c@mail.gmail.com> <1532456BD081F146A176FB6929E6B0D1BF05C8@KTWMAIL.ilpcs.com> Message-ID: <82ba77b80802140915g4ddee642y6d2006d5e2296592@mail.gmail.com> Thanks for your help so far, Tim. I'm not complete yet, but I am doing something along those lines, I think... I am using javascript provided by YUI (Yahoo! User Interface) to help me track mouse positions and events. I am going to calculate the image position of a click on the image (if it allows) or the image map by registering a listener with both, and then submit the form with the appropriate info purely through javascript. I'll post what I know when/if I get that solution working. Thanks again, Matt On Thu, Feb 14, 2008 at 11:06 AM, Nolte, Tim wrote: > Matthew, > > From everything I see this should work. However, something you might try > doing is setup a little JavaScript that tracks the mouse movement (x,y) > within the map area and have those stored in a couple read-only form > fields. When you click on the map and the page is submitted you'll have > the x,y from those form fields to use in doing your zoom. I'm a little > swamped at the moment so until I can setup your code in a test > environment to interact with myself I'm probably not going to be much > more help. Sry. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Thu Feb 14 09:25:18 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 14 Feb 2008 11:25:18 -0600 Subject: [mapserver-users] Re: [UMN_MAPSERVER-USERS] Input Image and ImageMap In-Reply-To: <82ba77b80802140915g4ddee642y6d2006d5e2296592@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBAB8@s-sp22.pca.state.mn.us> Matt, You might want to look at Steve Lime's dBox code. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Matthew Pettis Sent: Thursday, February 14, 2008 11:15 AM To: Nolte, Tim Cc: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: [UMN_MAPSERVER-USERS] Input Image and ImageMap Thanks for your help so far, Tim. I'm not complete yet, but I am doing something along those lines, I think... I am using javascript provided by YUI (Yahoo! User Interface) to help me track mouse positions and events. I am going to calculate the image position of a click on the image (if it allows) or the image map by registering a listener with both, and then submit the form with the appropriate info purely through javascript. I'll post what I know when/if I get that solution working. Thanks again, Matt On Thu, Feb 14, 2008 at 11:06 AM, Nolte, Tim wrote: Matthew, >From everything I see this should work. However, something you might try doing is setup a little JavaScript that tracks the mouse movement (x,y) within the map area and have those stored in a couple read-only form fields. When you click on the map and the page is submitted you'll have the x,y from those form fields to use in doing your zoom. I'm a little swamped at the moment so until I can setup your code in a test environment to interact with myself I'm probably not going to be much more help. Sry. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Thu Feb 14 10:41:21 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Thu, 14 Feb 2008 11:41:21 -0700 Subject: [mapserver-users] Get a pixel's RGB by latlon? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBA9C@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FBA9C@s-sp22.pca.state.mn.us> Message-ID: <47B48B51.1050500@hostgis.com> Fawcett, David wrote: > Did you go with CGI or MapScript? Care to share a snippet? Still, here are all the steps in one place. Hopefully this will get archived and spidered, and the next Google user will have an easier time than I did! (though a missing - sign in my coords was the true culprit in many of my tribulations) I used Mapserver's built-in CGI query mechanism, as it provides sufficient abstraction to automagically convert latlon and layer into a image file and pixel, even crossing tileindexes. That would've been 90% of the hard stuff, done already! The mapfile does need a query template for the raster layer, as is documented: LAYER NAME "avhrr" STATUS on TYPE raster DATA "AVHRR_SST/avhrr-today.tif" TEMPLATE "/maps/wms/pixel.template.html" END And pixel.template.html is simply this one word, the raw pixel value from whatever point was selected, from band 0. [value_0] The query was intended, as you can see, for a given latlon as opposed to a point-click and pixels within an image of known height. And since this was within PHP, I really did want to use 'localhost' http://localhost/cgi-bin/mapserv?map=/maps/wms/sst.map&mode=query&layers=%s&mapxy=%f+%f Now in PHP, I simply do file_get_contents($url) and I have the raw pixel value. In many cases, the pixel value is not the same as the desired data value but that conversion varies with your particular dataset. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From yassefa at dmsolutions.ca Thu Feb 14 11:03:20 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 14 Feb 2008 14:03:20 -0500 Subject: [MAPSERVER-USERS] SUMMARY: SLD not working In-Reply-To: <15481665.post@talk.nabble.com> References: <15471896.post@talk.nabble.com> <15481665.post@talk.nabble.com> Message-ID: <47B49078.1010800@dmsolutions.ca> Paul, > The problem was that the SLD that works fine in geoserver does not work fine > in mapserver. You are right, Userlayers are not supported. > In MapServer, one must use sld:NamedLayer rather than sld:UserLayer. > Further, the NamedLayer name must match the map file layer name. > > Jeff McKenna says it all in the docs: > When MapServer gets a valid SLD through a request, it parses this SLD to > extract > all the styles attached to the NamedLayers, and then it applies these styles > to > the map before it is returned to the client. When applying the SLD, > MapServer > compares the names used in the map files with the names of the NamedLayers > in > the SLD document. > RE http://mapserver.gis.umn.edu/docs/howto/sldhowto > I have added a comment in the docs to clarify that part of the text: something like : When applying the SLD, MapServer compares the parameter of the NamedLayers in the SLD document to the wms layer names (wms layer names are available with a getcapabilities request) Saying that, the wms layer names exposed in the capabilities document come from the layer's name in the map file so the previous text is also technically correct. Best Regards, > For clarity, I never stated what I meant exactly by "not working." > "Not working" in this case meant that the polygon was not being rendered. > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From begodom at gmail.com Fri Feb 15 00:58:20 2008 From: begodom at gmail.com (=?ISO-8859-1?Q?Bego=F1a_Gonzalez?=) Date: Fri, 15 Feb 2008 09:58:20 +0100 Subject: [mapserver-users] Query in frame with mapserv-demo doesn't work In-Reply-To: <95d1ba280802140002w4af572c3k92e177984a0dbea7@mail.gmail.com> References: <95d1ba280802131159o244fe528s8e3a37abab75fa85@mail.gmail.com> <6246727221874A4FB8D3F9BBC37D9BD5021FBAA8@s-sp22.pca.state.mn.us> <95d1ba280802140002w4af572c3k92e177984a0dbea7@mail.gmail.com> Message-ID: <95d1ba280802150058s6b1bddect8413ab9a6d8baa63@mail.gmail.com> Hello Finally I fixed it. The problem was a mixture of things, first the line: EMPTY "/eiel/VACIO.html" in my WEB object and a bad coordinate realignment. I don?t know why the reference of VACIO.html file was lost and because my wrong coords mapserver never found records... Add in WEB object the LOG optional File to log MapServer activity in helped me to solve it. Thanks On Thu, Feb 14, 2008 at 9:02 AM, Bego?a Gonzalez wrote: > hello david > > This is my map file, I send you only one layer but the others are similars: > > MAP > NAME EIEL > STATUS ON > SIZE 600 600 > IMAGETYPE PNG > IMAGECOLOR 249 249 249 > EXTENT 643925 4192100 645075 4197000 > TEMPLATEPATTERN "eiel" > UNITS METERS > IMAGETYPE PNG > SHAPEPATH "datos" > SYMBOLSET "c:/ms4w/apps/eiel2/etc/symbols.sym" > FONTSET "c:/ms4w/apps/eiel2/etc/fonts.txt" > > > WEB > HEADER templates/header.html > TEMPLATE "/ms4w/apps/eiel2/plantilla.html" > FOOTER templates/footer.html > MINSCALE 1000 > MAXSCALE 1550000 > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > EMPTY "/eiel/VACIO.html" > END > > LAYER > NAME "ABASTECIMIENTO_A" > STATUS ON > TYPE POINT > CONNECTIONTYPE oraclespatial > CONNECTION "***/***@bbdd" > DATA "GEOLOC FROM ***.**** USING UNIQUE MI_PRINX SRID 82337" > CLASS > STYLE > SYMBOL "rechteck-hoch" > COLOR 150 0 0 > SIZE 15 > OUTLINECOLOR 150 0 0 > END > TEMPLATE "templates/ABASTECIMIENTO_A.html" > END > > END > > #I have more layers but similars than previous.... > > SCALEBAR > IMAGECOLOR 249 249 249 > STATUS ON > LABEL > COLOR 0 0 0 > ANTIALIAS ON > SIZE TINY > END > UNITS METERS > POSITION LR > SIZE 150 3 > INTERVALS 3 > TRANSPARENT TRUE > STYLE 1 > END > > > REFERENCE > STATUS ON > IMAGE "ref/carto.gif" > SIZE 160 110 > EXTENT 644125 4192100 647275 4199000 > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > MINBOXSIZE 5 > MARKERSIZE 8 > MARKER 'star' > END > > # > # Start of legend > # > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > END > > END > > END > > > > Thanks > > > > On Wed, Feb 13, 2008 at 9:10 PM, Fawcett, David > wrote: > > Please include the text of your map file. > > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bego?a Gonzalez > > Sent: Wednesday, February 13, 2008 2:00 PM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] Query in frame with mapserv-demo doesn't work > > > > > > I already have my layers definition with template... > > > > > > from Oscar ^_^ hide details 7:57 pm (58 minutes ago) > > to Bego?a Gonzalez > > date Feb 13, 2008 7:57 PM > > subject Re: [mapserver-users] Query in frame with mapserv-demo doesn't work mailed-by gmail.com > > > > > > Hello Bego?a, to do a query in a layer You must put it queryable. Configure a TEMPLATE in your layer definition to make your layer queryable. > > > > > > 2008/2/13, Bego?a Gonzalez : > > > > > > > > > - Hide quoted text - > > > Hello All > > > I?m new with MapServer.I?m trying to build my aplication based in > > > mapserv-demo. All the examples of mapserv-demo works fine. I?ve made a > > > copy of all the files and rename the aplication. I want to have the > > > same results as Adds dhtml rubber-band box. I?ve adapted the > > > index.html, the itasca_adds_dhtml.html(renamed plantilla.html) and > > > itasca.map (renamed eielmap.) In itasca_adds_dhtml.html and itasca.map > > > I just changed regarding the layers and the map coordinates and size. > > > The index.html file I have adapted in this way, to have my starup file > > > and not having to choose the template in the select: > > > > > >
> > > > > > > > > > > > > > > > > > > > > > > >
> > > > > > All works fine, the zoom bottons, the layers... except the query. > > > > > > When I do a query,into the bottom frame not show me anything, there is > > > no error message of mapserver. The browser shows a message error: "no > > > se puede encontrar la pagina web" "the web page is not found...", the > > > url command is that this seems to be well: > > > http://localhost/cgi-bin/mapserv.exe?mode=query&map=/ms4w/apps/eiel2/e > > > ielmap.map&imgext=642050+4192100+646950+4197000&imgxy=317+187&imgbox=3 > > > 17+187+317+187&imgsize=400+400&layers=ABASTECIMIENTO_A+MANZANAS > > > > > > > > > Thanks in advance and sorry form my english. > > > > > > Bego?a > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From David.Fawcett at state.mn.us Fri Feb 15 08:31:22 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Fri, 15 Feb 2008 10:31:22 -0600 Subject: [mapserver-users] RE: [UMN_MAPSERVER-USERS] Strange Projection Issue in MapServer In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBAC7@s-sp22.pca.state.mn.us> This looks like a projection issue. If you run ogrinfo on the tile index what do you get? How about if you run gdalinfo on one of the image tiles? -----Original Message----- From: Robert Hicks [mailto:robhyx at gmail.com] Sent: Friday, February 15, 2008 10:23 AM To: Fawcett, David Subject: Re: [UMN_MAPSERVER-USERS] Strange Projection Issue in MapServer Sure thing, thanks David. I am using MapServer for Windows version 2.2.6, I have attached both again for you. Thanks, Rob On Fri, Feb 15, 2008 at 10:47 AM, Fawcett, David wrote: Robert, Can you post the text of your map file and the version of MapServer that you are using? I also didn't see the .png attachment come through. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Robert Hyx Sent: Friday, February 15, 2008 9:30 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Strange Projection Issue in MapServer Hello Everyone, I am having a strange problem with mapserver and reprojecting on the fly. I have some imagery in mapserver that has been processed but is still kept in its native projection 26915, and when I use the PROJECTION "init=epsg:4326" END in the header (above the paths of the shape files) and I use PROJECTION "init=epsg:26915" END in each layer (above the path of each shape file), I get another version of the imagery over on the other side of the world in addition to the normal version of the imagery that appears in the correct place. I have attached a png of what the imagery that appears in the incorrect place looks like. Any help would be greatly appreciated. Thanks, Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: From vedsur at yahoo.com Fri Feb 15 09:24:23 2008 From: vedsur at yahoo.com (Suresh Nimbalkar) Date: Fri, 15 Feb 2008 09:24:23 -0800 (PST) Subject: [mapserver-users] loadWeb() error on Windows 2003 (MS4W package) Message-ID: <21114.60668.qm@web38006.mail.mud.yahoo.com> Hi! I have just started my exploration in Mapserver on Windows platform with MS4W package. I am using Bil Kropla's Mapserver book. When I worked out the first example (of chapter 2), a simple example using mapserver in CGI-BIN mode, I get the following error loadWeb(): Unknown identifier. Parsing error near (c):(line 1) I tried changing the path information (TEMPLATE, IMAGE PATH), other parameters to ensure the simple 'Hello World' example map gets displayed, but I could not go further. I am producing the source code below of the two files. File: hello.map -------------------- # This is our "Hello World" mapfile NAME "Hello World" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.0 -1.0 1.0 1.0 WEB TEMPLATE "c:/ms4w/apache/htdocs/hello.html" IMAGEPATH "c:/ms4w/apache/htdocs/tmp/" IMAGEURL "/tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.00 0.00 END TEXT "Hello World" END # end feature CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END File: Hello.html --------------------- MapServer Hello World
Would appreciate any help on this. Thanks in advance. Suresh --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Fri Feb 15 12:18:22 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Fri, 15 Feb 2008 14:18:22 -0600 Subject: [mapserver-users] RE: [UMN_MAPSERVER-USERS] Strange Projection Issue in MapServer In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBAC9@s-sp22.pca.state.mn.us> Robert, Please reply to the list too, there are a lot of people on the list who know a lot more about this than I do. It would be useful to see a more verbose output on both of the commands, not necessarily for each feature in the tileindex, but at least the extent, etc. David. -----Original Message----- From: Robert Hicks [mailto:robhyx at gmail.com] Sent: Friday, February 15, 2008 11:02 AM To: Fawcett, David Subject: Re: [UMN_MAPSERVER-USERS] Strange Projection Issue in MapServer $ gdalinfo img.tif | grep EPSG AUTHORITY["EPSG","7019"]], AUTHORITY["EPSG","6269"]], AUTHORITY["EPSG","4269"]], AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","26915"]] ------------------------------------------------------------ $ ogrinfo 128Resolution.shp INFO: Open of `128Resolution.shp' using driver `ESRI Shapefile' successful. 1: 128Resolution (Polygon) On Fri, Feb 15, 2008 at 11:31 AM, Fawcett, David wrote: This looks like a projection issue. If you run ogrinfo on the tile index what do you get? How about if you run gdalinfo on one of the image tiles? -----Original Message----- From: Robert Hicks [mailto:robhyx at gmail.com] Sent: Friday, February 15, 2008 10:23 AM To: Fawcett, David Subject: Re: [UMN_MAPSERVER-USERS] Strange Projection Issue in MapServer Sure thing, thanks David. I am using MapServer for Windows version 2.2.6, I have attached both again for you. Thanks, Rob On Fri, Feb 15, 2008 at 10:47 AM, Fawcett, David wrote: Robert, Can you post the text of your map file and the version of MapServer that you are using? I also didn't see the .png attachment come through. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Robert Hyx Sent: Friday, February 15, 2008 9:30 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Strange Projection Issue in MapServer Hello Everyone, I am having a strange problem with mapserver and reprojecting on the fly. I have some imagery in mapserver that has been processed but is still kept in its native projection 26915, and when I use the PROJECTION "init=epsg:4326" END in the header (above the paths of the shape files) and I use PROJECTION "init=epsg:26915" END in each layer (above the path of each shape file), I get another version of the imagery over on the other side of the world in addition to the normal version of the imagery that appears in the correct place. I have attached a png of what the imagery that appears in the incorrect place looks like. Any help would be greatly appreciated. Thanks, Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: From ritesh.linux at gmail.com Fri Feb 15 12:37:26 2008 From: ritesh.linux at gmail.com (riteshambastha) Date: Fri, 15 Feb 2008 12:37:26 -0800 (PST) Subject: [MAPSERVER-USERS] loadWeb() error on Windows 2003 (MS4W package) In-Reply-To: <21114.60668.qm@web38006.mail.mud.yahoo.com> References: <21114.60668.qm@web38006.mail.mud.yahoo.com> Message-ID: <15509450.post@talk.nabble.com> Hey Suresh, Try changing relative path for WEB--END section. ie , WEB TEMPLATE "/ms4w/apache/htdocs/hello.html" IMAGEPATH "/ms4w/apache/htdocs/tmp/" IMAGEURL "/tmp/" END Also, I remember there should be something like hello_i.html file too. Regards, Ritesh Suresh Nimbalkar wrote: > > Hi! > > I have just started my exploration in Mapserver on Windows platform with > MS4W package. I am using Bil Kropla's Mapserver book. When I worked out > the first example (of chapter 2), a simple example using mapserver in > CGI-BIN mode, I get the following error > loadWeb(): Unknown identifier. Parsing error near (c):(line 1) > I tried changing the path information (TEMPLATE, IMAGE PATH), other > parameters to ensure the simple 'Hello World' example map gets displayed, > but I could not go further. > > I am producing the source code below of the two files. > > File: hello.map > -------------------- > # This is our "Hello World" mapfile > NAME "Hello World" > SIZE 400 300 > IMAGECOLOR 249 245 186 > IMAGETYPE png > EXTENT -1.0 -1.0 1.0 1.0 > WEB > TEMPLATE "c:/ms4w/apache/htdocs/hello.html" > IMAGEPATH "c:/ms4w/apache/htdocs/tmp/" > IMAGEURL "/tmp/" > END > LAYER > STATUS default > TYPE point > FEATURE > POINTS 0.00 0.00 END > TEXT "Hello World" > END # end feature > CLASS > STYLE > COLOR 255 0 0 > END > LABEL > TYPE bitmap > END > END > END > END > > File: Hello.html > --------------------- > > MapServer Hello World > >
> > value="c:/ms4w/apache/htdocs/hello.map"> > value="c:/ms4w/apache/htdocs/tmp/"> >
> [img] > > > > Would appreciate any help on this. > > Thanks in advance. > Suresh > > > --------------------------------- > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it > now. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/loadWeb%28%29-error-on-Windows-2003-%28MS4W-package%29-tp15506112p15509450.html Sent from the Mapserver - User mailing list archive at Nabble.com. From percyd at pdx.edu Fri Feb 15 15:24:51 2008 From: percyd at pdx.edu (percy) Date: Fri, 15 Feb 2008 15:24:51 -0800 Subject: [mapserver-users] call for presentations -HotApps Oregon Message-ID: <47B61F43.9070503@pdx.edu> Hello mapserver folk, this pertains mostly to those in the Pacific Northwest... and sorry for the cross-posts... Oregon URISA sponsors an event every year called Hot Apps, and this year the focus is on Open Source GIS. Paul Ramsey will give the morning tutorial, and in the afternoon from 2pm to 4pm will be presentations by people such as yourself. These will likely be in the 15-20 minute time range, though we could do some lightning talks, too. The event is free, attendance is capped at 70, and lunch is provided. It is in Eugene, OR on March 7th. Flier attached. If you would like to be considered for presenting, please email me directly. I'd like to finalize the lineup in the next week or so. We will focus mostly on internet mapping (preferably with some advanced functionality!), but if anyone has a nifty demo of doing some analytical work with a desktop client against GRASS (for example), that would great! Anything in the category of Enterprise GIS would also be delightful. It would be nice to see a variety of apps. Cheers, Percy -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From nospam420 at yahoo.com Fri Feb 15 18:12:08 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Fri, 15 Feb 2008 18:12:08 -0800 (PST) Subject: [MAPSERVER-USERS] thread safety Message-ID: <15514019.post@talk.nabble.com> To what extent is mapserver currently thread safe? Yes, I have read the page at: http://mapserver.gis.umn.edu/docs/faq/thread_safety but it says: This FAQ applies to: MapServer 4.6, MapServer 4.8 and I'm wondering about 5.0. (And there are some other things on it that I don't understand as well, see details below.) Here's my situation: I am running mapserver 5.0.0 on debian 3.1 (sarge), locally compiled with gcc 3.3.5, using locally compiled versions of GD 2.0.35 and AGG 2.5, and debian packages for everything else. My mapserver configuration is as follows: MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=THREADS INPUT=POSTGIS INPUT=SHAPEFILE I would imagine that the portions above that I am currently using are: OUTPUT=PNG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=THREADS INPUT=POSTGIS I have a custom Java webapp that uses Java mapscript and runs with tomcat 5.5.17 and java 1.5.0, also on debian 3.1 (sarge). It queries its data from a PostgreSQL/PostGIS database, uses projections, uses the AGG renderer, includes labels with TrueType fonts, and generates PNG output. Each flow from request to response is a single thread, but tomcat is able to process multiple concurrent requests if it receives them. Small scale individual tests work fine. When I try executing larger scale stress tests that include multiple concurrent requests to tomcat, things run fine for a while, but eventually the JVM crashes and tomcat dies. Some examples of reported stack traces are given below. I have not yet been able to reproduce a single failure -- I'm still working on it. But if this is a threading issue, I may not be able to get a reproducible test case. And even if the list at the web page above is still current, it's not entirely clear to me as someone not familiar with mapserver internals how I can tell whether or not some of those components apply to my particular situation. There's this thread on the mailing list: http://www.nabble.com/forum/ViewPost.jtp?post=3215944&framed=y which does say: "The --with-threads switch does not need to be used in normal cgi or single threaded mapscript use." although that mailing list thread doesn't really answer all of my questions, because: 1) Much of it discusses FastCGI, which isn't applicable to my situation. 2) It's not clear to me whether a single thread of execution from the perspective of mapscript, but that can be invoked repeatedly from tomcat handling multiple concurrent connections (from either a multithreaded client or multiple single threaded clients) falls under the case of "single threaded mapscript use. 3) The mailing list thread is nearly 2 years old. Thanks for any help that anyone may be able to provide. - Rich --- crash #1: (msClipPolygonRect) mapprimitive.c:649 (msDrawShape) mapdraw.c:1609 (msDrawVectorLayer) mapdraw.c:887 (msDrawLayer) mapdraw.c:718 (msDrawMap) mapdraw.c:432 (mapObj_draw) mapscript/java/mapscript_wrap.c:1714 (Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1draw) mapscript/java/mapscript_wrap.c:20612 crash #2: (msClipPolygonRect) mapprimitive.c:605 (msDrawShape) mapdraw.c:1609 (msDrawVectorLayer) mapdraw.c:887 (msDrawLayer) mapdraw.c:718 (msDrawMap) mapdraw.c:432 (mapObj_draw) mapscript/java/mapscript_wrap.c:1714 (Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1draw) mapscript/java/mapscript_wrap.c:20612 crash #3: (msFreeLabelCacheSlot) mapfile.c:4068 (msFreeLabelCache) mapfile.c:4100 (msFreeMap) mapobject.c:98 (delete_mapObj) mapscript/java/mapscript_wrap.c:1619 (Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1mapObj) mapscript/java/mapscript_wrap.c:19695 crash #4: (msFreeLabelCacheSlot) mapfile.c:4068 (msFreeLabelCache) mapfile.c:4100 (msFreeMap) mapobject.c:98 (delete_mapObj) mapscript/java/mapscript_wrap.c:1619 (Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1mapObj) mapscript/java/mapscript_wrap.c:19695 -- View this message in context: http://www.nabble.com/thread-safety-tp15514019p15514019.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sim at gis-lab.info Fri Feb 15 21:38:59 2008 From: sim at gis-lab.info (Maxim Dubinin) Date: Fri, 15 Feb 2008 23:38:59 -0600 Subject: [mapserver-users] itemnquerymap output Message-ID: <19065456.20080215233859@gis-lab.info> Hello, Mapserver-users, I'm using a simple example edited to make a definition query for the map using itemnquerymap (qstring, qitem, qlayer) modifying the url. This works good, but it returns an image without using original template (navigation and stuff). I'm struggling with it, but cannot find info about how to output to the parent template. Any suggestions? I looked through archives, and googled it found a couple of similar questions, but no solution. -- Best regards, Maxim From ritesh.linux at gmail.com Fri Feb 15 22:31:19 2008 From: ritesh.linux at gmail.com (riteshambastha) Date: Fri, 15 Feb 2008 22:31:19 -0800 (PST) Subject: [MAPSERVER-USERS] loadWeb() error on Windows 2003 (MS4W package) In-Reply-To: <21114.60668.qm@web38006.mail.mud.yahoo.com> References: <21114.60668.qm@web38006.mail.mud.yahoo.com> Message-ID: <15515012.post@talk.nabble.com> Well Suresh, I just saw an error in your code. Check this in your html code: [img] Here, [img] catches the name of generated image file. This image file resides in tmp directory. So, you will have to give it a path. Something like /tmp/[img]. Play around this.. you will get your answer. Regards, Ritesh Suresh Nimbalkar wrote: > > Hi! > > I have just started my exploration in Mapserver on Windows platform with > MS4W package. I am using Bil Kropla's Mapserver book. When I worked out > the first example (of chapter 2), a simple example using mapserver in > CGI-BIN mode, I get the following error > loadWeb(): Unknown identifier. Parsing error near (c):(line 1) > I tried changing the path information (TEMPLATE, IMAGE PATH), other > parameters to ensure the simple 'Hello World' example map gets displayed, > but I could not go further. > > I am producing the source code below of the two files. > > File: hello.map > -------------------- > # This is our "Hello World" mapfile > NAME "Hello World" > SIZE 400 300 > IMAGECOLOR 249 245 186 > IMAGETYPE png > EXTENT -1.0 -1.0 1.0 1.0 > WEB > TEMPLATE "c:/ms4w/apache/htdocs/hello.html" > IMAGEPATH "c:/ms4w/apache/htdocs/tmp/" > IMAGEURL "/tmp/" > END > LAYER > STATUS default > TYPE point > FEATURE > POINTS 0.00 0.00 END > TEXT "Hello World" > END # end feature > CLASS > STYLE > COLOR 255 0 0 > END > LABEL > TYPE bitmap > END > END > END > END > > File: Hello.html > --------------------- > > MapServer Hello World > >
> > value="c:/ms4w/apache/htdocs/hello.map"> > value="c:/ms4w/apache/htdocs/tmp/"> >
> [img] > > > > Would appreciate any help on this. > > Thanks in advance. > Suresh > > > --------------------------------- > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it > now. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/loadWeb%28%29-error-on-Windows-2003-%28MS4W-package%29-tp15506112p15515012.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ritesh.linux at gmail.com Fri Feb 15 22:33:55 2008 From: ritesh.linux at gmail.com (riteshambastha) Date: Fri, 15 Feb 2008 22:33:55 -0800 (PST) Subject: [MAPSERVER-USERS] loadWeb() error on Windows 2003 (MS4W package) In-Reply-To: <21114.60668.qm@web38006.mail.mud.yahoo.com> References: <21114.60668.qm@web38006.mail.mud.yahoo.com> Message-ID: <15515013.post@talk.nabble.com> Well Suresh, I just saw an error in your code. Check this in your html code: .... [img]................ Here, [img] catches the name of generated image file. This image file resides in tmp directory. So, you will have to give it a path. Something like /tmp/[img]. Play around this.. you will get your answer. Regards, Ritesh MapServer Hello World
[img] Would appreciate any help on this. Thanks in advance. Suresh --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://www.nabble.com/loadWeb%28%29-error-on-Windows-2003-%28MS4W-package%29-tp15506112p15515013.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ritesh.linux at gmail.com Fri Feb 15 22:34:55 2008 From: ritesh.linux at gmail.com (riteshambastha) Date: Fri, 15 Feb 2008 22:34:55 -0800 (PST) Subject: [MAPSERVER-USERS] loadWeb() error on Windows 2003 (MS4W package) In-Reply-To: <21114.60668.qm@web38006.mail.mud.yahoo.com> References: <21114.60668.qm@web38006.mail.mud.yahoo.com> Message-ID: <15515015.post@talk.nabble.com> Well Suresh, I just saw an error in your code. Check this in your html code: [img] Here, [img] catches the name of generated image file. This image file resides in tmp directory. So, you will have to give it a path. Something like /tmp/[img]. Play around this.. you will get your answer. Regards, Ritesh Suresh Nimbalkar wrote: > > Hi! > > I have just started my exploration in Mapserver on Windows platform with > MS4W package. I am using Bil Kropla's Mapserver book. When I worked out > the first example (of chapter 2), a simple example using mapserver in > CGI-BIN mode, I get the following error > loadWeb(): Unknown identifier. Parsing error near (c):(line 1) > I tried changing the path information (TEMPLATE, IMAGE PATH), other > parameters to ensure the simple 'Hello World' example map gets displayed, > but I could not go further. > > I am producing the source code below of the two files. > > File: hello.map > -------------------- > # This is our "Hello World" mapfile > NAME "Hello World" > SIZE 400 300 > IMAGECOLOR 249 245 186 > IMAGETYPE png > EXTENT -1.0 -1.0 1.0 1.0 > WEB > TEMPLATE "c:/ms4w/apache/htdocs/hello.html" > IMAGEPATH "c:/ms4w/apache/htdocs/tmp/" > IMAGEURL "/tmp/" > END > LAYER > STATUS default > TYPE point > FEATURE > POINTS 0.00 0.00 END > TEXT "Hello World" > END # end feature > CLASS > STYLE > COLOR 255 0 0 > END > LABEL > TYPE bitmap > END > END > END > END > > File: Hello.html > --------------------- > > MapServer Hello World > >
> > value="c:/ms4w/apache/htdocs/hello.map"> > value="c:/ms4w/apache/htdocs/tmp/"> >
> [img] > > > > Would appreciate any help on this. > > Thanks in advance. > Suresh > > > --------------------------------- > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it > now. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/loadWeb%28%29-error-on-Windows-2003-%28MS4W-package%29-tp15506112p15515015.html Sent from the Mapserver - User mailing list archive at Nabble.com. From richard.greenwood at gmail.com Sat Feb 16 14:26:27 2008 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Sat, 16 Feb 2008 15:26:27 -0700 Subject: [mapserver-users] itemnquerymap output In-Reply-To: <19065456.20080215233859@gis-lab.info> References: <19065456.20080215233859@gis-lab.info> Message-ID: On Feb 15, 2008 10:38 PM, Maxim Dubinin wrote: > Hello, Mapserver-users, > > I'm using a simple example edited to make a definition query for > the map using itemnquerymap (qstring, qitem, qlayer) modifying the url. This works good, but it returns an image > without using original template (navigation and stuff). I'm > struggling with it, but cannot find info about how to output to the > parent template. Any suggestions? > Your query layer needs a TEMPLATE set to the 'parent template'. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From gregor at hostgis.com Sat Feb 16 22:22:16 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Sat, 16 Feb 2008 23:22:16 -0700 Subject: [mapserver-users] Off-Topic: Contour lines from depth CSV? Message-ID: <47B7D298.3070900@hostgis.com> Hey, all, a how-to question. I admit that it's off-topic, but y'all being some of the smartest folks I know, it's worth asking. We have bathymetry models in CSV format: lon, lat, depth. Does anyone know of software, preferably Unix command-line, for assembling contour-polygons from this? -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From sim at gis-lab.info Sat Feb 16 22:29:22 2008 From: sim at gis-lab.info (Maxim Dubinin) Date: Sun, 17 Feb 2008 00:29:22 -0600 Subject: [mapserver-users] Off-Topic: Contour lines from depth CSV? In-Reply-To: <47B7D298.3070900@hostgis.com> References: <47B7D298.3070900@hostgis.com> Message-ID: <264736529.20080217002922@gis-lab.info> try GMT http://gmt.soest.hawaii.edu/ -- Maxim http://gis-lab.info ?? ?????? 17 ??????? 2008 ?., 0:22:16: GM> Hey, all, a how-to question. I admit that it's off-topic, but y'all GM> being some of the smartest folks I know, it's worth asking. GM> We have bathymetry models in CSV format: lon, lat, depth. GM> Does anyone know of software, preferably Unix command-line, for GM> assembling contour-polygons from this? From gregor at hostgis.com Sat Feb 16 22:35:20 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Sat, 16 Feb 2008 23:35:20 -0700 Subject: [mapserver-users] Off-Topic: Contour lines from depth CSV? In-Reply-To: <264736529.20080217002922@gis-lab.info> References: <47B7D298.3070900@hostgis.com> <264736529.20080217002922@gis-lab.info> Message-ID: <47B7D5A8.10803@hostgis.com> Maxim Dubinin wrote: > try GMT http://gmt.soest.hawaii.edu/ Perfect! Thanks a lot, Maxim. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From jeffmckenna at gmail.com Sun Feb 17 08:01:16 2008 From: jeffmckenna at gmail.com (Jeff McKenna) Date: Sun, 17 Feb 2008 11:01:16 -0500 Subject: [mapserver-users] loadWeb() error on Windows 2003 (MS4W package) In-Reply-To: <37022.192.168.1.71.1203263807.webmail@192.168.1.71> References: <37022.192.168.1.71.1203263807.webmail@192.168.1.71> Message-ID: There were changes in MapServer 5.0 that affects the way certain CGI variables are passed, which must be affecting the example you are trying. For a working example in MS4W of CGI MapServer, use the "MapServer Itasca Demo Application" ( http://www.maptools.org/ms4w/index.phtml?page=downloads.html). -jeff > > I have just started my exploration in Mapserver on Windows platform with > MS4W package. I am using Bil Kropla's Mapserver book. When I worked out the > first example (of chapter 2), a simple example using mapserver in CGI-BIN > mode, I get the following error > loadWeb(): Unknown identifier. Parsing error near (c):(line 1) > I tried changing the path information (TEMPLATE, IMAGE PATH), other > parameters to ensure the simple 'Hello World' example map gets displayed, > but I could not go further. > > I am producing the source code below of the two files. > > File: hello.map > -------------------- > # This is our "Hello World" mapfile > NAME "Hello World" > SIZE 400 300 > IMAGECOLOR 249 245 186 > IMAGETYPE png > EXTENT -1.0 -1.0 1.0 1.0 > WEB > TEMPLATE "c:/ms4w/apache/htdocs/hello.html" > IMAGEPATH "c:/ms4w/apache/htdocs/tmp/" > IMAGEURL "/tmp/" > END > LAYER > STATUS default > TYPE point > FEATURE > POINTS 0.00 0.00 END > TEXT "Hello World" > END # end feature > CLASS > STYLE > COLOR 255 0 0 > END > LABEL > TYPE bitmap > END > END > END > END > > File: Hello.html > --------------------- > > MapServer Hello World > >
> > value="c:/ms4w/apache/htdocs/hello.map"> > value="c:/ms4w/apache/htdocs/tmp/"> >
> > > > > Would appreciate any help on this. > > Thanks in advance. > Suresh > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sim at gis-lab.info Sun Feb 17 20:53:29 2008 From: sim at gis-lab.info (Maxim Dubinin) Date: Sun, 17 Feb 2008 22:53:29 -0600 Subject: [mapserver-users] itemnquerymap output In-Reply-To: References: <19065456.20080215233859@gis-lab.info> Message-ID: <394398782.20080217225329@gis-lab.info> Thanks for suggestion, it was actually set. The strange thing is, Mapserver doesn't care about what I put in there, as long as LAYER\TEMPLATE "anything" exists. It could be any text as long as its under LAYER\TEMPLATE, even if the file doesn't exist. If I don't provide it, it gives me "msQueryByAttributes(): Query error. Requested layer has no templates defined so is not queryable." error. Is this template really for attributive results? -- Maxim mailto:sim at gis-lab.info ?? ?????? 16 ??????? 2008 ?., 16:26:27: RG> On Feb 15, 2008 10:38 PM, Maxim Dubinin wrote: >> Hello, Mapserver-users, >> >> I'm using a simple example edited to make a definition query for >> the map using itemnquerymap (qstring, qitem, qlayer) modifying the url. This works good, but it returns an image >> without using original template (navigation and stuff). I'm >> struggling with it, but cannot find info about how to output to the >> parent template. Any suggestions? >> RG> Your query layer needs a TEMPLATE set to the 'parent template'. From laura.poggio at gmail.com Mon Feb 18 01:06:34 2008 From: laura.poggio at gmail.com (Laura Poggio) Date: Mon, 18 Feb 2008 10:06:34 +0100 Subject: [mapserver-users] suggestion for CMS Message-ID: Dear list, I am looking for a freeware / opensource CMS that could be used with mapserver and p.mapper and PHP. The features should be rather basic, no blog, no wiki is needed, just user management. In practice I would like to set up a web site with three main sections: 1) general section, public available 2) web-GIS, mapserver + p.mapper generated maps available only to registered users. 3) database query and various modifications My first idea was to use a normal CMS and put the link to the map part in an area accessible only to registered users. But I am not sure this is the best way. And in case it is a possible solution, which CMS would be appropriate? Any suggestions would be greatly appreciated. Thanks in advance. Laura -------------- next part -------------- An HTML attachment was scrubbed... URL: From lester at lsces.co.uk Mon Feb 18 04:10:03 2008 From: lester at lsces.co.uk (Lester Caine) Date: Mon, 18 Feb 2008 12:10:03 +0000 Subject: [mapserver-users] suggestion for CMS In-Reply-To: References: Message-ID: <47B9759B.9020007@lsces.co.uk> Laura Poggio wrote: > Dear list, > I am looking for a freeware / opensource CMS that could be used with > mapserver and p.mapper and PHP. The features should be rather basic, no > blog, no wiki is needed, just user management. > In practice I would like to set up a web site with three main sections: > 1) general section, public available > 2) web-GIS, mapserver + p.mapper generated maps available only to > registered users. > 3) database query and various modifications > > My first idea was to use a normal CMS and put the link to the map part > in an area accessible only to registered users. But I am not sure this > is the best way. And in case it is a possible solution, which CMS would > be appropriate? > > Any suggestions would be greatly appreciated. Thanks in advance. I've had a mapper module in development for bitweaver for some time, and it is working nicely as an optional package. Needs a little work on the mapserver side to set up new maps, but lack of time has prevented any more progress. bitweaver provides a very nice user management system, and you simply add those packages such as wiki and blog only if you want them. A number of other options it 'all or nothing', but bitweaver was a spin off from tikiwiki some years ago byt those of us who wanted a more administrator friendly setup :) http://home.lsces.co.uk/lsces/mapper/display_map.php http://www.bitweaver.org/ ( mapper is a development module but can be downloaded from sourceforge ) -- Lester Caine - G8HFL ----------------------------- Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact L.S.Caine Electronic Services - http://home.lsces.co.uk MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Firebird - http://www.firebirdsql.org/index.php From mlinden at zeelandnet.nl Mon Feb 18 04:38:29 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Mon, 18 Feb 2008 13:38:29 +0100 Subject: [mapserver-users] WFS gml:null Message-ID: <47B97C45.2080803@zeelandnet.nl> Hello list! I have been surfing the list all morning looking for a solution on why my mapserver is returning a gml:null. Couldn't find any documentation. The problem: I do a WFS request on a mapfile that contains a esri shapefile. The layer I request has a different SRS than the main map. http://www.myserver.org/cgi-bin/mapserv.exe?map=awfsenabled.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getFeature&TYPENAME=percelen it returns missing Here is my layer definition. The problem is whatever I do, whether I set wfs_extent or not, it keeps returning gml:null LAYER NAME 'percelen' TYPE POLYGON DEBUG ON TOLERANCE 1 DUMP TRUE TEMPLATE 'ttt' DATA '..\mapdata\rda\percelen_laag_poly_merged.shp' METADATA "ows_title" "percelen" "ows_srs" "EPSG:28992" "gml_featureid" "id" ##REQUIRED "wms_feature_info_mime_type" "text/html" "ows_feature_info_mime_type" "text/html" "wms_include_items" "NEWFIELD2,NEWFIELD1,NEWFIELD3,HECTARES,PERIMETER,AREA" "gml_include_items" "NEWFIELD2,NEWFIELD1,NEWFIELD3,HECTARES,PERIMETER,AREA" "gml_NEWFIELD2_alias" "Kadastraleaanduiding" "gml_NEWFIELD3_alias" "Adres" "gml_NEWFIELD1_alias" "Eigenaar" "gml_HECTARES_alias" "Oppervlakte(Ha)" "gml_AREA_alias" "Oppervlakte(m)" "gml_PERIMETER_alias" "Omtrek(m)" END STATUS ON #TRANSPARENCY 100 PROJECTION "init=epsg:28992" END CLASS NAME '' STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 180 208 208 #COLOR 180 208 208 END END END From bartvde at osgis.nl Mon Feb 18 04:50:43 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Mon, 18 Feb 2008 13:50:43 +0100 Subject: [mapserver-users] WFS gml:null Message-ID: <279e1523fa925be213a0afb563ab0aae@145.50.39.11> What happens if you add a BBOX filter to your request? You probably need to specify the coordinates in the SRS of your LAYER. The BBOX filter defaults to the Map's Extent which could be why it's returning 0 features since of the projection difference. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Milo van der Linden Naar: mapserver-users Onderwerp: [mapserver-users] WFS gml:null Datum: 18/02/08 10:39 > Hello list! > > I have been surfing the list all morning looking for a solution on why > my mapserver is returning a gml:null. > > Couldn't find any documentation. > > The problem: > > I do a WFS request on a mapfile that contains a esri shapefile. The > layer I request has a different SRS than the main map. > > http://www.myserver.org/cgi-bin/mapserv.exe?map=awfsenabled.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getFeature&TYPENAME=percelen > > it returns > > <?xml version='1.0' encoding="ISO-8859-1" ?> > <wfs:FeatureCollection > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd > http://mapserver.gis.umn.edu/mapserver http://www.myserver.org/cgi-bin/mapserv.exe?map=awfsenabled.map&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=percelen&amp;OUTPUTFORMAT=XMLSCHEMA"> > <gml:boundedBy> > <gml:null>missing</gml:null> > </gml:boundedBy> > </wfs:FeatureCollection> > > > > Here is my layer definition. > > The problem is whatever I do, whether I set wfs_extent or not, it keeps > returning gml:null > > LAYER > NAME 'percelen' > TYPE POLYGON > DEBUG ON > TOLERANCE 1 > DUMP TRUE > TEMPLATE 'ttt' > DATA '..mapdatardapercelen_laag_poly_merged.shp' > METADATA > "ows_title" "percelen" > "ows_srs" "EPSG:28992" > "gml_featureid" "id" ##REQUIRED > "wms_feature_info_mime_type" "text/html" > "ows_feature_info_mime_type" "text/html" > "wms_include_items" > "NEWFIELD2,NEWFIELD1,NEWFIELD3,HECTARES,PERIMETER,AREA" > "gml_include_items" > "NEWFIELD2,NEWFIELD1,NEWFIELD3,HECTARES,PERIMETER,AREA" > "gml_NEWFIELD2_alias" "Kadastraleaanduiding" > "gml_NEWFIELD3_alias" "Adres" > "gml_NEWFIELD1_alias" "Eigenaar" > "gml_HECTARES_alias" "Oppervlakte(Ha)" > "gml_AREA_alias" "Oppervlakte(m)" > "gml_PERIMETER_alias" "Omtrek(m)" > END > STATUS ON > #TRANSPARENCY 100 > PROJECTION > "init=epsg:28992" > END > CLASS > NAME '' > STYLE > SYMBOL 0 > SIZE 6 > OUTLINECOLOR 180 208 208 > #COLOR 180 208 208 > END > END > END > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From richard.greenwood at gmail.com Mon Feb 18 06:06:58 2008 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Mon, 18 Feb 2008 07:06:58 -0700 Subject: [mapserver-users] itemnquerymap output In-Reply-To: <394398782.20080217225329@gis-lab.info> References: <19065456.20080215233859@gis-lab.info> <394398782.20080217225329@gis-lab.info> Message-ID: On Feb 17, 2008 9:53 PM, Maxim Dubinin wrote: > Thanks for suggestion, it was actually set. The strange thing is, > Mapserver doesn't care about what I put in there, as long as > LAYER\TEMPLATE "anything" exists. It could be any text as long > as its under LAYER\TEMPLATE, even if the file doesn't exist. > > If I don't provide it, it gives me "msQueryByAttributes(): Query error. Requested > layer has no templates defined so is not queryable." error. > > Is this template really for attributive results? The template is for either attribute or spatial (map) display. What gets displayed depends on the template. Maybe mapserver is not finding your template file? Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From mlinden at zeelandnet.nl Mon Feb 18 07:23:32 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Mon, 18 Feb 2008 16:23:32 +0100 Subject: [mapserver-users] WFS gml:null In-Reply-To: <279e1523fa925be213a0afb563ab0aae@145.50.39.11> References: <279e1523fa925be213a0afb563ab0aae@145.50.39.11> Message-ID: <47B9A2F4.4010309@zeelandnet.nl> Thank you Bart for the response. I tried BBOX'n my request. I tried both: - SRS=epsg:4326&bbox=-180,-90,-180,-90 and - - SRS=epsg:28992&bbox=0,300000,300000,600000 But none of that did the trick.. Bart van den Eijnden (OSGIS) schreef: > What happens if you add a BBOX filter to your request? You probably need to > specify the coordinates in the SRS of your LAYER. > > The BBOX filter defaults to the Map's Extent which could be why it's > returning 0 features since of the projection difference. > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: Milo van der Linden > Naar: mapserver-users > Onderwerp: [mapserver-users] WFS gml:null > Datum: 18/02/08 10:39 > > >> Hello list! >> >> I have been surfing the list all morning looking for a solution on why >> my mapserver is returning a gml:null. >> >> Couldn't find any documentation. >> >> The problem: >> >> I do a WFS request on a mapfile that contains a esri shapefile. The >> layer I request has a different SRS than the main map. >> >> >> > http://www.myserver.org/cgi-bin/mapserv.exe?map=awfsenabled.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getFeature&TYPENAME=percelen > >> it returns >> >> <?xml version='1.0' encoding="ISO-8859-1" ?> >> <wfs:FeatureCollection >> xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >> xmlns:wfs="http://www.opengis.net/wfs" >> xmlns:gml="http://www.opengis.net/gml" >> xmlns:ogc="http://www.opengis.net/ogc" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.opengis.net/wfs >> > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd > >> http://mapserver.gis.umn.edu/mapserver >> > http://www.myserver.org/cgi-bin/mapserv.exe?map=awfsenabled.map&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=percelen&amp;OUTPUTFORMAT=XMLSCHEMA"> > >> <gml:boundedBy> >> <gml:null>missing</gml:null> >> </gml:boundedBy> >> </wfs:FeatureCollection> >> >> >> >> Here is my layer definition. >> >> The problem is whatever I do, whether I set wfs_extent or not, it keeps >> returning gml:null >> >> LAYER >> NAME 'percelen' >> TYPE POLYGON >> DEBUG ON >> TOLERANCE 1 >> DUMP TRUE >> TEMPLATE 'ttt' >> DATA '..mapdatardapercelen_laag_poly_merged.shp' >> METADATA >> "ows_title" "percelen" >> "ows_srs" "EPSG:28992" >> "gml_featureid" "id" ##REQUIRED >> "wms_feature_info_mime_type" "text/html" >> "ows_feature_info_mime_type" "text/html" >> "wms_include_items" >> "NEWFIELD2,NEWFIELD1,NEWFIELD3,HECTARES,PERIMETER,AREA" >> "gml_include_items" >> "NEWFIELD2,NEWFIELD1,NEWFIELD3,HECTARES,PERIMETER,AREA" >> "gml_NEWFIELD2_alias" "Kadastraleaanduiding" >> "gml_NEWFIELD3_alias" "Adres" >> "gml_NEWFIELD1_alias" "Eigenaar" >> "gml_HECTARES_alias" "Oppervlakte(Ha)" >> "gml_AREA_alias" "Oppervlakte(m)" >> "gml_PERIMETER_alias" "Omtrek(m)" >> END >> STATUS ON >> #TRANSPARENCY 100 >> PROJECTION >> "init=epsg:28992" >> END >> CLASS >> NAME '' >> STYLE >> SYMBOL 0 >> SIZE 6 >> OUTLINECOLOR 180 208 208 >> #COLOR 180 208 208 >> END >> END >> END >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > > > > > From bruno_gendron at yahoo.com Mon Feb 18 07:50:14 2008 From: bruno_gendron at yahoo.com (Bruno Gendron - Consultant) Date: Mon, 18 Feb 2008 10:50:14 -0500 Subject: [mapserver-users] ITEMNQUERYMAP problem... Message-ID: <47B9A936.7060001@yahoo.com> Hi all, We have an Mapserver-Google mashup application with an OpenLayers user-interface... A problem arises when a user does a ITEMNQUERYMAP request on a feature that is outside the map extent. For example: The first request below works perfectly: the map gets drawn, with the "searched" feature highlited in red. http://www.socioscope.qc.ca/wms/?map=nbcommalim_sr_01.map&layers=all&map_imagetype=png&QLAYER=nbcommalim_sr_01&QITEM=SRIDU&QSTRING=462032800&MODE=ITEMNQUERYMAP&mapext=-8244344+5679271+-8160264+5740420&map_size=840+675 The second request below DOES NOT WORK, because the "searched" feature is OUTSIDE the mapextent. The following message then gets returned : "msQueryByAttributes(): Search returned no results. No matching record(s) found." http://www.socioscope.qc.ca/wms/?map=nbcommalim_sr_01.map&layers=all&map_imagetype=png&QLAYER=nbcommalim_sr_01&QITEM=SRIDU&QSTRING=462032800&MODE=ITEMNQUERYMAP&mapext=-8193972+5717126+-8161869+5742924&map_size=840+675 WHY? Couldn't Mapserver simply return a map even if the query result is empty? Am I missing something? Thanks! =============================================== Bruno Gendron Consultant en TI et en g?omatique / IT and GIS Consultant 685 40?me avenue Lachine, Qu?bec Canada H8T 2G2 T?l : +1 514 634 7024 From sim at gis-lab.info Mon Feb 18 08:35:10 2008 From: sim at gis-lab.info (Maxim Dubinin) Date: Mon, 18 Feb 2008 10:35:10 -0600 Subject: [mapserver-users] itemnquerymap output In-Reply-To: References: <19065456.20080215233859@gis-lab.info> <394398782.20080217225329@gis-lab.info> Message-ID: <17668552.20080218103510@gis-lab.info> Here is a portion of my map file. As you can see, I'm trying to use the same template.html to return result of the query back into it. It works under WEB when it stats, but seems like ignored under LAYER that is being queried (qlayer=states_poly,qitem=State). Well not exactly ignored, if I don't put anything in there it gives an error message. ************************************************************ MAP IMAGETYPE PNG EXTENT -97.238976 41.619778 -82.122902 49.385620 SIZE 400 300 SHAPEPATH "defquery/" IMAGECOLOR 255 255 255 WEB TEMPLATE "template.html" IMAGEPATH "/tmp/" IMAGEURL "/tmp/" END QUERYMAP STATUS ON SIZE 400 300 STYLE SELECTED END LAYER # States polygon layer begins here NAME states_poly DATA states_ugl STATUS DEFAULT TYPE POLYGON CLASSITEM "CLASS" TEMPLATE "template.html" METADATA qstring_validation_pattern '.' END CLASS NAME 'States' ************************************************************ -- Maxim ?? ?????? 18 ??????? 2008 ?., 8:06:58: RG> On Feb 17, 2008 9:53 PM, Maxim Dubinin wrote: >> Thanks for suggestion, it was actually set. The strange thing is, >> Mapserver doesn't care about what I put in there, as long as >> LAYER\TEMPLATE "anything" exists. It could be any text as long >> as its under LAYER\TEMPLATE, even if the file doesn't exist. >> >> If I don't provide it, it gives me "msQueryByAttributes(): Query error. Requested >> layer has no templates defined so is not queryable." error. >> >> Is this template really for attributive results? RG> The template is for either attribute or spatial (map) display. What RG> gets displayed depends on the template. Maybe mapserver is not finding RG> your template file? RG> Rich From hanscastorp76 at yahoo.es Mon Feb 18 09:01:44 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Mon, 18 Feb 2008 18:01:44 +0100 Subject: [mapserver-users] AGG_Q + raster problem Message-ID: <00b901c8724f$f250e5f0$6501a8c0@signo3> Hi to all, I?m trying to publish a cartography using both vectorial and raster layers. I?m using mapserver 5 and agg_q as output format. There is no problem about vectorial files (shapefiles): all work fine. The only problem I?m having is trying to publish some raster stuff: an aerial photo (.geotiff) and a digital terrain model (.ecw). I?m not capable to make the output showing real colours; there is an example attached to this mail (an aerial photo). My mapfile looks in this way: LAYER NAME "MDT" STATUS DEFAULT GROUP "MDT" TYPE raster DATA "mdt.tif" CLASS MINSCALE 15000 END END LAYER NAME "ORTOFOTO" STATUS DEFAULT GROUP "ORTOFOTO" TYPE raster DATA "ortofoto.ecw" CLASS MAXSCALE 15000 END END What I have to do to solve this? Thanks in advance to everyone. Hans Castorp No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: 18/02/2008 5:50 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: 18/02/2008 5:50 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: 18/02/2008 5:50 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: example_2.gif Type: image/gif Size: 11087 bytes Desc: not available URL: From bfraser at geoanalytic.com Mon Feb 18 09:16:42 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 18 Feb 2008 10:16:42 -0700 (Mountain Standard Time) Subject: [mapserver-users] AGG_Q + raster problem In-Reply-To: <00b901c8724f$f250e5f0$6501a8c0@signo3> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> Message-ID: <.68.144.5.189.1203355002.squirrel@68.144.5.189> Hans, GIF supports only 256 colors. Use PNG (or JPG) for an output format. Brent Fraser > Hi to all, > > > > I?m trying to publish a cartography using both vectorial and raster > layers. > I?m using mapserver 5 and agg_q as output format. There is no problem > about > vectorial files (shapefiles): all work fine. > > The only problem I?m having is trying to publish some raster stuff: an > aerial photo (.geotiff) and a digital terrain model (.ecw). I?m not > capable > to make the output showing real colours; there is an example attached to > this mail (an aerial photo). > > > > My mapfile looks in this way: > > > > LAYER > NAME "MDT" > STATUS DEFAULT > GROUP "MDT" > TYPE raster > DATA "mdt.tif" > CLASS > MINSCALE 15000 > END > END > > LAYER > NAME "ORTOFOTO" > STATUS DEFAULT > GROUP "ORTOFOTO" > TYPE raster > DATA "ortofoto.ecw" > CLASS > MAXSCALE 15000 > END > END > > > > What I have to do to solve this? > > > > Thanks in advance to everyone. > > > > > > Hans Castorp From hanscastorp76 at yahoo.es Mon Feb 18 09:48:23 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Mon, 18 Feb 2008 18:48:23 +0100 Subject: [mapserver-users] AGG_Q + raster problem In-Reply-To: <.68.144.5.189.1203355002.squirrel@68.144.5.189> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> Message-ID: <00c501c87256$764e3550$6501a8c0@signo3> Thanks Brent, but there is a mistake, the example I attached is not the mapservers original output: I have prepared it and give .gif extensi?n. This is the way I configure my output: OUTPUTFORMAT NAME 'AGG_Q' DRIVER AGG/PNG IMAGEMODE RGBA FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=255" END Thanks in advance. -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: lunes, 18 de febrero de 2008 18:17 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, GIF supports only 256 colors. Use PNG (or JPG) for an output format. Brent Fraser > Hi to all, > > > > I?m trying to publish a cartography using both vectorial and raster > layers. > I?m using mapserver 5 and agg_q as output format. There is no problem > about > vectorial files (shapefiles): all work fine. > > The only problem I?m having is trying to publish some raster stuff: an > aerial photo (.geotiff) and a digital terrain model (.ecw). I?m not > capable > to make the output showing real colours; there is an example attached to > this mail (an aerial photo). > > > > My mapfile looks in this way: > > > > LAYER > NAME "MDT" > STATUS DEFAULT > GROUP "MDT" > TYPE raster > DATA "mdt.tif" > CLASS > MINSCALE 15000 > END > END > > LAYER > NAME "ORTOFOTO" > STATUS DEFAULT > GROUP "ORTOFOTO" > TYPE raster > DATA "ortofoto.ecw" > CLASS > MAXSCALE 15000 > END > END > > > > What I have to do to solve this? > > > > Thanks in advance to everyone. > > > > > > Hans Castorp No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: 18/02/2008 5:50 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: 18/02/2008 5:50 From richard.greenwood at gmail.com Mon Feb 18 09:53:24 2008 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Mon, 18 Feb 2008 10:53:24 -0700 Subject: [mapserver-users] itemnquerymap output In-Reply-To: <17668552.20080218103510@gis-lab.info> References: <19065456.20080215233859@gis-lab.info> <394398782.20080217225329@gis-lab.info> <17668552.20080218103510@gis-lab.info> Message-ID: That all looks good to me. is template.html in the same directory as your map file? Rich On Feb 18, 2008 9:35 AM, Maxim Dubinin wrote: > Here is a portion of my map file. As you can see, I'm trying to use > the same template.html to return result of the query back into it. It > works under WEB when it stats, but seems like ignored > under LAYER that is being queried (qlayer=states_poly,qitem=State). > > Well not exactly ignored, if I don't put anything in there it gives > an error message. > > > ************************************************************ > MAP > IMAGETYPE PNG > EXTENT -97.238976 41.619778 -82.122902 49.385620 > SIZE 400 300 > SHAPEPATH "defquery/" > IMAGECOLOR 255 255 255 > > WEB > TEMPLATE "template.html" > IMAGEPATH "/tmp/" > IMAGEURL "/tmp/" > END > > QUERYMAP > STATUS ON > SIZE 400 300 > STYLE SELECTED > END > > LAYER # States polygon layer begins here > NAME states_poly > DATA states_ugl > STATUS DEFAULT > TYPE POLYGON > > CLASSITEM "CLASS" > TEMPLATE "template.html" > METADATA > qstring_validation_pattern '.' > END > CLASS > NAME 'States' > ************************************************************ > > -- > Maxim > > ?? ?????? 18 ??????? 2008 ?., 8:06:58: > > RG> On Feb 17, 2008 9:53 PM, Maxim Dubinin wrote: > >> Thanks for suggestion, it was actually set. The strange thing is, > >> Mapserver doesn't care about what I put in there, as long as > >> LAYER\TEMPLATE "anything" exists. It could be any text as long > >> as its under LAYER\TEMPLATE, even if the file doesn't exist. > >> > >> If I don't provide it, it gives me "msQueryByAttributes(): Query error. Requested > >> layer has no templates defined so is not queryable." error. > >> > >> Is this template really for attributive results? > > RG> The template is for either attribute or spatial (map) display. What > RG> gets displayed depends on the template. Maybe mapserver is not finding > RG> your template file? > > RG> Rich > > > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From guillaume.sueur at neogeo-online.net Mon Feb 18 09:59:22 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Mon, 18 Feb 2008 18:59:22 +0100 Subject: [mapserver-users] AGG_Q + raster problem In-Reply-To: <00c501c87256$764e3550$6501a8c0@signo3> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> Message-ID: <47B9C77A.2060100@neogeo-online.net> quantize_colors=255 is maybe the reason why your colors are reindexed on a 256 colors palette. Hans Castorp a ?crit : > Thanks Brent, but there is a mistake, the example I attached is not the > mapservers original output: I have prepared it and give .gif extensi?n. > > This is the way I configure my output: > > OUTPUTFORMAT > NAME 'AGG_Q' > DRIVER AGG/PNG > IMAGEMODE RGBA > FORMATOPTION "TRANSPARENT=ON" > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_DITHER=OFF" > FORMATOPTION "QUANTIZE_COLORS=255" > END > > Thanks in advance. > > > > > -----Mensaje original----- > De: Brent Fraser [mailto:bfraser at geoanalytic.com] > Enviado el: lunes, 18 de febrero de 2008 18:17 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > Hans, > > GIF supports only 256 colors. Use PNG (or JPG) for an output format. > > Brent Fraser > >> Hi to all, >> >> >> >> I?m trying to publish a cartography using both vectorial and raster >> layers. >> I?m using mapserver 5 and agg_q as output format. There is no problem >> about >> vectorial files (shapefiles): all work fine. >> >> The only problem I?m having is trying to publish some raster stuff: an >> aerial photo (.geotiff) and a digital terrain model (.ecw). I?m not >> capable >> to make the output showing real colours; there is an example attached to >> this mail (an aerial photo). >> >> >> >> My mapfile looks in this way: >> >> >> >> LAYER >> NAME "MDT" >> STATUS DEFAULT >> GROUP "MDT" >> TYPE raster >> DATA "mdt.tif" >> CLASS >> MINSCALE 15000 >> END >> END >> >> LAYER >> NAME "ORTOFOTO" >> STATUS DEFAULT >> GROUP "ORTOFOTO" >> TYPE raster >> DATA "ortofoto.ecw" >> CLASS >> MAXSCALE 15000 >> END >> END >> >> >> >> What I have to do to solve this? >> >> >> >> Thanks in advance to everyone. >> >> >> >> >> >> Hans Castorp > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: 18/02/2008 > 5:50 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: 18/02/2008 > 5:50 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From guillaume.sueur at neogeo-online.net Mon Feb 18 10:04:28 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Mon, 18 Feb 2008 19:04:28 +0100 Subject: [mapserver-users] AGG_Q + raster problem In-Reply-To: <00cc01c87258$7b43ab60$6501a8c0@signo3> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> Message-ID: <47B9C8AC.1070202@neogeo-online.net> what's the result in standard AGG mode ? Hans Castorp a ?crit : > The result is the same with or without this line... > > > -----Mensaje original----- > De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] > Enviado el: lunes, 18 de febrero de 2008 18:59 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > quantize_colors=255 is maybe the reason why your colors are reindexed on > a 256 colors palette. > > Hans Castorp a ?crit : >> Thanks Brent, but there is a mistake, the example I attached is not the >> mapservers original output: I have prepared it and give .gif extensi?n. >> >> This is the way I configure my output: >> >> OUTPUTFORMAT >> NAME 'AGG_Q' >> DRIVER AGG/PNG >> IMAGEMODE RGBA >> FORMATOPTION "TRANSPARENT=ON" >> FORMATOPTION "QUANTIZE_FORCE=ON" >> FORMATOPTION "QUANTIZE_DITHER=OFF" >> FORMATOPTION "QUANTIZE_COLORS=255" >> END >> >> Thanks in advance. >> >> >> >> >> -----Mensaje original----- >> De: Brent Fraser [mailto:bfraser at geoanalytic.com] >> Enviado el: lunes, 18 de febrero de 2008 18:17 >> Para: Hans Castorp >> CC: mapserver-users at lists.osgeo.org >> Asunto: Re: [mapserver-users] AGG_Q + raster problem >> >> Hans, >> >> GIF supports only 256 colors. Use PNG (or JPG) for an output format. >> >> Brent Fraser >> >>> Hi to all, >>> >>> >>> >>> I?m trying to publish a cartography using both vectorial and raster >>> layers. >>> I?m using mapserver 5 and agg_q as output format. There is no problem >>> about >>> vectorial files (shapefiles): all work fine. >>> >>> The only problem I?m having is trying to publish some raster stuff: an >>> aerial photo (.geotiff) and a digital terrain model (.ecw). I?m not >>> capable >>> to make the output showing real colours; there is an example attached to >>> this mail (an aerial photo). >>> >>> >>> >>> My mapfile looks in this way: >>> >>> >>> >>> LAYER >>> NAME "MDT" >>> STATUS DEFAULT >>> GROUP "MDT" >>> TYPE raster >>> DATA "mdt.tif" >>> CLASS >>> MINSCALE 15000 >>> END >>> END >>> >>> LAYER >>> NAME "ORTOFOTO" >>> STATUS DEFAULT >>> GROUP "ORTOFOTO" >>> TYPE raster >>> DATA "ortofoto.ecw" >>> CLASS >>> MAXSCALE 15000 >>> END >>> END >>> >>> >>> >>> What I have to do to solve this? >>> >>> >>> >>> Thanks in advance to everyone. >>> >>> >>> >>> >>> >>> Hans Castorp >> >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 >> 5:50 >> >> >> No virus found in this outgoing message. >> Checked by AVG Free Edition. >> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 >> 5:50 >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From hanscastorp76 at yahoo.es Mon Feb 18 10:02:50 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Mon, 18 Feb 2008 19:02:50 +0100 Subject: [mapserver-users] AGG_Q + raster problem In-Reply-To: <47B9C77A.2060100@neogeo-online.net> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> Message-ID: <00cc01c87258$7b43ab60$6501a8c0@signo3> The result is the same with or without this line... -----Mensaje original----- De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] Enviado el: lunes, 18 de febrero de 2008 18:59 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem quantize_colors=255 is maybe the reason why your colors are reindexed on a 256 colors palette. Hans Castorp a ?crit : > Thanks Brent, but there is a mistake, the example I attached is not the > mapservers original output: I have prepared it and give .gif extensi?n. > > This is the way I configure my output: > > OUTPUTFORMAT > NAME 'AGG_Q' > DRIVER AGG/PNG > IMAGEMODE RGBA > FORMATOPTION "TRANSPARENT=ON" > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_DITHER=OFF" > FORMATOPTION "QUANTIZE_COLORS=255" > END > > Thanks in advance. > > > > > -----Mensaje original----- > De: Brent Fraser [mailto:bfraser at geoanalytic.com] > Enviado el: lunes, 18 de febrero de 2008 18:17 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > Hans, > > GIF supports only 256 colors. Use PNG (or JPG) for an output format. > > Brent Fraser > >> Hi to all, >> >> >> >> I?m trying to publish a cartography using both vectorial and raster >> layers. >> I?m using mapserver 5 and agg_q as output format. There is no problem >> about >> vectorial files (shapefiles): all work fine. >> >> The only problem I?m having is trying to publish some raster stuff: an >> aerial photo (.geotiff) and a digital terrain model (.ecw). I?m not >> capable >> to make the output showing real colours; there is an example attached to >> this mail (an aerial photo). >> >> >> >> My mapfile looks in this way: >> >> >> >> LAYER >> NAME "MDT" >> STATUS DEFAULT >> GROUP "MDT" >> TYPE raster >> DATA "mdt.tif" >> CLASS >> MINSCALE 15000 >> END >> END >> >> LAYER >> NAME "ORTOFOTO" >> STATUS DEFAULT >> GROUP "ORTOFOTO" >> TYPE raster >> DATA "ortofoto.ecw" >> CLASS >> MAXSCALE 15000 >> END >> END >> >> >> >> What I have to do to solve this? >> >> >> >> Thanks in advance to everyone. >> >> >> >> >> >> Hans Castorp > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: 18/02/2008 > 5:50 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: 18/02/2008 > 5:50 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: 18/02/2008 5:50 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: 18/02/2008 5:50 From hanscastorp76 at yahoo.es Mon Feb 18 10:10:54 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Mon, 18 Feb 2008 19:10:54 +0100 Subject: [mapserver-users] AGG_Q + raster problem In-Reply-To: <47B9C8AC.1070202@neogeo-online.net> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@neogeo-online.net> Message-ID: <00cd01c87259$9b979ec0$6501a8c0@signo3> This, by example -----Mensaje original----- De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] Enviado el: lunes, 18 de febrero de 2008 19:04 Para: Hans Castorp; mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem what's the result in standard AGG mode ? Hans Castorp a ?crit : > The result is the same with or without this line... > > > -----Mensaje original----- > De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] > Enviado el: lunes, 18 de febrero de 2008 18:59 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > quantize_colors=255 is maybe the reason why your colors are reindexed on > a 256 colors palette. > > Hans Castorp a ?crit : >> Thanks Brent, but there is a mistake, the example I attached is not the >> mapservers original output: I have prepared it and give .gif extensi?n. >> >> This is the way I configure my output: >> >> OUTPUTFORMAT >> NAME 'AGG_Q' >> DRIVER AGG/PNG >> IMAGEMODE RGBA >> FORMATOPTION "TRANSPARENT=ON" >> FORMATOPTION "QUANTIZE_FORCE=ON" >> FORMATOPTION "QUANTIZE_DITHER=OFF" >> FORMATOPTION "QUANTIZE_COLORS=255" >> END >> >> Thanks in advance. >> >> >> >> >> -----Mensaje original----- >> De: Brent Fraser [mailto:bfraser at geoanalytic.com] >> Enviado el: lunes, 18 de febrero de 2008 18:17 >> Para: Hans Castorp >> CC: mapserver-users at lists.osgeo.org >> Asunto: Re: [mapserver-users] AGG_Q + raster problem >> >> Hans, >> >> GIF supports only 256 colors. Use PNG (or JPG) for an output format. >> >> Brent Fraser >> >>> Hi to all, >>> >>> >>> >>> I?m trying to publish a cartography using both vectorial and raster >>> layers. >>> I?m using mapserver 5 and agg_q as output format. There is no problem >>> about >>> vectorial files (shapefiles): all work fine. >>> >>> The only problem I?m having is trying to publish some raster stuff: an >>> aerial photo (.geotiff) and a digital terrain model (.ecw). I?m not >>> capable >>> to make the output showing real colours; there is an example attached to >>> this mail (an aerial photo). >>> >>> >>> >>> My mapfile looks in this way: >>> >>> >>> >>> LAYER >>> NAME "MDT" >>> STATUS DEFAULT >>> GROUP "MDT" >>> TYPE raster >>> DATA "mdt.tif" >>> CLASS >>> MINSCALE 15000 >>> END >>> END >>> >>> LAYER >>> NAME "ORTOFOTO" >>> STATUS DEFAULT >>> GROUP "ORTOFOTO" >>> TYPE raster >>> DATA "ortofoto.ecw" >>> CLASS >>> MAXSCALE 15000 >>> END >>> END >>> >>> >>> >>> What I have to do to solve this? >>> >>> >>> >>> Thanks in advance to everyone. >>> >>> >>> >>> >>> >>> Hans Castorp >> >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 >> 5:50 >> >> >> No virus found in this outgoing message. >> Checked by AVG Free Edition. >> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 >> 5:50 >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: 18/02/2008 5:50 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: 18/02/2008 5:50 -------------- next part -------------- A non-text attachment was scrubbed... Name: tile.png Type: image/png Size: 22242 bytes Desc: not available URL: From sim at gis-lab.info Mon Feb 18 10:13:28 2008 From: sim at gis-lab.info (Maxim Dubinin) Date: Mon, 18 Feb 2008 12:13:28 -0600 Subject: [mapserver-users] itemnquerymap output In-Reply-To: References: <19065456.20080215233859@gis-lab.info> <394398782.20080217225329@gis-lab.info> <17668552.20080218103510@gis-lab.info> Message-ID: <1216849577.20080218121328@gis-lab.info> yep, and it works ok when the map shows up without queries, so I assume it can find it. -- Maxim ?? ?????? 18 ??????? 2008 ?., 11:53:24: RG> That all looks good to me. is template.html in the same directory as RG> your map file? RG> Rich RG> On Feb 18, 2008 9:35 AM, Maxim Dubinin wrote: >> Here is a portion of my map file. As you can see, I'm trying to use >> the same template.html to return result of the query back into it. It >> works under WEB when it stats, but seems like ignored >> under LAYER that is being queried (qlayer=states_poly,qitem=State). >> >> Well not exactly ignored, if I don't put anything in there it gives >> an error message. >> >> >> ************************************************************ >> MAP >> IMAGETYPE PNG >> EXTENT -97.238976 41.619778 -82.122902 49.385620 >> SIZE 400 300 >> SHAPEPATH "defquery/" >> IMAGECOLOR 255 255 255 >> >> WEB >> TEMPLATE "template.html" >> IMAGEPATH "/tmp/" >> IMAGEURL "/tmp/" >> END >> >> QUERYMAP >> STATUS ON >> SIZE 400 300 >> STYLE SELECTED >> END >> >> LAYER # States polygon layer begins here >> NAME states_poly >> DATA states_ugl >> STATUS DEFAULT >> TYPE POLYGON >> >> CLASSITEM "CLASS" >> TEMPLATE "template.html" >> METADATA >> qstring_validation_pattern '.' >> END >> CLASS >> NAME 'States' >> ************************************************************ >> >> -- >> Maxim >> >> ?? ?????? 18 ??????? 2008 ?., 8:06:58: >> >> RG> On Feb 17, 2008 9:53 PM, Maxim Dubinin wrote: >> >> Thanks for suggestion, it was actually set. The strange thing is, >> >> Mapserver doesn't care about what I put in there, as long as >> >> LAYER\TEMPLATE "anything" exists. It could be any text as long >> >> as its under LAYER\TEMPLATE, even if the file doesn't exist. >> >> >> >> If I don't provide it, it gives me "msQueryByAttributes(): Query error. Requested >> >> layer has no templates defined so is not queryable." error. >> >> >> >> Is this template really for attributive results? >> >> RG> The template is for either attribute or spatial (map) display. What >> RG> gets displayed depends on the template. Maybe mapserver is not finding >> RG> your template file? >> >> RG> Rich >> >> >> From benftee at gmail.com Mon Feb 18 11:31:01 2008 From: benftee at gmail.com (Ben Thompson) Date: Mon, 18 Feb 2008 14:31:01 -0500 Subject: [mapserver-users] map mouseclick snafu Message-ID: we have some dropdown menus above the map area. each item consisting of an problem is, the menus overlay the map when unrolled and for some reason the map gets the mouseclick too, causing it to repeat applying whatever tool was last used (zoom in, etc). How to tell the map not to do this (i.e., disable active tool), or, better, how to make it not get clicked in the first place? thanx, Ben Thompson -------------- next part -------------- An HTML attachment was scrubbed... URL: From pspencer at dmsolutions.ca Mon Feb 18 12:00:35 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Mon, 18 Feb 2008 15:00:35 -0500 Subject: [mapserver-users] map mouseclick snafu In-Reply-To: References: Message-ID: <6C7CC6D8-C117-4313-9D2F-5CE4CDE8F830@dmsolutions.ca> In the code that handles the mouse click on the menu, you need to stop the event from propagating [1]. If you are using a javascript framework such as prototype [2], it will probably have such a mechanism (in prototype, for instance, you call Event.stop(evt)). If you are not using a framework, you will need to add the code for stopping the event, this is what prototype uses: if (evt.preventDefault) { evt.preventDefault(); evt.stopPropagation(); } else { evt.returnValue = false; evt.cancelBubble = true; } The quirksmode site has some good information general information about javascript events [3]. Cheers Paul [1] http://www.quirksmode.org/js/events_order.html [2] http://www.prototypejs.org/ [3] http://www.quirksmode.org/js/introevents.html On 18-Feb-08, at 2:31 PM, Ben Thompson wrote: > we have some dropdown menus above the map area. each item consisting > of an > problem is, the menus overlay the map when unrolled and for some > reason the map gets the mouseclick too, causing it to repeat > applying whatever tool was last used (zoom in, etc). How to tell the > map not to do this (i.e., disable active tool), or, better, how to > make it not get clicked in the first place? > > thanx, > Ben Thompson > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ From bfraser at geoanalytic.com Mon Feb 18 12:36:42 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 18 Feb 2008 13:36:42 -0700 (Mountain Standard Time) Subject: [mapserver-users] AGG_Q + raster problem In-Reply-To: <00cd01c87259$9b979ec0$6501a8c0@signo3> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@neogeo-online.net> <00cd01c87259$9b979ec0$6501a8c0@signo3> Message-ID: <.68.144.5.189.1203367002.squirrel@68.144.5.189> So when you remove all the quantize options, you still get a quantized image on output? Using something like: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END > This, by example > > > -----Mensaje original----- > De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] > Enviado el: lunes, 18 de febrero de 2008 19:04 > Para: Hans Castorp; mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > what's the result in standard AGG mode ? > > Hans Castorp a ?crit : >> The result is the same with or without this line... >> >> >> -----Mensaje original----- >> De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] >> Enviado el: lunes, 18 de febrero de 2008 18:59 >> Para: Hans Castorp >> CC: mapserver-users at lists.osgeo.org >> Asunto: Re: [mapserver-users] AGG_Q + raster problem >> >> quantize_colors=255 is maybe the reason why your colors are reindexed on >> a 256 colors palette. >> >> Hans Castorp a ?crit : >>> Thanks Brent, but there is a mistake, the example I attached is not the >>> mapservers original output: I have prepared it and give .gif extensi?n. >>> >>> This is the way I configure my output: >>> >>> OUTPUTFORMAT >>> NAME 'AGG_Q' >>> DRIVER AGG/PNG >>> IMAGEMODE RGBA >>> FORMATOPTION "TRANSPARENT=ON" >>> FORMATOPTION "QUANTIZE_FORCE=ON" >>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>> FORMATOPTION "QUANTIZE_COLORS=255" >>> END >>> >>> Thanks in advance. >>> >>> >>> >>> >>> -----Mensaje original----- >>> De: Brent Fraser [mailto:bfraser at geoanalytic.com] >>> Enviado el: lunes, 18 de febrero de 2008 18:17 >>> Para: Hans Castorp >>> CC: mapserver-users at lists.osgeo.org >>> Asunto: Re: [mapserver-users] AGG_Q + raster problem >>> >>> Hans, >>> >>> GIF supports only 256 colors. Use PNG (or JPG) for an output format. >>> >>> Brent Fraser >>> >>>> Hi to all, >>>> >>>> >>>> >>>> I?m trying to publish a cartography using both vectorial and raster >>>> layers. >>>> I?m using mapserver 5 and agg_q as output format. There is no problem >>>> about >>>> vectorial files (shapefiles): all work fine. >>>> >>>> The only problem I?m having is trying to publish some raster stuff: an >>>> aerial photo (.geotiff) and a digital terrain model (.ecw). I?m not >>>> capable >>>> to make the output showing real colours; there is an example attached >>>> to >>>> this mail (an aerial photo). >>>> >>>> >>>> >>>> My mapfile looks in this way: >>>> >>>> >>>> >>>> LAYER >>>> NAME "MDT" >>>> STATUS DEFAULT >>>> GROUP "MDT" >>>> TYPE raster >>>> DATA "mdt.tif" >>>> CLASS >>>> MINSCALE 15000 >>>> END >>>> END >>>> >>>> LAYER >>>> NAME "ORTOFOTO" >>>> STATUS DEFAULT >>>> GROUP "ORTOFOTO" >>>> TYPE raster >>>> DATA "ortofoto.ecw" >>>> CLASS >>>> MAXSCALE 15000 >>>> END >>>> END >>>> >>>> >>>> >>>> What I have to do to solve this? >>>> >>>> >>>> >>>> Thanks in advance to everyone. >>>> >>>> >>>> >>>> >>>> >>>> Hans Castorp >>> >>> No virus found in this incoming message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> No virus found in this outgoing message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > -- > Guillaume SUEUR > Expert SIG et OpenSource > NEOGEO > 46 RUE MATABIAU > 31000 TOULOUSE > 06 74 91 95 20 > Site web : http://www.neogeo-online.net > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From richard.greenwood at gmail.com Mon Feb 18 18:31:12 2008 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Mon, 18 Feb 2008 19:31:12 -0700 Subject: [mapserver-users] itemnquerymap output In-Reply-To: <1216849577.20080218121328@gis-lab.info> References: <19065456.20080215233859@gis-lab.info> <394398782.20080217225329@gis-lab.info> <17668552.20080218103510@gis-lab.info> <1216849577.20080218121328@gis-lab.info> Message-ID: you have mode=itemquerymap but it should be mode=itemnquery itemquerymap is not a valid mode. Rich On Feb 18, 2008 11:13 AM, Maxim Dubinin wrote: > yep, and it works ok when the map shows up without queries, so I assume > it can find it. > > -- > Maxim > > ?? ?????? 18 ??????? 2008 ?., 11:53:24: > > RG> That all looks good to me. is template.html in the same directory as > RG> your map file? > > RG> Rich > > > > RG> On Feb 18, 2008 9:35 AM, Maxim Dubinin wrote: > >> Here is a portion of my map file. As you can see, I'm trying to use > >> the same template.html to return result of the query back into it. It > >> works under WEB when it stats, but seems like ignored > >> under LAYER that is being queried (qlayer=states_poly,qitem=State). > >> > >> Well not exactly ignored, if I don't put anything in there it gives > >> an error message. > >> > >> > >> ************************************************************ > >> MAP > >> IMAGETYPE PNG > >> EXTENT -97.238976 41.619778 -82.122902 49.385620 > >> SIZE 400 300 > >> SHAPEPATH "defquery/" > >> IMAGECOLOR 255 255 255 > >> > >> WEB > >> TEMPLATE "template.html" > >> IMAGEPATH "/tmp/" > >> IMAGEURL "/tmp/" > >> END > >> > >> QUERYMAP > >> STATUS ON > >> SIZE 400 300 > >> STYLE SELECTED > >> END > >> > >> LAYER # States polygon layer begins here > >> NAME states_poly > >> DATA states_ugl > >> STATUS DEFAULT > >> TYPE POLYGON > >> > >> CLASSITEM "CLASS" > >> TEMPLATE "template.html" > >> METADATA > >> qstring_validation_pattern '.' > >> END > >> CLASS > >> NAME 'States' > >> ************************************************************ > >> > >> -- > >> Maxim > >> > >> ?? ?????? 18 ??????? 2008 ?., 8:06:58: > >> > >> RG> On Feb 17, 2008 9:53 PM, Maxim Dubinin wrote: > >> >> Thanks for suggestion, it was actually set. The strange thing is, > >> >> Mapserver doesn't care about what I put in there, as long as > >> >> LAYER\TEMPLATE "anything" exists. It could be any text as long > >> >> as its under LAYER\TEMPLATE, even if the file doesn't exist. > >> >> > >> >> If I don't provide it, it gives me "msQueryByAttributes(): Query error. Requested > >> >> layer has no templates defined so is not queryable." error. > >> >> > >> >> Is this template really for attributive results? > >> > >> RG> The template is for either attribute or spatial (map) display. What > >> RG> gets displayed depends on the template. Maybe mapserver is not finding > >> RG> your template file? > >> > >> RG> Rich > >> > >> > >> > > > > > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From sim at gis-lab.info Mon Feb 18 21:17:36 2008 From: sim at gis-lab.info (Maxim Dubinin) Date: Mon, 18 Feb 2008 23:17:36 -0600 Subject: [mapserver-users] itemnquerymap output In-Reply-To: References: <19065456.20080215233859@gis-lab.info> <394398782.20080217225329@gis-lab.info> <17668552.20080218103510@gis-lab.info> <1216849577.20080218121328@gis-lab.info> Message-ID: <671011771.20080218231736@gis-lab.info> Rich you're absolutely right! Thanks a lot for the hint, I wonder where my itemnquerymap came from... -- Best regards, Maxim ?? ?????? 18 ??????? 2008 ?., 20:31:12: RG> you have mode=itemquerymap but it should be mode=itemnquery RG> itemquerymap is not a valid mode. RG> Rich RG> On Feb 18, 2008 11:13 AM, Maxim Dubinin wrote: >> yep, and it works ok when the map shows up without queries, so I assume >> it can find it. >> >> -- >> Maxim >> >> ?? ?????? 18 ??????? 2008 ?., 11:53:24: >> >> RG> That all looks good to me. is template.html in the same directory as >> RG> your map file? >> >> RG> Rich >> >> >> >> RG> On Feb 18, 2008 9:35 AM, Maxim Dubinin wrote: >> >> Here is a portion of my map file. As you can see, I'm trying to use >> >> the same template.html to return result of the query back into it. It >> >> works under WEB when it stats, but seems like ignored >> >> under LAYER that is being queried (qlayer=states_poly,qitem=State). >> >> >> >> Well not exactly ignored, if I don't put anything in there it gives >> >> an error message. >> >> >> >> >> >> ************************************************************ >> >> MAP >> >> IMAGETYPE PNG >> >> EXTENT -97.238976 41.619778 -82.122902 49.385620 >> >> SIZE 400 300 >> >> SHAPEPATH "defquery/" >> >> IMAGECOLOR 255 255 255 >> >> >> >> WEB >> >> TEMPLATE "template.html" >> >> IMAGEPATH "/tmp/" >> >> IMAGEURL "/tmp/" >> >> END >> >> >> >> QUERYMAP >> >> STATUS ON >> >> SIZE 400 300 >> >> STYLE SELECTED >> >> END >> >> >> >> LAYER # States polygon layer begins here >> >> NAME states_poly >> >> DATA states_ugl >> >> STATUS DEFAULT >> >> TYPE POLYGON >> >> >> >> CLASSITEM "CLASS" >> >> TEMPLATE "template.html" >> >> METADATA >> >> qstring_validation_pattern '.' >> >> END >> >> CLASS >> >> NAME 'States' >> >> ************************************************************ >> >> >> >> -- >> >> Maxim >> >> >> >> ?? ?????? 18 ??????? 2008 ?., 8:06:58: >> >> >> >> RG> On Feb 17, 2008 9:53 PM, Maxim Dubinin wrote: >> >> >> Thanks for suggestion, it was actually set. The strange thing is, >> >> >> Mapserver doesn't care about what I put in there, as long as >> >> >> LAYER\TEMPLATE "anything" exists. It could be any text as long >> >> >> as its under LAYER\TEMPLATE, even if the file doesn't exist. >> >> >> >> >> >> If I don't provide it, it gives me "msQueryByAttributes(): Query error. Requested >> >> >> layer has no templates defined so is not queryable." error. >> >> >> >> >> >> Is this template really for attributive results? >> >> >> >> RG> The template is for either attribute or spatial (map) display. What >> >> RG> gets displayed depends on the template. Maybe mapserver is not finding >> >> RG> your template file? >> >> >> >> RG> Rich >> >> >> >> >> >> >> >> >> >> >> From tohashmi at gmail.com Tue Feb 19 01:11:24 2008 From: tohashmi at gmail.com (Mir Mahammed Hussain Hashmi) Date: Tue, 19 Feb 2008 12:11:24 +0300 Subject: [mapserver-users] Query By Multiple Attributes ??? Message-ID: <28aabd160802190111gb02e580t50eecee7d55ce77f@mail.gmail.com> Hello Readers, I am trying to generate a map with a hilited parcel. The parcel should be an id that belongs to [BuildingNo & AddNo & ZipCode.] I am using a FILTER expression as below to get the feature id, but it always returns a zero i.e no records .... I tried to frame my expression as suggested in the link .. but still no results... http://mapserver.gis.umn.edu/docs/howto/msexpressions any suggestions or hints plz ??? $oLayer->setFilter("([LOCATIONX]=3166 AND [ZIPCODE]=13711 AND [LOCATIONY=6154])"); if ($oLayer->getNumResults() > 0 ) { $oLayer->open(); $oResult = $oLayer->getResult( 0 ); $oShape = $oLayer->getShape($oResult->tileindex,$oResult->shapeindex ); $aValues = $oShape->values; $aFeatureID = $aValues['OBJECTID_1']; //Feaure id to hilite parcel //------- FREE SHAPE $oShape->free(); $oLayer->close(); //------- Set the Layer class expression $oLayer=$oMap->getLayerByName("parcels_selection"); $oLayer->set("status", MS_ON); $oClass = $oLayer->getClass(0); $oClass->setExpression($aFeatureID); //------- Draw the map $oImg = $oMap->draw(); $oImg->saveImage($aMapPath); $oImg->free(); echo ""; } thanks & regards From hanscastorp76 at yahoo.es Tue Feb 19 01:21:20 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Tue, 19 Feb 2008 10:21:20 +0100 Subject: [mapserver-users] AGG_Q + raster problem In-Reply-To: <.68.144.5.189.1203367002.squirrel@68.144.5.189> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@neogeo-online.net> <00cd01c87259$9b979ec0$6501a8c0@signo3> <.68.144.5.189.1203367002.squirrel@68.144.5.189> Message-ID: <002401c872d8$cba771b0$6501a8c0@signo3> Yes, I'm still getting a quantized image using this statement: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: lunes, 18 de febrero de 2008 21:37 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] AGG_Q + raster problem So when you remove all the quantize options, you still get a quantized image on output? Using something like: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END > This, by example > > > -----Mensaje original----- > De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] > Enviado el: lunes, 18 de febrero de 2008 19:04 > Para: Hans Castorp; mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > what's the result in standard AGG mode ? > > Hans Castorp a ?crit : >> The result is the same with or without this line... >> >> >> -----Mensaje original----- >> De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] >> Enviado el: lunes, 18 de febrero de 2008 18:59 >> Para: Hans Castorp >> CC: mapserver-users at lists.osgeo.org >> Asunto: Re: [mapserver-users] AGG_Q + raster problem >> >> quantize_colors=255 is maybe the reason why your colors are reindexed on >> a 256 colors palette. >> >> Hans Castorp a ?crit : >>> Thanks Brent, but there is a mistake, the example I attached is not the >>> mapservers original output: I have prepared it and give .gif extensi?n. >>> >>> This is the way I configure my output: >>> >>> OUTPUTFORMAT >>> NAME 'AGG_Q' >>> DRIVER AGG/PNG >>> IMAGEMODE RGBA >>> FORMATOPTION "TRANSPARENT=ON" >>> FORMATOPTION "QUANTIZE_FORCE=ON" >>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>> FORMATOPTION "QUANTIZE_COLORS=255" >>> END >>> >>> Thanks in advance. >>> >>> >>> >>> >>> -----Mensaje original----- >>> De: Brent Fraser [mailto:bfraser at geoanalytic.com] >>> Enviado el: lunes, 18 de febrero de 2008 18:17 >>> Para: Hans Castorp >>> CC: mapserver-users at lists.osgeo.org >>> Asunto: Re: [mapserver-users] AGG_Q + raster problem >>> >>> Hans, >>> >>> GIF supports only 256 colors. Use PNG (or JPG) for an output format. >>> >>> Brent Fraser >>> >>>> Hi to all, >>>> >>>> >>>> >>>> I?m trying to publish a cartography using both vectorial and raster >>>> layers. >>>> I?m using mapserver 5 and agg_q as output format. There is no problem >>>> about >>>> vectorial files (shapefiles): all work fine. >>>> >>>> The only problem I?m having is trying to publish some raster stuff: an >>>> aerial photo (.geotiff) and a digital terrain model (.ecw). I?m not >>>> capable >>>> to make the output showing real colours; there is an example attached >>>> to >>>> this mail (an aerial photo). >>>> >>>> >>>> >>>> My mapfile looks in this way: >>>> >>>> >>>> >>>> LAYER >>>> NAME "MDT" >>>> STATUS DEFAULT >>>> GROUP "MDT" >>>> TYPE raster >>>> DATA "mdt.tif" >>>> CLASS >>>> MINSCALE 15000 >>>> END >>>> END >>>> >>>> LAYER >>>> NAME "ORTOFOTO" >>>> STATUS DEFAULT >>>> GROUP "ORTOFOTO" >>>> TYPE raster >>>> DATA "ortofoto.ecw" >>>> CLASS >>>> MAXSCALE 15000 >>>> END >>>> END >>>> >>>> >>>> >>>> What I have to do to solve this? >>>> >>>> >>>> >>>> Thanks in advance to everyone. >>>> >>>> >>>> >>>> >>>> >>>> Hans Castorp >>> >>> No virus found in this incoming message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> No virus found in this outgoing message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > -- > Guillaume SUEUR > Expert SIG et OpenSource > NEOGEO > 46 RUE MATABIAU > 31000 TOULOUSE > 06 74 91 95 20 > Site web : http://www.neogeo-online.net > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 -------------- next part -------------- A non-text attachment was scrubbed... Name: t-1342720l159232.png Type: image/png Size: 21682 bytes Desc: not available URL: From stefanak at dblab.ece.ntua.gr Tue Feb 19 02:07:49 2008 From: stefanak at dblab.ece.ntua.gr (stefanak at dblab.ece.ntua.gr) Date: Tue, 19 Feb 2008 10:07:49 -0000 Subject: [mapserver-users] ms4w - Application protection with password Message-ID: <200802191007.m1JA7sI8011346@dblab.ece.ntua.gr> Dear friends I have defined the following in order to protect an ms4w application with password; but it does not work... ============= The application resides at c:/ms4w/apps/ITE/htdocs The C:\ms4w\apps\ITE\htdocs\ht.acl file contains the following: AuthType Basic AuthUserFile "c:/ms4w/Apache/bin/passwdkml.txt" AuthName "Password Required" require valid-user The C:\ms4w\httpd.d\httpd_ITE.conf file contains the following: Alias /ITE/ "/ms4w/apps/ITE/htdocs/" AllowOverride AuthConfig Options Indexes FollowSymLinks Multiviews I have also added the following to the C:\ms4w\Apache\conf\httpd.conf AccessFileName ht.acl .htcaccess ================ Any help would be greatly appreciated Thanks in advance! Emmanuel. From saperlipopette at gmx.ch Tue Feb 19 06:51:02 2008 From: saperlipopette at gmx.ch (Paul L) Date: Tue, 19 Feb 2008 06:51:02 -0800 (PST) Subject: re[MAPSERVER-USERS] ad angle from database to rotate symbol -> Symbol definition error Message-ID: <15561388.post@talk.nabble.com> Dear List I'm not the first one to ask this question, but I am unable to use the older list-posts as in the meantime (mapserver 5.0) the ANGLEITEM seems to be deprecated, if I understand this document http://mapserver.gis.umn.edu/development/rfc/ms-rfc-19 correctly. I am reading points from a postgis-table and would like Mapserver to rotate the symbols of each point according to the rotation-value stored as integer in the same table. It works fine as long as I hardcode the angle like "ANGLE=45". As soon as I try setting ANGLE="orientation" I get the errormessage: getSymbol(): Symbol definition error. Parsing error near (orientierung):(line 126) Can you help me find my errors? Thank you very much Paul P.S. I can actually read the angle and display it as a label, so it shouldn't be a problem of reading from the database. LAYER NAME points TYPE POINT CONNECTIONTYPE POSTGIS CONNECTION "dbname=test_postgis user=postgres password=postgres host=localhost port=5432" DATA "geometry from (select id, name, orientation, geometry from points) as foo USING UNIQUE id USING SRID=-1" STATUS DEFAULT TRANSPARENCY 65 CLASS STYLE SYMBOL "U" SIZE 15 COLOR 0 0 150 ANTIALIAS TRUE ANGLE 45 #ANGLE "orientation" #throws error: getSymbol(): Symbol definition error (..) END END END -- View this message in context: http://www.nabble.com/read-angle-from-database-to-rotate-symbol--%3E-Symbol-definition-error-tp15561388p15561388.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yassefa at dmsolutions.ca Tue Feb 19 07:17:16 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 19 Feb 2008 10:17:16 -0500 Subject: re[MAPSERVER-USERS] ad angle from database to rotate symbol -> Symbol definition error In-Reply-To: <15561388.post@talk.nabble.com> References: <15561388.post@talk.nabble.com> Message-ID: <47BAF2FC.3090103@dmsolutions.ca> Paul, I think the syntax for attribute binding is something like ANGLE [orientation] (attribute value in brackets). Could you try changing you map file and give it a try. Best Regards, Paul L wrote: > Dear List > > I'm not the first one to ask this question, but I am unable to use the older > list-posts as in the meantime (mapserver 5.0) the ANGLEITEM seems to be > deprecated, if I understand this document > http://mapserver.gis.umn.edu/development/rfc/ms-rfc-19 > correctly. > > I am reading points from a postgis-table and would like Mapserver to rotate > the symbols of each point according to the rotation-value stored as integer > in the same table. It works fine as long as I hardcode the angle like > "ANGLE=45". As soon as I try setting ANGLE="orientation" I get the > errormessage: > > getSymbol(): Symbol definition error. Parsing error near > (orientierung):(line 126) > > Can you help me find my errors? > Thank you very much > Paul > > P.S. I can actually read the angle and display it as a label, so it > shouldn't be a problem of reading from the database. > > > LAYER > > NAME points > TYPE POINT > CONNECTIONTYPE POSTGIS > CONNECTION "dbname=test_postgis user=postgres password=postgres > host=localhost port=5432" > DATA "geometry from (select id, name, orientation, geometry from points) > as foo USING UNIQUE id USING SRID=-1" > STATUS DEFAULT > TRANSPARENCY 65 > > CLASS > STYLE > SYMBOL "U" > SIZE 15 > COLOR 0 0 150 > ANTIALIAS TRUE > ANGLE 45 > #ANGLE "orientation" #throws error: getSymbol(): Symbol definition error > (..) > END > END > END -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From vincent.thierion at ema.fr Tue Feb 19 07:38:49 2008 From: vincent.thierion at ema.fr (vincent) Date: Tue, 19 Feb 2008 16:38:49 +0100 Subject: [mapserver-users] Netcdf / WCS Message-ID: <1203435529.5673.32.camel@vincent-laptop> Hello, I would like to create Web Coverage Service from one netCDF file in following http://mapserver.gis.umn.edu/docs/howto/WCSServerFormatHowTo My netCDF store rainfall matrix every five minutes in the "pluie" variable. This the CDL : dimensions: time = UNLIMITED; // (496 currently) // (has coord.var) x = 50; // (has coord.var) y = 50; // (has coord.var) variables: int Lambert_Conformal; :grid_mapping_name = "lambert_conformal_conic"; :standard_parallel = 43.20317, 44.99683; // double :longitude_of_central_meridian = 2.337229; // double :latitude_of_projection_origin = 44.1; // double :false_easting = 600.0; // double :false_northing = 3200.0; // double :_CoordinateTransformType = "Projection"; :_CoordinateSystems = "ProjectionCoordinateSystem"; :_CoordinateAxes = "y x"; :_CoordinateAxisTypes = "GeoX GeoY"; double pluie(time=496, y=50, x=50); :units = "mm/h"; :long_name = "Intensit? de pluie"; :coordinates = "lat lon"; :grid_mapping = "Lambert_Conformal"; :_CoordinateSystems = "ProjectionCoordinateSystem LatLonCoordinateSystem"; char LatLonCoordinateSystem; :_CoordinateAxes = "time lat lon"; char ProjectionCoordinateSystem; :_CoordinateAxes = "time y x"; :_CoordinateTransforms = "LambertConformalProjection"; double time(time=496); :long_name = "rainfall time"; :standard_name = "time"; :units = "seconds since 1970-01-01 01:00:00"; :axis = "T"; :_CoordinateAxisType = "Time"; :bounds = "time_bnds"; double x(x=50); :units = "km"; :long_name = "x coordinate of projection"; :standard_name = "projection_x_coordinate"; :_CoordinateAxisType = "GeoX"; double y(y=50); :units = "km"; :long_name = "y coordinate of projection"; :standard_name = "projection_y_coordinate"; :_CoordinateAxisType = "GeoY"; double lat(x=50, y=50); :units = "degrees_north"; :long_name = "latitude coordinate"; :standard_name = "latitude"; :_CoordinateAxisType = "Lat"; double lon(x=50, y=50); :units = "degrees_east"; :long_name = "longitude"; :standard_name = "longitude coordinate"; :_CoordinateAxisType = "Lon"; :Zone_Radar = "Gard-Ceze Amont"; :history = "Tuesday 19 February 2008, 00:00"; :Projection_cartographique = "Lambert III"; :X0 = 700.7; // double :Y0 = 3189.1; // double :Conventions = "CF-1.0"; } The HowTo of Mapserver Website seems adapt to a set of netcdf files but not for one netCDF file including several bands corresponding to each time step. When I use : gdal_translate -ot Float64 -of gTiff -b 300 -sds netCDF:"pluie-4-20020908.nc":pluie test.tif A tif file is created based on the 300th band of "pluie" variable When I use : gdaltindex test.shp NETCDF:pluie-3-20020908.nc:pluie A shape file is created but without every band, only a record with the netcdf extent and his name I suppose i have to create a new record for each time's band of netcdf file in the tileindex after creating with gdaltindex ?! I would like to use the Python Script of Norman Barker http://www.nabble.com/Map-File-Problem--td5541099.html#a5544967 But it is possible or the only solution is to create a tif file for each band ? Thanks Vincent -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Tue Feb 19 07:46:01 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 19 Feb 2008 08:46:01 -0700 Subject: [mapserver-users] AGG_Q + raster problem References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> Message-ID: <02d601c8730e$87164860$140002c0@shark> Hans, That is stange. I've tested mapserver 5.0.0. Beta 4 (it's the only v5 I've got compiled) and it gives me a 24 bit color image. What version of Mapserver are you using? Can you send your entire map file? Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: Cc: Sent: Tuesday, February 19, 2008 2:21 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Yes, I'm still getting a quantized image using this statement: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: lunes, 18 de febrero de 2008 21:37 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] AGG_Q + raster problem So when you remove all the quantize options, you still get a quantized image on output? Using something like: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END > This, by example > > > -----Mensaje original----- > De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] > Enviado el: lunes, 18 de febrero de 2008 19:04 > Para: Hans Castorp; mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > what's the result in standard AGG mode ? > > Hans Castorp a ?crit : >> The result is the same with or without this line... >> >> >> -----Mensaje original----- >> De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] >> Enviado el: lunes, 18 de febrero de 2008 18:59 >> Para: Hans Castorp >> CC: mapserver-users at lists.osgeo.org >> Asunto: Re: [mapserver-users] AGG_Q + raster problem >> >> quantize_colors=255 is maybe the reason why your colors are reindexed on >> a 256 colors palette. >> >> Hans Castorp a ?crit : >>> Thanks Brent, but there is a mistake, the example I attached is not the >>> mapservers original output: I have prepared it and give .gif extensi?n. >>> >>> This is the way I configure my output: >>> >>> OUTPUTFORMAT >>> NAME 'AGG_Q' >>> DRIVER AGG/PNG >>> IMAGEMODE RGBA >>> FORMATOPTION "TRANSPARENT=ON" >>> FORMATOPTION "QUANTIZE_FORCE=ON" >>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>> FORMATOPTION "QUANTIZE_COLORS=255" >>> END >>> >>> Thanks in advance. >>> >>> >>> >>> >>> -----Mensaje original----- >>> De: Brent Fraser [mailto:bfraser at geoanalytic.com] >>> Enviado el: lunes, 18 de febrero de 2008 18:17 >>> Para: Hans Castorp >>> CC: mapserver-users at lists.osgeo.org >>> Asunto: Re: [mapserver-users] AGG_Q + raster problem >>> >>> Hans, >>> >>> GIF supports only 256 colors. Use PNG (or JPG) for an output format. >>> >>> Brent Fraser >>> >>>> Hi to all, >>>> >>>> >>>> >>>> I'm trying to publish a cartography using both vectorial and raster >>>> layers. >>>> I'm using mapserver 5 and agg_q as output format. There is no problem >>>> about >>>> vectorial files (shapefiles): all work fine. >>>> >>>> The only problem I'm having is trying to publish some raster stuff: an >>>> aerial photo (.geotiff) and a digital terrain model (.ecw). I'm not >>>> capable >>>> to make the output showing real colours; there is an example attached >>>> to >>>> this mail (an aerial photo). >>>> >>>> >>>> >>>> My mapfile looks in this way: >>>> >>>> >>>> >>>> LAYER >>>> NAME "MDT" >>>> STATUS DEFAULT >>>> GROUP "MDT" >>>> TYPE raster >>>> DATA "mdt.tif" >>>> CLASS >>>> MINSCALE 15000 >>>> END >>>> END >>>> >>>> LAYER >>>> NAME "ORTOFOTO" >>>> STATUS DEFAULT >>>> GROUP "ORTOFOTO" >>>> TYPE raster >>>> DATA "ortofoto.ecw" >>>> CLASS >>>> MAXSCALE 15000 >>>> END >>>> END >>>> >>>> >>>> >>>> What I have to do to solve this? >>>> >>>> >>>> >>>> Thanks in advance to everyone. >>>> >>>> >>>> >>>> >>>> >>>> Hans Castorp >>> >>> No virus found in this incoming message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> No virus found in this outgoing message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > -- > Guillaume SUEUR > Expert SIG et OpenSource > NEOGEO > 46 RUE MATABIAU > 31000 TOULOUSE > 06 74 91 95 20 > Site web : http://www.neogeo-online.net > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 From warmerdam at pobox.com Tue Feb 19 08:08:01 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 19 Feb 2008 11:08:01 -0500 Subject: [mapserver-users] Netcdf / WCS In-Reply-To: <1203435529.5673.32.camel@vincent-laptop> References: <1203435529.5673.32.camel@vincent-laptop> Message-ID: <47BAFEE1.60508@pobox.com> vincent wrote: > Hello, > > I would like to create Web Coverage Service from one netCDF file in > following http://mapserver.gis.umn.edu/docs/howto/WCSServerFormatHowTo > > My netCDF store rainfall matrix every five minutes in the "pluie" > variable. This the CDL : > > dimensions: > > time = UNLIMITED; // (496 currently) // (has coord.var) > x = 50; // (has coord.var) > y = 50; // (has coord.var) > variables: > int Lambert_Conformal; > :grid_mapping_name = "lambert_conformal_conic"; > :standard_parallel = 43.20317, 44.99683; // double > :longitude_of_central_meridian = 2.337229; // double > :latitude_of_projection_origin = 44.1; // double > :false_easting = 600.0; // double > :false_northing = 3200.0; // double > :_CoordinateTransformType = "Projection"; > :_CoordinateSystems = "ProjectionCoordinateSystem"; > :_CoordinateAxes = "y x"; > :_CoordinateAxisTypes = "GeoX GeoY"; > * double pluie(time=496, y=50, x=50);* > * :units = "mm/h";* > * :long_name = "Intensit? de pluie";* > * :coordinates = "lat lon";* > * :grid_mapping = "Lambert_Conformal";* > * :_CoordinateSystems = "ProjectionCoordinateSystem LatLonCoordinateSystem";* Vincent, Because GDAL treats this array as a single dataset having 496 bands, I don't believe there is a way to properly create a tileindex with one entry per time slice, referring back directly to that band though this is something that I think was discussed at one point. You *can* serve the pluie array, but it will be represented as having 496 bands along a dimension called Band instead of time. Hopefully Steve will correct me if I am wrong. What would be nice is a way to have WCS (and raster rendering in general) potentially override the BANDS= processing option with information read from a tile index, and then update the gdaltindex program accordingly to generate such results. This shouldn't - in theory - be too hard to implement. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From hanscastorp76 at yahoo.es Tue Feb 19 08:36:46 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Tue, 19 Feb 2008 17:36:46 +0100 Subject: [mapserver-users] AGG_Q + raster problem In-Reply-To: <02d601c8730e$87164860$140002c0@shark> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> Message-ID: <000f01c87315$a0181760$6501a8c0@signo3> Hi, Brent I'm using mapserver 5.0.0 for Windows. I have no problems with vectorial data (shapefiles). The rest of my mapfile is like this: MAP NAME 'gmap' SIZE 800 600 STATUS ON EXTENT 559273 4709373 584263 4737543 FONTSET cartografia.fonts TRANSPARENT TRUE IMAGECOLOR 239 235 231 SHAPEPATH "C:\ms4w\apps\ka-map-1.0\mapdata\xxxxx\" IMAGETYPE AGGA CONFIG "PROJ_LIB" "C:\ms4w\proj\nad\" WEB IMAGEPATH 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' IMAGEURL 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' END PROJECTION "init=epsg:23029" END REFERENCE EXTENT 559273 4709373 584263 4737543 SIZE 193 236 IMAGE 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\css\img\keymap.gif' END LEGEND STATUS ON KEYSPACING 5 10 KEYSIZE 20 12 IMAGECOLOR 255 255 255 LABEL TYPE TRUETYPE FONT bluehigh COLOR 0 0 0 OUTLINECOLOR 254 254 254 SIZE 12 END END OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA FORMATOPTION "TRANSPARENT=ON" #TRANSPARENT ON END ################## #SYMBOL DEFINITION ################## WEB HEADER "tlg_header.xml" FOOTER "tlg_footer.xml" END #************** #MDT #************** LAYER NAME "MDT" STATUS DEFAULT GROUP "MDT" TYPE raster OPACITY 75 #PROCESSING "SCALE=AUTO" PROCESSING "DITHER=YES" CLASS MINSCALE 15000 END DATA "mdtxxxxx2.tif" END #************** #ORTOFOTO #************** LAYER NAME "ORTOFOTO" STATUS DEFAULT GROUP "ORTOFOTO" TYPE raster DATA "ortoxxxxx.ecw" #PROCESSING "SCALE=AUTO" PROCESSING "DITHER=YES" CLASS MAXSCALE 15000 END END ################## #LAYERS DEFINITION ################## END ## end Map -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 16:46 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, That is stange. I've tested mapserver 5.0.0. Beta 4 (it's the only v5 I've got compiled) and it gives me a 24 bit color image. What version of Mapserver are you using? Can you send your entire map file? Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: Cc: Sent: Tuesday, February 19, 2008 2:21 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Yes, I'm still getting a quantized image using this statement: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: lunes, 18 de febrero de 2008 21:37 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] AGG_Q + raster problem So when you remove all the quantize options, you still get a quantized image on output? Using something like: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END > This, by example > > > -----Mensaje original----- > De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] > Enviado el: lunes, 18 de febrero de 2008 19:04 > Para: Hans Castorp; mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > what's the result in standard AGG mode ? > > Hans Castorp a ?crit : >> The result is the same with or without this line... >> >> >> -----Mensaje original----- >> De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] >> Enviado el: lunes, 18 de febrero de 2008 18:59 >> Para: Hans Castorp >> CC: mapserver-users at lists.osgeo.org >> Asunto: Re: [mapserver-users] AGG_Q + raster problem >> >> quantize_colors=255 is maybe the reason why your colors are reindexed on >> a 256 colors palette. >> >> Hans Castorp a ?crit : >>> Thanks Brent, but there is a mistake, the example I attached is not the >>> mapservers original output: I have prepared it and give ..gif extensi?n. >>> >>> This is the way I configure my output: >>> >>> OUTPUTFORMAT >>> NAME 'AGG_Q' >>> DRIVER AGG/PNG >>> IMAGEMODE RGBA >>> FORMATOPTION "TRANSPARENT=ON" >>> FORMATOPTION "QUANTIZE_FORCE=ON" >>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>> FORMATOPTION "QUANTIZE_COLORS=255" >>> END >>> >>> Thanks in advance. >>> >>> >>> >>> >>> -----Mensaje original----- >>> De: Brent Fraser [mailto:bfraser at geoanalytic.com] >>> Enviado el: lunes, 18 de febrero de 2008 18:17 >>> Para: Hans Castorp >>> CC: mapserver-users at lists.osgeo.org >>> Asunto: Re: [mapserver-users] AGG_Q + raster problem >>> >>> Hans, >>> >>> GIF supports only 256 colors. Use PNG (or JPG) for an output format. >>> >>> Brent Fraser >>> >>>> Hi to all, >>>> >>>> >>>> >>>> I'm trying to publish a cartography using both vectorial and raster >>>> layers. >>>> I'm using mapserver 5 and agg_q as output format. There is no problem >>>> about >>>> vectorial files (shapefiles): all work fine. >>>> >>>> The only problem I'm having is trying to publish some raster stuff: an >>>> aerial photo (.geotiff) and a digital terrain model (.ecw). I'm not >>>> capable >>>> to make the output showing real colours; there is an example attached >>>> to >>>> this mail (an aerial photo). >>>> >>>> >>>> >>>> My mapfile looks in this way: >>>> >>>> >>>> >>>> LAYER >>>> NAME "MDT" >>>> STATUS DEFAULT >>>> GROUP "MDT" >>>> TYPE raster >>>> DATA "mdt.tif" >>>> CLASS >>>> MINSCALE 15000 >>>> END >>>> END >>>> >>>> LAYER >>>> NAME "ORTOFOTO" >>>> STATUS DEFAULT >>>> GROUP "ORTOFOTO" >>>> TYPE raster >>>> DATA "ortofoto.ecw" >>>> CLASS >>>> MAXSCALE 15000 >>>> END >>>> END >>>> >>>> >>>> >>>> What I have to do to solve this? >>>> >>>> >>>> >>>> Thanks in advance to everyone. >>>> >>>> >>>> >>>> >>>> >>>> Hans Castorp >>> >>> No virus found in this incoming message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> No virus found in this outgoing message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > -- > Guillaume SUEUR > Expert SIG et OpenSource > NEOGEO > 46 RUE MATABIAU > 31000 TOULOUSE > 06 74 91 95 20 > Site web : http://www.neogeo-online.net > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 From bfraser at geoanalytic.com Tue Feb 19 09:07:10 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 19 Feb 2008 10:07:10 -0700 Subject: [mapserver-users] AGG_Q + raster problem References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> Message-ID: <033401c87319$e18dc380$140002c0@shark> Hans, Try removing PROCESSING "DITHER=YES" from the ORTOFOTO layer definition. I think it is converting the 24-bit input raster to 8-bit before it renders it to the 24-bit output image. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: "'Brent Fraser'" Cc: Sent: Tuesday, February 19, 2008 9:36 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Hi, Brent I'm using mapserver 5.0.0 for Windows. I have no problems with vectorial data (shapefiles). The rest of my mapfile is like this: MAP NAME 'gmap' SIZE 800 600 STATUS ON EXTENT 559273 4709373 584263 4737543 FONTSET cartografia.fonts TRANSPARENT TRUE IMAGECOLOR 239 235 231 SHAPEPATH "C:\ms4w\apps\ka-map-1.0\mapdata\xxxxx\" IMAGETYPE AGGA CONFIG "PROJ_LIB" "C:\ms4w\proj\nad\" WEB IMAGEPATH 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' IMAGEURL 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' END PROJECTION "init=epsg:23029" END REFERENCE EXTENT 559273 4709373 584263 4737543 SIZE 193 236 IMAGE 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\css\img\keymap.gif' END LEGEND STATUS ON KEYSPACING 5 10 KEYSIZE 20 12 IMAGECOLOR 255 255 255 LABEL TYPE TRUETYPE FONT bluehigh COLOR 0 0 0 OUTLINECOLOR 254 254 254 SIZE 12 END END OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA FORMATOPTION "TRANSPARENT=ON" #TRANSPARENT ON END ################## #SYMBOL DEFINITION ################## WEB HEADER "tlg_header.xml" FOOTER "tlg_footer.xml" END #************** #MDT #************** LAYER NAME "MDT" STATUS DEFAULT GROUP "MDT" TYPE raster OPACITY 75 #PROCESSING "SCALE=AUTO" PROCESSING "DITHER=YES" CLASS MINSCALE 15000 END DATA "mdtxxxxx2.tif" END #************** #ORTOFOTO #************** LAYER NAME "ORTOFOTO" STATUS DEFAULT GROUP "ORTOFOTO" TYPE raster DATA "ortoxxxxx.ecw" #PROCESSING "SCALE=AUTO" PROCESSING "DITHER=YES" CLASS MAXSCALE 15000 END END ################## #LAYERS DEFINITION ################## END ## end Map -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 16:46 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, That is stange. I've tested mapserver 5.0.0. Beta 4 (it's the only v5 I've got compiled) and it gives me a 24 bit color image. What version of Mapserver are you using? Can you send your entire map file? Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: Cc: Sent: Tuesday, February 19, 2008 2:21 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Yes, I'm still getting a quantized image using this statement: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: lunes, 18 de febrero de 2008 21:37 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] AGG_Q + raster problem So when you remove all the quantize options, you still get a quantized image on output? Using something like: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END > This, by example > > > -----Mensaje original----- > De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] > Enviado el: lunes, 18 de febrero de 2008 19:04 > Para: Hans Castorp; mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > what's the result in standard AGG mode ? > > Hans Castorp a ?crit : >> The result is the same with or without this line... >> >> >> -----Mensaje original----- >> De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] >> Enviado el: lunes, 18 de febrero de 2008 18:59 >> Para: Hans Castorp >> CC: mapserver-users at lists.osgeo.org >> Asunto: Re: [mapserver-users] AGG_Q + raster problem >> >> quantize_colors=255 is maybe the reason why your colors are reindexed on >> a 256 colors palette. >> >> Hans Castorp a ?crit : >>> Thanks Brent, but there is a mistake, the example I attached is not the >>> mapservers original output: I have prepared it and give ..gif extensi?n. >>> >>> This is the way I configure my output: >>> >>> OUTPUTFORMAT >>> NAME 'AGG_Q' >>> DRIVER AGG/PNG >>> IMAGEMODE RGBA >>> FORMATOPTION "TRANSPARENT=ON" >>> FORMATOPTION "QUANTIZE_FORCE=ON" >>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>> FORMATOPTION "QUANTIZE_COLORS=255" >>> END >>> >>> Thanks in advance. >>> >>> >>> >>> >>> -----Mensaje original----- >>> De: Brent Fraser [mailto:bfraser at geoanalytic.com] >>> Enviado el: lunes, 18 de febrero de 2008 18:17 >>> Para: Hans Castorp >>> CC: mapserver-users at lists.osgeo.org >>> Asunto: Re: [mapserver-users] AGG_Q + raster problem >>> >>> Hans, >>> >>> GIF supports only 256 colors. Use PNG (or JPG) for an output format. >>> >>> Brent Fraser >>> >>>> Hi to all, >>>> >>>> >>>> >>>> I'm trying to publish a cartography using both vectorial and raster >>>> layers. >>>> I'm using mapserver 5 and agg_q as output format. There is no problem >>>> about >>>> vectorial files (shapefiles): all work fine. >>>> >>>> The only problem I'm having is trying to publish some raster stuff: an >>>> aerial photo (.geotiff) and a digital terrain model (.ecw). I'm not >>>> capable >>>> to make the output showing real colours; there is an example attached >>>> to >>>> this mail (an aerial photo). >>>> >>>> >>>> >>>> My mapfile looks in this way: >>>> >>>> >>>> >>>> LAYER >>>> NAME "MDT" >>>> STATUS DEFAULT >>>> GROUP "MDT" >>>> TYPE raster >>>> DATA "mdt.tif" >>>> CLASS >>>> MINSCALE 15000 >>>> END >>>> END >>>> >>>> LAYER >>>> NAME "ORTOFOTO" >>>> STATUS DEFAULT >>>> GROUP "ORTOFOTO" >>>> TYPE raster >>>> DATA "ortofoto.ecw" >>>> CLASS >>>> MAXSCALE 15000 >>>> END >>>> END >>>> >>>> >>>> >>>> What I have to do to solve this? >>>> >>>> >>>> >>>> Thanks in advance to everyone. >>>> >>>> >>>> >>>> >>>> >>>> Hans Castorp >>> >>> No virus found in this incoming message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> No virus found in this outgoing message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > -- > Guillaume SUEUR > Expert SIG et OpenSource > NEOGEO > 46 RUE MATABIAU > 31000 TOULOUSE > 06 74 91 95 20 > Site web : http://www.neogeo-online.net > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 From jmckenna at dmsolutions.ca Tue Feb 19 09:12:11 2008 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Tue, 19 Feb 2008 12:12:11 -0500 Subject: [mapserver-users] ms4w - Application protection with password In-Reply-To: <200802191007.m1JA7sI8011346@dblab.ece.ntua.gr> References: <200802191007.m1JA7sI8011346@dblab.ece.ntua.gr> Message-ID: <47BB0DEB.7010101@dmsolutions.ca> I quickly executed the exact steps mentioned in the MS4W readme (http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#password-protection-configuration-for-applications) and I was successful. (note that MS4W has its own email list: join at http://lists.maptools.org/mailman/listinfo/ms4w-users) -jeff stefanak at dblab.ece.ntua.gr wrote: > Dear friends > > I have defined the following in order to protect an ms4w application > with password; but it does not work... > > ============= > The application resides at c:/ms4w/apps/ITE/htdocs > > The C:\ms4w\apps\ITE\htdocs\ht.acl file contains the following: > > AuthType Basic > AuthUserFile "c:/ms4w/Apache/bin/passwdkml.txt" > AuthName "Password Required" > > require valid-user > > The C:\ms4w\httpd.d\httpd_ITE.conf file contains the following: > > Alias /ITE/ "/ms4w/apps/ITE/htdocs/" > > > AllowOverride AuthConfig > Options Indexes FollowSymLinks Multiviews > > > I have also added the following to the C:\ms4w\Apache\conf\httpd.conf > > AccessFileName ht.acl .htcaccess > > ================ > > Any help would be greatly appreciated > > Thanks in advance! > > Emmanuel. -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From hanscastorp76 at yahoo.es Tue Feb 19 09:25:19 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Tue, 19 Feb 2008 18:25:19 +0100 Subject: [mapserver-users] AGG_Q + raster problem In-Reply-To: <033401c87319$e18dc380$140002c0@shark> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> <033401c87319$e18dc380$140002c0@shark> Message-ID: <001801c8731c$685700f0$6501a8c0@signo3> Removing DITHER statement I get an "8 bit like" image, as you can see in the attachment... I think I'm going crazy with all this trouble... -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 18:07 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, Try removing PROCESSING "DITHER=YES" from the ORTOFOTO layer definition. I think it is converting the 24-bit input raster to 8-bit before it renders it to the 24-bit output image. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: "'Brent Fraser'" Cc: Sent: Tuesday, February 19, 2008 9:36 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Hi, Brent I'm using mapserver 5.0.0 for Windows. I have no problems with vectorial data (shapefiles). The rest of my mapfile is like this: MAP NAME 'gmap' SIZE 800 600 STATUS ON EXTENT 559273 4709373 584263 4737543 FONTSET cartografia.fonts TRANSPARENT TRUE IMAGECOLOR 239 235 231 SHAPEPATH "C:\ms4w\apps\ka-map-1.0\mapdata\xxxxx\" IMAGETYPE AGGA CONFIG "PROJ_LIB" "C:\ms4w\proj\nad\" WEB IMAGEPATH 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' IMAGEURL 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' END PROJECTION "init=epsg:23029" END REFERENCE EXTENT 559273 4709373 584263 4737543 SIZE 193 236 IMAGE 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\css\img\keymap.gif' END LEGEND STATUS ON KEYSPACING 5 10 KEYSIZE 20 12 IMAGECOLOR 255 255 255 LABEL TYPE TRUETYPE FONT bluehigh COLOR 0 0 0 OUTLINECOLOR 254 254 254 SIZE 12 END END OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA FORMATOPTION "TRANSPARENT=ON" #TRANSPARENT ON END ################## #SYMBOL DEFINITION ################## WEB HEADER "tlg_header.xml" FOOTER "tlg_footer.xml" END #************** #MDT #************** LAYER NAME "MDT" STATUS DEFAULT GROUP "MDT" TYPE raster OPACITY 75 #PROCESSING "SCALE=AUTO" PROCESSING "DITHER=YES" CLASS MINSCALE 15000 END DATA "mdtxxxxx2.tif" END #************** #ORTOFOTO #************** LAYER NAME "ORTOFOTO" STATUS DEFAULT GROUP "ORTOFOTO" TYPE raster DATA "ortoxxxxx.ecw" #PROCESSING "SCALE=AUTO" PROCESSING "DITHER=YES" CLASS MAXSCALE 15000 END END ################## #LAYERS DEFINITION ################## END ## end Map -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 16:46 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, That is stange. I've tested mapserver 5.0.0. Beta 4 (it's the only v5 I've got compiled) and it gives me a 24 bit color image. What version of Mapserver are you using? Can you send your entire map file? Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: Cc: Sent: Tuesday, February 19, 2008 2:21 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Yes, I'm still getting a quantized image using this statement: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: lunes, 18 de febrero de 2008 21:37 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] AGG_Q + raster problem So when you remove all the quantize options, you still get a quantized image on output? Using something like: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END > This, by example > > > -----Mensaje original----- > De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] > Enviado el: lunes, 18 de febrero de 2008 19:04 > Para: Hans Castorp; mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > what's the result in standard AGG mode ? > > Hans Castorp a ?crit : >> The result is the same with or without this line... >> >> >> -----Mensaje original----- >> De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] >> Enviado el: lunes, 18 de febrero de 2008 18:59 >> Para: Hans Castorp >> CC: mapserver-users at lists.osgeo.org >> Asunto: Re: [mapserver-users] AGG_Q + raster problem >> >> quantize_colors=255 is maybe the reason why your colors are reindexed on >> a 256 colors palette. >> >> Hans Castorp a ?crit : >>> Thanks Brent, but there is a mistake, the example I attached is not the >>> mapservers original output: I have prepared it and give ...gif extensi?n. >>> >>> This is the way I configure my output: >>> >>> OUTPUTFORMAT >>> NAME 'AGG_Q' >>> DRIVER AGG/PNG >>> IMAGEMODE RGBA >>> FORMATOPTION "TRANSPARENT=ON" >>> FORMATOPTION "QUANTIZE_FORCE=ON" >>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>> FORMATOPTION "QUANTIZE_COLORS=255" >>> END >>> >>> Thanks in advance. >>> >>> >>> >>> >>> -----Mensaje original----- >>> De: Brent Fraser [mailto:bfraser at geoanalytic.com] >>> Enviado el: lunes, 18 de febrero de 2008 18:17 >>> Para: Hans Castorp >>> CC: mapserver-users at lists.osgeo.org >>> Asunto: Re: [mapserver-users] AGG_Q + raster problem >>> >>> Hans, >>> >>> GIF supports only 256 colors. Use PNG (or JPG) for an output format. >>> >>> Brent Fraser >>> >>>> Hi to all, >>>> >>>> >>>> >>>> I'm trying to publish a cartography using both vectorial and raster >>>> layers. >>>> I'm using mapserver 5 and agg_q as output format. There is no problem >>>> about >>>> vectorial files (shapefiles): all work fine. >>>> >>>> The only problem I'm having is trying to publish some raster stuff: an >>>> aerial photo (.geotiff) and a digital terrain model (.ecw). I'm not >>>> capable >>>> to make the output showing real colours; there is an example attached >>>> to >>>> this mail (an aerial photo). >>>> >>>> >>>> >>>> My mapfile looks in this way: >>>> >>>> >>>> >>>> LAYER >>>> NAME "MDT" >>>> STATUS DEFAULT >>>> GROUP "MDT" >>>> TYPE raster >>>> DATA "mdt.tif" >>>> CLASS >>>> MINSCALE 15000 >>>> END >>>> END >>>> >>>> LAYER >>>> NAME "ORTOFOTO" >>>> STATUS DEFAULT >>>> GROUP "ORTOFOTO" >>>> TYPE raster >>>> DATA "ortofoto.ecw" >>>> CLASS >>>> MAXSCALE 15000 >>>> END >>>> END >>>> >>>> >>>> >>>> What I have to do to solve this? >>>> >>>> >>>> >>>> Thanks in advance to everyone. >>>> >>>> >>>> >>>> >>>> >>>> Hans Castorp >>> >>> No virus found in this incoming message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> No virus found in this outgoing message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > -- > Guillaume SUEUR > Expert SIG et OpenSource > NEOGEO > 46 RUE MATABIAU > 31000 TOULOUSE > 06 74 91 95 20 > Site web : http://www.neogeo-online.net > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 -------------- next part -------------- A non-text attachment was scrubbed... Name: t-1339648l159232.png Type: image/png Size: 22841 bytes Desc: not available URL: From robhyx at gmail.com Tue Feb 19 09:30:43 2008 From: robhyx at gmail.com (Robert Hicks) Date: Tue, 19 Feb 2008 12:30:43 -0500 Subject: [mapserver-users] Re: [UMN_MAPSERVER-USERS] Strange Projection Issue in MapServer In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBAC9@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FBAC9@s-sp22.pca.state.mn.us> Message-ID: Here is more of a verbose output on one of the images that is experiencing the strange projection problem. Again this is a problem where duplicate tifs are showing up when being reprojected on the fly with Mapserver, showing up in different parts of the world. $ gdalinfo full_w18_4.tif Driver: GTiff/GeoTIFF Files: full_w18_4.tif Size is 2000, 2000 Coordinate System is: PROJCS["NAD83 / UTM zone 15N", GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.2572221010002, AUTHORITY["EPSG","7019"]], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4269"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-93], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","26915"]] Origin = (669899.999999790450000,3359100.000000209500000) Pixel Size = (0.299999999930151,-0.299999999930151) Metadata: AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 669900.000, 3359100.000) ( 91d13'56.25"W, 30d21'6.70"N) Lower Left ( 669900.000, 3358500.000) ( 91d13'56.60"W, 30d20'47.21"N) Upper Right ( 670500.000, 3359100.000) ( 91d13'33.79"W, 30d21'6.39"N) Lower Right ( 670500.000, 3358500.000) ( 91d13'34.14"W, 30d20'46.91"N) Center ( 670200.000, 3358800.000) ( 91d13'45.19"W, 30d20'56.80"N) Band 1 Block=256x256 Type=Byte, ColorInterp=Red NoData Value=1 Band 2 Block=256x256 Type=Byte, ColorInterp=Green NoData Value=1 Band 3 Block=256x256 Type=Byte, ColorInterp=Blue NoData Value=1 On Feb 15, 2008 3:18 PM, Fawcett, David wrote: > Robert, > > Please reply to the list too, there are a lot of people on the list who > know a lot more about this than I do. > > It would be useful to see a more verbose output on both of the commands, > not necessarily for each feature in the tileindex, but at least the extent, > etc. > > David. > > -----Original Message----- > *From:* Robert Hicks [mailto:robhyx at gmail.com] > *Sent:* Friday, February 15, 2008 11:02 AM > *To:* Fawcett, David > *Subject:* Re: [UMN_MAPSERVER-USERS] Strange Projection Issue in MapServer > > $ gdalinfo img.tif | grep EPSG > AUTHORITY["EPSG","7019"]], > AUTHORITY["EPSG","6269"]], > AUTHORITY["EPSG","4269"]], > AUTHORITY["EPSG","9001"]], > AUTHORITY["EPSG","26915"]] > > ------------------------------------------------------------ > > $ ogrinfo 128Resolution.shp > INFO: Open of `128Resolution.shp' > using driver `ESRI Shapefile' successful. > 1: 128Resolution (Polygon) > > On Fri, Feb 15, 2008 at 11:31 AM, Fawcett, David < > David.Fawcett at state.mn.us> wrote: > > > This looks like a projection issue. > > > > If you run ogrinfo on the tile index what do you get? > > > > How about if you run gdalinfo on one of the image tiles? > > > > -----Original Message----- > > *From:* Robert Hicks [mailto:robhyx at gmail.com] > > *Sent:* Friday, February 15, 2008 10:23 AM > > *To:* Fawcett, David > > *Subject:* Re: [UMN_MAPSERVER-USERS] Strange Projection Issue in > > MapServer > > > > Sure thing, thanks David. > > > > I am using MapServer for Windows version 2.2.6, I have attached both > > again for you. > > > > Thanks, > > > > Rob > > > > On Fri, Feb 15, 2008 at 10:47 AM, Fawcett, David < > > David.Fawcett at state.mn.us> wrote: > > > > > Robert, > > > > > > Can you post the text of your map file and the version of MapServer > > > that > > > you are using? > > > > > > I also didn't see the .png attachment come through. > > > > > > David. > > > > > > -----Original Message----- > > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > On > > > Behalf Of Robert Hyx > > > Sent: Friday, February 15, 2008 9:30 AM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: [UMN_MAPSERVER-USERS] Strange Projection Issue in MapServer > > > > > > > > > Hello Everyone, > > > > > > I am having a strange problem with mapserver and reprojecting on the > > > fly. I have some imagery in mapserver that has been processed but is > > > still kept in its native projection 26915, and when I use the > > > > > > PROJECTION > > > "init=epsg:4326" > > > END > > > > > > in the header (above the paths of the shape files) > > > > > > and I use > > > > > > PROJECTION > > > "init=epsg:26915" > > > END > > > > > > in each layer (above the path of each shape file), I get another > > > version > > > of the imagery over on the other side of the world in addition to the > > > normal version of the imagery that appears in the correct place. > > > > > > I have attached a png of what the imagery that appears in the > > > incorrect > > > place looks like. Any help would be greatly appreciated. > > > > > > Thanks, > > > > > > Robert > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Tue Feb 19 09:38:10 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 19 Feb 2008 10:38:10 -0700 Subject: [mapserver-users] AGG_Q + raster problem References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> <033401c87319$e18dc380$140002c0@shark> <001801c8731c$685700f0$6501a8c0@signo3> Message-ID: <036601c8731e$322b22c0$140002c0@shark> Hans, I did a "gdalinfo" on the image you attached, it has only 32 colors defined (so it looks "bad"): Driver: PNG/Portable Network Graphics Size is 256, 256 Coordinate System is `' Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 256.0) Upper Right ( 256.0, 0.0) Lower Right ( 256.0, 256.0) Center ( 128.0, 128.0) Band 1 Block=256x1 Type=Byte, ColorInterp=Palette NoData Value=0 Color Table (RGB with 32 entries) 0: 239,235,231,0 1: 126,63,0,255 2: 189,189,63,255 3: 126,126,189,255 4: 63,126,126,255 5: 189,252,189,255 6: 63,0,63,255 7: 0,63,63,255 8: 63,63,126,255 9: 252,189,252,255 10: 126,63,126,255 11: 189,252,126,255 12: 189,126,189,255 13: 63,0,0,255 14: 189,126,63,255 15: 126,189,63,255 16: 0,63,0,255 17: 252,189,126,255 18: 252,189,189,255 19: 126,189,126,255 20: 252,252,189,255 21: 189,126,126,255 22: 0,0,0,255 23: 63,126,63,255 24: 189,189,189,255 25: 252,252,252,255 26: 63,63,0,255 27: 189,189,126,255 28: 126,63,63,255 29: 126,126,126,255 30: 63,63,63,255 31: 126,126,63,255 Are you sure this is the image produced from your new map file (it's not an old one left over from an earlier attempt is it)? Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: "'Brent Fraser'" Cc: Sent: Tuesday, February 19, 2008 10:25 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Removing DITHER statement I get an "8 bit like" image, as you can see in the attachment... I think I'm going crazy with all this trouble... -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 18:07 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, Try removing PROCESSING "DITHER=YES" from the ORTOFOTO layer definition. I think it is converting the 24-bit input raster to 8-bit before it renders it to the 24-bit output image. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: "'Brent Fraser'" Cc: Sent: Tuesday, February 19, 2008 9:36 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Hi, Brent I'm using mapserver 5.0.0 for Windows. I have no problems with vectorial data (shapefiles). The rest of my mapfile is like this: MAP NAME 'gmap' SIZE 800 600 STATUS ON EXTENT 559273 4709373 584263 4737543 FONTSET cartografia.fonts TRANSPARENT TRUE IMAGECOLOR 239 235 231 SHAPEPATH "C:\ms4w\apps\ka-map-1.0\mapdata\xxxxx\" IMAGETYPE AGGA CONFIG "PROJ_LIB" "C:\ms4w\proj\nad\" WEB IMAGEPATH 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' IMAGEURL 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' END PROJECTION "init=epsg:23029" END REFERENCE EXTENT 559273 4709373 584263 4737543 SIZE 193 236 IMAGE 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\css\img\keymap.gif' END LEGEND STATUS ON KEYSPACING 5 10 KEYSIZE 20 12 IMAGECOLOR 255 255 255 LABEL TYPE TRUETYPE FONT bluehigh COLOR 0 0 0 OUTLINECOLOR 254 254 254 SIZE 12 END END OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA FORMATOPTION "TRANSPARENT=ON" #TRANSPARENT ON END ################## #SYMBOL DEFINITION ################## WEB HEADER "tlg_header.xml" FOOTER "tlg_footer.xml" END #************** #MDT #************** LAYER NAME "MDT" STATUS DEFAULT GROUP "MDT" TYPE raster OPACITY 75 #PROCESSING "SCALE=AUTO" PROCESSING "DITHER=YES" CLASS MINSCALE 15000 END DATA "mdtxxxxx2.tif" END #************** #ORTOFOTO #************** LAYER NAME "ORTOFOTO" STATUS DEFAULT GROUP "ORTOFOTO" TYPE raster DATA "ortoxxxxx.ecw" #PROCESSING "SCALE=AUTO" PROCESSING "DITHER=YES" CLASS MAXSCALE 15000 END END ################## #LAYERS DEFINITION ################## END ## end Map -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 16:46 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, That is stange. I've tested mapserver 5.0.0. Beta 4 (it's the only v5 I've got compiled) and it gives me a 24 bit color image. What version of Mapserver are you using? Can you send your entire map file? Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: Cc: Sent: Tuesday, February 19, 2008 2:21 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Yes, I'm still getting a quantized image using this statement: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: lunes, 18 de febrero de 2008 21:37 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] AGG_Q + raster problem So when you remove all the quantize options, you still get a quantized image on output? Using something like: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END > This, by example > > > -----Mensaje original----- > De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] > Enviado el: lunes, 18 de febrero de 2008 19:04 > Para: Hans Castorp; mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > what's the result in standard AGG mode ? > > Hans Castorp a ?crit : >> The result is the same with or without this line... >> >> >> -----Mensaje original----- >> De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] >> Enviado el: lunes, 18 de febrero de 2008 18:59 >> Para: Hans Castorp >> CC: mapserver-users at lists.osgeo.org >> Asunto: Re: [mapserver-users] AGG_Q + raster problem >> >> quantize_colors=255 is maybe the reason why your colors are reindexed on >> a 256 colors palette. >> >> Hans Castorp a ?crit : >>> Thanks Brent, but there is a mistake, the example I attached is not the >>> mapservers original output: I have prepared it and give ...gif extensi?n. >>> >>> This is the way I configure my output: >>> >>> OUTPUTFORMAT >>> NAME 'AGG_Q' >>> DRIVER AGG/PNG >>> IMAGEMODE RGBA >>> FORMATOPTION "TRANSPARENT=ON" >>> FORMATOPTION "QUANTIZE_FORCE=ON" >>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>> FORMATOPTION "QUANTIZE_COLORS=255" >>> END >>> >>> Thanks in advance. >>> >>> >>> >>> >>> -----Mensaje original----- >>> De: Brent Fraser [mailto:bfraser at geoanalytic.com] >>> Enviado el: lunes, 18 de febrero de 2008 18:17 >>> Para: Hans Castorp >>> CC: mapserver-users at lists.osgeo.org >>> Asunto: Re: [mapserver-users] AGG_Q + raster problem >>> >>> Hans, >>> >>> GIF supports only 256 colors. Use PNG (or JPG) for an output format. >>> >>> Brent Fraser >>> >>>> Hi to all, >>>> >>>> >>>> >>>> I'm trying to publish a cartography using both vectorial and raster >>>> layers. >>>> I'm using mapserver 5 and agg_q as output format. There is no problem >>>> about >>>> vectorial files (shapefiles): all work fine. >>>> >>>> The only problem I'm having is trying to publish some raster stuff: an >>>> aerial photo (.geotiff) and a digital terrain model (.ecw). I'm not >>>> capable >>>> to make the output showing real colours; there is an example attached >>>> to >>>> this mail (an aerial photo). >>>> >>>> >>>> >>>> My mapfile looks in this way: >>>> >>>> >>>> >>>> LAYER >>>> NAME "MDT" >>>> STATUS DEFAULT >>>> GROUP "MDT" >>>> TYPE raster >>>> DATA "mdt.tif" >>>> CLASS >>>> MINSCALE 15000 >>>> END >>>> END >>>> >>>> LAYER >>>> NAME "ORTOFOTO" >>>> STATUS DEFAULT >>>> GROUP "ORTOFOTO" >>>> TYPE raster >>>> DATA "ortofoto.ecw" >>>> CLASS >>>> MAXSCALE 15000 >>>> END >>>> END >>>> >>>> >>>> >>>> What I have to do to solve this? >>>> >>>> >>>> >>>> Thanks in advance to everyone. >>>> >>>> >>>> >>>> >>>> >>>> Hans Castorp >>> >>> No virus found in this incoming message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> No virus found in this outgoing message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > -- > Guillaume SUEUR > Expert SIG et OpenSource > NEOGEO > 46 RUE MATABIAU > 31000 TOULOUSE > 06 74 91 95 20 > Site web : http://www.neogeo-online.net > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 From hanscastorp76 at yahoo.es Tue Feb 19 10:28:32 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Tue, 19 Feb 2008 19:28:32 +0100 Subject: [mapserver-users] AGG_Q + raster problem In-Reply-To: <036601c8731e$322b22c0$140002c0@shark> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> <033401c87319$e18dc380$140002c0@shark> <001801c8731c$685700f0$6501a8c0@signo3> <036601c8731e$322b22c0$140002c0@shark> Message-ID: <002e01c87325$3cb4df90$6501a8c0@signo3> Yes, I'm completely sure that the image I've attached was produced with this OUTPUT statement: OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA FORMATOPTION "TRANSPARENT=ON" #TRANSPARENT ON END -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 18:38 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, I did a "gdalinfo" on the image you attached, it has only 32 colors defined (so it looks "bad"): Driver: PNG/Portable Network Graphics Size is 256, 256 Coordinate System is `' Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 256.0) Upper Right ( 256.0, 0.0) Lower Right ( 256.0, 256.0) Center ( 128.0, 128.0) Band 1 Block=256x1 Type=Byte, ColorInterp=Palette NoData Value=0 Color Table (RGB with 32 entries) 0: 239,235,231,0 1: 126,63,0,255 2: 189,189,63,255 3: 126,126,189,255 4: 63,126,126,255 5: 189,252,189,255 6: 63,0,63,255 7: 0,63,63,255 8: 63,63,126,255 9: 252,189,252,255 10: 126,63,126,255 11: 189,252,126,255 12: 189,126,189,255 13: 63,0,0,255 14: 189,126,63,255 15: 126,189,63,255 16: 0,63,0,255 17: 252,189,126,255 18: 252,189,189,255 19: 126,189,126,255 20: 252,252,189,255 21: 189,126,126,255 22: 0,0,0,255 23: 63,126,63,255 24: 189,189,189,255 25: 252,252,252,255 26: 63,63,0,255 27: 189,189,126,255 28: 126,63,63,255 29: 126,126,126,255 30: 63,63,63,255 31: 126,126,63,255 Are you sure this is the image produced from your new map file (it's not an old one left over from an earlier attempt is it)? Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: "'Brent Fraser'" Cc: Sent: Tuesday, February 19, 2008 10:25 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Removing DITHER statement I get an "8 bit like" image, as you can see in the attachment... I think I'm going crazy with all this trouble... -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 18:07 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, Try removing PROCESSING "DITHER=YES" from the ORTOFOTO layer definition. I think it is converting the 24-bit input raster to 8-bit before it renders it to the 24-bit output image. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: "'Brent Fraser'" Cc: Sent: Tuesday, February 19, 2008 9:36 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Hi, Brent I'm using mapserver 5.0.0 for Windows. I have no problems with vectorial data (shapefiles). The rest of my mapfile is like this: MAP NAME 'gmap' SIZE 800 600 STATUS ON EXTENT 559273 4709373 584263 4737543 FONTSET cartografia.fonts TRANSPARENT TRUE IMAGECOLOR 239 235 231 SHAPEPATH "C:\ms4w\apps\ka-map-1.0\mapdata\xxxxx\" IMAGETYPE AGGA CONFIG "PROJ_LIB" "C:\ms4w\proj\nad\" WEB IMAGEPATH 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' IMAGEURL 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' END PROJECTION "init=epsg:23029" END REFERENCE EXTENT 559273 4709373 584263 4737543 SIZE 193 236 IMAGE 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\css\img\keymap.gif' END LEGEND STATUS ON KEYSPACING 5 10 KEYSIZE 20 12 IMAGECOLOR 255 255 255 LABEL TYPE TRUETYPE FONT bluehigh COLOR 0 0 0 OUTLINECOLOR 254 254 254 SIZE 12 END END OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA FORMATOPTION "TRANSPARENT=ON" #TRANSPARENT ON END ################## #SYMBOL DEFINITION ################## WEB HEADER "tlg_header.xml" FOOTER "tlg_footer.xml" END #************** #MDT #************** LAYER NAME "MDT" STATUS DEFAULT GROUP "MDT" TYPE raster OPACITY 75 #PROCESSING "SCALE=AUTO" PROCESSING "DITHER=YES" CLASS MINSCALE 15000 END DATA "mdtxxxxx2.tif" END #************** #ORTOFOTO #************** LAYER NAME "ORTOFOTO" STATUS DEFAULT GROUP "ORTOFOTO" TYPE raster DATA "ortoxxxxx.ecw" #PROCESSING "SCALE=AUTO" PROCESSING "DITHER=YES" CLASS MAXSCALE 15000 END END ################## #LAYERS DEFINITION ################## END ## end Map -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 16:46 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, That is stange. I've tested mapserver 5.0.0. Beta 4 (it's the only v5 I've got compiled) and it gives me a 24 bit color image. What version of Mapserver are you using? Can you send your entire map file? Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: Cc: Sent: Tuesday, February 19, 2008 2:21 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Yes, I'm still getting a quantized image using this statement: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: lunes, 18 de febrero de 2008 21:37 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] AGG_Q + raster problem So when you remove all the quantize options, you still get a quantized image on output? Using something like: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END > This, by example > > > -----Mensaje original----- > De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] > Enviado el: lunes, 18 de febrero de 2008 19:04 > Para: Hans Castorp; mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > what's the result in standard AGG mode ? > > Hans Castorp a ?crit : >> The result is the same with or without this line... >> >> >> -----Mensaje original----- >> De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] >> Enviado el: lunes, 18 de febrero de 2008 18:59 >> Para: Hans Castorp >> CC: mapserver-users at lists.osgeo.org >> Asunto: Re: [mapserver-users] AGG_Q + raster problem >> >> quantize_colors=255 is maybe the reason why your colors are reindexed on >> a 256 colors palette. >> >> Hans Castorp a ?crit : >>> Thanks Brent, but there is a mistake, the example I attached is not the >>> mapservers original output: I have prepared it and give ....gif extensi?n. >>> >>> This is the way I configure my output: >>> >>> OUTPUTFORMAT >>> NAME 'AGG_Q' >>> DRIVER AGG/PNG >>> IMAGEMODE RGBA >>> FORMATOPTION "TRANSPARENT=ON" >>> FORMATOPTION "QUANTIZE_FORCE=ON" >>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>> FORMATOPTION "QUANTIZE_COLORS=255" >>> END >>> >>> Thanks in advance. >>> >>> >>> >>> >>> -----Mensaje original----- >>> De: Brent Fraser [mailto:bfraser at geoanalytic.com] >>> Enviado el: lunes, 18 de febrero de 2008 18:17 >>> Para: Hans Castorp >>> CC: mapserver-users at lists.osgeo.org >>> Asunto: Re: [mapserver-users] AGG_Q + raster problem >>> >>> Hans, >>> >>> GIF supports only 256 colors. Use PNG (or JPG) for an output format. >>> >>> Brent Fraser >>> >>>> Hi to all, >>>> >>>> >>>> >>>> I'm trying to publish a cartography using both vectorial and raster >>>> layers. >>>> I'm using mapserver 5 and agg_q as output format. There is no problem >>>> about >>>> vectorial files (shapefiles): all work fine. >>>> >>>> The only problem I'm having is trying to publish some raster stuff: an >>>> aerial photo (.geotiff) and a digital terrain model (.ecw). I'm not >>>> capable >>>> to make the output showing real colours; there is an example attached >>>> to >>>> this mail (an aerial photo). >>>> >>>> >>>> >>>> My mapfile looks in this way: >>>> >>>> >>>> >>>> LAYER >>>> NAME "MDT" >>>> STATUS DEFAULT >>>> GROUP "MDT" >>>> TYPE raster >>>> DATA "mdt.tif" >>>> CLASS >>>> MINSCALE 15000 >>>> END >>>> END >>>> >>>> LAYER >>>> NAME "ORTOFOTO" >>>> STATUS DEFAULT >>>> GROUP "ORTOFOTO" >>>> TYPE raster >>>> DATA "ortofoto.ecw" >>>> CLASS >>>> MAXSCALE 15000 >>>> END >>>> END >>>> >>>> >>>> >>>> What I have to do to solve this? >>>> >>>> >>>> >>>> Thanks in advance to everyone. >>>> >>>> >>>> >>>> >>>> >>>> Hans Castorp >>> >>> No virus found in this incoming message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> No virus found in this outgoing message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > -- > Guillaume SUEUR > Expert SIG et OpenSource > NEOGEO > 46 RUE MATABIAU > 31000 TOULOUSE > 06 74 91 95 20 > Site web : http://www.neogeo-online.net > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 From nospam420 at yahoo.com Tue Feb 19 10:31:21 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Tue, 19 Feb 2008 10:31:21 -0800 (PST) Subject: [MAPSERVER-USERS] thread safety In-Reply-To: <15514019.post@talk.nabble.com> References: <15514019.post@talk.nabble.com> Message-ID: <15562378.post@talk.nabble.com> rich.fromm wrote: > > Small scale individual tests work fine. When I try executing larger > scale stress tests that include multiple concurrent requests to tomcat, > things > run fine for a while, but eventually the JVM crashes and tomcat dies. > <...> > I have not yet been able to > reproduce a single failure -- I'm still working on it. But if this is a > threading issue, I may not be able to get a reproducible test case. > I was on the verge of completely blaming threading, but now I'm not so sure. I have had two more crashes, see #5 and #6 below. (#1 through #4 are in the original mail.) #5 looks to be identical to #3 and #4. And all of #1 through #5 occurred when tomcat was potentially handling multiple concurrent requests. In no case have I been able to reproduce the exact failure, even when playing back requests that I think were the trigger of the failure. Which seems to point to a threading problem. But in crash #6, I had the client waiting until a request returned before making another request. So tomcat was invoking mapserver purely sequentially, and I would have thought that threading problems were not an issue. Nevertheless, eventually the server crashed, and once again if I replay the exact request that triggered the failure, I can not reproduce the crash. So I fear that it's going to be very hard for me to create a reproduceable test case for this, but inevitably if I throw enough requests at mapserver, it always crashes and brings down tomcat, usually within about an hour or two. - Rich --- crash #5: (msFreeLabelCacheSlot) mapfile.c:4068 (msFreeLabelCache) mapfile.c:4100 (msFreeMap) mapobject.c:98 (delete_mapObj) mapscript/java/mapscript_wrap.c:1619 (Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1mapObj) mapscript/java/mapscript_wrap.c:19695 crash #6: (msImageCreateWithPaletteGD) mapgd.c:3471 (msSaveImageBufferGD) mapgd.c:3697 (msSaveImageBufferAGG) mapagg.cpp:2248 (msSaveImageBuffer) maputil.c:688 (imageObj_getBytes) mapscript/java/mapscript_wrap.c:2486 (Java_edu_umn_gis_mapscript_mapscriptJNI_imageObj_1getBytes) mapscript/java/mapscript_wrap.c:24414 -- View this message in context: http://www.nabble.com/thread-safety-tp15514019p15562378.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bfraser at geoanalytic.com Tue Feb 19 10:34:01 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 19 Feb 2008 11:34:01 -0700 Subject: [mapserver-users] AGG_Q + raster problem References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> <033401c87319$e18dc380$140002c0@shark> <001801c8731c$685700f0$6501a8c0@signo3> <036601c8731e$322b22c0$140002c0@shark> <002e01c87325$3cb4df90$6501a8c0@signo3> Message-ID: <03c101c87325$ff3a8ab0$140002c0@shark> I'm running out of ideas. Have you tried setting the output format to JPG? Since it's a 24-bit format (only), this might indicate if the problem is in the output stage or in the input/processing stage. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: "'Brent Fraser'" Cc: Sent: Tuesday, February 19, 2008 11:28 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Yes, I'm completely sure that the image I've attached was produced with this OUTPUT statement: OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA FORMATOPTION "TRANSPARENT=ON" #TRANSPARENT ON END -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 18:38 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, I did a "gdalinfo" on the image you attached, it has only 32 colors defined (so it looks "bad"): Driver: PNG/Portable Network Graphics Size is 256, 256 Coordinate System is `' Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 256.0) Upper Right ( 256.0, 0.0) Lower Right ( 256.0, 256.0) Center ( 128.0, 128.0) Band 1 Block=256x1 Type=Byte, ColorInterp=Palette NoData Value=0 Color Table (RGB with 32 entries) 0: 239,235,231,0 1: 126,63,0,255 2: 189,189,63,255 3: 126,126,189,255 4: 63,126,126,255 5: 189,252,189,255 6: 63,0,63,255 7: 0,63,63,255 8: 63,63,126,255 9: 252,189,252,255 10: 126,63,126,255 11: 189,252,126,255 12: 189,126,189,255 13: 63,0,0,255 14: 189,126,63,255 15: 126,189,63,255 16: 0,63,0,255 17: 252,189,126,255 18: 252,189,189,255 19: 126,189,126,255 20: 252,252,189,255 21: 189,126,126,255 22: 0,0,0,255 23: 63,126,63,255 24: 189,189,189,255 25: 252,252,252,255 26: 63,63,0,255 27: 189,189,126,255 28: 126,63,63,255 29: 126,126,126,255 30: 63,63,63,255 31: 126,126,63,255 Are you sure this is the image produced from your new map file (it's not an old one left over from an earlier attempt is it)? Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: "'Brent Fraser'" Cc: Sent: Tuesday, February 19, 2008 10:25 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Removing DITHER statement I get an "8 bit like" image, as you can see in the attachment... I think I'm going crazy with all this trouble... -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 18:07 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, Try removing PROCESSING "DITHER=YES" from the ORTOFOTO layer definition. I think it is converting the 24-bit input raster to 8-bit before it renders it to the 24-bit output image. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: "'Brent Fraser'" Cc: Sent: Tuesday, February 19, 2008 9:36 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Hi, Brent I'm using mapserver 5.0.0 for Windows. I have no problems with vectorial data (shapefiles). The rest of my mapfile is like this: MAP NAME 'gmap' SIZE 800 600 STATUS ON EXTENT 559273 4709373 584263 4737543 FONTSET cartografia.fonts TRANSPARENT TRUE IMAGECOLOR 239 235 231 SHAPEPATH "C:\ms4w\apps\ka-map-1.0\mapdata\xxxxx\" IMAGETYPE AGGA CONFIG "PROJ_LIB" "C:\ms4w\proj\nad\" WEB IMAGEPATH 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' IMAGEURL 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' END PROJECTION "init=epsg:23029" END REFERENCE EXTENT 559273 4709373 584263 4737543 SIZE 193 236 IMAGE 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\css\img\keymap.gif' END LEGEND STATUS ON KEYSPACING 5 10 KEYSIZE 20 12 IMAGECOLOR 255 255 255 LABEL TYPE TRUETYPE FONT bluehigh COLOR 0 0 0 OUTLINECOLOR 254 254 254 SIZE 12 END END OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA FORMATOPTION "TRANSPARENT=ON" #TRANSPARENT ON END ################## #SYMBOL DEFINITION ################## WEB HEADER "tlg_header.xml" FOOTER "tlg_footer.xml" END #************** #MDT #************** LAYER NAME "MDT" STATUS DEFAULT GROUP "MDT" TYPE raster OPACITY 75 #PROCESSING "SCALE=AUTO" PROCESSING "DITHER=YES" CLASS MINSCALE 15000 END DATA "mdtxxxxx2.tif" END #************** #ORTOFOTO #************** LAYER NAME "ORTOFOTO" STATUS DEFAULT GROUP "ORTOFOTO" TYPE raster DATA "ortoxxxxx.ecw" #PROCESSING "SCALE=AUTO" PROCESSING "DITHER=YES" CLASS MAXSCALE 15000 END END ################## #LAYERS DEFINITION ################## END ## end Map -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 16:46 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, That is stange. I've tested mapserver 5.0.0. Beta 4 (it's the only v5 I've got compiled) and it gives me a 24 bit color image. What version of Mapserver are you using? Can you send your entire map file? Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: Cc: Sent: Tuesday, February 19, 2008 2:21 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Yes, I'm still getting a quantized image using this statement: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: lunes, 18 de febrero de 2008 21:37 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] AGG_Q + raster problem So when you remove all the quantize options, you still get a quantized image on output? Using something like: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END > This, by example > > > -----Mensaje original----- > De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] > Enviado el: lunes, 18 de febrero de 2008 19:04 > Para: Hans Castorp; mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > what's the result in standard AGG mode ? > > Hans Castorp a ?crit : >> The result is the same with or without this line... >> >> >> -----Mensaje original----- >> De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] >> Enviado el: lunes, 18 de febrero de 2008 18:59 >> Para: Hans Castorp >> CC: mapserver-users at lists.osgeo.org >> Asunto: Re: [mapserver-users] AGG_Q + raster problem >> >> quantize_colors=255 is maybe the reason why your colors are reindexed on >> a 256 colors palette. >> >> Hans Castorp a ?crit : >>> Thanks Brent, but there is a mistake, the example I attached is not the >>> mapservers original output: I have prepared it and give ....gif extensi?n. >>> >>> This is the way I configure my output: >>> >>> OUTPUTFORMAT >>> NAME 'AGG_Q' >>> DRIVER AGG/PNG >>> IMAGEMODE RGBA >>> FORMATOPTION "TRANSPARENT=ON" >>> FORMATOPTION "QUANTIZE_FORCE=ON" >>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>> FORMATOPTION "QUANTIZE_COLORS=255" >>> END >>> >>> Thanks in advance. >>> >>> >>> >>> >>> -----Mensaje original----- >>> De: Brent Fraser [mailto:bfraser at geoanalytic.com] >>> Enviado el: lunes, 18 de febrero de 2008 18:17 >>> Para: Hans Castorp >>> CC: mapserver-users at lists.osgeo.org >>> Asunto: Re: [mapserver-users] AGG_Q + raster problem >>> >>> Hans, >>> >>> GIF supports only 256 colors. Use PNG (or JPG) for an output format. >>> >>> Brent Fraser >>> >>>> Hi to all, >>>> >>>> >>>> >>>> I'm trying to publish a cartography using both vectorial and raster >>>> layers. >>>> I'm using mapserver 5 and agg_q as output format. There is no problem >>>> about >>>> vectorial files (shapefiles): all work fine. >>>> >>>> The only problem I'm having is trying to publish some raster stuff: an >>>> aerial photo (.geotiff) and a digital terrain model (.ecw). I'm not >>>> capable >>>> to make the output showing real colours; there is an example attached >>>> to >>>> this mail (an aerial photo). >>>> >>>> >>>> >>>> My mapfile looks in this way: >>>> >>>> >>>> >>>> LAYER >>>> NAME "MDT" >>>> STATUS DEFAULT >>>> GROUP "MDT" >>>> TYPE raster >>>> DATA "mdt.tif" >>>> CLASS >>>> MINSCALE 15000 >>>> END >>>> END >>>> >>>> LAYER >>>> NAME "ORTOFOTO" >>>> STATUS DEFAULT >>>> GROUP "ORTOFOTO" >>>> TYPE raster >>>> DATA "ortofoto.ecw" >>>> CLASS >>>> MAXSCALE 15000 >>>> END >>>> END >>>> >>>> >>>> >>>> What I have to do to solve this? >>>> >>>> >>>> >>>> Thanks in advance to everyone. >>>> >>>> >>>> >>>> >>>> >>>> Hans Castorp >>> >>> No virus found in this incoming message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> No virus found in this outgoing message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > -- > Guillaume SUEUR > Expert SIG et OpenSource > NEOGEO > 46 RUE MATABIAU > 31000 TOULOUSE > 06 74 91 95 20 > Site web : http://www.neogeo-online.net > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 From benftee at gmail.com Tue Feb 19 10:34:36 2008 From: benftee at gmail.com (Ben Thompson) Date: Tue, 19 Feb 2008 13:34:36 -0500 Subject: [mapserver-users] map mouseclick snafu In-Reply-To: <6C7CC6D8-C117-4313-9D2F-5CE4CDE8F830@dmsolutions.ca> References: <6C7CC6D8-C117-4313-9D2F-5CE4CDE8F830@dmsolutions.ca> Message-ID: Thanks for the help! Ii got it working...for some reason beyond me the code below did not do the job, but, this slightly different code works: if (window.event) //ms model-IE event.cancelBubble=true else if (e.stopPropagation) //w3c model-FF e.stopPropagation() ??? On Feb 18, 2008 3:00 PM, Paul Spencer wrote: > In the code that handles the mouse click on the menu, you need to stop > the event from propagating [1]. If you are using a javascript > framework such as prototype [2], it will probably have such a > mechanism (in prototype, for instance, you call Event.stop(evt)). If > you are not using a framework, you will need to add the code for > stopping the event, this is what prototype uses: > > if (evt.preventDefault) { > evt.preventDefault(); > evt.stopPropagation(); > } else { > evt.returnValue = false; > evt.cancelBubble = true; > } > > The quirksmode site has some good information general information > about javascript events [3]. > > Cheers > > Paul > > [1] http://www.quirksmode.org/js/events_order.html > [2] http://www.prototypejs.org/ > [3] http://www.quirksmode.org/js/introevents.html > > > On 18-Feb-08, at 2:31 PM, Ben Thompson wrote: > > > we have some dropdown menus above the map area. each item consisting > > of an > > problem is, the menus overlay the map when unrolled and for some > > reason the map gets the mouseclick too, causing it to repeat > > applying whatever tool was last used (zoom in, etc). How to tell the > > map not to do this (i.e., disable active tool), or, better, how to > > make it not get clicked in the first place? > > > > thanx, > > Ben Thompson > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > __________________________________________ > > Paul Spencer > Chief Technology Officer > DM Solutions Group Inc > http://www.dmsolutions.ca/ > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Feb 19 11:06:18 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 19 Feb 2008 14:06:18 -0500 Subject: [mapserver-users] AGG_Q + raster problem In-Reply-To: <002e01c87325$3cb4df90$6501a8c0@signo3> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> <033401c87319$e18dc380$140002c0@shark> <001801c8731c$685700f0$6501a8c0@signo3> <036601c8731e$322b22c0$140002c0@shark> <002e01c87325$3cb4df90$6501a8c0@signo3> Message-ID: <47BB28AA.2090500@swoodbridge.com> Hans, What is the output of: mapserv -v Thanks, -Steve W Hans Castorp wrote: > Yes, I'm completely sure that the image I've attached was produced with this > OUTPUT statement: > > OUTPUTFORMAT > NAME 'AGGA' > DRIVER AGG/PNG > IMAGEMODE RGBA > FORMATOPTION "TRANSPARENT=ON" > #TRANSPARENT ON > END > > > > -----Mensaje original----- > De: Brent Fraser [mailto:bfraser at geoanalytic.com] > Enviado el: martes, 19 de febrero de 2008 18:38 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > Hans, > > I did a "gdalinfo" on the image you attached, it has only > 32 colors defined (so it looks "bad"): > > Driver: PNG/Portable Network Graphics > Size is 256, 256 > Coordinate System is `' > Corner Coordinates: > Upper Left ( 0.0, 0.0) > Lower Left ( 0.0, 256.0) > Upper Right ( 256.0, 0.0) > Lower Right ( 256.0, 256.0) > Center ( 128.0, 128.0) > Band 1 Block=256x1 Type=Byte, ColorInterp=Palette > NoData Value=0 > Color Table (RGB with 32 entries) > 0: 239,235,231,0 > 1: 126,63,0,255 > 2: 189,189,63,255 > 3: 126,126,189,255 > 4: 63,126,126,255 > 5: 189,252,189,255 > 6: 63,0,63,255 > 7: 0,63,63,255 > 8: 63,63,126,255 > 9: 252,189,252,255 > 10: 126,63,126,255 > 11: 189,252,126,255 > 12: 189,126,189,255 > 13: 63,0,0,255 > 14: 189,126,63,255 > 15: 126,189,63,255 > 16: 0,63,0,255 > 17: 252,189,126,255 > 18: 252,189,189,255 > 19: 126,189,126,255 > 20: 252,252,189,255 > 21: 189,126,126,255 > 22: 0,0,0,255 > 23: 63,126,63,255 > 24: 189,189,189,255 > 25: 252,252,252,255 > 26: 63,63,0,255 > 27: 189,189,126,255 > 28: 126,63,63,255 > 29: 126,126,126,255 > 30: 63,63,63,255 > 31: 126,126,63,255 > > Are you sure this is the image produced from your new map > file (it's not an old one left over from an earlier attempt > is it)? > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > ----- Original Message ----- > From: "Hans Castorp" > To: "'Brent Fraser'" > Cc: > Sent: Tuesday, February 19, 2008 10:25 AM > Subject: RE: [mapserver-users] AGG_Q + raster problem > > > Removing DITHER statement I get an "8 bit like" image, as > you can see in the > attachment... > I think I'm going crazy with all this trouble... > > > -----Mensaje original----- > De: Brent Fraser [mailto:bfraser at geoanalytic.com] > Enviado el: martes, 19 de febrero de 2008 18:07 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > Hans, > > Try removing PROCESSING "DITHER=YES" from the ORTOFOTO > layer definition. I think it is converting the 24-bit input > raster to 8-bit before it renders it to the 24-bit output > image. > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > ----- Original Message ----- > From: "Hans Castorp" > To: "'Brent Fraser'" > Cc: > Sent: Tuesday, February 19, 2008 9:36 AM > Subject: RE: [mapserver-users] AGG_Q + raster problem > > > Hi, Brent > > I'm using mapserver 5.0.0 for Windows. > > I have no problems with vectorial data (shapefiles). The > rest of my mapfile > is like this: > > MAP > NAME 'gmap' > SIZE 800 600 > STATUS ON > EXTENT 559273 4709373 584263 4737543 > FONTSET cartografia.fonts > TRANSPARENT TRUE > IMAGECOLOR 239 235 231 > SHAPEPATH "C:\ms4w\apps\ka-map-1.0\mapdata\xxxxx\" > IMAGETYPE AGGA > CONFIG "PROJ_LIB" "C:\ms4w\proj\nad\" > > WEB > IMAGEPATH 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' > IMAGEURL 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' > END > > PROJECTION > "init=epsg:23029" > END > > REFERENCE > EXTENT 559273 4709373 584263 4737543 > SIZE 193 236 > IMAGE > 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\css\img\keymap.gif' > END > > LEGEND > STATUS ON > KEYSPACING 5 10 > KEYSIZE 20 12 > IMAGECOLOR 255 255 255 > LABEL > TYPE TRUETYPE > FONT bluehigh > COLOR 0 0 0 > OUTLINECOLOR 254 254 254 > SIZE 12 > END > END > > OUTPUTFORMAT > NAME 'AGGA' > DRIVER AGG/PNG > IMAGEMODE RGBA > FORMATOPTION "TRANSPARENT=ON" > #TRANSPARENT ON > END > > ################## > #SYMBOL DEFINITION > ################## > > WEB > HEADER "tlg_header.xml" > FOOTER "tlg_footer.xml" > END > > #************** > #MDT > #************** > LAYER > NAME "MDT" > STATUS DEFAULT > GROUP "MDT" > TYPE raster > OPACITY 75 > #PROCESSING "SCALE=AUTO" > PROCESSING "DITHER=YES" > CLASS > MINSCALE 15000 > END > DATA "mdtxxxxx2.tif" > END > > #************** > #ORTOFOTO > #************** > LAYER > NAME "ORTOFOTO" > STATUS DEFAULT > GROUP "ORTOFOTO" > TYPE raster > DATA "ortoxxxxx.ecw" > #PROCESSING "SCALE=AUTO" > PROCESSING "DITHER=YES" > CLASS > MAXSCALE 15000 > END > END > > ################## > #LAYERS DEFINITION > ################## > > END ## end Map > > > > > > > -----Mensaje original----- > De: Brent Fraser [mailto:bfraser at geoanalytic.com] > Enviado el: martes, 19 de febrero de 2008 16:46 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > Hans, > > That is stange. I've tested mapserver 5.0.0. Beta 4 (it's > the only v5 I've got compiled) and it gives me a 24 bit > color image. What version of Mapserver are you using? Can > you send your entire map file? > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > ----- Original Message ----- > From: "Hans Castorp" > To: > Cc: > Sent: Tuesday, February 19, 2008 2:21 AM > Subject: RE: [mapserver-users] AGG_Q + raster problem > > > Yes, I'm still getting a quantized image using this > statement: > > OUTPUTFORMAT > NAME 'AGG_PNG' > DRIVER AGG/PNG > IMAGEMODE RGB > END > > -----Mensaje original----- > De: Brent Fraser [mailto:bfraser at geoanalytic.com] > Enviado el: lunes, 18 de febrero de 2008 21:37 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: RE: [mapserver-users] AGG_Q + raster problem > > So when you remove all the quantize options, you still get a > quantized > image on output? Using something like: > > OUTPUTFORMAT > NAME 'AGG_PNG' > DRIVER AGG/PNG > IMAGEMODE RGB > END > > > >> This, by example >> >> >> -----Mensaje original----- >> De: Guillaume Sueur > [mailto:guillaume.sueur at neogeo-online.net] >> Enviado el: lunes, 18 de febrero de 2008 19:04 >> Para: Hans Castorp; mapserver-users at lists.osgeo.org >> Asunto: Re: [mapserver-users] AGG_Q + raster problem >> >> what's the result in standard AGG mode ? >> >> Hans Castorp a ?crit : >>> The result is the same with or without this line... >>> >>> >>> -----Mensaje original----- >>> De: Guillaume Sueur > [mailto:guillaume.sueur at neogeo-online.net] >>> Enviado el: lunes, 18 de febrero de 2008 18:59 >>> Para: Hans Castorp >>> CC: mapserver-users at lists.osgeo.org >>> Asunto: Re: [mapserver-users] AGG_Q + raster problem >>> >>> quantize_colors=255 is maybe the reason why your colors > are reindexed on >>> a 256 colors palette. >>> >>> Hans Castorp a ?crit : >>>> Thanks Brent, but there is a mistake, the example I > attached is not the >>>> mapservers original output: I have prepared it and give > ....gif extensi?n. >>>> This is the way I configure my output: >>>> >>>> OUTPUTFORMAT >>>> NAME 'AGG_Q' >>>> DRIVER AGG/PNG >>>> IMAGEMODE RGBA >>>> FORMATOPTION "TRANSPARENT=ON" >>>> FORMATOPTION "QUANTIZE_FORCE=ON" >>>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>>> FORMATOPTION "QUANTIZE_COLORS=255" >>>> END >>>> >>>> Thanks in advance. >>>> >>>> >>>> >>>> >>>> -----Mensaje original----- >>>> De: Brent Fraser [mailto:bfraser at geoanalytic.com] >>>> Enviado el: lunes, 18 de febrero de 2008 18:17 >>>> Para: Hans Castorp >>>> CC: mapserver-users at lists.osgeo.org >>>> Asunto: Re: [mapserver-users] AGG_Q + raster problem >>>> >>>> Hans, >>>> >>>> GIF supports only 256 colors. Use PNG (or JPG) for an > output format. >>>> Brent Fraser >>>> >>>>> Hi to all, >>>>> >>>>> >>>>> >>>>> I'm trying to publish a cartography using both > vectorial and raster >>>>> layers. >>>>> I'm using mapserver 5 and agg_q as output format. There > is no problem >>>>> about >>>>> vectorial files (shapefiles): all work fine. >>>>> >>>>> The only problem I'm having is trying to publish some > raster stuff: an >>>>> aerial photo (.geotiff) and a digital terrain model > (.ecw). I'm not >>>>> capable >>>>> to make the output showing real colours; there is an > example attached >>>>> to >>>>> this mail (an aerial photo). >>>>> >>>>> >>>>> >>>>> My mapfile looks in this way: >>>>> >>>>> >>>>> >>>>> LAYER >>>>> NAME "MDT" >>>>> STATUS DEFAULT >>>>> GROUP "MDT" >>>>> TYPE raster >>>>> DATA "mdt.tif" >>>>> CLASS >>>>> MINSCALE 15000 >>>>> END >>>>> END >>>>> >>>>> LAYER >>>>> NAME "ORTOFOTO" >>>>> STATUS DEFAULT >>>>> GROUP "ORTOFOTO" >>>>> TYPE raster >>>>> DATA "ortofoto.ecw" >>>>> CLASS >>>>> MAXSCALE 15000 >>>>> END >>>>> END >>>>> >>>>> >>>>> >>>>> What I have to do to solve this? >>>>> >>>>> >>>>> >>>>> Thanks in advance to everyone. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Hans Castorp >>>> No virus found in this incoming message. >>>> Checked by AVG Free Edition. >>>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - > Release Date: >>> 18/02/2008 >>>> 5:50 >>>> >>>> >>>> No virus found in this outgoing message. >>>> Checked by AVG Free Edition. >>>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - > Release Date: >>> 18/02/2008 >>>> 5:50 >>>> >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >> -- >> Guillaume SUEUR >> Expert SIG et OpenSource >> NEOGEO >> 46 RUE MATABIAU >> 31000 TOULOUSE >> 06 74 91 95 20 >> Site web : http://www.neogeo-online.net >> >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release > Date: >> 18/02/2008 >> 5:50 >> >> >> No virus found in this outgoing message. >> Checked by AVG Free Edition. >> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release > Date: >> 18/02/2008 >> 5:50 >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release > Date: 18/02/2008 > 18:49 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release > Date: 18/02/2008 > 18:49 > > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release > Date: 18/02/2008 > 18:49 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release > Date: 18/02/2008 > 18:49 > > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release > Date: 18/02/2008 > 18:49 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release > Date: 18/02/2008 > 18:49 > > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 > 18:49 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 > 18:49 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From nospam420 at yahoo.com Tue Feb 19 11:17:41 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Tue, 19 Feb 2008 11:17:41 -0800 (PST) Subject: [MAPSERVER-USERS] thread safety In-Reply-To: <15562378.post@talk.nabble.com> References: <15514019.post@talk.nabble.com> <15562378.post@talk.nabble.com> Message-ID: <15562408.post@talk.nabble.com> rich.fromm wrote: > > inevitably if I throw enough requests at mapserver, it > always crashes and brings down tomcat, usually within about an hour or > two. > After searching around the mailing list archives a bit more, I am beginning to suspect that this may be caused by the JVM gc, and maybe improper use of delete() within mapscript: http://www.nabble.com/Re%3A--UMN_MAPSERVER-USERS---mapserver--Java-VM-Crashes-using-the-Mapscript-API-to1548675.html#a1548675 http://www.nabble.com/mapscript-jvm-crash-on-removeLayer-to6206628.html#a6206628 >From reading through those threads, it's still not clear to me under precisely what circumstances it is necessary to call delete() on a java mapscript object, and under what circumstances it is sufficient to let the garbage collector handle it. But examing my code further, I do appear to be inconsistent. Here is a simplified version of pseudo-code showing my object creations and deletions: --- begin --- mapObj map = new mapObj(); pointObj pt1 = new pointObj(); pointObj pt2 = new pointObj(); rectObj rect = new rectObj(); for (i ...) { layerObj layer = map.getLayer(i); for (j ...) { classObj class = layer.getClass(j); labelObj label = class.getLabel(); } } imageObj img = map.draw(); img.delete(); map.delete(); --- end --- Specifically I am NOT calling delete() on either of the pointObj's, on the rectObj, on the layerObj in the outer loop, or on the classObj or labelObj in the inner loop. I am going to try inserting the maximum number of applicable delete()'s and see if that helps. - Rich -- View this message in context: http://www.nabble.com/thread-safety-tp15514019p15562408.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Tue Feb 19 12:24:13 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 19 Feb 2008 14:24:13 -0600 Subject: [mapserver-users] Netcdf / WCS In-Reply-To: <47BAFEE1.60508@pobox.com> References: <1203435529.5673.32.camel@vincent-laptop> <47BAFEE1.60508@pobox.com> Message-ID: <47BAE68D.5157.008F.0@dnr.state.mn.us> I need to think about this. For some reason I remember one of the test cases being just like this although with not so many bands. As the cobwebs clear I believe this was started but not completed. There's even a BANDSITEM member of the layer object defined in the source. This would allow definition of a column to map a temporal value to a particular band within a larger image. I'm thinking it's probably not far from functioning. Steve >>> On 2/19/2008 at 10:08 AM, in message <47BAFEE1.60508 at pobox.com>, Frank Warmerdam wrote: > vincent wrote: >> Hello, >> >> I would like to create Web Coverage Service from one netCDF file in >> following http://mapserver.gis.umn.edu/docs/howto/WCSServerFormatHowTo >> >> My netCDF store rainfall matrix every five minutes in the "pluie" >> variable. This the CDL : >> >> dimensions: >> >> time = UNLIMITED; // (496 currently) // (has coord.var) >> x = 50; // (has coord.var) >> y = 50; // (has coord.var) >> variables: >> int Lambert_Conformal; >> :grid_mapping_name = "lambert_conformal_conic"; >> :standard_parallel = 43.20317, 44.99683; // double >> :longitude_of_central_meridian = 2.337229; // double >> :latitude_of_projection_origin = 44.1; // double >> :false_easting = 600.0; // double >> :false_northing = 3200.0; // double >> :_CoordinateTransformType = "Projection"; >> :_CoordinateSystems = "ProjectionCoordinateSystem"; >> :_CoordinateAxes = "y x"; >> :_CoordinateAxisTypes = "GeoX GeoY"; >> * double pluie(time=496, y=50, x=50);* >> * :units = "mm/h";* >> * :long_name = "Intensit? de pluie";* >> * :coordinates = "lat lon";* >> * :grid_mapping = "Lambert_Conformal";* >> * :_CoordinateSystems = "ProjectionCoordinateSystem > LatLonCoordinateSystem";* > > Vincent, > > Because GDAL treats this array as a single dataset having 496 bands, I don't > believe there is a way to properly create a tileindex with one entry per > time slice, referring back directly to that band though this is something > that > I think was discussed at one point. > > You *can* serve the pluie array, but it will be represented as having 496 > bands along a dimension called Band instead of time. > > Hopefully Steve will correct me if I am wrong. What would be nice > is a way to have WCS (and raster rendering in general) potentially > override the BANDS= processing option with information read from a > tile index, and then update the gdaltindex program accordingly to > generate such results. This shouldn't - in theory - be too hard to > implement. > > Best regards, > -- > ---------------------------------------+------------------------------------ > -- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From nospam420 at yahoo.com Tue Feb 19 16:07:28 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Tue, 19 Feb 2008 16:07:28 -0800 (PST) Subject: [MAPSERVER-USERS] leaking memory in java mapscript (was Re: thread safety) In-Reply-To: <15562408.post@talk.nabble.com> References: <15514019.post@talk.nabble.com> <15562378.post@talk.nabble.com> <15562408.post@talk.nabble.com> Message-ID: <15579407.post@talk.nabble.com> Note that subject has changed, previous mailing list thread is here: http://www.nabble.com/thread-safety-to15514019.html rich.fromm wrote: > > I am going to try inserting the maximum number of applicable delete()'s > and > see if that helps. > Indeed, I am leaking memory, and I think that that's likely the root of my problems, and not threading issues. (I'm currently having my client only generate sequential requests.) I am now explicitly calling delete() on every mapserver object that I reference in any way when I'm done with it. Yet the java process for tomcat still grows in size, and eventually gets to its allowed max and crashes the JVM and tomcat. I'm not certain whether or not the rate of leaking has gone down, I haven't collected detailed enough data to be able to determine that. Other than calling delete() on every mapserver object as applicable, is there anything else that I can be doing? I fear that there may be a real genuine leak within mapserver, and that that might be hard to track down. - Rich -- View this message in context: http://www.nabble.com/thread-safety-tp15514019p15579407.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Tue Feb 19 17:26:04 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Tue, 19 Feb 2008 17:26:04 -0800 (PST) Subject: [MAPSERVER-USERS] detecting memory leaks in java mapscript Message-ID: <15580371.post@talk.nabble.com> Any advice about tracking down memory leaks that might exist in java mapscript? For the context of why I'm trying to do this, see the following thread: http://www.nabble.com/thread-safety-to15514019.html I installed the debian sarge backport of valgrind (valgrind-3.2.0-Debian), and tried invoking java prefaced with: valgrind --leak-check=full --smc-check=all -v No leaks were reported, but I don't think it really checked where I wanted it to check. libmapscript.so is loaded with the following: System.loadLibrary("mapscript"); And from the output it doesn't look like valgrind is actually instrumenting that library, and I can't figure out how to tell it to explicitly instrument a dynamically loaded library. Yet the valgrind FAQ: http://valgrind.org/docs/manual/faq.html#faq.java does indicate that this might at least be possible: --- begin --- in theory Valgrind can run any Java program just fine, even those that use JNI and are partially implemented in other languages like C and C++. In practice, Java implementations tend to do nasty things that most programs do not, and Valgrind sometimes falls over these corner cases. --- end --- Sorry if this is more appropriately a valgrind question and not a mapserver question, but I saw valgrind mentioned in a few places: HISTORY.TXT http://trac.osgeo.org/mapserver/ticket/2412 so I thought that maybe someone here might have experience as it relates to this specific case. - Rich -- View this message in context: http://www.nabble.com/detecting-memory-leaks-in-java-mapscript-tp15580371p15580371.html Sent from the Mapserver - User mailing list archive at Nabble.com. From cww at denterprises.org Tue Feb 19 18:18:29 2008 From: cww at denterprises.org (Colin Wetherbee) Date: Tue, 19 Feb 2008 21:18:29 -0500 Subject: [mapserver-users] The right tool for the job Message-ID: <47BB8DF5.60504@denterprises.org> Greetings. I'm new to using GIS data, and I have a project for which I think GIS and MapServer would work well. I'd like to run the basic idea by this list and get your input as to whether I'm choosing the right tool for the job. I have a PostgreSQL 8.2 database with PostGIS extensions installed, which stores, in GIS form, coordinates for airports around the world. I also have a rather large Perl web application that accesses other things in this database. This is the application to which I would like to add some fancy maps. Essentially, I'd like a map of the world, and I'd like to be able to highlight certain airports and draw different types of lines between them, based on dynamic input from the user through the Perl application. Each web page could potentially include a different sort of map with different locations highlighted. At peak usage, I suspect at least 75 maps would need to be generated per second, with an average of 30-40 data points and various amounts of connecting lines between them per map. Is this the sort of thing MapServer is good at doing? I've read some of the web site, and really, I can't make heads or tails of quite a bit of it, especially with respect to Perl. Thanks. Colin From saperlipopette at gmx.ch Tue Feb 19 23:54:08 2008 From: saperlipopette at gmx.ch (=?ISO-8859-1?Q?K=E4pt=27n_Haddock?=) Date: Wed, 20 Feb 2008 08:54:08 +0100 Subject: re[MAPSERVER-USERS] ad angle from database to rotate symbol -> Symbol definition error In-Reply-To: <47BAF2FC.3090103@dmsolutions.ca> References: <15561388.post@talk.nabble.com> <47BAF2FC.3090103@dmsolutions.ca> Message-ID: <47BBDCA0.1000906@gmx.ch> YA, thank you very much for your help! Things work as expected if I write ANGLE [orientation] # orientation being the name of the column of the postgis-table Thanks! I do find it confusing that declaring the column-name with the data works differently for different options LABELITEM "columnname" # LABELITEM [columnname] won't work ANGLE [columnname] # ANGLE "columnname" won't work How could I have figured this out myself? Which part of the documentation did I miss? best regards paul Yewondwossen Assefa schrieb: > Paul, > > I think the syntax for attribute binding is something like > ANGLE [orientation] (attribute value in brackets). Could you try > changing you map file and give it a try. > > Best Regards, > > > Paul L wrote: >> Dear List >> >> I'm not the first one to ask this question, but I am unable to use >> the older >> list-posts as in the meantime (mapserver 5.0) the ANGLEITEM seems to be >> deprecated, if I understand this document >> http://mapserver.gis.umn.edu/development/rfc/ms-rfc-19 >> correctly. >> >> I am reading points from a postgis-table and would like Mapserver to >> rotate >> the symbols of each point according to the rotation-value stored as >> integer >> in the same table. It works fine as long as I hardcode the angle like >> "ANGLE=45". As soon as I try setting ANGLE="orientation" I get the >> errormessage: >> getSymbol(): Symbol definition error. Parsing error near >> (orientierung):(line 126) >> >> Can you help me find my errors? >> Thank you very much >> Paul >> >> P.S. I can actually read the angle and display it as a label, so it >> shouldn't be a problem of reading from the database. >> >> >> LAYER >> >> NAME points >> TYPE POINT >> CONNECTIONTYPE POSTGIS >> CONNECTION "dbname=test_postgis user=postgres password=postgres >> host=localhost port=5432" >> DATA "geometry from (select id, name, orientation, geometry from >> points) >> as foo USING UNIQUE id USING SRID=-1" >> STATUS DEFAULT >> TRANSPARENCY 65 >> >> CLASS >> STYLE >> SYMBOL "U" >> SIZE 15 >> COLOR 0 0 150 >> ANTIALIAS TRUE >> ANGLE 45 >> #ANGLE "orientation" #throws error: getSymbol(): Symbol >> definition error >> (..) >> END >> END >> END > > From umn-ms at hydrotec.de Tue Feb 19 23:58:00 2008 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Wed, 20 Feb 2008 08:58:00 +0100 Subject: Antwort: Re: [MAPSERVER-USERS] thread safety In-Reply-To: <15562408.post@talk.nabble.com> Message-ID: Hi Rich I saw, that you made a thread on java/threading/memory-leaks "on your own". Although I spend some time on the same issues in the last years I can hardly give new input. Don't know wether you saw these: 1. http://www.nabble.com/forum/ViewPost.jtp?post=5707320&framed=y We worked around threading-problems with Java-synchronizing. By doing so, the application becomes stable in stress-tests, but looses the ability to use many CPUs. (On the other hand: http://www.nabble.com/forum/ViewPost.jtp?post=15410399&framed=y shows, that the mapserver-locks prevent using many CPU's in any case.) 2. You cited the post about the delete-problem. (http://www.nabble.com/forum/ViewPost.jtp?post=1548675&framed=y) This issue was adressed in Mapserver 5.0: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-24 So the garbage-collector shouldn't crash the jvm any more. (My personal opinion is to use delete anyway, since freeing C-memory in the garbage-collector-thread sounds dangerous to me. But as far as I know, there are no more documented problems.) 3. I also spent time in watching memory-leaks inside Mapscript/java and abandoned valgrind-approach. Seemed to be to complex, since much memory-handling of the JVM is documented. My approaches: Variant 1: In cases, where I had a guess what to look for, I wrote a small C-program, which called the suspect functions and analysed the behaviour of this small program. (Successfully used in http://trac.osgeo.org/mapserver/ticket/1662.) Didn't use valgrind but memwatch ( http://www.linkdata.se/sourcecode.html). But this is purely a matter of taste. Disadvantage: Doesn't help, if you have no guess. Variant 2: Watching memory-usage using top from outside during stress-tests. With some awk-sed-batch-unix-stuff it resulted in pictures like this: http://trac.osgeo.org/mapserver/attachment/ticket/1662/before-after.zip Disadvantage: Black box Sorry. That's hardly helpfull. But I'm interested in your progress. Benedikt Rothe mapserver-users-bounces at lists.osgeo.org schrieb am 20.02.2008 02:26:04: > > Any advice about tracking down memory leaks that might exist in java > mapscript? > > For the context of why I'm trying to do this, see the following thread: > > http://www.nabble.com/thread-safety-to15514019.html > > I installed the debian sarge backport of valgrind (valgrind-3.2.0-Debian), > and > tried invoking java prefaced with: > > valgrind --leak-check=full --smc-check=all -v > > No leaks were reported, but I don't think it really checked where I wanted > it > to check. libmapscript.so is loaded with the following: > > System.loadLibrary("mapscript"); > > And from the output it doesn't look like valgrind is actually instrumenting > that library, and I can't figure out how to tell it to explicitly instrument > a > dynamically loaded library. > > Yet the valgrind FAQ: > > http://valgrind.org/docs/manual/faq.html#faq.java > > does indicate that this might at least be possible: > > --- begin --- > in theory Valgrind can run any Java program just fine, even those that use > JNI and are partially implemented in other languages like C and C++. In > practice, Java implementations tend to do nasty things that most programs > do not, and Valgrind sometimes falls over these corner cases. > --- end --- > > Sorry if this is more appropriately a valgrind question and not a mapserver > question, but I saw valgrind mentioned in a few places: > > HISTORY.TXT > http://trac.osgeo.org/mapserver/ticket/2412 > > so I thought that maybe someone here might have experience as it relates to > this specific case. > > - Rich > > -- > View this message in context: http://www.nabble.com/detecting- > memory-leaks-in-java-mapscript-tp15580371p15580371.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From hanscastorp76 at yahoo.es Wed Feb 20 01:24:03 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Wed, 20 Feb 2008 10:24:03 +0100 Subject: [mapserver-users] AGG_Q + raster problem In-Reply-To: <47BB28AA.2090500@swoodbridge.com> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> <033401c87319$e18dc380$140002c0@shark> <001801c8731c$685700f0$6501a8c0@signo3> <036601c8731e$322b22c0$140002c0@shark> <002e01c87325$3cb4df90$6501a8c0@signo3> <47BB28AA.2090500@swoodbridge.com> Message-ID: <003001c873a2$57180fb0$6501a8c0@signo3> Hi, Stephen The output for mapserver -v is: MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS _SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS _SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPU T=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks -----Mensaje original----- De: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Enviado el: martes, 19 de febrero de 2008 20:06 Para: Hans Castorp CC: 'Brent Fraser'; mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, What is the output of: mapserv -v Thanks, -Steve W Hans Castorp wrote: > Yes, I'm completely sure that the image I've attached was produced with this > OUTPUT statement: > > OUTPUTFORMAT > NAME 'AGGA' > DRIVER AGG/PNG > IMAGEMODE RGBA > FORMATOPTION "TRANSPARENT=ON" > #TRANSPARENT ON > END > > > > -----Mensaje original----- > De: Brent Fraser [mailto:bfraser at geoanalytic.com] > Enviado el: martes, 19 de febrero de 2008 18:38 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > Hans, > > I did a "gdalinfo" on the image you attached, it has only > 32 colors defined (so it looks "bad"): > > Driver: PNG/Portable Network Graphics > Size is 256, 256 > Coordinate System is `' > Corner Coordinates: > Upper Left ( 0.0, 0.0) > Lower Left ( 0.0, 256.0) > Upper Right ( 256.0, 0.0) > Lower Right ( 256.0, 256.0) > Center ( 128.0, 128.0) > Band 1 Block=256x1 Type=Byte, ColorInterp=Palette > NoData Value=0 > Color Table (RGB with 32 entries) > 0: 239,235,231,0 > 1: 126,63,0,255 > 2: 189,189,63,255 > 3: 126,126,189,255 > 4: 63,126,126,255 > 5: 189,252,189,255 > 6: 63,0,63,255 > 7: 0,63,63,255 > 8: 63,63,126,255 > 9: 252,189,252,255 > 10: 126,63,126,255 > 11: 189,252,126,255 > 12: 189,126,189,255 > 13: 63,0,0,255 > 14: 189,126,63,255 > 15: 126,189,63,255 > 16: 0,63,0,255 > 17: 252,189,126,255 > 18: 252,189,189,255 > 19: 126,189,126,255 > 20: 252,252,189,255 > 21: 189,126,126,255 > 22: 0,0,0,255 > 23: 63,126,63,255 > 24: 189,189,189,255 > 25: 252,252,252,255 > 26: 63,63,0,255 > 27: 189,189,126,255 > 28: 126,63,63,255 > 29: 126,126,126,255 > 30: 63,63,63,255 > 31: 126,126,63,255 > > Are you sure this is the image produced from your new map > file (it's not an old one left over from an earlier attempt > is it)? > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > ----- Original Message ----- > From: "Hans Castorp" > To: "'Brent Fraser'" > Cc: > Sent: Tuesday, February 19, 2008 10:25 AM > Subject: RE: [mapserver-users] AGG_Q + raster problem > > > Removing DITHER statement I get an "8 bit like" image, as > you can see in the > attachment... > I think I'm going crazy with all this trouble... > > > -----Mensaje original----- > De: Brent Fraser [mailto:bfraser at geoanalytic.com] > Enviado el: martes, 19 de febrero de 2008 18:07 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > Hans, > > Try removing PROCESSING "DITHER=YES" from the ORTOFOTO > layer definition. I think it is converting the 24-bit input > raster to 8-bit before it renders it to the 24-bit output > image. > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > ----- Original Message ----- > From: "Hans Castorp" > To: "'Brent Fraser'" > Cc: > Sent: Tuesday, February 19, 2008 9:36 AM > Subject: RE: [mapserver-users] AGG_Q + raster problem > > > Hi, Brent > > I'm using mapserver 5.0.0 for Windows. > > I have no problems with vectorial data (shapefiles). The > rest of my mapfile > is like this: > > MAP > NAME 'gmap' > SIZE 800 600 > STATUS ON > EXTENT 559273 4709373 584263 4737543 > FONTSET cartografia.fonts > TRANSPARENT TRUE > IMAGECOLOR 239 235 231 > SHAPEPATH "C:\ms4w\apps\ka-map-1.0\mapdata\xxxxx\" > IMAGETYPE AGGA > CONFIG "PROJ_LIB" "C:\ms4w\proj\nad\" > > WEB > IMAGEPATH 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' > IMAGEURL 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' > END > > PROJECTION > "init=epsg:23029" > END > > REFERENCE > EXTENT 559273 4709373 584263 4737543 > SIZE 193 236 > IMAGE > 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\css\img\keymap.gif' > END > > LEGEND > STATUS ON > KEYSPACING 5 10 > KEYSIZE 20 12 > IMAGECOLOR 255 255 255 > LABEL > TYPE TRUETYPE > FONT bluehigh > COLOR 0 0 0 > OUTLINECOLOR 254 254 254 > SIZE 12 > END > END > > OUTPUTFORMAT > NAME 'AGGA' > DRIVER AGG/PNG > IMAGEMODE RGBA > FORMATOPTION "TRANSPARENT=ON" > #TRANSPARENT ON > END > > ################## > #SYMBOL DEFINITION > ################## > > WEB > HEADER "tlg_header.xml" > FOOTER "tlg_footer.xml" > END > > #************** > #MDT > #************** > LAYER > NAME "MDT" > STATUS DEFAULT > GROUP "MDT" > TYPE raster > OPACITY 75 > #PROCESSING "SCALE=AUTO" > PROCESSING "DITHER=YES" > CLASS > MINSCALE 15000 > END > DATA "mdtxxxxx2.tif" > END > > #************** > #ORTOFOTO > #************** > LAYER > NAME "ORTOFOTO" > STATUS DEFAULT > GROUP "ORTOFOTO" > TYPE raster > DATA "ortoxxxxx.ecw" > #PROCESSING "SCALE=AUTO" > PROCESSING "DITHER=YES" > CLASS > MAXSCALE 15000 > END > END > > ################## > #LAYERS DEFINITION > ################## > > END ## end Map > > > > > > > -----Mensaje original----- > De: Brent Fraser [mailto:bfraser at geoanalytic.com] > Enviado el: martes, 19 de febrero de 2008 16:46 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > Hans, > > That is stange. I've tested mapserver 5.0.0. Beta 4 (it's > the only v5 I've got compiled) and it gives me a 24 bit > color image. What version of Mapserver are you using? Can > you send your entire map file? > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > ----- Original Message ----- > From: "Hans Castorp" > To: > Cc: > Sent: Tuesday, February 19, 2008 2:21 AM > Subject: RE: [mapserver-users] AGG_Q + raster problem > > > Yes, I'm still getting a quantized image using this > statement: > > OUTPUTFORMAT > NAME 'AGG_PNG' > DRIVER AGG/PNG > IMAGEMODE RGB > END > > -----Mensaje original----- > De: Brent Fraser [mailto:bfraser at geoanalytic.com] > Enviado el: lunes, 18 de febrero de 2008 21:37 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: RE: [mapserver-users] AGG_Q + raster problem > > So when you remove all the quantize options, you still get a > quantized > image on output? Using something like: > > OUTPUTFORMAT > NAME 'AGG_PNG' > DRIVER AGG/PNG > IMAGEMODE RGB > END > > > >> This, by example >> >> >> -----Mensaje original----- >> De: Guillaume Sueur > [mailto:guillaume.sueur at neogeo-online.net] >> Enviado el: lunes, 18 de febrero de 2008 19:04 >> Para: Hans Castorp; mapserver-users at lists.osgeo.org >> Asunto: Re: [mapserver-users] AGG_Q + raster problem >> >> what's the result in standard AGG mode ? >> >> Hans Castorp a ?crit : >>> The result is the same with or without this line... >>> >>> >>> -----Mensaje original----- >>> De: Guillaume Sueur > [mailto:guillaume.sueur at neogeo-online.net] >>> Enviado el: lunes, 18 de febrero de 2008 18:59 >>> Para: Hans Castorp >>> CC: mapserver-users at lists.osgeo.org >>> Asunto: Re: [mapserver-users] AGG_Q + raster problem >>> >>> quantize_colors=255 is maybe the reason why your colors > are reindexed on >>> a 256 colors palette. >>> >>> Hans Castorp a ?crit : >>>> Thanks Brent, but there is a mistake, the example I > attached is not the >>>> mapservers original output: I have prepared it and give > ....gif extensi?n. >>>> This is the way I configure my output: >>>> >>>> OUTPUTFORMAT >>>> NAME 'AGG_Q' >>>> DRIVER AGG/PNG >>>> IMAGEMODE RGBA >>>> FORMATOPTION "TRANSPARENT=ON" >>>> FORMATOPTION "QUANTIZE_FORCE=ON" >>>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>>> FORMATOPTION "QUANTIZE_COLORS=255" >>>> END >>>> >>>> Thanks in advance. >>>> >>>> >>>> >>>> >>>> -----Mensaje original----- >>>> De: Brent Fraser [mailto:bfraser at geoanalytic.com] >>>> Enviado el: lunes, 18 de febrero de 2008 18:17 >>>> Para: Hans Castorp >>>> CC: mapserver-users at lists.osgeo.org >>>> Asunto: Re: [mapserver-users] AGG_Q + raster problem >>>> >>>> Hans, >>>> >>>> GIF supports only 256 colors. Use PNG (or JPG) for an > output format. >>>> Brent Fraser >>>> >>>>> Hi to all, >>>>> >>>>> >>>>> >>>>> I'm trying to publish a cartography using both > vectorial and raster >>>>> layers. >>>>> I'm using mapserver 5 and agg_q as output format. There > is no problem >>>>> about >>>>> vectorial files (shapefiles): all work fine. >>>>> >>>>> The only problem I'm having is trying to publish some > raster stuff: an >>>>> aerial photo (.geotiff) and a digital terrain model > (.ecw). I'm not >>>>> capable >>>>> to make the output showing real colours; there is an > example attached >>>>> to >>>>> this mail (an aerial photo). >>>>> >>>>> >>>>> >>>>> My mapfile looks in this way: >>>>> >>>>> >>>>> >>>>> LAYER >>>>> NAME "MDT" >>>>> STATUS DEFAULT >>>>> GROUP "MDT" >>>>> TYPE raster >>>>> DATA "mdt.tif" >>>>> CLASS >>>>> MINSCALE 15000 >>>>> END >>>>> END >>>>> >>>>> LAYER >>>>> NAME "ORTOFOTO" >>>>> STATUS DEFAULT >>>>> GROUP "ORTOFOTO" >>>>> TYPE raster >>>>> DATA "ortofoto.ecw" >>>>> CLASS >>>>> MAXSCALE 15000 >>>>> END >>>>> END >>>>> >>>>> >>>>> >>>>> What I have to do to solve this? >>>>> >>>>> >>>>> >>>>> Thanks in advance to everyone. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Hans Castorp >>>> No virus found in this incoming message. >>>> Checked by AVG Free Edition. >>>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - > Release Date: >>> 18/02/2008 >>>> 5:50 >>>> >>>> >>>> No virus found in this outgoing message. >>>> Checked by AVG Free Edition. >>>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - > Release Date: >>> 18/02/2008 >>>> 5:50 >>>> >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >> -- >> Guillaume SUEUR >> Expert SIG et OpenSource >> NEOGEO >> 46 RUE MATABIAU >> 31000 TOULOUSE >> 06 74 91 95 20 >> Site web : http://www.neogeo-online.net >> >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release > Date: >> 18/02/2008 >> 5:50 >> >> >> No virus found in this outgoing message. >> Checked by AVG Free Edition. >> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release > Date: >> 18/02/2008 >> 5:50 >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release > Date: 18/02/2008 > 18:49 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release > Date: 18/02/2008 > 18:49 > > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release > Date: 18/02/2008 > 18:49 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release > Date: 18/02/2008 > 18:49 > > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release > Date: 18/02/2008 > 18:49 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release > Date: 18/02/2008 > 18:49 > > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 > 18:49 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 > 18:49 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.8/1288 - Release Date: 19/02/2008 20:47 From hanscastorp76 at yahoo.es Wed Feb 20 01:33:48 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Wed, 20 Feb 2008 10:33:48 +0100 Subject: [mapserver-users] AGG_Q + raster problem In-Reply-To: <03c101c87325$ff3a8ab0$140002c0@shark> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> <033401c87319$e18dc380$140002c0@shark> <001801c8731c$685700f0$6501a8c0@signo3> <036601c8731e$322b22c0$140002c0@shark> <002e01c87325$3cb4df90$6501a8c0@signo3> <03c101c87325$ff3a8ab0$140002c0@shark> Message-ID: <003101c873a3$b37df8e0$6501a8c0@signo3> Hi, Brent Setting the output format to jpeg the rendering is perfect, as you can see in the attached tile. But this doesn't help me; I need a format with transparency... Thanks, -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 19:34 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem I'm running out of ideas. Have you tried setting the output format to JPG? Since it's a 24-bit format (only), this might indicate if the problem is in the output stage or in the input/processing stage. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: "'Brent Fraser'" Cc: Sent: Tuesday, February 19, 2008 11:28 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Yes, I'm completely sure that the image I've attached was produced with this OUTPUT statement: OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA FORMATOPTION "TRANSPARENT=ON" #TRANSPARENT ON END -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 18:38 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, I did a "gdalinfo" on the image you attached, it has only 32 colors defined (so it looks "bad"): Driver: PNG/Portable Network Graphics Size is 256, 256 Coordinate System is `' Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 256.0) Upper Right ( 256.0, 0.0) Lower Right ( 256.0, 256.0) Center ( 128.0, 128.0) Band 1 Block=256x1 Type=Byte, ColorInterp=Palette NoData Value=0 Color Table (RGB with 32 entries) 0: 239,235,231,0 1: 126,63,0,255 2: 189,189,63,255 3: 126,126,189,255 4: 63,126,126,255 5: 189,252,189,255 6: 63,0,63,255 7: 0,63,63,255 8: 63,63,126,255 9: 252,189,252,255 10: 126,63,126,255 11: 189,252,126,255 12: 189,126,189,255 13: 63,0,0,255 14: 189,126,63,255 15: 126,189,63,255 16: 0,63,0,255 17: 252,189,126,255 18: 252,189,189,255 19: 126,189,126,255 20: 252,252,189,255 21: 189,126,126,255 22: 0,0,0,255 23: 63,126,63,255 24: 189,189,189,255 25: 252,252,252,255 26: 63,63,0,255 27: 189,189,126,255 28: 126,63,63,255 29: 126,126,126,255 30: 63,63,63,255 31: 126,126,63,255 Are you sure this is the image produced from your new map file (it's not an old one left over from an earlier attempt is it)? Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: "'Brent Fraser'" Cc: Sent: Tuesday, February 19, 2008 10:25 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Removing DITHER statement I get an "8 bit like" image, as you can see in the attachment... I think I'm going crazy with all this trouble... -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 18:07 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, Try removing PROCESSING "DITHER=YES" from the ORTOFOTO layer definition. I think it is converting the 24-bit input raster to 8-bit before it renders it to the 24-bit output image. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: "'Brent Fraser'" Cc: Sent: Tuesday, February 19, 2008 9:36 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Hi, Brent I'm using mapserver 5.0.0 for Windows. I have no problems with vectorial data (shapefiles). The rest of my mapfile is like this: MAP NAME 'gmap' SIZE 800 600 STATUS ON EXTENT 559273 4709373 584263 4737543 FONTSET cartografia.fonts TRANSPARENT TRUE IMAGECOLOR 239 235 231 SHAPEPATH "C:\ms4w\apps\ka-map-1.0\mapdata\xxxxx\" IMAGETYPE AGGA CONFIG "PROJ_LIB" "C:\ms4w\proj\nad\" WEB IMAGEPATH 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' IMAGEURL 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' END PROJECTION "init=epsg:23029" END REFERENCE EXTENT 559273 4709373 584263 4737543 SIZE 193 236 IMAGE 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\css\img\keymap.gif' END LEGEND STATUS ON KEYSPACING 5 10 KEYSIZE 20 12 IMAGECOLOR 255 255 255 LABEL TYPE TRUETYPE FONT bluehigh COLOR 0 0 0 OUTLINECOLOR 254 254 254 SIZE 12 END END OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA FORMATOPTION "TRANSPARENT=ON" #TRANSPARENT ON END ################## #SYMBOL DEFINITION ################## WEB HEADER "tlg_header.xml" FOOTER "tlg_footer.xml" END #************** #MDT #************** LAYER NAME "MDT" STATUS DEFAULT GROUP "MDT" TYPE raster OPACITY 75 #PROCESSING "SCALE=AUTO" PROCESSING "DITHER=YES" CLASS MINSCALE 15000 END DATA "mdtxxxxx2.tif" END #************** #ORTOFOTO #************** LAYER NAME "ORTOFOTO" STATUS DEFAULT GROUP "ORTOFOTO" TYPE raster DATA "ortoxxxxx.ecw" #PROCESSING "SCALE=AUTO" PROCESSING "DITHER=YES" CLASS MAXSCALE 15000 END END ################## #LAYERS DEFINITION ################## END ## end Map -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 16:46 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, That is stange. I've tested mapserver 5.0.0. Beta 4 (it's the only v5 I've got compiled) and it gives me a 24 bit color image. What version of Mapserver are you using? Can you send your entire map file? Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: Cc: Sent: Tuesday, February 19, 2008 2:21 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Yes, I'm still getting a quantized image using this statement: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: lunes, 18 de febrero de 2008 21:37 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] AGG_Q + raster problem So when you remove all the quantize options, you still get a quantized image on output? Using something like: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END > This, by example > > > -----Mensaje original----- > De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] > Enviado el: lunes, 18 de febrero de 2008 19:04 > Para: Hans Castorp; mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > what's the result in standard AGG mode ? > > Hans Castorp a ?crit : >> The result is the same with or without this line... >> >> >> -----Mensaje original----- >> De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] >> Enviado el: lunes, 18 de febrero de 2008 18:59 >> Para: Hans Castorp >> CC: mapserver-users at lists.osgeo.org >> Asunto: Re: [mapserver-users] AGG_Q + raster problem >> >> quantize_colors=255 is maybe the reason why your colors are reindexed on >> a 256 colors palette. >> >> Hans Castorp a ?crit : >>> Thanks Brent, but there is a mistake, the example I attached is not the >>> mapservers original output: I have prepared it and give .....gif extensi?n. >>> >>> This is the way I configure my output: >>> >>> OUTPUTFORMAT >>> NAME 'AGG_Q' >>> DRIVER AGG/PNG >>> IMAGEMODE RGBA >>> FORMATOPTION "TRANSPARENT=ON" >>> FORMATOPTION "QUANTIZE_FORCE=ON" >>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>> FORMATOPTION "QUANTIZE_COLORS=255" >>> END >>> >>> Thanks in advance. >>> >>> >>> >>> >>> -----Mensaje original----- >>> De: Brent Fraser [mailto:bfraser at geoanalytic.com] >>> Enviado el: lunes, 18 de febrero de 2008 18:17 >>> Para: Hans Castorp >>> CC: mapserver-users at lists.osgeo.org >>> Asunto: Re: [mapserver-users] AGG_Q + raster problem >>> >>> Hans, >>> >>> GIF supports only 256 colors. Use PNG (or JPG) for an output format. >>> >>> Brent Fraser >>> >>>> Hi to all, >>>> >>>> >>>> >>>> I'm trying to publish a cartography using both vectorial and raster >>>> layers. >>>> I'm using mapserver 5 and agg_q as output format. There is no problem >>>> about >>>> vectorial files (shapefiles): all work fine. >>>> >>>> The only problem I'm having is trying to publish some raster stuff: an >>>> aerial photo (.geotiff) and a digital terrain model (.ecw). I'm not >>>> capable >>>> to make the output showing real colours; there is an example attached >>>> to >>>> this mail (an aerial photo). >>>> >>>> >>>> >>>> My mapfile looks in this way: >>>> >>>> >>>> >>>> LAYER >>>> NAME "MDT" >>>> STATUS DEFAULT >>>> GROUP "MDT" >>>> TYPE raster >>>> DATA "mdt.tif" >>>> CLASS >>>> MINSCALE 15000 >>>> END >>>> END >>>> >>>> LAYER >>>> NAME "ORTOFOTO" >>>> STATUS DEFAULT >>>> GROUP "ORTOFOTO" >>>> TYPE raster >>>> DATA "ortofoto.ecw" >>>> CLASS >>>> MAXSCALE 15000 >>>> END >>>> END >>>> >>>> >>>> >>>> What I have to do to solve this? >>>> >>>> >>>> >>>> Thanks in advance to everyone. >>>> >>>> >>>> >>>> >>>> >>>> Hans Castorp >>> >>> No virus found in this incoming message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> No virus found in this outgoing message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > -- > Guillaume SUEUR > Expert SIG et OpenSource > NEOGEO > 46 RUE MATABIAU > 31000 TOULOUSE > 06 74 91 95 20 > Site web : http://www.neogeo-online.net > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.8/1288 - Release Date: 19/02/2008 20:47 -------------- next part -------------- A non-text attachment was scrubbed... Name: t-1340928l160256.jpg Type: image/jpeg Size: 17907 bytes Desc: not available URL: From hanscastorp76 at yahoo.es Wed Feb 20 02:58:37 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Wed, 20 Feb 2008 11:58:37 +0100 Subject: [mapserver-users] [UMN_MAPSERVER-USERS] Polygon layer opacity Message-ID: <004101c873af$8cbc4980$6501a8c0@signo3> I?m sorry but I think I have another problem (added to my non-solved raster ?dotted? rendering) :-) This time the problem is about a polygon layer which must have some transparency-opacity. I came to the conclusion that varying opacity level what I have are tiles with lighter or darker colours, but not really tiles with some level of transparency (I know it because I can?t see underlying layers). There are a couple of examples attached to this message. I?m using mapserver 5.0.0 over windows. Thanks in advance. Hans Castorp No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.8/1288 - Release Date: 19/02/2008 20:47 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at zeelandnet.nl Wed Feb 20 03:23:56 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Wed, 20 Feb 2008 12:23:56 +0100 Subject: [mapserver-users] The right tool for the job In-Reply-To: <47BB8DF5.60504@denterprises.org> References: <47BB8DF5.60504@denterprises.org> Message-ID: <47BC0DCC.6080808@zeelandnet.nl> Hello Colin, Mapserver would be an excelent choice to serve the base map and even create the dynamic maps you want. You can also use the great spatial query possibilities of postGIS to create views in the database to create the lines on the fly and then serve these views through mapserver. Colin Wetherbee schreef: > Greetings. > > I'm new to using GIS data, and I have a project for which I think GIS > and MapServer would work well. I'd like to run the basic idea by this > list and get your input as to whether I'm choosing the right tool for > the job. > > I have a PostgreSQL 8.2 database with PostGIS extensions installed, > which stores, in GIS form, coordinates for airports around the world. Excelent choice! > > I also have a rather large Perl web application that accesses other > things in this database. This is the application to which I would > like to add some fancy maps. > > Essentially, I'd like a map of the world, You can connect to other WMS services such as Demis to display a world map, either from a server or from a client (using for instance openlayers) > and I'd like to be able to highlight certain airports and draw > different types of lines between them, based on dynamic input from the > user through the Perl application. You can use user variables to connect to the mapfile (search for "substitute variables" on the mapserver website. I would like to hand you the link, but I cannot connect to http://mapserver.gis.umn.edu at the moment) > Each web page could potentially include a different sort of map with > different locations highlighted. No problem > At peak usage, I suspect at least 75 maps would need to be generated > per second, with an average of 30-40 data points and various amounts > of connecting lines between them per map. Make sure the server is capable of this with regards to bandwidth, memory and processor capacity. This is in essence not a problem for mapserv. > > Is this the sort of thing MapServer is good at doing? I've read some > of the web site, and really, I can't make heads or tails of quite a > bit of it, especially with respect to Perl. I think it is, but it is best to combine it with a strong AJAX viewer to get the best dynamic user experience and taking the most (views and queries) out of postGIS. > > Thanks. > > Colin > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From hanscastorp76 at yahoo.es Wed Feb 20 03:16:21 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Wed, 20 Feb 2008 12:16:21 +0100 Subject: [mapserver-users] RV: [UMN_MAPSERVER-USERS] Polygon layer opacity Message-ID: <004601c873b2$07484990$6501a8c0@signo3> Sorry, here are the examples Hans Castorp No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.8/1288 - Release Date: 19/02/2008 20:47 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.8/1288 - Release Date: 19/02/2008 20:47 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: opacity_40.png Type: image/png Size: 859 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: opacity_80.png Type: image/png Size: 859 bytes Desc: not available URL: From szekerest at gmail.com Wed Feb 20 04:01:37 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 20 Feb 2008 13:01:37 +0100 Subject: [MAPSERVER-USERS] detecting memory leaks in java mapscript In-Reply-To: <15580371.post@talk.nabble.com> References: <15580371.post@talk.nabble.com> Message-ID: Rich, Have you tried making a threadtest with your mapfile? The treadtest option is a part of the java mapscript package. Does it seem to reproduce the issue? You should anyway prepare a simple example along with some test data to be able to inspect the problem. Best regards, Tamas 2008/2/20, rich.fromm : > > Any advice about tracking down memory leaks that might exist in java > mapscript? > > For the context of why I'm trying to do this, see the following thread: > > http://www.nabble.com/thread-safety-to15514019.html > > I installed the debian sarge backport of valgrind (valgrind-3.2.0-Debian), > and > tried invoking java prefaced with: > > valgrind --leak-check=full --smc-check=all -v > > No leaks were reported, but I don't think it really checked where I wanted > it > to check. libmapscript.so is loaded with the following: > > System.loadLibrary("mapscript"); > > And from the output it doesn't look like valgrind is actually instrumenting > that library, and I can't figure out how to tell it to explicitly instrument > a > dynamically loaded library. > > Yet the valgrind FAQ: > > http://valgrind.org/docs/manual/faq.html#faq.java > > does indicate that this might at least be possible: > > --- begin --- > in theory Valgrind can run any Java program just fine, even those that use > JNI and are partially implemented in other languages like C and C++. In > practice, Java implementations tend to do nasty things that most programs > do not, and Valgrind sometimes falls over these corner cases. > --- end --- > > Sorry if this is more appropriately a valgrind question and not a mapserver > question, but I saw valgrind mentioned in a few places: > > HISTORY.TXT > http://trac.osgeo.org/mapserver/ticket/2412 > > so I thought that maybe someone here might have experience as it relates to > this specific case. > > - Rich > > -- > View this message in context: http://www.nabble.com/detecting-memory-leaks-in-java-mapscript-tp15580371p15580371.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From juozas.urbonas at teltonika.lt Wed Feb 20 05:05:01 2008 From: juozas.urbonas at teltonika.lt (Juozas Urbonas) Date: Wed, 20 Feb 2008 15:05:01 +0200 Subject: [mapserver-users] How MapServer uses overviews in GDAL? Message-ID: Hi All. I'm building a GDAL plugin on top of some ActiveX map component, I want to use it with MapServer and provide WMS service. What is the best way to implement overviews? I was thinking about arbitrary overviews approach, but does MapServer utilizes arbitrary overviews, because my HasArbitraryOverviews is not getting called by MapServer. Or maybe discrete overviews is the only way to go with MapServer? Please advise. Juozas. P.s. I'm new to MapServer and GDAL so maybe I'm misunderstanding something. -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Wed Feb 20 05:46:28 2008 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed, 20 Feb 2008 06:46:28 -0700 Subject: [mapserver-users] ITEMNQUERYMAP problem... In-Reply-To: <47B9A936.7060001@yahoo.com> References: <47B9A936.7060001@yahoo.com> Message-ID: On Feb 18, 2008 8:50 AM, Bruno Gendron - Consultant wrote: > Hi all, > > We have an Mapserver-Google mashup application with an OpenLayers > user-interface... > > A problem arises when a user does a ITEMNQUERYMAP request on a feature > that is outside the map extent. > > For example: > > The first request below works perfectly: the map gets drawn, with the > "searched" feature highlited in red. > > http://www.socioscope.qc.ca/wms/?map=nbcommalim_sr_01.map&layers=all&map_imagetype=png&QLAYER=nbcommalim_sr_01&QITEM=SRIDU&QSTRING=462032800&MODE=ITEMNQUERYMAP&mapext=-8244344+5679271+-8160264+5740420&map_size=840+675 > > The second request below DOES NOT WORK, because the "searched" feature > is OUTSIDE the mapextent. The following message then gets returned : > "msQueryByAttributes(): Search returned no results. No matching > record(s) found." > > http://www.socioscope.qc.ca/wms/?map=nbcommalim_sr_01.map&layers=all&map_imagetype=png&QLAYER=nbcommalim_sr_01&QITEM=SRIDU&QSTRING=462032800&MODE=ITEMNQUERYMAP&mapext=-8193972+5717126+-8161869+5742924&map_size=840+675 > > WHY? Couldn't Mapserver simply return a map even if the query result is > empty? Am I missing something? You could se your extents larger if you actually have data outside of your extents. Have you considered tried using EMPTY "some_page.html"? MapServer will display some_page.html when there are no results. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From bfraser at geoanalytic.com Wed Feb 20 07:06:32 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 20 Feb 2008 08:06:32 -0700 Subject: [mapserver-users] AGG_Q + raster problem References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> <033401c87319$e18dc380$140002c0@shark> <001801c8731c$685700f0$6501a8c0@signo3> <036601c8731e$322b22c0$140002c0@shark> <002e01c87325$3 <003101c873a3$b37df8e0$6501a8c0@signo3> Message-ID: <018001c873d2$2d8a64b0$140002c0@shark> Well, at least we know it's an output problem, not an input or processing directive problem. We could test to see if the problem is with the AGG renderer by using the old GD renderer: IMAGETYPE GD_RGB_PNG # output type OUTPUTFORMAT NAME 'GD_RGB_PNG' DRIVER GD/PNG IMAGEMODE RGBA # IMAGEMODE RGB END Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: "'Brent Fraser'" Cc: Sent: Wednesday, February 20, 2008 2:33 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Hi, Brent Setting the output format to jpeg the rendering is perfect, as you can see in the attached tile. But this doesn't help me; I need a format with transparency... Thanks, -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 19:34 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem I'm running out of ideas. Have you tried setting the output format to JPG? Since it's a 24-bit format (only), this might indicate if the problem is in the output stage or in the input/processing stage. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: "'Brent Fraser'" Cc: Sent: Tuesday, February 19, 2008 11:28 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Yes, I'm completely sure that the image I've attached was produced with this OUTPUT statement: OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA FORMATOPTION "TRANSPARENT=ON" #TRANSPARENT ON END -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 18:38 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, I did a "gdalinfo" on the image you attached, it has only 32 colors defined (so it looks "bad"): Driver: PNG/Portable Network Graphics Size is 256, 256 Coordinate System is `' Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 256.0) Upper Right ( 256.0, 0.0) Lower Right ( 256.0, 256.0) Center ( 128.0, 128.0) Band 1 Block=256x1 Type=Byte, ColorInterp=Palette NoData Value=0 Color Table (RGB with 32 entries) 0: 239,235,231,0 1: 126,63,0,255 2: 189,189,63,255 3: 126,126,189,255 4: 63,126,126,255 5: 189,252,189,255 6: 63,0,63,255 7: 0,63,63,255 8: 63,63,126,255 9: 252,189,252,255 10: 126,63,126,255 11: 189,252,126,255 12: 189,126,189,255 13: 63,0,0,255 14: 189,126,63,255 15: 126,189,63,255 16: 0,63,0,255 17: 252,189,126,255 18: 252,189,189,255 19: 126,189,126,255 20: 252,252,189,255 21: 189,126,126,255 22: 0,0,0,255 23: 63,126,63,255 24: 189,189,189,255 25: 252,252,252,255 26: 63,63,0,255 27: 189,189,126,255 28: 126,63,63,255 29: 126,126,126,255 30: 63,63,63,255 31: 126,126,63,255 Are you sure this is the image produced from your new map file (it's not an old one left over from an earlier attempt is it)? Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: "'Brent Fraser'" Cc: Sent: Tuesday, February 19, 2008 10:25 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Removing DITHER statement I get an "8 bit like" image, as you can see in the attachment... I think I'm going crazy with all this trouble... -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 18:07 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, Try removing PROCESSING "DITHER=YES" from the ORTOFOTO layer definition. I think it is converting the 24-bit input raster to 8-bit before it renders it to the 24-bit output image. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: "'Brent Fraser'" Cc: Sent: Tuesday, February 19, 2008 9:36 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Hi, Brent I'm using mapserver 5.0.0 for Windows. I have no problems with vectorial data (shapefiles). The rest of my mapfile is like this: MAP NAME 'gmap' SIZE 800 600 STATUS ON EXTENT 559273 4709373 584263 4737543 FONTSET cartografia.fonts TRANSPARENT TRUE IMAGECOLOR 239 235 231 SHAPEPATH "C:\ms4w\apps\ka-map-1.0\mapdata\xxxxx\" IMAGETYPE AGGA CONFIG "PROJ_LIB" "C:\ms4w\proj\nad\" WEB IMAGEPATH 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' IMAGEURL 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' END PROJECTION "init=epsg:23029" END REFERENCE EXTENT 559273 4709373 584263 4737543 SIZE 193 236 IMAGE 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\css\img\keymap.gif' END LEGEND STATUS ON KEYSPACING 5 10 KEYSIZE 20 12 IMAGECOLOR 255 255 255 LABEL TYPE TRUETYPE FONT bluehigh COLOR 0 0 0 OUTLINECOLOR 254 254 254 SIZE 12 END END OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA FORMATOPTION "TRANSPARENT=ON" #TRANSPARENT ON END ################## #SYMBOL DEFINITION ################## WEB HEADER "tlg_header.xml" FOOTER "tlg_footer.xml" END #************** #MDT #************** LAYER NAME "MDT" STATUS DEFAULT GROUP "MDT" TYPE raster OPACITY 75 #PROCESSING "SCALE=AUTO" PROCESSING "DITHER=YES" CLASS MINSCALE 15000 END DATA "mdtxxxxx2.tif" END #************** #ORTOFOTO #************** LAYER NAME "ORTOFOTO" STATUS DEFAULT GROUP "ORTOFOTO" TYPE raster DATA "ortoxxxxx.ecw" #PROCESSING "SCALE=AUTO" PROCESSING "DITHER=YES" CLASS MAXSCALE 15000 END END ################## #LAYERS DEFINITION ################## END ## end Map -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: martes, 19 de febrero de 2008 16:46 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] AGG_Q + raster problem Hans, That is stange. I've tested mapserver 5.0.0. Beta 4 (it's the only v5 I've got compiled) and it gives me a 24 bit color image. What version of Mapserver are you using? Can you send your entire map file? Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Hans Castorp" To: Cc: Sent: Tuesday, February 19, 2008 2:21 AM Subject: RE: [mapserver-users] AGG_Q + raster problem Yes, I'm still getting a quantized image using this statement: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END -----Mensaje original----- De: Brent Fraser [mailto:bfraser at geoanalytic.com] Enviado el: lunes, 18 de febrero de 2008 21:37 Para: Hans Castorp CC: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] AGG_Q + raster problem So when you remove all the quantize options, you still get a quantized image on output? Using something like: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END > This, by example > > > -----Mensaje original----- > De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] > Enviado el: lunes, 18 de febrero de 2008 19:04 > Para: Hans Castorp; mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > what's the result in standard AGG mode ? > > Hans Castorp a ?crit : >> The result is the same with or without this line... >> >> >> -----Mensaje original----- >> De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] >> Enviado el: lunes, 18 de febrero de 2008 18:59 >> Para: Hans Castorp >> CC: mapserver-users at lists.osgeo.org >> Asunto: Re: [mapserver-users] AGG_Q + raster problem >> >> quantize_colors=255 is maybe the reason why your colors are reindexed on >> a 256 colors palette. >> >> Hans Castorp a ?crit : >>> Thanks Brent, but there is a mistake, the example I attached is not the >>> mapservers original output: I have prepared it and give .....gif extensi?n. >>> >>> This is the way I configure my output: >>> >>> OUTPUTFORMAT >>> NAME 'AGG_Q' >>> DRIVER AGG/PNG >>> IMAGEMODE RGBA >>> FORMATOPTION "TRANSPARENT=ON" >>> FORMATOPTION "QUANTIZE_FORCE=ON" >>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>> FORMATOPTION "QUANTIZE_COLORS=255" >>> END >>> >>> Thanks in advance. >>> >>> >>> >>> >>> -----Mensaje original----- >>> De: Brent Fraser [mailto:bfraser at geoanalytic.com] >>> Enviado el: lunes, 18 de febrero de 2008 18:17 >>> Para: Hans Castorp >>> CC: mapserver-users at lists.osgeo.org >>> Asunto: Re: [mapserver-users] AGG_Q + raster problem >>> >>> Hans, >>> >>> GIF supports only 256 colors. Use PNG (or JPG) for an output format. >>> >>> Brent Fraser >>> >>>> Hi to all, >>>> >>>> >>>> >>>> I'm trying to publish a cartography using both vectorial and raster >>>> layers. >>>> I'm using mapserver 5 and agg_q as output format. There is no problem >>>> about >>>> vectorial files (shapefiles): all work fine. >>>> >>>> The only problem I'm having is trying to publish some raster stuff: an >>>> aerial photo (.geotiff) and a digital terrain model (.ecw). I'm not >>>> capable >>>> to make the output showing real colours; there is an example attached >>>> to >>>> this mail (an aerial photo). >>>> >>>> >>>> >>>> My mapfile looks in this way: >>>> >>>> >>>> >>>> LAYER >>>> NAME "MDT" >>>> STATUS DEFAULT >>>> GROUP "MDT" >>>> TYPE raster >>>> DATA "mdt.tif" >>>> CLASS >>>> MINSCALE 15000 >>>> END >>>> END >>>> >>>> LAYER >>>> NAME "ORTOFOTO" >>>> STATUS DEFAULT >>>> GROUP "ORTOFOTO" >>>> TYPE raster >>>> DATA "ortofoto.ecw" >>>> CLASS >>>> MAXSCALE 15000 >>>> END >>>> END >>>> >>>> >>>> >>>> What I have to do to solve this? >>>> >>>> >>>> >>>> Thanks in advance to everyone. >>>> >>>> >>>> >>>> >>>> >>>> Hans Castorp >>> >>> No virus found in this incoming message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> No virus found in this outgoing message. >>> Checked by AVG Free Edition. >>> Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: >> 18/02/2008 >>> 5:50 >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > -- > Guillaume SUEUR > Expert SIG et OpenSource > NEOGEO > 46 RUE MATABIAU > 31000 TOULOUSE > 06 74 91 95 20 > Site web : http://www.neogeo-online.net > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.7/1285 - Release Date: > 18/02/2008 > 5:50 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.7/1286 - Release Date: 18/02/2008 18:49 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.8/1288 - Release Date: 19/02/2008 20:47 From warmerdam at pobox.com Wed Feb 20 07:37:23 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 20 Feb 2008 10:37:23 -0500 Subject: [mapserver-users] How MapServer uses overviews in GDAL? In-Reply-To: References: Message-ID: <47BC4933.7050609@pobox.com> Juozas Urbonas wrote: > Hi All. > > I'm building a GDAL plugin on top of some ActiveX map component, I want > to use it with MapServer and provide WMS service. What is the best way > to implement overviews? I was thinking about arbitrary overviews > approach, but does MapServer utilizes arbitrary overviews, because my > HasArbitraryOverviews is not getting called by MapServer. > Or maybe discrete overviews is the only way to go with MapServer? > Please advise. Juozas, Use of GDAL managed overviews is handled entirely within GDAL. MapServer just calls RasterIO() asking for a region of the file on disk read at a particular resolution and GDAL takes care of using the most appopropriate overviews, and such. "arbitrary overviews" is just a flag that a GDAL driver can return for formats which effectively can read efficiently at any resolutions. In practice it is not widely the case. But it isn't possible for you to prepare arbitrary overviews for a dataset except by encoding it in one of the particular formats. Generally speaking you would use gdaladdo to add descrete overview levels to an existing GDAL supported raster file, after which they would be used automatically by GDAL and MapServer. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From bfraser at geoanalytic.com Wed Feb 20 07:55:18 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 20 Feb 2008 08:55:18 -0700 Subject: user support (was Re: [mapserver-users] AGG_Q + raster problem) References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> <033401c87319$e18dc380$140002c0@shark> <001801c8731c$685700f0$6501a8c0@signo3> <036601c8731e$322b22c0$140002c0@shark> <002e01c87325$3 <003101c873a3$b37df8e0$6501a8c0@signo3> <018001c873d2$2d8a64b0$140002c0@shark> <47BC4791.80201@pobox.com> Message-ID: <01b601c873d8$fde56aa0$140002c0@shark> Frank (and all), Will do (as soon as we narrow it down). This problem got me thinking of ways to improve our current support methodology. I've only asked and answered questions on this mailing list. Are there other methods being used (reading the doc, irc, paid support, etc)? Is this list an effective way of solving user problems? Should/can we improve it? How? Perhaps a Summer-Of-Code opportunity? Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Frank Warmerdam" To: "Brent Fraser" Cc: "Hans Castorp" Sent: Wednesday, February 20, 2008 8:30 AM Subject: Re: [mapserver-users] AGG_Q + raster problem > Brent Fraser wrote: > > Well, at least we know it's an output problem, not an input > > or processing directive problem. We could test to see if > > the problem is with the AGG renderer by using the old GD > > renderer: > > Guys, > > I haven't been following this discussion closely but if you isolate > an easy to reproduce problem that can be filed in Trac (and assuming it > is raster related) I can likely dig further into it. But it seems there > is still some work that can be accomplished isolating it. > > Best regards, > -- > ---------------------------------------+------------------ -------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org > From warmerdam at pobox.com Wed Feb 20 08:22:13 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 20 Feb 2008 11:22:13 -0500 Subject: user support (was Re: [mapserver-users] AGG_Q + raster problem) In-Reply-To: <01b601c873d8$fde56aa0$140002c0@shark> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> <033401c87319$e18dc380$140002c0@shark> <001801c8731c$685700f0$6501a8c0@signo3> <036601c8731e$322b22c0$140002c0@shark> <002e01c87325$3 <003101c873a3$b37df8e0$6501a8c0@signo3> <018001c873d2$2d8a64b0$140002c0@shark> <47BC4791.80201@pobox.com> <01b601c873d8$fde56aa0$140002c0@shark> Message-ID: <47BC53B5.2000302@pobox.com> Brent Fraser wrote: > Frank (and all), > > Will do (as soon as we narrow it down). > > This problem got me thinking of ways to improve our > current support methodology. I've only asked and answered > questions on this mailing list. Are there other methods > being used (reading the doc, irc, paid support, etc)? Brent, I certainly *hope* there are people reading the docs! I do think a "debugging mapserver problems" howto would be helpful, but of course only if people read it. There are people who come to IRC for questions, and it is more efficient for back-and-forth debugging sort of stuff. One downside to IRC is few eyes - there are usually only a half dozen people in #mapserver who answer questions and their expertise is by no means comprehensive. Another downside is no permanent record that are easily searched by new people with problems. IRC plug: irc://irc.freenode.net/#mapserver There are certainly paid support arrangements. I think DM Solutions "Premiere Support" is one of the few "standard price list" type support arrangements. Lots and lots of folks will provide support as part of a larger service arrangement. Some folks will also provide support on an hourly basis. The OSGeo Service Provider Directory is a good way of identifying organizations claiming to offer some sort of MapServer support and expertise but exactly what they offer varies quite a bit and it can take time to narrow down on a likely service provider. http://www.osgeo.org/spd_help I certainly have concerns about using this list for a great deal of "back and forth questions" style debugging of problems. With around 2400 subscribers every question and answer is hitting a lot of mailboxes. Is it really a useful approach? To some extent it is good because it gives others a chance to chime in at different points with suggestions, and hopefully some people on the list are picking up hints and new knowledge that helps them in the future. But ... well, I often prefer to take debugging session off-list with the intent of summarizing final findings to the list. I do this despite the prevailing KEEP IT ON THE LIST! mantra of some of our leading contributors. > Is this list an effective way of solving user problems? > Should/can we improve it? How? > Perhaps a Summer-Of-Code opportunity? Summer-of-code is very software development oriented. For instance, a SoC effort cannot be primarily focused on writing documents, providing support, etc, except as a by product of software development. So I don't think this problem is very much a SoC solvable one. If we ever put a MapServer sponsorship program into place, and were able to use it to hire a paid maintainer of some sort, I'd like to suggest some of their time be spent providing support to but of course even this would still likely only be a drop in the bucket. Ultimately, I think we need to create better documentation, especially starter and troubleshooting documentation so folks can "self serve" through the standard problems, and just fallback to other people for the harder stuff. Helping to write such documentation might well be something a paid maintainer could effectively do. I will say that user to user support is very important, and scales up better than user to core developer support. That's why it is so valuable when you and other super users (or even just average users with experience in some stuff) step up to the plate. I think this has been a notable success of the MapServer community though there is always room for improvements. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From bfraser at geoanalytic.com Wed Feb 20 10:02:56 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 20 Feb 2008 11:02:56 -0700 Subject: [mapserver-users] Re: user support References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> <033401c87319$e18dc380$140002c0@shark> <001801c8731c$685700f0$6501a8c0@signo3> <036601c8731e$322b22c0$140002c0@shark> <002e01c87325$3 <003101c873a3$b37df8e0$6501a8c0@signo3> <018001c873d2$2d8a64b0$140002c0@shark> <47BC4791.80201@pobox.com> <01b601c873d8$fde56aa0$140002c0@shark> <47BC53B5.2000302@pobox.com> Message-ID: <020401c873ea$d2867db0$140002c0@shark> Frank, comments below... > > I certainly have concerns about using this list for a great deal > of "back and forth questions" style debugging of problems. With > around 2400 subscribers every question and answer is hitting a lot > of mailboxes. Is it really a useful approach? To some extent it > is good because it gives others a chance to chime in at different > points with suggestions, and hopefully some people on the list > are picking up hints and new knowledge that helps them in the future. > But ... well, I often prefer to take debugging session off-list with > the intent of summarizing final findings to the list. I do this > despite the prevailing KEEP IT ON THE LIST! mantra of some of our > leading contributors. > One of my reasons to send the "back and forth" emails to the list is to illustrate the method of tracking down the cause of the problem (divide-and-conquer, isolate the problem, small test case, etc) . But this is only valuable if the new users search the list archive; which I suspect most don't do (but I have no idea on how to measure this). Fortunately David Fawcett has a section on the archive on the "New Users" Mapserver page. > Summer-of-code is very software development oriented. For instance, > a SoC effort cannot be primarily focused on writing documents, providing > support, etc, except as a by product of software development. So I don't > think this problem is very much a SoC solvable one. I was fantasizing about a OSGeo-hosted (Plone-based? MapBender?) mapserver site where new users could upload their small tiff or shapefile and get a map file in return to help them get started. And perhaps a temporary URL where they could pan and zoom, etc. Then I got to thinking about the types of support problems: - the dreaded "hello world" learning curve with using your own data - new users vs. new versions of mapserver - other problem classes? Is it possible to have some automated system to classify archive email based on problem type? Is it worth it? And do some questions go un-answered? Should we have "support" tickets? Yikes! Should we "reward" people who respond to questions to encourage better support (hmm, or would that cause more noise on the list?) > Ultimately, I think we need to create better documentation, especially > starter and troubleshooting documentation so folks can "self serve" through > the standard problems, and just fallback to other people for the harder > stuff. Helping to write such documentation might well be something a paid > maintainer could effectively do. While I agree (good documentation is a joy to read), I heard that written documentation was dead (nobody reads anymore!); everything should be on YouTube... Or a text message to your iPhone... > > I will say that user to user support is very important, and scales up better > than user to core developer support. That's why it is so valuable when you > and other super users (or even just average users with experience in some > stuff) step up to the plate. I think this has been a notable success of > the MapServer community though there is always room for improvements. I guess that is what prompted this email: Is there a way to provide better support with less effort? To some extent, this topic is about the future of an Open Source project: ease of use is vital to wide spread acceptance. Support and documentation are a big part of that ease of use. Thanks for listening! Brent Fraser GeoAnalytic Inc. Calgary, Alberta From bfraser at geoanalytic.com Wed Feb 20 10:27:25 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 20 Feb 2008 11:27:25 -0700 Subject: [mapserver-users] The right tool for the job References: <47BB8DF5.60504@denterprises.org> Message-ID: <02fe01c873ee$3e173c60$140002c0@shark> Colin, The short answer is yes, MapServer is a good choice. The longer answer: You can use Mapserver as a CGI syle application or use a server-side scripting language such as perl (see the MapScript section of the Mapserver how-to: http://ms.gis.umn.edu/docs/howto/) to access MapServer functions. Make sure you read the New User page: http://mapserver.gis.umn.edu/new_users. Since you've got your source data already organized, and Mapserver will supply the server-side functionality (except for any Perl Mapscript coding you might want to do), likely most of your effort will be on the client-side interface. You'll need to select a toolkit if you plan on using a browser: 1. code your own html (and perhaps Javascript) 2. html + dbox/jbox 3. OpenLayers 4. other... Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Colin Wetherbee" To: Sent: Tuesday, February 19, 2008 7:18 PM Subject: [mapserver-users] The right tool for the job > Greetings. > > I'm new to using GIS data, and I have a project for which I think GIS > and MapServer would work well. I'd like to run the basic idea by this > list and get your input as to whether I'm choosing the right tool for > the job. > > I have a PostgreSQL 8.2 database with PostGIS extensions installed, > which stores, in GIS form, coordinates for airports around the world. > > I also have a rather large Perl web application that accesses other > things in this database. This is the application to which I would like > to add some fancy maps. > > Essentially, I'd like a map of the world, and I'd like to be able to > highlight certain airports and draw different types of lines between > them, based on dynamic input from the user through the Perl application. > Each web page could potentially include a different sort of map with > different locations highlighted. At peak usage, I suspect at least 75 > maps would need to be generated per second, with an average of 30-40 > data points and various amounts of connecting lines between them per map. > > Is this the sort of thing MapServer is good at doing? I've read some of > the web site, and really, I can't make heads or tails of quite a bit of > it, especially with respect to Perl. > > Thanks. > > Colin > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From paul.mccullough at sfgov.org Wed Feb 20 10:40:39 2008 From: paul.mccullough at sfgov.org (Paul McCullough) Date: Wed, 20 Feb 2008 10:40:39 -0800 (PST) Subject: [MAPSERVER-USERS] transparency problem - unable to see raster under vector Message-ID: <15595301.post@talk.nabble.com> All, I want to display a vector layer (roads) over a raster layer (orthophoto). It seems that no matter what I try, the vector layer remains opaque and I cannot see the raster image in the background. I have tried the following (some were in desperation): - various incantations in the map file (see below) - change layer order in map file (although last in map file comes out on top) - tried calling out individual layers in URL - read lots of nabble entries Here is my basic URL: http://10.1.15.68/cgi-bin/mapserv.exe? &map=/ms4w/maps/hybrid.test.map &LAYERS=hybrid &UNITS=dd &PROJECTION=EPSG%3A4326 &SERVICE=WMS &VERSION=1.1.1 &REQUEST=GetMap &STYLES= &EXCEPTIONS=application%2Fvnd.ogc.se_inimage &FORMAT=image%2Fjpeg &SRS=EPSG%3A4326 &BBOX=-122.48949990400003,37.752500096,-122.42699980800003,37.815000192 &WIDTH=256 &HEIGHT=256 Here is my map file: MAP IMAGECOLOR 153 179 204 #IMAGETYPE PNG24 FONTSET fonts.list OUTPUTFORMAT NAME 'AGG' #NAME 'AGG_PNG24' DRIVER AGG/PNG IMAGEMODE RGBA #IMAGEMODE PC256 TRANSPARENT ON #FORMATOPTION "transparent=on" END UNITS DD TRANSPARENT TRUE PROJECTION "init=EPSG:4326" END WEB IMAGEPATH "/tmp/" IMAGEURL "tmp/" METADATA "wms_title" "a wms title" "wms_srs" "EPSG:4326" END LOG "C:/ms4w/logs/mapserver.log" END SYMBOL NAME "line_solid" TYPE ellipse POINTS 1 1 END FILLED true END LAYER NAME "level6" GROUP "hybrid" STATUS ON TILEINDEX "..\data\level6.shp" TILEITEM "Location" TYPE RASTER #TRANSPARENCY ALPHA #TRANSPARENCY 50 OFFSITE 0 0 0 CLASS MINSCALE 56001 MAXSCALE 100000 END END LAYER NAME "roads_1" GROUP "hybrid" CONNECTIONTYPE postgis CONNECTION "user=postgres password=postgres dbname=postgis host=localhost port=5432" DATA "the_geom from teleatlas_nw" FILTER "freeway = '1'" TYPE LINE STATUS DEFAULT TRANSPARENCY ALPHA PROJECTION "init=EPSG:102643" END LABELCACHE on LABELITEM "name" CLASS NAME 'roads_1' STYLE COLOR 182 151 52 SYMBOL "line_solid" SIZE 8 END END END END Thanks Paul -- View this message in context: http://www.nabble.com/transparency-problem---unable-to-see-raster-under-vector-tp15595301p15595301.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Wed Feb 20 10:46:13 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 20 Feb 2008 12:46:13 -0600 Subject: [MAPSERVER-USERS] transparency problem - unable to see raster undervector In-Reply-To: <15595301.post@talk.nabble.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBAD7@s-sp22.pca.state.mn.us> Paul, Try changing TRANSPARENCY ALPHA to TRANSPARENCY 30 (or OPACITY 30 if you are using 5.0) Either way, 30 refers to a 30% opacity value. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Paul McCullough Sent: Wednesday, February 20, 2008 12:41 PM To: mapserver-users at lists.osgeo.org Subject: [MAPSERVER-USERS] transparency problem - unable to see raster undervector All, I want to display a vector layer (roads) over a raster layer (orthophoto). It seems that no matter what I try, the vector layer remains opaque and I cannot see the raster image in the background. I have tried the following (some were in desperation): - various incantations in the map file (see below) - change layer order in map file (although last in map file comes out on top) - tried calling out individual layers in URL - read lots of nabble entries Here is my basic URL: http://10.1.15.68/cgi-bin/mapserv.exe? &map=/ms4w/maps/hybrid.test.map &LAYERS=hybrid &UNITS=dd &PROJECTION=EPSG%3A4326 &SERVICE=WMS &VERSION=1.1.1 &REQUEST=GetMap &STYLES= &EXCEPTIONS=application%2Fvnd.ogc.se_inimage &FORMAT=image%2Fjpeg &SRS=EPSG%3A4326 &BBOX=-122.48949990400003,37.752500096,-122.42699980800003,37.815000192 &WIDTH=256 &HEIGHT=256 Here is my map file: MAP IMAGECOLOR 153 179 204 #IMAGETYPE PNG24 FONTSET fonts.list OUTPUTFORMAT NAME 'AGG' #NAME 'AGG_PNG24' DRIVER AGG/PNG IMAGEMODE RGBA #IMAGEMODE PC256 TRANSPARENT ON #FORMATOPTION "transparent=on" END UNITS DD TRANSPARENT TRUE PROJECTION "init=EPSG:4326" END WEB IMAGEPATH "/tmp/" IMAGEURL "tmp/" METADATA "wms_title" "a wms title" "wms_srs" "EPSG:4326" END LOG "C:/ms4w/logs/mapserver.log" END SYMBOL NAME "line_solid" TYPE ellipse POINTS 1 1 END FILLED true END LAYER NAME "level6" GROUP "hybrid" STATUS ON TILEINDEX "..\data\level6.shp" TILEITEM "Location" TYPE RASTER #TRANSPARENCY ALPHA #TRANSPARENCY 50 OFFSITE 0 0 0 CLASS MINSCALE 56001 MAXSCALE 100000 END END LAYER NAME "roads_1" GROUP "hybrid" CONNECTIONTYPE postgis CONNECTION "user=postgres password=postgres dbname=postgis host=localhost port=5432" DATA "the_geom from teleatlas_nw" FILTER "freeway = '1'" TYPE LINE STATUS DEFAULT TRANSPARENCY ALPHA PROJECTION "init=EPSG:102643" END LABELCACHE on LABELITEM "name" CLASS NAME 'roads_1' STYLE COLOR 182 151 52 SYMBOL "line_solid" SIZE 8 END END END END Thanks Paul -- View this message in context: http://www.nabble.com/transparency-problem---unable-to-see-raster-under- vector-tp15595301p15595301.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From cww at denterprises.org Wed Feb 20 11:28:30 2008 From: cww at denterprises.org (Colin Wetherbee) Date: Wed, 20 Feb 2008 14:28:30 -0500 Subject: [mapserver-users] The right tool for the job In-Reply-To: <02fe01c873ee$3e173c60$140002c0@shark> References: <47BB8DF5.60504@denterprises.org> <02fe01c873ee$3e173c60$140002c0@shark> Message-ID: <47BC7F5E.6000208@denterprises.org> Brent Fraser wrote: > The short answer is yes, MapServer is a good choice. Excellent. > The longer answer: You can use Mapserver as a CGI syle > application or use a server-side scripting language such as > perl (see the MapScript section of the Mapserver how-to: > http://ms.gis.umn.edu/docs/howto/) to access MapServer > functions. I suppose MapScript is basically just a language that is platform independent, but when I was first reading about it yesterday and found the following link to "Perl Examples", I was disheartened. http://mapserver.gis.umn.edu/docs/howto/perl_examples A few lines about error handling weren't exactly what I was hoping to find there. There is some Perl code in the comments at the bottom of the following URL that might be a good replacement for that page. http://mapserver.gis.umn.edu/docs/howto/mapscript_querying/ Other than those pages, I couldn't find much that would really help me learn about MapScript and Perl. Maybe I'll just follow along with the PHP example at the following URL and hope the API is similar. It looks like the Perl MapScript module follows MapScript's C API; perhaps the PHP module does, too? http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample Is there a MapScript API reference buried somewhere that I could read? And, also, a map file API reference? I'm really quite lost when it comes to map files. > Make sure you read the New User page: > http://mapserver.gis.umn.edu/new_users. > > Since you've got your source data already organized, and > Mapserver will supply the server-side functionality (except > for any Perl Mapscript coding you might want to do), likely > most of your effort will be on the client-side interface. > You'll need to select a toolkit if you plan on using a > browser: > 1. code your own html (and perhaps Javascript) > 2. html + dbox/jbox > 3. OpenLayers > 4. other... I would like my first step to be putting a static image on a web site. The image would be generated by Perl and returned to the browser as a simple image/png. The method I have in mind follows. Each user has a set of airports and routes with which they are concerned. This set of airports and routes could change as frequently as every 30 seconds. So, for each map generation request, I would dynamically create a map file and store it as TEXT in my PostgreSQL database, along with some unique ID. Then, I would output an tag to the browser that includes the unique ID of this dynamically-generated map file: mapImage.pl sees id=1234, pulls map file 1234 out of the database, uses the MapServer back-end to generate a map, then outputs this map as an image/png. I think mapImage.pl ends up being pretty simple: create a mapserver object, pipe the map file text to it, and get the png it generates. Is that it, or am I thinking too narrowly here? I may include a time stamp, too, so I can expire map files after some length of inactivity. Does this sound about right? Thanks for your help. :) Colin From gorfdod at racsa.co.cr Wed Feb 20 11:31:45 2008 From: gorfdod at racsa.co.cr (Gordon Gravenhorst) Date: Wed, 20 Feb 2008 13:31:45 -0600 Subject: [mapserver-users] remove Message-ID: <000c01c873f7$3fd74cd0$bf85e670$@co.cr> remove -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam420 at yahoo.com Wed Feb 20 11:49:55 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Wed, 20 Feb 2008 11:49:55 -0800 (PST) Subject: [MAPSERVER-USERS] leaking memory in java mapscript (was Re: thread safety) In-Reply-To: References: <15514019.post@talk.nabble.com> <15562378.post@talk.nabble.com> <15562408.post@talk.nabble.com> Message-ID: <15596694.post@talk.nabble.com> Benedikt Rothe wrote: > > Sorry. That's hardly helpfull. But I'm interested in your progress. > Thanks for your input. It's not "hardly helpful". But I will give a few clarifications: 1) I think my threading worries may have been a red herring. When I started experiencing JVM crashes during stress tests that were not reproducible, my first conclusion was a threading problem. But further investigation points to memory leaks, esp. since I can crash the JVM even with a sequential test client. I can watch the memory consumption with top, and eventually it runs out of memory and crashes the JVM and tomcat dies. I can somewhat ironically cause the crash to happen faster by allocating more memory to tomcat, since that leaves less memory available for the JNI code. 2) I don't think it's the gc that's crashing the JVM. It's just that the JNI code is out of memory, so some malloc is going to fail. But it doesn't cleanly report that back to Java as an OutOfMemoryError, the malloc just returns a null. So something that ought to be pointing to valid memory in the JNI code is now pointing to null, and when that pointer is dereferenced, it causes a segfault, which crashes the JVM. 3) As far as I can tell, I am calling delete() for every mapserver object that I reference as soon as I am done with it. Yet the code is still leaking memory, leading me to suspect an actual memory leak internal to mapserver (or the mapscript interface). 4) Valgrind seems very useful for tracking down the problem in (3), if I can get it to work. In theory (based on the reading the FAQ and the valgrind mailing list), I think I ought to be able to do this. But I think my problem is that it's not even instrumenting libmapscript.so, and I can't figure out why. For more details: http://www.nabble.com/memcheck-of-JNI-library-loaded-via-System.loadLibrary%28%29-to15582655.html So my approach right now is to try and get valgrind to work. If that doesn't work, another tool that was suggested to me (besides memwatch) is memprof: http://www.gnome.org/projects/memprof/ And taking java out of the loop might simplify things, but I'm not sure how easy or hard that might be. There is no C or C++ mapscript, but I suppose if I take a look at what mapscript is really doing under the covers, I could write a pure C or C++ program that links in libmapscript.so. Only after I solve the memory problem will I take a look at multithreaded issues. - Rich -- View this message in context: http://www.nabble.com/thread-safety-tp15514019p15596694.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mlinden at zeelandnet.nl Wed Feb 20 11:54:00 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Wed, 20 Feb 2008 20:54:00 +0100 Subject: [mapserver-users] Re: user support In-Reply-To: <020401c873ea$d2867db0$140002c0@shark> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> <033401c87319$e18dc380$140002c0@shark> <001801c8731c$685700f0$6501a8c0@signo3> <036601c8731e$322b22c0$140002c0@shark> <002e01c87325$3 <003101c873a3$b37df8e0$6501a8c0@signo3> <018001c873d2$2d8a64b0$140002c0@shark> <47BC4791.80201@pobox.com> <01b601c873d8$fde56aa0$140002c0@shark> <47BC53B5.2000302@pobox.com> <020401c873ea$d2867db0$140002c0@shark> Message-ID: <47BC8558.5000400@zeelandnet.nl> Hello Brent and Frank, I hope you don't mind me joining this rather usefull discussion! I stepped on it, because the new title triggered me (an example of how using a clear title on the mailing list is of importance). Yesterday I was doing some translation work on the OSGeo website (I signed up for the dutch translation) and I noticed all the mailing lists that are hosted there, it had me thinking about mailing-lists and the value they hold. Basically, the mailinglists that are most active, such as the mapserver list hold a rich set of solutions, answers, tips, tricks and so on. But I find them hard to browse. Most items are not categorized and sometimes it is hard to show the trees in the forest. But again, a lot of the posts are extremely valuable! I ended up looking for software capable of importing mailman lists into Google Groups or into forums or into... and I came out blank. But this tought is still on my mind. Next thing I was wondering about was if it was possible to rate answers. And if it would be possible to easily transform answers into documentation. But I haven't found a real solution yet. Ok, back to the discussion; > With around 2400 subscribers every question and answer is hitting a lot of mailboxes. Is it really a useful approach? To some extent it is good because it gives others a chance to chime in at different points with suggestions, and hopefully some people on the list are picking up hints and new knowledge that helps them in the future. But .. well, I often prefer to take debugging session off-list with the intent of summarizing final findings to the list. I do this despite the prevailing KEEP IT ON THE LIST! mantra of some of our leading contributors. > Of course users that don't like the ammount of mail hitting can always subscribe to get digested mail, I find this convenient enough. And compared to the ammount of global video and audio downloads, the traffic generated by mailinglists is still a tip of the iceberg, but I understand your concern. I like your intention to discuss offline and finalize a summary. I often invite users that are stuck to skype-chat with me. Then I record the chat as we go along. At the end of a session, I pick up the chat history, delete all the chit-chat and store what is left for future reference. > > > One of my reasons to send the "back and forth" emails to the > list is to illustrate the method of tracking down the cause > of the problem (divide-and-conquer, isolate the problem, > small test case, etc) . But this is only valuable if the > new users search the list archive; which I suspect most > don't do (but I have no idea on how to measure this). > Fortunately David Fawcett has a section on the archive on > the "New Users" Mapserver page. > This is also a solid approach. Divide and conquer is the biggest strength of mailing lists! And indeed new users should be encouraged to read documentation. >> Summer-of-code is very software development oriented. For instance, a SoC effort cannot be primarily focused on writing documents, providing support, etc, except as a by product of software development. So I don't think this problem is very much a SoC solvable one. >> Is it possible to have some automated system to classify >> archive email based on problem type? Is it worth it? >> This question hits the jackpot for me. classifying, categorization, sections with moderators, the possibility for people to rate an answer. It is already in the Google Groups, perhaps there is some way this can be adapted? The google groups are in a lot of way interesting since they offer mail integration, user rating, good insight of the most active topics. The only thing they miss is categories like they are on forums, maybe a tagging system would be good. >> And do some questions go un-answered? Should we have "support" tickets? Yikes! >> I have seen some fair examples of a combination of forums, mailinglists SVN-repositories and bug tracking systems; The Joomla Open Source CMS forum for instance has a pretty good combination. >> Should we "reward" people who respond to questions to encourage better support (hmm, or would that cause more noise on the list?) >> This could be an option, as long as it doesn't require users to pay for accessing the list. One of the most anoying sites on earth I find ExpertExchange. They always pop-up first on a google search, but you need to sign in and pay 25 dollar a month or so for that one single question you have! Yikes on that method too. >> Ultimately, I think we need to create better documentation, especially starter and troubleshooting documentation so folks can "self serve" through the standard problems, and just fallback to other people for the harder stuff. Helping to write such documentation might well be something a paid maintainer could effectively do. >> This I would be interested in! More then in payed support. It encourages people (like me) to share solutions they found. Now it often happens that a solution is lying on my desk, but snows-under because of paid projects that are running at the same time. > > While I agree (good documentation is a joy to read), I heard > that written documentation was dead (nobody reads anymore!); > everything should be on YouTube... Or a text message to > your iPhone... > In my life as a developer and GIS specialist I only came across a good video tutorial twice. At a lot of others I fell asleep because of the slow pace or boring commentary. I think digital documentation that is ranked high in the major search engines is still the best of all. Imagine a search engine looking for usable meta-information in a video to make it available in search engines... It would have to learn to listen! > >> I will say that user to user support is very important,and scales up better than user to core developer support. That's why it is so valuable when you and other super users (or even just average users with experience in some stuff) step up to the plate. I think this has been a notable success of the MapServer community though there is always room for improvements. >> I take this as a compliment. And I must also say deep respect for all the people that take the effort and patience to answer to others! >> >> I guess that is what prompted this email: Is there a way to provide better support with less effort? >> In my opinion: No, divide and conquer cannot be replaced by better/less effort methods, but the way lists and documentation are organized could be enhanced to give all users a better change to hit the answer before asking the question to a real person. That's why I think that looking for a technical solution for the way lists are organized and bring collaboration, summarization and easy access to them has a better change for success. Enhance this with the possibility for moderators to put tags or categories in the list AND the option to generate documentation from a list..... But that is my own personal opinion of course. I am open to all suggestions! >> To some extent, this topic is about the future of an Open >> Source project: ease of use is vital to wide spread >> acceptance. Support and documentation are a big part of >> that ease of use. >> >> Thanks for listening! >> >> Brent Fraser >> GeoAnalytic Inc. >> Calgary, Alberta >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> From mlinden at zeelandnet.nl Wed Feb 20 12:03:44 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Wed, 20 Feb 2008 21:03:44 +0100 Subject: [mapserver-users] The right tool for the job In-Reply-To: <47BC7F5E.6000208@denterprises.org> References: <47BB8DF5.60504@denterprises.org> <02fe01c873ee$3e173c60$140002c0@shark> <47BC7F5E.6000208@denterprises.org> Message-ID: <47BC87A0.9070800@zeelandnet.nl> Colin Wetherbee schreef: > > I would like my first step to be putting a static image on a web site. > The image would be generated by Perl and returned to the browser as a > simple image/png. > > The method I have in mind follows. > > Each user has a set of airports and routes with which they are > concerned. This set of airports and routes could change as frequently > as every 30 seconds. So, for each map generation request, I would > dynamically create a map file and store it as TEXT in my PostgreSQL > database, along with some unique ID. Then, I would output an > tag to the browser that includes the unique ID of this > dynamically-generated map file: Interesting approach. But you could also try: http://www.someserver.org/cgi-bin/mapserv.exe?map=ergens.map&REQUEST=getmap&Layers=layer1,layer2,layer3&User=MyUser&Airport=1,5,23,56&airline=KLM&...... The mapfile is able to read user variables; this means that the value MyUser that is in the variable User can be addressed in the mapfile with %User% Thus making it possible to have a layer that builds it's content from a postGIS query dynamically like: SELECT(THE GEOM) FROM Airports where ActiveUser=%User This way you don't need to store mapfiles in the database and let the form-variables in your webpage feed the dynamic content of the map. Read the topic on http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub The time stamp can also be set on a layer through a variable like this. > > > > mapImage.pl sees id=1234, pulls map file 1234 out of the database, > uses the MapServer back-end to generate a map, then outputs this map > as an image/png. I think mapImage.pl ends up being pretty simple: > create a mapserver object, pipe the map file text to it, and get the > png it generates. Is that it, or am I thinking too narrowly here? > > I may include a time stamp, too, so I can expire map files after some > length of inactivity. > > Does this sound about right? > > Thanks for your help. :) > > Colin > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From cww at denterprises.org Wed Feb 20 12:05:12 2008 From: cww at denterprises.org (Colin Wetherbee) Date: Wed, 20 Feb 2008 15:05:12 -0500 Subject: [mapserver-users] Re: user support In-Reply-To: <47BC8558.5000400@zeelandnet.nl> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> <033401c87319$e18dc380$140002c0@shark> <001801c8731c$685700f0$6501a8c0@signo3> <036601c8731e$322b22c0$140002c0@shark> <002e01c87325$3 <003101c873a3$b37df8e0$6501a8c0@signo3> <018001c873d2$2d8a64b0$140002c0@shark> <47BC4791.80201@pobox.com> <01b601c873d8$fde56aa0$140002c0@shark> <47BC53B5.2000302@pobox.com> <020401c873ea$d2867db0$140002c0@shark> <47BC8558.5000400@zeelandnet.nl> Message-ID: <47BC87F8.70300@denterprises.org> Milo van der Linden wrote: > Yesterday I was doing some translation work on the OSGeo website (I > signed up for the dutch translation) and I noticed all the mailing > lists that are hosted there, it had me thinking about mailing-lists > and the value they hold. Basically, the mailinglists that are most > active, such as the mapserver list hold a rich set of solutions, > answers, tips, tricks and so on. But I find them hard to browse. Most > items are not categorized and sometimes it is hard to show the trees > in the forest. But again, a lot of the posts are extremely valuable! > I ended up looking for software capable of importing mailman lists > into Google Groups or into forums or into... and I came out blank. > But this tought is still on my mind. I just joined this list yesterday, and I still haven't really used MapServer yet. One of the things I find the web site lacking is categorized documentation, so I agree with most of what's happening in this thread. Over on the PostgreSQL list, we've been talking about almost the exact same thing. Our discussions there aren't organized very well, and we've been looking at different approaches to making it more accessible. The idea of hosting a wiki seems to have taken hold, and they're in the process of implementing one now. It looks like Trac is the best candidate for the job, with MediaWiki coming in a close second. The thread over there is pretty long, but here it is, in case you're interested in having a look. http://archives.postgresql.org/pgsql-general/2008-01/threads.php#01411 Colin From bfraser at geoanalytic.com Wed Feb 20 12:05:06 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 20 Feb 2008 13:05:06 -0700 Subject: [mapserver-users] How to use Perl with Mapscript (was Re: The right tool for the job) References: <47BB8DF5.60504@denterprises.org> <02fe01c873ee$3e173c60$140002c0@shark> <47BC7F5E.6000208@denterprises.org> Message-ID: <039c01c873fb$e8df4130$140002c0@shark> Colin, > Other than those pages, I couldn't find much that would really help me > learn about MapScript and Perl. Maybe I'll just follow along with the > PHP example at the following URL and hope the API is similar. It looks > like the Perl MapScript module follows MapScript's C API; perhaps the > PHP module does, too? I'm not a Mapscript user but I believe that is true. Mapscript comes with serveral language bindings (including Perl) and they are all automatically generated , so I would expect they are the same (allowing for language differences). > Is there a MapScript API reference buried somewhere that I could read? > And, also, a map file API reference? I'm really quite lost when it > comes to map files. On the New Users page there are links to the MapScript API (Section 2). the map file reference is under the "Documentation" -> references link, but it's tough to build a working map file from scratch using just the doc. I would HIGHLY RECOMMEND the advice in Section 5.2 Get the Demo Running. Looking at (and tweaking) the map file in the demo will be a big help in understanding what can be done. > > Make sure you read the New User page: > > http://mapserver.gis.umn.edu/new_users. > > I would like my first step to be putting a static image on a web site. > The image would be generated by Perl and returned to the browser as a > simple image/png. > > The method I have in mind follows. > > Each user has a set of airports and routes with which they are > concerned. This set of airports and routes could change as frequently > as every 30 seconds. So, for each map generation request, I would > dynamically create a map file and store it as TEXT in my PostgreSQL > database, along with some unique ID. Then, I would output an > tag to the browser that includes the unique ID of this > dynamically-generated map file: > > > > mapImage.pl sees id=1234, pulls map file 1234 out of the database, uses > the MapServer back-end to generate a map, then outputs this map as an > image/png. I think mapImage.pl ends up being pretty simple: create a > mapserver object, pipe the map file text to it, and get the png it > generates. Is that it, or am I thinking too narrowly here? > Depends. You could just use Perl+Mapscript to general the png file then and there. I think if you use MapScript there is no requirement to have map file; all the elements a supplied by making function calls in Perl to mapscript then asking for the graphic to be generated (but the scripting users would know more about that). Brent From warmerdam at pobox.com Wed Feb 20 12:08:38 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 20 Feb 2008 15:08:38 -0500 Subject: [mapserver-users] Re: user support In-Reply-To: <47BC8558.5000400@zeelandnet.nl> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> <033401c87319$e18dc380$140002c0@shark> <001801c8731c$685700f0$6501a8c0@signo3> <036601c8731e$322b22c0$140002c0@shark> <002e01c87325$3 <003101c873a3$b37df8e0$6501a8c0@signo3> <018001c873d2$2d8a64b0$140002c0@shark> <47BC4791.80201@pobox.com> <01b601c873d8$fde56aa0$140002c0@shark> <47BC53B5.2000302@pobox.com> <020401c873ea$d2867db0$140002c0@shark> <47BC8558.5000400@zeelandnet.nl> Message-ID: <47BC88C6.5000303@pobox.com> Milo van der Linden wrote: > Next thing I was wondering about was if it was possible to rate answers. > And if it would be possible to easily transform answers into > documentation. But I haven't found a real solution yet. Milo, I think it would be very valuable if some people were willing to comb the mailing list for frequently asked questions and answers and turn some of them into FAQ entries on the plone site. I'm bad at writing FAQs because I always write FAQs for the questions I wish people would ask, instead of the ones they do ask. :-( But someone interested in spending a couple hours contributing to the MapServer world could review a few weeks email traffic, and pick out a couple common questions with good answers and digest it into FAQs to list at: http://mapserver.gis.umn.edu/docs/faq The answers might even include pointers back into the discussion threads on the mailing list for additional details. For those not wanting to contact Howard for Plone update access, I would even be willing to add FAQs on their behalf if carefully prepared. Though getting and using update access to the mapserver site is quite easy and additional contributors are welcome! I also wonder if the FAQ list ought to be featured a bit more prominently on the web site. I was surprised to discover they are categorized if you go to the full faq list. I normally just see them in this view: http://mapserver.gis.umn.edu/docs Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From paul.mccullough at sfgov.org Wed Feb 20 12:13:20 2008 From: paul.mccullough at sfgov.org (Paul McCullough) Date: Wed, 20 Feb 2008 12:13:20 -0800 (PST) Subject: [MAPSERVER-USERS] SUMMARY - transparency problem - unable to see raster under vector In-Reply-To: <15595301.post@talk.nabble.com> References: <15595301.post@talk.nabble.com> Message-ID: <15597786.post@talk.nabble.com> Thanks to David Fawcett for the solution. I was missing STATUS DEFAULT for the raster layer in the map file. Regards, Paul -- View this message in context: http://www.nabble.com/transparency-problem---unable-to-see-raster-under-vector-tp15595301p15597786.html Sent from the Mapserver - User mailing list archive at Nabble.com. From cww at denterprises.org Wed Feb 20 12:20:47 2008 From: cww at denterprises.org (Colin Wetherbee) Date: Wed, 20 Feb 2008 15:20:47 -0500 Subject: [mapserver-users] The right tool for the job In-Reply-To: <47BC0DCC.6080808@zeelandnet.nl> References: <47BB8DF5.60504@denterprises.org> <47BC0DCC.6080808@zeelandnet.nl> Message-ID: <47BC8B9F.7040208@denterprises.org> Milo van der Linden wrote: > Colin Wetherbee schreef: >> Essentially, I'd like a map of the world, > You can connect to other WMS services such as Demis to display a > world map, either from a server or from a client (using for instance > openlayers) Demis looks like it could do what I want, in terms of displaying a world map and so forth, but at 950 EUR, it's beyond my budget at the moment. I'll poke around for other WMS-like applications, though. Thanks for the suggestion. >> and I'd like to be able to highlight certain airports and draw >> different types of lines between them, based on dynamic input from >> the user through the Perl application. > You can use user variables to connect to the mapfile (search for > "substitute variables" on the mapserver website. I would like to hand > you the link, but I cannot connect to http://mapserver.gis.umn.edu > at the moment) Thanks. I'll check this out. >> At peak usage, I suspect at least 75 maps would need to be >> generated per second, with an average of 30-40 data points and >> various amounts of connecting lines between them per map. > Make sure the server is capable of this with regards to bandwidth, > memory and processor capacity. This is in essence not a problem for > mapserv. I just want to be sure that, with high-end but still commodity hardware, I'll be able to render enough maps per second to make this worthwhile. >> Is this the sort of thing MapServer is good at doing? I've read >> some of the web site, and really, I can't make heads or tails of >> quite a bit of it, especially with respect to Perl. > I think it is, but it is best to combine it with a strong AJAX viewer > to get the best dynamic user experience and taking the most (views > and queries) out of postGIS. Indeed. I'd eventually like to implement my maps in Flash on a rotating globe, but that's down the road a bit for now. Colin From mlinden at zeelandnet.nl Wed Feb 20 12:33:59 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Wed, 20 Feb 2008 21:33:59 +0100 Subject: [mapserver-users] Re: user support In-Reply-To: <47BC88C6.5000303@pobox.com> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> <033401c87319$e18dc380$140002c0@shark> <001801c8731c$685700f0$6501a8c0@signo3> <036601c8731e$322b22c0$140002c0@shark> <002e01c87325$3 <003101c873a3$b37df8e0$6501a8c0@signo3> <018001c873d2$2d8a64b0$140002c0@shark> <47BC4791.80201@pobox.com> <01b601c873d8$fde56aa0$140002c0@shark> <47BC53B5.2000302@pobox.com> <020401c873ea$d2867db0$140002c0@shark> <47BC8558.5000400@zeelandnet.nl> <47BC88C6.5000303@pobox.com> Message-ID: <47BC8EB7.6070009@zeelandnet.nl> Frank Warmerdam schreef: > Milo van der Linden wrote: >> Next thing I was wondering about was if it was possible to rate >> answers. And if it would be possible to easily transform answers into >> documentation. But I haven't found a real solution yet. > > Milo, > > I think it would be very valuable if some people were willing to comb > the mailing list for frequently asked questions and answers and turn > some of them into FAQ entries on the plone site. If this would be done in a divide and conquer manner, I would be interested. It would be a good thing if one could take a seat in some sort of board and cover a certain aspect. I would be particulary interested in contributing to WMS and WFS sections, as well as postGIS integration since this is the area I am trying to make my business in. Would it be possible that in return the person maintaining a certain area of the documentation could offer commercial support and consultancy on his particular field of expertise? Just a taught and trying to discover if there is business value in signing up for this. Because in the long run, we all need to make at least enough money to live. > > I'm bad at writing FAQs because I always write FAQs for the questions > I wish people would ask, instead of the ones they do ask. :-( Hahaha! You gave me a good laugh with this one! I recognize the dillema. > But > someone interested in spending a couple hours contributing to the > MapServer world could review a few weeks email traffic, and pick out > a couple common questions with good answers and digest it into FAQs > to list at: > > http://mapserver.gis.umn.edu/docs/faq I hereby offer my couple of hours. Would it be an idea to set up a group of say 100 people and then divide the list in blocks of say a month? > > The answers might even include pointers back into the discussion > threads on the mailing list for additional details. For those not > wanting to contact Howard for Plone update access, I would even > be willing to add FAQs on their behalf if carefully prepared. > Though getting and using update access to the mapserver site is quite > easy and additional contributors are welcome! > > I also wonder if the FAQ list ought to be featured a bit more > prominently on the web site. I was surprised to discover they are > categorized if you go to the full faq list. I normally just see > them in this view: > > http://mapserver.gis.umn.edu/docs > > Best regards, From warmerdam at pobox.com Wed Feb 20 13:36:44 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 20 Feb 2008 16:36:44 -0500 Subject: [mapserver-users] Re: user support In-Reply-To: <47BC8EB7.6070009@zeelandnet.nl> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> <033401c87319$e18dc380$140002c0@shark> <001801c8731c$685700f0$6501a8c0@signo3> <036601c8731e$322b22c0$140002c0@shark> <002e01c87325$3 <003101c873a3$b37df8e0$6501a8c0@signo3> <018001c873d2$2d8a64b0$140002c0@shark> <47BC4791.80201@pobox.com> <01b601c873d8$fde56aa0$140002c0@shark> <47BC53B5.2000302@pobox.com> <020401c873ea$d2867db0$140002c0@shark> <47BC8558.5000400@zeelandnet.nl> <47BC88C6.5000303@pobox.com> <47BC8EB7.6070009@zeelandnet.nl> Message-ID: <47BC9D6C.80603@pobox.com> Milo van der Linden wrote: > Frank Warmerdam schreef: >> I think it would be very valuable if some people were willing to comb >> the mailing list for frequently asked questions and answers and turn >> some of them into FAQ entries on the plone site. > If this would be done in a divide and conquer manner, I would be > interested. It would be a good thing if one could take a seat in some > sort of board and cover a certain aspect. I would be particulary > interested in contributing to WMS and WFS sections, as well as postGIS > integration since this is the area I am trying to make my business in. > Would it be possible that in return the person maintaining a certain > area of the documentation could offer commercial support and consultancy > on his particular field of expertise? Just a taught and trying to > discover if there is business value in signing up for this. Because in > the long run, we all need to make at least enough money to live. Milo, In Plone you can have a profile, and FAQ entries list their author. So you can use your full name for your account and make sure your author profile page describes you as a consultant, and your expertise with a link page to your own web page. This should have at least a modest advertising effect. I think FAQs mostly digested from mailing list responses should also try to give some credit to the original author. I'm not sure that specific divide and conquer rules will be easy to manage. I would suggest you just attack your area of interest. Duplication of effort is the least of our problems now. :-) > I hereby offer my couple of hours. Would it be an idea to set up a group > of say 100 people and then divide the list in blocks of say a month? Well, I'm not sure about how that would work. Again, I would suggest you get a plone account from Howard, and just skim the email archives for the last month or two looking for threads in your area of interest and digest a few down into FAQs. I'm sure there is also room for additional categories in the FAQ if you think it would be helpful. It may just be me, but I think any process that starts with "get a group together and split up a task" is likely to get stalled and frustrated. Better to just dig in and do a part of the task that you like, perhaps with some notification / interaction as you find you need. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From manoj_monga at hotmail.com Wed Feb 20 14:59:01 2008 From: manoj_monga at hotmail.com (Manoj Monga) Date: Wed, 20 Feb 2008 16:59:01 -0600 Subject: [mapserver-users] Unsubscribing from MAPSERVER-USER chain In-Reply-To: <47BC9D6C.80603@pobox.com> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> <033401c87319$e18dc380$140002c0@shark> <001801c8731c$685700f0$6501a8c0@signo3> <036601c8731e$322b22c0$140002c0@shark> <002e01c87325$3 <003101c873a3$b37df8e0$6501a8c0@signo3> <018001c873d2$2d8a64b0$140002c0@shark> <47BC4791.80201@pobox.com> <01b601c873d8$fde56aa0$140002c0@shark> <47BC53B5.2000302@pobox.com> <020401c873ea$d2867db0$140002c0@shark> <47BC8558.5000400@zeelandnet.nl> <47BC88C6.5000303@pobox.com> <47BC8EB7.6070009@zeelandnet.nl> <47BC9D6C.80603@pobox.com> Message-ID: I went to the web page to unsubscribe. Since I do not remember my membership password, I tried the ?Reminder? button. But no password gets mailed to me. Can someone please help me to unsubscribe from this chain? Thx Manoj _________________________________________________________________ Connect and share in new ways with Windows Live. http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam420 at yahoo.com Wed Feb 20 15:42:15 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Wed, 20 Feb 2008 15:42:15 -0800 (PST) Subject: [MAPSERVER-USERS] detecting memory leaks in java mapscript In-Reply-To: <15580371.post@talk.nabble.com> References: <15580371.post@talk.nabble.com> Message-ID: <15601591.post@talk.nabble.com> rich.fromm wrote: > > Any advice about tracking down memory leaks that might exist in java > mapscript? > > ... > > I installed the debian sarge backport of valgrind (valgrind-3.2.0-Debian), > and > tried invoking java prefaced with: > > valgrind --leak-check=full --smc-check=all -v > > No leaks were reported, but I don't think it really checked where I wanted > it > to check. > Fwiw, I got valgrind to load libmapscript.so. More details here if you care: http://www.nabble.com/memcheck-of-JNI-library-loaded-via-System.loadLibrary%28%29-to15582655.html#a15601589 Although I still haven't tracked down the leak (it didn't report anything). - Rich -- View this message in context: http://www.nabble.com/detecting-memory-leaks-in-java-mapscript-tp15580371p15601591.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Wed Feb 20 15:50:40 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Wed, 20 Feb 2008 15:50:40 -0800 (PST) Subject: [MAPSERVER-USERS] detecting memory leaks in java mapscript In-Reply-To: References: <15580371.post@talk.nabble.com> Message-ID: <15601833.post@talk.nabble.com> Tamas Szekeres wrote: > > Have you tried making a threadtest with your mapfile? > It was a little bit of a pain, but I did manage to get the threadtest to compile and run. I had to recompile mapserver because it requires both GEOS and TIFF, neither of which I had compiled for. (I think this is a minor doc bug -- README_THREADTEST.TXT mentions the need for GEOS support, but it doesn't mention the need for TIFF support.) Also, the code as shipped with mapserver 5.0.0 doesn't compile, because the layerObj class has no setTransparency() method. So I had to comment out a line, as shown below: $ diff -u MapThread.java.~1~ MapThread.java --- MapThread.java.~1~ 2006-08-25 00:15:45.000000000 -0700 +++ MapThread.java 2008-02-20 13:43:23.000000000 -0800 @@ -68,7 +68,8 @@ //bufferLayer.setType(mapscriptConstants.MS_LAYER_POLYGON); bufferLayer.setProjection("init=epsg:4326"); bufferLayer.setType(MS_LAYER_TYPE.MS_LAYER_POINT); - bufferLayer.setTransparency(50); + // XXX there is no layerObj.setTransparency() method + //bufferLayer.setTransparency(50); classObj clazz=new classObj(bufferLayer); clazz.setName("Buffer class"); styleObj style=new styleObj(clazz); I should probably file a bug on that. Anyway, I tried running the test on the included test.map file with 1 thread and 10000 iterations, and indeed it doesn't leak. But I'm not sure how applicable that is to my situation. The test is not necessarily using the same mapscript methods that I am. And the map file is completely different, and there seems to be a correspondence between the two. In other words, I can't just substitute my map file and run the threadtest on it. (I tried, it doesn't work. And my mapfile works just fine standalone and with my tests.) - Rich -- View this message in context: http://www.nabble.com/detecting-memory-leaks-in-java-mapscript-tp15580371p15601833.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bfraser at geoanalytic.com Wed Feb 20 16:04:32 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 20 Feb 2008 17:04:32 -0700 (Mountain Standard Time) Subject: [mapserver-users] AGG_Q + raster problem In-Reply-To: <008701c873d4$49a1a350$6501a8c0@signo3> References: <00b901c8724f$f250e5f0$6501a8c0@signo3> <.68.144.5.189.1203355002.squirrel@68.144.5.189> <00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net> <00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne <002401c872d8$cba771b0$6501a8c0@signo3> <02d601c8730e$87164860$140002c0@shark> <000f01c87315$a0181760$6501a8c0@signo3> <033401c87319$e18dc380$140002c0@shark> <001801c8731c$685700f0$6501a8c0@signo3> <036601c8731e$322b22c0$140002c0@shark> <002e01c87325$3 <003101c873a3$b37df8e0$6501a8c0@signo3> <018001c873d2$2d8a64b0$140002c0@shark> <008701c873d4$49a1a350$6501a8c0@signo3> Message-ID: <.68.144.5.189.1203552272.squirrel@68.144.5.189> How are you asking mapserver to generate the png file? Are you issuing a URL in a browser then doing a "save as"? Or from a WMS client? Have you tried using shp2img on the command line instead of mapserv.exe? > Hi, Brent > > First of all, thank you for your time. > > The test resulted unsuccessful; with GD the result is the same, as you can > see in the attachment... > > > Thanks. > > -----Mensaje original----- > De: Brent Fraser [mailto:bfraser at geoanalytic.com] > Enviado el: mi?rcoles, 20 de febrero de 2008 16:07 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > Well, at least we know it's an output problem, not an input > or processing directive problem. We could test to see if > the problem is with the AGG renderer by using the old GD > renderer: > > IMAGETYPE GD_RGB_PNG # output type > OUTPUTFORMAT > NAME 'GD_RGB_PNG' > DRIVER GD/PNG > IMAGEMODE RGBA > # IMAGEMODE RGB > END > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > > ----- Original Message ----- > From: "Hans Castorp" > To: "'Brent Fraser'" > Cc: > Sent: Wednesday, February 20, 2008 2:33 AM > Subject: RE: [mapserver-users] AGG_Q + raster problem > > > Hi, Brent > > Setting the output format to jpeg the rendering is perfect, > as you can see > in the attached tile. But this doesn't help me; I need a > format with > transparency... > > > Thanks, > > > -----Mensaje original----- > De: Brent Fraser [mailto:bfraser at geoanalytic.com] > Enviado el: martes, 19 de febrero de 2008 19:34 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > I'm running out of ideas. Have you tried setting the output > format to JPG? Since it's a 24-bit format (only), this > might indicate if the problem is in the output stage or in > the input/processing stage. > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > ----- Original Message ----- > From: "Hans Castorp" > To: "'Brent Fraser'" > Cc: > Sent: Tuesday, February 19, 2008 11:28 AM > Subject: RE: [mapserver-users] AGG_Q + raster problem > > > Yes, I'm completely sure that the image I've attached was > produced with this > OUTPUT statement: > > OUTPUTFORMAT > NAME 'AGGA' > DRIVER AGG/PNG > IMAGEMODE RGBA > FORMATOPTION "TRANSPARENT=ON" > #TRANSPARENT ON > END > > > > -----Mensaje original----- > De: Brent Fraser [mailto:bfraser at geoanalytic.com] > Enviado el: martes, 19 de febrero de 2008 18:38 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > Hans, > > I did a "gdalinfo" on the image you attached, it has only > 32 colors defined (so it looks "bad"): > > Driver: PNG/Portable Network Graphics > Size is 256, 256 > Coordinate System is `' > Corner Coordinates: > Upper Left ( 0.0, 0.0) > Lower Left ( 0.0, 256.0) > Upper Right ( 256.0, 0.0) > Lower Right ( 256.0, 256.0) > Center ( 128.0, 128.0) > Band 1 Block=256x1 Type=Byte, ColorInterp=Palette > NoData Value=0 > Color Table (RGB with 32 entries) > 0: 239,235,231,0 > 1: 126,63,0,255 > 2: 189,189,63,255 > 3: 126,126,189,255 > 4: 63,126,126,255 > 5: 189,252,189,255 > 6: 63,0,63,255 > 7: 0,63,63,255 > 8: 63,63,126,255 > 9: 252,189,252,255 > 10: 126,63,126,255 > 11: 189,252,126,255 > 12: 189,126,189,255 > 13: 63,0,0,255 > 14: 189,126,63,255 > 15: 126,189,63,255 > 16: 0,63,0,255 > 17: 252,189,126,255 > 18: 252,189,189,255 > 19: 126,189,126,255 > 20: 252,252,189,255 > 21: 189,126,126,255 > 22: 0,0,0,255 > 23: 63,126,63,255 > 24: 189,189,189,255 > 25: 252,252,252,255 > 26: 63,63,0,255 > 27: 189,189,126,255 > 28: 126,63,63,255 > 29: 126,126,126,255 > 30: 63,63,63,255 > 31: 126,126,63,255 > > Are you sure this is the image produced from your new map > file (it's not an old one left over from an earlier attempt > is it)? > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > ----- Original Message ----- > From: "Hans Castorp" > To: "'Brent Fraser'" > Cc: > Sent: Tuesday, February 19, 2008 10:25 AM > Subject: RE: [mapserver-users] AGG_Q + raster problem > > > Removing DITHER statement I get an "8 bit like" image, as > you can see in the > attachment... > I think I'm going crazy with all this trouble... > > > -----Mensaje original----- > De: Brent Fraser [mailto:bfraser at geoanalytic.com] > Enviado el: martes, 19 de febrero de 2008 18:07 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > Hans, > > Try removing PROCESSING "DITHER=YES" from the ORTOFOTO > layer definition. I think it is converting the 24-bit input > raster to 8-bit before it renders it to the 24-bit output > image. > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > ----- Original Message ----- > From: "Hans Castorp" > To: "'Brent Fraser'" > Cc: > Sent: Tuesday, February 19, 2008 9:36 AM > Subject: RE: [mapserver-users] AGG_Q + raster problem > > > Hi, Brent > > I'm using mapserver 5.0.0 for Windows. > > I have no problems with vectorial data (shapefiles). The > rest of my mapfile > is like this: > > MAP > NAME 'gmap' > SIZE 800 600 > STATUS ON > EXTENT 559273 4709373 584263 4737543 > FONTSET cartografia.fonts > TRANSPARENT TRUE > IMAGECOLOR 239 235 231 > SHAPEPATH "C:\ms4w\apps\ka-map-1.0\mapdata\xxxxx\" > IMAGETYPE AGGA > CONFIG "PROJ_LIB" "C:\ms4w\proj\nad\" > > WEB > IMAGEPATH 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' > IMAGEURL 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\tmp\' > END > > PROJECTION > "init=epsg:23029" > END > > REFERENCE > EXTENT 559273 4709373 584263 4737543 > SIZE 193 236 > IMAGE > 'C:\ms4w\apps\ka-map-1.0\htdocs\xxxxx\css\img\keymap.gif' > END > > LEGEND > STATUS ON > KEYSPACING 5 10 > KEYSIZE 20 12 > IMAGECOLOR 255 255 255 > LABEL > TYPE TRUETYPE > FONT bluehigh > COLOR 0 0 0 > OUTLINECOLOR 254 254 254 > SIZE 12 > END > END > > OUTPUTFORMAT > NAME 'AGGA' > DRIVER AGG/PNG > IMAGEMODE RGBA > FORMATOPTION "TRANSPARENT=ON" > #TRANSPARENT ON > END > > ################## > #SYMBOL DEFINITION > ################## > > WEB > HEADER "tlg_header.xml" > FOOTER "tlg_footer.xml" > END > > #************** > #MDT > #************** > LAYER > NAME "MDT" > STATUS DEFAULT > GROUP "MDT" > TYPE raster > OPACITY 75 > #PROCESSING "SCALE=AUTO" > PROCESSING "DITHER=YES" > CLASS > MINSCALE 15000 > END > DATA "mdtxxxxx2.tif" > END > > #************** > #ORTOFOTO > #************** > LAYER > NAME "ORTOFOTO" > STATUS DEFAULT > GROUP "ORTOFOTO" > TYPE raster > DATA "ortoxxxxx.ecw" > #PROCESSING "SCALE=AUTO" > PROCESSING "DITHER=YES" > CLASS > MAXSCALE 15000 > END > END > > ################## > #LAYERS DEFINITION > ################## > > END ## end Map > > > > > > > -----Mensaje original----- > De: Brent Fraser [mailto:bfraser at geoanalytic.com] > Enviado el: martes, 19 de febrero de 2008 16:46 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] AGG_Q + raster problem > > Hans, > > That is stange. I've tested mapserver 5.0.0. Beta 4 (it's > the only v5 I've got compiled) and it gives me a 24 bit > color image. What version of Mapserver are you using? Can > you send your entire map file? > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > ----- Original Message ----- > From: "Hans Castorp" > To: > Cc: > Sent: Tuesday, February 19, 2008 2:21 AM > Subject: RE: [mapserver-users] AGG_Q + raster problem > > > Yes, I'm still getting a quantized image using this > statement: > > OUTPUTFORMAT > NAME 'AGG_PNG' > DRIVER AGG/PNG > IMAGEMODE RGB > END > > -----Mensaje original----- > De: Brent Fraser [mailto:bfraser at geoanalytic.com] > Enviado el: lunes, 18 de febrero de 2008 21:37 > Para: Hans Castorp > CC: mapserver-users at lists.osgeo.org > Asunto: RE: [mapserver-users] AGG_Q + raster problem > > So when you remove all the quantize options, you still get a > quantized > image on output? Using something like: > > OUTPUTFORMAT > NAME 'AGG_PNG' > DRIVER AGG/PNG > IMAGEMODE RGB > END > > > >> This, by example >> >> >> -----Mensaje original----- >> De: Guillaume Sueur > [mailto:guillaume.sueur at neogeo-online.net] >> Enviado el: lunes, 18 de febrero de 2008 19:04 >> Para: Hans Castorp; mapserver-users at lists.osgeo.org >> Asunto: Re: [mapserver-users] AGG_Q + raster problem >> >> what's the result in standard AGG mode ? >> >> Hans Castorp a ?crit : >>> The result is the same with or without this line... >>> >>> >>> -----Mensaje original----- >>> De: Guillaume Sueur > [mailto:guillaume.sueur at neogeo-online.net] >>> Enviado el: lunes, 18 de febrero de 2008 18:59 >>> Para: Hans Castorp >>> CC: mapserver-users at lists.osgeo.org >>> Asunto: Re: [mapserver-users] AGG_Q + raster problem >>> >>> quantize_colors=255 is maybe the reason why your colors > are reindexed on >>> a 256 colors palette. >>> >>> Hans Castorp a ?crit : >>>> Thanks Brent, but there is a mistake, the example I > attached is not the >>>> mapservers original output: I have prepared it and give > ......gif extensi?n. >>>> >>>> This is the way I configure my output: >>>> >>>> OUTPUTFORMAT >>>> NAME 'AGG_Q' >>>> DRIVER AGG/PNG >>>> IMAGEMODE RGBA >>>> FORMATOPTION "TRANSPARENT=ON" >>>> FORMATOPTION "QUANTIZE_FORCE=ON" >>>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>>> FORMATOPTION "QUANTIZE_COLORS=255" >>>> END >>>> >>>> Thanks in advance. >>>> >>>> >>>> >>>> >>>> -----Mensaje original----- >>>> De: Brent Fraser [mailto:bfraser at geoanalytic.com] >>>> Enviado el: lunes, 18 de febrero de 2008 18:17 >>>> Para: Hans Castorp >>>> CC: mapserver-users at lists.osgeo.org >>>> Asunto: Re: [mapserver-users] AGG_Q + raster problem >>>> >>>> Hans, >>>> >>>> GIF supports only 256 colors. Use PNG (or JPG) for an > output format. >>>> >>>> Brent Fraser >>>> >>>>> Hi to all, >>>>> >>>>> >>>>> >>>>> I'm trying to publish a cartography using both > vectorial and raster >>>>> layers. >>>>> I'm using mapserver 5 and agg_q as output format. There > is no problem >>>>> about >>>>> vectorial files (shapefiles): all work fine. >>>>> >>>>> The only problem I'm having is trying to publish some > raster stuff: an >>>>> aerial photo (.geotiff) and a digital terrain model > (.ecw). I'm not >>>>> capable >>>>> to make the output showing real colours; there is an > example attached >>>>> to >>>>> this mail (an aerial photo). >>>>> >>>>> >>>>> >>>>> My mapfile looks in this way: >>>>> >>>>> >>>>> >>>>> LAYER >>>>> NAME "MDT" >>>>> STATUS DEFAULT >>>>> GROUP "MDT" >>>>> TYPE raster >>>>> DATA "mdt.tif" >>>>> CLASS >>>>> MINSCALE 15000 >>>>> END >>>>> END >>>>> >>>>> LAYER >>>>> NAME "ORTOFOTO" >>>>> STATUS DEFAULT >>>>> GROUP "ORTOFOTO" >>>>> TYPE raster >>>>> DATA "ortofoto.ecw" >>>>> CLASS >>>>> MAXSCALE 15000 >>>>> END >>>>> END >>>>> >>>>> >>>>> >>>>> What I have to do to solve this? >>>>> >>>>> >>>>> >>>>> Thanks in advance to everyone. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Hans Castorp From nospam420 at yahoo.com Wed Feb 20 18:31:09 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Wed, 20 Feb 2008 18:31:09 -0800 (PST) Subject: [MAPSERVER-USERS] leaking memory in java mapscript (was Re: thread safety) In-Reply-To: <15579407.post@talk.nabble.com> References: <15514019.post@talk.nabble.com> <15562378.post@talk.nabble.com> <15562408.post@talk.nabble.com> <15579407.post@talk.nabble.com> Message-ID: <15603603.post@talk.nabble.com> rich.fromm wrote: > > Other than calling delete() on every mapserver object as applicable, is > there > anything else that I can be doing? I fear that there may be a real > genuine > leak within mapserver, and that that might be hard to track down. > I have narrowed this down to a smaller testcase, that only has two mapscript objects. I have a fixed map file, and I'm doing barely anything, just creating the map object from the map file, drawing to the image object, and getting the bytes. I am calling both map.delete() and img.delete() at the end. Then I loop over all of this repeatedly. This is a little bit of a simplification, but essentially what I'm doing is this: for (int i = 0; i < loop; i++) { mapObj map = null; imageObj img = null; try { map = new mapObj(filename); img = map.draw(); byte[] bytes = img.getBytes(); } catch (Exception e) { System.err.println("Caught exception: " + e); e.printStackTrace(System.err); } finally { if (img != null) { img.delete(); } if (map != null) { map.delete(); } } System.gc(); } // end for I have tried a number of variants of this (including outputting the bytes to a file), and the offending line seems to be the call to imageObj.getBytes(). With it, my program leaks. Without it, it does not: [rich at peyote mapserver_test 17:53:31]$ diff -u java/src/TestMapscript.java.bak1 java/src/TestMapscript.java.bak3 --- java/src/TestMapscript.java.bak1 2008-02-20 17:37:43.000000000 -0800 +++ java/src/TestMapscript.java.bak3 2008-02-20 17:53:27.000000000 -0800 @@ -1,4 +1,4 @@ -// this code does NOT leak +// this code DOES leak import edu.umn.gis.mapscript.mapObj; import edu.umn.gis.mapscript.imageObj; @@ -47,7 +47,7 @@ System.err.println("Drawing map to image object"); img = map.draw(); -// byte[] bytes = img.getBytes(); + byte[] bytes = img.getBytes(); // int width = img.getWidth(); // int height = img.getHeight(); // System.err.println("The image is of size " + width + " x " + height + " and contains " + bytes.length + " bytes"); [rich at peyote mapserver_test 17:53:53]$ I am calling System.gc() at the end of each iteration. And by examining the memory from java's perspective (Runtime.getRuntime().freeMemory() and Runtime.getRuntime().totalMemory()) I can see that it is reasonably stable. However, the memory as reported by top gradually grows. The source for imageObj.getBytes() is as follows: mapscript/java/edu/umn/gis/mapscript/imageObj.java public byte[] getBytes() { return mapscriptJNI.imageObj_getBytes(swigCPtr); } I don't totally understand how all of the SWIG stuff works, but I can follow it a bit. The source for this is: getBytes() (mapscript/swiginc/image.i) which notes the following: /* ------------------------------------------------------------------------- getBytes returns a gdBuffer structure (defined in mapscript.i) which must be typemapped to an object appropriate to the target language. This typemap must also gdFree the data member of the gdBuffer. See the type- maps in java/javamodule.i and python/pymodule.i for examples. contributed by Jerry Pisk, jerry.pisk at gmail.com ------------------------------------------------------------------------- */ And all of the following: msSaveImageBuffer() (maputil.c) msSaveImageBufferAGG() (mapagg.cpp) msSaveImageBufferGD() (mapgd.c) confirm that the caller must free the returned array (with gdFree()). What's not entirely clear to me is whether "the caller" means the java mapscript code, or the application writer. In other words, am I responsible for doing this, or should this happen when I call img.delete() ? Here is the code for imageObj.delete(): mapscript/java/edu/umn/gis/mapscript/imageObj.java public void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; mapscriptJNI.delete_imageObj(swigCPtr); } swigCPtr = 0; } But even though I don't see a call to gdFree() there, it's not clear to me that it's not happening somewhere. I don't understand the SWIG path enough, and I haven't yet tried following it in gdb. (Although that might be worth trying.) If I am responsible for doing this, how do I do it? It appears to me that gdFree() is not part of the mapscript API (it doesn't appear in the docs), and just that it is just a mapscript internal function. Right now my test case is using a fairly complicated mapfile from a large data source located in a postgis database. I will try to see if I can replicate this problem with a simpler map file and/or synthetic data. But in the mean time I wanted to post this in case anyone might have some advice based on these observations. Once again, thanks for any help that anyone might be able to provide. - Rich p.s. This is all based on mapserver 5.0.0 -- View this message in context: http://www.nabble.com/thread-safety-tp15514019p15603603.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Wed Feb 20 18:36:34 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Wed, 20 Feb 2008 18:36:34 -0800 (PST) Subject: [MAPSERVER-USERS] leaking memory in java mapscript (was Re: thread safety) In-Reply-To: <15603603.post@talk.nabble.com> References: <15514019.post@talk.nabble.com> <15562378.post@talk.nabble.com> <15562408.post@talk.nabble.com> <15579407.post@talk.nabble.com> <15603603.post@talk.nabble.com> Message-ID: <15603655.post@talk.nabble.com> rich.fromm wrote: > > p.s. This is all based on mapserver 5.0.0 > I had built Java mapscript as shown below with the swig version for debian 3.1 (sarge), which is 1.3.24. It seemed to work, so I had assumed that everything was okay. But I do see that mapscript/java/README says the following: --- begin --- SWIG wrappers ------------- MapServer releases, beginning with 4.2.4, contain pre-generated wrapper code (mapscript/java/mapscript_wrap.c) and class files (mapscript/java/edu). Nevertheless it is recommended that you generate your own using the "interface" target in the Java Makefile. Requires swig > 1.3.24. Version 1.3.28 or 1.3.29 are recommended. --- end --- I guess I assumed that because 1.3.24 seemed to work for me that perhaps the '>' above was really a type that should have been '>='. But perhaps it really is significant? I'll try to rebuild tomorrow with a later version of swig and see if it makes a difference. --- begin --- [rich at peyote mapserver-5.0.0-5 16:09:21]$ pwd /ext/home/rich/wrk/mapserver/mapserver-5.0.0-5 [rich at peyote mapserver-5.0.0-5 16:09:22]$ cd mapscript/java [rich at peyote java 16:09:25]$ export JAVA_HOME=/usr/lib/j2sdk1.5-sun [rich at peyote java 16:09:31]$ make interface mkdir -p edu/umn/gis/mapscript swig -java -package edu.umn.gis.mapscript -outdir edu/umn/gis/mapscript -o mapscript_wrap.c ../mapscript.i [rich at peyote java 16:09:39]$ make gcc -fpic -c -g -O2 -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DUSE_PROJ -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_AGG -DUSE_ICONV -DUSE_POSTGIS -DUSE_THREAD -I/usr/local/include -I/usr/local/include/agg2 -I/usr/include/freetype2 -I/usr/include/postgresql -I/usr/lib/j2sdk1.5-sun/include -I/usr/lib/j2sdk1.5-sun/include/linux -fno-strict-aliasing mapscript_wrap.c gcc -fpic -shared mapscript_wrap.o -o libmapscript.so -L../.. -lmapserver -L/usr/local/lib -lgd -lfreetype -lpng -lz -L/usr/local/lib -lagg -laggfontfreetype -lfreetype -lpng -lz -lproj -L/usr/lib -lpq -lpthread -lm -lstdc++ javac edu/umn/gis/mapscript/*.java jar cf mapscript.jar edu [rich at peyote java 16:10:14]$ --- end --- -- View this message in context: http://www.nabble.com/thread-safety-tp15514019p15603655.html Sent from the Mapserver - User mailing list archive at Nabble.com. From cww at denterprises.org Wed Feb 20 18:53:39 2008 From: cww at denterprises.org (Colin Wetherbee) Date: Wed, 20 Feb 2008 21:53:39 -0500 Subject: [mapserver-users] The right tool for the job In-Reply-To: <02fe01c873ee$3e173c60$140002c0@shark> References: <47BB8DF5.60504@denterprises.org> <02fe01c873ee$3e173c60$140002c0@shark> Message-ID: <47BCE7B3.3000905@denterprises.org> Brent Fraser wrote: > 3. OpenLayers I'm really glad you mentioned this. I have installed it and poked around a bit, and I love it! That takes care of the front-end quite nicely, but now I need to get mapserv to start serving custom WMS data that gets pulled from PostgreSQL. It seems the tutorial uses a bunch of DBase files to define its layers, so I'm just as lost as I was before I installed the tutorial. First, I'm going to wade through this [0] long thing, but I'm wondering if there is a more comprehensive (and less image-heavy) PostgreSQL-MapServer primer somewhere else? Thanks! Colin [0] http://www.mapbender.org/presentations/Spatial_Data_Management_Arnulf_Christl/html/ From mhungc at gmail.com Wed Feb 20 18:57:38 2008 From: mhungc at gmail.com (mhungc) Date: Wed, 20 Feb 2008 18:57:38 -0800 (PST) Subject: [MAPSERVER-USERS] How i use the function GetResult(int i) ? what this mean? Message-ID: <15603851.post@talk.nabble.com> Hi, I have a problem with the function getResult(int i). What mean getResult(0) or getResult(1) ? What is the parameter "int i" ? Because sometime it returns different values for example $objResult = objLayer->getResult(0); echo $objResult->shapeindex the shapeindex value is different when i execute the script in different times and it have some relation with the function numResults() ? -- View this message in context: http://www.nabble.com/How-i-use-the-function-GetResult%28int-i%29---what-this-mean--tp15603851p15603851.html Sent from the Mapserver - User mailing list archive at Nabble.com. From barbara at reallygoodfreelancewriter.com Wed Feb 20 19:25:56 2008 From: barbara at reallygoodfreelancewriter.com (Barbara Payne) Date: Wed, 20 Feb 2008 21:25:56 -0600 Subject: [mapserver-users] Unsubscribing from MAPSERVER-USER chain In-Reply-To: References: <00b901c8724f$f250e5f0$6501a8c0@signo3><.68.144.5.189.1203355002.squirrel@68.144.5.189><00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net><00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne<002401c872d8$cba771b0$6501a8c0@signo3><02d601c8730e$87164860$140002c0@shark><000f01c87315$a0181760$6501a8c0@signo3><033401c87319$e18dc380$140002c0@shark><001801c8731c$685700f0$6501a8c0@signo3><036601c8731e$322b22c0$140002c0@shark> <002e01c87325$3<003101c873a3$b37df8e0$6501a8c0@signo3><018001c873d2$2d8a64b0$140002c0@shark> <47BC4791.80201@pobox.com><01b601c873d8$fde56aa0$140002c0@shark> <47BC53B5.2000302@pobox.com><020401c873ea$d2867db0$140002c0@shark> <47BC8558.5000400@zeelandnet.nl><47BC88C6.5000303@pobox.com> <47BC8EB7.6070009@zeelandnet.nl> <47BC9D6C.80603@pobox.com> Message-ID: <003e01c87439$793d7d90$6501a8c0@workstation> Yes, having the same issue. Thanks for help. _____ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Manoj Monga Sent: Wednesday, February 20, 2008 4:59 PM To: MAPSERVER-USERS Subject: [mapserver-users] Unsubscribing from MAPSERVER-USER chain I went to the web page to unsubscribe. Since I do not remember my membership password, I tried the "Reminder" button. But no password gets mailed to me. Can someone please help me to unsubscribe from this chain? Thx Manoj _____ Connect and share in new ways with Windows Live. Get it now! -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvehjem at runestone.net Wed Feb 20 20:30:33 2008 From: elvehjem at runestone.net (Ken S. Elvehjem) Date: Wed, 20 Feb 2008 22:30:33 -0600 Subject: [mapserver-users] temp files Message-ID: <004601c87442$85f3a560$6401a8c0@Kens> Hi, 2 items-- may be interconnected??? I recently set up a WMS mapserver using MS4W. It works better than I have any right to expect, what with it being my first real attempt; would have never gotten that far without help from the list. During the setup phase, I was having the raster data output as PNG files. Which looked awful. Which is because I was used to seeing these aerial photos as 24 bit jpeg files. (the documentation seems to indicate an 8-bit limit on png colors...?) They would dutifully create a temporary png file in the tmp folder. Then, I changed my map file and my request URL to indicate jpeg files, which works great. My observation is that my mapserver is no longer storing temporary files. This also is good news -- because I don't have to delete them -- but I am a little worried that they are building up somewhere else -- like in the cooling fins on my cpu, or in my power supply ;>) Seriously, can someone explain about the apparent 8-bit limit in png files (is it true, will it change, etc.) and suggest where the temp files are going? Below is the "WEB" section of my .map file... WEB TEMPLATE "SD.html" IMAGEPATH "C:\ms4w\Apache\htdocs\tmp/" # have verified the correct path! IMAGEURL "/tmp/" # and it saved png tmp files to it METADATA "wms_title" "WMS McCOOK" "wms_onlineresource" "http://206.183.188.202/cgi-bin/mapserv?" "wms_srs" "EPSG:26914 EPSG:26914" END END Sincerely, Ken Ken S. Elvehjem ELVEHJEM TECHNICAL SUPPORT 250 Drury Ave PO Box 37 Lowry MN 56349 320.283.5684 320.283.5247 h 320.424.1299 c -------------- next part -------------- An HTML attachment was scrubbed... URL: From umn-ms at hydrotec.de Wed Feb 20 23:36:54 2008 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Thu, 21 Feb 2008 08:36:54 +0100 Subject: Antwort: Re: [MAPSERVER-USERS] leaking memory in java mapscript (was Re: thread safety) In-Reply-To: <15603603.post@talk.nabble.com> Message-ID: Hi > I don't totally understand how all of the SWIG stuff works, but I can follow > it a bit. The source for this is: It's easier to watch the SWIG-generated JNI-Code in mapscript/java/mapscript_wrap.c Example: mapscriptJNI.delete_imageObj(swigCPtr); is implemented by the C-function SWIGEXPORT jbyteArray JNICALL Java_edu_umn_gis_mapscript_mapscriptJNI_imageObj_1getBytes > confirm that the caller must free the returned array (with gdFree()). At the end of the long-named C-function you'll find a call to gdFree Can you estimate how much memory is lost in each step of your testprogram? Is it approx. the size of the image? Benedikt Rothe mapserver-users-bounces at lists.osgeo.org schrieb am 21.02.2008 03:31:09: > > > rich.fromm wrote: > > > > Other than calling delete() on every mapserver object as applicable, is > > there > > anything else that I can be doing? I fear that there may be a real > > genuine > > leak within mapserver, and that that might be hard to track down. > > > > I have narrowed this down to a smaller testcase, that only has two mapscript > objects. > > I have a fixed map file, and I'm doing barely anything, just creating the > map > object from the map file, drawing to the image object, and getting the > bytes. > I am calling both map.delete() and img.delete() at the end. Then I loop > over > all of this repeatedly. > > This is a little bit of a simplification, but essentially what I'm doing is > this: > > for (int i = 0; i < loop; i++) { > mapObj map = null; > imageObj img = null; > > try { > map = new mapObj(filename); > img = map.draw(); > byte[] bytes = img.getBytes(); > } catch (Exception e) { > System.err.println("Caught exception: " + e); > e.printStackTrace(System.err); > } finally { > if (img != null) { > img.delete(); > } > if (map != null) { > map.delete(); > } > } > System.gc(); > } // end for > > I have tried a number of variants of this (including outputting the bytes to > a > file), and the offending line seems to be the call to imageObj.getBytes(). > With it, my program leaks. Without it, it does not: > > [rich at peyote mapserver_test 17:53:31]$ diff -u > java/src/TestMapscript.java.bak1 java/src/TestMapscript.java.bak3 > --- java/src/TestMapscript.java.bak1 2008-02-20 17:37:43.000000000 -0800 > +++ java/src/TestMapscript.java.bak3 2008-02-20 17:53:27.000000000 -0800 > @@ -1,4 +1,4 @@ > -// this code does NOT leak > +// this code DOES leak > > import edu.umn.gis.mapscript.mapObj; > import edu.umn.gis.mapscript.imageObj; > @@ -47,7 +47,7 @@ > System.err.println("Drawing map to image object"); > img = map.draw(); > > -// byte[] bytes = img.getBytes(); > + byte[] bytes = img.getBytes(); > // int width = img.getWidth(); > // int height = img.getHeight(); > // System.err.println("The image is of size " + width + " x " + > height + " and contains " + bytes.length + " bytes"); > [rich at peyote mapserver_test 17:53:53]$ > > I am calling System.gc() at the end of each iteration. And by examining the > memory from java's perspective (Runtime.getRuntime().freeMemory() and > Runtime.getRuntime().totalMemory()) I can see that it is reasonably stable. > However, the memory as reported by top gradually grows. > > The source for imageObj.getBytes() is as follows: > > mapscript/java/edu/umn/gis/mapscript/imageObj.java > > public byte[] getBytes() { > return mapscriptJNI.imageObj_getBytes(swigCPtr); > } > > I don't totally understand how all of the SWIG stuff works, but I can follow > it a bit. The source for this is: > > getBytes() (mapscript/swiginc/image.i) > > which notes the following: > > /* > > ------------------------------------------------------------------------- > getBytes returns a gdBuffer structure (defined in mapscript.i) which > must > be typemapped to an object appropriate to the target language. This > typemap must also gdFree the data member of the gdBuffer. See the type- > maps in java/javamodule.i and python/pymodule.i for examples. > > contributed by Jerry Pisk, jerry.pisk at gmail.com > > ------------------------------------------------------------------------- > */ > > And all of the following: > > msSaveImageBuffer() (maputil.c) > msSaveImageBufferAGG() (mapagg.cpp) > msSaveImageBufferGD() (mapgd.c) > > confirm that the caller must free the returned array (with gdFree()). > > What's not entirely clear to me is whether "the caller" means the java > mapscript code, or the application writer. In other words, am I responsible > for doing this, or should this happen when I call img.delete() ? Here is > the > code for imageObj.delete(): > > mapscript/java/edu/umn/gis/mapscript/imageObj.java > > public void delete() { > if(swigCPtr != 0 && swigCMemOwn) { > swigCMemOwn = false; > mapscriptJNI.delete_imageObj(swigCPtr); > } > swigCPtr = 0; > } > > But even though I don't see a call to gdFree() there, it's not clear to me > that it's not happening somewhere. I don't understand the SWIG path enough, > and I haven't yet tried following it in gdb. (Although that might be worth > trying.) > > If I am responsible for doing this, how do I do it? It appears to me that > gdFree() is not part of the mapscript API (it doesn't appear in the docs), > and > just that it is just a mapscript internal function. > > Right now my test case is using a fairly complicated mapfile from a large > data > source located in a postgis database. I will try to see if I can replicate > this problem with a simpler map file and/or synthetic data. > > But in the mean time I wanted to post this in case anyone might have some > advice based on these observations. > > Once again, thanks for any help that anyone might be able to provide. > > - Rich > > p.s. This is all based on mapserver 5.0.0 > > -- > View this message in context: http://www.nabble.com/thread-safety- > tp15514019p15603603.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From devmapserver at gmail.com Wed Feb 20 23:56:51 2008 From: devmapserver at gmail.com (Desarrollo Desarrollo) Date: Thu, 21 Feb 2008 08:56:51 +0100 Subject: [mapserver-users] MapServer consuming 100% CPU Message-ID: Hi, I am developing an application with MapServer v2.2.7 with Apache on Windows XP, but I have a serious problem, below I describe it: Using Navteq demo maps from Paris, the Streets.shp have around 500000 line strings features, when mapserver renders the layer without using DBF data (only draw lines) everything is OK and fast, but when mapserver needs to access to the DBF to render labels or use expressions to filter data, mapserver starts to consuming 100% CPU and nothing is rendered after to spends a long time. Using Teleatlas demo maps for a medium city of Spain, the Street.shp with around 11000 line strings features doesn't show any trouble and mapserver renders the images OK and fast even accessing to DBF to render labels Could somebody help me with this problem? Why does it happen? How do I solve it? Thank you very much. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.thierion at ema.fr Thu Feb 21 01:19:50 2008 From: vincent.thierion at ema.fr (vincent.thierion at ema.fr) Date: Thu, 21 Feb 2008 10:19:50 +0100 Subject: [mapserver-users] Netcdf / WCS In-Reply-To: <47BAE68D.5157.008F.0@dnr.state.mn.us> References: <1203435529.5673.32.camel@vincent-laptop><47BAFEE1.60508@pobox.com><47BAE68D.5157.008F.0@dnr.state.mn.us> Message-ID: <20080221101950.aznuis0btw4ksw0c@webmail.ema.fr> Hello, I'm not expert on OWS, but serve netCDF files within WCS seems not totally achieve. The case of Barker concerns a set of netCDF files. The Galeon project is trying to develop this issue : http://galeon-wcs.jot.com/Implementation%20Progress%20Page. For my case, i think the best way is to create one netCDF file per time step or to create a script to generate TIF files and after serves them. Best Regards Vincent Steve Lime a ?crit : > I need to think about this. For some reason I remember one of the test > cases being > just like this although with not so many bands. As the cobwebs clear I > believe this > was started but not completed. There's even a BANDSITEM member of the > layer object > defined in the source. This would allow definition of a column to map a > temporal value > to a particular band within a larger image. I'm thinking it's probably > not far from functioning. > > Steve > >>>> On 2/19/2008 at 10:08 AM, in message <47BAFEE1.60508 at pobox.com>, > Frank > Warmerdam wrote: >> vincent wrote: >>> Hello, >>> >>> I would like to create Web Coverage Service from one netCDF file in > >>> following > http://mapserver.gis.umn.edu/docs/howto/WCSServerFormatHowTo >>> >>> My netCDF store rainfall matrix every five minutes in the "pluie" >>> variable. This the CDL : >>> >>> dimensions: >>> >>> time = UNLIMITED; // (496 currently) // (has coord.var) >>> x = 50; // (has coord.var) >>> y = 50; // (has coord.var) >>> variables: >>> int Lambert_Conformal; >>> :grid_mapping_name = "lambert_conformal_conic"; >>> :standard_parallel = 43.20317, 44.99683; // double >>> :longitude_of_central_meridian = 2.337229; // double >>> :latitude_of_projection_origin = 44.1; // double >>> :false_easting = 600.0; // double >>> :false_northing = 3200.0; // double >>> :_CoordinateTransformType = "Projection"; >>> :_CoordinateSystems = "ProjectionCoordinateSystem"; >>> :_CoordinateAxes = "y x"; >>> :_CoordinateAxisTypes = "GeoX GeoY"; >>> * double pluie(time=496, y=50, x=50);* >>> * :units = "mm/h";* >>> * :long_name = "Intensit? de pluie";* >>> * :coordinates = "lat lon";* >>> * :grid_mapping = "Lambert_Conformal";* >>> * :_CoordinateSystems = "ProjectionCoordinateSystem >> LatLonCoordinateSystem";* >> >> Vincent, >> >> Because GDAL treats this array as a single dataset having 496 bands, > I don't >> believe there is a way to properly create a tileindex with one entry > per >> time slice, referring back directly to that band though this is > something >> that >> I think was discussed at one point. >> >> You *can* serve the pluie array, but it will be represented as having > 496 >> bands along a dimension called Band instead of time. >> >> Hopefully Steve will correct me if I am wrong. What would be nice >> is a way to have WCS (and raster rendering in general) potentially >> override the BANDS= processing option with information read from a >> tile index, and then update the gdaltindex program accordingly to >> generate such results. This shouldn't - in theory - be too hard to >> implement. >> >> Best regards, >> -- >> > ---------------------------------------+------------------------------------ >> -- >> I set the clouds in motion - turn up | Frank Warmerdam, >> warmerdam at pobox.com >> light and sound - activate the windows | http://pobox.com/~warmerdam > >> and watch the world go round - Rush | President OSGeo, > http://osgeo.org >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ---------------------------------------------------- Ce message a ete envoye par le serveur IMP de l'EMA. From hanscastorp76 at yahoo.es Thu Feb 21 02:18:20 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Thu, 21 Feb 2008 10:18:20 +0000 (GMT) Subject: [mapserver-users] annotation layer Message-ID: <251913.31766.qm@web25905.mail.ukl.yahoo.com> Hi to all, It is possible to have an annotation layer with symbol but without label?? I will try to explain it: I have an ANNOTATION layer in order to place SYMBOLS depending on some EXPRESSION values. The problem is that I?m not capable to place SYMBOLS without place LABELS, and what I need is to place only symbols. Here is my mapfile: This configuration shows both symbol and label LAYER NAME 'road_sym' GROUP 'cartografia' DATA 'carreteras2' STATUS DEFAULT TYPE ANNOTATION CLASSITEM 'MATRICULA' LABELITEM 'MATRICULA' CLASS EXPRESSION 'AP-53' STYLE SYMBOL 'AP-53' SIZE 15 OUTLINECOLOR 254 254 254 END LABEL ANTIALIAS true POSITION AUTO ANGLE FOLLOW FONT "arial" TYPE truetype COLOR 0 0 0 MINDISTANCE 300 MINFEATURESIZE 10 OFFSET 0 0 PARTIALS FALSE SIZE 6 OUTLINECOLOR 255 255 255 END END END This configuration shows nothing (neither symbol nor label) LAYER NAME 'road_sym' GROUP 'cartografia' DATA 'carreteras2' STATUS DEFAULT TYPE ANNOTATION CLASSITEM 'MATRICULA' LABELITEM 'MATRICULA' CLASS EXPRESSION 'AP-53' STYLE SYMBOL 'AP-53' SIZE 15 OUTLINECOLOR 254 254 254 END#end symbol END #end style END #end class END #end layer Thanks in advance. Hans Castorp ______________________________________________ ?Con Mascota por primera vez? S? un mejor Amigo. Entra en Yahoo! Respuestas http://es.answers.yahoo.com/info/welcome -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at neogeo-online.net Thu Feb 21 02:46:48 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Thu, 21 Feb 2008 11:46:48 +0100 Subject: [mapserver-users] annotation layer In-Reply-To: <251913.31766.qm@web25905.mail.ukl.yahoo.com> References: <251913.31766.qm@web25905.mail.ukl.yahoo.com> Message-ID: <47BD5698.3060906@neogeo-online.net> I think you should just use a POINT layer then. Annotation is dedicated to labels, it's a way to have labels displayed WITHOUT the anchor point. Hans Castorp a ?crit : > Hi to all, > > > > It is possible to have an annotation layer with symbol but without label?? > > > > I will try to explain it: I have an ANNOTATION layer in order to place > SYMBOLS depending on some EXPRESSION values. The problem is that I?m not > capable to place SYMBOLS without place LABELS, and what I need is to > place only symbols. > > > > Here is my mapfile: > > > > > > This configuration shows both symbol and label > > > > LAYER > > NAME 'road_sym' > > GROUP 'cartografia' > > DATA 'carreteras2' > > STATUS DEFAULT > > TYPE ANNOTATION > > CLASSITEM 'MATRICULA' > > LABELITEM 'MATRICULA' > > > > CLASS > > EXPRESSION 'AP-53' > > STYLE > > SYMBOL 'AP-53' > > SIZE 15 > > OUTLINECOLOR 254 254 254 > > END > > LABEL > > ANTIALIAS true > > POSITION AUTO > > ANGLE FOLLOW > > FONT "arial" > > TYPE truetype > > COLOR 0 0 0 > > MINDISTANCE 300 > > MINFEATURESIZE 10 > > OFFSET 0 0 > > PARTIALS FALSE > > SIZE 6 > > OUTLINECOLOR 255 255 255 > > END > > END > > END > > > > > > This configuration shows nothing (neither symbol nor label) > > > > LAYER > > NAME 'road_sym' > > GROUP 'cartografia' > > DATA 'carreteras2' > > STATUS DEFAULT > > TYPE ANNOTATION > > CLASSITEM 'MATRICULA' > > LABELITEM 'MATRICULA' > > > > CLASS > > EXPRESSION 'AP-53' > > STYLE > > SYMBOL 'AP-53' > > SIZE 15 > > OUTLINECOLOR 254 254 254 > > END#end symbol > > END #end style > > END #end class > > END #end layer > > > > > > > > Thanks in advance. > > > > > > > > > > Hans Castorp > > > ------------------------------------------------------------------------ > > ?Con Mascota por primera vez? - S? un mejor Amigo > Entra en Yahoo! Respuestas > . > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From hanscastorp76 at yahoo.es Thu Feb 21 02:57:32 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Thu, 21 Feb 2008 10:57:32 +0000 (GMT) Subject: [mapserver-users] annotation layer Message-ID: <816719.26235.qm@web25914.mail.ukl.yahoo.com> There is a problem. The layer I want to give symbols to is a line layer, so I cannot use point layer. Thanks. -----Mensaje original----- De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] Enviado el: jueves, 21 de febrero de 2008 11:47 Para: Hans Castorp; mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] annotation layer I think you should just use a POINT layer then. Annotation is dedicated to labels, it's a way to have labels displayed WITHOUT the anchor point. Hans Castorp a ?crit : > Hi to all, > > > > It is possible to have an annotation layer with symbol but without label?? > > > > I will try to explain it: I have an ANNOTATION layer in order to place > SYMBOLS depending on some EXPRESSION values. The problem is that I?m not > capable to place SYMBOLS without place LABELS, and what I need is to > place only symbols. > > > > Here is my mapfile: > > > > > > This configuration shows both symbol and label > > > > LAYER > > NAME 'road_sym' > > GROUP 'cartografia' > > DATA 'carreteras2' > > STATUS DEFAULT > > TYPE ANNOTATION > > CLASSITEM 'MATRICULA' > > LABELITEM 'MATRICULA' > > > > CLASS > > EXPRESSION 'AP-53' > > STYLE > > SYMBOL 'AP-53' > > SIZE 15 > > OUTLINECOLOR 254 254 254 > > END > > LABEL > > ANTIALIAS true > > POSITION AUTO > > ANGLE FOLLOW > > FONT "arial" > > TYPE truetype > > COLOR 0 0 0 > > MINDISTANCE 300 > > MINFEATURESIZE 10 > > OFFSET 0 0 > > PARTIALS FALSE > > SIZE 6 > > OUTLINECOLOR 255 255 255 > > END > > END > > END > > > > > > This configuration shows nothing (neither symbol nor label) > > > > LAYER > > NAME 'road_sym' > > GROUP 'cartografia' > > DATA 'carreteras2' > > STATUS DEFAULT > > TYPE ANNOTATION > > CLASSITEM 'MATRICULA' > > LABELITEM 'MATRICULA' > > > > CLASS > > EXPRESSION 'AP-53' > > STYLE > > SYMBOL 'AP-53' > > SIZE 15 > > OUTLINECOLOR 254 254 254 > > END#end symbol > > END #end style > > END #end class > > END #end layer > > > > > > > > Thanks in advance. > > > > > > > > > > Hans Castorp > > > ------------------------------------------------------------------------ > > ?Con Mascota por primera vez? - S? un mejor Amigo > Entra en Yahoo! Respuestas > . > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net ______________________________________________ ?Con Mascota por primera vez? S? un mejor Amigo. Entra en Yahoo! Respuestas http://es.answers.yahoo.com/info/welcome -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at neogeo-online.net Thu Feb 21 03:05:23 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Thu, 21 Feb 2008 12:05:23 +0100 Subject: [mapserver-users] annotation layer In-Reply-To: <816719.26235.qm@web25914.mail.ukl.yahoo.com> References: <816719.26235.qm@web25914.mail.ukl.yahoo.com> Message-ID: <47BD5AF3.7000606@neogeo-online.net> can't you extract the middle of the lines as points ? Hans Castorp a ?crit : > There is a problem. The layer I want to give symbols to is a line layer, > so I cannot use point layer. > > Thanks. > > -----Mensaje original----- > De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] > Enviado el: jueves, 21 de febrero de 2008 11:47 > Para: Hans Castorp; mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] annotation layer > > I think you should just use a POINT layer then. Annotation is dedicated > to labels, it's a way to have labels displayed WITHOUT the anchor point. > > > Hans Castorp a ?crit : > > Hi to all, > > > > > > > > It is possible to have an annotation layer with symbol but without > label?? > > > > > > > > I will try to explain it: I have an ANNOTATION layer in order to place > > SYMBOLS depending on some EXPRESSION values. The problem is that I?m not > > capable to place SYMBOLS without place LABELS, and what I need is to > > place only symbols. > > > > > > > > Here is my mapfile: > > > > > > > > > > > > This configuration shows both symbol and label > > > > > > > > LAYER > > > > NAME 'road_sym' > > > > GROUP 'cartografia' > > > > DATA 'carreteras2' > > > > STATUS DEFAULT > > > > TYPE ANNOTATION > > > > CLASSITEM 'MATRICULA' > > > > LABELITEM 'MATRICULA' > > > > > > > > CLASS > > > > EXPRESSION 'AP-53' > > > > STYLE > > > > SYMBOL 'AP-53' > > > > SIZE 15 > > > > OUTLINECOLOR 254 254 254 > > > > END > > > > LABEL > > > > ANTIALIAS true > > > > POSITION AUTO > > > > ANGLE FOLLOW > > > > FONT "arial" > > > > TYPE truetype > > > > COLOR 0 0 0 > > > > MINDISTANCE 300 > > > > MINFEATURESIZE 10 > > > > OFFSET 0 0 > > > > PARTIALS FALSE > > > > SIZE 6 > > > > OUTLINECOLOR 255 255 255 > > > > END > > > > END > > > > END > > > > > > > > > > > > This configuration shows nothing (neither symbol nor label) > > > > > > > > LAYER > > > > NAME 'road_sym' > > > > GROUP 'cartografia' > > > > DATA 'carreteras2' > > > > STATUS DEFAULT > > > > TYPE ANNOTATION > > > > CLASSITEM 'MATRICULA' > > > > LABELITEM 'MATRICULA' > > > > > > > > CLASS > > > > EXPRESSION 'AP-53' > > > > STYLE > > > > SYMBOL 'AP-53' > > > > SIZE 15 > > > > OUTLINECOLOR 254 254 254 > > > > END#end symbol > > > > END #end style > > > > END #end class > > > > END #end layer > > > > > > > > > > > > > > > > Thanks in advance. > > > > > > > > > > > > > > > > > > > > Hans Castorp > > > > > > ------------------------------------------------------------------------ > > > > ?Con Mascota por primera vez? - S? un mejor Amigo > > Entra en Yahoo! Respuestas >> > >. > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- > Guillaume SUEUR > Expert SIG et OpenSource > NEOGEO > 46 RUE MATABIAU > 31000 TOULOUSE > 06 74 91 95 20 > Site web : http://www.neogeo-online.net > > > ------------------------------------------------------------------------ > > ?Con Mascota por primera vez? - S? un mejor Amigo > Entra en Yahoo! Respuestas > . -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From James.Leveille at mtq.gouv.qc.ca Thu Feb 21 04:31:06 2008 From: James.Leveille at mtq.gouv.qc.ca (=?UTF-8?B?TMOpdmVpbGzDqSwgSmFtZXM=?=) Date: Thu, 21 Feb 2008 07:31:06 -0500 Subject: [mapserver-users] annotation layer In-Reply-To: <816719.26235.qm@web25914.mail.ukl.yahoo.com> Message-ID: <2F86ED212F3E164EB9FBB2E68C67858E049960B9@SINFRA0-EXC003.MTQ.MIN.INTRA> Try this, work's fine for me LAYER PROJECTION "init=epsg:42105" END METADATA wms_title "Interdictions aux camions" END NAME "ert_camns" STATUS ON DUMP TRUE EXTENT 30000 75000 1700000 2120000 MAXSCALE 500000 MINSCALE 1 TYPE ANNOTATION DATA "ert_camns/ert_camns" CLASS SYMBOL "ert_camns" TEXT " " LABEL TYPE TRUETYPE FONT "arial" POSITION CC COLOR 255 255 255 MINDISTANCE 500 FORCE TRUE PARTIALS FALSE END END END ______________________________________________________ JAMES L?VEILL? Service des syst?mes de Mission Direction des technologies de l'information Minist?re des Transports du Qu?bec 5833, boul. Pierre-Bertrand, 2i?me ?tage Qu?bec (Qu?bec) G2K 1K7 T?l?phone: (418) 380-2005 poste 227 T?l?copieur: (418) 644-6653 james.leveille at mtq.gouv.qc.ca -----Message d'origine----- De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Hans Castorp Envoy? : 21 f?vrier 2008 05:58 ? : guillaume.sueur at neogeo-online.net; mapserver-users at lists.osgeo.org Objet : RE: [mapserver-users] annotation layer There is a problem. The layer I want to give symbols to is a line layer, so I cannot use point layer. Thanks. -----Mensaje original----- De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] Enviado el: jueves, 21 de febrero de 2008 11:47 Para: Hans Castorp; mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] annotation layer I think you should just use a POINT layer then. Annotation is dedicated to labels, it's a way to have labels displayed WITHOUT the anchor point. Hans Castorp a ?crit : > Hi to all, > > > > It is possible to have an annotation layer with symbol but without label?? > > > > I will try to explain it: I have an ANNOTATION layer in order to place > SYMBOLS depending on some EXPRESSION values. The problem is that I?m not > capable to place SYMBOLS without place LABELS, and what I need is to > place only symbols. > > > > Here is my mapfile: > > > > > > This configuration shows both symbol and label > > > > LAYER > > NAME 'road_sym' > > GROUP 'cartografia' > > DATA 'carreteras2' > > STATUS DEFAULT > > TYPE ANNOTATION > > CLASSITEM 'MATRICULA' > > LABELITEM 'MATRICULA' > > > > CLASS > > EXPRESSION 'AP-53' > > STYLE > > SYMBOL 'AP-53' > > SIZE 15 > > OUTLINECOLOR 254 254 254 > > END > > LABEL > > ANTIALIAS true > > POSITION AUTO > > ANGLE FOLLOW > > FONT "arial" > > TYPE truetype > > COLOR 0 0 0 > > MINDISTANCE 300 > > MINFEATURESIZE 10 > > OFFSET 0 0 > > PARTIALS FALSE > > SIZE 6 > > OUTLINECOLOR 255 255 255 > > END > > END > > END > > > > > > This configuration shows nothing (neither symbol nor label) > > > > LAYER > > NAME 'road_sym' > > GROUP 'cartografia' > > DATA 'carreteras2' > > STATUS DEFAULT > > TYPE ANNOTATION > > CLASSITEM 'MATRICULA' > > LABELITEM 'MATRICULA' > > > > CLASS > > EXPRESSION 'AP-53' > > STYLE > > SYMBOL 'AP-53' > > SIZE 15 > > OUTLINECOLOR 254 254 254 > > END#end symbol > > END #end style > > END #end class > > END #end layer > > > > > > > > Thanks in advance. > > > > > > > > > > Hans Castorp > > > ------------------------------------------------------------------------ > > ?Con Mascota por primera vez? - S? un mejor Amigo > Entra en Yahoo! Respuestas > . > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net ________________________________ ?Con Mascota por primera vez? - S? un mejor Amigo Entra en Yahoo! Respuestas . -------------- next part -------------- An HTML attachment was scrubbed... URL: From hanscastorp76 at yahoo.es Thu Feb 21 04:52:54 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Thu, 21 Feb 2008 12:52:54 +0000 (GMT) Subject: [mapserver-users] annotation layer Message-ID: <970052.29312.qm@web25908.mail.ukl.yahoo.com> Hi, James Thank you for trying to help me. I think my question was not very clear; what I want is to get ONLY symbols, not labels. I can get only labels or both labels and symbols, but not only symbols; and this is what I need. Thanks De: L?veill?, James [mailto:James.Leveille at mtq.gouv.qc.ca] Enviado el: jueves, 21 de febrero de 2008 13:31 Para: Hans Castorp; guillaume.sueur at neogeo-online.net; mapserver-users at lists.osgeo.org Asunto: RE : [mapserver-users] annotation layer Try this, work's fine for me LAYER PROJECTION "init=epsg:42105" END METADATA wms_title "Interdictions aux camions" END NAME "ert_camns" STATUS ON DUMP TRUE EXTENT 30000 75000 1700000 2120000 MAXSCALE 500000 MINSCALE 1 TYPE ANNOTATION DATA "ert_camns/ert_camns" CLASS SYMBOL "ert_camns" TEXT " " LABEL TYPE TRUETYPE FONT "arial" POSITION CC COLOR 255 255 255 MINDISTANCE 500 FORCE TRUE PARTIALS FALSE END END END ______________________________________________________ JAMES L?VEILL? Service des syst?mes de Mission Direction des technologies de l'information Minist?re des Transports du Qu?bec 5833, boul. Pierre-Bertrand, 2i?me ?tage Qu?bec (Qu?bec) G2K 1K7 T?l?phone: (418) 380-2005 poste 227 T?l?copieur: (418) 644-6653 james.leveille at mtq.gouv.qc.ca -----Message d'origine----- De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Hans Castorp Envoy? : 21 f?vrier 2008 05:58 ? : guillaume.sueur at neogeo-online.net; mapserver-users at lists.osgeo.org Objet : RE: [mapserver-users] annotation layer There is a problem. The layer I want to give symbols to is a line layer, so I cannot use point layer. Thanks. -----Mensaje original----- De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] Enviado el: jueves, 21 de febrero de 2008 11:47 Para: Hans Castorp; mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] annotation layer I think you should just use a POINT layer then. Annotation is dedicated to labels, it's a way to have labels displayed WITHOUT the anchor point. Hans Castorp a ?crit : > Hi to all, > > > > It is possible to have an annotation layer with symbol but without label?? > > > > I will try to explain it: I have an ANNOTATION layer in order to place > SYMBOLS depending on some EXPRESSION values. The problem is that I?m not > capable to place SYMBOLS without place LABELS, and what I need is to > place only symbols. > > > > Here is my mapfile: > > > > > > This configuration shows both symbol and label > > > > LAYER > > NAME 'road_sym' > > GROUP 'cartografia' > > DATA 'carreteras2' > > STATUS DEFAULT > > TYPE ANNOTATION > > CLASSITEM 'MATRICULA' > > LABELITEM 'MATRICULA' > > > > CLASS > > EXPRESSION 'AP-53' > > STYLE > > SYMBOL 'AP-53' > > SIZE 15 > > OUTLINECOLOR 254 254 254 > > END > > LABEL > > ANTIALIAS true > > POSITION AUTO > > ANGLE FOLLOW > > FONT "arial" > > TYPE truetype > > COLOR 0 0 0 > > MINDISTANCE 300 > > MINFEATURESIZE 10 > > OFFSET 0 0 > > PARTIALS FALSE > > SIZE 6 > > OUTLINECOLOR 255 255 255 > > END > > END > > END > > > > > > This configuration shows nothing (neither symbol nor label) > > > > LAYER > > NAME 'road_sym' > > GROUP 'cartografia' > > DATA 'carreteras2' > > STATUS DEFAULT > > TYPE ANNOTATION > > CLASSITEM 'MATRICULA' > > LABELITEM 'MATRICULA' > > > > CLASS > > EXPRESSION 'AP-53' > > STYLE > > SYMBOL 'AP-53' > > SIZE 15 > > OUTLINECOLOR 254 254 254 > > END#end symbol > > END #end style > > END #end class > > END #end layer > > > > > > > > Thanks in advance. > > > > > > > > > > Hans Castorp > > > ------------------------------------------------------------------------ > > ?Con Mascota por primera vez? - S? un mejor Amigo > Entra en Yahoo! Respuestas > . > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net ______________________________________________ ?Con Mascota por primera vez? S? un mejor Amigo. Entra en Yahoo! Respuestas http://es.answers.yahoo.com/info/welcome -------------- next part -------------- An HTML attachment was scrubbed... URL: From pspencer at dmsolutions.ca Thu Feb 21 05:08:17 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Thu, 21 Feb 2008 08:08:17 -0500 Subject: [mapserver-users] MapServer consuming 100% CPU In-Reply-To: References: Message-ID: See: http://mapserver.gis.umn.edu/docs/howto/mapfiletuning http://mapserver.gis.umn.edu/docs/howto/optimizevector http://mapserver.gis.umn.edu/docs/howto/tileindex Cheers Paul On 21-Feb-08, at 2:56 AM, Desarrollo Desarrollo wrote: > Hi, > > I am developing an application with MapServer v2.2.7 with > Apache on Windows XP, but I have a serious problem, below I > describe it: > > Using Navteq demo maps from Paris, the Streets.shp have around > 500000 line strings features, when mapserver renders the layer > without using DBF data (only draw lines) everything is OK and fast, > but when mapserver needs to access to the DBF to render labels or > use expressions to filter data, mapserver starts to consuming 100% > CPU and nothing is rendered after to spends a long time. > > Using Teleatlas demo maps for a medium city of Spain, the Street.shp > with around 11000 line strings features doesn't show any trouble and > mapserver renders the images OK and fast even accessing to DBF to > render labels > > Could somebody help me with this problem? Why does it happen? How do > I solve it? > > > Thank you very much. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ From bartvde at osgis.nl Thu Feb 21 05:12:12 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Thu, 21 Feb 2008 14:12:12 +0100 Subject: [mapserver-users] MapServer consuming 100% CPU Message-ID: It is because Mapserver cannot use any attribute indexes on the DBF. Put your shapefile in a spatial database like PostGIS I would suggest and create attribute indexes. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Paul Spencer Naar: Desarrollo Desarrollo Cc: mapserver-users at lists.osgeo.org Onderwerp: Re: [mapserver-users] MapServer consuming 100% CPU Datum: 21/02/08 11:09 > See: > > http://mapserver.gis.umn.edu/docs/howto/mapfiletuning > http://mapserver.gis.umn.edu/docs/howto/optimizevector > http://mapserver.gis.umn.edu/docs/howto/tileindex > > Cheers > > Paul > > On 21-Feb-08, at 2:56 AM, Desarrollo Desarrollo wrote: > > > Hi, > > > > I am developing an application with MapServer v2.2.7 with > > Apache on Windows XP, but I have a serious problem, below I > > describe it: > > > > Using Navteq demo maps from Paris, the Streets.shp have around > > 500000 line strings features, when mapserver renders the layer > > without using DBF data (only draw lines) everything is OK and fast, > > but when mapserver needs to access to the DBF to render labels or > > use expressions to filter data, mapserver starts to consuming 100% > > CPU and nothing is rendered after to spends a long time. > > > > Using Teleatlas demo maps for a medium city of Spain, the Street.shp > > with around 11000 line strings features doesn't show any trouble and > > mapserver renders the images OK and fast even accessing to DBF to > > render labels > > > > Could somebody help me with this problem? Why does it happen? How do > > I solve it? > > > > > > Thank you very much. > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > __________________________________________ > > Paul Spencer > Chief Technology Officer > DM Solutions Group Inc > http://www.dmsolutions.ca/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From David.Fawcett at state.mn.us Thu Feb 21 06:24:49 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 21 Feb 2008 08:24:49 -0600 Subject: [mapserver-users] temp files In-Reply-To: <004601c87442$85f3a560$6401a8c0@Kens> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBAE8@s-sp22.pca.state.mn.us> Ken, You can definitely output 24-bit pngs. The output format page at http://mapserver.gis.umn.edu/docs/reference/mapfile/outputformat appears to be a little out of date. If you are using MapServer 5.x, take a look at http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics About the temp files, I don't believe that you create temp files when MapServer is acting as a WMS server. (Just like in mode=map). If MapServer is acting as a WMS client, it stores a copy of the incoming image in the tmp folder. Regardless, if the images aren't being stored in the directory that you have defined as IMAGEPATH, don't worry about images hiding in the cooling fins (or the Hello Kitty mouse pad...) David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ken S. Elvehjem Sent: Wednesday, February 20, 2008 10:31 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] temp files Hi, 2 items-- may be interconnected??? I recently set up a WMS mapserver using MS4W. It works better than I have any right to expect, what with it being my first real attempt; would have never gotten that far without help from the list. During the setup phase, I was having the raster data output as PNG files. Which looked awful. Which is because I was used to seeing these aerial photos as 24 bit jpeg files. (the documentation seems to indicate an 8-bit limit on png colors...?) They would dutifully create a temporary png file in the tmp folder. Then, I changed my map file and my request URL to indicate jpeg files, which works great. My observation is that my mapserver is no longer storing temporary files. This also is good news -- because I don't have to delete them -- but I am a little worried that they are building up somewhere else -- like in the cooling fins on my cpu, or in my power supply ;>) Seriously, can someone explain about the apparent 8-bit limit in png files (is it true, will it change, etc.) and suggest where the temp files are going? Below is the "WEB" section of my .map file... WEB TEMPLATE "SD.html" IMAGEPATH "C:\ms4w\Apache\htdocs\tmp/" # have verified the correct path! IMAGEURL "/tmp/" # and it saved png tmp files to it METADATA "wms_title" "WMS McCOOK" "wms_onlineresource" "http://206.183.188.202/cgi-bin/mapserv?" "wms_srs" "EPSG:26914 EPSG:26914" END END Sincerely, Ken Ken S. Elvehjem ELVEHJEM TECHNICAL SUPPORT 250 Drury Ave PO Box 37 Lowry MN 56349 320.283.5684 320.283.5247 h 320.424.1299 c -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Thu Feb 21 07:02:48 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 21 Feb 2008 08:02:48 -0700 Subject: [mapserver-users] The right tool for the job References: <47BB8DF5.60504@denterprises.org> <02fe01c873ee$3e173c60$140002c0@shark> <47BCE7B3.3000905@denterprises.org> Message-ID: <015e01c8749a$d24bfcc0$140002c0@shark> ----- Original Message ----- From: "Colin Wetherbee" To: "Brent Fraser" Cc: Sent: Wednesday, February 20, 2008 7:53 PM Subject: Re: [mapserver-users] The right tool for the job > Brent Fraser wrote: > > 3. OpenLayers > > I'm really glad you mentioned this. I have installed it and poked > around a bit, and I love it! > > That takes care of the front-end quite nicely, but now I need to get > mapserv to start serving custom WMS data that gets pulled from PostgreSQL. > > It seems the tutorial uses a bunch of DBase files to define its layers, > so I'm just as lost as I was before I installed the tutorial. > > First, I'm going to wade through this [0] long thing, but I'm wondering > if there is a more comprehensive (and less image-heavy) > PostgreSQL-MapServer primer somewhere else? > 1. start with: http://mapserver.gis.umn.edu/docs/reference/vector_data/postgis 2. Read the LAYER object reference regarding CONNECTION http://mapserver.gis.umn.edu/docs/reference/mapfile/layer 3. Search the email archive (sad but true) http://lists.umn.edu/cgi-bin/wa?S1=mapserver-users or http://www.nabble.com/MapServer-f1214.html > > [0] > http://www.mapbender.org/presentations/Spatial_Data_Management_Arnulf_Christl/html/ > > From bfraser at geoanalytic.com Thu Feb 21 08:05:10 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 21 Feb 2008 09:05:10 -0700 Subject: [mapserver-users] Re: user support References: <00b901c8724f$f250e5f0$6501a8c0@signo3><.68.144.5.189.1203355002.squirrel@68.144.5.189><00c501c87256$764e3550$6501a8c0@signo3> <47B9C77A.2060100@neogeo-online.net><00cc01c87258$7b43ab60$6501a8c0@signo3> <47B9C8AC.1070202@ne<002401c872d8$cba771b0$6501a8c0@signo3><02d601c8730e$87164860$140002c0@shark><000f01c87315$a0181760$6501a8c0@signo3><033401c87319$e18dc380$140002c0@shark><001801c8731c$685700f0$6501a8c0@signo3><036601c8731e$322b22c0$140002c0@shark> <002e01c87325$3<003101c873a3$b37df8e0$6501a8c0@signo3><018001c873d2$2d8a64b0$140002c0@shark> <47BC4791.80201@pobox.com><01b601c873d8$fde56aa0$140002c0@shark> <47BC53B5.2000302@pobox.com><020401c873ea$d2867db0$140002c0@shark> <47BC8558.5000400@zeelandnet.nl><47BC88C6.5000303@pobox.com> <47BC8EB7.6070009@zeelandnet.nl> <47BC9D6C.80603@pobox.com> Message-ID: <020901c874a3$88fde110$140002c0@shark> Frank, Now that the mailing list has migrated, is the archive searchable? The New Users page (http://mapserver.gis.umn.edu/new_users/index_html#list-arch ives)on the Mapserver site still links: http://lists.umn.edu/archives/mapserver-users.html Is it still valid? I think the email archives hold great value. The challange is to enable access. Here are some ideas (by doing one test search): 1. A better seach page - ability to use AND and OR with seach terms 2. Record the top ten seaches by month (or some other stat) so we can improve the FAQ. 3. A better results page - show me hits by all my seach term combos - allow me to sort by score, Lines, subject , etc 4. Somehow identify an email containing a question/problem, and a solution 5. ... Hmmm, an automatic FAQ extractor. Sounds painful. Let's learn from Google (a search tool is beats an organized portal). Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Frank Warmerdam" To: "Milo van der Linden" Cc: "MAPSERVER-USERS" Sent: Wednesday, February 20, 2008 2:36 PM Subject: Re: [mapserver-users] Re: user support > Milo van der Linden wrote: > > Frank Warmerdam schreef: > >> I think it would be very valuable if some people were willing to comb > >> the mailing list for frequently asked questions and answers and turn > >> some of them into FAQ entries on the plone site. > > If this would be done in a divide and conquer manner, I would be > > interested. It would be a good thing if one could take a seat in some > > sort of board and cover a certain aspect. I would be particulary > > interested in contributing to WMS and WFS sections, as well as postGIS > > integration since this is the area I am trying to make my business in. > > Would it be possible that in return the person maintaining a certain > > area of the documentation could offer commercial support and consultancy > > on his particular field of expertise? Just a taught and trying to > > discover if there is business value in signing up for this. Because in > > the long run, we all need to make at least enough money to live. > > Milo, > > In Plone you can have a profile, and FAQ entries list their author. > So you can use your full name for your account and make sure your > author profile page describes you as a consultant, and your expertise > with a link page to your own web page. This should have at least a > modest advertising effect. > > I think FAQs mostly digested from mailing list responses should also > try to give some credit to the original author. > > I'm not sure that specific divide and conquer rules will be easy to > manage. I would suggest you just attack your area of interest. > Duplication of effort is the least of our problems now. :-) > > > I hereby offer my couple of hours. Would it be an idea to set up a group > > of say 100 people and then divide the list in blocks of say a month? > > Well, I'm not sure about how that would work. Again, I would suggest > you get a plone account from Howard, and just skim the email archives > for the last month or two looking for threads in your area of interest > and digest a few down into FAQs. I'm sure there is also room for > additional categories in the FAQ if you think it would be helpful. > > It may just be me, but I think any process that starts with "get a group > together and split up a task" is likely to get stalled and frustrated. > Better to just dig in and do a part of the task that you like, perhaps > with some notification / interaction as you find you need. > > Best regards, > -- > ---------------------------------------+------------------ -------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From hanscastorp76 at yahoo.es Thu Feb 21 08:08:03 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Thu, 21 Feb 2008 16:08:03 +0000 (GMT) Subject: [mapserver-users] annotation layer Message-ID: <580864.38384.qm@web25911.mail.ukl.yahoo.com> Very thanks, James This works great, I was wrong. De: L?veill?, James [mailto:James.Leveille at mtq.gouv.qc.ca] Enviado el: jueves, 21 de febrero de 2008 14:45 Para: Hans Castorp Asunto: RE : [mapserver-users] annotation layer Hans, Give it a try .. It works. The LABEL is there only to force the display of the symbol. Since the TEXT is empty (and there is no LABELITEM defined), there will be no label displayed, only a symbol. Here is an example ______________________________________________________ JAMES L?VEILL? Service des syst?mes de Mission Direction des technologies de l'information Minist?re des Transports du Qu?bec 5833, boul. Pierre-Bertrand, 2i?me ?tage Qu?bec (Qu?bec) G2K 1K7 T?l?phone: (418) 380-2005 poste 227 T?l?copieur: (418) 644-6653 james.leveille at mtq.gouv.qc.ca -----Message d'origine----- De : Hans Castorp [mailto:hanscastorp76 at yahoo.es] Envoy? : 21 f?vrier 2008 07:53 ? : L?veill?, James; guillaume.sueur at neogeo-online.net; mapserver-users at lists.osgeo.org Objet : RE: [mapserver-users] annotation layer Hi, James Thank you for trying to help me. I think my question was not very clear; what I want is to get ONLY symbols, not labels. I can get only labels or both labels and symbols, but not only symbols; and this is what I need. Thanks De: L?veill?, James [mailto:James.Leveille at mtq.gouv.qc.ca] Enviado el: jueves, 21 de febrero de 2008 13:31 Para: Hans Castorp; guillaume.sueur at neogeo-online.net; mapserver-users at lists.osgeo.org Asunto: RE : [mapserver-users] annotation layer Try this, work's fine for me LAYER PROJECTION "init=epsg:42105" END METADATA wms_title "Interdictions aux camions" END NAME "ert_camns" STATUS ON DUMP TRUE EXTENT 30000 75000 1700000 2120000 MAXSCALE 500000 MINSCALE 1 TYPE ANNOTATION DATA "ert_camns/ert_camns" CLASS SYMBOL "ert_camns" TEXT " " LABEL TYPE TRUETYPE FONT "arial" POSITION CC COLOR 255 255 255 MINDISTANCE 500 FORCE TRUE PARTIALS FALSE END END END ______________________________________________________ JAMES L?VEILL? Service des syst?mes de Mission Direction des technologies de l'information Minist?re des Transports du Qu?bec 5833, boul. Pierre-Bertrand, 2i?me ?tage Qu?bec (Qu?bec) G2K 1K7 T?l?phone: (418) 380-2005 poste 227 T?l?copieur: (418) 644-6653 james.leveille at mtq.gouv.qc.ca -----Message d'origine----- De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Hans Castorp Envoy? : 21 f?vrier 2008 05:58 ? : guillaume.sueur at neogeo-online.net; mapserver-users at lists.osgeo.org Objet : RE: [mapserver-users] annotation layer There is a problem. The layer I want to give symbols to is a line layer, so I cannot use point layer. Thanks. -----Mensaje original----- De: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] Enviado el: jueves, 21 de febrero de 2008 11:47 Para: Hans Castorp; mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] annotation layer I think you should just use a POINT layer then. Annotation is dedicated to labels, it's a way to have labels displayed WITHOUT the anchor point. Hans Castorp a ?crit : > Hi to all, > > > > It is possible to have an annotation layer with symbol but without label?? > > > > I will try to explain it: I have an ANNOTATION layer in order to place > SYMBOLS depending on some EXPRESSION values. The problem is that I?m not > capable to place SYMBOLS without place LABELS, and what I need is to > place only symbols. > > > > Here is my mapfile: > > > > > > This configuration shows both symbol and label > > > > LAYER > > NAME 'road_sym' > > GROUP 'cartografia' > > DATA 'carreteras2' > > STATUS DEFAULT > > TYPE ANNOTATION > > CLASSITEM 'MATRICULA' > > LABELITEM 'MATRICULA' > > > > CLASS > > EXPRESSION 'AP-53' > > STYLE > > SYMBOL 'AP-53' > > SIZE 15 > > OUTLINECOLOR 254 254 254 > > END > > LABEL > > ANTIALIAS true > > POSITION AUTO > > ANGLE FOLLOW > > FONT "arial" > > TYPE truetype > > COLOR 0 0 0 > > MINDISTANCE 300 > > MINFEATURESIZE 10 > > OFFSET 0 0 > > PARTIALS FALSE > > SIZE 6 > > OUTLINECOLOR 255 255 255 > > END > > END > > END > > > > > > This configuration shows nothing (neither symbol nor label) > > > > LAYER > > NAME 'road_sym' > > GROUP 'cartografia' > > DATA 'carreteras2' > > STATUS DEFAULT > > TYPE ANNOTATION > > CLASSITEM 'MATRICULA' > > LABELITEM 'MATRICULA' > > > > CLASS > > EXPRESSION 'AP-53' > > STYLE > > SYMBOL 'AP-53' > > SIZE 15 > > OUTLINECOLOR 254 254 254 > > END#end symbol > > END #end style > > END #end class > > END #end layer > > > > > > > > Thanks in advance. > > > > > > > > > > Hans Castorp > > > ------------------------------------------------------------------------ > > ?Con Mascota por primera vez? - S? un mejor Amigo > Entra en Yahoo! Respuestas > . > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net ______________________________________________ ?Con Mascota por primera vez? S? un mejor Amigo. Entra en Yahoo! Respuestas http://es.answers.yahoo.com/info/welcome -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at zeelandnet.nl Thu Feb 21 08:20:16 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Thu, 21 Feb 2008 17:20:16 +0100 Subject: [mapserver-users] MapServer consuming 100% CPU In-Reply-To: References: Message-ID: <47BDA4C0.905@zeelandnet.nl> An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Thu Feb 21 08:46:08 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 21 Feb 2008 10:46:08 -0600 Subject: [mapserver-users] Re: user support In-Reply-To: <020901c874a3$88fde110$140002c0@shark> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBAEA@s-sp22.pca.state.mn.us> Brent, I have updated the New Users Page to reflect the new list archive link. At the same time, I also updated the links to now point to the 5.x Demo, and the 5.x Tutorial. I have neglected the New Users Page for quite a while and it is definitely in need of some freshening up. I hope to do so in the next month or so. If anyone has corrections, suggestions, etc. for the New Users Page, please sent them to me in the next few weeks and I will incorporate them. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent Fraser Sent: Thursday, February 21, 2008 10:05 AM To: Frank Warmerdam Cc: MAPSERVER-USERS Subject: Re: [mapserver-users] Re: user support Frank, Now that the mailing list has migrated, is the archive searchable? The New Users page (http://mapserver.gis.umn.edu/new_users/index_html#list-arch ives)on the Mapserver site still links: http://lists.umn.edu/archives/mapserver-users.html Is it still valid? I think the email archives hold great value. The challange is to enable access. Here are some ideas (by doing one test search): 1. A better seach page - ability to use AND and OR with seach terms 2. Record the top ten seaches by month (or some other stat) so we can improve the FAQ. 3. A better results page - show me hits by all my seach term combos - allow me to sort by score, Lines, subject , etc 4. Somehow identify an email containing a question/problem, and a solution 5. ... Hmmm, an automatic FAQ extractor. Sounds painful. Let's learn from Google (a search tool is beats an organized portal). Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Frank Warmerdam" To: "Milo van der Linden" Cc: "MAPSERVER-USERS" Sent: Wednesday, February 20, 2008 2:36 PM Subject: Re: [mapserver-users] Re: user support > Milo van der Linden wrote: > > Frank Warmerdam schreef: > >> I think it would be very valuable if some people were willing to comb > >> the mailing list for frequently asked questions and answers and turn > >> some of them into FAQ entries on the plone site. > > If this would be done in a divide and conquer manner, I would be > > interested. It would be a good thing if one could take a seat in some > > sort of board and cover a certain aspect. I would be particulary > > interested in contributing to WMS and WFS sections, as well as postGIS > > integration since this is the area I am trying to make my business in. > > Would it be possible that in return the person maintaining a certain > > area of the documentation could offer commercial support and consultancy > > on his particular field of expertise? Just a taught and trying to > > discover if there is business value in signing up for this. Because in > > the long run, we all need to make at least enough money to live. > > Milo, > > In Plone you can have a profile, and FAQ entries list their author. > So you can use your full name for your account and make sure your > author profile page describes you as a consultant, and your expertise > with a link page to your own web page. This should have at least a > modest advertising effect. > > I think FAQs mostly digested from mailing list responses should also > try to give some credit to the original author. > > I'm not sure that specific divide and conquer rules will be easy to > manage. I would suggest you just attack your area of interest. > Duplication of effort is the least of our problems now. :-) > > > I hereby offer my couple of hours. Would it be an idea to set up a group > > of say 100 people and then divide the list in blocks of say a month? > > Well, I'm not sure about how that would work. Again, I would suggest > you get a plone account from Howard, and just skim the email archives > for the last month or two looking for threads in your area of interest > and digest a few down into FAQs. I'm sure there is also room for > additional categories in the FAQ if you think it would be helpful. > > It may just be me, but I think any process that starts with "get a group > together and split up a task" is likely to get stalled and frustrated. > Better to just dig in and do a part of the task that you like, perhaps > with some notification / interaction as you find you need. > > Best regards, > -- > ---------------------------------------+------------------ -------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From hanscastorp76 at yahoo.es Thu Feb 21 09:51:25 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Thu, 21 Feb 2008 17:51:25 +0000 (GMT) Subject: [mapserver-users] "classed" layer transparency Message-ID: <587910.15049.qm@web25908.mail.ukl.yahoo.com> Hi to all, I?m having problems trying to give transparency to a polygon layer; here are my settings: LAYER NAME 'usos_suelo' GROUP 'usos_suelo' DATA "usos_suelo" TYPE polygon STATUS ON OPACITY 50 CLASSITEM 'CLASE' CLASS NAME 'ARBORES' EXPRESSION 'ARBORES' COLOR 162 204 155 END CLASS NAME 'CULTIVOS' EXPRESSION 'CULTIVOS' COLOR 224 224 224 END CLASS NAME 'ASENTAMENTOS' EXPRESSION 'ASENTAMENTOS' COLOR 204 204 204 END END I guess that the problem could come due to the fact that is a ?classed? layer, but I need it to have some level of transparency. Anyone who helps me? Thanks in advance. Hans Castorp ______________________________________________ ?Con Mascota por primera vez? S? un mejor Amigo. Entra en Yahoo! Respuestas http://es.answers.yahoo.com/info/welcome -------------- next part -------------- An HTML attachment was scrubbed... URL: From nbest at lanworth.com Thu Feb 21 09:54:52 2008 From: nbest at lanworth.com (Neil Best) Date: Thu, 21 Feb 2008 11:54:52 -0600 Subject: [mapserver-users] can an ogr tileindex refer to a PG table? Message-ID: <47BDBAEC.6010100@lanworth.com> Last fall I got some help for the list on how to use Postgres as a source for a tile index that gives locations of raster files on disk and that has been working beautifully. My new question is this: Is it possible for a tile index location to indicate something other than a path to a file, such as a PostGIS table? The reason that I ask is that I have implemented table partitioning for large county-by-county (or smaller) data sets such as SSURGO and USDA CLU. At the outset I convinced myself mistakenly that Postgres could leverage spatial check constraints for query planning using the constraint_exclusion = on mechanism, but it can't. It only works with fields where the check constraint is based on a straight equal/not-equal comparison to a constant, AFAICT. Neither && ::geometry or ~ ::text checks work for this reason. Getting Mapserver to leverage this advanced query planning means adding logic to my application to inject appropriate values into a WHERE clause in the layer's DATA query string. To do this I need some kind of generalized layer that indicates the spatial organization of the attributes used for the partitioning. This is essentially a tile index, so if I could just create a layer of bounding boxes for each table and let Mapserver decide which tables it needs to scan rather than adding complexity to my application in order to have the query planner do the same thing, that would be ideal. Anybody have any thoughts or experiences to share? Thanks. Neil From lehrs at erau.edu Thu Feb 21 09:57:22 2008 From: lehrs at erau.edu (Steven Lehr) Date: Thu, 21 Feb 2008 12:57:22 -0500 Subject: [mapserver-users] "classed" layer transparency In-Reply-To: <587910.15049.qm@web25908.mail.ukl.yahoo.com> References: <587910.15049.qm@web25908.mail.ukl.yahoo.com> Message-ID: <9D58C43BDFE3F846ADF3A0F8100940B3135E18@DBEXVS02.erau.edu> CLASS NAME 'ASENTAMENTOS' EXPRESSION 'ASENTAMENTOS' COLOR 204 204 204 END TRANSPARENCY 50 # I usually put it right here at the end of the file END Steven Lehr Associate Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB263) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Hans Castorp Sent: Thursday, February 21, 2008 12:51 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] "classed" layer transparency Hi to all, I'm having problems trying to give transparency to a polygon layer; here are my settings: LAYER NAME 'usos_suelo' GROUP 'usos_suelo' DATA "usos_suelo" TYPE polygon STATUS ON OPACITY 50 CLASSITEM 'CLASE' CLASS NAME 'ARBORES' EXPRESSION 'ARBORES' COLOR 162 204 155 END CLASS NAME 'CULTIVOS' EXPRESSION 'CULTIVOS' COLOR 224 224 224 END CLASS NAME 'ASENTAMENTOS' EXPRESSION 'ASENTAMENTOS' COLOR 204 204 204 END END I guess that the problem could come due to the fact that is a "classed" layer, but I need it to have some level of transparency. Anyone who helps me? Thanks in advance. Hans Castorp ________________________________ ?Con Mascota por primera vez? - S? un mejor Amigo Entra en Yahoo! Respuestas . -------------- next part -------------- An HTML attachment was scrubbed... URL: From hanscastorp76 at yahoo.es Thu Feb 21 10:18:17 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Thu, 21 Feb 2008 18:18:17 +0000 (GMT) Subject: [mapserver-users] "classed" layer transparency Message-ID: <493827.68768.qm@web25906.mail.ukl.yahoo.com> HiSteven, Thank you for trying to help. Your solution gives the same results thanmine. As you can see in the attachments, what Iget varying TRANSPARENCY/OPACITY values are lighter or darker colours, but notreally transparent layers. Thanks in advance. De: Steven Lehr[mailto:lehrs at erau.edu] Enviado el: jueves, 21 de febrero de 2008 18:57 Para: Hans Castorp; mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] "classed" layer transparency CLASS NAME 'ASENTAMENTOS' EXPRESSION 'ASENTAMENTOS' COLOR 204 204 204 END TRANSPARENCY 50 # I usually put it right here at the end of the file END StevenLehr Associate Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB263) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 ______________________________________________ ?Con Mascota por primera vez? S? un mejor Amigo. Entra en Yahoo! Respuestas http://es.answers.yahoo.com/info/welcome -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: opacity_50.png Type: image/png Size: 2004 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: opacity_100.png Type: image/png Size: 2004 bytes Desc: not available URL: From cww at denterprises.org Thu Feb 21 11:24:20 2008 From: cww at denterprises.org (Colin Wetherbee) Date: Thu, 21 Feb 2008 14:24:20 -0500 Subject: [mapserver-users] The right tool for the job In-Reply-To: <015e01c8749a$d24bfcc0$140002c0@shark> References: <47BB8DF5.60504@denterprises.org> <02fe01c873ee$3e173c60$140002c0@shark> <47BCE7B3.3000905@denterprises.org> <015e01c8749a$d24bfcc0$140002c0@shark> Message-ID: <47BDCFE4.5000600@denterprises.org> Brent Fraser wrote: > 1. start with: > http://mapserver.gis.umn.edu/docs/reference/vector_data/postgis > > 2. Read the LAYER object reference regarding CONNECTION > http://mapserver.gis.umn.edu/docs/reference/mapfile/layer > > 3. Search the email archive (sad but true) > http://lists.umn.edu/cgi-bin/wa?S1=mapserver-users > or > http://www.nabble.com/MapServer-f1214.html Thanks! Using those, some OpenLayers docs, a couple threads in the archives, and PostGIS docs, I now have a fully-functional AJAX application to display my airports on satellite imagery. I thought it was going to take a *lot* longer to get this up and running. Perfect. Colin From David.Fawcett at state.mn.us Thu Feb 21 11:46:42 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 21 Feb 2008 13:46:42 -0600 Subject: [mapserver-users] "classed" layer transparency In-Reply-To: <587910.15049.qm@web25908.mail.ukl.yahoo.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBAF1@s-sp22.pca.state.mn.us> Hans, I had assumed that you were trying to modify layer transparency. In other words, you have one layer that is 50% transparent that allows a 'lower' layer to show through the 'upper' layer. Like semi-transparent building footprints on an air photo. This is what you accomplished with the below map file. It sounds like what you really want is for MapServer to produce an image where the 'no data' areas are transparent. TRANSPARENT in the MAP object is what makes it work. http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj I am not sure if this part of the docs is up to date or not. Output format is also important. You can't accomplish image transparency with a gif. PNG24 will do it for you. I believe that you need to use a 24 bit image type, but I am not completely sure if that is a requirement. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Hans Castorp Sent: Thursday, February 21, 2008 11:51 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] "classed" layer transparency Hi to all, I'm having problems trying to give transparency to a polygon layer; here are my settings: LAYER NAME 'usos_suelo' GROUP 'usos_suelo' DATA "usos_suelo" TYPE polygon STATUS ON OPACITY 50 CLASSITEM 'CLASE' CLASS NAME 'ARBORES' EXPRESSION 'ARBORES' COLOR 162 204 155 END CLASS NAME 'CULTIVOS' EXPRESSION 'CULTIVOS' COLOR 224 224 224 END CLASS NAME 'ASENTAMENTOS' EXPRESSION 'ASENTAMENTOS' COLOR 204 204 204 END END I guess that the problem could come due to the fact that is a "classed" layer, but I need it to have some level of transparency. Anyone who helps me? Thanks in advance. Hans Castorp ________________________________ ?Con Mascota por primera vez? - S? un mejor Amigo Entra en Yahoo! Respuestas . -------------- next part -------------- An HTML attachment was scrubbed... URL: From John.Schattel at noaa.gov Thu Feb 21 13:00:12 2008 From: John.Schattel at noaa.gov (John Schattel) Date: Thu, 21 Feb 2008 16:00:12 -0500 Subject: [mapserver-users] Trouble Importing Layer from Web Feature Service Message-ID: <47BDE65C.1060907@noaa.gov> I am trying to test our Web Feature Service (WFS) using MapServer as a WFS client. I am using the layer definition shown below in the .map file. The request sent by MapServer looks good (see below layer definition) and the response from the WFS looks good (for brevity sake, I'm only including a couple of the features returned). When I try to turn on the layer in Chameleon 2.4 (http://localhost/chameleon/samples/sample_ogc.phtml), I get a red X where the image should be. Is this a case where MapServer doesn't support the XML it is receiving? If so, can anyone tell me what aspect of the XML is giving MapServer problems? In advance, thanks for any help you can offer as I try to get MapServer and the our WFS to work together. John LAYER NAME NDFD GROUP "VECTOR" TYPE POINT STATUS OFF # this is a remote OGC:WFS CONNECTIONTYPE WFS # the server URL prefix # MapServer will add the OGC:WMS specific # keyword value pairs accordingly #CONNECTION "http://map.ns.ec.gc.ca/envdat/map.aspx?service=WFS&version=1.0.0&request=GetFeature" CONNECTION "http://www.weather.gov/mdl/survey/pgb_survey/dev/OGC_services/ndfdOWSserver.php" PROJECTION "init=epsg:4326" END # base info MapServer needs to know to generate the # OGC:WFS GetFeature request METADATA # MapServer default sends POST # force to GET # "wfs_request_method" "GET" # how long (in seconds) should MapServer use # in issuing and receiving the data? "wfs_connectiontimeout" "60" # Filter to get a small amount of NDFD data "wfs_filter" "wxmaxt" # which version of the OGC:WFS should MapServer communicate with "wfs_version" "1.0.0" # service type for connection # this info is a bit redundant "wfs_service" "WFS" # what is the feature type you are querying "wfs_typename" "Forecast_Gml2Point" # what is the spatial extent? "wfs_latlonboundingbox" "-121.2 20.2 -60.89 50.0" # END # # MapServer will then use this information to generate a string like: # http://map.ns.ec.gc.ca/envdat/map.aspx?version=&service=&request=GetFeature&typename= # # missing required keyword value pairs get generated according # to the application using this mapfile, i.e.: # &bbox, &filter, etc. END MapServer sent request wxmaxt GML returned by WFS to MapServer 13.48,-176.65 71.30,145.72 -97.6,35.4 2008-02-20T23:36:00 44.0 chance light drizzle none none -95.9,36.2 2008-02-20T23:36:00 37.0 patchy patchy light light drizzle freezing drizzle none none none none From mlinden at zeelandnet.nl Thu Feb 21 13:46:09 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Thu, 21 Feb 2008 22:46:09 +0100 Subject: [mapserver-users] can an ogr tileindex refer to a PG table? In-Reply-To: <47BDBAEC.6010100@lanworth.com> References: <47BDBAEC.6010100@lanworth.com> Message-ID: <47BDF121.5060907@zeelandnet.nl> Hello Neil, One thing you can do to create some sort of tileindex that can be part of the where clause is create a view in postGIS that contains the boundingboxes of a table based upon an attribute: CREATE VIEW MYBBOX AS SELECT table1.uniqueID, extent(table1.the_geom) as box, box2d(scale(extent(table1.the_geom),1.01,1.01)) as bbox FROM table1 GROUP BY table1.UniqueID; Where BOX is the exact extent and bbox is the extent + a little margin, this I used to zoom with an area around it because my original MYBBOX view was based on a points table. This view could be used as a helper to build the right queries. Wouldn't it be more performance effective Neil Best schreef: > Last fall I got some help for the list on how to use Postgres as a > source for a tile index that gives locations of raster files on disk > and that has been working beautifully. > > My new question is this: Is it possible for a tile index location to > indicate something other than a path to a file, such as a PostGIS table? > > The reason that I ask is that I have implemented table partitioning > for large county-by-county (or smaller) data sets such as SSURGO and > USDA CLU. At the outset I convinced myself mistakenly that Postgres > could leverage spatial check constraints for query planning using the > constraint_exclusion = on mechanism, but it can't. It only works with > fields where the check constraint is based on a straight > equal/not-equal comparison to a constant, AFAICT. Neither && > ::geometry or ~ ::text checks work for this reason. > > Getting Mapserver to leverage this advanced query planning means > adding logic to my application to inject appropriate values into a > WHERE clause in the layer's DATA query string. To do this I need some > kind of generalized layer that indicates the spatial organization of > the attributes used for the partitioning. This is essentially a tile > index, so if I could just create a layer of bounding boxes for each > table and let Mapserver decide which tables it needs to scan rather > than adding complexity to my application in order to have the query > planner do the same thing, that would be ideal. > > Anybody have any thoughts or experiences to share? Thanks. > > Neil > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From nospam420 at yahoo.com Thu Feb 21 14:30:36 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Thu, 21 Feb 2008 14:30:36 -0800 (PST) Subject: [MAPSERVER-USERS] Antwort: Re: leaking memory in java mapscript (was Re: thread safety) In-Reply-To: References: <15514019.post@talk.nabble.com> <15562378.post@talk.nabble.com> <15562408.post@talk.nabble.com> <15579407.post@talk.nabble.com> <15603603.post@talk.nabble.com> Message-ID: <15621043.post@talk.nabble.com> Benedikt Rothe wrote: > > It's easier to watch the SWIG-generated JNI-Code in > mapscript/java/mapscript_wrap.c > Example: > mapscriptJNI.delete_imageObj(swigCPtr); > is implemented by the C-function > SWIGEXPORT jbyteArray JNICALL > Java_edu_umn_gis_mapscript_mapscriptJNI_imageObj_1getBytes > >> confirm that the caller must free the returned array (with gdFree()). > At the end of the long-named C-function you'll find a call to gdFree > > Can you estimate how much memory is lost in each step of your > testprogram? Is it approx. the size of the image? > I do see the gdFree() call. Nevertheless, just to take the SWIG version issue hopefully off of the table, I tried recompiling everything on debian etch (4.0), which has a dpkg for swig 1.3.29. I still get the leak. Running my test for 100 iterations, it leaks approximately 30 MB. Which is a little bit more than 300 KB per iteration: (/ (* 30 1024 1024) 100) 314572 Note that this figure is approximate, since the 30 MB is just from top. The leak is independent of the image size. I get the same amount of leaking with a test image of 79813 bytes and one of 30328 bytes. If I run 200 iterations instead of 100, the amount that is leaked doubles. I have finally been able to successfully run a single iteration in valgrind and have it report a leak in the code: --- begin --- ==21154== 41,600 bytes in 65 blocks are possibly lost in loss record 46 of 55 ==21154== at 0x401C6CA: calloc (vg_replace_malloc.c:279) ==21154== by 0x42B15E3: gdCalloc (gdhelpers.c:79) ==21154== by 0x42A4F49: gdImageCreate (gd.c:104) ==21154== by 0x40BFEA9: msImageCreateWithPaletteGD (mapgd.c:3460) ==21154== by 0x40C04E8: msSaveImageBufferGD (mapgd.c:3695) ==21154== by 0x40CCD6B: msSaveImageBufferAGG (mapagg.cpp:2248) ==21154== by 0x40A70F8: msSaveImageBuffer (maputil.c:682) ==21154== by 0x406CB6C: Java_edu_umn_gis_mapscript_mapscriptJNI_imageObj_1getBytes (mapscript_wrap.c:2586) ==21154== by 0x88614AA: ??? ==21154== by 0x885BA63: ??? ==21154== by 0x885BA63: ??? ==21154== by 0x8859218: ??? ==21154== ==21154== ==21154== 271,588 (7,268 direct, 264,320 indirect) bytes in 1 blocks are definitely lost in loss record 49 of 55 ==21154== at 0x401D38B: malloc (vg_replace_malloc.c:149) ==21154== by 0x42B15AC: gdMalloc (gdhelpers.c:85) ==21154== by 0x42A4EA4: gdImageCreate (gd.c:83) ==21154== by 0x40BFEA9: msImageCreateWithPaletteGD (mapgd.c:3460) ==21154== by 0x40C04E8: msSaveImageBufferGD (mapgd.c:3695) ==21154== by 0x40CCD6B: msSaveImageBufferAGG (mapagg.cpp:2248) ==21154== by 0x40A70F8: msSaveImageBuffer (maputil.c:682) ==21154== by 0x406CB6C: Java_edu_umn_gis_mapscript_mapscriptJNI_imageObj_1getBytes (mapscript_wrap.c:2586) ==21154== by 0x88614AA: ??? ==21154== by 0x885BA63: ??? ==21154== by 0x885BA63: ??? ==21154== by 0x8859218: ??? --- end --- The amount reported matches up quite nicely with the amount that I'm observing, so I'm inclined to believe the valgrind report: (+ 271588 41600) 313188 While the memory is indeed being allocated outside of mapserver code (this is with gd 2.0.35): (gd.c:104) im->pixels[i] = (unsigned char *) gdCalloc (sx, sizeof (unsigned char)); (gd.c:83) im = (gdImage *) gdMalloc (sizeof (gdImage)); the function gdImageCreate() returns a gdImagePrt: BGD_DECLARE(gdImagePtr) gdImageCreate (int sx, int sy) { // ... gdImagePtr im; // ... return im; } to mapserver: (mapgd.c:3460) img = gdImageCreate(sx, sy); and I would assume that it is the responsibility of mapserver to free the memory. (Do you agree?) Esp. since this happens to me for both test cases of different requests, I suspect that I could create a synthetic test case independent of my postgis data to create this, but I haven't yet done so. I will investigate this further, I just wanted to post this update here. - Rich -- View this message in context: http://www.nabble.com/thread-safety-tp15514019p15621043.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gerryjames at shaw.ca Thu Feb 21 14:32:39 2008 From: gerryjames at shaw.ca (Gerry James) Date: Thu, 21 Feb 2008 14:32:39 -0800 Subject: [mapserver-users] Map image location Message-ID: <005f01c874d9$aa345220$6701a8c0@roca.local> I have a bit of a dilemma. I have built an application using UMN Mapserver as the mapping front end. Part of the application requires I retrieve the current map image, however, when I go to look for it where I think it should be /tmp/ms_tmp/ there are no images to be found. Can someone help me find where these images are being stored. I am using the ms4w MapServer version. Any guidance would be greatly appreciated. Gerry ___________________________________ Gerry James, B.Sc., GISP President/Lead Consultant ************************************************* Carteryx Geomatics Consultants Inc. Spatial Intelligence for a Changing World www.carteryx.com ___________________________________ The information contained in this e-mail is intended only for the recipient(s) to whom it is addressed and its contents (including any attachments) may contain information that is confidential or privileged. Any unauthorized review, use, dissemination, copying or distribution is strictly prohibited. If you are not the named recipient of this email or have received it in error, please notify the sender and destroy and delete all copies of the email immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam420 at yahoo.com Thu Feb 21 14:58:56 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Thu, 21 Feb 2008 14:58:56 -0800 (PST) Subject: [MAPSERVER-USERS] Antwort: Re: leaking memory in java mapscript (was Re: thread safety) In-Reply-To: <15621043.post@talk.nabble.com> References: <15514019.post@talk.nabble.com> <15562378.post@talk.nabble.com> <15562408.post@talk.nabble.com> <15579407.post@talk.nabble.com> <15603603.post@talk.nabble.com> <15621043.post@talk.nabble.com> Message-ID: <15622039.post@talk.nabble.com> rich.fromm wrote: > > I have finally been able to successfully run a single iteration in > valgrind > and have it report a leak in the code: > > --- begin --- > ==21154== 41,600 bytes in 65 blocks are possibly lost in loss record 46 of > 55 > ==21154== at 0x401C6CA: calloc (vg_replace_malloc.c:279) > ==21154== by 0x42B15E3: gdCalloc (gdhelpers.c:79) > ==21154== by 0x42A4F49: gdImageCreate (gd.c:104) > ==21154== by 0x40BFEA9: msImageCreateWithPaletteGD (mapgd.c:3460) > ==21154== by 0x40C04E8: msSaveImageBufferGD (mapgd.c:3695) > ==21154== by 0x40CCD6B: msSaveImageBufferAGG (mapagg.cpp:2248) > ==21154== by 0x40A70F8: msSaveImageBuffer (maputil.c:682) > ==21154== by 0x406CB6C: > Java_edu_umn_gis_mapscript_mapscriptJNI_imageObj_1getBytes > (mapscript_wrap.c:2586) > ==21154== by 0x88614AA: ??? > ==21154== by 0x885BA63: ??? > ==21154== by 0x885BA63: ??? > ==21154== by 0x8859218: ??? > ==21154== > ==21154== > ==21154== 271,588 (7,268 direct, 264,320 indirect) bytes in 1 blocks are > definitely lost in loss record 49 of 55 > ==21154== at 0x401D38B: malloc (vg_replace_malloc.c:149) > ==21154== by 0x42B15AC: gdMalloc (gdhelpers.c:85) > ==21154== by 0x42A4EA4: gdImageCreate (gd.c:83) > ==21154== by 0x40BFEA9: msImageCreateWithPaletteGD (mapgd.c:3460) > ==21154== by 0x40C04E8: msSaveImageBufferGD (mapgd.c:3695) > ==21154== by 0x40CCD6B: msSaveImageBufferAGG (mapagg.cpp:2248) > ==21154== by 0x40A70F8: msSaveImageBuffer (maputil.c:682) > ==21154== by 0x406CB6C: > Java_edu_umn_gis_mapscript_mapscriptJNI_imageObj_1getBytes > (mapscript_wrap.c:2586) > ==21154== by 0x88614AA: ??? > ==21154== by 0x885BA63: ??? > ==21154== by 0x885BA63: ??? > ==21154== by 0x8859218: ??? > --- end --- > Here's my hunch from a somewhat cursory inspection of the code. This is around mapgd.c:3691: unsigned char *msSaveImageBufferGD(gdImagePtr img, int *size_ptr, outputFormatObj *format) { unsigned char *imgbytes; // ... if( force_palette ) { gdImagePtr gdPImg; const char *palette = msGetOutputFormatOption( format, "PALETTE", "palette.txt"); gdPImg = msImageCreateWithPaletteGD(img, palette, gdImageSX(img), gdImageSY(img)); msImageCopyForcePaletteGD(img, gdPImg); imgbytes = gdImagePngPtr(gdPImg, size_ptr); } // ... return imgbytes; } the (gdImagePtr gdPImg) is a pointer to the bytes created by the gd code. But what is returned to mapscript (see the function below from around mapscript_wrap.c:2581), is the (unsigned char *imgbytes) above. SWIGINTERN gdBuffer imageObj_getBytes(imageObj *self){ // ... buffer.data = msSaveImageBuffer(self, &buffer.size, self->format); // ... return buffer; } so when the JNI wrapper calls gdFree() at mapscript_wrap.c:25804: JNIEXPORT jbyteArray JNICALL Java_edu_umn_gis_mapscript_mapscriptJNI_imageObj_1getBytes(JNIEnv *jenv, jclass jcls, jlong jarg1) { jbyteArray jresult = 0 ; // ... result = imageObj_getBytes(arg1); // .. jresult = SWIG_JavaArrayOutSchar(jenv, (&result)->data, (&result)->size); if( (&result)->owns_data ) gdFree((&result)->data); return jresult; } it's only the (unsigned char *imgbytes) from above (mapgd.c) that gets freed, leaking the original (gdImagePtr gdPImg) allocated by the gd code. At least that's my guess, still exploring further. Perhaps I should try to recreate this as a self contained test case, and then I could file a bug. - Rich -- View this message in context: http://www.nabble.com/thread-safety-tp15514019p15622039.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Thu Feb 21 15:55:22 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 22 Feb 2008 00:55:22 +0100 Subject: [MAPSERVER-USERS] Antwort: Re: leaking memory in java mapscript (was Re: thread safety) In-Reply-To: <15622039.post@talk.nabble.com> References: <15514019.post@talk.nabble.com> <15562378.post@talk.nabble.com> <15562408.post@talk.nabble.com> <15579407.post@talk.nabble.com> <15603603.post@talk.nabble.com> <15621043.post@talk.nabble.com> <15622039.post@talk.nabble.com> Message-ID: 2008/2/21, rich.fromm : > > it's only the (unsigned char *imgbytes) from above (mapgd.c) that gets > freed, > leaking the original (gdImagePtr gdPImg) allocated by the gd code. > > At least that's my guess, still exploring further. > Rich, Since gdImagePtr is a struct and allocated on the stack, it will be freed when it goes out of the actual scope. > Perhaps I should try to recreate this as a self contained test case, and > then > I could file a bug. > I think that would be pretty useful. BTW: I don't really understand your valgrind output. Maybe you have 2 different versions of the gd library out there side by side. The mapserver core and the mapscript wrapper may use different gd (or crt) libraries therefore using gdFree doesn't actually free the memory segment passed by the argument. (I guess) Best regards, Tamas From mlinden at zeelandnet.nl Thu Feb 21 15:59:17 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Fri, 22 Feb 2008 00:59:17 +0100 Subject: [mapserver-users] GML request returns unsafe HTML characters? Message-ID: <47BE1055.1050408@zeelandnet.nl> An HTML attachment was scrubbed... URL: From nospam420 at yahoo.com Thu Feb 21 18:22:28 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Thu, 21 Feb 2008 18:22:28 -0800 (PST) Subject: [MAPSERVER-USERS] Antwort: Re: leaking memory in java mapscript (was Re: thread safety) In-Reply-To: References: <15514019.post@talk.nabble.com> <15562378.post@talk.nabble.com> <15562408.post@talk.nabble.com> <15579407.post@talk.nabble.com> <15603603.post@talk.nabble.com> <15621043.post@talk.nabble.com> <15622039.post@talk.nabble.com> Message-ID: <15626211.post@talk.nabble.com> Tamas Szekeres wrote: > > 2008/2/21, rich.fromm : >> >> it's only the (unsigned char *imgbytes) from above (mapgd.c) that gets >> freed, >> leaking the original (gdImagePtr gdPImg) allocated by the gd code. >> >> At least that's my guess, still exploring further. >> > > Since gdImagePtr is a struct and allocated on the stack, it will be > freed when it goes out of the actual scope. > The actual memory allocation happens in gdImageCreate() in gd.c, which returns gdImagePtr im. This sets gdImagePtr img in msImageCreateWithPaletteGD() in mapgd.c, which returns it. This then sets gdImagePtr gdPImg in msSaveImageBufferGD() in mapgd.c. This value is NOT directly returned. Instead, it is used to set unsigned char *imgbytes, and that is returned. The fact that all of these: gdImagePtr im in gdImageCreate() in gd.c gdImagePtr img in msImageCreateWithPaletteGD() in mapgd.c gdImagePtr gdPImg in msSaveImageBufferGD() in mapgd.c are all local to the stacks of their respective functions is I think irrelevant. A gdImagePtr is a pointer. From gd.h: typedef gdImage *gdImagePtr; If the pointer goes out of scope and the memory to which it points has not been freed, that's a memory leak. Tamas Szekeres wrote: > >> Perhaps I should try to recreate this as a self contained test case, and >> then >> I could file a bug. >> > > I think that would be pretty useful. > I have been able to replicate the leak with synthetic data. Valgrind reports it, and by iterating repeatedly in my test code I can easily see it as well. I am in the process of trying to pare down the case to see what does or does not matter for the leak (e.g. forced pallette, postgis vs. shp file, gd vs. agg). Once I am done with this I will package it up to file as a bug report. Tamas Szekeres wrote: > > BTW: I don't really understand your valgrind output. Maybe you have 2 > different versions of the gd library out there side by side. The > mapserver core and the mapscript wrapper may use different gd (or crt) > libraries therefore using gdFree doesn't actually free the memory > segment passed by the argument. (I guess) > (mapgd.c:3460) calls gdImageCreate() in gd.c. There are three different memory allocations within that function. Line numbers are from gd 2.0.35: 83: im = (gdImage *) gdMalloc (sizeof (gdImage)); 90: im->pixels = (unsigned char **) gdMalloc (sizeof (unsigned char *) * sy); 104: im->pixels[i] = (unsigned char *) gdCalloc (sx, sizeof (unsigned char)); I can easily see how if one of these is leaking than all could be leaking. Valgrind is reporting two different stack traces for two different leaks, those at lines 83 and lines 104. But it's presumably the same single thread of execution for both. I don't know why valgrind is not reporting the case at line 90. Perhaps it's not really being leaked somehow, but I suspect that it's just a deficiency in valgrind that it's not finding it. And it's only a single byte, so it's not likely to be noticeable in my approximate leak size comparisons anyway. I'll reply again when I have a concise reproducible test case to file. - Rich -- View this message in context: http://www.nabble.com/thread-safety-tp15514019p15626211.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Thu Feb 21 19:04:51 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 21 Feb 2008 21:04:51 -0600 Subject: [mapserver-users] Map image location In-Reply-To: <005f01c874d9$aa345220$6701a8c0@roca.local> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBAF5@s-sp22.pca.state.mn.us> Gerry, A little more info would be helpful. How are you calling MapServer? If you are calling it in mode=map, no image is generated in the tmp directory. In browse (the default) mode, a temp image is created. What happens when you call MapServer, are you getting the image that you expect in the browser? Are you getting an error? The URL string that you are using to call MapServer and the text of your map file would be helpful. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Gerry James Sent: Thursday, February 21, 2008 4:33 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Map image location I have a bit of a dilemma. I have built an application using UMN Mapserver as the mapping front end. Part of the application requires I retrieve the current map image, however, when I go to look for it where I think it should be /tmp/ms_tmp/ there are no images to be found. Can someone help me find where these images are being stored. I am using the ms4w MapServer version. Any guidance would be greatly appreciated. Gerry ___________________________________ Gerry James, B.Sc., GISP President/Lead Consultant ************************************************* Carteryx Geomatics Consultants Inc. Spatial Intelligence for a Changing World www.carteryx.com ___________________________________ The information contained in this e-mail is intended only for the recipient(s) to whom it is addressed and its contents (including any attachments) may contain information that is confidential or privileged. Any unauthorized review, use, dissemination, copying or distribution is strictly prohibited. If you are not the named recipient of this email or have received it in error, please notify the sender and destroy and delete all copies of the email immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: From devmapserver at gmail.com Thu Feb 21 23:43:38 2008 From: devmapserver at gmail.com (Desarrollo Desarrollo) Date: Fri, 22 Feb 2008 08:43:38 +0100 Subject: [mapserver-users] MapServer consuming 100% CPU In-Reply-To: References: Message-ID: Thank you very much for your answer, Therefore, Should I think that Shapefiles / DBF data is not suitable for MapServer if the number of features in the shapefile is a "big" number like 473815 line strings in the Streets.shp? I've tried with MajHwys.shp (35295 linestrings features) labeling and using expressions and works ok. Streets.shp with its 473815 linestrings is rendered fast if there is not DBF access (not labeling neither expressions), but when DBF access is needed Mapservers hangs up! Will MySQL spatial data increase the speed and number of features that MapServer can manage? Best regards 2008/2/21, Bart van den Eijnden (OSGIS) : > > It is because Mapserver cannot use any attribute indexes on the DBF. > > Put your shapefile in a spatial database like PostGIS I would suggest and > create attribute indexes. > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: Paul Spencer > Naar: Desarrollo Desarrollo > Cc: mapserver-users at lists.osgeo.org > Onderwerp: Re: [mapserver-users] MapServer consuming 100% CPU > Datum: 21/02/08 11:09 > > > > See: > > > > http://mapserver.gis.umn.edu/docs/howto/mapfiletuning > > http://mapserver.gis.umn.edu/docs/howto/optimizevector > > http://mapserver.gis.umn.edu/docs/howto/tileindex > > > > Cheers > > > > Paul > > > > On 21-Feb-08, at 2:56 AM, Desarrollo Desarrollo wrote: > > > > > > Hi, > > > > > > I am developing an application with MapServer v2.2.7 with > > > Apache on Windows XP, but I have a serious problem, below I > > > describe it: > > > > > > Using Navteq demo maps from Paris, the Streets.shp have around > > > 500000 line strings features, when mapserver renders the layer > > > without using DBF data (only draw lines) everything is OK and > fast, > > > > but when mapserver needs to access to the DBF to render labels or > > > use expressions to filter data, mapserver starts to consuming 100% > > > CPU and nothing is rendered after to spends a long time. > > > > > > Using Teleatlas demo maps for a medium city of Spain, the > Street.shp > > > > with around 11000 line strings features doesn't show any trouble > and > > > > mapserver renders the images OK and fast even accessing to DBF to > > > render labels > > > > > > Could somebody help me with this problem? Why does it happen? How > do > > > > I solve it? > > > > > > > > > Thank you very much. > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > __________________________________________ > > > > Paul Spencer > > Chief Technology Officer > > DM Solutions Group Inc > > http://www.dmsolutions.ca/ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kunal.malik81 at gmail.com Fri Feb 22 00:32:40 2008 From: kunal.malik81 at gmail.com (Kunal Malik) Date: Fri, 22 Feb 2008 14:02:40 +0530 Subject: [mapserver-users] Query Regarding MapServer????? Message-ID: HI!! I have displayed my raster & vector Images on Grass Tool. NOw i want to start with the development using the grass tools. How could i use Grass in conjuction with the Map Server.???? I want to develop the client-server architecture, I want the map server should run on Server & n number of Client can request them .. Since I want to start with the developemt ,could u recommend any book for this..I am not able to find any books,,the books avaliable on the internet have the limited preview and they are not complete. could u please tell the following tasks could be accomplished in grass ?? 1.Import & Export Map(TF,GeoTif,IMG,DTED,SHP,BMP,DVD,DGN). 2.)Registration of Map-->Datum Used is wgs84. 3)Raster to Vector Conversion & Vice Versa 4) Create Layer 5)Grouping & Separation of Layers. 6) Hide/Unhide Layers. 7)Edit/Delete layers, 8)Stiching of Map. Please help me to resolve these queries, Thanks in Advance. -- Thanks & Regards Kunal Malik 09871147561 -------------- next part -------------- An HTML attachment was scrubbed... URL: From vishu_73ns at yahoo.com Fri Feb 22 01:26:30 2008 From: vishu_73ns at yahoo.com (vishal nagpal) Date: Fri, 22 Feb 2008 01:26:30 -0800 (PST) Subject: [mapserver-users] Query Regarding MapServer????? Message-ID: <515615.48399.qm@web52403.mail.re2.yahoo.com> 1. All that you have mentioned is possible with mapserver and grass both. 2. You need to decide whether you wish to have a client server architecture or web based GIS. 3. You need to visit the UMN-Mapserver website documentation( which is thankfully exhaustive) to learn more about mapserver. You do not need a book. 4. In case you wish it to be web based that i recommend Mapserver as the best bet. You will still need to do some html coding or java script to add additional features. Workshop.zip file is an excellent demo. 5. Openlayers, Chameleon, Cartoweb3 are few good cartography tools, you may use. All the best. Vishal ----- Original Message ---- From: Kunal Malik To: mapserver-users at lists.osgeo.org Sent: Friday, February 22, 2008 2:02:40 PM Subject: [mapserver-users] Query Regarding MapServer????? HI!! I have displayed my raster & vector Images on Grass Tool. NOw i want to start with the development using the grass tools. How could i use Grass in conjuction with the Map Server.???? I want to develop the client-server architecture, I want the map server should run on Server & n number of Client can request them .. Since I want to start with the developemt ,could u recommend any book for this..I am not able to find any books,,the books avaliable on the internet have the limited preview and they are not complete. could u please tell the following tasks could be accomplished in grass ?? 1.Import & Export Map(TF,GeoTif,IMG,DTED,SHP,BMP,DVD,DGN). 2.)Registration of Map-->Datum Used is wgs84. 3)Raster to Vector Conversion & Vice Versa 4) Create Layer 5)Grouping & Separation of Layers. 6) Hide/Unhide Layers. 7)Edit/Delete layers, 8)Stiching of Map. Please help me to resolve these queries, Thanks in Advance. -- Thanks & Regards Kunal Malik 09871147561 -----Inline Attachment Follows----- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Fri Feb 22 04:01:04 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 22 Feb 2008 13:01:04 +0100 Subject: [MAPSERVER-USERS] Antwort: Re: leaking memory in java mapscript (was Re: thread safety) In-Reply-To: <15626211.post@talk.nabble.com> References: <15514019.post@talk.nabble.com> <15562378.post@talk.nabble.com> <15562408.post@talk.nabble.com> <15579407.post@talk.nabble.com> <15603603.post@talk.nabble.com> <15621043.post@talk.nabble.com> <15622039.post@talk.nabble.com> <15626211.post@talk.nabble.com> Message-ID: 2008/2/22, rich.fromm : > > The actual memory allocation happens in gdImageCreate() in gd.c, which > returns > gdImagePtr im. > > This sets gdImagePtr img in msImageCreateWithPaletteGD() in mapgd.c, which > returns it. > > This then sets gdImagePtr gdPImg in msSaveImageBufferGD() in mapgd.c. This > value is NOT directly returned. Instead, it is used to set unsigned char > *imgbytes, and that is returned. > > I think this might be the case. Would you try adding something like: Index: mapgd.c =================================================================== --- mapgd.c (revision 7383) +++ mapgd.c (working copy) @@ -3686,6 +3686,8 @@ gdPImg = msImageCreateWithPaletteGD(img, palette, gdImageSX(img), gdImageSY(img)); msImageCopyForcePaletteGD(img, gdPImg, method); imgbytes = gdImagePngPtr(gdPImg, size_ptr); + if (gdPImg) + gdImageDestroy(gdPImg); } else if ( force_pc256 ) { gdImagePtr gdPImg; @@ -3704,6 +3706,8 @@ for( i = 0; i < gdPImg->colorsTotal; i++ ) gdPImg->open[i] = 0; imgbytes = gdImagePngPtr(gdPImg, size_ptr); + if (gdPImg) + gdImageDestroy(gdPImg); } else imgbytes = gdImagePngPtr(img, size_ptr); If this fix is helpful then attach it to the ticket please. Best regards, Tamas From m.manso at upm.es Fri Feb 22 07:39:09 2008 From: m.manso at upm.es (m.manso at upm.es) Date: Fri, 22 Feb 2008 16:39:09 +0100 Subject: [mapserver-users] Problem with Java Mapscript to dinamyc connection on OGR Message-ID: <47BEFAAD.16356.6901968@m.manso.upm.es> Hi, I'm trying to use mapscript to draw a vector or raster layer. I've see Java Mapscript examples in with you can start from emty mapfile, and build as you like. In this situacion you can add layer as you like RASTER, VECTOR with different connectiontype. When i tryal to connect using OGR and layer.setData() path to DGN file for example no error happened but when try to draw layer one error appear. I'm using Mapserver 5.1-dev version. Can any one help me to find problem? Thanks ------------------------------------------------------------------------------------------------- Miguel ?ngel Manso Callejo. Grupo Mercator: Tecnolog?as de la Geoinformaci?n. Dpto. Ing. Topogr?fica y Cartograf?a (UPM) ETSI en Topograf?a, Geodesia y Cartograf?a. Autovia de Valencia Km 7.5 Madrid 28031 Tfno: 34 91 336 6487 - Fax: 34 91 336 7932 From mlinden at zeelandnet.nl Fri Feb 22 09:46:01 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Fri, 22 Feb 2008 18:46:01 +0100 Subject: [mapserver-users] WMS GetFeatureInfo always returns features from a single layer Message-ID: <47BF0A59.3060309@zeelandnet.nl> Hello list! My GetFeatureInfo request (shown below) ALWAYS returns only features from one single layer. I have a simple question. Is this as designed? Or am I doing something wrong? If it is as designed, I will tell openlayers to loop through the layers in a javascript function. http://geo/map/mapserv.exe?MAP=D%3A%5CCaredata%5Cmapfiles%5C31.map&PROJECTION=epsg%3A28992&FORMAT=image%2Fpng&LAYERS=Regio%2CGrootwater%2CWater%2CBebouwing%2CLandinrichting%2CPlaats%2CGemeente%2CWegen&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A28992&BBOX=157730.5%2C415458%2C257730.5%2C515458&X=259&Y=268&INFO_FORMAT=application%2Fvnd.ogc.gml&QUERY_LAYERS=Plaats,Regio&WIDTH=512&HEIGHT=512 From dmorissette at mapgears.com Fri Feb 22 10:52:51 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 22 Feb 2008 13:52:51 -0500 Subject: [mapserver-users] WMS GetFeatureInfo always returns features from a single layer In-Reply-To: <47BF0A59.3060309@zeelandnet.nl> References: <47BF0A59.3060309@zeelandnet.nl> Message-ID: <47BF1A03.2010100@mapgears.com> Milo van der Linden wrote: > Hello list! > > My GetFeatureInfo request (shown below) ALWAYS returns only features > from one single layer. I have a simple question. Is this as designed? Or > am I doing something wrong? > You should be able to get results from more than one layer. I see that your QUERY_LAYERS is set to "Plaats,Regio", are both layers queryable? Do you get results if you query each layer individually for the same location? Daniel -- Daniel Morissette http://www.mapgears.com/ From nospam420 at yahoo.com Fri Feb 22 11:53:10 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Fri, 22 Feb 2008 11:53:10 -0800 (PST) Subject: [MAPSERVER-USERS] Antwort: Re: leaking memory in java mapscript (was Re: thread safety) In-Reply-To: References: <15514019.post@talk.nabble.com> <15562378.post@talk.nabble.com> <15562408.post@talk.nabble.com> <15579407.post@talk.nabble.com> <15603603.post@talk.nabble.com> <15621043.post@talk.nabble.com> <15622039.post@talk.nabble.com> <15626211.post@talk.nabble.com> Message-ID: <15641334.post@talk.nabble.com> Tamas Szekeres wrote: > > I think this might be the case. Would you try adding something like: > I have the following six testcases: 1) Data from PostGIS, AGG renderer, FORMATOPTION "PALETTE_FORCE=TRUE" 2) Data from PostGIS, AGG renderer, no forcing 3) Data from PostGIS, GD renderer 4) Data from *.shp file, AGG renderer, FORMATOPTION "PALETTE_FORCE=TRUE" 5) Data from *.shp file, AGG renderer, no forcing 6) Data from *.shp file, GD renderer 1, 2, 4, and 5 all leaked. 3 and 6 did not. In other words, PostGIS vs. *.shp did not matter, PALETTE_FORCE vs. not did not matter, but AGG (leak) vs. GD (no leak) did matter. I tried applying the following patch to mapserver 5.0.0: --- begin --- --- mapserver-5.0.0-etch/mapgd.c 2007-08-21 11:54:21.000000000 -0700 +++ mapserver-5.0.0-etch-bugfix/mapgd.c 2008-02-22 11:19:41.000000000 -0800 @@ -3696,6 +3696,8 @@ msImageCopyForcePaletteGD(img, gdPImg); imgbytes = gdImagePngPtr(gdPImg, size_ptr); + if (gdPImg) + gdImageDestroy(gdPImg); } else if ( force_pc256 ) { gdImagePtr gdPImg; @@ -3714,6 +3716,8 @@ for( i = 0; i < gdPImg->colorsTotal; i++ ) gdPImg->open[i] = 0; imgbytes = gdImagePngPtr(gdPImg, size_ptr); + if (gdPImg) + gdImageDestroy(gdPImg); } else imgbytes = gdImagePngPtr(img, size_ptr); --- end --- Now none of the cases leak. These have been confirmed both with iterative runs (500 iterations) while watching memory consumption in top, and with a single run using valgrind. I will file a bug. Let me know whether this information is sufficient, or if you want me to package up a self contained testcase with the cases I used to show the behavior both before and after the fix. It will take me a bit of effort to get everything into a form to package up and file, but it won't be all that hard, and I'll gladly do it if you'd like. Thanks very much for your help. - Rich -- View this message in context: http://www.nabble.com/thread-safety-tp15514019p15641334.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Fri Feb 22 12:13:35 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Fri, 22 Feb 2008 12:13:35 -0800 (PST) Subject: [MAPSERVER-USERS] Antwort: Re: leaking memory in java mapscript (was Re: thread safety) In-Reply-To: <15641334.post@talk.nabble.com> References: <15514019.post@talk.nabble.com> <15562378.post@talk.nabble.com> <15562408.post@talk.nabble.com> <15579407.post@talk.nabble.com> <15603603.post@talk.nabble.com> <15621043.post@talk.nabble.com> <15622039.post@talk.nabble.com> <15626211.post@talk.nabble.com> <15641334.post@talk.nabble.com> Message-ID: <15641420.post@talk.nabble.com> rich.fromm wrote: > > I will file a bug. > It's bug 2525: http://trac.osgeo.org/mapserver/ticket/2525 Let me know if you want me to attach a complete self contained testcase. - Rich -- View this message in context: http://www.nabble.com/thread-safety-tp15514019p15641420.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Fri Feb 22 12:27:13 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 22 Feb 2008 21:27:13 +0100 Subject: [MAPSERVER-USERS] Antwort: Re: leaking memory in java mapscript (was Re: thread safety) In-Reply-To: <15641420.post@talk.nabble.com> References: <15514019.post@talk.nabble.com> <15603603.post@talk.nabble.com> <15621043.post@talk.nabble.com> <15622039.post@talk.nabble.com> <15626211.post@talk.nabble.com> <15641334.post@talk.nabble.com> <15641420.post@talk.nabble.com> Message-ID: Rich, Thank you for your efforts, that was pretty sound :-) I'll take over this bug and apply the fix this evening. Best regards, Tamas 2008/2/22, rich.fromm : > > > rich.fromm wrote: > > > > I will file a bug. > > > > > It's bug 2525: > http://trac.osgeo.org/mapserver/ticket/2525 > > Let me know if you want me to attach a complete self contained testcase. > > - Rich > > > -- > View this message in context: http://www.nabble.com/thread-safety-tp15514019p15641420.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From nospam420 at yahoo.com Fri Feb 22 12:36:35 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Fri, 22 Feb 2008 12:36:35 -0800 (PST) Subject: [MAPSERVER-USERS] annotation layer In-Reply-To: <251913.31766.qm@web25905.mail.ukl.yahoo.com> References: <251913.31766.qm@web25905.mail.ukl.yahoo.com> Message-ID: <15641531.post@talk.nabble.com> Hans Castorp wrote: > > It is possible to have an annotation layer with symbol but without label?? > I think you could do it. For example, I have a layer for highway shields that follows the sort of pattern below. The CLASSITEM defines which symbol to use (when it matches the EXPRESSION), and the LABELITEM puts the highway number of the shield (subject to the description in the LABEL). If you just didn't have a LABEL section, and/or a LABELITEM, or the label is just "", then I would think that you could accomplish what you desired. But I haven't tried, so I don't know if there are maybe some complications. Good luck. - Rich ------------ LAYER TYPE ANNOTATION CLASSITEM type LABELITEM num # ... CLASS # ... EXPRESSION type STYLE SYMBOL symbol.png END LABEL # ... END END CLASS # ... END # ... END -- View this message in context: http://www.nabble.com/annotation-layer-tp15608515p15641531.html Sent from the Mapserver - User mailing list archive at Nabble.com. From banders at refractions.net Fri Feb 22 14:20:55 2008 From: banders at refractions.net (Brock Anderson) Date: Fri, 22 Feb 2008 14:20:55 -0800 Subject: [mapserver-users] Oracle Spatial configuration Message-ID: <47BF4AC7.5060308@refractions.net> Hi Folks, I've just compiled Mapserver 4.10 for windows with Oracle Spatial support against Oracle's "instant client SDK" and "instant client basic". That seemed to go smoothly. I'm now trying to configure Mapserver and my map file with an Oracle Spatial layer. So far I haven't successfully served up my Oracle Spatial data. When I make a WMS getmap request for my layer I get back an XML error message saying this: msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI Handlers. Connection failure. Check the connection string. Error: ORA-12705: Cannot access NLS data files or invalid environment specified I think my problem is with the environment variables that Mapserver and the Oracle instant client depend on. I've followed Oracle Spatial "howtos" here: http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto http://mapserver.gis.umn.edu/docs/howto/Configure%20Oracle%20and%20UMN Here's a snippet from my apache httpd.conf: SetEnv ORACLE_HOME "c:/oracle_sdk/instantclient_11_1" SetEnv TNS_ADMIN "c:/DevSuiteHome/network/admin" SetEnv ORACLE_SID "MY_ORACLE" SetEnv PATH "c:/oracle_sdk/instantclient_11_1" I've also defined each of those variables directly as windows environment variables, just to be safe. Mapserver seems to pick up my tnsnames.ora file, so TNS_ADMIN is probably getting recognized. My mapfile is pasted below. Does anyone else have Oracle Spatial support working? Can you share with me which environment variables you use, how you set them, and what values you set them to? Cheers, Brock MAP EXTENT 200000 200000 2100000 2100000 SIZE 100 100 UNITS meters WEB METADATA "wms_title" "test" "wms_onlineresource" "" "wms_srs" "epsg:4269 epsg:4326 epsg:26909 epsg:42102 epsg:3005" "wfs_onlineresource" "" END #end metadata END #end web PROJECTION "init=epsg:3005" END #end projection DEBUG ON LAYER NAME 'test' CONNECTIONTYPE oraclespatial CONNECTION 'user/pass at MY_ORACLE' DATA 'GEOMETRY FROM MY_TABLE USING UNIQUE MAP_FEATURE_ID SRID 3005 VERSION 10g' CLASS STYLE COLOR 194 164 84 END #end style END #end class TYPE line STATUS ON PROJECTION "init=epsg:3005" END METADATA "wms_title" "test" END #end metadata DEBUG ON END #end layer END #end map From thy at 42.dk Fri Feb 22 14:26:25 2008 From: thy at 42.dk (Kristian Thy) Date: Fri, 22 Feb 2008 23:26:25 +0100 Subject: [mapserver-users] GML request returns unsafe HTML characters? In-Reply-To: <47BE1055.1050408@zeelandnet.nl> References: <47BE1055.1050408@zeelandnet.nl> Message-ID: <20080222222625.GL16125@42.dk> On Fri, Feb 22, Milo van der Linden wrote: > I am identifying features on a WMS layer hosted on Mapserver. When I > inspect the result of an Identify request with Firebug (the greatest > javascript debugger in the world) in FireFox, I see that the request > returns values. But... they contain HTML unsafe characters, aargh!
[snip] > <NAME>Doe, J. / Doe, A.</NAME>
[snip] > My guess is that these little , and / are what cause the trouble. , and / are not "HTML unsafe characters". < and & is. What exactly is the error you are seeing? \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From jason at ingagi.com Sat Feb 23 13:13:21 2008 From: jason at ingagi.com (Jason Allen) Date: Sat, 23 Feb 2008 15:13:21 -0600 Subject: [mapserver-users] OpenLayers and MapServer Itasca Demo Message-ID: <4f7a14590802231313l61d38df2ne43146bfd037f6a9@mail.gmail.com> I just started working with MapServer yesterday and it rocks! I've been learning my around with the MapServer 5.x Demo App (Itasca) and while it works fine using HTML templates, I can't get it to play nicely with OpenLayers. OpenLayers simply returns blank map tiles. The itasca.map file is stock except that I uncommented the projection info: PROJECTION "init=epsg:26915" END My OpenLayers setup is very simple as well: function init(){ map = new OpenLayers.Map( 'map' ); layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS", "http://dev.312pulse.com/cgi-bin/mapserv?map=itasca.map", {layers: 'drgs,lakespy2'}, {gutter: 15}); map.addLayer(layer); map.zoomToMaxExtent(); map.addControl( new OpenLayers.Control.LayerSwitcher() ); } Does anyone have any idea why OpenLayers isn't displaying any data, or how to troubleshoot this issue? MapServer logging isn't the most verbose, and I haven't been able to track down any other clues. My OpenLayers test page (doesn't work): http://dev.312pulse.com/map.html Workshop demo (works): http://dev.312pulse.com/workshop/ Thanks, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at zeelandnet.nl Sat Feb 23 13:20:33 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Sat, 23 Feb 2008 22:20:33 +0100 Subject: [mapserver-users] OpenLayers and MapServer Itasca Demo In-Reply-To: <4f7a14590802231313l61d38df2ne43146bfd037f6a9@mail.gmail.com> References: <4f7a14590802231313l61d38df2ne43146bfd037f6a9@mail.gmail.com> Message-ID: <47C08E21.70406@zeelandnet.nl> An HTML attachment was scrubbed... URL: From crschmidt at crschmidt.net Sun Feb 24 06:23:19 2008 From: crschmidt at crschmidt.net (Christopher Schmidt) Date: Sun, 24 Feb 2008 09:23:19 -0500 Subject: [mapserver-users] OpenLayers and MapServer Itasca Demo In-Reply-To: <4f7a14590802231313l61d38df2ne43146bfd037f6a9@mail.gmail.com> References: <4f7a14590802231313l61d38df2ne43146bfd037f6a9@mail.gmail.com> Message-ID: <20080224142319.GA3919@crschmidt.net> On Sat, Feb 23, 2008 at 03:13:21PM -0600, Jason Allen wrote: > I just started working with MapServer yesterday and it rocks! > > I've been learning my around with the MapServer 5.x Demo App (Itasca) and > while it works fine using HTML templates, I can't get it to play nicely with > OpenLayers. OpenLayers simply returns blank map tiles. > > The itasca.map file is stock except that I uncommented the projection info: > PROJECTION > "init=epsg:26915" > END > > My OpenLayers setup is very simple as well: http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#Projections Regards, -- Christopher Schmidt Web Developer From umn-ms at hydrotec.de Sun Feb 24 08:47:25 2008 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Sun, 24 Feb 2008 17:47:25 +0100 Subject: [mapserver-users] Strange line in picture Message-ID: Hi In some cases Mapserver produces an unwanted and strange horizontal line at the bottom of a map, if a point is rendered near the bottom. Example with blue point and unwanted blue line on red image is attached. The image is produced with shp2image -m test.map -o test.png. No additional data is needed. Windows; Mapserver 5.0; GD 2.0.35 Any suggestions? Is it reproducible by others? Bye Benedikt Rothe -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test.png Type: application/octet-stream Size: 957 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test.map Type: application/octet-stream Size: 513 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: symbols.map Type: application/octet-stream Size: 108 bytes Desc: not available URL: From gregor at hostgis.com Sun Feb 24 09:23:10 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Sun, 24 Feb 2008 10:23:10 -0700 Subject: [mapserver-users] Strange line in picture In-Reply-To: References: Message-ID: <47C1A7FE.9060904@hostgis.com> umn-ms at hydrotec.de wrote: > In some cases Mapserver produces an unwanted and strange horizontal line > at the bottom of a map, if a point is rendered near the bottom. If the answer is the same as when I noted this some months ago: That's a known GD+Mapserver bug. But strangely I didn't find this bug in the MS Trac; not that I looked very hard. Try AGG, or grab the latest Subversion version of Mapserver. Then again, the fix may be in 5.0.1 by now. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From umn-ms at hydrotec.de Sun Feb 24 10:04:56 2008 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Sun, 24 Feb 2008 19:04:56 +0100 Subject: Antwort: Re: [mapserver-users] Strange line in picture In-Reply-To: <47C1A7FE.9060904@hostgis.com> Message-ID: I repeated the test with 5.0.2. Error doesn't occure. Seems to be solved. Bye Benedikt Rothe Gregor Mosheh schrieb am 24.02.2008 18:23:10: > umn-ms at hydrotec.de wrote: > > In some cases Mapserver produces an unwanted and strange horizontal line > > at the bottom of a map, if a point is rendered near the bottom. > > If the answer is the same as when I noted this some months ago: > > That's a known GD+Mapserver bug. But strangely I didn't find this bug in > the MS Trac; not that I looked very hard. > > Try AGG, or grab the latest Subversion version of Mapserver. Then again, > the fix may be in 5.0.1 by now. > > -- > Gregor Mosheh / Greg Allensworth, BS, A+ > System Administrator > HostGIS cartographic development & hosting services > http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Sun Feb 24 10:18:00 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Sun, 24 Feb 2008 11:18:00 -0700 Subject: Antwort: Re: [mapserver-users] Strange line in picture In-Reply-To: References: Message-ID: <47C1B4D8.1080101@hostgis.com> umn-ms at hydrotec.de wrote: > I repeated the test with 5.0.2. > Error doesn't occure. Seems to be solved. Oh good. Thanks for getting back to us. Now I know. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From thy at 42.dk Sun Feb 24 10:33:37 2008 From: thy at 42.dk (Kristian Thy) Date: Sun, 24 Feb 2008 19:33:37 +0100 Subject: [mapserver-users] Strange line in picture In-Reply-To: <47C1A7FE.9060904@hostgis.com> References: <47C1A7FE.9060904@hostgis.com> Message-ID: <20080224183337.GM16125@42.dk> On Sun, Feb 24, Gregor Mosheh wrote: > That's a known GD+Mapserver bug. But strangely I didn't find this bug in > the MS Trac; not that I looked very hard. http://trac.osgeo.org/mapserver/ticket/1719 \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From nospam420 at yahoo.com Sun Feb 24 12:55:26 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Sun, 24 Feb 2008 12:55:26 -0800 (PST) Subject: [MAPSERVER-USERS] Problem with Java Mapscript to dinamyc connection on OGR In-Reply-To: <47BEFAAD.16356.6901968@m.manso.upm.es> References: <47BEFAAD.16356.6901968@m.manso.upm.es> Message-ID: <15669214.post@talk.nabble.com> m.manso wrote: > > when try to draw layer one error appear. > In general you might get a better chance at a response if you post at least a snippet of the problematic java mapscript code, as well as the exact details of what the error is. the mapfile would also be relevant if there was one, although it sounds like you might not have one in your case, if you're building up the entire mapobj by scratch. (personally, i wasn't able to get that to do what i want, so i use a series of map files as templates and then use java mapscript to modify them as needed for each particular request, but ymmv.) - rich -- View this message in context: http://www.nabble.com/Problem-with-Java-Mapscript-to-dinamyc-connection-on-OGR-tp15636757p15669214.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pzader at gmail.com Sun Feb 24 13:48:16 2008 From: pzader at gmail.com (pablo zader) Date: Sun, 24 Feb 2008 18:48:16 -0300 Subject: [mapserver-users] New users Message-ID: <52be2a8b0802241348y4a70828bqfc18f5a00f3acec6@mail.gmail.com> Sorry, it is mail test. thank you -- Pablo Zader -------------- next part -------------- An HTML attachment was scrubbed... URL: From begodom at gmail.com Mon Feb 25 00:12:48 2008 From: begodom at gmail.com (=?ISO-8859-1?Q?Bego=F1a_Gonzalez?=) Date: Mon, 25 Feb 2008 09:12:48 +0100 Subject: [mapserver-users] Oracle Spatial configuration In-Reply-To: <47BF4AC7.5060308@refractions.net> References: <47BF4AC7.5060308@refractions.net> Message-ID: <95d1ba280802250012j6525ad1elebde4b813aa8feeb@mail.gmail.com> Hello Brok I am relatively new in mapserver but I?m working with spatial oracle. As you, I follow the steps of Oracle Spatial "howtos". Your September env seem to be well, and the chain of connection tambi?en. Your apache httpd.conf and mapfile seem to be well, these are mine: #A?adido para conectar a Oracle SetEnv ORACLE_SID eiel3 SetEnv TNS_ADMIN "c:/oracle/product/10.2.0/client_1/NETWORK/ADMIN" SetEnv ORACLE_HOME "c:/oracle/product/10.2.0/client_1" Have you also followed these steps? http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g I hope this will help you Bego?a LAYER NAME "INFRAESTRUCTURA_VIARIA" STATUS ON TYPE POLYGON CONNECTIONTYPE oraclespatial CONNECTION "****/****@eiel3" DATA "GEOLOC FROM MY_TABLE USING UNIQUE MI_PRINX SRID 82337" METADATA qstring_validation_pattern '.' END CLASS STYLE COLOR 252 183 12 OUTLINECOLOR 255 0 0 END TEMPLATE "templates/INFRAESTRUCTURA_VIARIA.html" END END On Fri, Feb 22, 2008 at 11:20 PM, Brock Anderson wrote: > Hi Folks, > > I've just compiled Mapserver 4.10 for windows with Oracle Spatial > support against Oracle's "instant client SDK" and "instant client > basic". That seemed to go smoothly. I'm now trying to configure > Mapserver and my map file with an Oracle Spatial layer. So far I > haven't successfully served up my Oracle Spatial data. > > When I make a WMS getmap request for my layer I get back an XML error > message saying this: > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > Handlers. Connection failure. Check the connection string. Error: > ORA-12705: Cannot access NLS data files or invalid environment specified > > I think my problem is with the environment variables that Mapserver and > the Oracle instant client depend on. I've followed Oracle Spatial > "howtos" here: > http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto > http://mapserver.gis.umn.edu/docs/howto/Configure%20Oracle%20and%20UMN > > Here's a snippet from my apache httpd.conf: > > > SetEnv ORACLE_HOME "c:/oracle_sdk/instantclient_11_1" > SetEnv TNS_ADMIN "c:/DevSuiteHome/network/admin" > SetEnv ORACLE_SID "MY_ORACLE" > SetEnv PATH "c:/oracle_sdk/instantclient_11_1" > > > I've also defined each of those variables directly as windows > environment variables, just to be safe. Mapserver seems to pick up my > tnsnames.ora file, so TNS_ADMIN is probably getting recognized. My > mapfile is pasted below. > > Does anyone else have Oracle Spatial support working? Can you share > with me which environment variables you use, how you set them, and what > values you set them to? > > Cheers, > Brock > > MAP > EXTENT 200000 200000 2100000 2100000 > SIZE 100 100 > UNITS meters > WEB > METADATA > "wms_title" "test" > "wms_onlineresource" "" > "wms_srs" "epsg:4269 epsg:4326 epsg:26909 epsg:42102 epsg:3005" > "wfs_onlineresource" "" > END #end metadata > END #end web > PROJECTION > "init=epsg:3005" > END #end projection > DEBUG ON > > LAYER > NAME 'test' > CONNECTIONTYPE oraclespatial > CONNECTION 'user/pass at MY_ORACLE' > DATA 'GEOMETRY FROM MY_TABLE USING UNIQUE MAP_FEATURE_ID SRID > 3005 VERSION 10g' > CLASS > STYLE > COLOR 194 164 84 > END #end style > END #end class > TYPE line > STATUS ON > PROJECTION > "init=epsg:3005" > END > METADATA > "wms_title" "test" > END #end metadata > DEBUG ON > END #end layer > > END #end map > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From umn-ms at hydrotec.de Mon Feb 25 04:10:32 2008 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Mon, 25 Feb 2008 13:10:32 +0100 Subject: Antwort: Re: [mapserver-users] Strange line in picture In-Reply-To: Message-ID: Once again on this. I wrote, that the problem would be solved in 5.0.2. That's wrong. In my tests I mixed up GD/AGG. With GD2.0.35/MS 5.0.2 bug is still there and is still reproducible with the testcase. Sorry for confusion Benedikt Rothe mapserver-users-bounces at lists.osgeo.org schrieb am 24.02.2008 19:04:56: > > I repeated the test with 5.0.2. > Error doesn't occure. Seems to be solved. > > Bye > Benedikt Rothe > > Gregor Mosheh schrieb am 24.02.2008 18:23:10: > > > umn-ms at hydrotec.de wrote: > > > In some cases Mapserver produces an unwanted and strange horizontal line > > > at the bottom of a map, if a point is rendered near the bottom. > > > > If the answer is the same as when I noted this some months ago: > > > > That's a known GD+Mapserver bug. But strangely I didn't find this bug in > > the MS Trac; not that I looked very hard. > > > > Try AGG, or grab the latest Subversion version of Mapserver. Then again, > > the fix may be in 5.0.1 by now. > > > > -- > > Gregor Mosheh / Greg Allensworth, BS, A+ > > System Administrator > > HostGIS cartographic development & hosting services > > http://www.HostGIS.com/ > > > > "Remember that no one cares if you can back up, > > only if you can restore." - > AMANDA_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From devmapserver at gmail.com Mon Feb 25 05:48:35 2008 From: devmapserver at gmail.com (Desarrollo Desarrollo) Date: Mon, 25 Feb 2008 14:48:35 +0100 Subject: [mapserver-users] MapServer consuming 100% CPU In-Reply-To: References: Message-ID: Hello Bart! Following your advice, I have installed MySQL and downloaded one public access shapefile, to let you (and everybody who wants to try this test) reproduce the results Download it from http://edcftp.cr.usgs.gov/pub/data/nationalatlas/hydrogm020.tar.gz that have 2 shapefiles : lines (rivers) and polygons (lakes). I'm going to use hydrogl020.shp : D:\ms4w\apps\maps\data\test\hydrogm020>ogrinfo -so -al hydrogl020.shp INFO: Open of `hydrogl020.shp' using driver `ESRI Shapefile' successful. Layer name: hydrogl020 Geometry: Line String Feature Count: 76975 Extent: (-179.998245, 17.674692) - (179.983139, 71.398186) Layer SRS WKT: (unknown) FNODE_: Integer (9.0) TNODE_: Integer (9.0) LPOLY_: Integer (9.0) RPOLY_: Integer (9.0) LENGTH: Real (13.11) HYDROGM020: Integer (9.0) FEATURE: String (80.0) F_CODE: Integer (2.0) NAME: String (80.0) STATE: String (5.0) STATE_FIPS: String (5.0) NAME_UC: String (80.0) Let's create qix index: D:\ms4w\apps\maps\data\test\hydrogm020>shptree hydrogl020 creating index of new LSB format I'm going to test the shapefile, then I will convert it to a MySQL table and I will do the tests again SHAPEFILE 3 tests, let's use shp2img that skips apache, http requests, etc. Only one request in the command line. a1) No data access a2) Data access, only used in expressions to change the line color, no labeling a3) Data access only used for labeling --------------------------- --------- TEST A1 --------- --------------------------- Shapefile Map without data access MAP NAME "US RIVERS" SIZE 800 600 IMAGETYPE PNG EXTENT -179.998245 17.674692 179.983139 71.398186 PROJECTION "init=epsg:4269" END LAYER NAME "hydrogl020" STATUS OFF TYPE LINE DATA "hydrogl020" CLASS STYLE COLOR 0 0 0 END END END END Result Test A1: -------------- D:\ms4w\apps\maps\data\test\hydrogm020>shp2img -m d:\ms4w\apps\maps\data\test\hydrogm020\a1.map -o D:\ms4w\apps\maps\data\test\hydrogm020\a1.png -e -179.998245 17.674692 -60.0 71.398186 -t -l hydrogl020 -i PNG -all_debug 2 msDrawMap(): Layer 0 (hydrogl020), 1.328s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 1.328s --------------------------- --------- TEST A2 --------- --------------------------- Shapefile Map with data access in expression MAP NAME "US RIVERS" SIZE 800 600 IMAGETYPE PNG EXTENT -179.998245 17.674692 179.983139 71.398186 PROJECTION "init=epsg:4269" END LAYER NAME "hydrogl020" STATUS OFF TYPE LINE DATA "hydrogl020" CLASS EXPRESSION([F_CODE] = 4) STYLE COLOR 0 0 0 END END CLASS STYLE COLOR 255 0 0 END END END END Result Test A2: --------------- D:\ms4w\apps\maps\data\test\hydrogm020>shp2img -m d:\ms4w\apps\maps\data\test\hydrogm020\a2.map -o D:\ms4w\apps\maps\data\test\hydrogm020\a2.png -e -179.998245 17.674692 -60.0 71.398186 -t -l hydrogl020 -i PNG -all_debug 2 msDrawMap(): Layer 0 (hydrogl020), 6.250s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 6.250s --------------------------- --------- TEST A3 --------- --------------------------- Shapefile Map with data access MAP NAME "US RIVERS" SIZE 800 600 IMAGETYPE PNG EXTENT -179.998245 17.674692 179.983139 71.398186 PROJECTION "init=epsg:4269" END LAYER NAME "hydrogl020" STATUS OFF TYPE LINE DATA "hydrogl020" LABELITEM "STATE" CLASS STYLE COLOR 0 0 0 END LABEL COLOR 51 51 51 END END END END Result Test A3: -------------- D:\ms4w\apps\maps\data\test\hydrogm020>shp2img -m d:\ms4w\apps\maps\data\test\hydrogm020\a3.map -o D:\ms4w\apps\maps\data\test\hydrogm020\a3.png -e -179.998245 17.674692 -60.0 71.398186 -t -l hydrogl020 -i PNG -all_debug 2 msDrawMap(): Layer 0 (hydrogl020), 83.203s msDrawMap(): Drawing Label Cache, 0.703s msDrawMap() total time: 83.906s Ok, a2 shows that using F_CODE to determine the color of the line is not really very hard to mapserver but a3 shows that labeling is very hard to MapServer. It's time to repeat the tests with MySQL Spatial Data. Export shapefile to MySQL: ---------------- D:\ms4w\apps\maps\data\test\hydrogm020>ogr2ogr -f MySQL MySQL:maps,host=localhost,user=mapserver,password=mapserver hydrogl020.shp-nln hydrogl020 -update -overwrite -lco engine=MYISAM Repeat the 3 tests --------------------------- --------- TEST B1 --------- --------------------------- OGR MySQL Map without data access MAP NAME "US RIVERS" SIZE 800 600 IMAGETYPE PNG EXTENT -179.998245 17.674692 179.983139 71.398186 PROJECTION "init=epsg:4269" END LAYER NAME "hydrogl020" STATUS OFF TYPE LINE CONNECTIONTYPE OGR CONNECTION "MySQL:maps,host=localhost,user=mapserver,password=mapserver" DATA "hydrogl020" CLASS STYLE COLOR 0 0 0 END END END END Result Test B1: --------------- D:\ms4w\apps\maps\data\test\hydrogm020>shp2img -m d:\ms4w\apps\maps\data\test\hydrogm020\b1.map -o D:\ms4w\apps\maps\data\test\hydrogm020\b1.png -e -179.998245 17.674692 -60.0 71.398186 -t -l hydrogl020 -i PNG -all_debug 2 msOGRFileOpen(MySQL:maps,host=localhost,user=mapserver,password=mapserver)... OGROPen(MySQL:maps,host=localhost,user=mapserver,password=mapserver) msOGRLayerClose(MySQL:maps,host=localhost,user=mapserver,password=mapserver). msOGRFileClose(MySQL:maps,host=localhost,user=mapserver,password=mapserver,1). msDrawMap(): Layer 0 (hydrogl020), 4.172s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 4.188s --------------------------- --------- TEST B2 --------- --------------------------- OGR MySQL Map with data access in expression MAP NAME "US RIVERS" SIZE 800 600 IMAGETYPE PNG EXTENT -179.998245 17.674692 179.983139 71.398186 PROJECTION "init=epsg:4269" END LAYER NAME "hydrogl020" STATUS OFF TYPE LINE CONNECTIONTYPE OGR CONNECTION "MySQL:maps,host=localhost,user=mapserver,password=mapserver" DATA "hydrogl020" CLASS EXPRESSION([F_CODE] = 4) STYLE COLOR 0 0 0 END END CLASS STYLE COLOR 255 0 0 END END END END Result Test B2: --------------- D:\ms4w\apps\maps\data\test\hydrogm020>shp2img -m d:\ms4w\apps\maps\data\test\hydrogm020\b2.map -o D:\ms4w\apps\maps\data\test\hydrogm020\b2.png -e -179.998245 17.674692 -60.0 71.398186 -t -l hydrogl020 -i PNG -all_debug 2 msOGRFileOpen(MySQL:maps,host=localhost,user=mapserver,password=mapserver)... OGROPen(MySQL:maps,host=localhost,user=mapserver,password=mapserver) msOGRLayerClose(MySQL:maps,host=localhost,user=mapserver,password=mapserver). msOGRFileClose(MySQL:maps,host=localhost,user=mapserver,password=mapserver,1). msDrawMap(): Layer 0 (hydrogl020), 4.766s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 4.766s --------------------------- --------- TEST B3 --------- --------------------------- OGR MySQL Map with data access for labeling MAP NAME "US RIVERS" SIZE 800 600 IMAGETYPE PNG EXTENT -179.998245 17.674692 179.983139 71.398186 PROJECTION "init=epsg:4269" END LAYER NAME "hydrogl020" STATUS OFF TYPE LINE CONNECTIONTYPE OGR CONNECTION "MySQL:maps,host=localhost,user=mapserver,password=mapserver" DATA "hydrogl020" LABELITEM "STATE" CLASS STYLE COLOR 0 0 0 END LABEL COLOR 51 51 51 END END END END Result Test B3: --------------- D:\ms4w\apps\maps\data\test\hydrogm020>shp2img -m d:\ms4w\apps\maps\data\test\hydrogm020\b3.map -o D:\ms4w\apps\maps\data\test\hydrogm020\b3.png -e -179.998245 17.674692 -60.0 71.398186 -t -l hydrogl020 -i PNG -all_debug 2 msOGRFileOpen(MySQL:maps,host=localhost,user=mapserver,password=mapserver)... OGROPen(MySQL:maps,host=localhost,user=mapserver,password=mapserver) msOGRLayerClose(MySQL:maps,host=localhost,user=mapserver,password=mapserver). msOGRFileClose(MySQL:maps,host=localhost,user=mapserver,password=mapserver,1). msDrawMap(): Layer 0 (hydrogl020), 83.361s msDrawMap(): Drawing Label Cache, 0.781s msDrawMap() total time: 84.142s So, I think that MySQL doesn't solve the question, it seems to be a labeling issue. Could it be so hard to render the labels? I repeated the A3 and B3 tests including FORCE ON in the LABEL object to avoid MapServer to calculate anything about lengths, the result was the same. How is it possible? I don't know if this is normal MapServer behavior and the cost of render labels is so high! Thank you very much in advance for your answers Sergio 2008/2/22, Desarrollo Desarrollo : > > Thank you very much for your answer, > > Therefore, Should I think that Shapefiles / DBF data is not suitable for > MapServer if the number of features in the shapefile is a "big" number like > 473815 line strings in the Streets.shp? I've tried with MajHwys.shp > (35295 linestrings features) labeling and using expressions and works ok. > Streets.shp with its 473815 linestrings is rendered fast if there is not > DBF access (not labeling neither expressions), but when DBF access is needed > Mapservers hangs up! > Will MySQL spatial data increase the speed and number of features that > MapServer can manage? > > Best regards > > > 2008/2/21, Bart van den Eijnden (OSGIS) : > > > > It is because Mapserver cannot use any attribute indexes on the DBF. > > > > Put your shapefile in a spatial database like PostGIS I would suggest > > and > > create attribute indexes. > > > > Best regards, > > Bart > > > > -- > > Bart van den Eijnden > > OSGIS, Open Source GIS > > http://www.osgis.nl > > > > > > --------- Oorspronkelijk bericht -------- > > Van: Paul Spencer > > Naar: Desarrollo Desarrollo > > Cc: mapserver-users at lists.osgeo.org > > Onderwerp: Re: [mapserver-users] MapServer consuming 100% CPU > > Datum: 21/02/08 11:09 > > > > > > > See: > > > > > > http://mapserver.gis.umn.edu/docs/howto/mapfiletuning > > > http://mapserver.gis.umn.edu/docs/howto/optimizevector > > > http://mapserver.gis.umn.edu/docs/howto/tileindex > > > > > > Cheers > > > > > > Paul > > > > > > On 21-Feb-08, at 2:56 AM, Desarrollo Desarrollo wrote: > > > > > > > > > Hi, > > > > > > > > I am developing an application with MapServer v2.2.7 with > > > > Apache on Windows XP, but I have a serious problem, below I > > > > describe it: > > > > > > > > Using Navteq demo maps from Paris, the Streets.shp have around > > > > 500000 line strings features, when mapserver renders the layer > > > > without using DBF data (only draw lines) everything is OK and > > fast, > > > > > > but when mapserver needs to access to the DBF to render labels or > > > > use expressions to filter data, mapserver starts to consuming > > 100% > > > > CPU and nothing is rendered after to spends a long time. > > > > > > > > Using Teleatlas demo maps for a medium city of Spain, the > > Street.shp > > > > > > with around 11000 line strings features doesn't show any trouble > > and > > > > > > mapserver renders the images OK and fast even accessing to DBF > > to > > > > render labels > > > > > > > > Could somebody help me with this problem? Why does it happen? How > > do > > > > > > I solve it? > > > > > > > > > > > > Thank you very much. > > > > _______________________________________________ > > > > mapserver-users mailing list > > > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > __________________________________________ > > > > > > Paul Spencer > > > Chief Technology Officer > > > DM Solutions Group Inc > > > http://www.dmsolutions.ca/ > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From maurerj at nsidc.org Mon Feb 25 06:37:29 2008 From: maurerj at nsidc.org (John Maurer) Date: Mon, 25 Feb 2008 07:37:29 -0700 Subject: [mapserver-users] [scale] template substitution string invalid Message-ID: <47C2D2A9.2030106@nsidc.org> Hi, I read on the MapServer Web site in the "Template File Reference" page at: http://mapserver.gis.umn.edu/docs/reference/templatereference/templatereference/view that you can use "[scale]" in your HTML template to enable MapServer to do a template substitution for the denominator of the scale of the currently displayed map, as in the following example: Scale = 1:[scale] However, the scale that is reported is obviously wrong in every case that I've tried. As I have read elsewhere on this user list, the fundamental problem is that using scale ratios (e.g. 1:5015) to express the scale of digital maps is meaningless unless you can also specify or control the resolution of the output device (screen or printer). Since MapServer has no knowledge of the resolution of the user's screen, this [scale] parameter is only useful for the developer who needs to set min or max scale parameters in the map file but not useful for the end user and is in fact misleading for the end user. Or am I missing something? If this is correct, then the "Template File Reference" should be updated accordingly. I also read somewhere on this user list that MapServer assumes a default 72 dpi screen resolution, which would also be good to mention in this "Template File Reference." Lastly, it's recommended to display the [scale] parameter in the "Beginning MapServer" book (p. 72), so there seems to be some confusion surrounding the use of this parameter. Thanks for any help. Cheers, John Maurer -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj ------------------------------------ "Without geography, you're nowhere!" From ritesh.linux at gmail.com Mon Feb 25 06:39:53 2008 From: ritesh.linux at gmail.com (ritesh ambastha) Date: Mon, 25 Feb 2008 20:09:53 +0530 Subject: [mapserver-users] MapServer consuming 100% CPU In-Reply-To: References: Message-ID: <135fc07d0802250639k7e6ed7edqcae42f259ebebdbc@mail.gmail.com> Hey, I am confident about PostGIS which can solve your problem. Do give it a try. Regards, Ritesh Ambastha On 2/25/08, Desarrollo Desarrollo wrote: > > Hello Bart! > Following your advice, I have installed MySQL and downloaded one public > access shapefile, to let you (and everybody who wants to try this test) > reproduce the results > > > Download it from > http://edcftp.cr.usgs.gov/pub/data/nationalatlas/hydrogm020.tar.gz that > have 2 shapefiles : lines (rivers) and polygons (lakes). I'm going to use > hydrogl020.shp : > > D:\ms4w\apps\maps\data\test\hydrogm020>ogrinfo -so -al hydrogl020.shp > INFO: Open of `hydrogl020.shp' > using driver `ESRI Shapefile' successful. > > Layer name: hydrogl020 > Geometry: Line String > Feature Count: 76975 > Extent: (-179.998245, 17.674692) - (179.983139, 71.398186) > Layer SRS WKT: > (unknown) > FNODE_: Integer (9.0) > TNODE_: Integer (9.0) > LPOLY_: Integer (9.0) > RPOLY_: Integer (9.0) > LENGTH: Real (13.11) > HYDROGM020: Integer (9.0) > FEATURE: String (80.0) > F_CODE: Integer (2.0) > NAME: String (80.0) > STATE: String (5.0) > STATE_FIPS: String (5.0) > NAME_UC: String (80.0) > > Let's create qix index: > D:\ms4w\apps\maps\data\test\hydrogm020>shptree hydrogl020 > creating index of new LSB format > > > I'm going to test the shapefile, then I will convert it to a MySQL table > and I will do the tests again > > > SHAPEFILE > 3 tests, let's use shp2img that skips apache, http requests, etc. Only one > request in the command line. > > a1) No data access > a2) Data access, only used in expressions to change the line color, no > labeling > a3) Data access only used for labeling > > > > --------------------------- > --------- TEST A1 --------- > --------------------------- > Shapefile Map without data access > > MAP > NAME "US RIVERS" > SIZE 800 600 > IMAGETYPE PNG > EXTENT -179.998245 17.674692 179.983139 71.398186 > > > PROJECTION > "init=epsg:4269" > END > > LAYER > NAME "hydrogl020" > STATUS OFF > TYPE LINE > DATA "hydrogl020" > CLASS > STYLE > COLOR 0 0 0 > END > END > END > END > > Result Test A1: > -------------- > D:\ms4w\apps\maps\data\test\hydrogm020>shp2img -m > d:\ms4w\apps\maps\data\test\hydrogm020\a1.map -o > D:\ms4w\apps\maps\data\test\hydrogm020\a1.png -e -179.998245 17.674692 - > 60.0 71.398186 -t -l hydrogl020 -i PNG -all_debug 2 > msDrawMap(): Layer 0 (hydrogl020), 1.328s > msDrawMap(): Drawing Label Cache, 0.000s > msDrawMap() total time: 1.328s > > > > --------------------------- > --------- TEST A2 --------- > --------------------------- > Shapefile Map with data access in expression > > MAP > NAME "US RIVERS" > SIZE 800 600 > IMAGETYPE PNG > EXTENT -179.998245 17.674692 179.983139 71.398186 > > > PROJECTION > "init=epsg:4269" > END > > LAYER > NAME "hydrogl020" > STATUS OFF > TYPE LINE > DATA "hydrogl020" > CLASS > EXPRESSION([F_CODE] = 4) > STYLE > COLOR 0 0 0 > END > END > CLASS > STYLE > COLOR 255 0 0 > END > END > END > END > > > Result Test A2: > --------------- > D:\ms4w\apps\maps\data\test\hydrogm020>shp2img -m > d:\ms4w\apps\maps\data\test\hydrogm020\a2.map -o > D:\ms4w\apps\maps\data\test\hydrogm020\a2.png -e -179.998245 17.674692 - > 60.0 71.398186 -t -l hydrogl020 -i PNG -all_debug 2 > msDrawMap(): Layer 0 (hydrogl020), 6.250s > msDrawMap(): Drawing Label Cache, 0.000s > msDrawMap() total time: 6.250s > > > --------------------------- > --------- TEST A3 --------- > --------------------------- > Shapefile Map with data access > > > MAP > NAME "US RIVERS" > SIZE 800 600 > IMAGETYPE PNG > EXTENT -179.998245 17.674692 179.983139 71.398186 > > > PROJECTION > "init=epsg:4269" > END > > LAYER > NAME "hydrogl020" > STATUS OFF > TYPE LINE > DATA "hydrogl020" > LABELITEM "STATE" > CLASS > STYLE > COLOR 0 0 0 > END > LABEL > COLOR 51 51 51 > END > END > END > END > > Result Test A3: > -------------- > D:\ms4w\apps\maps\data\test\hydrogm020>shp2img -m > d:\ms4w\apps\maps\data\test\hydrogm020\a3.map -o > D:\ms4w\apps\maps\data\test\hydrogm020\a3.png -e -179.998245 17.674692 - > 60.0 71.398186 -t -l hydrogl020 -i PNG -all_debug 2 > msDrawMap(): Layer 0 (hydrogl020), 83.203s > msDrawMap(): Drawing Label Cache, 0.703s > msDrawMap() total time: 83.906s > > > > Ok, a2 shows that using F_CODE to determine the color of the line is not > really very hard to mapserver but a3 shows that labeling is very hard to > MapServer. > It's time to repeat the tests with MySQL Spatial Data. > Export shapefile to MySQL: > ---------------- > D:\ms4w\apps\maps\data\test\hydrogm020>ogr2ogr -f MySQL > MySQL:maps,host=localhost,user=mapserver,password=mapserver hydrogl020.shp-nln hydrogl020 -update -overwrite -lco engine=MYISAM > > > Repeat the 3 tests > > --------------------------- > --------- TEST B1 --------- > --------------------------- > OGR MySQL Map without data access > > > MAP > NAME "US RIVERS" > SIZE 800 600 > IMAGETYPE PNG > EXTENT -179.998245 17.674692 179.983139 71.398186 > > > PROJECTION > "init=epsg:4269" > END > > LAYER > NAME "hydrogl020" > STATUS OFF > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION > "MySQL:maps,host=localhost,user=mapserver,password=mapserver" > DATA "hydrogl020" > CLASS > STYLE > COLOR 0 0 0 > END > END > END > END > > > Result Test B1: > --------------- > D:\ms4w\apps\maps\data\test\hydrogm020>shp2img -m > d:\ms4w\apps\maps\data\test\hydrogm020\b1.map -o > D:\ms4w\apps\maps\data\test\hydrogm020\b1.png -e -179.998245 17.674692 - > 60.0 71.398186 -t -l hydrogl020 -i PNG -all_debug 2 > > msOGRFileOpen(MySQL:maps,host=localhost,user=mapserver,password=mapserver)... > OGROPen(MySQL:maps,host=localhost,user=mapserver,password=mapserver) > > msOGRLayerClose(MySQL:maps,host=localhost,user=mapserver,password=mapserver). > > msOGRFileClose(MySQL:maps,host=localhost,user=mapserver,password=mapserver,1). > msDrawMap(): Layer 0 (hydrogl020), 4.172s > msDrawMap(): Drawing Label Cache, 0.000s > msDrawMap() total time: 4.188s > > > --------------------------- > --------- TEST B2 --------- > --------------------------- > OGR MySQL Map with data access in expression > > MAP > NAME "US RIVERS" > SIZE 800 600 > IMAGETYPE PNG > EXTENT -179.998245 17.674692 179.983139 71.398186 > > > PROJECTION > "init=epsg:4269" > END > > LAYER > NAME "hydrogl020" > STATUS OFF > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION > "MySQL:maps,host=localhost,user=mapserver,password=mapserver" > DATA "hydrogl020" > CLASS > EXPRESSION([F_CODE] = 4) > STYLE > COLOR 0 0 0 > END > END > CLASS > STYLE > COLOR 255 0 0 > END > END > END > END > > > Result Test B2: > --------------- > D:\ms4w\apps\maps\data\test\hydrogm020>shp2img -m > d:\ms4w\apps\maps\data\test\hydrogm020\b2.map -o > D:\ms4w\apps\maps\data\test\hydrogm020\b2.png -e -179.998245 17.674692 - > 60.0 71.398186 -t -l hydrogl020 -i PNG -all_debug 2 > > msOGRFileOpen(MySQL:maps,host=localhost,user=mapserver,password=mapserver)... > OGROPen(MySQL:maps,host=localhost,user=mapserver,password=mapserver) > > msOGRLayerClose(MySQL:maps,host=localhost,user=mapserver,password=mapserver). > > msOGRFileClose(MySQL:maps,host=localhost,user=mapserver,password=mapserver,1). > msDrawMap(): Layer 0 (hydrogl020), 4.766s > msDrawMap(): Drawing Label Cache, 0.000s > msDrawMap() total time: 4.766s > > > > --------------------------- > --------- TEST B3 --------- > --------------------------- > OGR MySQL Map with data access for labeling > > MAP > NAME "US RIVERS" > SIZE 800 600 > IMAGETYPE PNG > EXTENT -179.998245 17.674692 179.983139 71.398186 > > > PROJECTION > "init=epsg:4269" > END > > LAYER > NAME "hydrogl020" > STATUS OFF > TYPE LINE > CONNECTIONTYPE OGR > CONNECTION > "MySQL:maps,host=localhost,user=mapserver,password=mapserver" > DATA "hydrogl020" > LABELITEM "STATE" > CLASS > STYLE > COLOR 0 0 0 > END > LABEL > COLOR 51 51 51 > END > END > END > END > > > Result Test B3: > --------------- > D:\ms4w\apps\maps\data\test\hydrogm020>shp2img -m > d:\ms4w\apps\maps\data\test\hydrogm020\b3.map -o > D:\ms4w\apps\maps\data\test\hydrogm020\b3.png -e -179.998245 17.674692 - > 60.0 71.398186 -t -l hydrogl020 -i PNG -all_debug 2 > > msOGRFileOpen(MySQL:maps,host=localhost,user=mapserver,password=mapserver)... > OGROPen(MySQL:maps,host=localhost,user=mapserver,password=mapserver) > > msOGRLayerClose(MySQL:maps,host=localhost,user=mapserver,password=mapserver). > > msOGRFileClose(MySQL:maps,host=localhost,user=mapserver,password=mapserver,1). > msDrawMap(): Layer 0 (hydrogl020), 83.361s > msDrawMap(): Drawing Label Cache, 0.781s > msDrawMap() total time: 84.142s > > > > So, I think that MySQL doesn't solve the question, it seems to be a > labeling issue. Could it be so hard to render the labels? I repeated the A3 > and B3 tests including FORCE ON in the LABEL object > to avoid MapServer to calculate anything about lengths, the result was the > same. How is it possible? > I don't know if this is normal MapServer behavior and the cost of render > labels is so high! > > Thank you very much in advance for your answers > Sergio > > > > > 2008/2/22, Desarrollo Desarrollo : > > > > Thank you very much for your answer, > > > > Therefore, Should I think that Shapefiles / DBF data is not suitable for > > MapServer if the number of features in the shapefile is a "big" number like > > 473815 line strings in the Streets.shp? I've tried with MajHwys.shp > > (35295 linestrings features) labeling and using expressions and works > > ok. Streets.shp with its 473815 linestrings is rendered fast if there is > > not DBF access (not labeling neither expressions), but when DBF access is > > needed Mapservers hangs up! > > Will MySQL spatial data increase the speed and number of features that > > MapServer can manage? > > > > Best regards > > > > > > 2008/2/21, Bart van den Eijnden (OSGIS) : > > > > > > It is because Mapserver cannot use any attribute indexes on the DBF. > > > > > > Put your shapefile in a spatial database like PostGIS I would suggest > > > and > > > create attribute indexes. > > > > > > Best regards, > > > Bart > > > > > > -- > > > Bart van den Eijnden > > > OSGIS, Open Source GIS > > > http://www.osgis.nl > > > > > > > > > --------- Oorspronkelijk bericht -------- > > > Van: Paul Spencer > > > Naar: Desarrollo Desarrollo > > > Cc: mapserver-users at lists.osgeo.org > > > Onderwerp: Re: [mapserver-users] MapServer consuming 100% CPU > > > Datum: 21/02/08 11:09 > > > > > > > > > > See: > > > > > > > > http://mapserver.gis.umn.edu/docs/howto/mapfiletuning > > > > http://mapserver.gis.umn.edu/docs/howto/optimizevector > > > > http://mapserver.gis.umn.edu/docs/howto/tileindex > > > > > > > > Cheers > > > > > > > > Paul > > > > > > > > On 21-Feb-08, at 2:56 AM, Desarrollo Desarrollo wrote: > > > > > > > > > > > > Hi, > > > > > > > > > > I am developing an application with MapServer v2.2.7 with > > > > > Apache on Windows XP, but I have a serious problem, below I > > > > > describe it: > > > > > > > > > > Using Navteq demo maps from Paris, the Streets.shp have around > > > > > 500000 line strings features, when mapserver renders the layer > > > > > without using DBF data (only draw lines) everything is OK and > > > fast, > > > > > > > > but when mapserver needs to access to the DBF to render labels > > > or > > > > > use expressions to filter data, mapserver starts to consuming > > > 100% > > > > > CPU and nothing is rendered after to spends a long time. > > > > > > > > > > Using Teleatlas demo maps for a medium city of Spain, the > > > Street.shp > > > > > > > > with around 11000 line strings features doesn't show any > > > trouble and > > > > > > > > mapserver renders the images OK and fast even accessing to DBF > > > to > > > > > render labels > > > > > > > > > > Could somebody help me with this problem? Why does it happen? > > > How do > > > > > > > > I solve it? > > > > > > > > > > > > > > > Thank you very much. > > > > > _______________________________________________ > > > > > mapserver-users mailing list > > > > > mapserver-users at lists.osgeo.org > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > > > > > __________________________________________ > > > > > > > > Paul Spencer > > > > Chief Technology Officer > > > > DM Solutions Group Inc > > > > http://www.dmsolutions.ca/ > > > > > > > > _______________________________________________ > > > > mapserver-users mailing list > > > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Ritesh Ambastha, Project Manager Mobiance Technologies, Bangalore +91-80-41264755 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Mon Feb 25 08:18:17 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 25 Feb 2008 10:18:17 -0600 Subject: [mapserver-users] [scale] template substitution string invalid Message-ID: <47C295EA0200008F00014F26@co5.dnr.state.mn.us> The [scale] is basically useless for user consumption for the reasons you mention so I don't use it. The only reason it exists is for development use so that you, the developer, can see what scale mapserver is computing for a given map. That helps tune the minxscale/maxscale (denom) parameters. Steve >>> John Maurer 02/25/08 8:37 AM >>> Hi, I read on the MapServer Web site in the "Template File Reference" page at: http://mapserver.gis.umn.edu/docs/reference/templatereference/templatereference/view that you can use "[scale]" in your HTML template to enable MapServer to do a template substitution for the denominator of the scale of the currently displayed map, as in the following example: Scale = 1:[scale] However, the scale that is reported is obviously wrong in every case that I've tried. As I have read elsewhere on this user list, the fundamental problem is that using scale ratios (e.g. 1:5015) to express the scale of digital maps is meaningless unless you can also specify or control the resolution of the output device (screen or printer). Since MapServer has no knowledge of the resolution of the user's screen, this [scale] parameter is only useful for the developer who needs to set min or max scale parameters in the map file but not useful for the end user and is in fact misleading for the end user. Or am I missing something? If this is correct, then the "Template File Reference" should be updated accordingly. I also read somewhere on this user list that MapServer assumes a default 72 dpi screen resolution, which would also be good to mention in this "Template File Reference." Lastly, it's recommended to display the [scale] parameter in the "Beginning MapServer" book (p. 72), so there seems to be some confusion surrounding the use of this parameter. Thanks for any help. Cheers, John Maurer -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj ------------------------------------ "Without geography, you're nowhere!" _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From DMAM at enresa.es Mon Feb 25 08:43:56 2008 From: DMAM at enresa.es (=?iso-8859-1?Q?Mart=EDnez_Mart=EDnez=2C_Dionisio?=) Date: Mon, 25 Feb 2008 17:43:56 +0100 Subject: [mapserver-users] Painting problems Message-ID: <28BC212AD744D047ABE741AEA96A6BA90281FEB3@correo.enresa.es> Hi All, I want to paint a line with with a truetype font symbol like as arrow for showing the same direction way. Apparently the problem is when the line turns to the west and then the direction way changes without the original vector changes its sense. I use 4.6 mapserver version under Linux Fedora. Has Anybody had the same problem?. I send the graphic result. Thank you in advance. Dionisio Mart?nez Departamento Ingenier?a de Suelos Direcci?n Ingenier?a de Residuos y Combustible Empresa Nacional de Residuos Radiactivos ENRESA C/ Emilio Vargas,7 28043 MADRID ESPA?A Tno. 34 91 566 8213 Fax. 34 91 566 8165 e-mail dmam at enresa.es ----------------------------------------------ADVERTENCIA LEGAL------------------------ Le informamos, como destinatario de este mensaje, que el correo electr?nico y las comunicaciones por medio de Internet no permiten asegurar ni garantizar la confidencialidad de los mensajes transmitidos, as? como tampoco su integridad o su correcta recepci?n, por lo que el emisor no asume responsabilidad alguna por tales circunstancias. Si no consintiese en la utilizaci?n del correo electr?nico o de las comunicaciones v?a Internet le rogamos nos lo comunique y ponga en nuestro conocimiento de manera inmediata. Este mensaje va dirigido, de manera exclusiva, a su destinatario y contiene informaci?n confidencial y sujeta al secreto profesional, cuya divulgaci?n no est? permitida por la ley. En caso de haber recibido este mensaje por error, le rogamos que, de forma inmediata, nos lo comunique mediante correo electr?nico remitido a nuestra atenci?n o a trav?s del tel?fono anterior o del (+ 34 91 566 81 00) y proceda a su eliminaci?n, as? como a la de cualquier documento adjunto al mismo. Asimismo, le comunicamos que la distribuci?n, copia o utilizaci?n de este mensaje, o de cualquier documento adjunto al mismo, cualquiera que fuera su finalidad, est?n prohibidas por la ley. ----------------------------------PRIVILEGED AND CONFIDENTIAL---------------- We hereby inform you, as addressee of this message, that e-mail and Internet do not guarantee the confidentiality, nor the completeness or proper reception of the messages sent and, thus, the sender does not assume any liability for those circumstances. Should you not agree to the use of e-mail or to communications via Internet, you are kindly requested to notify us immediately. This message is intended exclusively for the person to whom it is addressed and contains privileged and confidential information protected from disclosure by law. If you are not the addressee indicated in this message, you should immediately delete it and any attachments and notify the sender by reply e-mail or by phone to above number or (+ 34 91 566 81 00). In such case, you are hereby notified that any dissemination, distribution, copying or use of this message or any attachments, for any purpose, is strictly prohibited by law. -------------- next part -------------- An HTML attachment was scrubbed... URL: From maurerj at nsidc.org Mon Feb 25 10:52:45 2008 From: maurerj at nsidc.org (John Maurer) Date: Mon, 25 Feb 2008 11:52:45 -0700 Subject: [mapserver-users] [scale] template substitution string invalid In-Reply-To: <47C295EA0200008F00014F26@co5.dnr.state.mn.us> References: <47C295EA0200008F00014F26@co5.dnr.state.mn.us> Message-ID: <47C30E7D.6000906@nsidc.org> Steve Lime wrote: > The [scale] is basically useless for user consumption for the reasons you mention > Thanks for the confirmation, Steve. I think it would be helpful for future developers if somebody at MapServer would mention this in the relevant online documentation. It would have saved me some time and frustration. The online documentation is usually great from my experience so far, except in this one instance. Cheers, John -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj ------------------------------------ "Without geography, you're nowhere!" From dmorissette at mapgears.com Mon Feb 25 11:34:50 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 25 Feb 2008 14:34:50 -0500 Subject: [mapserver-users] [scale] template substitution string invalid In-Reply-To: <47C30E7D.6000906@nsidc.org> References: <47C295EA0200008F00014F26@co5.dnr.state.mn.us> <47C30E7D.6000906@nsidc.org> Message-ID: <47C3185A.9030704@mapgears.com> John Maurer wrote: > Steve Lime wrote: >> The [scale] is basically useless for user consumption for the reasons >> you mention >> > Thanks for the confirmation, Steve. I think it would be helpful for > future developers if somebody at MapServer would mention this in the > relevant online documentation. It would have saved me some time and > frustration. The online documentation is usually great from my > experience so far, except in this one instance. > Cheers, John, Please feel free to add a comment about this at the bottom of the relevant docs page. On the next round of docs updates the maintainer should catch your comment and update the text of the docs accordingly, and in the meantime your comment in the docs will help other users who may run into the same thing as you. Daniel -- Daniel Morissette http://www.mapgears.com/ From maurerj at nsidc.org Mon Feb 25 12:21:33 2008 From: maurerj at nsidc.org (John Maurer) Date: Mon, 25 Feb 2008 13:21:33 -0700 Subject: [mapserver-users] [scale] template substitution string invalid In-Reply-To: <47C3185A.9030704@mapgears.com> References: <47C295EA0200008F00014F26@co5.dnr.state.mn.us> <47C30E7D.6000906@nsidc.org> <47C3185A.9030704@mapgears.com> Message-ID: <47C3234D.1070005@nsidc.org> > Please feel free to add a comment about this at the bottom of the > relevant docs page. On the next round of docs updates the maintainer > should catch your comment and update the text of the docs accordingly, > and in the meantime your comment in the docs will help other users who > may run into the same thing as you. Hi Daniel, Thanks for the suggestion. I was not previously aware of this feature on the MapServer Web site. Just now, I registered on the site and submitted a comment at the bottom of the "Template File Reference" site to warn future developers about (im)proper of the [scale] parameter: http://mapserver.gis.umn.edu/docs/reference/templatereference/templatereference/view Cheers, John -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj ------------------------------------ "Without geography, you're nowhere!" From kunal.malik81 at gmail.com Mon Feb 25 21:06:26 2008 From: kunal.malik81 at gmail.com (Kunal Malik) Date: Tue, 26 Feb 2008 10:36:26 +0530 Subject: [mapserver-users] Query Regrading Map Srver & Grass, Message-ID: NOw i want to start with the development using the grass tools. HI!! How could i use Grass in conjuction with the Map Server.???? I want to develop the client-server architecture, I want the map server should run on Server & n number of Client can request them .. Since I want to start with the developemt ,could u recommend any book for this..I am not able to find any books,,the books avaliable on the internet have the limited preview and they are not complete. could u please tell the following tasks could be accomplished in grass ?? 1.Import & Export Map(TF,GeoTif,IMG,DTED,SHP,BMP,DVD,DGN). 2.)Registration of Map-->Datum Used is wgs84. 3)Raster to Vector Conversion & Vice Versa 4) Create Layer 5)Grouping & Separation of Layers. 6) Hide/Unhide Layers. 7)Edit/Delete layers, 8)Stiching of Map. Please help me to resolve these queries, Thanks in Advance. -- Thanks & Regards Kunal Malik 09871147561 -------------- next part -------------- An HTML attachment was scrubbed... URL: From kunal.malik81 at gmail.com Mon Feb 25 22:13:14 2008 From: kunal.malik81 at gmail.com (Kunal Malik) Date: Tue, 26 Feb 2008 11:43:14 +0530 Subject: [mapserver-users] Re: Query Regrading Map Srver & Grass, In-Reply-To: References: Message-ID: could u suggest docs for starting the development with grass & Mapserver,,,,, On 2/26/08, Kunal Malik wrote: > > NOw i want to start with the development using the grass tools. > > HI!! > How could i use Grass in conjuction with the Map Server.???? > I want to develop the client-server architecture, > > > > I want the map server should run on Server & n number of Client can > request them .. > Since I want to start with the developemt ,could u recommend any book for > this..I am not able to find any books,,the books avaliable on the internet > have the limited preview and they are not complete. > > could u please tell the following tasks could be accomplished in grass ?? > > 1.Import & Export Map(TF,GeoTif,IMG,DTED,SHP,BMP,DVD,DGN). > 2.)Registration of Map-->Datum Used is wgs84. > 3)Raster to Vector Conversion & Vice Versa > 4) Create Layer > 5)Grouping & Separation of Layers. > 6) Hide/Unhide Layers. > 7)Edit/Delete layers, > 8)Stiching of Map. > > > Please help me to resolve these queries, > Thanks in Advance. > > -- > Thanks & Regards > > Kunal Malik > 09871147561 -- Thanks & Regards Kunal Malik 09871147561 -------------- next part -------------- An HTML attachment was scrubbed... URL: From kunal.malik81 at gmail.com Mon Feb 25 22:21:35 2008 From: kunal.malik81 at gmail.com (Kunal Malik) Date: Tue, 26 Feb 2008 11:51:35 +0530 Subject: [mapserver-users] Sample Program To Start Developemnt in Grass Message-ID: Hi I need to start the development in Grass/MapServer.. I would like to make a sample program for importing & displaying of Map(Raster & vector).. could u suggest from where i could get the neccesary API's or sample code .. Recomment the docs. -- Thanks & Regards Kunal Malik 09871147561 -------------- next part -------------- An HTML attachment was scrubbed... URL: From kunal.malik81 at gmail.com Mon Feb 25 22:25:20 2008 From: kunal.malik81 at gmail.com (Kunal Malik) Date: Tue, 26 Feb 2008 11:55:20 +0530 Subject: [mapserver-users] Grass Compatibility withOpenGL Message-ID: Hi! I need to develop the code that display the Raster & Vector Image on OpenGL enviornment. I want to know how Grass/mapserver works with OpenGL?????? from where i could get the sample program or API for Application on Grass/Mapserver + OpenGL .?????????? -- Thanks & Regards Kunal Malik 09871147561 -------------- next part -------------- An HTML attachment was scrubbed... URL: From kunal.malik81 at gmail.com Mon Feb 25 23:38:59 2008 From: kunal.malik81 at gmail.com (Kunal Malik) Date: Tue, 26 Feb 2008 13:08:59 +0530 Subject: [mapserver-users] Re: Grass Compatibility withOpenGL In-Reply-To: <1204011050.8133.9.camel@kocour> References: <1204011050.8133.9.camel@kocour> Message-ID: HI, Jachym ..would u tell me how u came to know this,,have u worked on this,,or read from somewhere ..i want to know it beacause i am working on grass tool,,& i have to integrate it with OpenGl Display..will u eleborate more on this. On 2/26/08, Jachym Cepicky wrote: > > Hi, > grass does not work with opengl (yet). > > jachym > > > Kunal Malik p??e v ?t 26. 02. 2008 v 11:55 +0530: > > > > > Hi! > > I need to develop the code that display the Raster & Vector Image on > > OpenGL enviornment. > > I want to know how Grass/mapserver works with OpenGL?????? > > from where i could get the sample program or API for Application on > > Grass/Mapserver + OpenGL .?????????? > > > > -- > > Thanks & Regards > > > > Kunal Malik > > 09871147561 > > -- > Jachym Cepicky > e-mail: jachym.cepicky gmail com > URL: http://les-ejk.cz > GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub > > -- Thanks & Regards Kunal Malik 09871147561 -------------- next part -------------- An HTML attachment was scrubbed... URL: From juozas.urbonas at teltonika.lt Tue Feb 26 01:12:51 2008 From: juozas.urbonas at teltonika.lt (Juozas Urbonas) Date: Tue, 26 Feb 2008 11:12:51 +0200 Subject: [mapserver-users] Image shrinking problem Message-ID: Hi All, When I'm requesting some image using WMS, my overridden IRasterIO gets called with nBufXSize and nBufYSize nearly double the size I'm requesting in WMS call and in the process image returned by WMS gets shrinked. What may cause this problem? I'm expecting nBufXSize and nBufYSize to be approximately the same size as in WMS request. Thanks for any help. Juozas. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kunal.malik81 at gmail.com Tue Feb 26 03:26:53 2008 From: kunal.malik81 at gmail.com (Kunal Malik) Date: Tue, 26 Feb 2008 16:56:53 +0530 Subject: [mapserver-users] problem regarding the display of map In-Reply-To: <4b3f70c70802252112u5db5ea1fj998340a36d0cefb2@mail.gmail.com> References: <4b3f70c70802250349j1b21e41m3d93e6ee7adc0bd3@mail.gmail.com> <4b3f70c70802252112u5db5ea1fj998340a36d0cefb2@mail.gmail.com> Message-ID: HI! i convert the raster map to vector map and the name of new vect map is map_tf_v but when i use the display command i am getting following error g.region vect=map_tf_v ERROR: Cannot open old vector map_tf_v at PERMANENT on level 2 d.vect map=tgr_shp The bounding box of the map is outside the current region, nothing drawn. how can i display the map...??? Thanks & Regards Kunal Malik 09871147561 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmashford at gmail.com Tue Feb 26 03:49:02 2008 From: tmashford at gmail.com (Timothy Mashford) Date: Tue, 26 Feb 2008 22:49:02 +1100 Subject: [mapserver-users] Advice for MapServer project Message-ID: <22ed3890802260349i3b54e953yb5a6d2c8023edb3b@mail.gmail.com> Hi list, I am after some advice on how best to achieve a MapServer project. I am a GIS professional (mainly MapInfo Pro), and I do a lot of MapBasic programming, however I have limited experience with Python, JavaScript, Java, VB and C. My project is a Crime Mapping system where the user first selects a Date Range of interest, and then views several thematic layers (crime, traffic accidents etc) over standard base layers (roads, parks etc). It will also require an address search function for navigation. I am thinking that dbox.js would be a good interface, providing suitable pan/zoom/query functions + layer control. The crime data could be stored in PostGIS, also the address point data for searching. The base layers would be updated only occasionally, so could be stored as ShapeFiles for speedy rendering. And MapServer could be controlled with Python MapScript. So my question is: does all this sound suitable?? It will require me to spend a bit of time learning more Python, JavaScript and PostgreSQL, so I want to make sure I'm heading in the righ direction before I devote too much effort! Any advice would be very much appreciated. Tim Mashford. From David.Fawcett at state.mn.us Tue Feb 26 06:34:58 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 26 Feb 2008 08:34:58 -0600 Subject: [mapserver-users] Advice for MapServer project In-Reply-To: <22ed3890802260349i3b54e953yb5a6d2c8023edb3b@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBB20@s-sp22.pca.state.mn.us> Tim, If you plan to use a front end like dBox or OpenLayers, there is no need to use MapScript. They are designed to work with CGI MapServer. I would suggest focusing your learning on a javascript front-end and let CGI MapServer serve up the maps. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Timothy Mashford Sent: Tuesday, February 26, 2008 5:49 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Advice for MapServer project Hi list, I am after some advice on how best to achieve a MapServer project. I am a GIS professional (mainly MapInfo Pro), and I do a lot of MapBasic programming, however I have limited experience with Python, JavaScript, Java, VB and C. My project is a Crime Mapping system where the user first selects a Date Range of interest, and then views several thematic layers (crime, traffic accidents etc) over standard base layers (roads, parks etc). It will also require an address search function for navigation. I am thinking that dbox.js would be a good interface, providing suitable pan/zoom/query functions + layer control. The crime data could be stored in PostGIS, also the address point data for searching. The base layers would be updated only occasionally, so could be stored as ShapeFiles for speedy rendering. And MapServer could be controlled with Python MapScript. So my question is: does all this sound suitable?? It will require me to spend a bit of time learning more Python, JavaScript and PostgreSQL, so I want to make sure I'm heading in the righ direction before I devote too much effort! Any advice would be very much appreciated. Tim Mashford. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From roberto.bianconi at gmail.com Tue Feb 26 09:54:52 2008 From: roberto.bianconi at gmail.com (Roberto Bianconi) Date: Tue, 26 Feb 2008 18:54:52 +0100 Subject: [mapserver-users] Problems with embedded legend after upgrade to 5.0.2 (Perl MapScript) Message-ID: <29879c6d0802260954w25234da3w796d84cd8b10af64@mail.gmail.com> Hello, I have a Perl script where - with Mapscript - I first generate an image and then I embed it into a larger image, so that I can print on the right a legend for the emebedded image. Printing the legend on the right side is the last step, with these lines of code ($map is a mapObj): $map->{legend}->{position} = 2; $map->embedLegend($img); $map->drawLabelCache($img); $img->save($image_file); With older Mapserver versions it worked nicely and the legend was printed at the upper right. Now with version 5.0.2 the legend is always embedded on the upper LEFT corner, and the left half is missing. Is there any version change that might cause this behaviour with the above code lines ? Thank you for any hint. Roberto From roberto.bianconi at gmail.com Tue Feb 26 10:22:47 2008 From: roberto.bianconi at gmail.com (Roberto Bianconi) Date: Tue, 26 Feb 2008 19:22:47 +0100 Subject: [mapserver-users] Re: Problems with embedded legend after upgrade to 5.0.2 (Perl MapScript) In-Reply-To: <29879c6d0802260954w25234da3w796d84cd8b10af64@mail.gmail.com> References: <29879c6d0802260954w25234da3w796d84cd8b10af64@mail.gmail.com> Message-ID: <29879c6d0802261022j59209668s616b5ed649be83a2@mail.gmail.com> I did answer myself (at least now it works fine again), sorry: $map->{legend}->{position} = $mapscript::MS_UR; On Tue, Feb 26, 2008 at 6:54 PM, Roberto Bianconi wrote: > Hello, > > I have a Perl script where - with Mapscript - I first generate an > image and then I embed it into a > larger image, so that I can print on the right a legend for the emebedded image. > Printing the legend on the right side is the last step, with these > lines of code ($map is a mapObj): > > $map->{legend}->{position} = 2; > $map->embedLegend($img); > $map->drawLabelCache($img); > $img->save($image_file); > > With older Mapserver versions it worked nicely and the legend was > printed at the upper right. > Now with version 5.0.2 the legend is always embedded on the upper LEFT > corner, and the left half is missing. > Is there any version change that might cause this behaviour with the > above code lines ? > > Thank you for any hint. > Roberto > From mendes at gaveta.net Tue Feb 26 11:08:10 2008 From: mendes at gaveta.net (Pedro Miguel Garcia Mendes) Date: Tue, 26 Feb 2008 20:08:10 +0100 (CET) Subject: [mapserver-users] unscribe Message-ID: <30038.UloJVwVSGBU=.1204052890.squirrel@webmail.gaveta.net> unscribe mapserver-users END From bob.b at gritechnologies.com Tue Feb 26 11:20:28 2008 From: bob.b at gritechnologies.com (Bob Basques) Date: Tue, 26 Feb 2008 13:20:28 -0600 Subject: [mapserver-users] Advice for MapServer project In-Reply-To: <22ed3890802260349i3b54e953yb5a6d2c8023edb3b@mail.gmail.com> References: <22ed3890802260349i3b54e953yb5a6d2c8023edb3b@mail.gmail.com> Message-ID: <47C4667C.1020508@gritechnologies.com> Timothy, This is an excellent project for GeoMoose to act as the mapping engine for. It's precisely the sort of thing that the GeoMoose client framework was designed for. You can set up GeoMoose fairly quickly for the mapping aspects, and the overlay pieces can be added on with some custom work by yourself via additional services. I know the developers would love to see this type of project move forward, because it's come up a few times in discussions already, there's just not been a willing client participation in getting it going. I deally it would be nice to get a reusable system/service in place for something like this. The Overlay aspects could be done in a generic fashion for reuse, but these types of things tend to be very business specific when it comes to the reporting, so it's not something that has taken off (yet). Take a look at GeoMoose, it should reduce the overall effort once you get by the setup learning curve of MapServer and GeoMoose. bobb Timothy Mashford wrote: > Hi list, I am after some advice on how best to achieve a MapServer > project. I am a GIS professional (mainly MapInfo Pro), and I do a lot > of MapBasic programming, however I have limited experience with > Python, JavaScript, Java, VB and C. > > My project is a Crime Mapping system where the user first selects a > Date Range of interest, and then views several thematic layers (crime, > traffic accidents etc) over standard base layers (roads, parks etc). > It will also require an address search function for navigation. > > I am thinking that dbox.js would be a good interface, providing > suitable pan/zoom/query functions + layer control. The crime data > could be stored in PostGIS, also the address point data for searching. > The base layers would be updated only occasionally, so could be stored > as ShapeFiles for speedy rendering. And MapServer could be controlled > with Python MapScript. > > So my question is: does all this sound suitable?? It will require me > to spend a bit of time learning more Python, JavaScript and > PostgreSQL, so I want to make sure I'm heading in the righ direction > before I devote too much effort! > > Any advice would be very much appreciated. > > Tim Mashford. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From jmckenna at dmsolutions.ca Tue Feb 26 11:26:36 2008 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Tue, 26 Feb 2008 14:26:36 -0500 Subject: [mapserver-users] Advice for MapServer project In-Reply-To: <47C4667C.1020508@gritechnologies.com> References: <22ed3890802260349i3b54e953yb5a6d2c8023edb3b@mail.gmail.com> <47C4667C.1020508@gritechnologies.com> Message-ID: <47C467EC.4060500@dmsolutions.ca> > > once you > get by the setup learning curve of MapServer and GeoMoose. > and for that, if you're on windows check out ms4w, which contains both. -jeff From cww at denterprises.org Tue Feb 26 12:16:18 2008 From: cww at denterprises.org (Colin Wetherbee) Date: Tue, 26 Feb 2008 15:16:18 -0500 Subject: [mapserver-users] Dynamic mapping with CGI parameters Message-ID: <47C47392.9080007@denterprises.org> Greetings. I have a fledgling MapServer application that uses PostgreSQL as its back-end. Each set of data I would like to retrieve from PostgreSQL is specific to a certain user. Currently, since the application is only in an alpha phase, I have MapServer retrieve the aggregate sum of the data in the database and display it on my map. This isn't going to work for the real application, since different users need to see different sets of data. I would like to do one of two things, but I've been poring over the documentation today and can't find any way to achieve either. I would very much appreciate some assistance. My two approaches are as follows, but if there are others, I would certainly be open to implementing something different. Approach #1: Since my application is written in Perl, I could use MapScript in Perl to generate bits of maps and return them to the browser as needed. Perl would interpret cookies and perform session authentication before generating a customized map file to pass along to MapServer. The Perl code [0] would look something like: sub GetMapPiece() { $req = new mapscript::OWSRequest(); $req->setParameter("SERVICE", "WMS"); $req->setParameter("VERSION", "1.1.0"); $req->setParameter("REQUEST", $something); # The next two lines are the important ones... my $mapFile = GenerateMapFile({ userid => $someUserId }); my $mapObj = new mapscript::mapObj($mapFile); mapscript::msIO_installStdoutToBuffer(); my $dispatch_out = $map->OWSDispatch($req); return mapscript::msIO_getStdoutBufferString(); } The problem with this is that, as far as I can tell, I can't create a mapObj from anything other than a file on disk. I would like $mapFile to contain the full text of a dynamically created map file, and I would then like to be able to create a new mapObj from it. My imaginary GenerateMapFile() function would generate the text for the map file, but it would never be saved to disk. Approach #2: This would be my preferred method, but from what I've read, I think approach #1 is more likely to happen. This approach entails passing a CGI parameter to mapserv that could be substituted somewhere in the map file. For example, the URL could be: http://example.com/cgi-bin/mapserv?userid=1234 Then, the map file could contain something like: DATA "line FROM ( SELECT num, id, line FROM jsview_journeyroutes WHERE us_id = {userid} ) AS foo USING UNIQUE id USING SRID=4326" And, MapServer would see "WHERE us_id = {userid}" and, for {userid}, substitute the 1234 that was passed into mapserv as a CGI parameter. Of course, doing this directly would cause nasty SQL injection attack problems, but I could properly sanitize the input with Perl. No big deal there. End Approaches. Any thoughts on this? Thanks. Colin [0] Adapted from . From nospam420 at yahoo.com Tue Feb 26 12:55:03 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Tue, 26 Feb 2008 12:55:03 -0800 (PST) Subject: [MAPSERVER-USERS] missing lock in mapfile.c:msFreeLabelCacheSlot() ? Message-ID: <15699786.post@talk.nabble.com> I have a custom Java webapp that uses Java mapscript and is running with tomcat. Each flow from request to response is a single thread, but tomcat is able to process multiple concurrent requests if it receives them. I was previously having a problem that I at first thought was a multithreading issue, but turned out to be a memory leak: http://trac.osgeo.org/mapserver/ticket/2525 http://www.nabble.com/thread-safety-to15514019.html I have patched my code and the memory leak is now solved. I can run fairly long stress tests (so far as long as 14 hours) with a client sequentially requesting maps and everything runs fine. But if I have my client make concurrent requests, the mapscript code inevitably throws a SIGSEGV, crashing the JVM and tomcat. This usually happens sometime within the first or second hour of my stress test. All times (5 so far), the stack trace has been entirely identical, starting with a Java mapscript call to mapObj.delete(). --- begin --- (msFreeLabelCacheSlot) mapfile.c:4068 (msFreeLabelCache) mapfile.c:4100 (msFreeMap) mapobject.c:98 (*) (delete_mapObj) mapscript/java/mapscript_wrap.c:1619 (**) (Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1mapObj) mapscript/java/mapscript_wrap.c:19695 (***) code is compiled with -O2 (aside, is this possible to change when running configure?), so i'm not too surprised at possible slight differences in line numbers: (*) should probably be mapobject.c:96. (**) should probably be mapscript_wrap.c:1618 (***) should probably be mapscript/java/mapscript_wrap.c:19693 --- end --- I'm wondering if there is perhaps some lock that is needed with respect to the label cache that might be missing. Is there some way that I can disable the label cache (presumably at a cost of performance) to see if the crash still occurs? I see that a comment in mapthread.c notes: --- begin --- 1) It is currently assumed that a mapObj belongs only to one thread at a time. That is, there is no effort to syncronize access to a mapObj itself. --- end --- I am adhering to this. Each request is processed in a single thread, and that thread creates its own mapObj and calls delete() on it when done, and no other thread ever has access to the mapObj. I don't yet have a fully self contained test case for this using Java mapscript independent of tomcat, but I could work on creating one. I am running mapserver 5.0.0, locally patched to fix bug 2525 as noted above. This is on debian 3.1 (sarge), locally compiled with gcc 3.3.5, using locally compiled versions of GD 2.0.35 and AGG 2.5, and debian packages for everything else. My mapserver configuration is as follows: MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=THREADS INPUT=POSTGIS INPUT=SHAPEFILE The Java mapscript code was compiled with SWIG 1.3.24 and Sun Java 1.5.0_06. It runs with the same version of Java and with tomcat 5.5.17. It queries its data from a PostgreSQL/PostGIS database, uses projections, uses the AGG renderer, includes labels with TrueType fonts, and generates PNG output. I think that what I'm doing ought to be thread safe, although I can't say that 100% certain of that. Thanks for any help that anyone might be able to provide. - Rich -- View this message in context: http://www.nabble.com/missing-lock-in-mapfile.c%3AmsFreeLabelCacheSlot%28%29---tp15699786p15699786.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pal.kristensen at statkart.no Tue Feb 26 12:56:23 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Tue, 26 Feb 2008 12:56:23 -0800 (PST) Subject: [MAPSERVER-USERS] WMS - GetCapabilities and version Message-ID: <15699789.post@talk.nabble.com> Hi! I did a build of mapserver nightly this evening and noticed some changed WMS behavior compared to my last build (approx 2 months ago). The old build does reply to at GetCapabilities request that misses the version parameter with a version 1.1.1 capabilities xml-file. The new build fails withe an error message that says that the version parameter is missing. According to the WMS 1.1.1 standard version is a mandatory parameter so the new behavior is correct according to the standard. Unfortunately many of the clients around do not comply with the standard, and of course the server gets the blame. I guess this issue fall into the ongoing compliance discussion (RFC-35). But what has changed over the last couple of month that introduced this new behavior, and is there some keywords that can be set to achieve the old behavior? Regards P?l Kristensen -- View this message in context: http://www.nabble.com/WMS---GetCapabilities-and-version-tp15699789p15699789.html Sent from the Mapserver - User mailing list archive at Nabble.com. From crschmidt at metacarta.com Tue Feb 26 13:02:01 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Tue, 26 Feb 2008 16:02:01 -0500 Subject: [mapserver-users] Advice for MapServer project In-Reply-To: <47C4667C.1020508@gritechnologies.com> References: <22ed3890802260349i3b54e953yb5a6d2c8023edb3b@mail.gmail.com> <47C4667C.1020508@gritechnologies.com> Message-ID: <20080226210201.GA24941@alta.metacarta.com> On Tue, Feb 26, 2008 at 01:20:28PM -0600, Bob Basques wrote: > Timothy, > > This is an excellent project for GeoMoose to act as the mapping engine > for. It's precisely the sort of thing that the GeoMoose client > framework was designed for. You can set up GeoMoose fairly quickly for > the mapping aspects, and the overlay pieces can be added on with some > custom work by yourself via additional services. What does GeoMoose do better than OpenLayers in this particular case, in your opinion? Regards, -- Christopher Schmidt MetaCarta From mlinden at zeelandnet.nl Tue Feb 26 13:20:43 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Tue, 26 Feb 2008 22:20:43 +0100 Subject: [mapserver-users] Dynamic mapping with CGI parameters In-Reply-To: <47C47392.9080007@denterprises.org> References: <47C47392.9080007@denterprises.org> Message-ID: <47C482AB.90509@zeelandnet.nl> Hello Colin, as I tried to clear to you before, I would go for option 2! Better still, I am using option 2 in a lot of real life cases. Add userid=1234 to the request string (and as you say, pass it through perl to sanitize, excelent choice) And use: DATA "line FROM ( SELECT num, id, line FROM jsview_journeyroutes WHERE us_id = %userid% ) AS foo USING UNIQUE id USING SRID=4326" I can guarantee you that will work. Kind regards, Milo van der Linden Colin Wetherbee schreef: > Greetings. > > I have a fledgling MapServer application that uses PostgreSQL as its > back-end. Each set of data I would like to retrieve from PostgreSQL > is specific to a certain user. Currently, since the application is > only in an alpha phase, I have MapServer retrieve the aggregate sum of > the data in the database and display it on my map. This isn't going > to work for the real application, since different users need to see > different sets of data. > > I would like to do one of two things, but I've been poring over the > documentation today and can't find any way to achieve either. I would > very much appreciate some assistance. My two approaches are as > follows, but if there are others, I would certainly be open to > implementing something different. > > Approach #1: > > Since my application is written in Perl, I could use MapScript in Perl > to generate bits of maps and return them to the browser as needed. > Perl would interpret cookies and perform session authentication before > generating a customized map file to pass along to MapServer. The Perl > code [0] would look something like: > > sub GetMapPiece() > { > $req = new mapscript::OWSRequest(); > $req->setParameter("SERVICE", "WMS"); > $req->setParameter("VERSION", "1.1.0"); > $req->setParameter("REQUEST", $something); > > # The next two lines are the important ones... > my $mapFile = GenerateMapFile({ userid => $someUserId }); > my $mapObj = new mapscript::mapObj($mapFile); > > mapscript::msIO_installStdoutToBuffer(); > my $dispatch_out = $map->OWSDispatch($req); > return mapscript::msIO_getStdoutBufferString(); > } > > The problem with this is that, as far as I can tell, I can't create a > mapObj from anything other than a file on disk. I would like $mapFile > to contain the full text of a dynamically created map file, and I > would then like to be able to create a new mapObj from it. My > imaginary GenerateMapFile() function would generate the text for the > map file, but it would never be saved to disk. > > Approach #2: > > This would be my preferred method, but from what I've read, I think > approach #1 is more likely to happen. > > This approach entails passing a CGI parameter to mapserv that could be > substituted somewhere in the map file. For example, the URL could be: > > http://example.com/cgi-bin/mapserv?userid=1234 > > Then, the map file could contain something like: > > DATA "line FROM ( > SELECT num, id, line > FROM jsview_journeyroutes > WHERE us_id = {userid} > ) AS foo USING UNIQUE id USING SRID=4326" > > And, MapServer would see "WHERE us_id = {userid}" and, for {userid}, > substitute the 1234 that was passed into mapserv as a CGI parameter. > > Of course, doing this directly would cause nasty SQL injection attack > problems, but I could properly sanitize the input with Perl. No big > deal there. > > End Approaches. > > Any thoughts on this? > > Thanks. > > Colin > > [0] Adapted from > . > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From cww at denterprises.org Tue Feb 26 13:36:40 2008 From: cww at denterprises.org (Colin Wetherbee) Date: Tue, 26 Feb 2008 16:36:40 -0500 Subject: [mapserver-users] Dynamic mapping with CGI parameters In-Reply-To: <47C482AB.90509@zeelandnet.nl> References: <47C47392.9080007@denterprises.org> <47C482AB.90509@zeelandnet.nl> Message-ID: <47C48668.3010901@denterprises.org> Milo van der Linden wrote: > Add userid=1234 to the request string (and as you say, pass it through > perl to sanitize, excelent choice) > > And use: > > DATA "line FROM ( > SELECT num, id, line > FROM jsview_journeyroutes > WHERE us_id = %userid% > ) AS foo USING UNIQUE id USING SRID=4326" Oh, *that's* what you were talking about. :) Works great! Thanks a lot. Colin From bob.b at gritechnologies.com Tue Feb 26 14:12:58 2008 From: bob.b at gritechnologies.com (Bob Basques) Date: Tue, 26 Feb 2008 16:12:58 -0600 Subject: [mapserver-users] Advice for MapServer project In-Reply-To: <20080226210201.GA24941@alta.metacarta.com> References: <22ed3890802260349i3b54e953yb5a6d2c8023edb3b@mail.gmail.com> <47C4667C.1020508@gritechnologies.com> <20080226210201.GA24941@alta.metacarta.com> Message-ID: <47C48EEA.7020904@gritechnologies.com> Christopher, The setup of the interface as well as the data sources are all abstracted to the point that each individual data custodian, and/or service owner, can implement their respective dataset/service in their own way and update it as frequently, or infrequently as they desire. Everything in GeoMoose, including the Nav tools, are considered a tool or service of some sort, so it's very easy to add others to the mix. The administration of the data maintenance is also a big difference compared to other pacakages, because once the layer/service is implemented via GeoMoose, it's up the layer/service providor to keep it maintained into the future. Since everything is a service of some sort, these services can all be maintained and authenticated in any manner the custodian/owner want to use. GeoMoose is aimed at datasets that change fairly often, on the order of hours or minutes, and is intended primarily to access this type of data set. OpenLayers with it's Tiled interface seems to be intended for displaying datasets that tend to be more static in nature. Now, either of the two packages can can be used for each others capabilities, but GeoMoose was built from the ground up based on a asset management type of business need with mapping as the visual identifier. One last item, is that GeoMoose the interface is initiaqlized from a XML file, a MAPBOOK, so setting up business specific interfaces is very easy. This XML file is even something that can be automated, so that an online method of setting up a Mapping interface could be built, and is something that is planned for as well. Besides, everyone throw OpenLayers out there as an Option, I'm just offering up another. :c) bobb Christopher Schmidt wrote: > On Tue, Feb 26, 2008 at 01:20:28PM -0600, Bob Basques wrote: > >> Timothy, >> >> This is an excellent project for GeoMoose to act as the mapping engine >> for. It's precisely the sort of thing that the GeoMoose client >> framework was designed for. You can set up GeoMoose fairly quickly for >> the mapping aspects, and the overlay pieces can be added on with some >> custom work by yourself via additional services. >> > > What does GeoMoose do better than OpenLayers in this particular case, in > your opinion? > > Regards, > -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Tue Feb 26 14:21:13 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Tue, 26 Feb 2008 17:21:13 -0500 Subject: GeoMoose vs. OpenLayers for specific project (Was Re: [mapserver-users] Advice for MapServer project) In-Reply-To: <47C48EEA.7020904@gritechnologies.com> References: <22ed3890802260349i3b54e953yb5a6d2c8023edb3b@mail.gmail.com> <47C4667C.1020508@gritechnologies.com> <20080226210201.GA24941@alta.metacarta.com> <47C48EEA.7020904@gritechnologies.com> Message-ID: <20080226222113.GA27165@alta.metacarta.com> On Tue, Feb 26, 2008 at 04:12:58PM -0600, Bob Basques wrote: > The setup of the interface as well as the data sources are all > abstracted to the point that each individual data custodian, and/or > service owner, can implement their respective dataset/service in their > own way and update it as frequently, or infrequently as they desire. I'm not sure I understand this, or several of the other things in this email. I'd like to understand them. Are you on the webmap-discuss list? Would you be willing to continue the discussion there? > Everything in GeoMoose, including the Nav tools, are considered a tool > or service of some sort, so it's very easy to add others to the mix. > The administration of the data maintenance is also a big difference > compared to other pacakages, because once the layer/service is > implemented via GeoMoose, it's up the layer/service providor to keep it > maintained into the future. Since everything is a service of some > sort, these services can all be maintained and authenticated in any > manner the custodian/owner want to use. > > GeoMoose is aimed at datasets that change fairly often, on the order of > hours or minutes, and is intended primarily to access this type of data > set. OpenLayers with it's Tiled interface seems to be intended for > displaying datasets that tend to be more static in nature. Now, either > of the two packages can can be used for each others capabilities, but > GeoMoose was built from the ground up based on a asset management type > of business need with mapping as the visual identifier. > > One last item, is that GeoMoose the interface is initiaqlized from a XML > file, a MAPBOOK, so setting up business specific interfaces is very > easy. This XML file is even something that can be automated, so that an > online method of setting up a Mapping interface could be built, and is > something that is planned for as well. > > Besides, everyone throw OpenLayers out there as an Option, I'm just > offering up another. :c) Hm, I must have missed that; I didn't see anyone mention OpenLayers as an option explicitly. Will have to poke at my mail server and see what's up. Regards, -- Christopher Schmidt MetaCarta From szekerest at gmail.com Tue Feb 26 14:27:47 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 26 Feb 2008 23:27:47 +0100 Subject: [MAPSERVER-USERS] missing lock in mapfile.c:msFreeLabelCacheSlot() ? In-Reply-To: <15699786.post@talk.nabble.com> Message-ID: <47c4924d.0c07560a.75c8.ffffc496@mx.google.com> Rich, You can probably control the caching effect by setting LABELCACHE OFF for all of layers. However I'm a bit hesitant to think that this is due to a missing lock around the labelcache itself since it doesn't contain static variables. Would you post your code fragment between the mapObj creation and deletion to see how the mapscript objects are actually used in your testcase? Best regards, Tamas -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of rich.fromm Sent: Tuesday, February 26, 2008 9:55 PM To: mapserver-users at lists.osgeo.org Subject: [MAPSERVER-USERS] missing lock in mapfile.c:msFreeLabelCacheSlot() ? I have a custom Java webapp that uses Java mapscript and is running with tomcat. Each flow from request to response is a single thread, but tomcat is able to process multiple concurrent requests if it receives them. I was previously having a problem that I at first thought was a multithreading issue, but turned out to be a memory leak: http://trac.osgeo.org/mapserver/ticket/2525 http://www.nabble.com/thread-safety-to15514019.html I have patched my code and the memory leak is now solved. I can run fairly long stress tests (so far as long as 14 hours) with a client sequentially requesting maps and everything runs fine. But if I have my client make concurrent requests, the mapscript code inevitably throws a SIGSEGV, crashing the JVM and tomcat. This usually happens sometime within the first or second hour of my stress test. All times (5 so far), the stack trace has been entirely identical, starting with a Java mapscript call to mapObj.delete(). --- begin --- (msFreeLabelCacheSlot) mapfile.c:4068 (msFreeLabelCache) mapfile.c:4100 (msFreeMap) mapobject.c:98 (*) (delete_mapObj) mapscript/java/mapscript_wrap.c:1619 (**) (Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1mapObj) mapscript/java/mapscript_wrap.c:19695 (***) code is compiled with -O2 (aside, is this possible to change when running configure?), so i'm not too surprised at possible slight differences in line numbers: (*) should probably be mapobject.c:96. (**) should probably be mapscript_wrap.c:1618 (***) should probably be mapscript/java/mapscript_wrap.c:19693 --- end --- I'm wondering if there is perhaps some lock that is needed with respect to the label cache that might be missing. Is there some way that I can disable the label cache (presumably at a cost of performance) to see if the crash still occurs? I see that a comment in mapthread.c notes: --- begin --- 1) It is currently assumed that a mapObj belongs only to one thread at a time. That is, there is no effort to syncronize access to a mapObj itself. --- end --- I am adhering to this. Each request is processed in a single thread, and that thread creates its own mapObj and calls delete() on it when done, and no other thread ever has access to the mapObj. I don't yet have a fully self contained test case for this using Java mapscript independent of tomcat, but I could work on creating one. I am running mapserver 5.0.0, locally patched to fix bug 2525 as noted above. This is on debian 3.1 (sarge), locally compiled with gcc 3.3.5, using locally compiled versions of GD 2.0.35 and AGG 2.5, and debian packages for everything else. My mapserver configuration is as follows: MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=THREADS INPUT=POSTGIS INPUT=SHAPEFILE The Java mapscript code was compiled with SWIG 1.3.24 and Sun Java 1.5.0_06. It runs with the same version of Java and with tomcat 5.5.17. It queries its data from a PostgreSQL/PostGIS database, uses projections, uses the AGG renderer, includes labels with TrueType fonts, and generates PNG output. I think that what I'm doing ought to be thread safe, although I can't say that 100% certain of that. Thanks for any help that anyone might be able to provide. - Rich -- View this message in context: http://www.nabble.com/missing-lock-in-mapfile.c%3AmsFreeLabelCacheSlot%28%29 ---tp15699786p15699786.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From nospam420 at yahoo.com Tue Feb 26 15:13:01 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Tue, 26 Feb 2008 15:13:01 -0800 (PST) Subject: [MAPSERVER-USERS] Mailing List Migration Message-ID: <15702356.post@talk.nabble.com> On Fri, 08 Feb 2008 15:39:59 -0500, "Frank Warmerdam" sent out mail about the mailing list moving from lists.umn.edu to lists.osgeo.org. The old list archives are available at: http://lists.umn.edu/cgi-bin/wa?A0=MAPSERVER-USERS The new list archives are available at: http://lists.osgeo.org/pipermail/mapserver-users/ And the new list has the old archives migrated to it. Why do posts keep showing up on the old list? Should it perhaps be forced to be read only? I use nabble.com as an interface for the mailing list (which I highly recommend if you haven't tried it). The old list here is at: http://www.nabble.com/Mapserver---User-(old)-f1215.html The new list is at: http://www.nabble.com/Mapserver---User-f31321.html Here the old list archives have not been migrated to the new list. Which isn't that big of a deal, as long as the old is old and the new is new. But that's not how it is. Although much less volume than the new list, posts keep showing up in the old list. And because nabble has (imho correctly) marked the old list as read only, there's no way for me to reply to a post to the old list using the nabble interface. Unless perhaps I were to copy it to the new list, but then I assume that the original sender wouldn't even see it, if he/she were posting to the old list instead. I think what needs to be done is that the old list needs to either be shut down and instead bounce with a messgae telling you to use the old list, or perhaps just act as an autoforwarder to the new list. Or maybe I just don't understand what's going on. But something seems fishy to me. - Rich -- View this message in context: http://www.nabble.com/Re%3A-Mailing-List-Migration-tp15702356p15702356.html Sent from the Mapserver - User mailing list archive at Nabble.com. From cww at denterprises.org Tue Feb 26 16:20:43 2008 From: cww at denterprises.org (Colin Wetherbee) Date: Tue, 26 Feb 2008 19:20:43 -0500 Subject: [mapserver-users] On the mapserv CGI environment Message-ID: <47C4ACDB.3000008@denterprises.org> Greetings. I'm trying to use mapserv in a CGI environment by executing it in mod_perl. This is to perform input sanitizing, as Milo and I discussed in a thread earlier today. My Perl code looks like this: $ENV{QUERY_STRING} = "map=$mapFile&username=$username&" . $ENV{QUERY_STRING}; my $mapServ = '/usr/lib/cgi-bin/mapserv'; my $data = `$mapServ`; The response I get in $data is: This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. When I invoke mapserv as above, the environment looks like this: SCRIPT_NAME -> /jet-set/mapTile SERVER_NAME -> 192.168.171.100 HTTP_REFERER -> http://192.168.171.100/jet-set/userJourneysBasicMap SERVER_ADMIN -> cww at denterprises.org HTTP_ACCEPT_ENCODING -> gzip,deflate HTTP_CONNECTION -> keep-alive REQUEST_METHOD -> GET HTTP_ACCEPT -> image/png,*/*;q=0.5 SCRIPT_FILENAME -> /home/cww/sites/js.iron.denterprises.org/htdocs/jet-set/mapTile SERVER_SOFTWARE -> Apache/2.2.8 (Debian) mod_apreq2-20051231/2.6.0 mod_perl/2.0.3 Perl/v5.8.8 HTTP_ACCEPT_CHARSET -> ISO-8859-1,utf-8;q=0.7,*;q=0.7 QUERY_STRING -> map=/home/cww/sites/js.iron.denterprises.org/etc/js.map&username=cww&LAYERS=airports,journeys,airport_iata&TRANSPARENT=true&FORMAT=image%2Fpng&BUFFER=1&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-203.5546875,-94.921875,203.5546875,94.921875&WIDTH=1158&HEIGHT=540 REMOTE_PORT -> 57072 HTTP_USER_AGENT -> Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12 SERVER_PORT -> 80 SERVER_SIGNATURE ->
Apache/2.2.8 (Debian) mod_apreq2-20051231/2.6.0 mod_perl/2.0.3 Perl/v5.8.8 Server at 192.168.171.100 Port 80
\n HTTP_ACCEPT_LANGUAGE -> en-us,en;q=0.5 HTTP_COOKIE -> longCredential=cww.{removed}; sessionCredential=cww.{removed} REMOTE_ADDR -> 192.168.171.80 HTTP_KEEP_ALIVE -> 300 SERVER_PROTOCOL -> HTTP/1.1 MOD_PERL_API_VERSION -> 2 PATH -> /usr/local/bin:/usr/bin:/bin REQUEST_URI -> /jet-set/mapTile?LAYERS=airports,journeys,airport_iata&TRANSPARENT=true&FORMAT=image%2Fpng&BUFFER=1&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-203.5546875,-94.921875,203.5546875,94.921875&WIDTH=1158&HEIGHT=540 GATEWAY_INTERFACE -> CGI/1.1 SERVER_ADDR -> 192.168.171.100 DOCUMENT_ROOT -> /home/cww/sites/js.iron.denterprises.org/htdocs HTTP_HOST -> 192.168.171.100 MOD_PERL -> mod_perl/2.0.3 This [0] seems simple enough, and it works. I basically just replicated its functionality inside Perl. What am I missing? Thanks. Colin [0] http://mapserver.gis.umn.edu/docs/howto/cgi-wrapper-script From kunal.malik81 at gmail.com Tue Feb 26 21:54:15 2008 From: kunal.malik81 at gmail.com (Kunal Malik) Date: Wed, 27 Feb 2008 11:24:15 +0530 Subject: [mapserver-users] Re: Query Regrading Map Server In-Reply-To: <523fe0bf0802262116l58d22a2ch1f9a5254de32b93c@mail.gmail.com> References: <523fe0bf0802262116l58d22a2ch1f9a5254de32b93c@mail.gmail.com> Message-ID: Hi Vishal!! 1. As far as the compatibilty with the opengl is concerned i am asking this because my display module is made on opengl and i have to display the raster & the vector image on it..... 2. we don't have to use the web-server as our application will run on intranet ..we want that mapserver to interact with opengl.. 32 client take the map from the central map server and display on their screen which is on opengl.. can u suggest ..how should i approach this ..i don;t have any idea about the mapserver programming is concerned... can u suggest any sample code which i could run on my machine so as to check the compatibilty, or any docs that u can refer .. 3. I was looking for the grass option ..Do u have any idea ..that does grass also need the mapserver to maintain the repository of data.,, ??? Looking forward for ur Reply. Thanks On 2/27/08, vishal nagpal wrote: > > Hi Kunal, > 1. I do not have much experience on grass. but i hv read a little about > it. > 2. All the six requirements mentioned below can be done with both Grass > and Mapserver. > 3. What I know, GRASS is a very good and exhaustive software. > Mapserver also has lot of features that GRASS has. > 3. Mapserver is an ideal solution if you wish to use web based service. > However, it also works on a Server-client model also. > 4. I am not too sure why you need compatibility with OpenGL. Probably you > wish to see the data in 3D. Both these servers represent data in 2D only. > all the best > Regards, > Vishal > > > > On Tue, Feb 26, 2008 at 7:01 PM, Kunal Malik > wrote: > > > Hi Vishal !! > > I am working on Grass Tool & also Looking for map-server. > > I have following requirement.,. > > 1)Importing of Raster & Vector Maps. > > 2) Re-Projection > > 3)Create & Edit layer. > > 4)Display Maps > > 5)Set Transparency > > 6)Stiching of Maps > > and so on.. > > I have to use the GIS feature,, > > I am told to look all this on open-source tool,,,so i am looking it on > > Grass and Mapserver..my display is on OpenGL..also i have to take care that > > tool i use should work with opengl.. > > can u suggest that going for grass & Mapserver..would able to resolve > > all the requirements. > > Thanks > > > > On 2/26/08, vishal nagpal wrote: > > > > > > hi i hv seen ur queries in mapserver list how can i help u. i hav been > > > wkg on mapserver for around six months now, > > > Regards, > > > Vishal > > > > > > > > > > > -- > > Thanks & Regards > > > > Kunal Malik > > 09871147561 > > > -- Thanks & Regards Kunal Malik 09871147561 -------------- next part -------------- An HTML attachment was scrubbed... URL: From juozas.urbonas at teltonika.lt Tue Feb 26 23:01:06 2008 From: juozas.urbonas at teltonika.lt (Juozas Urbonas) Date: Wed, 27 Feb 2008 09:01:06 +0200 Subject: [mapserver-users] Re: Image shrinking problem Message-ID: I'm sorry, I forgot to mention, that I'm creating GDAL driver, which I'm trying to use with MapServer. Here is the gdalinfo for my map: Driver: AkisAx/Akis Map Link (.mln) Size is 60879, 47344 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9108"]], AXIS["Lat",NORTH], AXIS["Long",EAST], AUTHORITY["EPSG","4326"]] Origin = (20.660000000000000,56.659999999999997) Pixel Size = (0.000104141001002,-0.000059352821899) Corner Coordinates: Upper Left ( 20.6600000, 56.6600000) Lower Left ( 20.6600000, 53.8500000) Upper Right ( 27.0000000, 56.6600000) Lower Right ( 27.0000000, 53.8500000) Center ( 23.8300000, 55.2550000) Band 1 Block=256x256 Type=Byte, ColorInterp=Red Overviews: arbitrary Band 2 Block=256x256 Type=Byte, ColorInterp=Green Overviews: arbitrary Band 3 Block=256x256 Type=Byte, ColorInterp=Blue Overviews: arbitrary And layer section from MapServer's .map file: LAYER NAME Lietuva TYPE RASTER DATA 'D:\Programs\AkisAX-trial\Lietuva.mln' MAXSCALE 3000000 MINSCALE 50000 METADATA 'wms_title' 'Lietuva' 'wms_srs' 'epsg:4326' END STATUS ON TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END DUMP TRUE END Hope someone can help me. Juozas. ----- Original Message ----- From: Juozas Urbonas To: mapserver-users at lists.osgeo.org Sent: Tuesday, February 26, 2008 11:12 AM Subject: Image shrinking problem Hi All, When I'm requesting some image using WMS, my overridden IRasterIO gets called with nBufXSize and nBufYSize nearly double the size I'm requesting in WMS call and in the process image returned by WMS gets shrinked. What may cause this problem? I'm expecting nBufXSize and nBufYSize to be approximately the same size as in WMS request. Thanks for any help. Juozas. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmashford at gmail.com Tue Feb 26 23:44:49 2008 From: tmashford at gmail.com (Timothy Mashford) Date: Wed, 27 Feb 2008 18:44:49 +1100 Subject: [mapserver-users] Advice for MapServer project In-Reply-To: <47C48EEA.7020904@gritechnologies.com> References: <22ed3890802260349i3b54e953yb5a6d2c8023edb3b@mail.gmail.com> <47C4667C.1020508@gritechnologies.com> <20080226210201.GA24941@alta.metacarta.com> <47C48EEA.7020904@gritechnologies.com> Message-ID: <22ed3890802262344i4392e6d4yb87a890c440fbc71@mail.gmail.com> Thanks to everyone for their input. I have seen OpenLayers, I am not sure it is suitable as I really require a zoom-box tool (not shift-click), and also a separate layer control. I have found GeoMoose to be fairly slow(?), and also full of features I don't require (e.g. slide zoom), although I guess these could be removed. The Morton County example is good. The reason I was thinking dbox.js was that it is fast & simple. But once I get up to that stage I will investigate all options. Can someone just help me understand how the postgresql database could be queried for data within a specific date range? I am thinking that the user could specify the dates in an initialisation page, and these dates could then be stored at hidden CGI variables (or javascript variables?). But if the data sources are specified in the mapfile, how do I pass the dates to postgresql? Sorry if my lack of knowledge is showing... Thanks again for the responses. Tim Mashford. From mia_meteo02 at yahoo.com Wed Feb 27 00:00:42 2008 From: mia_meteo02 at yahoo.com (mia khusnuk khotimah) Date: Wed, 27 Feb 2008 00:00:42 -0800 (PST) Subject: [mapserver-users] Map Server newbee looking help for php-mapscript Message-ID: <385708.65110.qm@web32006.mail.mud.yahoo.com> is there anyone could help me? i try to make a map with simple function like zoom in and out, pan and query. everythings going well except the query function. i cant reach the basic concept of using "querybypoint" function, how to use it and how will the sentence be. could anyone help me with this? online references of maybe advice? thanks. mia ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at statkart.no Wed Feb 27 02:19:52 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Wed, 27 Feb 2008 02:19:52 -0800 (PST) Subject: [MAPSERVER-USERS] Excluding layers from WMS Message-ID: <15710216.post@talk.nabble.com> Hi! Is there any news on the exclude layers from WMS issue which is discussed in this tread? http://www.nabble.com/Excluding-certain-layer-types-from-WMS...-to14786841.html#a14813767 I really like the idea of a wms_exclude_layer keyword in the layer.metadata block Regards, P?l Kristensen -- View this message in context: http://www.nabble.com/Excluding-layers-from-WMS-tp15710216p15710216.html Sent from the Mapserver - User mailing list archive at Nabble.com. From roberto.bianconi at gmail.com Wed Feb 27 02:23:09 2008 From: roberto.bianconi at gmail.com (Roberto Bianconi) Date: Wed, 27 Feb 2008 11:23:09 +0100 Subject: [mapserver-users] Dynamic mapping with CGI parameters In-Reply-To: <47C47392.9080007@denterprises.org> References: <47C47392.9080007@denterprises.org> Message-ID: <29879c6d0802270223k23bb2216le2476122cb0eb153@mail.gmail.com> Hello Colin, I'm probably missing something, but I don't see the problem with Approach #1. It gives you total control on your application. Conceptually, I would put something like this (not tested) in a CGI script. #!/usr/bin/perl use CGI; my $q = new CGI; # Get the parameters from the CGI my $someUserId = $q->param('userid'); my $lon = $q->param('lon'); my $lat = $q->param('lat'); # ... # Write a mapfile (a temporary one using userid in the name) using also the parameters from the CGI my $mapfile = '/tmp_path/'.$someUserId.'.map'; open (MAP,">$mapfile); print MAP "MAP\n"; print MAP" STATUS ON\n"; # .... # other mapfile stuff, including printing your DATA block substituting the user id print MAP " DATA \"line FROM ( SELECT num, id, line FROM jsview_journeyroutes WHERE us_id = $someUserId ) AS foo USING UNIQUE id USING SRID=4326\" \n"'; # .... print MAP "END\n"; close (MAP); # Reload the mapfile my $mapObj = new mapscript::mapObj($mapFile); my $img = $map->prepareImage(); # Do whatever you want (load and draw layers from the mapfile # and/or create/draw new ones), for example my $layer = $map->getLayerByName('one_of_my_layers_in_mapfile'); $layer->draw($map, $img); # # And then prepare and save the image my $image_file = '/path/whatever.png'; $img->save($image_file); # Here we're ready to print the HTML response to the browser (image generated above and input forms + submit button to get new parameters and generate a new image) print $q->header(); print $q->start_html(); # # Whatever you want to put in your page here, including the generated image print $q->img($imagefile); print $q->end_html(); The only sure thing is that I'd use CGI.pm module for writing CGI applications. It is much, much easier and SAFER than anything you can write from scratch, guaranteed :)) Hope this helps Roberto http ://www.enviroware.com On Tue, Feb 26, 2008 at 9:16 PM, Colin Wetherbee wrote: > Greetings. > > I have a fledgling MapServer application that uses PostgreSQL as its > back-end. Each set of data I would like to retrieve from PostgreSQL is > specific to a certain user. Currently, since the application is only in > an alpha phase, I have MapServer retrieve the aggregate sum of the data > in the database and display it on my map. This isn't going to work for > the real application, since different users need to see different sets > of data. > > I would like to do one of two things, but I've been poring over the > documentation today and can't find any way to achieve either. I would > very much appreciate some assistance. My two approaches are as follows, > but if there are others, I would certainly be open to implementing > something different. > > Approach #1: > > Since my application is written in Perl, I could use MapScript in Perl > to generate bits of maps and return them to the browser as needed. Perl > would interpret cookies and perform session authentication before > generating a customized map file to pass along to MapServer. The Perl > code [0] would look something like: > > sub GetMapPiece() > { > $req = new mapscript::OWSRequest(); > $req->setParameter("SERVICE", "WMS"); > $req->setParameter("VERSION", "1.1.0"); > $req->setParameter("REQUEST", $something); > > # The next two lines are the important ones... > my $mapFile = GenerateMapFile({ userid => $someUserId }); > my $mapObj = new mapscript::mapObj($mapFile); > > mapscript::msIO_installStdoutToBuffer(); > my $dispatch_out = $map->OWSDispatch($req); > return mapscript::msIO_getStdoutBufferString(); > } > > The problem with this is that, as far as I can tell, I can't create a > mapObj from anything other than a file on disk. I would like $mapFile > to contain the full text of a dynamically created map file, and I would > then like to be able to create a new mapObj from it. My imaginary > GenerateMapFile() function would generate the text for the map file, but > it would never be saved to disk. > > Approach #2: > > This would be my preferred method, but from what I've read, I think > approach #1 is more likely to happen. > > This approach entails passing a CGI parameter to mapserv that could be > substituted somewhere in the map file. For example, the URL could be: > > http://example.com/cgi-bin/mapserv?userid=1234 > > Then, the map file could contain something like: > > DATA "line FROM ( > SELECT num, id, line > FROM jsview_journeyroutes > WHERE us_id = {userid} > ) AS foo USING UNIQUE id USING SRID=4326" > > And, MapServer would see "WHERE us_id = {userid}" and, for {userid}, > substitute the 1234 that was passed into mapserv as a CGI parameter. > > Of course, doing this directly would cause nasty SQL injection attack > problems, but I could properly sanitize the input with Perl. No big > deal there. > > End Approaches. > > Any thoughts on this? > > Thanks. > > Colin > > [0] Adapted from > . > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From David.Fawcett at state.mn.us Wed Feb 27 05:42:01 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 27 Feb 2008 07:42:01 -0600 Subject: [mapserver-users] Advice for MapServer project References: <22ed3890802260349i3b54e953yb5a6d2c8023edb3b@mail.gmail.com><47C4667C.1020508@gritechnologies.com><20080226210201.GA24941@alta.metacarta.com><47C48EEA.7020904@gritechnologies.com> <22ed3890802262344i4392e6d4yb87a890c440fbc71@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5015AD46F@s-sp22.pca.state.mn.us> Tim, Take a look at the PostGIS workshop from the 2005 conference. http://mapserver.gis.umn.edu/community/conferences/MUM3/workshop/postgis/ Paul did an excellent job with it and I still think that it is a great primer. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of Timothy Mashford Sent: Wed 2/27/2008 1:44 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Advice for MapServer project Thanks to everyone for their input. I have seen OpenLayers, I am not sure it is suitable as I really require a zoom-box tool (not shift-click), and also a separate layer control. I have found GeoMoose to be fairly slow(?), and also full of features I don't require (e.g. slide zoom), although I guess these could be removed. The Morton County example is good. The reason I was thinking dbox.js was that it is fast & simple. But once I get up to that stage I will investigate all options. Can someone just help me understand how the postgresql database could be queried for data within a specific date range? I am thinking that the user could specify the dates in an initialisation page, and these dates could then be stored at hidden CGI variables (or javascript variables?). But if the data sources are specified in the mapfile, how do I pass the dates to postgresql? Sorry if my lack of knowledge is showing... Thanks again for the responses. Tim Mashford. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From richard.greenwood at gmail.com Wed Feb 27 05:51:54 2008 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed, 27 Feb 2008 06:51:54 -0700 Subject: [mapserver-users] Advice for MapServer project In-Reply-To: <22ed3890802262344i4392e6d4yb87a890c440fbc71@mail.gmail.com> References: <22ed3890802260349i3b54e953yb5a6d2c8023edb3b@mail.gmail.com> <47C4667C.1020508@gritechnologies.com> <20080226210201.GA24941@alta.metacarta.com> <47C48EEA.7020904@gritechnologies.com> <22ed3890802262344i4392e6d4yb87a890c440fbc71@mail.gmail.com> Message-ID: On Wed, Feb 27, 2008 at 12:44 AM, Timothy Mashford wrote: > Can someone just help me understand how the postgresql database could > be queried for data within a specific date range? I am thinking that > the user could specify the dates in an initialisation page, and these > dates could then be stored at hidden CGI variables (or javascript > variables?). But if the data sources are specified in the mapfile, how > do I pass the dates to postgresql? There are a couple mechanisms. CGI MapServer has a mode=itemnquery which accepts a query string. Here's an example: http://www2.tetonwyo.org/mapserver/mapserv? mode=itemnquery &qitem=pidn &qstring=22-41-16-32-4-41-011 &qlayer=ownership_spatial &mapext=shapes &savequery=true This mode will highlight objects meeting the query criteria, and will 'zoom' the map to minimum bounding rectangle of the select objects. Another way that I use is to pass the query into the map file with parameter substitution, for example, in the map file a layer defined something like: Layer . . . CONNECTIONTYPE postgis CONNECTION "user=abc password=xyz dbname=pgDB host=localhost" FILTER "%datefilter%" DATA "the_geom FROM ownership_view USING SRID=2241 USING UNIQUE gid" . . . END And your query string would look something like: datefilter=(date BETWEEN 9/1/1955 AND 9/1/1965) That probably needs quoted/escaped, but the point is that the map file FILTER keyword can apply a query and that the %parameter% syntax transfer a parameter from a URL query string into a map file. dBox is a good, stable tool which I have used for years. But that's not to suggest that it is better than OpenLayers, GeoMoose, MapBuilder, etc. Note also that via OGR MapServer can read MapInfo .TAB vector files. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From mlinden at zeelandnet.nl Wed Feb 27 06:04:45 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Wed, 27 Feb 2008 15:04:45 +0100 Subject: [mapserver-users] Advice for MapServer project In-Reply-To: <22ed3890802262344i4392e6d4yb87a890c440fbc71@mail.gmail.com> References: <22ed3890802260349i3b54e953yb5a6d2c8023edb3b@mail.gmail.com> <47C4667C.1020508@gritechnologies.com> <20080226210201.GA24941@alta.metacarta.com> <47C48EEA.7020904@gritechnologies.com> <22ed3890802262344i4392e6d4yb87a890c440fbc71@mail.gmail.com> Message-ID: <47C56DFD.9030809@zeelandnet.nl> Timothy Mashford schreef: > Thanks to everyone for their input. > > I have seen OpenLayers, I am not sure it is suitable as I really > require a zoom-box tool (not shift-click), and also a separate layer > control. > The zoombox tool is available. Please check http://www.openlayers.org/dev/examples/controls.html, there is a zoombox button (just above the pan hand). Click it and start dragging. > I have found GeoMoose to be fairly slow(?), and also full of features > I don't require (e.g. slide zoom), although I guess these could be > removed. The Morton County example is good. > > The reason I was thinking dbox.js was that it is fast & simple. But > once I get up to that stage I will investigate all options. > I don't know about GeoMoose, but in Openlayers you can retrieve all layers at once from a mapserver, or you can add layers through javascript. The second will speed up drawing the map because layers will be sequentially loaded. If your base layer is fast, users will get the idea the whole map is faster. Another thing is that in OpenLayers you can use tiled and untiled for your WMS server. Tiled means your mapwindow (+ an extra invisible border) is split in 9 pieces. These pieces are loaded sequential. Untiled means that a single image is retrieved from mapserver. You can mix the both. Say that you load the big topograhic map tiled and your own smaller datasets untiled. It will give a nice speedy feel. The extra border has the effect that when you pan half a mapwindow to the side, the data is already loaded. Again, another way to give user-experience a feeling of speed. > Can someone just help me understand how the postgresql database could > be queried for data within a specific date range? I am thinking that > the user could specify the dates in an initialisation page, and these > dates could then be stored at hidden CGI variables (or javascript > variables?). But if the data sources are specified in the mapfile, how > do I pass the dates to postgresql? > Date/Time functions for postgres are described here: DATA "the_geom FROM ( SELECT this, that, other, the_geom FROM my_daterange_table_with_geometry WHERE mydateColumnValue < %someDatefromOpenlayers% and mydateColumnValue > %someDatefromOpenlayers% - integer '30' ) AS foo USING UNIQUE id USING SRID=4326" (Example on how to get a time-frame of 30 days around a given date.) > Sorry if my lack of knowledge is showing... Thanks again for the responses. > > Tim Mashford. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Tom.Kralidis at ec.gc.ca Wed Feb 27 06:14:18 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Wed, 27 Feb 2008 09:14:18 -0500 Subject: [MAPSERVER-USERS] WMS - GetCapabilities and version In-Reply-To: <15699789.post@talk.nabble.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF06B@ecburexch1.ontario.int.ec.gc.ca> > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > P?l Kristensen > Sent: 26 February, 2008 3:56 PM > To: mapserver-users at lists.osgeo.org > Subject: [MAPSERVER-USERS] WMS - GetCapabilities and version > > > Hi! > > I did a build of mapserver nightly this evening and noticed > some changed WMS behavior compared to my last build (approx 2 > months ago). The old build does reply to at GetCapabilities > request that misses the version parameter with a version > 1.1.1 capabilities xml-file. The new build fails withe an > error message that says that the version parameter is > missing. According to the WMS 1.1.1 standard version is a > mandatory parameter so the new behavior is correct according > to the standard. Unfortunately many of the clients around do > not comply with the standard, and of course the server gets the blame. > > I guess this issue fall into the ongoing compliance > discussion (RFC-35). But what has changed over the last > couple of month that introduced this new behavior, and is > there some keywords that can be set to achieve the old behavior? Fixed. http://trac.osgeo.org/mapserver/ticket/2528 Thanks for catching this. ..Tom From robe.dnd at cityofboston.gov Wed Feb 27 06:25:47 2008 From: robe.dnd at cityofboston.gov (Obe, Regina) Date: Wed, 27 Feb 2008 09:25:47 -0500 Subject: [mapserver-users] Advice for MapServer project In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5015AD46F@s-sp22.pca.state.mn.us> References: <22ed3890802260349i3b54e953yb5a6d2c8023edb3b@mail.gmail.com><47C4667C.1020508@gritechnologies.com><20080226210201.GA24941@alta.metacarta.com><47C48EEA.7020904@gritechnologies.com><22ed3890802262344i4392e6d4yb87a890c440fbc71@mail.gmail.com> <6246727221874A4FB8D3F9BBC37D9BD5015AD46F@s-sp22.pca.state.mn.us> Message-ID: <53F9CF533E1AA14EA1F8C5C08ABC08D20340ECAD@ZDND.DND.boston.cob> If you are checking out postgis tutorials, you might want to look at the 2007 workshop Paul did of similar vain. The way you do things in PostGIS and Mapserver has changed a bit between 2005 and 2007 so you might develop some bad habits looking at the older tutorial. http://www.foss4g2007.org/workshops/W-04/ Hope that helps, Regina -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fawcett, David Sent: Wednesday, February 27, 2008 8:42 AM To: Timothy Mashford; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Advice for MapServer project Tim, Take a look at the PostGIS workshop from the 2005 conference. http://mapserver.gis.umn.edu/community/conferences/MUM3/workshop/postgis / Paul did an excellent job with it and I still think that it is a great primer. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of Timothy Mashford Sent: Wed 2/27/2008 1:44 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Advice for MapServer project Thanks to everyone for their input. I have seen OpenLayers, I am not sure it is suitable as I really require a zoom-box tool (not shift-click), and also a separate layer control. I have found GeoMoose to be fairly slow(?), and also full of features I don't require (e.g. slide zoom), although I guess these could be removed. The Morton County example is good. The reason I was thinking dbox.js was that it is fast & simple. But once I get up to that stage I will investigate all options. Can someone just help me understand how the postgresql database could be queried for data within a specific date range? I am thinking that the user could specify the dates in an initialisation page, and these dates could then be stored at hidden CGI variables (or javascript variables?). But if the data sources are specified in the mapfile, how do I pass the dates to postgresql? Sorry if my lack of knowledge is showing... Thanks again for the responses. Tim Mashford. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ----------------------------------------- The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer. From pal.kristensen at statkart.no Wed Feb 27 06:40:29 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Wed, 27 Feb 2008 06:40:29 -0800 (PST) Subject: [MAPSERVER-USERS] WMS - GetCapabilities and version In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF06B@ecburexch1.ontario.int.ec.gc.ca> References: <15699789.post@talk.nabble.com> <2DC5CCA14756424BBBEE8B4B2E4A682F036CF06B@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <15714611.post@talk.nabble.com> Hi! Thanks! I will do a new build tomorrow. I really appreciate the quick response. Regards, P?l Kristensen Kralidis,Tom [Burlington] wrote: > > > >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> P?l Kristensen >> Sent: 26 February, 2008 3:56 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [MAPSERVER-USERS] WMS - GetCapabilities and version >> >> >> Hi! >> >> I did a build of mapserver nightly this evening and noticed >> some changed WMS behavior compared to my last build (approx 2 >> months ago). The old build does reply to at GetCapabilities >> request that misses the version parameter with a version >> 1.1.1 capabilities xml-file. The new build fails withe an >> error message that says that the version parameter is >> missing. According to the WMS 1.1.1 standard version is a >> mandatory parameter so the new behavior is correct according >> to the standard. Unfortunately many of the clients around do >> not comply with the standard, and of course the server gets the blame. >> >> I guess this issue fall into the ongoing compliance >> discussion (RFC-35). But what has changed over the last >> couple of month that introduced this new behavior, and is >> there some keywords that can be set to achieve the old behavior? > > Fixed. http://trac.osgeo.org/mapserver/ticket/2528 Thanks for catching > this. > > ..Tom > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/WMS---GetCapabilities-and-version-tp15699789p15714611.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bfraser at geoanalytic.com Wed Feb 27 09:21:56 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 27 Feb 2008 10:21:56 -0700 Subject: [mapserver-users] Re: Query Regrading Map Server References: <523fe0bf0802262116l58d22a2ch1f9a5254de32b93c@mail.gmail.com> Message-ID: <019501c87965$40b8a680$140002c0@shark> Kunal, If OpenGL is a strict requirement, you may want to look at VTP (www.vterrain.org), or ossimPlanet (www.ossim.org). Neither allow editing of map data but you can add/delete layers. I think they will do the other requirements you listed. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Kunal Malik" To: "vishal nagpal" Cc: Sent: Tuesday, February 26, 2008 10:54 PM Subject: [mapserver-users] Re: Query Regrading Map Server > Hi Vishal!! > 1. > As far as the compatibilty with the opengl is concerned i am asking this > because my display module is made on opengl and i have to display the raster > & the vector image on it..... > 2. > we don't have to use the web-server as our application will run on intranet > ..we want that mapserver to interact with opengl.. > 32 client take the map from the central map server and display on their > screen which is on opengl.. > can u suggest ..how should i approach this ..i don;t have any idea about the > mapserver programming is concerned... > can u suggest any sample code which i could run on my machine so as to check > the compatibilty, > or any docs that u can refer .. > 3. > I was looking for the grass option ..Do u have any idea ..that does grass > also need the mapserver to maintain the repository of data.,, > ??? > Looking forward for ur Reply. > Thanks > > > On 2/27/08, vishal nagpal wrote: > > > > Hi Kunal, > > 1. I do not have much experience on grass. but i hv read a little about > > it. > > 2. All the six requirements mentioned below can be done with both Grass > > and Mapserver. > > 3. What I know, GRASS is a very good and exhaustive software. > > Mapserver also has lot of features that GRASS has. > > 3. Mapserver is an ideal solution if you wish to use web based service. > > However, it also works on a Server-client model also. > > 4. I am not too sure why you need compatibility with OpenGL. Probably you > > wish to see the data in 3D. Both these servers represent data in 2D only. > > all the best > > Regards, > > Vishal > > > > > > > > On Tue, Feb 26, 2008 at 7:01 PM, Kunal Malik > > wrote: > > > > > Hi Vishal !! > > > I am working on Grass Tool & also Looking for map-server. > > > I have following requirement.,. > > > 1)Importing of Raster & Vector Maps. > > > 2) Re-Projection > > > 3)Create & Edit layer. > > > 4)Display Maps > > > 5)Set Transparency > > > 6)Stiching of Maps > > > and so on.. > > > I have to use the GIS feature,, > > > I am told to look all this on open-source tool,,,so i am looking it on > > > Grass and Mapserver..my display is on OpenGL..also i have to take care that > > > tool i use should work with opengl.. > > > can u suggest that going for grass & Mapserver..would able to resolve > > > all the requirements. > > > Thanks > > > > > > On 2/26/08, vishal nagpal wrote: > > > > > > > > hi i hv seen ur queries in mapserver list how can i help u. i hav been > > > > wkg on mapserver for around six months now, > > > > Regards, > > > > Vishal > > > > > > > > > > > > > > > > -- > > > Thanks & Regards > > > > > > Kunal Malik > > > 09871147561 > > > > > > > > > -- > Thanks & Regards > > Kunal Malik > 09871147561 > ------------------------------------------------------------ -------------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From nbest at lanworth.com Wed Feb 27 10:05:39 2008 From: nbest at lanworth.com (Neil Best) Date: Wed, 27 Feb 2008 12:05:39 -0600 Subject: [mapserver-users] can an ogr tileindex refer to a PG table? In-Reply-To: <47BDF121.5060907@zeelandnet.nl> References: <47BDBAEC.6010100@lanworth.com> <47BDF121.5060907@zeelandnet.nl> Message-ID: <47C5A673.8050502@lanworth.com> Milo van der Linden wrote: > Hello Neil, > > One thing you can do to create some sort of tileindex that can be part > of the where clause is create a view in postGIS that contains the > boundingboxes of a table based upon an attribute: > > CREATE VIEW MYBBOX AS > SELECT > table1.uniqueID, > extent(table1.the_geom) as box, > box2d(scale(extent(table1.the_geom),1.01,1.01)) as bbox > FROM > table1 > GROUP BY > table1.UniqueID; > > Where BOX is the exact extent and bbox is the extent + a little margin, > this I used to zoom with an area around it because my original MYBBOX > view was based on a points table. > > This view could be used as a helper to build the right queries. > THanks for your note, Milo. I am pursuing your suggestion but having trouble optimizing the queries. It would probably be more apporpriate to continue this thread on postgis-users so I am cc-ing there as well. First, I should mention that I believe your example has a flaw that you might want to consider. As I read it the PostGIS scale() function multiplies the x-coordinates by the first factor and the y-coordinates by the second resulting in a scaling relative to the origin rather than an expansion of the geometry relative to its centroid. PostGIS expand() does this but by taking a single argument and using that as an offset in all directions, not a multiplier. The problem that I am having is that the query planner is not taking advantage of the sub-query on my tile index that is supposed to provide the short list of attributes to drive the constraint exclusion feature for table partitioning. EXPLAIN ANALYZE SELECT count(*) FROM mapunits WHERE areasymbol IN (SELECT areasymbol AS a FROM tileindex WHERE areasymbol ~ '^IA' AND wkb_geometry && geomFromText( 'POLYGON((-47671.875 2252234.375, -40343.750 2252234.375, -40343.750 2259562.500, -47671.875 2259562.500, -47671.875 2252234.375))', 32767)); The sub-query by itself is blindingly fast ( < 0.1s) and returns a single value 'IA119'. If I write: EXPLAIN ANALYZE SELECT count(*) FROM mapunits WHERE areasymbol IN ('IA119'); it also comes back relatively quickly. Constraint exclusion kicks in and limits the scan to only children whose table constraints satisfy the WHERE clause. The query plan for the full query above indicates that it is doing a "Hash IN Join" with "Hash Cond: (ssurgo.mapunits.areasymbol = tileindex.areasymbol)" and scanning all of the children of mapunits before using the results of the sub-query to limit which children is scans. The big question: How do I rewrite this to take advantage of constraint exclusion in a spatial query? Ultimately I will use Mapserver CGI substitution to replace the constants in the WKT into the bounding box of the requested map, making the sub-query capable of returning variable results of indeterminate length. This is not the full query of my application, rather a test that I cooked up to try to understand the behavior of the query planner. As it is my Mapserver application performs tolerably well without trying to optimize for constraint exclusion, presumably because it is checking the bounding box of the spatial query against the spatial index of each child table and moving through them relatively quickly, but it seems that there should still be some performance gains to be had. Thanks, everyone. Neil From matthew.pettis at gmail.com Wed Feb 27 10:42:26 2008 From: matthew.pettis at gmail.com (mpettis) Date: Wed, 27 Feb 2008 10:42:26 -0800 (PST) Subject: [MAPSERVER-USERS] Roads: road style and shields Message-ID: <15720008.post@talk.nabble.com> REPOSTING: not sure this is getting to the right email lists due to migration... Hi, I have been browsing the archives for examples of nice (read: googlish) ways of rendering roads and using shields (like the interstate shield, the US Highway shield) in a mapfile. I've seen some work on googlish map layout by Bob Basques (sp?), but is anyone willing to post an example of how to use highway shields in rendering a map? And, examples of nice road renderings, in addition to Bob's, are welcome. Thanks, Matt -- View this message in context: http://www.nabble.com/Roads%3A-road-style-and-shields-tp15720008p15720008.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gregor at hostgis.com Wed Feb 27 10:48:10 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed, 27 Feb 2008 11:48:10 -0700 Subject: [MAPSERVER-USERS] Roads: road style and shields In-Reply-To: <15720008.post@talk.nabble.com> References: <15720008.post@talk.nabble.com> Message-ID: <47C5B06A.1050606@hostgis.com> > I have been browsing the archives for examples of nice (read: googlish) ways > of rendering roads and using shields I hate to be a metoo, but if someone does have such available, would you please post it to the Symbology Exchange on the Mapserver site (I think it's in HOWTOs)? The goal there was to collect nice symbologies and have them in a publicly-accessible shared splace. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From rwburgholzer at deq.virginia.gov Wed Feb 27 11:00:49 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed, 27 Feb 2008 14:00:49 -0500 Subject: [mapserver-users] PHP-mapscript Dynamic Mapfile Object Message-ID: <6C097DA58429B743A67070F98BE73A37025DD6F9@deqex01.deq.local> Are there any projects out there that have assembled a simple PHP-class to handle the dynamic generation of a mapfile? I am thinking something that would have properties akin to the mapfile itself, settable, then a method like "render" that would output the file to be used by the mapserv process. Any info/links on this, or an explanation of why I have rocks in my head for thinking about it, are welcome, r.b. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cww at denterprises.org Wed Feb 27 11:02:00 2008 From: cww at denterprises.org (Colin Wetherbee) Date: Wed, 27 Feb 2008 14:02:00 -0500 Subject: [mapserver-users] Dynamic mapping with CGI parameters In-Reply-To: <29879c6d0802270223k23bb2216le2476122cb0eb153@mail.gmail.com> References: <47C47392.9080007@denterprises.org> <29879c6d0802270223k23bb2216le2476122cb0eb153@mail.gmail.com> Message-ID: <47C5B3A8.9000907@denterprises.org> Roberto Bianconi wrote: > I'm probably missing something, but I don't see the problem with Approach #1. > It gives you total control on your application. My approach #1 was contingent on the part about not actually creating individual map files on the disk. Thank you for your long reply, though. Colin From jfuch at indec.mecon.gov.ar Wed Feb 27 11:28:29 2008 From: jfuch at indec.mecon.gov.ar (Fuchs Juan Carlos) Date: Wed, 27 Feb 2008 17:28:29 -0200 Subject: RV: [mapserver-users] MapServer consuming 100% CPU Message-ID: -----Mensaje original----- De: Fuchs Juan Carlos Enviado el: Mi?rcoles, 27 de Febrero de 2008 04:07 p.m. Para: 'Desarrollo Desarrollo' CC: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] MapServer consuming 100% CPU Sergio: One's more: in my .map ( http://200.51.91.231 .) I separated all lines/poligons from labels. Say: layer Rivers Tipe Line Group Aqua... several classes the first for the big and important ones the second for the adyascent and permanent rivers the last for the little ones each one restricted with minscale / maxscale layer Names Group Aqua type Annotation... same classes, same maxscale / minscale restrictions just different type sizes for each one Remember that Truetype is a bit slower that Bitmap, but it's worth the prize! The group statement is to turn on / off in only one call. On the other side it let's you track down the render time for each layer so you will have a better control. I never tried the new toy ANGLE Follow Its supoused to follow the line path along the river !! If we are struggling to beat down the render time, keep it simple but if you want it to be nice ... :) In reference to your Windows+ASP/Linux+Apache question, in my experience it's quite the same diferences i made comes from intensive (really intensive) map file tunning!. http://mapserver.gis.umn.edu/docs/howto/mapfiletuning (It's is a must read!) happy testing! JC. -----Mensaje original----- De: Desarrollo Desarrollo [mailto:devmapserver at gmail.com] Enviado el: Mi?rcoles, 27 de Febrero de 2008 08:39 a.m. Para: Fuchs Juan Carlos CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] MapServer consuming 100% CPU Hello! Thank you for your answer. I think you are right, please take a look in this thread to the answer I've post to Ritesh Ambastha, I've reproduce the three tests using PostGRE / PostGIS and although is the fastest data access the labeling is still the hard work to MapServer. I'm going to play with MINFEATURESIZE, MINDISTANCE and all the options that Mapserver allows to use, and I'll report back here the results, but just one thing more to ask, Is this the normal behavior of Mapserver?, I'm trying to confirm that if you do the same test with mapserver, no matter if you are running in linux or windows, I wish to know that my Mapserver has no bugs or incorrect / old libraries that makes labeling be slower. Thank you very much, best regards Sergio 2008/2/26, Fuchs Juan Carlos < jfuch at indec.mecon.gov.ar >: Hi Sergio: PostGis maybe a good solution, in terms of stability (means system do not crash, so often :) ). But in concern with line labeling, things become bad. Hydrologic data are a bunch of lines with irregular shape, and very often segmented. I mean that the same river could have trillons of segments in his path, and in the same manner, trillons of labels !! Try with some restrictions to the labeling work, say not allowing to labeling features under 5 say 7 pixels MINFEATURESIZE Minimum size a feature must be to be labeled. Given in pixels. For line data the overall length of the displayed line is used, for polygons features the smallest dimension of the bounding box is used. "Auto" keyword tells MapServer to only label features that are larger than their corresponding label. Available for cached labels only. Value: [integer|auto] say not allowing to repeat labeling features in spaces of 20 say 25 pixels MINDISTANCE Minimum distance between duplicate labels. Given in pixels. Value: [integer] Sometimes a lit bit of map file tuning is necesary Hope its helps, JC. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam420 at yahoo.com Wed Feb 27 12:15:36 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Wed, 27 Feb 2008 12:15:36 -0800 (PST) Subject: [MAPSERVER-USERS] Mailing List Migration In-Reply-To: <15702356.post@talk.nabble.com> References: <15702356.post@talk.nabble.com> Message-ID: <15722051.post@talk.nabble.com> rich.fromm wrote: > > Why do posts keep showing up on the old list? Should it perhaps be forced > to > be read only? > Ah, I see from a post to the old list that this is intentional, and scheduled to stop at the end of February (in two days): http://www.nabble.com/Mailing-List-Shutdown-to15721478.html I would suggest that an autoreply pointing to the new list might be better than a pure bounce at least in the short term. Or maybe that's already planned... - Rich -- View this message in context: http://www.nabble.com/Re%3A-Mailing-List-Migration-tp15702356p15722051.html Sent from the Mapserver - User mailing list archive at Nabble.com. From absarzaidi at yahoo.com Wed Feb 27 12:25:55 2008 From: absarzaidi at yahoo.com (absar ali) Date: Wed, 27 Feb 2008 12:25:55 -0800 (PST) Subject: Fwd: Re: [MAPSERVER-USERS] Mailing List Migration Message-ID: <427836.47695.qm@web56802.mail.re3.yahoo.com> Please remove my email from this list absarzaidi at yahoo.com Note: forwarded message attached. --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded message was scrubbed... From: "rich.fromm" Subject: Re: [MAPSERVER-USERS] Mailing List Migration Date: Wed, 27 Feb 2008 12:15:36 -0800 (PST) Size: 3051 URL: From warmerdam at pobox.com Wed Feb 27 13:27:53 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 27 Feb 2008 16:27:53 -0500 Subject: [mapserver-users] Re: Image shrinking problem In-Reply-To: References: Message-ID: <47C5D5D9.1070506@pobox.com> Juozas Urbonas wrote: > I'm sorry, I forgot to mention, that I'm creating GDAL driver, which I'm > trying to use with MapServer. > > Here is the gdalinfo for my map: > Driver: AkisAx/Akis Map Link (.mln) ... > Hi All, > > When I'm requesting some image using WMS, my overridden IRasterIO > gets called with nBufXSize and nBufYSize nearly double the size I'm > requesting in WMS call and in the process image returned by WMS gets > shrinked. What may cause this problem? > I'm expecting nBufXSize and nBufYSize to be approximately the same > size as in WMS request. Juozas, I seem to have missed this question the first time around. If you request the image by WMS in it's native coordinate system then MapServer should do a RasterIO() request to the GDAL driver suitable for direct application to the WMS image buffer. That is the buffer xsize/ysize will be no larger than the requested image. But if you request in another coordinate system, or if MapServer decides to go through the "general resampler" (ie. mapresample.c) for any other reason (such as non-square pixel request, rotated image, RESAMPLE=) then things are different. In this case mapresample.c will request the image for the region of interest at approximately double the final request resolution and then sample from that buffer. You can control this "oversampling ratio" using the OVERSAMPLE_RATIO PROCESSING directive. eg. PROCESSING "OVERSAMPLE_RATIO=1.1" Note that I pull at double resolution in the hopes of avoiding some aliases issues with fetching the data at nearly the target resolution before going through the resampler. So you may see image quality degrade if you pick a modest oversample ratio. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From Bob.Bruce at gov.mb.ca Wed Feb 27 14:52:51 2008 From: Bob.Bruce at gov.mb.ca (Bruce, Bob (CON)) Date: Wed, 27 Feb 2008 16:52:51 -0600 Subject: [MAPSERVER-USERS] Roads: road style and shields In-Reply-To: <15720008.post@talk.nabble.com> References: <15720008.post@talk.nabble.com> Message-ID: <2D7230119FDBCE4DB0984678195B920033B1F2@OC1EX04.ME.MBGOV.CA> Hi: is there a way to put images of what the shields and renderings look like into the symbology exchange as well as the mapfile definitions? I have a few symbols and renderings to share but I'm now sure if they are substantially different than what is there already. Bob -----Original Message----- From: mpettis [mailto:matthew.pettis at gmail.com] Sent: Wednesday, 27 February, 2008 12:42 PM To: mapserver-users at lists.osgeo.org Subject: [MAPSERVER-USERS] Roads: road style and shields REPOSTING: not sure this is getting to the right email lists due to migration... Hi, I have been browsing the archives for examples of nice (read: googlish) ways of rendering roads and using shields (like the interstate shield, the US Highway shield) in a mapfile. I've seen some work on googlish map layout by Bob Basques (sp?), but is anyone willing to post an example of how to use highway shields in rendering a map? And, examples of nice road renderings, in addition to Bob's, are welcome. Thanks, Matt -- View this message in context: http://www.nabble.com/Roads%3A-road-style-and-shields-tp15720008p1572000 8.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Bryn.Roberts at forestrytas.com.au Wed Feb 27 17:33:29 2008 From: Bryn.Roberts at forestrytas.com.au (Bryn Roberts) Date: Thu, 28 Feb 2008 12:33:29 +1100 Subject: [mapserver-users] PHP MapScript AGG Message-ID: <47C6AA18.208A.008D.0@forestrytas.com.au> Hello All, I've been using MapServer and MapScript both for work and home projects for a couple of years now, and am delighted with the quality of maps produced by MapServer 5 using AGG. However, I have not been able to work out how to specify a map to be rendered using the AGG driver from within PHP MapScript. In my particular case I am creating a Map Object in PHP without a Map file. Everything works fine but the following two lines seem not to trigger AGG rendering (I have never tried setting output format options from within MapScript before and was unable to find any examples). ..... $map->outputformat->setOption("name", "AGG"); $map->outputformat->setOption("imagemode", MS_IMAGEMODE_RGB); $map->outputformat->setOption("driver", "AGG/PNG"); ..... Can somebody set me straight and point out where I am going wrong? Thanks in advance, Bryn ----------------------------------------------------- This transmission is intended solely for the person or organisation to whom it is addressed. It is confidential and may contain legally privileged information. If you have received this transmission in error,you may not use, copy or distribute it. Please advise us by return e-mail or by phoning 61 3 62338203 and immediately delete the transmission in its entirety. We will meet your reasonable expenses of notifying us. Despite our use of anti-virus software, Forestry Tasmania cannot guarantee that this transmission is virus-free. ----------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.b at gritechnologies.com Wed Feb 27 20:09:01 2008 From: bob.b at gritechnologies.com (Bob Basques) Date: Wed, 27 Feb 2008 22:09:01 -0600 Subject: [MAPSERVER-USERS] Roads: road style and shields In-Reply-To: <15720008.post@talk.nabble.com> References: <15720008.post@talk.nabble.com> Message-ID: <47C633DD.8080408@gritechnologies.com> There is an example MAPFILE in the download of the Googlish demo pkg. on the GeoMoose site. bobb mpettis wrote: > REPOSTING: not sure this is getting to the right email lists due to > migration... > > Hi, > > I have been browsing the archives for examples of nice (read: googlish) ways > of rendering roads and using shields (like the interstate shield, the US > Highway shield) in a mapfile. I've seen some work on googlish map layout by > Bob Basques (sp?), but is anyone willing to post an example of how to use > highway shields in rendering a map? > > And, examples of nice road renderings, in addition to Bob's, are welcome. > > Thanks, > Matt > From kunal.malik81 at gmail.com Wed Feb 27 20:23:58 2008 From: kunal.malik81 at gmail.com (Kunal Malik) Date: Thu, 28 Feb 2008 09:53:58 +0530 Subject: [mapserver-users] Re: Query Regrading Map Server In-Reply-To: <019501c87965$40b8a680$140002c0@shark> References: <523fe0bf0802262116l58d22a2ch1f9a5254de32b93c@mail.gmail.com> <019501c87965$40b8a680$140002c0@shark> Message-ID: Hi Brent!! U have Written that it does not allow the layer & its objects. if we were having the requirement of editing the layer.is that not possible.Moreover i want to know that does MapServer + openGl works for the following . 1.Import & Export Maps 2.Create,Delete & Edit Layers 3.ReProjection of Data. 4.Conversion of Map from one datum & projection to Datum wgs84 & Proejction LCC. 5.Raster to Vector conversion & vice versa 6. Set Transparency. 7. Layer priority, Please Suggest the requirement could be fulfliied by Mapserver and all the data would be displayed on OpenGL. could grass be helpful in this regard?? Thanks On 2/27/08, Brent Fraser wrote: > > Kunal, > > If OpenGL is a strict requirement, you may want to look at > VTP (www.vterrain.org), or ossimPlanet (www.ossim.org). > Neither allow editing of map data but you can add/delete > layers. I think they will do the other requirements you > listed. > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > > ----- Original Message ----- > From: "Kunal Malik" > To: "vishal nagpal" > Cc: > Sent: Tuesday, February 26, 2008 10:54 PM > Subject: [mapserver-users] Re: Query Regrading Map Server > > > > Hi Vishal!! > > 1. > > As far as the compatibilty with the opengl is concerned i > am asking this > > because my display module is made on opengl and i have to > display the raster > > & the vector image on it..... > > 2. > > we don't have to use the web-server as our application > will run on intranet > > ..we want that mapserver to interact with opengl.. > > 32 client take the map from the central map server and > display on their > > screen which is on opengl.. > > can u suggest ..how should i approach this ..i don;t have > any idea about the > > mapserver programming is concerned... > > can u suggest any sample code which i could run on my > machine so as to check > > the compatibilty, > > or any docs that u can refer .. > > 3. > > I was looking for the grass option ..Do u have any idea > ..that does grass > > also need the mapserver to maintain the repository of > data.,, > > ??? > > Looking forward for ur Reply. > > Thanks > > > > > > On 2/27/08, vishal nagpal wrote: > > > > > > Hi Kunal, > > > 1. I do not have much experience on grass. but i hv read > a little about > > > it. > > > 2. All the six requirements mentioned below can be done > with both Grass > > > and Mapserver. > > > 3. What I know, GRASS is a very good and exhaustive > software. > > > Mapserver also has lot of features that GRASS has. > > > 3. Mapserver is an ideal solution if you wish to use web > based service. > > > However, it also works on a Server-client model also. > > > 4. I am not too sure why you need compatibility with > OpenGL. Probably you > > > wish to see the data in 3D. Both these servers represent > data in 2D only. > > > all the best > > > Regards, > > > Vishal > > > > > > > > > > > > On Tue, Feb 26, 2008 at 7:01 PM, Kunal Malik > > > > wrote: > > > > > > > Hi Vishal !! > > > > I am working on Grass Tool & also Looking for > map-server. > > > > I have following requirement.,. > > > > 1)Importing of Raster & Vector Maps. > > > > 2) Re-Projection > > > > 3)Create & Edit layer. > > > > 4)Display Maps > > > > 5)Set Transparency > > > > 6)Stiching of Maps > > > > and so on.. > > > > I have to use the GIS feature,, > > > > I am told to look all this on open-source tool,,,so i > am looking it on > > > > Grass and Mapserver..my display is on OpenGL..also i > have to take care that > > > > tool i use should work with opengl.. > > > > can u suggest that going for grass & Mapserver..would > able to resolve > > > > all the requirements. > > > > Thanks > > > > > > > > On 2/26/08, vishal nagpal wrote: > > > > > > > > > > hi i hv seen ur queries in mapserver list how can i > help u. i hav been > > > > > wkg on mapserver for around six months now, > > > > > Regards, > > > > > Vishal > > > > > > > > > > > > > > > > > > > > > -- > > > > Thanks & Regards > > > > > > > > Kunal Malik > > > > 09871147561 > > > > > > > > > > > > > > > -- > > Thanks & Regards > > > > Kunal Malik > > 09871147561 > > > > > > ------------------------------------------------------------ > -------------------- > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- Thanks & Regards Kunal Malik 09871147561 -------------- next part -------------- An HTML attachment was scrubbed... URL: From kreshna_iceheart at yahoo.com Thu Feb 28 02:26:47 2008 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Thu, 28 Feb 2008 02:26:47 -0800 (PST) Subject: [mapserver-users] Printing from MapServer with parameters? Message-ID: <749354.77994.qm@web56102.mail.re3.yahoo.com> Hi, sorry for the newbie question again. I need to print from MapServer (using a Print button on the web page), but I need to: 1) specify the paper size (A3, A4, etc) 2) specify the map area size to be printed 3) specify which layer(s) to be printed Thus, I will need to print and pass the necessary parameters that will affect how the map will be printed. The problem is, I'm a newbie, and I'm completely unfamiliar with PHP Map Script. a) can I just use "standard" Map Server CGI parameters and using JavaScript to print? But if that's the case, can I specify which layer(s) to print if I'm printing that way? b) or should I use PHP Map Script for the purpose? c) anyone has sample codes to share, please? Many thanks, -Kresh __________________________________________________________________ So be it. If saying "NO" means being alone, then to hell with love, with women, with marriage, with God, religions, bars, nightclubs, computer games, and all the shit life keeps pumping at me. I'll walk alone, but with freedom and a healed pride. ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping From dave.weaver at zen.co.uk Thu Feb 28 03:21:08 2008 From: dave.weaver at zen.co.uk (Dave Weaver) Date: Thu, 28 Feb 2008 11:21:08 +0000 Subject: [mapserver-users] Symbol placement inconsistency. Message-ID: MapServer doesn't seem to be entirely consistent with placement of symbols. Consider these 2 overlapping images: http://www.screenshots.cc/view_image/5437e415/thayer-east.png http://www.screenshots.cc/view_image/b0aae448/thayer-west.png This is causing me problems. I need to generate lots of map tiles covering a large area. These tiles need to be able to be displayed next to each other seamlessly. To avoid partial symbols on the edge of tiles, I'm rendering tiles too large then trimming off a 256-pixel border around each. However, when symbols are plotted in different places on adjacent tiles, I'm getting partial symbols around the edge of my trimmed tiles which *don't* have a corresponding partial symbol on the adjacent tile. (if you see what I mean). I'm using MapServer 5.0.0 from the ms4w package. What can I do to cure my problem? Thanks, Dave. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Thu Feb 28 07:32:23 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 28 Feb 2008 08:32:23 -0700 Subject: [mapserver-users] Re: Query Regrading Map Server References: <523fe0bf0802262116l58d22a2ch1f9a5254de32b93c@mail.gmail.com> <019501c87965$40b8a680$140002c0@shark> Message-ID: <014401c87a1f$1d949230$140002c0@shark> Kunal See my comments below... Brent Fraser GeoAnalytic Inc. Calgary, Alberta > U have Written that it does not allow the layer & its objects. > if we were having the requirement of editing the layer.is that not > possible. No, it is not possible. > Moreover i want to know that does MapServer + openGl works for the following . OpenGL is a LIBRARY (not an application program) for visualization of graphic data, usually 3D data. Mapserver is a server application program that creates 2D data files. It does not use OpenGL. It does not have an interactive GUI. An example of an OpenGL application program that uses OpenGL is ossimPlanet. It can read raster files created by Mapserver. As for Mapserver: > > 1.Import & Export Maps Mapserver can read variuos geographic data formats. > 2.Create,Delete & Edit Layers No. > 3.ReProjection of Data. Yes. > 4.Conversion of Map from one datum & projection to Datum wgs84 & Proejction LCC. Mapserver can reproject and transform datums of geographic data. > 5.Raster to Vector conversion & vice versa Mapserver can create raster files from vectors. It cannot create vectors from raster. > 6. Set Transparency. Yes. > 7. Layer priority, Yes. > > Please Suggest the requirement could be fulfliied by Mapserver and all the > data would be displayed on OpenGL. You need to find an OpenGL application program that can deal with geographic data, like ossimPlanet or VTP. > could grass be helpful in this regard?? I don't know. You could ask on the grass users email list. > Thanks & Regards > > Kunal Malik From M.vanderPauw at weer.nl Thu Feb 28 08:01:39 2008 From: M.vanderPauw at weer.nl (Martijn van der Pauw) Date: Thu, 28 Feb 2008 16:01:39 -0000 Subject: [mapserver-users] lane presentation of highways Message-ID: Hello, I'd like to know how I can plot the 2 seperate directions of a highway (I have the data in the database) in a way that they can be distinguished from each other at all zoomlevels. When you zoomed in a lot, you can always see the different driving directions (lanes), but when you zoom out they overlay each other. Important is that each lane is colored depending the road condition. So, the standard way of plotting a highway doesn't meet our needs. The colors of the 2 seperate driving directions can/will differ. Regards, Waver -- This e-mail is from Meteo Consult B.V., a MeteoGroup company. For more information, see http://www.weer.nl/gebruiksvoorwaarden. This e-mail may contain confidential information. Only the addressee is permitted to read, copy, distribute or otherwise use this e-mail or any attachments. If you have received it in error, please contact the sender immediately. Any opinion expressed in this e-mail is personal to the sender and may not reflect the opinion of MeteoGroup. Any e-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Thu Feb 28 11:54:54 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 28 Feb 2008 13:54:54 -0600 Subject: [mapserver-users] GRID question. Message-ID: <47C6BD2E.163B.00A8.0@ci.stpaul.mn.us> All, What is a grid object in a MAPSERVER MapFile, exactly? I think it's a method of adding in a regularly spaced set of grid lines to a particular projection. My bigger question is, can this be applied towards displaying the National Grid with easting/northing labels? Is anyone working with the National Grid as a layer in their application? Let me know if I need to add more background here. Thanks bobb Bob Basques GIS Systems Developer City of Saint Paul, MN GISmo Powered by GeoMOOSE -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 11946 bytes Desc: not available URL: From bfischer at houstonengineeringinc.com Thu Feb 28 12:10:02 2008 From: bfischer at houstonengineeringinc.com (Fischer, Brian) Date: Thu, 28 Feb 2008 14:10:02 -0600 Subject: [mapserver-users] WFS and typename issue Message-ID: <2EF6E1058C047344B4DE0FD141119167B708C7@hex01.houstonengineeringinc.com> Has anybody else experience problems when using a WFS service where the typename has a space in it? I'm experiencing the WFS layers that don't have spaces work fine with MapServer, but ones that do have spaces produce invalid GML files. Is there an escape character that can be used to represent the space in the typename? The WFS service I am trying to get to work is http://www.datafinder.org/wfsconnector/com.esri.wfs.Esrimap/MN_MetroGIS_ DataFinder_WFS_Water_Resources?request=getcapabilities&service=WFS&versi on=1.0.0 The layer without the space works fine, but the rest do not. Thanks, Brian Brian Fischer, CFM GIS Project Manager Houston Engineering, Inc. | Leave Nothing to ChanceTM 6901 East Fish Lake Road, Suite 140 Maple Grove, MN 55369 Phone: 763.493.4522 / Fax: 763.493.5572 Email: bfischer at houstonengineeringinc.com Website: www.houstonengineeringinc.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From naci0002 at umn.edu Thu Feb 28 12:15:10 2008 From: naci0002 at umn.edu (Pericles S. Nacionales) Date: Thu, 28 Feb 2008 14:15:10 -0600 Subject: [mapserver-users] WFS and typename issue In-Reply-To: <2EF6E1058C047344B4DE0FD141119167B708C7@hex01.houstonengineeringinc.com> References: <2EF6E1058C047344B4DE0FD141119167B708C7@hex01.houstonengineeringinc.com> Message-ID: <47C7164E.7050801@umn.edu> Brian, I take it the "+" character doesn't work? -Perry Fischer, Brian wrote: > Has anybody else experience problems when using a WFS service where the > typename has a space in it? I'm experiencing the WFS layers that don't > have spaces work fine with MapServer, but ones that do have spaces > produce invalid GML files. Is there an escape character that can be > used to represent the space in the typename? > > The WFS service I am trying to get to work is > http://www.datafinder.org/wfsconnector/com.esri.wfs.Esrimap/MN_MetroGIS_ > DataFinder_WFS_Water_Resources?request=getcapabilities&service=WFS&versi > on=1.0.0 > > The layer without the space works fine, but the rest do not. > > Thanks, > Brian > > Brian Fischer, CFM > GIS Project Manager > Houston Engineering, Inc. | Leave Nothing to ChanceTM > 6901 East Fish Lake Road, Suite 140 > Maple Grove, MN 55369 > Phone: 763.493.4522 / Fax: 763.493.5572 > Email: bfischer at houstonengineeringinc.com > > Website: www.houstonengineeringinc.com > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From mattm8305 at yahoo.com Thu Feb 28 12:17:11 2008 From: mattm8305 at yahoo.com (Matt M) Date: Thu, 28 Feb 2008 12:17:11 -0800 (PST) Subject: [mapserver-users] Mapserver equivalent for .NET Message-ID: <887928.23939.qm@web36815.mail.mud.yahoo.com> Anyone know of a .NET equivalent of Mapserver? Thanks -Matt ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping From bfischer at houstonengineeringinc.com Thu Feb 28 12:19:36 2008 From: bfischer at houstonengineeringinc.com (Fischer, Brian) Date: Thu, 28 Feb 2008 14:19:36 -0600 Subject: [mapserver-users] WFS and typename issue In-Reply-To: <47C7164E.7050801@umn.edu> References: <2EF6E1058C047344B4DE0FD141119167B708C7@hex01.houstonengineeringinc.com> <47C7164E.7050801@umn.edu> Message-ID: <2EF6E1058C047344B4DE0FD141119167B708C8@hex01.houstonengineeringinc.com> Just tried it and no + doesn't work. I also tried %20,   and   Brian Fischer Houston Engineering, Inc. Maple Grove, MN (763) 493-4522 -----Original Message----- From: Pericles S. Nacionales [mailto:naci0002 at umn.edu] Sent: Thursday, February 28, 2008 2:15 PM To: Fischer, Brian Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS and typename issue Brian, I take it the "+" character doesn't work? -Perry Fischer, Brian wrote: > Has anybody else experience problems when using a WFS service where > the typename has a space in it? I'm experiencing the WFS layers that > don't have spaces work fine with MapServer, but ones that do have > spaces produce invalid GML files. Is there an escape character that > can be used to represent the space in the typename? > > The WFS service I am trying to get to work is > http://www.datafinder.org/wfsconnector/com.esri.wfs.Esrimap/MN_MetroGI > S_ > DataFinder_WFS_Water_Resources?request=getcapabilities&service=WFS&ver > si > on=1.0.0 > > The layer without the space works fine, but the rest do not. > > Thanks, > Brian > > Brian Fischer, CFM > GIS Project Manager > Houston Engineering, Inc. | Leave Nothing to ChanceTM > 6901 East Fish Lake Road, Suite 140 > Maple Grove, MN 55369 > Phone: 763.493.4522 / Fax: 763.493.5572 > Email: bfischer at houstonengineeringinc.com > > Website: www.houstonengineeringinc.com > > > > > > ---------------------------------------------------------------------- > -- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From mlinden at zeelandnet.nl Thu Feb 28 12:33:43 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Thu, 28 Feb 2008 21:33:43 +0100 Subject: [mapserver-users] Mapserver equivalent for .NET In-Reply-To: <887928.23939.qm@web36815.mail.mud.yahoo.com> References: <887928.23939.qm@web36815.mail.mud.yahoo.com> Message-ID: <47C71AA7.9070403@zeelandnet.nl> Yep, SharpMap. http://www.codeplex.com/SharpMap Matt M schreef: > Anyone know of a .NET equivalent of Mapserver? > > Thanks > -Matt > > > > > ____________________________________________________________________________________ > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From mlinden at zeelandnet.nl Thu Feb 28 12:37:31 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Thu, 28 Feb 2008 21:37:31 +0100 Subject: [mapserver-users] WFS and typename issue In-Reply-To: <2EF6E1058C047344B4DE0FD141119167B708C8@hex01.houstonengineeringinc.com> References: <2EF6E1058C047344B4DE0FD141119167B708C7@hex01.houstonengineeringinc.com> <47C7164E.7050801@umn.edu> <2EF6E1058C047344B4DE0FD141119167B708C8@hex01.houstonengineeringinc.com> Message-ID: <47C71B8B.3030409@zeelandnet.nl> Have you tried using  ? I had some sort of issue that looks like yours. like this: "gml_include_items" "MFIELD,KFIELD,DFIELD" "gml_MFIELD_alias" "A Field for M" I can retrieve fieldnames with spaces on my installation of mapserver for a WMS GetFeatureInfo request. If the same doesn't work on WFS I would suggest filing a bug. Fischer, Brian schreef: > Just tried it and no + doesn't work. I also tried %20,   and >   > > > Brian Fischer > Houston Engineering, Inc. > Maple Grove, MN > (763) 493-4522 > > -----Original Message----- > From: Pericles S. Nacionales [mailto:naci0002 at umn.edu] > Sent: Thursday, February 28, 2008 2:15 PM > To: Fischer, Brian > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] WFS and typename issue > > Brian, > > I take it the "+" character doesn't work? > > -Perry > > Fischer, Brian wrote: > >> Has anybody else experience problems when using a WFS service where >> the typename has a space in it? I'm experiencing the WFS layers that >> don't have spaces work fine with MapServer, but ones that do have >> spaces produce invalid GML files. Is there an escape character that >> can be used to represent the space in the typename? >> >> The WFS service I am trying to get to work is >> http://www.datafinder.org/wfsconnector/com.esri.wfs.Esrimap/MN_MetroGI >> S_ >> DataFinder_WFS_Water_Resources?request=getcapabilities&service=WFS&ver >> si >> on=1.0.0 >> >> The layer without the space works fine, but the rest do not. >> >> Thanks, >> Brian >> >> Brian Fischer, CFM >> GIS Project Manager >> Houston Engineering, Inc. | Leave Nothing to ChanceTM >> 6901 East Fish Lake Road, Suite 140 >> Maple Grove, MN 55369 >> Phone: 763.493.4522 / Fax: 763.493.5572 >> Email: bfischer at houstonengineeringinc.com >> >> Website: www.houstonengineeringinc.com >> >> >> >> >> >> ---------------------------------------------------------------------- >> -- >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From David.Renz at cityofmedford.org Thu Feb 28 12:37:48 2008 From: David.Renz at cityofmedford.org (David J. Renz) Date: Thu, 28 Feb 2008 12:37:48 -0800 Subject: [mapserver-users] Mapserver equivalent for .NET In-Reply-To: <47C71AA7.9070403@zeelandnet.nl> Message-ID: Is SharpMap still a project? This is a nice tutorial for C# mapscript example: http://www.paolocorti.net/public/wordpress/index.php/category/tutorials/ mapserver-tutorial-for-c-mapscript-asp-net/ -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Milo van der Linden Sent: Thursday, February 28, 2008 12:34 PM To: Matt M Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver equivalent for .NET Yep, SharpMap. http://www.codeplex.com/SharpMap Matt M schreef: > Anyone know of a .NET equivalent of Mapserver? > > Thanks > -Matt > > > > > ________________________________________________________________________ ____________ > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bfischer at houstonengineeringinc.com Thu Feb 28 12:53:25 2008 From: bfischer at houstonengineeringinc.com (Fischer, Brian) Date: Thu, 28 Feb 2008 14:53:25 -0600 Subject: [mapserver-users] WFS and typename issue In-Reply-To: <47C71B8B.3030409@zeelandnet.nl> References: <2EF6E1058C047344B4DE0FD141119167B708C7@hex01.houstonengineeringinc.com> <47C7164E.7050801@umn.edu> <2EF6E1058C047344B4DE0FD141119167B708C8@hex01.houstonengineeringinc.com> <47C71B8B.3030409@zeelandnet.nl> Message-ID: <2EF6E1058C047344B4DE0FD141119167B708C9@hex01.houstonengineeringinc.com> I just tried the   and that did not work either. Thanks, Brian Brian Fischer Houston Engineering, Inc. Maple Grove, MN (763) 493-4522 -----Original Message----- From: Milo van der Linden [mailto:mlinden at zeelandnet.nl] Sent: Thursday, February 28, 2008 2:38 PM To: Fischer, Brian Cc: Pericles S. Nacionales; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS and typename issue Have you tried using  ? I had some sort of issue that looks like yours. like this: "gml_include_items" "MFIELD,KFIELD,DFIELD" "gml_MFIELD_alias" "A Field for M" I can retrieve fieldnames with spaces on my installation of mapserver for a WMS GetFeatureInfo request. If the same doesn't work on WFS I would suggest filing a bug. Fischer, Brian schreef: > Just tried it and no + doesn't work. I also tried %20,   and >   > > > Brian Fischer > Houston Engineering, Inc. > Maple Grove, MN > (763) 493-4522 > > -----Original Message----- > From: Pericles S. Nacionales [mailto:naci0002 at umn.edu] > Sent: Thursday, February 28, 2008 2:15 PM > To: Fischer, Brian > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] WFS and typename issue > > Brian, > > I take it the "+" character doesn't work? > > -Perry > > Fischer, Brian wrote: > >> Has anybody else experience problems when using a WFS service where >> the typename has a space in it? I'm experiencing the WFS layers that >> don't have spaces work fine with MapServer, but ones that do have >> spaces produce invalid GML files. Is there an escape character that >> can be used to represent the space in the typename? >> >> The WFS service I am trying to get to work is >> http://www.datafinder.org/wfsconnector/com.esri.wfs.Esrimap/MN_MetroG >> I >> S_ >> DataFinder_WFS_Water_Resources?request=getcapabilities&service=WFS&ve >> r >> si >> on=1.0.0 >> >> The layer without the space works fine, but the rest do not. >> >> Thanks, >> Brian >> >> Brian Fischer, CFM >> GIS Project Manager >> Houston Engineering, Inc. | Leave Nothing to ChanceTM >> 6901 East Fish Lake Road, Suite 140 >> Maple Grove, MN 55369 >> Phone: 763.493.4522 / Fax: 763.493.5572 >> Email: bfischer at houstonengineeringinc.com >> >> Website: www.houstonengineeringinc.com >> >> >> >> >> >> --------------------------------------------------------------------- >> - >> -- >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Bob.Basques at ci.stpaul.mn.us Thu Feb 28 12:54:19 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 28 Feb 2008 14:54:19 -0600 Subject: [mapserver-users] RE: [Geomoose-users] arrow symbology In-Reply-To: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F64@ep-exch.ci.eden-prairie.mn.us> References: <47C43FD9020000A8000085C8@jeckle> <6BEC95BE33AFA747833CB3B01FEDD93F048E1F11@ep-exch.ci.eden-prairie.mn.us> <47C6B6CA.163B.00A8.0@ci.stpaul.mn.us> <6BEC95BE33AFA747833CB3B01FEDD93F048E1F64@ep-exch.ci.eden-prairie.mn.us> Message-ID: <47C6CB1B.163B.00A8.0@ci.stpaul.mn.us> Adam, I'm copying the MapServer list on this, then it gets into the archives. Here's how I do it for a sewer layer to show direction of the flow (the lines are drawn in the direction of flow) There are two different classes below for different colors : SYMBOL NAME "carret" TYPE truetype FONT 'arial-bold' CHARACTER ">" GAP 50 END --------------------------------- CLASS EXPRESSION (('[STATUS]' eq 'ACTV') AND (([FROM_INVERT] == -99) or ([TO_INVERT] == -99))) STYLE SIZE 15 SYMBOL "carret" COLOR 255 0 0 END END CLASS EXPRESSION (('[STATUS]' eq 'ACTV') AND ('[SYSTEM_TYPE]' eq 'Storm')) STYLE COLOR 60 60 255 SIZE 15 SYMBOL "carret" END END bobb Bob Basques GIS Systems Developer City of Saint Paul, MN GISmo Powered by GeoMOOSE >>> "Adam Feidt" wrote: How do you call a symbol from the label object? I tried something similar using the TEXT ">" parameter from the CLASS object and it didn't work. See attachment for my results. Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 From: Bob Basques [mailto:Bob.Basques at ci.stpaul.mn.us] Sent: Thursday, February 28, 2008 1:28 PM To: Adam Feidt Subject: RE: [Geomoose-developers] arrow symbology Adam, You can use a Truetype font and grab the greater-then or less-than characters to use as the directional arrowhead. You will need to also use either the "auto" or the "follow" value for the ANGLE parameter in the Mapfile. Basically you just label the line with one of the characters. You just set up a truetype symbol. Something like: SYMBOL NAME 'arrow' TYPE TRUETYPE FONT '' CHARACTER '' END or SYMBOL NAME 'arrow' TYPE TRUETYPE FONT 'courier' CHARACTER '7' END bobb >>> "Adam Feidt" wrote: Bobb, I set up a truetype label using this character ">" and applied the ANGLE parameter and I still can't get the arrows to show line direction. It appears like it is working, but in some cases it is not consistent with ArcMap's line direction. When you get some time can you email me an example. Are you sure this is possible? Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 -----Original Message----- From: Bob Basques [mailto:Bob.Basques at ci.stpaul.mn.us] Sent: Tuesday, February 26, 2008 4:36 PM To: Adam Feidt Subject: RE: [Geomoose-developers] arrow symbology Try taking alook at the ANGLE parameter I think it's used inside of a LABEL. I'm not in the office right now, or I would pull an example from there. bobb **************** You can't be late until you show up. *************** ************ You never learn anything by doing it right. ************ *** War doesn't determine who's right. War determines who's left. *** >>> "Adam Feidt" 02/26/08 4:27 PM >>> Bobb, Thanks for your help again. I finally thought I got it to work, but the arrows aren't necessarily pointing out the line direction. I'm using a PIXMAP Symbol with the GAP set. It says on the MapServer website the image should be drawn along the line. Thus, if my arrow is pointing right and it draws from beginning to end it should show line direction. When I compare it to the line direction in ArcMap it doesn't always match up. My code is below. I don't see the Auto/Follow parameter unless you use a label. Are you using a .gif or .png as a label when showing line direction? SYMBOL NAME 'ARROW' TYPE PIXMAP FILLED TRUE GAP 25 IMAGE '../symbols/Arrow.gif' END #end symbol CLASS NAME 'Main' EXPRESSION "" STYLE COLOR 85 255 0 SYMBOL "plainline" SIZE 2 END STYLE COLOR 0 0 0 SYMBOL 'ARROW' SIZE 10 END Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 -----Original Message----- From: Bob Basques [mailto:Bob.Basques at ci.stpaul.mn.us] Sent: Tuesday, February 26, 2008 1:43 PM To: Adam Feidt Subject: Re: [Geomoose-developers] arrow symbology I've done this with a truetype font symbol and using the AUTO/FOLLOW parameter (depending on version of MapServer) to orient the arrow marker. The marker is oriented based on the direction of the ployline vertices in the element. bobb >>> "Adam Feidt" 02/26/08 12:05 PM >>> I would like to display line direction using an arrow symbol spaced along a line. I've tried numerous examples from the web with no luck. Does anyone have any symbology definitions that would accomplish this? Any other ideas? Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 11946 bytes Desc: not available URL: From bfischer at houstonengineeringinc.com Thu Feb 28 13:04:14 2008 From: bfischer at houstonengineeringinc.com (Fischer, Brian) Date: Thu, 28 Feb 2008 15:04:14 -0600 Subject: [mapserver-users] WFS and typename issue In-Reply-To: <47C71B8B.3030409@zeelandnet.nl> References: <2EF6E1058C047344B4DE0FD141119167B708C7@hex01.houstonengineeringinc.com> <47C7164E.7050801@umn.edu> <2EF6E1058C047344B4DE0FD141119167B708C8@hex01.houstonengineeringinc.com> <47C71B8B.3030409@zeelandnet.nl> Message-ID: <2EF6E1058C047344B4DE0FD141119167B708CB@hex01.houstonengineeringinc.com> After troubleshooting this a little further here is what I found. I get an invalid http request error if I try using an escape character with a & in it. That is understandable. If I try using + or %20 it gets a little further and this is the error I get. "msDrawMap(): Image handling error. Failed to draw layer named 'hydrowfs'. msOGRFileOpen(): OGR error. Open failed for OGR connection `C:/ms4w/tmp/ms_tmp/ccc2661b5c5cc4dbff3d2d052e2e73c7.tmp.gml'. XML Parsing Error: Expected equal sign " Also when I try opening the .gml file in Gaia 3 it says there is an error reading the GML file. If I got through the GML file and remove all the spaces from the typename and save the file. Then it opens fine. It appears the problem is that MapServer is not escaping the space character in the temporary GML file when it creates it. I don't know a lot about the rules for the GML file and if a spaces are allowed or what the escape character should be. I guess my simpliest solution is to try to get the WFS service author to remove the spaces from their typenames. But I would be willing to report this as a bug in MapServer if this is really a bug. Hopefully someone can let me know. Thanks, Brian Brian Fischer Houston Engineering, Inc. Maple Grove, MN (763) 493-4522 -----Original Message----- From: Milo van der Linden [mailto:mlinden at zeelandnet.nl] Sent: Thursday, February 28, 2008 2:38 PM To: Fischer, Brian Cc: Pericles S. Nacionales; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS and typename issue Have you tried using  ? I had some sort of issue that looks like yours. like this: "gml_include_items" "MFIELD,KFIELD,DFIELD" "gml_MFIELD_alias" "A Field for M" I can retrieve fieldnames with spaces on my installation of mapserver for a WMS GetFeatureInfo request. If the same doesn't work on WFS I would suggest filing a bug. Fischer, Brian schreef: > Just tried it and no + doesn't work. I also tried %20,   and >   > > > Brian Fischer > Houston Engineering, Inc. > Maple Grove, MN > (763) 493-4522 > > -----Original Message----- > From: Pericles S. Nacionales [mailto:naci0002 at umn.edu] > Sent: Thursday, February 28, 2008 2:15 PM > To: Fischer, Brian > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] WFS and typename issue > > Brian, > > I take it the "+" character doesn't work? > > -Perry > > Fischer, Brian wrote: > >> Has anybody else experience problems when using a WFS service where >> the typename has a space in it? I'm experiencing the WFS layers that >> don't have spaces work fine with MapServer, but ones that do have >> spaces produce invalid GML files. Is there an escape character that >> can be used to represent the space in the typename? >> >> The WFS service I am trying to get to work is >> http://www.datafinder.org/wfsconnector/com.esri.wfs.Esrimap/MN_MetroG >> I >> S_ >> DataFinder_WFS_Water_Resources?request=getcapabilities&service=WFS&ve >> r >> si >> on=1.0.0 >> >> The layer without the space works fine, but the rest do not. >> >> Thanks, >> Brian >> >> Brian Fischer, CFM >> GIS Project Manager >> Houston Engineering, Inc. | Leave Nothing to ChanceTM >> 6901 East Fish Lake Road, Suite 140 >> Maple Grove, MN 55369 >> Phone: 763.493.4522 / Fax: 763.493.5572 >> Email: bfischer at houstonengineeringinc.com >> >> Website: www.houstonengineeringinc.com >> >> >> >> >> >> --------------------------------------------------------------------- >> - >> -- >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From pmoen at nd.gov Thu Feb 28 13:07:54 2008 From: pmoen at nd.gov (Paul Moen) Date: Thu, 28 Feb 2008 15:07:54 -0600 Subject: [mapserver-users] msPOSTGISLayerGetShape(): Error In-Reply-To: <47BAE68D.5157.008F.0@dnr.state.mn.us> Message-ID: I just upgraded to postgres 8.2.6 And postgis 1.3.2("POSTGIS="1.3.2" GEOS="3.0.0rc4-CAPI-1.3.3" PROJ="Rel. 4.6.0, 21 Dec 2007" USE_STATS") and I get the following error. PHP Fatal error: [MapServer Error]: msPOSTGISLayerGetShape(): Error executing POSTGIS SQL statement (in FETCH ALL): DECLARE mycursor2 BINARY CURSOR FOR SELECT "site_id"::text,"location"::text,"longitude"::text,"latitude"::text,"county" ::text,"status"::text,"arb_siteno"::text,"last_name"::text,"first_name"::tex t,"add1"::text,"add2"::text,"city"::text,"state"::text,"zip"::text,"phone":: text,"remarks"::text,"password"::text,"email"::text,"online_reporting"::text ,"x_coord"::text,"y_coord"::text,asbinary(force_collection(force_2d(geom)),' NDR') from station WHERE site_id = 4243 -ERROR: cannot cast type boolean to text, referer: http://10.8.54.31/ : ..."::text,"latitude"::text,"county"::text,"status"::text,"arb_..., ^, My table in postgresql is CREATE TABLE station ( site_id integer NOT NULL DEFAULT 0, "location" character varying(14) NOT NULL DEFAULT '', longitude double precision NOT NULL DEFAULT 0, latitude double precision NOT NULL DEFAULT 0, county character varying(30) NOT NULL DEFAULT '', status boolean NOT NULL DEFAULT false, arb_siteno character varying(5) NOT NULL DEFAULT '', last_name character varying(35) NOT NULL DEFAULT '', first_name character varying(20) NOT NULL DEFAULT '', add1 character varying(21) NOT NULL DEFAULT '', add2 character varying(21) NOT NULL DEFAULT '', city character varying(20) NOT NULL DEFAULT '', state character varying(2) NOT NULL DEFAULT '', zip character varying(9) NOT NULL DEFAULT '', phone character varying(10) NOT NULL DEFAULT '', remarks text NOT NULL DEFAULT '', "password" character varying(20) NOT NULL DEFAULT '', email character varying(80) NOT NULL DEFAULT '', online_reporting boolean NOT NULL DEFAULT false, x_coord integer NOT NULL DEFAULT 0, y_coord integer NOT NULL DEFAULT 0, geom geometry, ) My mapscript version is MapServer Version MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 7251 $ $Date: 2008-01-08 09:04:53 -0800 (Tue, 08 Jan 2008) $) All running on Mac OS 10.5. msPOSTGISLayerGetShape() tries to cast the status column to text, did it always do that? PostgreSQL 8.3 will have a type cast from boolean to text. But none of the earlier versions were supposed to. I can run the sql SELECT status::text from station with no errors in PostgreSQL 8.2.4 but not in 8.2.5 or 8.2.6, which leads me to believe that there was in a cast from boolean to text in 8.2.4. I never added a custom cast to do this before, so I am wondering if the only thing that changed is PostgreSQL? Can anyone confirm that there was a cast for boolean to text in PostgreSQL 8.2.4? Thanks, Paul From mattm8305 at yahoo.com Thu Feb 28 13:09:38 2008 From: mattm8305 at yahoo.com (Matt M) Date: Thu, 28 Feb 2008 13:09:38 -0800 (PST) Subject: [mapserver-users] mod_python and mapscript Message-ID: <560663.57844.qm@web36802.mail.mud.yahoo.com> I can't seem to get mod_python to access mapscript. I keep getting 'dll load failed' errors. Below is the output. Any ideas? -Matt OD_PYTHON ERROR ProcessId: 2244 Interpreter: 'localhost.local.domain' ServerName: 'localhost.local.domain' DocumentRoot: 'C:/ms4w/Apache/htdocs' URI: '/cgi-bin/test-cgi-mapscript.py' Location: None Directory: 'C:/ms4w/Apache/cgi-bin/' Filename: 'C:/ms4w/Apache/cgi-bin/test-cgi-mapscript.py' PathInfo: '' Phase: 'PythonHandler' Handler: 'test-cgi-mapscript' Traceback (most recent call last): File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent) File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1202, in _process_target module = import_module(module_name, path=path) File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 296, in import_module log, import_path) File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 680, in import_module execfile(file, module.__dict__) File "C:\ms4w\Apache\cgi-bin\test-cgi-mapscript.py", line 8, in import mapscript File "C:\Python25\lib\site-packages\mapscript.py", line 7, in import _mapscript ImportError: DLL load failed: The specified module could not be found. MODULE CACHE DETAILS Accessed: Thu Feb 28 16:07:43 2008 Generation: 0 _mp_139ae0b93551e33489c75fcb2dc900bc { FileName: 'C:\\ms4w\\Apache\\cgi-bin\\test-cgi-mapscript.py' Instance: 1 [IMPORT] Generation: 0 [ERROR] Modified: Thu Feb 28 11:34:18 2008 } ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From cww at denterprises.org Thu Feb 28 13:14:27 2008 From: cww at denterprises.org (Colin Wetherbee) Date: Thu, 28 Feb 2008 16:14:27 -0500 Subject: [mapserver-users] msPOSTGISLayerGetShape(): Error In-Reply-To: References: Message-ID: <47C72433.8070408@denterprises.org> Paul Moen wrote: > I never added a custom cast to do this before, so I am wondering if the only > thing that changed is PostgreSQL? Can anyone confirm that there was a cast > for boolean to text in PostgreSQL 8.2.4? I think the problem might be elsewhere. I am unable automatically cast boolean to text in either 8.1.10 or 8.2.6. I doubt that cast existed for only a few revisions in-between. Colin From naci0002 at umn.edu Thu Feb 28 13:28:35 2008 From: naci0002 at umn.edu (Pericles S. Nacionales) Date: Thu, 28 Feb 2008 15:28:35 -0600 Subject: [mapserver-users] WFS and typename issue In-Reply-To: <2EF6E1058C047344B4DE0FD141119167B708CB@hex01.houstonengineeringinc.com> References: <2EF6E1058C047344B4DE0FD141119167B708C7@hex01.houstonengineeringinc.com> <47C7164E.7050801@umn.edu> <2EF6E1058C047344B4DE0FD141119167B708C8@hex01.houstonengineeringinc.com> <47C71B8B.3030409@zeelandnet.nl> <2EF6E1058C047344B4DE0FD141119167B708CB@hex01.houstonengineeringinc.com> Message-ID: <47C72783.2060603@umn.edu> The WFS 1.0.0 doesn't specifically say not to use spaces in a typeName but all the examples don't contain spaces... The space character always causes problem as part of a parameter in web forms, it should be avoided. That said, if the solution is as simple as escaping spaces in MapServer's GML output then maybe it should be done. It's not just spaces either... any special character could potentially be problematic (and maybe a potential security hole). So, yes, you probably should tell the WFS service author that it's bad karma to put spaces in typeNames and featureIDs. :) Add underscores or remove spaces if possible. -Perry Fischer, Brian wrote: > After troubleshooting this a little further here is what I found. > > I get an invalid http request error if I try using an escape character > with a & in it. That is understandable. > > If I try using + or %20 it gets a little further and this is the error I > get. > "msDrawMap(): Image handling error. Failed to draw layer named > 'hydrowfs'. msOGRFileOpen(): OGR error. Open failed for OGR connection > `C:/ms4w/tmp/ms_tmp/ccc2661b5c5cc4dbff3d2d052e2e73c7.tmp.gml'. XML > Parsing Error: Expected equal sign " > > Also when I try opening the .gml file in Gaia 3 it says there is an > error reading the GML file. If I got through the GML file and remove all > the spaces from the typename and save the file. Then it opens fine. > > It appears the problem is that MapServer is not escaping the space > character in the temporary GML file when it creates it. I don't know a > lot about the rules for the GML file and if a spaces are allowed or what > the escape character should be. I guess my simpliest solution is to try > to get the WFS service author to remove the spaces from their typenames. > But I would be willing to report this as a bug in MapServer if this is > really a bug. Hopefully someone can let me know. > > Thanks, > Brian > > Brian Fischer > Houston Engineering, Inc. > Maple Grove, MN > (763) 493-4522 > > -----Original Message----- > From: Milo van der Linden [mailto:mlinden at zeelandnet.nl] > Sent: Thursday, February 28, 2008 2:38 PM > To: Fischer, Brian > Cc: Pericles S. Nacionales; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] WFS and typename issue > > Have you tried using  ? > > I had some sort of issue that looks like yours. > > like this: > > "gml_include_items" "MFIELD,KFIELD,DFIELD" > "gml_MFIELD_alias" "A Field for M" > > I can retrieve fieldnames with spaces on my installation of mapserver > for a WMS GetFeatureInfo request. If the same doesn't work on WFS I > would suggest filing a bug. > > Fischer, Brian schreef: >> Just tried it and no + doesn't work. I also tried %20,   and >>   >> >> >> Brian Fischer >> Houston Engineering, Inc. >> Maple Grove, MN >> (763) 493-4522 >> >> -----Original Message----- >> From: Pericles S. Nacionales [mailto:naci0002 at umn.edu] >> Sent: Thursday, February 28, 2008 2:15 PM >> To: Fischer, Brian >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] WFS and typename issue >> >> Brian, >> >> I take it the "+" character doesn't work? >> >> -Perry >> >> Fischer, Brian wrote: >> >>> Has anybody else experience problems when using a WFS service where >>> the typename has a space in it? I'm experiencing the WFS layers that > >>> don't have spaces work fine with MapServer, but ones that do have >>> spaces produce invalid GML files. Is there an escape character that >>> can be used to represent the space in the typename? >>> >>> The WFS service I am trying to get to work is >>> http://www.datafinder.org/wfsconnector/com.esri.wfs.Esrimap/MN_MetroG >>> I >>> S_ >>> DataFinder_WFS_Water_Resources?request=getcapabilities&service=WFS&ve >>> r >>> si >>> on=1.0.0 >>> >>> The layer without the space works fine, but the rest do not. >>> >>> Thanks, >>> Brian >>> >>> Brian Fischer, CFM >>> GIS Project Manager >>> Houston Engineering, Inc. | Leave Nothing to ChanceTM >>> 6901 East Fish Lake Road, Suite 140 >>> Maple Grove, MN 55369 >>> Phone: 763.493.4522 / Fax: 763.493.5572 >>> Email: bfischer at houstonengineeringinc.com >>> >>> Website: www.houstonengineeringinc.com >>> >>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> - >>> -- >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From cww at denterprises.org Thu Feb 28 13:31:43 2008 From: cww at denterprises.org (Colin Wetherbee) Date: Thu, 28 Feb 2008 16:31:43 -0500 Subject: [mapserver-users] msPOSTGISLayerGetShape(): Error In-Reply-To: References: Message-ID: <47C7283F.1020003@denterprises.org> Paul Moen wrote: > I never added a custom cast to do this before, so I am wondering if the only > thing that changed is PostgreSQL? Can anyone confirm that there was a cast > for boolean to text in PostgreSQL 8.2.4? Here's the sort of cast you want, by the way: cww=# SELECT a::text FROM foo; ERROR: cannot cast type boolean to text cww=# select a::char::text from foo; ERROR: cannot cast type boolean to character cww=# CREATE OR REPLACE FUNCTION boolean_to_text (BOOLEAN) RETURNS CHAR STRICT AS $$ SELECT CASE WHEN $1 THEN 't' ELSE 'f' END $$ LANGUAGE sql; CREATE FUNCTION cww=# CREATE CAST (BOOLEAN AS CHAR(1)) WITH FUNCTION boolean_to_text(BOOLEAN) AS IMPLICIT; CREATE CAST cww=# SELECT a::char::text FROM foo; a --- f t t (3 rows) Colin From Tom.Kralidis at ec.gc.ca Thu Feb 28 13:43:44 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Thu, 28 Feb 2008 16:43:44 -0500 Subject: [mapserver-users] WFS and typename issue In-Reply-To: <47C72783.2060603@umn.edu> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF08E@ecburexch1.ontario.int.ec.gc.ca> Actually, I don't think spaces are allowed in XML element or attribute names at all. Testing this in XMLSpy verifies this. ..Tom > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Pericles S. Nacionales > Sent: 28 February, 2008 4:29 PM > To: Fischer, Brian > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] WFS and typename issue > > The WFS 1.0.0 doesn't specifically say not to use spaces in a > typeName but all the examples don't contain spaces... The > space character always causes problem as part of a parameter > in web forms, it should be avoided. That said, if the > solution is as simple as escaping spaces in MapServer's GML > output then maybe it should be done. > > It's not just spaces either... any special character could > potentially be problematic (and maybe a potential security > hole). So, yes, you probably should tell the WFS service > author that it's bad karma to put spaces in typeNames and > featureIDs. :) Add underscores or remove spaces if possible. > > -Perry > > > Fischer, Brian wrote: > > After troubleshooting this a little further here is what I found. > > > > I get an invalid http request error if I try using an > escape character > > with a & in it. That is understandable. > > > > If I try using + or %20 it gets a little further and this > is the error > > I get. > > "msDrawMap(): Image handling error. Failed to draw layer named > > 'hydrowfs'. msOGRFileOpen(): OGR error. Open failed for OGR > connection > > `C:/ms4w/tmp/ms_tmp/ccc2661b5c5cc4dbff3d2d052e2e73c7.tmp.gml'. XML > > Parsing Error: Expected equal sign " > > > > Also when I try opening the .gml file in Gaia 3 it says there is an > > error reading the GML file. If I got through the GML file > and remove > > all the spaces from the typename and save the file. Then > it opens fine. > > > > It appears the problem is that MapServer is not escaping the space > > character in the temporary GML file when it creates it. I > don't know > > a lot about the rules for the GML file and if a spaces are > allowed or > > what the escape character should be. I guess my simpliest > solution is > > to try to get the WFS service author to remove the spaces > from their typenames. > > But I would be willing to report this as a bug in MapServer > if this is > > really a bug. Hopefully someone can let me know. > > > > Thanks, > > Brian > > > > Brian Fischer > > Houston Engineering, Inc. > > Maple Grove, MN > > (763) 493-4522 > > > > -----Original Message----- > > From: Milo van der Linden [mailto:mlinden at zeelandnet.nl] > > Sent: Thursday, February 28, 2008 2:38 PM > > To: Fischer, Brian > > Cc: Pericles S. Nacionales; mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] WFS and typename issue > > > > Have you tried using  ? > > > > I had some sort of issue that looks like yours. > > > > like this: > > > > "gml_include_items" "MFIELD,KFIELD,DFIELD" > > "gml_MFIELD_alias" "A Field for M" > > > > I can retrieve fieldnames with spaces on my installation of > mapserver > > for a WMS GetFeatureInfo request. If the same doesn't work on WFS I > > would suggest filing a bug. > > > > Fischer, Brian schreef: > >> Just tried it and no + doesn't work. I also tried %20,   and > >>   > >> > >> > >> Brian Fischer > >> Houston Engineering, Inc. > >> Maple Grove, MN > >> (763) 493-4522 > >> > >> -----Original Message----- > >> From: Pericles S. Nacionales [mailto:naci0002 at umn.edu] > >> Sent: Thursday, February 28, 2008 2:15 PM > >> To: Fischer, Brian > >> Cc: mapserver-users at lists.osgeo.org > >> Subject: Re: [mapserver-users] WFS and typename issue > >> > >> Brian, > >> > >> I take it the "+" character doesn't work? > >> > >> -Perry > >> > >> Fischer, Brian wrote: > >> > >>> Has anybody else experience problems when using a WFS > service where > >>> the typename has a space in it? I'm experiencing the WFS layers > >>> that > > > >>> don't have spaces work fine with MapServer, but ones that do have > >>> spaces produce invalid GML files. Is there an escape > character that > >>> can be used to represent the space in the typename? > >>> > >>> The WFS service I am trying to get to work is > >>> > http://www.datafinder.org/wfsconnector/com.esri.wfs.Esrimap/MN_Metro > >>> G > >>> I > >>> S_ > >>> > DataFinder_WFS_Water_Resources?request=getcapabilities&service=WFS&v > >>> e > >>> r > >>> si > >>> on=1.0.0 > >>> > >>> The layer without the space works fine, but the rest do not. > >>> > >>> Thanks, > >>> Brian > >>> > >>> Brian Fischer, CFM > >>> GIS Project Manager > >>> Houston Engineering, Inc. | Leave Nothing to ChanceTM > >>> 6901 East Fish Lake Road, Suite 140 > >>> Maple Grove, MN 55369 > >>> Phone: 763.493.4522 / Fax: 763.493.5572 > >>> Email: bfischer at houstonengineeringinc.com > >>> > >>> Website: www.houstonengineeringinc.com > >>> > >>> > >>> > >>> > >>> > >>> > -------------------------------------------------------------------- > >>> - > >>> - > >>> -- > >>> > >>> _______________________________________________ > >>> mapserver-users mailing list > >>> mapserver-users at lists.osgeo.org > >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >>> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From dmorissette at mapgears.com Thu Feb 28 13:52:30 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 28 Feb 2008 16:52:30 -0500 Subject: [mapserver-users] Mapserver equivalent for .NET In-Reply-To: <887928.23939.qm@web36815.mail.mud.yahoo.com> References: <887928.23939.qm@web36815.mail.mud.yahoo.com> Message-ID: <47C72D1E.6020504@mapgears.com> Matt M wrote: > Anyone know of a .NET equivalent of Mapserver? > Plesae dnot' tlel aynnoe, but MpaDtoNet hsa MpaSreevr udern teh hood. I wshi tehy wree mroe opne atuob tihs. ;) From jmckenna at dmsolutions.ca Thu Feb 28 14:43:12 2008 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Thu, 28 Feb 2008 17:43:12 -0500 Subject: [mapserver-users] GRID question. In-Reply-To: <47C6BD2E.163B.00A8.0@ci.stpaul.mn.us> References: <47C6BD2E.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <47C73900.40703@dmsolutions.ca> Bob Basques wrote: > All, > > What is a grid object in a MAPSERVER MapFile, exactly? > Give it a try and see: http://mapserver.gis.umn.edu/docs/reference/mapfile/grid -jeff From nospam420 at yahoo.com Thu Feb 28 15:44:17 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Thu, 28 Feb 2008 15:44:17 -0800 (PST) Subject: [MAPSERVER-USERS] missing lock in mapfile.c:msFreeLabelCacheSlot() ? In-Reply-To: <47c4924d.0c07560a.75c8.ffffc496@mx.google.com> References: <15699786.post@talk.nabble.com> <47c4924d.0c07560a.75c8.ffffc496@mx.google.com> Message-ID: <15748847.post@talk.nabble.com> Tamas Szekeres wrote: > > You can probably control the caching effect by setting LABELCACHE OFF for > all of layers. However I'm a bit hesitant to think that this is due to a > missing lock around the labelcache itself since it doesn't contain static > variables. > I think you might be right, and that this crash might be another red herring. What I'm doing here is stressing the limits of the system to see what it can handle. There's various interactions between mapserver, the JVM, tomcat, and postgres, and when things go badly, it's not entirely clear what's the cause and what's the effect. I tried a few related tests: 1) I commented out all LAYER's that had any LABEL declarations. In this instance, tomcat indeed did NOT crash. However, under stress there were problems reported by tomcat and by postgres, but that's (sort of) okay. 2) I kept all of the LAYER's, but for those with LABEL declarations I set LABELCACHE OFF. The previous crash at mapfile.c:msFreeLabelCacheSlot() did NOT occur. However, intead, there was a new crash: (msClipPolygonRect) mapprimitive.c:605 (msDrawShape) mapdraw.c:1609 (msDrawVectorLayer) mapdraw.c:887 (msDrawLayer) mapdraw.c:718 (msDrawMap) mapdraw.c:432 (mapObj_draw) mapscript/java/mapscript_wrap.c:1714 (Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1draw) mapscript/java/mapscript_wrap.c:20612 But again this coincided with other things going badly under stress, so I'm not really sure if mapserver is to blame. Ideally, tomcat and the JVM should never crash. If things go badly, the system should become less responsive, and possibly refuse additional requests, or cancel existing ones. Crashing is clearly a wrong thing to do with respect to correctness. But given the nature of what I'm seeing, it's not clear to me that mapserver is the piece at fault. I've spent some time trying to tune tomcat and postgres and some OS parameters a bit. While I'm still having a few issues, some of which might (or might not) be genuine mapserver issues, now that the system is tuned better, I'm not seeing any more JVM crashes, even under heavy load. (Although it might just be that the definition of "heavy" has shifted higher, and I'm no longer stressing things that much relative to that.) Anyway, I will deal with the issues that I am having in separate mailing list threads. But for the time being I think that maybe my original concern here is a non-issue. I'll reply back with more details if I see any more observations that cause me to think differently. - Rich -- View this message in context: http://www.nabble.com/missing-lock-in-mapfile.c%3AmsFreeLabelCacheSlot%28%29---tp15699786p15748847.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Thu Feb 28 16:21:44 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Thu, 28 Feb 2008 16:21:44 -0800 (PST) Subject: [MAPSERVER-USERS] postgres transaction warnings Message-ID: <15749333.post@talk.nabble.com> I'm doing stress tests on a system with a java webapp running under tomcat, using java mapscript and mapserver 5.0.0 (hand patched to fix mapserver bug 2525 (http://trac.osgeo.org/mapserver/ticket/2525)), fetching data from a postgresql 8.1 / postgis 1.1.2 server. In my postgres log file (/var/log/postgresql/postgresql-8.1-main.log), I see a TON of messages like the following: 2008-02-28 13:48:08 PST WARNING: there is already a transaction in progress The default value in the postgres configuration (/etc/postgresql/8.1/main/postgresql.conf) for max_prepared_transactions is only 5. Based on the documentation here: http://www.postgresql.org/docs/8.1/interactive/runtime-config-resource.html#RUNTIME-CONFIG-RESOURCE-MEMORY I increased it substantially, so that it has the same value as max_connections: http://www.postgresql.org/docs/8.1/interactive/runtime-config-connection.html#GUC-MAX-CONNECTIONS So now I would think that each connection to the database could simultaneously perform a transaction if so desired. But I still get a TON of such messages, with no noticeable reduction. This brings up a few questions: 1) In the mappostgis.c source, I see a number instances of transactions starting, via "BEGIN" statements. There are also a number instances of transactions being canceled, via "ROLLBACK" statements, when something goes wrong. However, I can not find a single instance of a transaction being normally closed, via an "END" statement. Is the code perhaps somehow leaking transaction resources? Or maybe there's a genuine reason that "END" statements aren't needed? Maybe something in some of the PQfoo() methods indirectly accounts for this? I haven't looked at it in much detail, but I don't see anything in the libpq docs (http://www.postgresql.org/docs/8.1/static/libpq-exec.html) that suggests this. 2) In my situation, the database is effectively read only, because updates will happen infrequently and always in bulk and offline. So I would think that transactions are totally unnecessary, since any individual read statement will by definition see a consistent view of the database. Transactions aren't going to help at all, and would I think only serve to consume resources and possibly adversely affect performance. I can see how they might be needed in cases where updates were expected, but in my case I would like to be able to disable them. Is there any option to do this? I assume no. But even if that is the case, is this analysis correct, and might such an option be a useful feature to provide? So far this situation does not seem to be affecting correctness, and performance is not unreasonable, but I wonder if performance might be better if I could do something such that these WARNINGs were not present. Thanks for any help that anyone might be able to provide. - Rich -- View this message in context: http://www.nabble.com/postgres-transaction-warnings-tp15749333p15749333.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Thu Feb 28 16:35:15 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Thu, 28 Feb 2008 16:35:15 -0800 (PST) Subject: [MAPSERVER-USERS] postgres transaction warnings In-Reply-To: <15749333.post@talk.nabble.com> References: <15749333.post@talk.nabble.com> Message-ID: <15749520.post@talk.nabble.com> rich.fromm wrote: > > In my postgres log file > (/var/log/postgresql/postgresql-8.1-main.log), I see a TON of messages > like > the following: > > 2008-02-28 13:48:08 PST WARNING: there is already a transaction in > progress > > <...> > > 1) In the mappostgis.c source, I see a number instances of transactions > starting, via "BEGIN" statements. There are also a number instances of > transactions being canceled, via "ROLLBACK" statements, when something > goes > wrong. However, I can not find a single instance of a transaction > being > normally closed, via an "END" statement. Is the code perhaps somehow > leaking transaction resources? Or maybe there's a genuine reason that > "END" statements aren't needed? Maybe something in some of the PQfoo() > methods indirectly accounts for this? I haven't looked at it in much > detail, but I don't see anything in the libpq docs > (http://www.postgresql.org/docs/8.1/static/libpq-exec.html) that > suggests > this. > > 2) In my situation, the database is effectively read only, because updates > will happen infrequently and always in bulk and offline. So I would > think > that transactions are totally unnecessary, since any individual read > statement will by definition see a consistent view of the database. > Transactions aren't going to help at all, and would I think only serve > to > consume resources and possibly adversely affect performance. I can see > how > they might be needed in cases where updates were expected, but in my > case I > would like to be able to disable them. Is there any option to do this? > I > assume no. But even if that is the case, is this analysis correct, and > might such an option be a useful feature to provide? > Did some more looking around on my own. Regarding (1), something similar seems to have been reported previously on the old mailing list: http://www.nabble.com/Segmentation-fault---mapserver---postgis-to12653945.html#a12674499 I think bug 2497 is at least partially addressing this: http://trac.osgeo.org/mapserver/ticket/2497 I can try locally applying the diff there, but I'm still a bit confused. Just moving the BEGIN and not inserting an END may solve a problem of unnecessary duplicate transactions, but I still don't understand how the transaction gets properly ended. Oh yeah, I do have for each LAYER: PROCESSING "CLOSE_CONNECTION=DEFER" I haven't found anything yet addresing (2). - Rich -- View this message in context: http://www.nabble.com/postgres-transaction-warnings-tp15749333p15749520.html Sent from the Mapserver - User mailing list archive at Nabble.com. From cww at denterprises.org Thu Feb 28 16:39:02 2008 From: cww at denterprises.org (Colin Wetherbee) Date: Thu, 28 Feb 2008 19:39:02 -0500 Subject: [MAPSERVER-USERS] postgres transaction warnings In-Reply-To: <15749520.post@talk.nabble.com> References: <15749333.post@talk.nabble.com> <15749520.post@talk.nabble.com> Message-ID: <47C75426.90708@denterprises.org> rich.fromm wrote: > Oh yeah, I do have for each LAYER: > PROCESSING "CLOSE_CONNECTION=DEFER" I have found this leaves transactions open quite often. It prevents my application from updating the database, so I've turned it off. Which decreases performance, but at least I don't have stale transactions sitting around everywhere and hanging my application. Closing those transactions when they're finished would certainly be nice. Colin From szekerest at gmail.com Thu Feb 28 16:41:29 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 29 Feb 2008 01:41:29 +0100 Subject: [MAPSERVER-USERS] missing lock in mapfile.c:msFreeLabelCacheSlot() ? In-Reply-To: <15748847.post@talk.nabble.com> References: <15699786.post@talk.nabble.com> <47c4924d.0c07560a.75c8.ffffc496@mx.google.com> <15748847.post@talk.nabble.com> Message-ID: Rich, I appreciate your efforts very much to sort these things out. I wish we ever had a systematic multithreaded test case for the Java/C# bindings with a fair amount of the coverage for the most fundamental parts of the project. I'd feel quite inclined to open up a GSoC project to implement a proper test environment where the potential issues would be more discoverable. I think the problem you described is weird enough for trying to think about it further. The fact that the symptom is going towards another place indicates me that the source of the issue is in a quite different place. Let us know if you have a further suspicion about something that should be fixed in mapserver. Best regards, Tamas 2008/2/29, rich.fromm : > > > Tamas Szekeres wrote: > > > > You can probably control the caching effect by setting LABELCACHE OFF for > > all of layers. However I'm a bit hesitant to think that this is due to a > > missing lock around the labelcache itself since it doesn't contain static > > variables. > > > > > I think you might be right, and that this crash might be another red > herring. > > What I'm doing here is stressing the limits of the system to see what it can > handle. There's various interactions between mapserver, the JVM, tomcat, > and > postgres, and when things go badly, it's not entirely clear what's the cause > and what's the effect. > > I tried a few related tests: > > 1) I commented out all LAYER's that had any LABEL declarations. In this > instance, tomcat indeed did NOT crash. However, under stress there were > problems reported by tomcat and by postgres, but that's (sort of) okay. > > 2) I kept all of the LAYER's, but for those with LABEL declarations I set > LABELCACHE OFF. The previous crash at mapfile.c:msFreeLabelCacheSlot() > did > NOT occur. However, intead, there was a new crash: > > (msClipPolygonRect) mapprimitive.c:605 > (msDrawShape) mapdraw.c:1609 > (msDrawVectorLayer) mapdraw.c:887 > (msDrawLayer) mapdraw.c:718 > (msDrawMap) mapdraw.c:432 > (mapObj_draw) mapscript/java/mapscript_wrap.c:1714 > (Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1draw) > mapscript/java/mapscript_wrap.c:20612 > > But again this coincided with other things going badly under stress, so > I'm > not really sure if mapserver is to blame. Ideally, tomcat and the JVM > should never crash. If things go badly, the system should become less > responsive, and possibly refuse additional requests, or cancel existing > ones. Crashing is clearly a wrong thing to do with respect to > correctness. > But given the nature of what I'm seeing, it's not clear to me that > mapserver is the piece at fault. > > I've spent some time trying to tune tomcat and postgres and some OS > parameters > a bit. While I'm still having a few issues, some of which might (or might > not) be genuine mapserver issues, now that the system is tuned better, I'm > not > seeing any more JVM crashes, even under heavy load. (Although it might just > be that the definition of "heavy" has shifted higher, and I'm no longer > stressing things that much relative to that.) > > Anyway, I will deal with the issues that I am having in separate mailing > list > threads. But for the time being I think that maybe my original concern here > is a non-issue. I'll reply back with more details if I see any more > observations that cause me to think differently. > > - Rich > > > -- > View this message in context: http://www.nabble.com/missing-lock-in-mapfile.c%3AmsFreeLabelCacheSlot%28%29---tp15699786p15748847.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From nospam420 at yahoo.com Thu Feb 28 19:17:12 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Thu, 28 Feb 2008 19:17:12 -0800 (PST) Subject: [MAPSERVER-USERS] postgres transaction warnings In-Reply-To: <47C75426.90708@denterprises.org> References: <15749333.post@talk.nabble.com> <15749520.post@talk.nabble.com> <47C75426.90708@denterprises.org> Message-ID: <15751234.post@talk.nabble.com> Colin Wetherbee wrote: > > rich.fromm wrote: >> Oh yeah, I do have for each LAYER: >> PROCESSING "CLOSE_CONNECTION=DEFER" > > I have found this leaves transactions open quite often. It prevents my > application from updating the database, so I've turned it off. > > ... > > Closing those transactions when they're finished would certainly be nice. > You might want to try applying this patch: http://trac.osgeo.org/mapserver/attachment/ticket/2497/ms_postgis_begin_to_connect.diff from bug 2497: http://trac.osgeo.org/mapserver/ticket/2497 I just applied it locally and have been running a test now for about 45 minutes and still have not had a single "there is already a transaction in progress" warning in my postgres log. Previously it took on the order of 10 seconds for me to start getting tons of them. - Rich -- View this message in context: http://www.nabble.com/postgres-transaction-warnings-tp15749333p15751234.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at yahoo.com Thu Feb 28 19:30:09 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Thu, 28 Feb 2008 19:30:09 -0800 (PST) Subject: [MAPSERVER-USERS] postgres transaction warnings In-Reply-To: <15749520.post@talk.nabble.com> References: <15749333.post@talk.nabble.com> <15749520.post@talk.nabble.com> Message-ID: <15751359.post@talk.nabble.com> rich.fromm wrote: > > Did some more looking around on my own. > The bug: http://trac.osgeo.org/mapserver/ticket/2497 says: All postgis queries are "DECLARE CURSOR ..." so a transaction is necessary The patch: http://trac.osgeo.org/mapserver/attachment/ticket/2497/ms_postgis_begin_to_connect.diff also echos this sentiment: /* start a transaction, since it's required by all subsequent (DECLARE CURSOR) queries */ I can't find anything in the postgres SQL documentation that explicitly states this, searching through DECLARE: http://www.postgresql.org/docs/8.1/interactive/sql-declare.html FETCH: http://www.postgresql.org/docs/8.1/interactive/sql-fetch.html and CLOSE: http://www.postgresql.org/docs/8.1/interactive/sql-close.html Although there are a number of places in the docs that somewhat imply it. DECLARE mentions trasactions: --- begin --- WITH HOLD specifies that the cursor may continue to be used after the transaction that created it successfully commits. WITHOUT HOLD specifies that the cursor cannot be used outside of the transaction that created it. --- end --- as does CLOSE: --- begin --- Every non-holdable open cursor is implicitly closed when a transaction is terminated by COMMIT or ROLLBACK. A holdable cursor is implicitly closed if the transaction that created it aborts via ROLLBACK. If the creating transaction successfully commits, the holdable cursor remains open until an explicit CLOSE is executed, or the client disconnects. --- end --- --- begin --- And the example in FETCH uses one: BEGIN WORK; -- Set up a cursor: DECLARE liahona SCROLL CURSOR FOR SELECT * FROM films; # ... -- Close the cursor and end the transaction: CLOSE liahona; COMMIT WORK; --- end --- So I think that maybe effectively answers my question (2), why transactions. But I'm still baffled by the rest of (1), why there are no COMMIT or END statements. Although the patch for bug 2497 does seem to have gotten rid of my warning messages. - Rich -- View this message in context: http://www.nabble.com/postgres-transaction-warnings-tp15749333p15751359.html Sent from the Mapserver - User mailing list archive at Nabble.com. From matthew.pettis at gmail.com Thu Feb 28 19:41:51 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Thu, 28 Feb 2008 21:41:51 -0600 Subject: [MAPSERVER-USERS] Roads: road style and shields In-Reply-To: <47C633DD.8080408@gritechnologies.com> References: <15720008.post@talk.nabble.com> <47C633DD.8080408@gritechnologies.com> Message-ID: <82ba77b80802281941m20ab6cbbnab2af2bee25f930@mail.gmail.com> Hi Bob, Thanks, that is helpful... I see in the readme file that you plan to include the symbol and font files with the distribution in the future. They would be a big help to me right now in test-driving the sample .map file... any chance you'd be willing to release them early to go with this? thanks, Matt On Wed, Feb 27, 2008 at 10:09 PM, Bob Basques wrote: > There is an example MAPFILE in the download of the Googlish demo pkg. on > the GeoMoose site. > > bobb > > > > mpettis wrote: > > REPOSTING: not sure this is getting to the right email lists due to > > migration... > > > > Hi, > > > > I have been browsing the archives for examples of nice (read: googlish) > ways > > of rendering roads and using shields (like the interstate shield, the US > > Highway shield) in a mapfile. I've seen some work on googlish map > layout by > > Bob Basques (sp?), but is anyone willing to post an example of how to > use > > highway shields in rendering a map? > > > > And, examples of nice road renderings, in addition to Bob's, are > welcome. > > > > Thanks, > > Matt > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas -------------- next part -------------- An HTML attachment was scrubbed... URL: From axelm-mapserver at nona.net Thu Feb 28 22:41:52 2008 From: axelm-mapserver at nona.net (Alexander Mayrhofer) Date: Fri, 29 Feb 2008 07:41:52 +0100 Subject: [mapserver-users] projection weirdness php_mapscript vs. mapserver itself Message-ID: <47C7A930.3070509@nona.net> Hi, I've found a projection weirdness in php_mapscript vs. Mapserver, and i'd appreciate any hint (i'm pretty desperate already :-/ ).. i'm using php_mapscript to load a mapfile, and put a marker on the map. The map (and background raster) is in the (in)famous "Google" projection, while marker data is in WGS84. During debugging i noticed that using the _same_ coordinates and projection, i get two different marker positions on the map, depending whether i reproject the marker "manually" using php_mapscript or via Mapserver itself... The attached example (also available at http://map.timatio.com/trace_icon_32.87_9.33_260x150_TEST.jpg ) shows the problem - the "upper" marker is reprojected using Mapserver, and the "lower" using php_mapscript, even though they use the same coordinates and projection. The further away from the equator, the larger the offset becomes (you can play around with the lat/long parameters after "_icon_" in the above URL). The respective lines of code look like this (i _think_ the projection is absolutely identical for both cases - compare the mapscript lines with the mapfile below..): // manual reprojection - weirdness avoidance $in_proj = ms_newProjectionObj("proj=longlat, ellps=WGS84, datum=WGS84, no_defs"); $out_proj = ms_newProjectionObj("proj=merc, a=6378137, b=6378137, lat_ts=0.0, lon_0=0.0, x_0=0.0, y_0=0, k=1.0, units=m, nadgrids=@null, no_defs"); $centerpoint = ms_newPointObj(); $centerpoint->setXY($args['lon'], $args['lat']); $centerpoint->project($in_proj, $out_proj); ... // set marker in "manually" projected layer $center_layer = $map->getLayerByName("center"); $point = ms_newPointObj(); $point->setXY($centerpoint->x, $centerpoint->y); $line = ms_newLineObj(); $line->add($point); $shp = ms_newShapeObj(MS_SHAPE_POINT); $shp->add($line); $center_layer->addFeature($shp); // set marker for "mapserver projected" layer $centertest_layer = $map->getLayerByName("centertest"); $pointtest = ms_newPointObj(); $pointtest->setXY($args['lon'], $args['lat']); $linetest = ms_newLineObj(); $linetest->add($pointtest); $shptest = ms_newShapeObj(MS_SHAPE_POINT); $shptest->add($linetest); $centertest_layer->addFeature($shptest); And the mapfile looks like this: # # Start of map file # NAME micromap STATUS ON SIZE 176 116 UNITS meters DEBUG ON OUTPUTFORMAT NAME jpeg FORMATOPTION "QUALITY=95" FORMATOPTION "INTERLACE=OFF" DRIVER "GD/JPEG" END PROJECTION "proj=merc" "a=6378137" "b=6378137" "lat_ts=0.0" "lon_0=0.0" "x_0=0.0" "y_0=0" "k=1.0" "units=m" "nadgrids=@null" "no_defs" END EXTENT -300000 -200000 300000 200000 SHAPEPATH "/data/gis/NE2/" IMAGECOLOR 204 221 238 IMAGETYPE png24 FONTSET /data/gis/brd/fonts.list SYMBOL NAME "punkterl" TYPE PIXMAP IMAGE assets/punkterl.png LAYER NAME "NE2_modis3" STATUS ON TILEINDEX "/data/gis/NE2/NE2-modis3-tileindex.shp" TILEITEM "Location" TYPE RASTER END LAYER NAME "centertest" STATUS on TYPE point TRANSFORM true POSTLABELCACHE true PROJECTION "proj=latlong" "datum=WGS84" "ellps=WGS84" "no_defs" END CLASS STYLE SYMBOL "punkterl" END LABEL ANGLE 0 SIZE 9 COLOR 0 0 0 TYPE truetype FONT dejavu POSITION uc OFFSET 0 2 FORCE true BUFFER 3 MINFEATURESIZE 10 END END TRANSPARENCY alpha END LAYER NAME "center" STATUS on TYPE point TRANSFORM true POSTLABELCACHE true CLASS STYLE SYMBOL "punkterl" END LABEL ANGLE 0 SIZE 9 COLOR 0 0 0 TYPE truetype FONT dejavu POSITION uc OFFSET 0 2 FORCE true BUFFER 3 MINFEATURESIZE 10 END END TRANSPARENCY alpha END END Notice that the projection is (imho) absolutely identical - The "correct" reprojection seems to be the "manual" reprojection - it aligns with the background map that was reprojected with gdalwarp... Mapserver version is 4.10, proj version is 4.4.9d-2 - I do appreciate any hints on what i could be doing wrong.. thanks, Alex -------------- next part -------------- A non-text attachment was scrubbed... Name: trace_icon_32.87_9.33_260x150_TEST.jpg Type: image/jpeg Size: 13250 bytes Desc: not available URL: From mark at locatrix.com Fri Feb 29 00:01:26 2008 From: mark at locatrix.com (=?utf-8?B?TWFyayBXaGl0ZQ==?=) Date: Fri, 29 Feb 2008 08:01:26 +0000 Subject: [mapserver-users] Occasional Contract work? Message-ID: <544323749-1204272084-cardhu_decombobulator_blackberry.rim.net-1978495608-@bxe005.bisx.prodap.on.blackberry> Hi Our company seeks the occasional services of a mapserver consultant to help install/tweak mapserver installations. We are in Brisbane, Australia. PHP skills would be essential, PostgreSQL skills advantageous. If anyone is interested, I will ask you to drop me a note off-list outlining experience, availability, hourly/daily rates etc. Thanks, Mark --- http://www.uandme.com.au Finalist, Mobile Monday Global Peer Awards 2007 From M.vanderPauw at weer.nl Fri Feb 29 00:07:09 2008 From: M.vanderPauw at weer.nl (Martijn van der Pauw) Date: Fri, 29 Feb 2008 08:07:09 -0000 Subject: [mapserver-users] lane presentation of highways In-Reply-To: <47C768D4.5060301@gritechnologies.com> References: <47C768D4.5060301@gritechnologies.com> Message-ID: The data is set up with two seperate lines, one for each direction. On the higher zoom levels you can already see the seperate lanes. But, unfortunately, when zoomed out they overlay each other of course. Martijn ________________________________ Van: Bob Basques [mailto:bob.b at gritechnologies.com] Is the data for the lines set up as single line layers, or are there two separate lines, one for each direction? bobb Martijn wrote: Hello, I'd like to know how I can plot the 2 seperate directions of a highway (I have the data in the database) in a way that they can be distinguished from each other at all zoomlevels. When you zoomed in a lot, you can always see the different driving directions (lanes), but when you zoom out they overlay each other. Important is that each lane is colored depending the road condition. So, the standard way of plotting a highway doesn't meet our needs. The colors of the 2 seperate driving directions can/will differ. Regards, Waver -- This e-mail is from Meteo Consult B.V., a MeteoGroup company. For more information, see www.weer.nl This e-mail may contain confidential information. Only the addressee is permitted to read, copy, distribute or otherwise use this e-mail or any attachments. If you have received it in error, please contact the sender immediately. Any opinion expressed in this e-mail is personal to the sender and may not reflect the opinion of MeteoGroup. Any e-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices. ________________________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at zeelandnet.nl Fri Feb 29 00:48:34 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Fri, 29 Feb 2008 09:48:34 +0100 Subject: [mapserver-users] Mapserver equivalent for .NET In-Reply-To: References: Message-ID: <47C7C6E2.3050705@zeelandnet.nl> David J. Renz schreef: > Is SharpMap still a project? > It is, it is active, it is growing and we are currently investigating a port to the compact framework. > This is a nice tutorial for C# mapscript example: > http://www.paolocorti.net/public/wordpress/index.php/category/tutorials/ > mapserver-tutorial-for-c-mapscript-asp-net/ > > > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Milo van > der Linden > Sent: Thursday, February 28, 2008 12:34 PM > To: Matt M > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Mapserver equivalent for .NET > > Yep, > > SharpMap. > http://www.codeplex.com/SharpMap > > > > Matt M schreef: > >> Anyone know of a .NET equivalent of Mapserver? >> >> Thanks >> -Matt >> >> >> >> >> >> > ________________________________________________________________________ > ____________ > >> Looking for last minute shopping deals? >> Find them fast with Yahoo! Search. >> > http://tools.search.yahoo.com/newsearch/category.php?category=shopping > >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From mlinden at zeelandnet.nl Fri Feb 29 00:52:42 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Fri, 29 Feb 2008 09:52:42 +0100 Subject: [mapserver-users] Mapserver equivalent for .NET In-Reply-To: <47C72D1E.6020504@mapgears.com> References: <887928.23939.qm@web36815.mail.mud.yahoo.com> <47C72D1E.6020504@mapgears.com> Message-ID: <47C7C7DA.3050404@zeelandnet.nl> Given the fact that MpaDtoNte is commercial, it is probably not an alternative. :-P About using Mapserver under the hood; shameless! These guys should recieve punishment! They should be forced to donate to the mapserver project and show the mapserver logo everywhere. ;-) Daniel Morissette schreef: > Matt M wrote: >> Anyone know of a .NET equivalent of Mapserver? >> > > Plesae dnot' tlel aynnoe, but MpaDtoNet hsa MpaSreevr udern teh hood. > I wshi tehy wree mroe opne atuob tihs. ;) > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pal.kristensen at statkart.no Fri Feb 29 01:40:45 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Fri, 29 Feb 2008 01:40:45 -0800 (PST) Subject: [MAPSERVER-USERS] WMS - GetCapabilities and version In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF06B@ecburexch1.ontario.int.ec.gc.ca> References: <15699789.post@talk.nabble.com> <2DC5CCA14756424BBBEE8B4B2E4A682F036CF06B@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <15755143.post@talk.nabble.com> Hi! The fix worked, thanks! Regards, P?l Kristensen Kralidis,Tom [Burlington] wrote: > > > >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> P?l Kristensen >> Sent: 26 February, 2008 3:56 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [MAPSERVER-USERS] WMS - GetCapabilities and version >> >> >> Hi! >> >> I did a build of mapserver nightly this evening and noticed >> some changed WMS behavior compared to my last build (approx 2 >> months ago). The old build does reply to at GetCapabilities >> request that misses the version parameter with a version >> 1.1.1 capabilities xml-file. The new build fails withe an >> error message that says that the version parameter is >> missing. According to the WMS 1.1.1 standard version is a >> mandatory parameter so the new behavior is correct according >> to the standard. Unfortunately many of the clients around do >> not comply with the standard, and of course the server gets the blame. >> >> I guess this issue fall into the ongoing compliance >> discussion (RFC-35). But what has changed over the last >> couple of month that introduced this new behavior, and is >> there some keywords that can be set to achieve the old behavior? > > Fixed. http://trac.osgeo.org/mapserver/ticket/2528 Thanks for catching > this. > > ..Tom > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/WMS---GetCapabilities-and-version-tp15699789p15755143.html Sent from the Mapserver - User mailing list archive at Nabble.com. From tim.bowden at westnet.com.au Fri Feb 29 02:01:25 2008 From: tim.bowden at westnet.com.au (Tim Bowden) Date: Fri, 29 Feb 2008 19:01:25 +0900 Subject: [mapserver-users] Mapserver equivalent for .NET In-Reply-To: <47C7C7DA.3050404@zeelandnet.nl> References: <887928.23939.qm@web36815.mail.mud.yahoo.com> <47C72D1E.6020504@mapgears.com> <47C7C7DA.3050404@zeelandnet.nl> Message-ID: <1204279285.6055.4.camel@edoras> On Fri, 2008-02-29 at 09:52 +0100, Milo van der Linden wrote: > Given the fact that MpaDtoNte is commercial, it is probably not an > alternative. :-P > > About using Mapserver under the hood; shameless! These guys should > recieve punishment! > They should be forced to donate to the mapserver project and show the > mapserver logo everywhere. ;-) I thought mapserver was distributed under a license that specifically and deliberately allowed this. If this is considered undesirable, shouldn't it be released under a less permissive license? Tim Bowden > > Daniel Morissette schreef: > > Matt M wrote: > >> Anyone know of a .NET equivalent of Mapserver? > >> > > > > Plesae dnot' tlel aynnoe, but MpaDtoNet hsa MpaSreevr udern teh hood. > > I wshi tehy wree mroe opne atuob tihs. ;) > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Fri Feb 29 04:32:01 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 29 Feb 2008 13:32:01 +0100 Subject: [mapserver-users] Mapserver equivalent for .NET In-Reply-To: <1204279285.6055.4.camel@edoras> References: <887928.23939.qm@web36815.mail.mud.yahoo.com> <47C72D1E.6020504@mapgears.com> <47C7C7DA.3050404@zeelandnet.nl> <1204279285.6055.4.camel@edoras> Message-ID: I'm not aware of any compelling reason to switch to a more restrictive license. However I personally don't think it's derogatory for a project to expose which open source libraries it depends on. Best regards, Tamas 2008/2/29, Tim Bowden : > > On Fri, 2008-02-29 at 09:52 +0100, Milo van der Linden wrote: > > Given the fact that MpaDtoNte is commercial, it is probably not an > > alternative. :-P > > > > About using Mapserver under the hood; shameless! These guys should > > recieve punishment! > > They should be forced to donate to the mapserver project and show the > > mapserver logo everywhere. ;-) > > > > I thought mapserver was distributed under a license that specifically > and deliberately allowed this. If this is considered undesirable, > shouldn't it be released under a less permissive license? > > > Tim Bowden > > > > > > Daniel Morissette schreef: > > > Matt M wrote: > > >> Anyone know of a .NET equivalent of Mapserver? > > >> > > > > > > Plesae dnot' tlel aynnoe, but MpaDtoNet hsa MpaSreevr udern teh hood. > > > I wshi tehy wree mroe opne atuob tihs. ;) > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From dmorissette at mapgears.com Fri Feb 29 04:44:29 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 29 Feb 2008 07:44:29 -0500 Subject: [mapserver-users] Mapserver equivalent for .NET In-Reply-To: <1204279285.6055.4.camel@edoras> References: <887928.23939.qm@web36815.mail.mud.yahoo.com> <47C72D1E.6020504@mapgears.com> <47C7C7DA.3050404@zeelandnet.nl> <1204279285.6055.4.camel@edoras> Message-ID: <47C7FE2D.9010701@mapgears.com> Tim Bowden wrote: > > > I thought mapserver was distributed under a license that specifically > and deliberately allowed this. If this is considered undesirable, > shouldn't it be released under a less permissive license? > You're correct, MapServer's license allows this, and I'd be the first to object to a switch to a more restrictive license, that would complicate things too much for when we deal with others who built stuff on top of MapServer and are more open about it (if you want names, look in the list of sponsors of the first few MapServer meetings). That being said, I can still wish that they be more open and give credit to MapServer for providing the core of their system, or perhaps spend some time on this list helping users, or do something/anhything for the project... for me it's a wish, not a requirement. Daniel -- Daniel Morissette http://www.mapgears.com/ From gerry.creager at tamu.edu Fri Feb 29 05:14:20 2008 From: gerry.creager at tamu.edu (Gerry Creager) Date: Fri, 29 Feb 2008 07:14:20 -0600 Subject: [mapserver-users] Mapserver equivalent for .NET In-Reply-To: <47C7FE2D.9010701@mapgears.com> References: <887928.23939.qm@web36815.mail.mud.yahoo.com> <47C72D1E.6020504@mapgears.com> <47C7C7DA.3050404@zeelandnet.nl> <1204279285.6055.4.camel@edoras> <47C7FE2D.9010701@mapgears.com> Message-ID: <47C8052C.10605@tamu.edu> Daniel, Might someone forward a request like this to them as a gentle prod? gerry Daniel Morissette wrote: > Tim Bowden wrote: >> >> >> I thought mapserver was distributed under a license that specifically >> and deliberately allowed this. If this is considered undesirable, >> shouldn't it be released under a less permissive license? >> > > You're correct, MapServer's license allows this, and I'd be the first to > object to a switch to a more restrictive license, that would complicate > things too much for when we deal with others who built stuff on top of > MapServer and are more open about it (if you want names, look in the > list of sponsors of the first few MapServer meetings). > > That being said, I can still wish that they be more open and give credit > to MapServer for providing the core of their system, or perhaps spend > some time on this list helping users, or do something/anhything for the > project... for me it's a wish, not a requirement. > > Daniel -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983 Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843 From pcorti at gmail.com Fri Feb 29 05:53:55 2008 From: pcorti at gmail.com (Paolo Corti) Date: Fri, 29 Feb 2008 05:53:55 -0800 (PST) Subject: [MAPSERVER-USERS] Mapserver equivalent for .NET In-Reply-To: <47C72D1E.6020504@mapgears.com> References: <887928.23939.qm@web36815.mail.mud.yahoo.com> <47C72D1E.6020504@mapgears.com> Message-ID: <15758924.post@talk.nabble.com> Really? this definitely sounds interesting. Are they using the mapscript api or are they going via CGI? How are exactly using mapserver? (I wish i could see this by myself, but looks at their site that there is not a downloadable demo of it) BTW: I agree that at least it should be mentioned this fact in their website :-( Paolo Daniel Morissette-2 wrote: > > Matt M wrote: >> Anyone know of a .NET equivalent of Mapserver? >> > > Plesae dnot' tlel aynnoe, but MpaDtoNet hsa MpaSreevr udern teh hood. I > wshi tehy wree mroe opne atuob tihs. ;) > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Mapserver-equivalent-for-.NET-tp15745054p15758924.html Sent from the Mapserver - User mailing list archive at Nabble.com. From robe.dnd at cityofboston.gov Fri Feb 29 05:54:52 2008 From: robe.dnd at cityofboston.gov (Obe, Regina) Date: Fri, 29 Feb 2008 08:54:52 -0500 Subject: [mapserver-users] msPOSTGISLayerGetShape(): Error In-Reply-To: References: <47BAE68D.5157.008F.0@dnr.state.mn.us> Message-ID: <53F9CF533E1AA14EA1F8C5C08ABC08D20343DDC4@ZDND.DND.boston.cob> Actually I remember yeh back there was an automatic boolean cast put in the lwpostgis.sql. I think it was later removed because it was felt doing such things in Postgis was stepping out of bounds since that cast really has nothing to do with postgis and there is no internal dependency on it. Here is a thread about the issue http://postgis.refractions.net/pipermail/postgis-users/2007-October/0174 52.html I suspect maybe its because you are running a newer version of PostGIS (that I think has the cast removed where the cast was removed) not PostgreSQL that you are experiencing it. Hope that Helps, Regina -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Paul Moen Sent: Thursday, February 28, 2008 4:08 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] msPOSTGISLayerGetShape(): Error I just upgraded to postgres 8.2.6 And postgis 1.3.2("POSTGIS="1.3.2" GEOS="3.0.0rc4-CAPI-1.3.3" PROJ="Rel. 4.6.0, 21 Dec 2007" USE_STATS") and I get the following error. PHP Fatal error: [MapServer Error]: msPOSTGISLayerGetShape(): Error executing POSTGIS SQL statement (in FETCH ALL): DECLARE mycursor2 BINARY CURSOR FOR SELECT "site_id"::text,"location"::text,"longitude"::text,"latitude"::text,"cou nty" ::text,"status"::text,"arb_siteno"::text,"last_name"::text,"first_name": :tex t,"add1"::text,"add2"::text,"city"::text,"state"::text,"zip"::text,"phon e":: text,"remarks"::text,"password"::text,"email"::text,"online_reporting":: text ,"x_coord"::text,"y_coord"::text,asbinary(force_collection(force_2d(geom )),' NDR') from station WHERE site_id = 4243 -ERROR: cannot cast type boolean to text, referer: http://10.8.54.31/ : ..."::text,"latitude"::text,"county"::text,"status"::text,"arb_..., ^, My table in postgresql is CREATE TABLE station ( site_id integer NOT NULL DEFAULT 0, "location" character varying(14) NOT NULL DEFAULT '', longitude double precision NOT NULL DEFAULT 0, latitude double precision NOT NULL DEFAULT 0, county character varying(30) NOT NULL DEFAULT '', status boolean NOT NULL DEFAULT false, arb_siteno character varying(5) NOT NULL DEFAULT '', last_name character varying(35) NOT NULL DEFAULT '', first_name character varying(20) NOT NULL DEFAULT '', add1 character varying(21) NOT NULL DEFAULT '', add2 character varying(21) NOT NULL DEFAULT '', city character varying(20) NOT NULL DEFAULT '', state character varying(2) NOT NULL DEFAULT '', zip character varying(9) NOT NULL DEFAULT '', phone character varying(10) NOT NULL DEFAULT '', remarks text NOT NULL DEFAULT '', "password" character varying(20) NOT NULL DEFAULT '', email character varying(80) NOT NULL DEFAULT '', online_reporting boolean NOT NULL DEFAULT false, x_coord integer NOT NULL DEFAULT 0, y_coord integer NOT NULL DEFAULT 0, geom geometry, ) My mapscript version is MapServer Version MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 7251 $ $Date: 2008-01-08 09:04:53 -0800 (Tue, 08 Jan 2008) $) All running on Mac OS 10.5. msPOSTGISLayerGetShape() tries to cast the status column to text, did it always do that? PostgreSQL 8.3 will have a type cast from boolean to text. But none of the earlier versions were supposed to. I can run the sql SELECT status::text from station with no errors in PostgreSQL 8.2.4 but not in 8.2.5 or 8.2.6, which leads me to believe that there was in a cast from boolean to text in 8.2.4. I never added a custom cast to do this before, so I am wondering if the only thing that changed is PostgreSQL? Can anyone confirm that there was a cast for boolean to text in PostgreSQL 8.2.4? Thanks, Paul _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ----------------------------------------- The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer. From afeidt at edenprairie.org Fri Feb 29 06:14:12 2008 From: afeidt at edenprairie.org (Adam Feidt) Date: Fri, 29 Feb 2008 08:14:12 -0600 Subject: [mapserver-users] symbology showing line direction Message-ID: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F88@ep-exch.ci.eden-prairie.mn.us> I'm working in a GeoMoose application and trying to display utility lines with the correct line direction via some arrow character or symbol. I've had no luck so far. I've successfully labeled my lines with a truetype font character by defining the TEXT ">" parameter in the CLASS object. I've also tried a pixelmap symbol definition using a .gif file. Both appear to work at first, but when you compare it to the actual line direction it isn't true in all cases. Has anybody found a way to accomplish this? I would appreciate if you could send me any examples. Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Fri Feb 29 06:19:05 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Fri, 29 Feb 2008 08:19:05 -0600 Subject: [mapserver-users] symbology showing line direction In-Reply-To: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F88@ep-exch.ci.eden-prairie.mn.us> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBB45@s-sp22.pca.state.mn.us> Adam, What does your layer definition, with the classes look like? Does your data have the direction column properly populated for all records? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Adam Feidt Sent: Friday, February 29, 2008 8:14 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] symbology showing line direction I'm working in a GeoMoose application and trying to display utility lines with the correct line direction via some arrow character or symbol. I've had no luck so far. I've successfully labeled my lines with a truetype font character by defining the TEXT ">" parameter in the CLASS object. I've also tried a pixelmap symbol definition using a .gif file. Both appear to work at first, but when you compare it to the actual line direction it isn't true in all cases. Has anybody found a way to accomplish this? I would appreciate if you could send me any examples. Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 -------------- next part -------------- An HTML attachment was scrubbed... URL: From afeidt at edenprairie.org Fri Feb 29 06:42:42 2008 From: afeidt at edenprairie.org (Adam Feidt) Date: Fri, 29 Feb 2008 08:42:42 -0600 Subject: [mapserver-users] symbology showing line direction In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBB45@s-sp22.pca.state.mn.us> References: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F88@ep-exch.ci.eden-prairie.mn.us> <6246727221874A4FB8D3F9BBC37D9BD5021FBB45@s-sp22.pca.state.mn.us> Message-ID: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F91@ep-exch.ci.eden-prairie.mn.us> David, Below is my Layer definition. I've tried a truetype symbol and label with the ANGLE parameter set to AUTO or FOLLOW. Neither case pointed out actual shapefile line direction. I'm reading an ESRI shapefile so there is no specific column for line direction. LAYER NAME 'Utilities Sanitary Lines' DATA './UtilitiesSanitaryLines.shp' TYPE LINE STATUS DEFAULT CLASSITEM "Function" CLASS NAME 'Main' EXPRESSION "" STYLE COLOR 85 255 0 SYMBOL "plainline" SIZE 2 END END # end class CLASS NAME 'Low Pressure' EXPRESSION "Low Pressure" STYLE COLOR 255 85 0 SYMBOL "plainline" SIZE 2 END END # end class CLASS NAME 'Sub Trunk' EXPRESSION "Sub Trunk" STYLE COLOR 85 255 0 SYMBOL "plainline" SIZE 2 END END # end class CLASS NAME 'Trunk' EXPRESSION "Trunk" STYLE COLOR 112 168 0 SYMBOL "plainline" SIZE 2 END END # end class CLASS NAME 'Force Main' EXPRESSION "forcemain" STYLE COLOR 255 170 0 SYMBOL 'dashed1' SIZE 2 END END # end class CLASS NAME 'Private' EXPRESSION "private" STYLE COLOR 161 33 240 SYMBOL 'plainline' SIZE 2 END END # end class END #end layer Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Friday, February 29, 2008 8:19 AM To: Adam Feidt; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] symbology showing line direction Adam, What does your layer definition, with the classes look like? Does your data have the direction column properly populated for all records? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Adam Feidt Sent: Friday, February 29, 2008 8:14 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] symbology showing line direction I'm working in a GeoMoose application and trying to display utility lines with the correct line direction via some arrow character or symbol. I've had no luck so far. I've successfully labeled my lines with a truetype font character by defining the TEXT ">" parameter in the CLASS object. I've also tried a pixelmap symbol definition using a .gif file. Both appear to work at first, but when you compare it to the actual line direction it isn't true in all cases. Has anybody found a way to accomplish this? I would appreciate if you could send me any examples. Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 -------------- next part -------------- An HTML attachment was scrubbed... URL: From giohappy at gmail.com Fri Feb 29 06:57:09 2008 From: giohappy at gmail.com (G. Allegri) Date: Fri, 29 Feb 2008 15:57:09 +0100 Subject: [mapserver-users] symbology showing line direction In-Reply-To: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F91@ep-exch.ci.eden-prairie.mn.us> References: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F88@ep-exch.ci.eden-prairie.mn.us> <6246727221874A4FB8D3F9BBC37D9BD5021FBB45@s-sp22.pca.state.mn.us> <6BEC95BE33AFA747833CB3B01FEDD93F048E1F91@ep-exch.ci.eden-prairie.mn.us> Message-ID: A question: how can you derive a line direction by a shp without having an appropriate attribute? Giovanni 2008/2/29, Adam Feidt : > > > > > David, > > Below is my Layer definition. I've tried a truetype symbol and label > with the ANGLE parameter set to AUTO or FOLLOW. Neither case pointed out > actual shapefile line direction. I'm reading an ESRI shapefile so there is > no specific column for line direction. > > > > LAYER > > NAME 'Utilities Sanitary Lines' > > DATA './UtilitiesSanitaryLines.shp' > > TYPE LINE > > STATUS DEFAULT > > CLASSITEM "Function" > > CLASS > > NAME 'Main' > > EXPRESSION "" > > STYLE > > COLOR 85 255 0 > > SYMBOL "plainline" > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Low Pressure' > > EXPRESSION "Low Pressure" > > STYLE > > COLOR 255 85 0 > > SYMBOL "plainline" > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Sub Trunk' > > EXPRESSION "Sub Trunk" > > STYLE > > COLOR 85 255 0 > > SYMBOL "plainline" > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Trunk' > > EXPRESSION "Trunk" > > STYLE > > COLOR 112 168 0 > > SYMBOL "plainline" > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Force Main' > > EXPRESSION "forcemain" > > STYLE > > COLOR 255 170 0 > > SYMBOL 'dashed1' > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Private' > > EXPRESSION "private" > > STYLE > > COLOR 161 33 240 > > SYMBOL 'plainline' > > SIZE 2 > > END > > END # end class > > END #end layer > > > > > > > Adam M. Feidt > > GIS Coordinator > > City of Eden Prairie > > 8080 Mitchell Rd > > Eden Prairie, MN 55344 > > phone# 952-949-8443 > > fax# 952-949-8334 > > > > > > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > Sent: Friday, February 29, 2008 8:19 AM > To: Adam Feidt; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] symbology showing line direction > > > > > > Adam, > > > > > > What does your layer definition, with the classes look like? > > > > > > Does your data have the direction column properly populated for all records? > > > > > > > David. > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > Of Adam Feidt > Sent: Friday, February 29, 2008 8:14 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] symbology showing line direction > > I'm working in a GeoMoose application and trying to display utility > lines with the correct line direction via some arrow character or symbol. > I've had no luck so far. I've successfully labeled my lines with a truetype > font character by defining the TEXT ">" parameter in the CLASS object. I've > also tried a pixelmap symbol definition using a .gif file. Both appear to > work at first, but when you compare it to the actual line direction it isn't > true in all cases. Has anybody found a way to accomplish this? I would > appreciate if you could send me any examples. > > > > > > Adam M. Feidt > > GIS Coordinator > > City of Eden Prairie > > 8080 Mitchell Rd > > Eden Prairie, MN 55344 > > phone# 952-949-8443 > > fax# 952-949-8334 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From giohappy at gmail.com Fri Feb 29 07:01:19 2008 From: giohappy at gmail.com (G. Allegri) Date: Fri, 29 Feb 2008 16:01:19 +0100 Subject: [mapserver-users] symbology showing line direction In-Reply-To: References: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F88@ep-exch.ci.eden-prairie.mn.us> <6246727221874A4FB8D3F9BBC37D9BD5021FBB45@s-sp22.pca.state.mn.us> <6BEC95BE33AFA747833CB3B01FEDD93F048E1F91@ep-exch.ci.eden-prairie.mn.us> Message-ID: I mean, shapefile is not topological... 2008/2/29, G. Allegri : > A question: how can you derive a line direction by a shp without > having an appropriate attribute? > > Giovanni > > 2008/2/29, Adam Feidt : > > > > > > > > > > > David, > > > > Below is my Layer definition. I've tried a truetype symbol and label > > with the ANGLE parameter set to AUTO or FOLLOW. Neither case pointed out > > actual shapefile line direction. I'm reading an ESRI shapefile so there is > > no specific column for line direction. > > > > > > > > LAYER > > > > NAME 'Utilities Sanitary Lines' > > > > DATA './UtilitiesSanitaryLines.shp' > > > > TYPE LINE > > > > STATUS DEFAULT > > > > CLASSITEM "Function" > > > > CLASS > > > > NAME 'Main' > > > > EXPRESSION "" > > > > STYLE > > > > COLOR 85 255 0 > > > > SYMBOL "plainline" > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Low Pressure' > > > > EXPRESSION "Low Pressure" > > > > STYLE > > > > COLOR 255 85 0 > > > > SYMBOL "plainline" > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Sub Trunk' > > > > EXPRESSION "Sub Trunk" > > > > STYLE > > > > COLOR 85 255 0 > > > > SYMBOL "plainline" > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Trunk' > > > > EXPRESSION "Trunk" > > > > STYLE > > > > COLOR 112 168 0 > > > > SYMBOL "plainline" > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Force Main' > > > > EXPRESSION "forcemain" > > > > STYLE > > > > COLOR 255 170 0 > > > > SYMBOL 'dashed1' > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Private' > > > > EXPRESSION "private" > > > > STYLE > > > > COLOR 161 33 240 > > > > SYMBOL 'plainline' > > > > SIZE 2 > > > > END > > > > END # end class > > > > END #end layer > > > > > > > > > > > > > > Adam M. Feidt > > > > GIS Coordinator > > > > City of Eden Prairie > > > > 8080 Mitchell Rd > > > > Eden Prairie, MN 55344 > > > > phone# 952-949-8443 > > > > fax# 952-949-8334 > > > > > > > > > > > > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > > Sent: Friday, February 29, 2008 8:19 AM > > To: Adam Feidt; mapserver-users at lists.osgeo.org > > Subject: RE: [mapserver-users] symbology showing line direction > > > > > > > > > > > > Adam, > > > > > > > > > > > > What does your layer definition, with the classes look like? > > > > > > > > > > > > Does your data have the direction column properly populated for all records? > > > > > > > > > > > > > > David. > > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > > Of Adam Feidt > > Sent: Friday, February 29, 2008 8:14 AM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] symbology showing line direction > > > > I'm working in a GeoMoose application and trying to display utility > > lines with the correct line direction via some arrow character or symbol. > > I've had no luck so far. I've successfully labeled my lines with a truetype > > font character by defining the TEXT ">" parameter in the CLASS object. I've > > also tried a pixelmap symbol definition using a .gif file. Both appear to > > work at first, but when you compare it to the actual line direction it isn't > > true in all cases. Has anybody found a way to accomplish this? I would > > appreciate if you could send me any examples. > > > > > > > > > > > > Adam M. Feidt > > > > GIS Coordinator > > > > City of Eden Prairie > > > > 8080 Mitchell Rd > > > > Eden Prairie, MN 55344 > > > > phone# 952-949-8443 > > > > fax# 952-949-8334 > > > > > > > _______________________________________________ > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > From afeidt at edenprairie.org Fri Feb 29 07:06:02 2008 From: afeidt at edenprairie.org (Adam Feidt) Date: Fri, 29 Feb 2008 09:06:02 -0600 Subject: [mapserver-users] symbology showing line direction In-Reply-To: References: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F88@ep-exch.ci.eden-prairie.mn.us> <6246727221874A4FB8D3F9BBC37D9BD5021FBB45@s-sp22.pca.state.mn.us> <6BEC95BE33AFA747833CB3B01FEDD93F048E1F91@ep-exch.ci.eden-prairie.mn.us> Message-ID: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F9C@ep-exch.ci.eden-prairie.mn.us> I was hoping it could read ESRI's From and To node structure much like ArcMap, but by the sounds of it that isn't possible. Shapefile geometry is saved in the Shape column, which I'm guessing is useless in Mapserver. What you're saying is I need to create an attribute and populate it with the angle of the line and use that to define my label direction? Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 -----Original Message----- From: G. Allegri [mailto:giohappy at gmail.com] Sent: Friday, February 29, 2008 8:57 AM To: Adam Feidt Cc: Fawcett, David; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] symbology showing line direction A question: how can you derive a line direction by a shp without having an appropriate attribute? Giovanni 2008/2/29, Adam Feidt : > > > > > David, > > Below is my Layer definition. I've tried a truetype symbol and label > with the ANGLE parameter set to AUTO or FOLLOW. Neither case pointed out > actual shapefile line direction. I'm reading an ESRI shapefile so there is > no specific column for line direction. > > > > LAYER > > NAME 'Utilities Sanitary Lines' > > DATA './UtilitiesSanitaryLines.shp' > > TYPE LINE > > STATUS DEFAULT > > CLASSITEM "Function" > > CLASS > > NAME 'Main' > > EXPRESSION "" > > STYLE > > COLOR 85 255 0 > > SYMBOL "plainline" > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Low Pressure' > > EXPRESSION "Low Pressure" > > STYLE > > COLOR 255 85 0 > > SYMBOL "plainline" > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Sub Trunk' > > EXPRESSION "Sub Trunk" > > STYLE > > COLOR 85 255 0 > > SYMBOL "plainline" > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Trunk' > > EXPRESSION "Trunk" > > STYLE > > COLOR 112 168 0 > > SYMBOL "plainline" > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Force Main' > > EXPRESSION "forcemain" > > STYLE > > COLOR 255 170 0 > > SYMBOL 'dashed1' > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Private' > > EXPRESSION "private" > > STYLE > > COLOR 161 33 240 > > SYMBOL 'plainline' > > SIZE 2 > > END > > END # end class > > END #end layer > > > > > > > Adam M. Feidt > > GIS Coordinator > > City of Eden Prairie > > 8080 Mitchell Rd > > Eden Prairie, MN 55344 > > phone# 952-949-8443 > > fax# 952-949-8334 > > > > > > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > Sent: Friday, February 29, 2008 8:19 AM > To: Adam Feidt; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] symbology showing line direction > > > > > > Adam, > > > > > > What does your layer definition, with the classes look like? > > > > > > Does your data have the direction column properly populated for all records? > > > > > > > David. > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > Of Adam Feidt > Sent: Friday, February 29, 2008 8:14 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] symbology showing line direction > > I'm working in a GeoMoose application and trying to display utility > lines with the correct line direction via some arrow character or symbol. > I've had no luck so far. I've successfully labeled my lines with a truetype > font character by defining the TEXT ">" parameter in the CLASS object. I've > also tried a pixelmap symbol definition using a .gif file. Both appear to > work at first, but when you compare it to the actual line direction it isn't > true in all cases. Has anybody found a way to accomplish this? I would > appreciate if you could send me any examples. > > > > > > Adam M. Feidt > > GIS Coordinator > > City of Eden Prairie > > 8080 Mitchell Rd > > Eden Prairie, MN 55344 > > phone# 952-949-8443 > > fax# 952-949-8334 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From pmoen at nd.gov Fri Feb 29 07:18:30 2008 From: pmoen at nd.gov (Paul Moen) Date: Fri, 29 Feb 2008 09:18:30 -0600 Subject: [mapserver-users] Re: [UMN_MAPSERVER-USERS] Mapscript Question In-Reply-To: <15BC669CF041394BA59CD172B9991DC104C514D4@balt-exch1-srv.baltimore.city> Message-ID: It will give you the bounding coordinates of the all the shapes in your result. We use it to dynamically zoom in on the results from our query. It works fine for our purposes. Keep in mind that you can get most everything you need from shape objects that the loop iterates through. You can parse out the lines, get the wkt, centroid or whatever you want. Check out http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/shape obj Hope this helps, Paul On 2/29/08 7:54 AM, "Pearson, Gregory" wrote: > Thanks, Paul. I was hoping the API provided this function. So, you?re saying I > can derive the coordinates from the min/max X and Y points? Have you > implemented this? > > Greg > > > > From: Paul Moen [mailto:pmoen at nd.gov] > Sent: Thursday, February 28, 2008 4:16 PM > To: Pearson, Gregory; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Mapscript Question > > You could try to use the bounds and loop through the results. > > $test=@$qlayer->queryByAttributes($item,$temptest,MS_MULTIPLE); > if ($test == MS_SUCCESS) { > $minX=-1; > $minY=-1; > $maxX=-1; > $maxY=-1; > for ($ind = 0;$ind<$qlayer->getNumResults();$ind++) { > $result = $qlayer->getResult($ind); > $shpindex = $result->shapeindex; > $tilindex = $result->tileindex; > $shptemp = $qlayer->getShape($tilindex,$shpindex); > $rec = $shptemp->bounds; > if ($minX == -1 or $minX > $rec->minx) > $minX=Round($rec->minx); > if ($minY == -1 or $minY > $rec->miny) > $minY=Round($rec->miny); > if ($maxX == -1 or $maxX < $rec->maxx) > $maxX=Round($rec->maxx); > if ($maxY == -1 or $maxY < $rec->maxy) > $maxY=Round($rec->maxy); > } > } > > On 2/28/08 2:23 PM, "Pearson, Gregory" > wrote: > I am doing a layer search using the method queryByAttributes and want to know > if I can get the map coordinates from the result. So far, I haven?t seen > anything in the API documentation that supports this. Is this possible? > > Greg > > > Paul > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmoen at nd.gov Fri Feb 29 07:27:20 2008 From: pmoen at nd.gov (Paul Moen) Date: Fri, 29 Feb 2008 09:27:20 -0600 Subject: [mapserver-users] msPOSTGISLayerGetShape(): Error In-Reply-To: <53F9CF533E1AA14EA1F8C5C08ABC08D20343DDC4@ZDND.DND.boston.cob> Message-ID: Thanks Regina and Colin for the replies. I was hoping that I wasn't imagining things. I will just add the cast until I install PosgreSQL 8.3. Paul On 2/29/08 7:54 AM, "Obe, Regina" wrote: > Actually I remember yeh back there was an automatic boolean cast put in > > the lwpostgis.sql. I think it was later removed because it was felt > > doing such things in Postgis was stepping out of bounds since that cast > > really has nothing to do with postgis and there is no internal > > dependency on it. > > > > Here is a thread about the issue > > http://postgis.refractions.net/pipermail/postgis-users/2007-October/0174 > > 52.html > > > > I suspect maybe its because you are running a newer version of PostGIS > > (that I think has the cast removed where the cast was removed) not > > PostgreSQL that you are experiencing it. > > > > Hope that Helps, > > Regina > > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Paul Moen > > Sent: Thursday, February 28, 2008 4:08 PM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] msPOSTGISLayerGetShape(): Error > > > > I just upgraded to postgres 8.2.6 > > > > And postgis 1.3.2("POSTGIS="1.3.2" GEOS="3.0.0rc4-CAPI-1.3.3" PROJ="Rel. > > 4.6.0, 21 Dec 2007" USE_STATS") and I get the following error. > > > > PHP Fatal error: [MapServer Error]: msPOSTGISLayerGetShape(): Error > > executing POSTGIS SQL statement (in FETCH ALL): DECLARE mycursor2 BINARY > > CURSOR FOR SELECT > > "site_id"::text,"location"::text,"longitude"::text,"latitude"::text,"cou > > nty" > > ::text,"status"::text,"arb_siteno"::text,"last_name"::text,"first_name": > > :tex > > t,"add1"::text,"add2"::text,"city"::text,"state"::text,"zip"::text,"phon > > e":: > > text,"remarks"::text,"password"::text,"email"::text,"online_reporting":: > > text > > ,"x_coord"::text,"y_coord"::text,asbinary(force_collection(force_2d(geom > > )),' > > NDR') from station WHERE site_id = 4243 > > -ERROR: cannot cast type boolean to text, referer: http://10.8.54.31/ > > : ..."::text,"latitude"::text,"county"::text,"status"::text,"arb_..., > > ^, > > > > My table in postgresql is > > > > CREATE TABLE station > > ( > > > > site_id integer NOT NULL DEFAULT 0, > > "location" character varying(14) NOT NULL DEFAULT '', > > longitude double precision NOT NULL DEFAULT 0, > > latitude double precision NOT NULL DEFAULT 0, > > county character varying(30) NOT NULL DEFAULT '', > > status boolean NOT NULL DEFAULT false, > > arb_siteno character varying(5) NOT NULL DEFAULT '', > > last_name character varying(35) NOT NULL DEFAULT '', > > first_name character varying(20) NOT NULL DEFAULT '', > > add1 character varying(21) NOT NULL DEFAULT '', > > > > add2 character varying(21) NOT NULL DEFAULT '', > > city character varying(20) NOT NULL DEFAULT '', > > state character varying(2) NOT NULL DEFAULT '', > > zip character varying(9) NOT NULL DEFAULT '', > > phone character varying(10) NOT NULL DEFAULT '', > > remarks text NOT NULL DEFAULT '', > > "password" character varying(20) NOT NULL DEFAULT '', > > email character varying(80) NOT NULL DEFAULT '', > > online_reporting boolean NOT NULL DEFAULT false, > > x_coord integer NOT NULL DEFAULT 0, > > y_coord integer NOT NULL DEFAULT 0, > > geom geometry, > > ) > > > > My mapscript version is > > > > MapServer Version MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG > > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG > > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > > SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=EPPL7 > > INPUT=POSTGIS > > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > PHP MapScript Version ($Revision: 7251 $ $Date: 2008-01-08 09:04:53 > > -0800 > > (Tue, 08 Jan 2008) $) > > > > All running on Mac OS 10.5. > > > > msPOSTGISLayerGetShape() tries to cast the status column to text, did it > > always do that? > > > > PostgreSQL 8.3 will have a type cast from boolean to text. But none of > > the > > earlier versions were supposed to. > > > > I can run the sql > > SELECT status::text from station > > with no errors in PostgreSQL 8.2.4 but not in 8.2.5 or 8.2.6, which > > leads me > > to believe that there was in a cast from boolean to text in 8.2.4. > > > > I never added a custom cast to do this before, so I am wondering if the > > only > > thing that changed is PostgreSQL? Can anyone confirm that there was a > > cast > > for boolean to text in PostgreSQL 8.2.4? > > > > Thanks, > > > > Paul > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ----------------------------------------- > > The substance of this message, including any attachments, may be > confidential, legally privileged and/or exempt from disclosure > pursuant to Massachusetts law. It is intended > > solely for the addressee. If you received this in error, please > contact the sender and delete the material from any computer. > > From adam.hill at gmail.com Fri Feb 29 07:37:29 2008 From: adam.hill at gmail.com (Adam Hill) Date: Fri, 29 Feb 2008 09:37:29 -0600 Subject: [MAPSERVER-USERS] Mapserver equivalent for .NET In-Reply-To: <15758924.post@talk.nabble.com> References: <887928.23939.qm@web36815.mail.mud.yahoo.com> <47C72D1E.6020504@mapgears.com> <15758924.post@talk.nabble.com> Message-ID: I don't think it is actually using MapServer proper. Daniel was just pulling our collective legs :) They do have a Extension framework where they use GDAL/OGR/Oracle/Postgis C# wrapper libraries extensively as data providers. They also make use of the .NET port of JTS for spatial operators and ProjNET, which is the port of Proj4. They do have a client app demo of SharpMap here - http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=SharpMap&DownloadId=24213 . And if someone from OSGeo/MS wants to stop buy and and ask for some logo reciprocation love they have pretty regular IRC meetings. adam... On Fri, Feb 29, 2008 at 7:53 AM, Paolo Corti wrote: > > Really? > this definitely sounds interesting. > Are they using the mapscript api or are they going via CGI? > How are exactly using mapserver? (I wish i could see this by myself, but > looks at their site that there is not a downloadable demo of it) > > BTW: I agree that at least it should be mentioned this fact in their website > :-( > > Paolo > > > > > Daniel Morissette-2 wrote: > > > > Matt M wrote: > >> Anyone know of a .NET equivalent of Mapserver? > >> > > > > Plesae dnot' tlel aynnoe, but MpaDtoNet hsa MpaSreevr udern teh hood. I > > wshi tehy wree mroe opne atuob tihs. ;) > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > View this message in context: http://www.nabble.com/Mapserver-equivalent-for-.NET-tp15745054p15758924.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From tim.bowden at westnet.com.au Fri Feb 29 07:43:26 2008 From: tim.bowden at westnet.com.au (Tim Bowden) Date: Sat, 01 Mar 2008 00:43:26 +0900 Subject: [mapserver-users] Mapserver equivalent for .NET In-Reply-To: References: <887928.23939.qm@web36815.mail.mud.yahoo.com> <47C72D1E.6020504@mapgears.com> <47C7C7DA.3050404@zeelandnet.nl> <1204279285.6055.4.camel@edoras> Message-ID: <1204299806.6055.49.camel@edoras> On Fri, 2008-02-29 at 13:32 +0100, Tamas Szekeres wrote: > I'm not aware of any compelling reason to switch to a more restrictive > license. Sure, the current licensing arrangement seems to be working well for mapserver, though there are sometimes reasons to be less permissive. I speculated about this the other day in a different context (http://blog.mapforge.com.au/index.php/2008/02/27/when-open-source-doesnt-add-up/) Perhaps I'm wrong. I'd like to get others thoughts on this /without/ starting a flame war (off list if you like; It's not mapserver specific). I realise there can be strong feelings about licensing but so long as it's open source I'm not too worried. > However I personally don't think it's derogatory for a > project to expose which open source libraries it depends on. Of course this is always nice, though the choice has been left up to downstream users/devs. If they did give credit, perhaps it would encourage more participation in mapserver and in the long term they'd benefit from having a stronger foundation on which to build. After all, the cost of acknowledgement is about as low as you can get. Regards, Tim Bowden > > Best regards, > > Tamas > > > 2008/2/29, Tim Bowden : > > > > On Fri, 2008-02-29 at 09:52 +0100, Milo van der Linden wrote: > > > Given the fact that MpaDtoNte is commercial, it is probably not an > > > alternative. :-P > > > > > > About using Mapserver under the hood; shameless! These guys should > > > recieve punishment! > > > They should be forced to donate to the mapserver project and show the > > > mapserver logo everywhere. ;-) > > > > > > > > I thought mapserver was distributed under a license that specifically > > and deliberately allowed this. If this is considered undesirable, > > shouldn't it be released under a less permissive license? > > > > > > Tim Bowden > > > > > > > > > > Daniel Morissette schreef: > > > > Matt M wrote: > > > >> Anyone know of a .NET equivalent of Mapserver? > > > >> > > > > > > > > Plesae dnot' tlel aynnoe, but MpaDtoNet hsa MpaSreevr udern teh hood. > > > > I wshi tehy wree mroe opne atuob tihs. ;) > > > > _______________________________________________ > > > > mapserver-users mailing list > > > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From szekerest at gmail.com Fri Feb 29 07:45:37 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 29 Feb 2008 16:45:37 +0100 Subject: [MAPSERVER-USERS] Mapserver equivalent for .NET In-Reply-To: References: <887928.23939.qm@web36815.mail.mud.yahoo.com> <47C72D1E.6020504@mapgears.com> <15758924.post@talk.nabble.com> Message-ID: Adam, Are you referring to the SharpMap or the MapDotNet server project? Best regards, Tamas 2008/2/29, Adam Hill : > I don't think it is actually using MapServer proper. Daniel was just > pulling our collective legs :) > > They do have a Extension framework where they use > GDAL/OGR/Oracle/Postgis C# wrapper libraries extensively as data > providers. They also make use of the .NET port of JTS for spatial > operators and ProjNET, which is the port of Proj4. > > They do have a client app demo of SharpMap here - > http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=SharpMap&DownloadId=24213 > . And if someone from OSGeo/MS wants to stop buy and and ask for some > logo reciprocation love they have pretty regular IRC meetings. > > > adam... > > > On Fri, Feb 29, 2008 at 7:53 AM, Paolo Corti wrote: > > > > Really? > > this definitely sounds interesting. > > Are they using the mapscript api or are they going via CGI? > > How are exactly using mapserver? (I wish i could see this by myself, but > > looks at their site that there is not a downloadable demo of it) > > > > BTW: I agree that at least it should be mentioned this fact in their website > > :-( > > > > Paolo > > > > > > > > > > Daniel Morissette-2 wrote: > > > > > > Matt M wrote: > > >> Anyone know of a .NET equivalent of Mapserver? > > >> > > > > > > Plesae dnot' tlel aynnoe, but MpaDtoNet hsa MpaSreevr udern teh hood. I > > > wshi tehy wree mroe opne atuob tihs. ;) > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > -- > > View this message in context: http://www.nabble.com/Mapserver-equivalent-for-.NET-tp15745054p15758924.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pcorti at gmail.com Fri Feb 29 07:45:45 2008 From: pcorti at gmail.com (Paolo Corti) Date: Fri, 29 Feb 2008 16:45:45 +0100 Subject: [MAPSERVER-USERS] Mapserver equivalent for .NET In-Reply-To: References: <887928.23939.qm@web36815.mail.mud.yahoo.com> <47C72D1E.6020504@mapgears.com> <15758924.post@talk.nabble.com> Message-ID: Adam Daniel is talking about MapDotNet (commercial), not about SharpMap that is an impressive and native .NET OS under GNU Lesser General Public License. Paolo On Fri, Feb 29, 2008 at 4:37 PM, Adam Hill wrote: > I don't think it is actually using MapServer proper. Daniel was just > pulling our collective legs :) > > They do have a Extension framework where they use > GDAL/OGR/Oracle/Postgis C# wrapper libraries extensively as data > providers. They also make use of the .NET port of JTS for spatial > operators and ProjNET, which is the port of Proj4. > > They do have a client app demo of SharpMap here - > http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=SharpMap&DownloadId=24213 > . And if someone from OSGeo/MS wants to stop buy and and ask for some > logo reciprocation love they have pretty regular IRC meetings. > > adam... > > On Fri, Feb 29, 2008 at 7:53 AM, Paolo Corti wrote: > > > > Really? > > this definitely sounds interesting. > > Are they using the mapscript api or are they going via CGI? > > How are exactly using mapserver? (I wish i could see this by myself, but > > looks at their site that there is not a downloadable demo of it) > > > > BTW: I agree that at least it should be mentioned this fact in their website > > :-( > > > > Paolo > > > > > > > > > > Daniel Morissette-2 wrote: > > > > > > Matt M wrote: > > >> Anyone know of a .NET equivalent of Mapserver? > > >> > > > > > > Plesae dnot' tlel aynnoe, but MpaDtoNet hsa MpaSreevr udern teh hood. I > > > wshi tehy wree mroe opne atuob tihs. ;) > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > -- > > View this message in context: http://www.nabble.com/Mapserver-equivalent-for-.NET-tp15745054p15758924.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- Paolo Corti http://www.paolocorti.net From giohappy at gmail.com Fri Feb 29 07:51:28 2008 From: giohappy at gmail.com (G. Allegri) Date: Fri, 29 Feb 2008 16:51:28 +0100 Subject: [mapserver-users] symbology showing line direction In-Reply-To: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F9C@ep-exch.ci.eden-prairie.mn.us> References: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F88@ep-exch.ci.eden-prairie.mn.us> <6246727221874A4FB8D3F9BBC37D9BD5021FBB45@s-sp22.pca.state.mn.us> <6BEC95BE33AFA747833CB3B01FEDD93F048E1F91@ep-exch.ci.eden-prairie.mn.us> <6BEC95BE33AFA747833CB3B01FEDD93F048E1F9C@ep-exch.ci.eden-prairie.mn.us> Message-ID: Adam, you gave me a little doubt abotu shp line directions and Mapserver... Could you try to use a simble like this? SYMBOL NAME "arrow" TYPE TRUETYPE FONT verdana CHARACTER '&\#62;' # don't use the backslash! (the verdana greater than tag) FILLED true ANTIALIAS true GAP -10 # the negatation tells MapServer to honor the vector direction when computing the angle END and use it in the STYLE of the layer CLASS Put attention on the GAP parameter 2008/2/29, Adam Feidt : > I was hoping it could read ESRI's From and To node structure much like > ArcMap, but by the sounds of it that isn't possible. Shapefile geometry > is saved in the Shape column, which I'm guessing is useless in > Mapserver. What you're saying is I need to create an attribute and > populate it with the angle of the line and use that to define my label > direction? > > > Adam M. Feidt > GIS Coordinator > City of Eden Prairie > 8080 Mitchell Rd > Eden Prairie, MN 55344 > phone# 952-949-8443 > fax# 952-949-8334 > > > > -----Original Message----- > From: G. Allegri [mailto:giohappy at gmail.com] > Sent: Friday, February 29, 2008 8:57 AM > To: Adam Feidt > Cc: Fawcett, David; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] symbology showing line direction > > A question: how can you derive a line direction by a shp without > having an appropriate attribute? > > Giovanni > > 2008/2/29, Adam Feidt : > > > > > > > > > > David, > > > > Below is my Layer definition. I've tried a truetype symbol and > label > > with the ANGLE parameter set to AUTO or FOLLOW. Neither case pointed > out > > actual shapefile line direction. I'm reading an ESRI shapefile so > there is > > no specific column for line direction. > > > > > > > > LAYER > > > > NAME 'Utilities Sanitary Lines' > > > > DATA './UtilitiesSanitaryLines.shp' > > > > TYPE LINE > > > > STATUS DEFAULT > > > > CLASSITEM "Function" > > > > CLASS > > > > NAME 'Main' > > > > EXPRESSION "" > > > > STYLE > > > > COLOR 85 255 0 > > > > SYMBOL "plainline" > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Low Pressure' > > > > EXPRESSION "Low Pressure" > > > > STYLE > > > > COLOR 255 85 0 > > > > SYMBOL "plainline" > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Sub Trunk' > > > > EXPRESSION "Sub Trunk" > > > > STYLE > > > > COLOR 85 255 0 > > > > SYMBOL "plainline" > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Trunk' > > > > EXPRESSION "Trunk" > > > > STYLE > > > > COLOR 112 168 0 > > > > SYMBOL "plainline" > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Force Main' > > > > EXPRESSION "forcemain" > > > > STYLE > > > > COLOR 255 170 0 > > > > SYMBOL 'dashed1' > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Private' > > > > EXPRESSION "private" > > > > STYLE > > > > COLOR 161 33 240 > > > > SYMBOL 'plainline' > > > > SIZE 2 > > > > END > > > > END # end class > > > > END #end layer > > > > > > > > > > > > > > Adam M. Feidt > > > > GIS Coordinator > > > > City of Eden Prairie > > > > 8080 Mitchell Rd > > > > Eden Prairie, MN 55344 > > > > phone# 952-949-8443 > > > > fax# 952-949-8334 > > > > > > > > > > > > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > > Sent: Friday, February 29, 2008 8:19 AM > > To: Adam Feidt; mapserver-users at lists.osgeo.org > > Subject: RE: [mapserver-users] symbology showing line direction > > > > > > > > > > > > Adam, > > > > > > > > > > > > What does your layer definition, with the classes look like? > > > > > > > > > > > > Does your data have the direction column properly populated for all > records? > > > > > > > > > > > > > > David. > > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > > Of Adam Feidt > > Sent: Friday, February 29, 2008 8:14 AM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] symbology showing line direction > > > > I'm working in a GeoMoose application and trying to display > utility > > lines with the correct line direction via some arrow character or > symbol. > > I've had no luck so far. I've successfully labeled my lines with a > truetype > > font character by defining the TEXT ">" parameter in the CLASS object. > I've > > also tried a pixelmap symbol definition using a .gif file. Both > appear to > > work at first, but when you compare it to the actual line direction it > isn't > > true in all cases. Has anybody found a way to accomplish this? I > would > > appreciate if you could send me any examples. > > > > > > > > > > > > Adam M. Feidt > > > > GIS Coordinator > > > > City of Eden Prairie > > > > 8080 Mitchell Rd > > > > Eden Prairie, MN 55344 > > > > phone# 952-949-8443 > > > > fax# 952-949-8334 > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > From giohappy at gmail.com Fri Feb 29 07:53:20 2008 From: giohappy at gmail.com (G. Allegri) Date: Fri, 29 Feb 2008 16:53:20 +0100 Subject: [mapserver-users] symbology showing line direction In-Reply-To: References: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F88@ep-exch.ci.eden-prairie.mn.us> <6246727221874A4FB8D3F9BBC37D9BD5021FBB45@s-sp22.pca.state.mn.us> <6BEC95BE33AFA747833CB3B01FEDD93F048E1F91@ep-exch.ci.eden-prairie.mn.us> <6BEC95BE33AFA747833CB3B01FEDD93F048E1F9C@ep-exch.ci.eden-prairie.mn.us> Message-ID: About GAP: http://mapserver.gis.umn.edu/docs/reference/symbology/referencemanual-all-pages 2008/2/29, G. Allegri : > Adam, you gave me a little doubt abotu shp line directions and Mapserver... > > Could you try to use a simble like this? > > SYMBOL > > NAME "arrow" > TYPE TRUETYPE > FONT verdana > CHARACTER '&\#62;' # don't use the backslash! (the verdana greater > than tag) > FILLED true > ANTIALIAS true > GAP -10 # the negatation tells MapServer to honor the vector > direction when computing the angle > > END > > and use it in the STYLE of the layer CLASS > > Put attention on the GAP parameter > > > 2008/2/29, Adam Feidt : > > I was hoping it could read ESRI's From and To node structure much like > > ArcMap, but by the sounds of it that isn't possible. Shapefile geometry > > is saved in the Shape column, which I'm guessing is useless in > > Mapserver. What you're saying is I need to create an attribute and > > populate it with the angle of the line and use that to define my label > > direction? > > > > > > Adam M. Feidt > > GIS Coordinator > > City of Eden Prairie > > 8080 Mitchell Rd > > Eden Prairie, MN 55344 > > phone# 952-949-8443 > > fax# 952-949-8334 > > > > > > > > -----Original Message----- > > From: G. Allegri [mailto:giohappy at gmail.com] > > Sent: Friday, February 29, 2008 8:57 AM > > To: Adam Feidt > > Cc: Fawcett, David; mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] symbology showing line direction > > > > A question: how can you derive a line direction by a shp without > > having an appropriate attribute? > > > > Giovanni > > > > 2008/2/29, Adam Feidt : > > > > > > > > > > > > > > > David, > > > > > > Below is my Layer definition. I've tried a truetype symbol and > > label > > > with the ANGLE parameter set to AUTO or FOLLOW. Neither case pointed > > out > > > actual shapefile line direction. I'm reading an ESRI shapefile so > > there is > > > no specific column for line direction. > > > > > > > > > > > > LAYER > > > > > > NAME 'Utilities Sanitary Lines' > > > > > > DATA './UtilitiesSanitaryLines.shp' > > > > > > TYPE LINE > > > > > > STATUS DEFAULT > > > > > > CLASSITEM "Function" > > > > > > CLASS > > > > > > NAME 'Main' > > > > > > EXPRESSION "" > > > > > > STYLE > > > > > > COLOR 85 255 0 > > > > > > SYMBOL "plainline" > > > > > > SIZE 2 > > > > > > END > > > > > > END # end class > > > > > > CLASS > > > > > > NAME 'Low Pressure' > > > > > > EXPRESSION "Low Pressure" > > > > > > STYLE > > > > > > COLOR 255 85 0 > > > > > > SYMBOL "plainline" > > > > > > SIZE 2 > > > > > > END > > > > > > END # end class > > > > > > CLASS > > > > > > NAME 'Sub Trunk' > > > > > > EXPRESSION "Sub Trunk" > > > > > > STYLE > > > > > > COLOR 85 255 0 > > > > > > SYMBOL "plainline" > > > > > > SIZE 2 > > > > > > END > > > > > > END # end class > > > > > > CLASS > > > > > > NAME 'Trunk' > > > > > > EXPRESSION "Trunk" > > > > > > STYLE > > > > > > COLOR 112 168 0 > > > > > > SYMBOL "plainline" > > > > > > SIZE 2 > > > > > > END > > > > > > END # end class > > > > > > CLASS > > > > > > NAME 'Force Main' > > > > > > EXPRESSION "forcemain" > > > > > > STYLE > > > > > > COLOR 255 170 0 > > > > > > SYMBOL 'dashed1' > > > > > > SIZE 2 > > > > > > END > > > > > > END # end class > > > > > > CLASS > > > > > > NAME 'Private' > > > > > > EXPRESSION "private" > > > > > > STYLE > > > > > > COLOR 161 33 240 > > > > > > SYMBOL 'plainline' > > > > > > SIZE 2 > > > > > > END > > > > > > END # end class > > > > > > END #end layer > > > > > > > > > > > > > > > > > > > > > Adam M. Feidt > > > > > > GIS Coordinator > > > > > > City of Eden Prairie > > > > > > 8080 Mitchell Rd > > > > > > Eden Prairie, MN 55344 > > > > > > phone# 952-949-8443 > > > > > > fax# 952-949-8334 > > > > > > > > > > > > > > > > > > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > > > Sent: Friday, February 29, 2008 8:19 AM > > > To: Adam Feidt; mapserver-users at lists.osgeo.org > > > Subject: RE: [mapserver-users] symbology showing line direction > > > > > > > > > > > > > > > > > > Adam, > > > > > > > > > > > > > > > > > > What does your layer definition, with the classes look like? > > > > > > > > > > > > > > > > > > Does your data have the direction column properly populated for all > > records? > > > > > > > > > > > > > > > > > > > > > David. > > > > > > > > > -----Original Message----- > > > From: mapserver-users-bounces at lists.osgeo.org > > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > > > Of Adam Feidt > > > Sent: Friday, February 29, 2008 8:14 AM > > > To: mapserver-users at lists.osgeo.org > > > Subject: [mapserver-users] symbology showing line direction > > > > > > I'm working in a GeoMoose application and trying to display > > utility > > > lines with the correct line direction via some arrow character or > > symbol. > > > I've had no luck so far. I've successfully labeled my lines with a > > truetype > > > font character by defining the TEXT ">" parameter in the CLASS object. > > I've > > > also tried a pixelmap symbol definition using a .gif file. Both > > appear to > > > work at first, but when you compare it to the actual line direction it > > isn't > > > true in all cases. Has anybody found a way to accomplish this? I > > would > > > appreciate if you could send me any examples. > > > > > > > > > > > > > > > > > > Adam M. Feidt > > > > > > GIS Coordinator > > > > > > City of Eden Prairie > > > > > > 8080 Mitchell Rd > > > > > > Eden Prairie, MN 55344 > > > > > > phone# 952-949-8443 > > > > > > fax# 952-949-8334 > > > > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > From rodrigomartin at lopezgregorio.com.ar Fri Feb 29 07:53:25 2008 From: rodrigomartin at lopezgregorio.com.ar (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Fri, 29 Feb 2008 15:53:25 +0000 Subject: [mapserver-users] symbology showing line direction In-Reply-To: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F9C@ep-exch.ci.eden-prairie.mn.us> References: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F88@ep-exch.ci.eden-prairie.mn.us> <6246727221874A4FB8D3F9BBC37D9BD5021FBB45@s-sp22.pca.state.mn.us> <6BEC95BE33AFA747833CB3B01FEDD93F048E1F91@ep-exch.ci.eden-prairie.mn.us> <6BEC95BE33AFA747833CB3B01FEDD93F048E1F9C@ep-exch.ci.eden-prairie.mn.us> Message-ID: <10cf58b30802290753ob9f2df1s71ce1028c163b1ba@mail.gmail.com> Hi. I'm not sure if I understand what you are trying to do, but if I'm right you need to draw a > symbol over your lines in the direction of the line. If this is what you want you must define a SYMBOL and set it to your line. The trick to get the symbol drawed along line direction is to set the symbol GAP with a negative value. By example: SYMBOL NAME "arrow" TYPE truetype FONT arialbd * CHARACTER '»'* FILLED true ANTIALIAS true *GAP -100* END where the -100 value represents that CHARACTER must be drawed in the direction of the line (the minus) and CHARACTER must be drawed with a GAP of 100 map units between each other (In my case, my map unit is meters, so there will not be two > symbols for the same line in a radius of 100 meters). Then you must use this symbol in your line layer definition as SYMBOL for your CLASS element. Something like: LAYER .................... STYLE ANTIALIAS TRUE COLOR 255 255 255 OUTLINECOLOR 0 0 0 *SYMBOL "arrow"* SIZE 15 END ..................... END I hope it works for you. Sorry my english. Rodrigo. On Fri, Feb 29, 2008 at 3:06 PM, Adam Feidt wrote: > I was hoping it could read ESRI's From and To node structure much like > ArcMap, but by the sounds of it that isn't possible. Shapefile geometry > is saved in the Shape column, which I'm guessing is useless in > Mapserver. What you're saying is I need to create an attribute and > populate it with the angle of the line and use that to define my label > direction? > > Adam M. Feidt > GIS Coordinator > City of Eden Prairie > 8080 Mitchell Rd > Eden Prairie, MN 55344 > phone# 952-949-8443 > fax# 952-949-8334 > > > -----Original Message----- > From: G. Allegri [mailto:giohappy at gmail.com] > Sent: Friday, February 29, 2008 8:57 AM > To: Adam Feidt > Cc: Fawcett, David; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] symbology showing line direction > > A question: how can you derive a line direction by a shp without > having an appropriate attribute? > > Giovanni > > 2008/2/29, Adam Feidt : > > > > > > > > > > David, > > > > Below is my Layer definition. I've tried a truetype symbol and > label > > with the ANGLE parameter set to AUTO or FOLLOW. Neither case pointed > out > > actual shapefile line direction. I'm reading an ESRI shapefile so > there is > > no specific column for line direction. > > > > > > > > LAYER > > > > NAME 'Utilities Sanitary Lines' > > > > DATA './UtilitiesSanitaryLines.shp' > > > > TYPE LINE > > > > STATUS DEFAULT > > > > CLASSITEM "Function" > > > > CLASS > > > > NAME 'Main' > > > > EXPRESSION "" > > > > STYLE > > > > COLOR 85 255 0 > > > > SYMBOL "plainline" > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Low Pressure' > > > > EXPRESSION "Low Pressure" > > > > STYLE > > > > COLOR 255 85 0 > > > > SYMBOL "plainline" > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Sub Trunk' > > > > EXPRESSION "Sub Trunk" > > > > STYLE > > > > COLOR 85 255 0 > > > > SYMBOL "plainline" > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Trunk' > > > > EXPRESSION "Trunk" > > > > STYLE > > > > COLOR 112 168 0 > > > > SYMBOL "plainline" > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Force Main' > > > > EXPRESSION "forcemain" > > > > STYLE > > > > COLOR 255 170 0 > > > > SYMBOL 'dashed1' > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Private' > > > > EXPRESSION "private" > > > > STYLE > > > > COLOR 161 33 240 > > > > SYMBOL 'plainline' > > > > SIZE 2 > > > > END > > > > END # end class > > > > END #end layer > > > > > > > > > > > > > > Adam M. Feidt > > > > GIS Coordinator > > > > City of Eden Prairie > > > > 8080 Mitchell Rd > > > > Eden Prairie, MN 55344 > > > > phone# 952-949-8443 > > > > fax# 952-949-8334 > > > > > > > > > > > > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > > Sent: Friday, February 29, 2008 8:19 AM > > To: Adam Feidt; mapserver-users at lists.osgeo.org > > Subject: RE: [mapserver-users] symbology showing line direction > > > > > > > > > > > > Adam, > > > > > > > > > > > > What does your layer definition, with the classes look like? > > > > > > > > > > > > Does your data have the direction column properly populated for all > records? > > > > > > > > > > > > > > David. > > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > > Of Adam Feidt > > Sent: Friday, February 29, 2008 8:14 AM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] symbology showing line direction > > > > I'm working in a GeoMoose application and trying to display > utility > > lines with the correct line direction via some arrow character or > symbol. > > I've had no luck so far. I've successfully labeled my lines with a > truetype > > font character by defining the TEXT ">" parameter in the CLASS object. > I've > > also tried a pixelmap symbol definition using a .gif file. Both > appear to > > work at first, but when you compare it to the actual line direction it > isn't > > true in all cases. Has anybody found a way to accomplish this? I > would > > appreciate if you could send me any examples. > > > > > > > > > > > > Adam M. Feidt > > > > GIS Coordinator > > > > City of Eden Prairie > > > > 8080 Mitchell Rd > > > > Eden Prairie, MN 55344 > > > > phone# 952-949-8443 > > > > fax# 952-949-8334 > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From afeidt at edenprairie.org Fri Feb 29 08:12:48 2008 From: afeidt at edenprairie.org (Adam Feidt) Date: Fri, 29 Feb 2008 10:12:48 -0600 Subject: [mapserver-users] symbology showing line direction In-Reply-To: References: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F88@ep-exch.ci.eden-prairie.mn.us> <6246727221874A4FB8D3F9BBC37D9BD5021FBB45@s-sp22.pca.state.mn.us> <6BEC95BE33AFA747833CB3B01FEDD93F048E1F91@ep-exch.ci.eden-prairie.mn.us> <6BEC95BE33AFA747833CB3B01FEDD93F048E1F9C@ep-exch.ci.eden-prairie.mn.us> Message-ID: <6BEC95BE33AFA747833CB3B01FEDD93F048E1FB4@ep-exch.ci.eden-prairie.mn.us> I've tried that. It doesn't work. All symbols are drawn at the same angle unless I'm doing something wrong. I've also tried this... CLASS TEXT ">" LABEL TYPE TRUETYPE ANGLE AUTO -- * I've also tried FOLLOW FONT verdana ANTIALIAS TRUE END It appears to work at first, but it isn't consistent in all cases with the line direction. I don't think it will draw a label from right to left thus the character isn't reversed. Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 -----Original Message----- From: G. Allegri [mailto:giohappy at gmail.com] Sent: Friday, February 29, 2008 9:51 AM To: Adam Feidt Cc: Fawcett, David; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] symbology showing line direction Adam, you gave me a little doubt abotu shp line directions and Mapserver... Could you try to use a simble like this? SYMBOL NAME "arrow" TYPE TRUETYPE FONT verdana CHARACTER '&\#62;' # don't use the backslash! (the verdana greater than tag) FILLED true ANTIALIAS true GAP -10 # the negatation tells MapServer to honor the vector direction when computing the angle END and use it in the STYLE of the layer CLASS Put attention on the GAP parameter 2008/2/29, Adam Feidt : > I was hoping it could read ESRI's From and To node structure much like > ArcMap, but by the sounds of it that isn't possible. Shapefile geometry > is saved in the Shape column, which I'm guessing is useless in > Mapserver. What you're saying is I need to create an attribute and > populate it with the angle of the line and use that to define my label > direction? > > > Adam M. Feidt > GIS Coordinator > City of Eden Prairie > 8080 Mitchell Rd > Eden Prairie, MN 55344 > phone# 952-949-8443 > fax# 952-949-8334 > > > > -----Original Message----- > From: G. Allegri [mailto:giohappy at gmail.com] > Sent: Friday, February 29, 2008 8:57 AM > To: Adam Feidt > Cc: Fawcett, David; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] symbology showing line direction > > A question: how can you derive a line direction by a shp without > having an appropriate attribute? > > Giovanni > > 2008/2/29, Adam Feidt : > > > > > > > > > > David, > > > > Below is my Layer definition. I've tried a truetype symbol and > label > > with the ANGLE parameter set to AUTO or FOLLOW. Neither case pointed > out > > actual shapefile line direction. I'm reading an ESRI shapefile so > there is > > no specific column for line direction. > > > > > > > > LAYER > > > > NAME 'Utilities Sanitary Lines' > > > > DATA './UtilitiesSanitaryLines.shp' > > > > TYPE LINE > > > > STATUS DEFAULT > > > > CLASSITEM "Function" > > > > CLASS > > > > NAME 'Main' > > > > EXPRESSION "" > > > > STYLE > > > > COLOR 85 255 0 > > > > SYMBOL "plainline" > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Low Pressure' > > > > EXPRESSION "Low Pressure" > > > > STYLE > > > > COLOR 255 85 0 > > > > SYMBOL "plainline" > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Sub Trunk' > > > > EXPRESSION "Sub Trunk" > > > > STYLE > > > > COLOR 85 255 0 > > > > SYMBOL "plainline" > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Trunk' > > > > EXPRESSION "Trunk" > > > > STYLE > > > > COLOR 112 168 0 > > > > SYMBOL "plainline" > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Force Main' > > > > EXPRESSION "forcemain" > > > > STYLE > > > > COLOR 255 170 0 > > > > SYMBOL 'dashed1' > > > > SIZE 2 > > > > END > > > > END # end class > > > > CLASS > > > > NAME 'Private' > > > > EXPRESSION "private" > > > > STYLE > > > > COLOR 161 33 240 > > > > SYMBOL 'plainline' > > > > SIZE 2 > > > > END > > > > END # end class > > > > END #end layer > > > > > > > > > > > > > > Adam M. Feidt > > > > GIS Coordinator > > > > City of Eden Prairie > > > > 8080 Mitchell Rd > > > > Eden Prairie, MN 55344 > > > > phone# 952-949-8443 > > > > fax# 952-949-8334 > > > > > > > > > > > > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > > Sent: Friday, February 29, 2008 8:19 AM > > To: Adam Feidt; mapserver-users at lists.osgeo.org > > Subject: RE: [mapserver-users] symbology showing line direction > > > > > > > > > > > > Adam, > > > > > > > > > > > > What does your layer definition, with the classes look like? > > > > > > > > > > > > Does your data have the direction column properly populated for all > records? > > > > > > > > > > > > > > David. > > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > > Of Adam Feidt > > Sent: Friday, February 29, 2008 8:14 AM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] symbology showing line direction > > > > I'm working in a GeoMoose application and trying to display > utility > > lines with the correct line direction via some arrow character or > symbol. > > I've had no luck so far. I've successfully labeled my lines with a > truetype > > font character by defining the TEXT ">" parameter in the CLASS object. > I've > > also tried a pixelmap symbol definition using a .gif file. Both > appear to > > work at first, but when you compare it to the actual line direction it > isn't > > true in all cases. Has anybody found a way to accomplish this? I > would > > appreciate if you could send me any examples. > > > > > > > > > > > > Adam M. Feidt > > > > GIS Coordinator > > > > City of Eden Prairie > > > > 8080 Mitchell Rd > > > > Eden Prairie, MN 55344 > > > > phone# 952-949-8443 > > > > fax# 952-949-8334 > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > From szekerest at gmail.com Fri Feb 29 08:13:45 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 29 Feb 2008 17:13:45 +0100 Subject: [mapserver-users] Mapserver equivalent for .NET In-Reply-To: <1204299806.6055.49.camel@edoras> References: <887928.23939.qm@web36815.mail.mud.yahoo.com> <47C72D1E.6020504@mapgears.com> <47C7C7DA.3050404@zeelandnet.nl> <1204279285.6055.4.camel@edoras> <1204299806.6055.49.camel@edoras> Message-ID: Tim, I think this article makes sense, but there are a number of advantages of the 'BSD-ing' either. Most of the commercial users wouldn't want to choose this project if it was GPL-d so they would want to reinvent the wheels instead of suggesting good enhancements for the project. This option has a more powerful influence to collect a fair amount of users getting involved and keep the things alive and prevent from creating duplicated solutions. On the other hand I'm not totally sure in that every user is completely aware of the requirements and the restrictions of the actual open source license they use. Best regards, Tamas 2008/2/29, Tim Bowden : > > On Fri, 2008-02-29 at 13:32 +0100, Tamas Szekeres wrote: > > I'm not aware of any compelling reason to switch to a more restrictive > > license. > > > Sure, the current licensing arrangement seems to be working well for > mapserver, though there are sometimes reasons to be less permissive. I > speculated about this the other day in a different context > (http://blog.mapforge.com.au/index.php/2008/02/27/when-open-source-doesnt-add-up/) Perhaps I'm wrong. I'd like to get others thoughts on this /without/ starting a flame war (off list if you like; It's not mapserver specific). I realise there can be strong feelings about licensing but so long as it's open source I'm not too worried. > > > > However I personally don't think it's derogatory for a > > project to expose which open source libraries it depends on. > > > Of course this is always nice, though the choice has been left up to > downstream users/devs. If they did give credit, perhaps it would > encourage more participation in mapserver and in the long term they'd > benefit from having a stronger foundation on which to build. After all, > the cost of acknowledgement is about as low as you can get. > > Regards, > > Tim Bowden > > > > > > Best regards, > > > > Tamas > > > > > > 2008/2/29, Tim Bowden : > > > > > > On Fri, 2008-02-29 at 09:52 +0100, Milo van der Linden wrote: > > > > Given the fact that MpaDtoNte is commercial, it is probably not an > > > > alternative. :-P > > > > > > > > About using Mapserver under the hood; shameless! These guys should > > > > recieve punishment! > > > > They should be forced to donate to the mapserver project and show the > > > > mapserver logo everywhere. ;-) > > > > > > > > > > > > I thought mapserver was distributed under a license that specifically > > > and deliberately allowed this. If this is considered undesirable, > > > shouldn't it be released under a less permissive license? > > > > > > > > > Tim Bowden > > > > > > > > > > > > > > Daniel Morissette schreef: > > > > > Matt M wrote: > > > > >> Anyone know of a .NET equivalent of Mapserver? > > > > >> > > > > > > > > > > Plesae dnot' tlel aynnoe, but MpaDtoNet hsa MpaSreevr udern teh hood. > > > > > I wshi tehy wree mroe opne atuob tihs. ;) > > > > > _______________________________________________ > > > > > mapserver-users mailing list > > > > > mapserver-users at lists.osgeo.org > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > > > _______________________________________________ > > > > mapserver-users mailing list > > > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > From dmorissette at mapgears.com Fri Feb 29 08:21:47 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 29 Feb 2008 11:21:47 -0500 Subject: [MAPSERVER-USERS] Mapserver equivalent for .NET In-Reply-To: References: <887928.23939.qm@web36815.mail.mud.yahoo.com> <47C72D1E.6020504@mapgears.com> <15758924.post@talk.nabble.com> Message-ID: <47C8311B.1030709@mapgears.com> Paolo Corti wrote: > Adam > > Daniel is talking about MapDotNet (commercial), not about SharpMap > that is an impressive and native .NET OS under GNU Lesser General > Public License. > That's correct, I was talking about MapDotNet, not SharpMap. For those still in doubt, just look at the docs, there are screen grabs showing mapfiles, and the mapfile docs themselves are awfully familiar. Actually, I browsed a bit and there are mentions of MapServer in a few places in the wiki (docs) and in the forums, so their use of MapServer is not completely secret. :) Daniel -- Daniel Morissette http://www.mapgears.com/ From mlinden at zeelandnet.nl Fri Feb 29 08:36:32 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Fri, 29 Feb 2008 17:36:32 +0100 Subject: [MAPSERVER-USERS] Mapserver equivalent for .NET In-Reply-To: References: <887928.23939.qm@web36815.mail.mud.yahoo.com> <47C72D1E.6020504@mapgears.com> <15758924.post@talk.nabble.com> Message-ID: <47C83490.3090001@zeelandnet.nl> An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Fri Feb 29 08:41:27 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 29 Feb 2008 11:41:27 -0500 Subject: [mapserver-users] Mapserver equivalent for .NET In-Reply-To: <1204299806.6055.49.camel@edoras> References: <887928.23939.qm@web36815.mail.mud.yahoo.com> <47C72D1E.6020504@mapgears.com> <47C7C7DA.3050404@zeelandnet.nl> <1204279285.6055.4.camel@edoras> <1204299806.6055.49.camel@edoras> Message-ID: <47C835B7.70702@pobox.com> Tim Bowden wrote: > On Fri, 2008-02-29 at 13:32 +0100, Tamas Szekeres wrote: >> I'm not aware of any compelling reason to switch to a more restrictive >> license. > > Sure, the current licensing arrangement seems to be working well for > mapserver, though there are sometimes reasons to be less permissive. I > speculated about this the other day in a different context > (http://blog.mapforge.com.au/index.php/2008/02/27/when-open-source-doesnt-add-up/) Perhaps I'm wrong. I'd like to get others thoughts on this /without/ starting a flame war (off list if you like; It's not mapserver specific). I realise there can be strong feelings about licensing but so long as it's open source I'm not too worried. Tim, My attempts to register with your blog seem to have failed, so I'm going to reply briefly here. In referencing MySQL as an example of the GPL being a strongly license, you need to be clear that MySQL AB's value as a company is based on the fact that they can offer non-GPL licensing to licensors of MySQL because they retain copyright ownership of all the MySQL code. That is, they have retained a degree of control of the project that no-one could have over MapServer at this point and they use that control to squeeze money out of folks not willing to comply with GPL terms. That is a reasonable model for open source business, but it can't work for MapServer at this point and in any event I find it the antithesis of building a "community of equality" where all participants can potentially have equal influence if they are willing to contribute equally. Beyond the fact that it would be impractical to change now, I think the current permissive license for MapServer has been one of it's "secrets to success". Companies building products like MapDotNet on MapServer is a good thing, and with a bit of encouragement such organizations are generally willing to contribute to and support MapServer to some degree (as does already occur in this particular case). I *do* wish we had a way to turn "interest in supporting" into direct maintenance on the core via a sponsorship program as has worked fairly well for GDAL. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From dmorissette at mapgears.com Fri Feb 29 08:44:21 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 29 Feb 2008 11:44:21 -0500 Subject: [mapserver-users] Mapserver equivalent for .NET In-Reply-To: <47C8052C.10605@tamu.edu> References: <887928.23939.qm@web36815.mail.mud.yahoo.com> <47C72D1E.6020504@mapgears.com> <47C7C7DA.3050404@zeelandnet.nl> <1204279285.6055.4.camel@edoras> <47C7FE2D.9010701@mapgears.com> <47C8052C.10605@tamu.edu> Message-ID: <47C83665.6060700@mapgears.com> Gerry Creager wrote: > Daniel, > > Might someone forward a request like this to them as a gentle prod? > Could be an idea. But they must have at least one person on staff listening to this list to stay up to date with releases, known bugs, FAQs, etc... so in some way this thread *is* a gentle prod... the ball is in their camp now. Daniel -- Daniel Morissette http://www.mapgears.com/ From pramsey at cleverelephant.ca Fri Feb 29 08:48:23 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Fri, 29 Feb 2008 08:48:23 -0800 Subject: [MAPSERVER-USERS] postgres transaction warnings In-Reply-To: <15751359.post@talk.nabble.com> References: <15749333.post@talk.nabble.com> <15749520.post@talk.nabble.com> <15751359.post@talk.nabble.com> Message-ID: <30fe546d0802290848t42c49cceh1a69a4a8bccfcbc4@mail.gmail.com> Rich, As you noted in an earlier message, there is nothing actually being *done* to the database, so there is no need to COMMIT. If we didn't need to BEGIN to get our hands on a binary cursor, we wouldn't do it. The connection close in the end is our implicit COMMIT. Paul On 2/28/08, rich.fromm wrote: > > So I think that maybe effectively answers my question (2), why transactions. > > But I'm still baffled by the rest of (1), why there are no COMMIT or END > statements. Although the patch for bug 2497 does seem to have gotten rid of > my warning messages. > > - Rich From guillaume.sueur at neogeo-online.net Fri Feb 29 08:50:57 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Fri, 29 Feb 2008 17:50:57 +0100 Subject: [MAPSERVER-USERS] Mapserver equivalent for .NET In-Reply-To: <47C8311B.1030709@mapgears.com> References: <887928.23939.qm@web36815.mail.mud.yahoo.com> <47C72D1E.6020504@mapgears.com> <15758924.post@talk.nabble.com> <47C8311B.1030709@mapgears.com> Message-ID: <47C837F1.1020407@neogeo-online.net> Indeed Daniel, I've found interesting ressources here : http://www.mapdotnet.com/wiki/Wiki%20Pages/Working%20with%20MapFiles.aspx they write here (http://www.mapdotnet.com/wiki/Wiki%20Pages/MapFile%20Complete%20Reference.aspx) some funny stuff: "The MapFile format used in MDNS adheres to the MapServer map file specification." I didn't know that our good ol' mapfile was such a universal reference ! But, althought funny, this sentence tries to make people believe MapDotNet only use the mapfile format, and not mapserver itself, which can be considered unfaithfull if it effectively uses the mapserver engine behind. Guillaume Daniel Morissette a ?crit : > Paolo Corti wrote: >> Adam >> >> Daniel is talking about MapDotNet (commercial), not about SharpMap >> that is an impressive and native .NET OS under GNU Lesser General >> Public License. >> > > That's correct, I was talking about MapDotNet, not SharpMap. > > For those still in doubt, just look at the docs, there are screen grabs > showing mapfiles, and the mapfile docs themselves are awfully familiar. > > Actually, I browsed a bit and there are mentions of MapServer in a few > places in the wiki (docs) and in the forums, so their use of MapServer > is not completely secret. :) > > Daniel From David.Fawcett at state.mn.us Fri Feb 29 08:08:36 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Fri, 29 Feb 2008 10:08:36 -0600 Subject: [mapserver-users] symbology showing line direction In-Reply-To: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F91@ep-exch.ci.eden-prairie.mn.us> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBB49@s-sp22.pca.state.mn.us> Adam, I am quite sure that MapServer is not going to read the line topology. To display direction, you will need to add an attribute for flow direction and populate it. You would then use an expression for each class that combined both the pipe type and the direction. (Maybe use -1 and 1 for values?) Something like ('[FUNCTION]' = 'Main' AND [DIRECTION] = -1) I haven't tested this. Note the difference in quoting for string fields vs number fields. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Adam Feidt Sent: Friday, February 29, 2008 8:43 AM To: Fawcett, David; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] symbology showing line direction David, Below is my Layer definition. I've tried a truetype symbol and label with the ANGLE parameter set to AUTO or FOLLOW. Neither case pointed out actual shapefile line direction. I'm reading an ESRI shapefile so there is no specific column for line direction. LAYER NAME 'Utilities Sanitary Lines' DATA './UtilitiesSanitaryLines.shp' TYPE LINE STATUS DEFAULT CLASSITEM "Function" CLASS NAME 'Main' EXPRESSION "" STYLE COLOR 85 255 0 SYMBOL "plainline" SIZE 2 END END # end class CLASS NAME 'Low Pressure' EXPRESSION "Low Pressure" STYLE COLOR 255 85 0 SYMBOL "plainline" SIZE 2 END END # end class CLASS NAME 'Sub Trunk' EXPRESSION "Sub Trunk" STYLE COLOR 85 255 0 SYMBOL "plainline" SIZE 2 END END # end class CLASS NAME 'Trunk' EXPRESSION "Trunk" STYLE COLOR 112 168 0 SYMBOL "plainline" SIZE 2 END END # end class CLASS NAME 'Force Main' EXPRESSION "forcemain" STYLE COLOR 255 170 0 SYMBOL 'dashed1' SIZE 2 END END # end class CLASS NAME 'Private' EXPRESSION "private" STYLE COLOR 161 33 240 SYMBOL 'plainline' SIZE 2 END END # end class END #end layer Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Friday, February 29, 2008 8:19 AM To: Adam Feidt; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] symbology showing line direction Adam, What does your layer definition, with the classes look like? Does your data have the direction column properly populated for all records? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Adam Feidt Sent: Friday, February 29, 2008 8:14 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] symbology showing line direction I'm working in a GeoMoose application and trying to display utility lines with the correct line direction via some arrow character or symbol. I've had no luck so far. I've successfully labeled my lines with a truetype font character by defining the TEXT ">" parameter in the CLASS object. I've also tried a pixelmap symbol definition using a .gif file. Both appear to work at first, but when you compare it to the actual line direction it isn't true in all cases. Has anybody found a way to accomplish this? I would appreciate if you could send me any examples. Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Fri Feb 29 09:14:33 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 29 Feb 2008 12:14:33 -0500 Subject: [mapserver-users] Occasional Contract work? In-Reply-To: <544323749-1204272084-cardhu_decombobulator_blackberry.rim.net-1978495608-@bxe005.bisx.prodap.on.blackberry> References: <544323749-1204272084-cardhu_decombobulator_blackberry.rim.net-1978495608-@bxe005.bisx.prodap.on.blackberry> Message-ID: <47C83D79.4010405@pobox.com> Mark White wrote: > Hi > > Our company seeks the occasional services of a mapserver consultant to help > install/tweak mapserver installations. We are in Brisbane, Australia. > > PHP skills would be essential, PostgreSQL skills advantageous. > > If anyone is interested, I will ask you to drop me a note off-list outlining > experience, availability, hourly/daily rates etc. Mark, You might also find that the OSGeo Service Provider Directory is a useful mechanism to identify potential consultants. http://www.osgeo.org/spd_help Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From mlinden at zeelandnet.nl Fri Feb 29 09:15:07 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Fri, 29 Feb 2008 18:15:07 +0100 Subject: [MAPSERVER-USERS] Mapserver equivalent for .NET In-Reply-To: <47C837F1.1020407@neogeo-online.net> References: <887928.23939.qm@web36815.mail.mud.yahoo.com> <47C72D1E.6020504@mapgears.com> <15758924.post@talk.nabble.com> <47C8311B.1030709@mapgears.com> <47C837F1.1020407@neogeo-online.net> Message-ID: <47C83D9B.8080407@zeelandnet.nl> Concerning SharpMap: - I am writting a webservice handler for SharpMap at this moment. It allows SharpMap to behave as a WMS 1.3.0 server ONLY for the GetMap request (for more functionality; volunteers needed) - For SharpMap I have written a XML specification that is also humbly (and offers far less possibilities for now :'( ) based upon the Mapserver Mapfile To me Mapserver is the mother of Open Source Maphosting! Guillaume Sueur schreef: > Indeed Daniel, I've found interesting ressources here : > http://www.mapdotnet.com/wiki/Wiki%20Pages/Working%20with%20MapFiles.aspx > > they write here > (http://www.mapdotnet.com/wiki/Wiki%20Pages/MapFile%20Complete%20Reference.aspx) > some funny stuff: > "The MapFile format used in MDNS adheres to the MapServer map file > specification." > > I didn't know that our good ol' mapfile was such a universal reference ! > But, althought funny, this sentence tries to make people believe > MapDotNet only use the mapfile format, and not mapserver itself, which > can be considered unfaithfull if it effectively uses the mapserver > engine behind. > > Guillaume > > > > Daniel Morissette a ?crit : >> Paolo Corti wrote: >>> Adam >>> >>> Daniel is talking about MapDotNet (commercial), not about SharpMap >>> that is an impressive and native .NET OS under GNU Lesser General >>> Public License. >>> >> >> That's correct, I was talking about MapDotNet, not SharpMap. >> >> For those still in doubt, just look at the docs, there are screen >> grabs showing mapfiles, and the mapfile docs themselves are awfully >> familiar. >> >> Actually, I browsed a bit and there are mentions of MapServer in a >> few places in the wiki (docs) and in the forums, so their use of >> MapServer is not completely secret. :) >> >> Daniel > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From giohappy at gmail.com Fri Feb 29 09:49:16 2008 From: giohappy at gmail.com (G. Allegri) Date: Fri, 29 Feb 2008 18:49:16 +0100 Subject: [mapserver-users] symbology showing line direction In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBB49@s-sp22.pca.state.mn.us> References: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F91@ep-exch.ci.eden-prairie.mn.us> <6246727221874A4FB8D3F9BBC37D9BD5021FBB49@s-sp22.pca.state.mn.us> Message-ID: David, I had your opinion too, but Adam seems to have solved it. Adam, do you confirm that you can display correctly directions? 2008/2/29, Fawcett, David : > > > Adam, > > I am quite sure that MapServer is not going to read the line topology. To > display direction, you will need to add an attribute for flow direction and > populate it. You would then use an expression for each class that combined > both the pipe type and the direction. (Maybe use -1 and 1 for values?) > > Something like ('[FUNCTION]' = 'Main' AND [DIRECTION] = -1) > > I haven't tested this. Note the difference in quoting for string fields vs > number fields. > > David. > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > Of Adam Feidt > Sent: Friday, February 29, 2008 8:43 AM > To: Fawcett, David; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] symbology showing line direction > > > > > David, > > Below is my Layer definition. I've tried a truetype symbol and label > with the ANGLE parameter set to AUTO or FOLLOW. Neither case pointed out > actual shapefile line direction. I'm reading an ESRI shapefile so there is > no specific column for line direction. > > > > LAYER > > NAME 'Utilities Sanitary Lines' > > DATA './UtilitiesSanitaryLines.shp' > > TYPE LINE > > STATUS DEFAULT > > CLASSITEM "Function" > > CLASS > > NAME 'Main' > > EXPRESSION "" > > STYLE > > COLOR 85 255 0 > > SYMBOL "plainline" > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Low Pressure' > > EXPRESSION "Low Pressure" > > STYLE > > COLOR 255 85 0 > > SYMBOL "plainline" > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Sub Trunk' > > EXPRESSION "Sub Trunk" > > STYLE > > COLOR 85 255 0 > > SYMBOL "plainline" > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Trunk' > > EXPRESSION "Trunk" > > STYLE > > COLOR 112 168 0 > > SYMBOL "plainline" > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Force Main' > > EXPRESSION "forcemain" > > STYLE > > COLOR 255 170 0 > > SYMBOL 'dashed1' > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Private' > > EXPRESSION "private" > > STYLE > > COLOR 161 33 240 > > SYMBOL 'plainline' > > SIZE 2 > > END > > END # end class > > END #end layer > > > > > > > Adam M. Feidt > > GIS Coordinator > > City of Eden Prairie > > 8080 Mitchell Rd > > Eden Prairie, MN 55344 > > phone# 952-949-8443 > > fax# 952-949-8334 > > > > > > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > Sent: Friday, February 29, 2008 8:19 AM > To: Adam Feidt; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] symbology showing line direction > > > > > Adam, > > > > > > What does your layer definition, with the classes look like? > > > > > > Does your data have the direction column properly populated for all records? > > > > > > > David. > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > Of Adam Feidt > Sent: Friday, February 29, 2008 8:14 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] symbology showing line direction > > I'm working in a GeoMoose application and trying to display utility > lines with the correct line direction via some arrow character or symbol. > I've had no luck so far. I've successfully labeled my lines with a truetype > font character by defining the TEXT ">" parameter in the CLASS object. I've > also tried a pixelmap symbol definition using a .gif file. Both appear to > work at first, but when you compare it to the actual line direction it isn't > true in all cases. Has anybody found a way to accomplish this? I would > appreciate if you could send me any examples. > > > > > > Adam M. Feidt > > GIS Coordinator > > City of Eden Prairie > > 8080 Mitchell Rd > > Eden Prairie, MN 55344 > > phone# 952-949-8443 > > fax# 952-949-8334 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From nospam420 at yahoo.com Fri Feb 29 10:58:21 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Fri, 29 Feb 2008 10:58:21 -0800 (PST) Subject: [MAPSERVER-USERS] postgres transaction warnings In-Reply-To: <30fe546d0802290848t42c49cceh1a69a4a8bccfcbc4@mail.gmail.com> References: <15749333.post@talk.nabble.com> <15749520.post@talk.nabble.com> <15751359.post@talk.nabble.com> <30fe546d0802290848t42c49cceh1a69a4a8bccfcbc4@mail.gmail.com> Message-ID: <15765216.post@talk.nabble.com> Paul Ramsey-3 wrote: > > there is nothing actually being > *done* to the database, so there is no need to COMMIT. If we didn't > need to BEGIN to get our hands on a binary cursor, we wouldn't do it. > The connection close in the end is our implicit COMMIT. > Ok, but is it maybe just considered bad form to have a BEGIN without a COMMIT? I don't know enough about SQL to say whether or not this is the case. Would it hurt things at all to include the COMMIT? At the very least, maybe a comment in mappostgis.c clarifying why a COMMIT is not necessary might clarify things a bit. The comment about why the BEGIN is needed is indeed helpful. (Although only located at 1 of the 5 BEGIN instances, but perhaps that's sufficient.) - Rich -- View this message in context: http://www.nabble.com/postgres-transaction-warnings-tp15749333p15765216.html Sent from the Mapserver - User mailing list archive at Nabble.com. From hal at mobilegeographics.com Fri Feb 29 11:24:00 2008 From: hal at mobilegeographics.com (Hal Mueller) Date: Fri, 29 Feb 2008 11:24:00 -0800 Subject: [mapserver-users] Re: Symbol placement inconsistency In-Reply-To: References: Message-ID: <3E2F6FCA-354C-4674-B331-AD1C502F9CC8@mobilegeographics.com> Dave, it looks to me like you're seeing effects of collision avoidance in label cacheing. I would expect those artifacts to be more extreme near the edges of the images. I wonder what would happen if you greatly increased your edge buffer. If you need a 4096x4096 tile, then produce a 12288x12288 (3x3) image and carve out the central 1/9. That would reduce the artifacts but can't be guaranteed to eliminate them. I think the only guarantee would be to explicitly specify label locations, and turn off the label collision avoidance. I've copied this thread over to the new list, as the lists.umn.edu address's demise is imminent. Hal On Feb 29, 2008, at 3:52 AM, Dave Weaver wrote: > MapServer doesn't seem to be entirely consistent with placement of > symbols. > > Consider these 2 overlapping images: > > http://www.screenshots.cc/view_image/5437e415/thayer-east.png > http://www.screenshots.cc/view_image/b0aae448/thayer-west.png > > This is causing me problems. I need to generate lots of map tiles > covering > a large area. These tiles need to be able to be displayed next to > each other > seamlessly. To avoid partial symbols on the edge of tiles, I'm > rendering > tiles too large then trimming off a 256-pixel border around each. > However, > when symbols are plotted in different places on adjacent tiles, I'm > getting > partial symbols around the edge of my trimmed tiles which *don't* > have a > corresponding partial symbol on the adjacent tile. (if you see what > I mean). > > I'm using MapServer 5.0.0 from the ms4w package. > > What can I do to cure my problem? > > Thanks, > Dave. From pmoen at nd.gov Fri Feb 29 11:28:05 2008 From: pmoen at nd.gov (Paul Moen) Date: Fri, 29 Feb 2008 13:28:05 -0600 Subject: [mapserver-users] Re: [UMN_MAPSERVER-USERS] Mapscript Question In-Reply-To: <15BC669CF041394BA59CD172B9991DC104C514DA@balt-exch1-srv.baltimore.city> Message-ID: Each shape can be projected using the following. The shape?s current projection. (epsg 2266 in this case.) $insridtext="proj=lcc,lat_1=47.48333333333333,lat_2=46.18333333333333,lat_0= 45.66666666666666,lon_0=-100.5,x_0=599999.9999976,y_0=0,ellps=GRS80,datum=NA D83,to_meter=0.3048,no_defs"; The projection you want the shape to be. (epsg 4269 in this case) $outsridtext="+proj=longlat +ellps=GRS80 +datum=NAD83 +no_defs"; $projin = ms_newProjectionObj($insridtext); $projout = ms_newProjectionObj($outsridtext); $shptemp->project($projin,$projout); On 2/29/08 12:33 PM, "Pearson, Gregory" wrote: > Thanks, Paul. I took a look and what I have found is that most of the > information available to me through the shape object is defined in the *dbf > file. But, I have another issue you may be able to help with. Have you done > projections? > > > > From: Paul Moen [mailto:pmoen at nd.gov] > Sent: Friday, February 29, 2008 10:19 AM > To: Pearson, Gregory; mapserver-users at lists.osgeo.org > Subject: Re: [UMN_MAPSERVER-USERS] Mapscript Question > > It will give you the bounding coordinates of the all the shapes in your > result. > > We use it to dynamically zoom in on the results from our query. It works fine > for our purposes. > > Keep in mind that you can get most everything you need from shape objects that > the loop iterates through. You can parse out the lines, get the wkt, centroid > or whatever you want. > > Check out > http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/shapeob> j > > Hope this helps, > > Paul > > On 2/29/08 7:54 AM, "Pearson, Gregory" > wrote: > Thanks, Paul. I was hoping the API provided this function. So, you?re saying I > can derive the coordinates from the min/max X and Y points? Have you > implemented this? > > Greg > > > > From: Paul Moen [mailto:pmoen at nd.gov] > Sent: Thursday, February 28, 2008 4:16 PM > To: Pearson, Gregory; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Mapscript Question > > You could try to use the bounds and loop through the results. > > $test=@$qlayer->queryByAttributes($item,$temptest,MS_MULTIPLE); > if ($test == MS_SUCCESS) { > $minX=-1; > $minY=-1; > $maxX=-1; > $maxY=-1; > for ($ind = 0;$ind<$qlayer->getNumResults();$ind++) { > $result = $qlayer->getResult($ind); > $shpindex = $result->shapeindex; > $tilindex = $result->tileindex; > $shptemp = $qlayer->getShape($tilindex,$shpindex); > $rec = $shptemp->bounds; > if ($minX == -1 or $minX > $rec->minx) > $minX=Round($rec->minx); > if ($minY == -1 or $minY > $rec->miny) > $minY=Round($rec->miny); > if ($maxX == -1 or $maxX < $rec->maxx) > $maxX=Round($rec->maxx); > if ($maxY == -1 or $maxY < $rec->maxy) > $maxY=Round($rec->maxy); > } > } > > On 2/28/08 2:23 PM, "Pearson, Gregory" > wrote: > I am doing a layer search using the method queryByAttributes and want to know > if I can get the map coordinates from the result. So far, I haven?t seen > anything in the API documentation that supports this. Is this possible? > > Greg > > > Paul > > > Paul T. Moen pmoen at nd.gov 701-328-2434 701-328-3696 (fax) ND State Water Commission -------------- next part -------------- An HTML attachment was scrubbed... URL: From afeidt at edenprairie.org Fri Feb 29 11:30:35 2008 From: afeidt at edenprairie.org (Adam Feidt) Date: Fri, 29 Feb 2008 13:30:35 -0600 Subject: [mapserver-users] symbology showing line direction In-Reply-To: References: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F91@ep-exch.ci.eden-prairie.mn.us> <6246727221874A4FB8D3F9BBC37D9BD5021FBB49@s-sp22.pca.state.mn.us> Message-ID: <6BEC95BE33AFA747833CB3B01FEDD93F048E1FF1@ep-exch.ci.eden-prairie.mn.us> Yes it does work. The negative GAP value seems to be the solution. I did not compare it extensively, but the areas I checked do appear correct. Adam M. Feidt GIS Coordinator City of Eden Prairie 8080 Mitchell Rd Eden Prairie, MN 55344 phone# 952-949-8443 fax# 952-949-8334 -----Original Message----- From: G. Allegri [mailto:giohappy at gmail.com] Sent: Friday, February 29, 2008 11:49 AM To: Fawcett, David Cc: Adam Feidt; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] symbology showing line direction David, I had your opinion too, but Adam seems to have solved it. Adam, do you confirm that you can display correctly directions? 2008/2/29, Fawcett, David : > > > Adam, > > I am quite sure that MapServer is not going to read the line topology. To > display direction, you will need to add an attribute for flow direction and > populate it. You would then use an expression for each class that combined > both the pipe type and the direction. (Maybe use -1 and 1 for values?) > > Something like ('[FUNCTION]' = 'Main' AND [DIRECTION] = -1) > > I haven't tested this. Note the difference in quoting for string fields vs > number fields. > > David. > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > Of Adam Feidt > Sent: Friday, February 29, 2008 8:43 AM > To: Fawcett, David; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] symbology showing line direction > > > > > David, > > Below is my Layer definition. I've tried a truetype symbol and label > with the ANGLE parameter set to AUTO or FOLLOW. Neither case pointed out > actual shapefile line direction. I'm reading an ESRI shapefile so there is > no specific column for line direction. > > > > LAYER > > NAME 'Utilities Sanitary Lines' > > DATA './UtilitiesSanitaryLines.shp' > > TYPE LINE > > STATUS DEFAULT > > CLASSITEM "Function" > > CLASS > > NAME 'Main' > > EXPRESSION "" > > STYLE > > COLOR 85 255 0 > > SYMBOL "plainline" > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Low Pressure' > > EXPRESSION "Low Pressure" > > STYLE > > COLOR 255 85 0 > > SYMBOL "plainline" > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Sub Trunk' > > EXPRESSION "Sub Trunk" > > STYLE > > COLOR 85 255 0 > > SYMBOL "plainline" > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Trunk' > > EXPRESSION "Trunk" > > STYLE > > COLOR 112 168 0 > > SYMBOL "plainline" > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Force Main' > > EXPRESSION "forcemain" > > STYLE > > COLOR 255 170 0 > > SYMBOL 'dashed1' > > SIZE 2 > > END > > END # end class > > CLASS > > NAME 'Private' > > EXPRESSION "private" > > STYLE > > COLOR 161 33 240 > > SYMBOL 'plainline' > > SIZE 2 > > END > > END # end class > > END #end layer > > > > > > > Adam M. Feidt > > GIS Coordinator > > City of Eden Prairie > > 8080 Mitchell Rd > > Eden Prairie, MN 55344 > > phone# 952-949-8443 > > fax# 952-949-8334 > > > > > > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > Sent: Friday, February 29, 2008 8:19 AM > To: Adam Feidt; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] symbology showing line direction > > > > > Adam, > > > > > > What does your layer definition, with the classes look like? > > > > > > Does your data have the direction column properly populated for all records? > > > > > > > David. > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > Of Adam Feidt > Sent: Friday, February 29, 2008 8:14 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] symbology showing line direction > > I'm working in a GeoMoose application and trying to display utility > lines with the correct line direction via some arrow character or symbol. > I've had no luck so far. I've successfully labeled my lines with a truetype > font character by defining the TEXT ">" parameter in the CLASS object. I've > also tried a pixelmap symbol definition using a .gif file. Both appear to > work at first, but when you compare it to the actual line direction it isn't > true in all cases. Has anybody found a way to accomplish this? I would > appreciate if you could send me any examples. > > > > > > Adam M. Feidt > > GIS Coordinator > > City of Eden Prairie > > 8080 Mitchell Rd > > Eden Prairie, MN 55344 > > phone# 952-949-8443 > > fax# 952-949-8334 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Steve.Lime at dnr.state.mn.us Fri Feb 29 13:28:30 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 29 Feb 2008 15:28:30 -0600 Subject: [mapserver-users] Re: Symbol placement inconsistency In-Reply-To: <3E2F6FCA-354C-4674-B331-AD1C502F9CC8@mobilegeographics.com> References: <3E2F6FCA-354C-4674-B331-AD1C502F9CC8@mobilegeographics.com> Message-ID: <47C82423.5157.008F.0@dnr.state.mn.us> The primary thing going on here is that MapServer computes label placement AFTER features are clipped to the area of interest. It's a necessary step especially with linear features as a single label point doesn't always make sense. Since the algorithm places the label at the center of the longest segment the position will often change from map to map with clipped features. This can cause problems especially with tiled data output (e.g. TileCache or Ka-Map) so a special processing option was put in place in the development version. If you set: PROCESSING 'LABEL_NO_CLIP=1' MapServer will compute label positions before clipping. I know that it works with polygon data, not sure about linear features. The metatiling features of TileCache and ka-map to a real good job of minimizing these problems with linear data. Steve >>> On 2/29/2008 at 1:24 PM, in message <3E2F6FCA-354C-4674-B331-AD1C502F9CC8 at mobilegeographics.com>, Hal Mueller wrote: > Dave, it looks to me like you're seeing effects of collision avoidance > in label cacheing. I would expect those artifacts to be more extreme > near the edges of the images. > > I wonder what would happen if you greatly increased your edge buffer. > If you need a 4096x4096 tile, then produce a 12288x12288 (3x3) image > and carve out the central 1/9. That would reduce the artifacts but > can't be guaranteed to eliminate them. I think the only guarantee > would be to explicitly specify label locations, and turn off the label > collision avoidance. > > I've copied this thread over to the new list, as the lists.umn.edu > address's demise is imminent. > > Hal > > On Feb 29, 2008, at 3:52 AM, Dave Weaver wrote: > >> MapServer doesn't seem to be entirely consistent with placement of >> symbols. >> >> Consider these 2 overlapping images: >> >> http://www.screenshots.cc/view_image/5437e415/thayer-east.png >> http://www.screenshots.cc/view_image/b0aae448/thayer-west.png >> >> This is causing me problems. I need to generate lots of map tiles >> covering >> a large area. These tiles need to be able to be displayed next to >> each other >> seamlessly. To avoid partial symbols on the edge of tiles, I'm >> rendering >> tiles too large then trimming off a 256-pixel border around each. >> However, >> when symbols are plotted in different places on adjacent tiles, I'm >> getting >> partial symbols around the edge of my trimmed tiles which *don't* >> have a >> corresponding partial symbol on the adjacent tile. (if you see what >> I mean). >> >> I'm using MapServer 5.0.0 from the ms4w package. >> >> What can I do to cure my problem? >> >> Thanks, >> Dave. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Fri Feb 29 13:43:00 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 29 Feb 2008 15:43:00 -0600 Subject: [mapserver-users] Mapserver equivalent for .NET In-Reply-To: <47C835B7.70702@pobox.com> References: <887928.23939.qm@web36815.mail.mud.yahoo.com> <47C72D1E.6020504@mapgears.com> <47C7C7DA.3050404@zeelandnet.nl> <1204279285.6055.4.camel@edoras> <1204299806.6055.49.camel@edoras> <47C835B7.70702@pobox.com> Message-ID: <47C82789.5157.008F.0@dnr.state.mn.us> I agree with Frank. The liberal MapServer license was chosen for a reason. I always figured that to be accepted you had to put out a good product AND it must be easy to use with as little restrictions as possible. I believe that people are generally good and will contribute back to the project. The incentive to do so is high assuming they want to continue to leverage the project over time. Merging local changes with new versions of MapServer would be a huge pain, so sharing makes sense. IMHO that organizations or individuals that would abuse a project will do so regardless of license. Steve >>> On 2/29/2008 at 10:41 AM, in message <47C835B7.70702 at pobox.com>, Frank Warmerdam wrote: > Tim Bowden wrote: >> On Fri, 2008-02-29 at 13:32 +0100, Tamas Szekeres wrote: >>> I'm not aware of any compelling reason to switch to a more restrictive >>> license. >> >> Sure, the current licensing arrangement seems to be working well for >> mapserver, though there are sometimes reasons to be less permissive. I >> speculated about this the other day in a different context >> > (http://blog.mapforge.com.au/index.php/2008/02/27/when-open-source-doesnt-add-up/) > Perhaps I'm wrong. I'd like to get others thoughts on this /without/ > starting a flame war (off list if you like; It's not mapserver specific). I > realise there can be strong feelings about licensing but so long as it's open > source I'm not too worried. > > Tim, > > My attempts to register with your blog seem to have failed, so I'm going to > reply briefly here. > > In referencing MySQL as an example of the GPL being a strongly license, you > need to be clear that MySQL AB's value as a company is based on the fact > that > they can offer non-GPL licensing to licensors of MySQL because they retain > copyright ownership of all the MySQL code. That is, they have retained a > degree of control of the project that no-one could have over MapServer at > this point and they use that control to squeeze money out of folks not > willing to comply with GPL terms. > > That is a reasonable model for open source business, but it can't work for > MapServer at this point and in any event I find it the antithesis of > building > a "community of equality" where all participants can potentially have equal > influence if they are willing to contribute equally. > > Beyond the fact that it would be impractical to change now, I think the > current permissive license for MapServer has been one of it's "secrets to > success". Companies building products like MapDotNet on MapServer is a > good thing, and with a bit of encouragement such organizations are generally > willing to contribute to and support MapServer to some degree (as does > already occur in this particular case). > > I *do* wish we had a way to turn "interest in supporting" into direct > maintenance on the core via a sponsorship program as has worked fairly > well for GDAL. > > Best regards, From nospam420 at yahoo.com Fri Feb 29 15:31:07 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Fri, 29 Feb 2008 15:31:07 -0800 (PST) Subject: [MAPSERVER-USERS] symbology showing line direction In-Reply-To: <6BEC95BE33AFA747833CB3B01FEDD93F048E1FF1@ep-exch.ci.eden-prairie.mn.us> References: <6BEC95BE33AFA747833CB3B01FEDD93F048E1F88@ep-exch.ci.eden-prairie.mn.us> <6246727221874A4FB8D3F9BBC37D9BD5021FBB45@s-sp22.pca.state.mn.us> <6BEC95BE33AFA747833CB3B01FEDD93F048E1F91@ep-exch.ci.eden-prairie.mn.us> <6246727221874A4FB8D3F9BBC37D9BD5021FBB49@s-sp22.pca.state.mn.us> <6BEC95BE33AFA747833CB3B01FEDD93F048E1FF1@ep-exch.ci.eden-prairie.mn.us> Message-ID: <15769014.post@talk.nabble.com> Adam Feidt wrote: > > Yes it does work. The negative GAP value seems to be the solution. > I asked a similar question before: http://www.nabble.com/one-way-roads%2C-drawing-spaced-arrows-to15006747.html#a15006747 I also got it to work for truetype symbols using negative GAP. I never was able to get it to work for vector symbols and just gave up on that. I might mildly prefer vector for this case, but I can live with truetype. - Rich -- View this message in context: http://www.nabble.com/symbology-showing-line-direction-tp15759443p15769014.html Sent from the Mapserver - User mailing list archive at Nabble.com.