From szekerest at GMAIL.COM Wed Aug 1 02:22:12 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 1 Aug 2007 11:22:12 +0200 Subject: Zoom To Scale In-Reply-To: <248491BE875FBE40B765CC47E419144B0130AFF4@mosespa.ats.atsincorp.com> Message-ID: David, Did you use the mapObj.zoomScale method? Best regards, Tamas 2007/7/31, David Hober : > > > > > Greetings, > > > > I'm having some trouble trying to achieve a zoom to scale effect in a > mapping program. > > > > I'm using mapscript's c# library, version 4.10. > > > > I tried setting the map object's scale property, but that had no effect, so > I'm trying to achieve it now by resetting the extent of the map. > > > > The method that does the calculation receives a fractional scale value (say, > 50000). I calculate the center point in map units, but I just can't figure > out how to scale the extent to achieve the user-provided scale value. > > > > I'm open for any suggestions / ideas. > > > > -- Dave From srph124 at YAHOO.COM Wed Aug 1 03:02:12 2007 From: srph124 at YAHOO.COM (s r) Date: Wed, 1 Aug 2007 03:02:12 -0700 Subject: Some questions abut MapServer features Message-ID: Hi i'm new to mapserver. i've read tutorials and set up a sample webGIS. now i have some question. (I just know abit javascript) 1.About multi select, can client select multiple features (for example,by clicking and dragging to draw a selection window or by holding Ctrl and clickingor else)? How? 2. About query results, Is there any way to show the results in another page(i mean opening new page) to client? Thanks a lot --------------------------------- Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From porath at WEB.DE Wed Aug 1 03:48:58 2007 From: porath at WEB.DE (H. Porath) Date: Wed, 1 Aug 2007 05:48:58 -0500 Subject: wfs 1.1 support in mapserver 5.0 Message-ID: Hi list, will mapserver 5 support wfs 1.1? The release plan does not show any developer working on this feature. Does this mean the feature will not be implemented? Thanks in advance. Holger Porath From bartvde at OSGIS.NL Wed Aug 1 03:57:43 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 1 Aug 2007 12:57:43 +0200 Subject: wfs 1.1 support in mapserver 5.0 Message-ID: AFAIK Mapserver 5.0 will not yet support WFS 1.1. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: H. Porath Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] wfs 1.1 support in mapserver 5.0 Datum: 01/08/07 08:49 > Hi list, > > will mapserver 5 support wfs 1.1? The release plan does not show any > developer working on this feature. Does this mean the feature will not be > implemented? > > Thanks in advance. > > Holger Porath > > From friendvn2000 at YAHOO.COM Wed Aug 1 04:01:40 2007 From: friendvn2000 at YAHOO.COM (Jedi Knight) Date: Wed, 1 Aug 2007 06:01:40 -0500 Subject: Can't export POLYLINE layer to pdf file Message-ID: I have a POLYLINE shapefile. In map file if I config "TYPE POLYLINE" it will be error ( Can't run shp2img utility to export map to image ). Then I change by "TYPE LINE" then it works. But only when I export from map to images like PNG,JPEG... When I export map to PDF, this layer not show ( when it does with POINT or POLYGON ). What should I do to correct. Thanks! From richard.greenwood at GMAIL.COM Wed Aug 1 05:28:57 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 1 Aug 2007 06:28:57 -0600 Subject: Some questions abut MapServer features In-Reply-To: <173184.39754.qm@web58212.mail.re3.yahoo.com> Message-ID: On 8/1/07, s r wrote: > Hi > i'm new to mapserver. i've read tutorials and set up a sample webGIS. now i > have some question. (I just know abit javascript) > 1.About multi select, can client select multiple features (for example,by > clicking and dragging to draw a selection window or by holding Ctrl and > clickingor else)? How? Yes > 2. About query results, Is there any way to show the results in another > page(i mean opening new page) to client? Yes The answer to both questions depends on the client that you are running. The client is the JavaScript that runs in the browser. Picking a client that is appropriate to your needs is important (and sometimes hard). In order to select multiple features, you will need to use 'classic' MapServer, not WMS, as WMS does not support multiple feature selection (someone correct me if I am wrong). One client that does support multiple feature selection and 'classic' MapServer is dBox. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From Tom.Kralidis at EC.GC.CA Wed Aug 1 05:39:36 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 1 Aug 2007 08:39:36 -0400 Subject: wfs 1.1 support in mapserver 5.0 Message-ID: Bart is correct. I have it on my todo list to start a ticket for WFS 1.1 and outline the changes needed, etc. -----Original Message----- From: UMN MapServer Users List on behalf of Bart van den Eijnden (OSGIS) Sent: Wed 01-Aug-07 06:57 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] wfs 1.1 support in mapserver 5.0 AFAIK Mapserver 5.0 will not yet support WFS 1.1. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: H. Porath Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] wfs 1.1 support in mapserver 5.0 Datum: 01/08/07 08:49 > Hi list, > > will mapserver 5 support wfs 1.1? The release plan does not show any > developer working on this feature. Does this mean the feature will not be > implemented? > > Thanks in advance. > > Holger Porath > > From piero.cavalieri at GMAIL.COM Wed Aug 1 07:31:41 2007 From: piero.cavalieri at GMAIL.COM (Piero Cavalieri) Date: Wed, 1 Aug 2007 14:31:41 +0000 Subject: Some questions abut MapServer features In-Reply-To: Message-ID: 2007/8/1, Richard Greenwood : > > On 8/1/07, s r wrote: > > Hi > > i'm new to mapserver. i've read tutorials and set up a sample webGIS. > now i > > have some question. (I just know abit javascript) > > 1.About multi select, can client select multiple features (for > example,by > > clicking and dragging to draw a selection window or by holding Ctrl and > > clickingor else)? How? > Yes > > 2. About query results, Is there any way to show the results in another > > page(i mean opening new page) to client? > Yes > > The answer to both questions depends on the client that you are > running. The client is the JavaScript that runs in the browser. > Picking a client that is appropriate to your needs is important (and > sometimes hard). But the client could also be a Java applet (Jbox, Rosa...) or flash ecc. Then for me the client is the whole browser, howevrer this is not important. In order to select multiple features, you will need to use 'classic' > MapServer, not WMS, as WMS does not support multiple feature selection > (someone correct me if I am wrong). Don't know about this, however with Mapserver in cgi mode, u could build a query like this: queryString = baseUrl+layersString+"&mode=nquery&imgext="+imgext+"&imgxy="+imgxy+ "&imgbox="+imgbox +"&savequery=true&map_querymap_size=140 120"; Which is indipendent on what you are using to build it (JavaScript + svg, JavaScript + HTML, javaScript + Java, pure Java, Flash ecc.) . For opening query results in a new page, it's possibile but as said, it depends on tecnologies used (I think). U could do so opening a new window with JavaScript and passing to the window URL the parameters u use to do the query (mode, imgext ecc..). One client that does support > multiple feature selection and 'classic' MapServer is dBox. Yes, and also the above jBox (the dbox equivalent in Java) and Rosa applet (I don't know if there are other Open Source clients...). Rich > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > Cheers Piero -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Wed Aug 1 07:35:15 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 1 Aug 2007 10:35:15 -0400 Subject: mapscript.mapObj(map_path+map_file) In-Reply-To: <523905.53318.qm@web35709.mail.mud.yahoo.com> Message-ID: James McManus McManus wrote: > [Tue Jul 31 21:45:58 2007] [error] [client 71.241.222.127] > _mapscript.MapServerError: msInitGDALOutputFormat(): General error > message. No GDAL driver named `GTiff' available. Jim, The error occurs when processing an OUTPUTFORMAT declaration referencing the GDAL GTiff driver if the GTiff driver cannot be found. In normal operation the GTIFF driver should always exist and be registered by this point in MapServer. I suspect one of two things: 1) Some subtle heap corruption bug is blatting the GDAL driver registration list in this very specific situation. If this is the issue, some sort of valgrind or similar memory checking tool might be useful in tracking down the problem. 2) "Something else" is unregistering the GDAL driver at runtime. This could be due to a GDAL_SKIP environment variable listing the GTiff driver for instance. I was going to ask if the script is run using mod_python within Apache in which case lots of issues could arise, but I see it is prefixed with #!/usr/bin/python so this is somewhat unlikely. 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 hfl at HOME.NL Wed Aug 1 09:06:27 2007 From: hfl at HOME.NL (Huub Fleuren) Date: Wed, 1 Aug 2007 18:06:27 +0200 Subject: What happend to OGR OVF layers since gdal 1.3.1 Message-ID: Hi List, This is question about different gdal versions working on OVF layers OGRINFO of any GDAL version gives me the data from such a layer using ogrinfo layer.ovf -al Versions 4.5, 4.8, 4.10.0 4.10.2 of mapserver compiled against gdal 1.3.1 work OKE but later GDAL versions give errors layerdefinition -------------- LAYER NAME kpxy TYPE POINT CONNECTIONTYPE OGR CONNECTION " ODBC:admin/admin at anwb SELECT k.kp_nr as kp_nr,k.x as x, k.y as y, w.wegbeheerdercode as wegbeheerdercode, w.onderhoudsinstantiecode as onderhoudsinstantiecode FROM wwall w, kpxy k WHERE NOT (k.soort LIKE 'D') and (w.x > %xmin%) and (w.x < %xmax%) and (w.y > %ymin%) and (w.y < %ymax%) and (w.kruispuntnummer = k.kp_nr) wkbPoint WGS84 " DATA "kpxy" # the name of the OGRVrtLayer etc. errors ------- GDAL 1.3.2 msDrawMap(): Image handling error. Failed to draw layer named 'kpxy'. msOGRFileNextShape(): OGR error. SetAttributeFilter() not supported on ExecuteSQL() results. GDAL 1.4.2 msDrawMap(): Image handling error. Failed to draw layer named 'kpxy'. msOGRFileNextShape(): OGR error. No column definitions found for table 'q_getBBoxAbonnement_1', layer not usable . I did not find documentation on changes concerning OVF layers. What happened? Regards, Huub From warmerdam at POBOX.COM Wed Aug 1 09:19:14 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 1 Aug 2007 12:19:14 -0400 Subject: What happend to OGR OVF layers since gdal 1.3.1 In-Reply-To: <46B0AF83.6060705@home.nl> Message-ID: Huub Fleuren wrote: > GDAL 1.3.2 > > > "http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd"> > > > msDrawMap(): Image handling error. Failed to draw layer named > 'kpxy'. > msOGRFileNextShape(): OGR error. SetAttributeFilter() not supported on > ExecuteSQL() results. Huub, This was a known issue between GDAL 1.3.2 and MapServer 4.8. > GDAL 1.4.2 > > > "http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd"> > > > msDrawMap(): Image handling error. Failed to draw layer named > 'kpxy'. > msOGRFileNextShape(): OGR error. No column definitions found for table > 'q_getBBoxAbonnement_1', layer not usable This indicates that OGR tried to initialize access to a table called q_getBBoxAbonnement_l but it could not find any understandable field definitions. This might be because it has none or more likely because the fields it does have are of a special type that OGR's ODBC driver doesn't recognise. The workaround for this is to avoid having the OGR driver translate all the tables in the ODBC datasource into layers. The most likely way of doing this is to list a single simple table in the datasource connection string. eg. ODBC:admin/admin at anwb,wwall I appologise for the relative fragility of the ODBC/OVF/MapServer mechanism. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From dmorissette at MAPGEARS.COM Wed Aug 1 10:15:44 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 1 Aug 2007 13:15:44 -0400 Subject: MapServer 5.0.0 release plan ... and release of beta1 In-Reply-To: Message-ID: Thanks. I have added a link to your site under the beta download page http://mapserver.gis.umn.edu/download/beta If you have a better permanent URL that would point directly to your most recent MapServer 5.0 build then please send it along and I'll update the link on the site. Daniel William Kyngesburye wrote: > OSX binaries ready on my site. I'll try to keep up to date on the betas. > > For now I did only the framework build (aka dynamic libraries). If > problems are found that are definitely caused by this and I can't fix > them, I'll make the normal static lib build. > > I don't have much time for run tests, but I'll see if I can tackle > what's on the checklist over the coming weeks. I wanted to at least add > a couple Mac notes to the checklist, even after logging in I didn't see > an edit link for the page. lack of permissions? > > OSX notes: > > SDE - not available for OSX (or maybe note which platforms it is only > available for) > > OCI - only available for PPC OSX > > > On Jul 25, 2007, at 3:27 PM, Daniel Morissette wrote: > >> MapServer 5.0.0-beta1 release: >> ------------------------------ >> >> Today we are also releasing MapServer 5.0.0-beta1. The source package >> and links to binaries are available at: >> http://mapserver.gis.umn.edu/download/beta >> > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > Earth: "Mostly harmless" > > - revised entry in the HitchHiker's Guide to the Galaxy -- Daniel Morissette http://www.mapgears.com/ From dmorissette at MAPGEARS.COM Wed Aug 1 10:22:04 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 1 Aug 2007 13:22:04 -0400 Subject: Temporary folder and caching In-Reply-To: <49B9846C39F25A4FA901064970861610B7B44E@mhk-ex1.ad.dpra.com> Message-ID: Josh Hevenor wrote: > I wrote a batch file to clear out old images from mapservers temporary > image folder and it got me thinking. Is this folder used just as a > temporary location while mapserver constructs a response or is there any > caching done using this folder? At first glance it doesn?t look like > there?s any caching done. Mapserver 4.10 run through PHP on windows 2003. > MapServer also uses the IMAGEPATH directory to store temporary files downloaded by CONNECTIONTYPE WMS and WFS layers. Daniel -- Daniel Morissette http://www.mapgears.com/ From gregor at HOSTGIS.COM Wed Aug 1 10:26:19 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 1 Aug 2007 11:26:19 -0600 Subject: Temporary folder and caching In-Reply-To: <46B0C13C.7060405@mapgears.com> Message-ID: > Josh Hevenor wrote: >> any caching done using this folder? At first glance it doesn?t look >> like there?s any caching done. Right you are: no caching. That's done at the higher application layer, e.g. TileCache, in the browser, etc. If you're using PHP/Mapscript, you could do your own form of caching, e.g. saving images based on the sessionid and retrieving them later. -- Gregor Mosheh / Greg Allensworth 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 woklist at KYNGCHAOS.COM Wed Aug 1 10:56:31 2007 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Wed, 1 Aug 2007 12:56:31 -0500 Subject: MapServer 5.0.0 release plan ... and release of beta1 In-Reply-To: <46B0BFC0.7040903@mapgears.com> Message-ID: On Aug 1, 2007, at 12:15 PM, Daniel Morissette wrote: > Thanks. I have added a link to your site under the beta download > page http://mapserver.gis.umn.edu/download/beta > > If you have a better permanent URL that would point directly to > your most recent MapServer 5.0 build then please send it along and > I'll update the link on the site. > > Daniel > My MapServer page would be more direct than the main page, this will always have the latest builds (4 & 5): http://www.kyngchaos.com/software/unixport/mapserver > > William Kyngesburye wrote: >> OSX binaries ready on my site. I'll try to keep up to date on the >> betas. >> For now I did only the framework build (aka dynamic libraries). >> If problems are found that are definitely caused by this and I >> can't fix them, I'll make the normal static lib build. >> I don't have much time for run tests, but I'll see if I can tackle >> what's on the checklist over the coming weeks. I wanted to at >> least add a couple Mac notes to the checklist, even after logging >> in I didn't see an edit link for the page. lack of permissions? >> OSX notes: >> SDE - not available for OSX (or maybe note which platforms it is >> only available for) >> OCI - only available for PPC OSX ----- William Kyngesburye http://www.kyngchaos.com/ All generalizations are dangerous, even this one. From dmorissette at MAPGEARS.COM Wed Aug 1 11:02:07 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 1 Aug 2007 14:02:07 -0400 Subject: MapServer 5.0.0 release plan ... and release of beta1 In-Reply-To: <1775F036-5A0A-4135-BD6C-52915C6A43F3@KYNGCHAOS.COM> Message-ID: William Kyngesburye wrote: >> > My MapServer page would be more direct than the main page, this will > always have the latest builds (4 & 5): > > http://www.kyngchaos.com/software/unixport/mapserver > Thanks. I have updated the link. Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at MAPGEARS.COM Wed Aug 1 12:44:32 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 1 Aug 2007 15:44:32 -0400 Subject: MapServer 5.0.0-beta2 released Message-ID: Hi everyone, MapServer 5.0.0-beta2 has just been released. The source package and links to binary distributions are available at: http://mapserver.gis.umn.edu/download/beta The list of changes/fixes since beta1 is included at the bottom of this email. As was mentioned before, we plan to have one beta per week until the final release of MapServer 5.0 which is planned for the week of September 12, 2007. More details can be found in the 5.0 release plan at http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/release_plan/ Daniel Version 5.0.0-beta2 (2007-08-01) -------------------------------- - Oracle Spatial: Fixed some issues related with the maporaclespatial.c source code: warnings with calls in gcc 4.x versions (#1845), gtype translation error, generating memory problem (#2056), problems with items allocation (#1961 and #1736), and some memory-leaks errors (#1662). - AGG: Fixed a significant number of rendering issues including conflicts with OPACITY ALPHA and ANTIALIAS TRUE settings w/regards to polygon fills. Fixed ellipse and vector markers. Fixed AGG/GD alpha channel conflicts by writing conversion to/from functions. (#2191-partial, #2173, #2177) - SOS: Turn layer off if eventTime is not in the sos_offering_timeextent (#2154) - WFS: Correct bugs related to query by featureid support (#2102) - WMS: Add svg as a supported format for GetMap request (#1347) - WMS: Correct WMS time overriding Filter paramter (#1261) - Fix problem with LUT scaling ranges with explicit value for 255 (#2167). - WCS: Fixed resampling/reprojecting for tileindex datasets (#2180) - Fixed formatting of configure --help (#2182) - Fixed AGG configure option to use 'test -f' instead of 'test -e' which doesn't work on Solaris (#2183) - Fixed mapwms.c to support selecting AGG/ outputformats via FORMAT=. - Removed unused styleObj.isachild member (#2169) From danmuc at GMAIL.COM Wed Aug 1 15:23:29 2007 From: danmuc at GMAIL.COM (=?ISO-8859-1?Q?Daniel_Mu=F1oz_Castro?=) Date: Wed, 1 Aug 2007 17:23:29 -0500 Subject: Problem whit my connection whit oracle spatial Message-ID: Hello list I have a problem with my connection and I don't know why it happens, I follow all the steps in the http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto and try some ideas but nothing works, for that I write this email. My tnsname is: GIS = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.246.61)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = gis) ) ) and my mapfiel is: LAYER NAME "Gerencia Oracle" STATUS ON TYPE POLYGON CONNECTIONTYPE oraclespatial CONNECTION "gis/gis at GIS" DATA "GEOMETRIA FROM GERENCIA3" DUMP TRUE CLASS STYLE OUTLINECOLOR 0 0 0 COLOR 0 128 128 END END END I have other futures in my mapfile but all of them load perfectly, I only have to set the status of "Gerencia Oracle" OFF and my application works with out problem. Thanks -- Salu2!. Daniel Mu?oz Castro Ingeniero Catastral y Geodesta Cel. 300 2174698 Casa. 4095990 Oficina. 7470001 Ext. 1141 -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Wed Aug 1 16:57:58 2007 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Wed, 1 Aug 2007 20:57:58 -0300 Subject: Problem whit my connection whit oracle spatial In-Reply-To: <960cb7fb0708011523s77ffd6efv50f12cd0abe792f0@mail.gmail.com> Message-ID: Hi Daniel, Can you provide more info about the error? What happens when you enable the layer, what error appear? Do you have more Oracle layers in your mapfile, are they working? Best regards. -------------------------------------------------------------- Fernando Simon UMN Mapserver and Oracle Spatial developer -------------------------------------------------------------- Daniel Mu?oz Castro wrote: > Hello list > > I have a problem with my connection and I don't know why it happens, I > follow all the steps in the > http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto > and try > some ideas but nothing works, for that I write this email. My tnsname is: > > GIS = > (DESCRIPTION = > (ADDRESS_LIST = > (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.246.61 > )(PORT = 1521)) > ) > (CONNECT_DATA = > (SERVICE_NAME = gis) > ) > ) > > > and my mapfiel is: > > LAYER > NAME "Gerencia Oracle" > STATUS ON > TYPE POLYGON > CONNECTIONTYPE oraclespatial > CONNECTION "gis/gis at GIS" > DATA "GEOMETRIA FROM GERENCIA3" > DUMP TRUE > CLASS > STYLE > OUTLINECOLOR 0 0 0 > COLOR 0 128 128 > END > END > END > > I have other futures in my mapfile but all of them load perfectly, I > only have to set the status of "Gerencia Oracle" OFF and my > application works with out problem. > > Thanks > > -- > Salu2!. > > Daniel Mu?oz Castro > Ingeniero Catastral y Geodesta > Cel. 300 2174698 > Casa. 4095990 > Oficina. 7470001 Ext. 1141 -------------- next part -------------- An HTML attachment was scrubbed... URL: From hfl at HOME.NL Thu Aug 2 01:37:56 2007 From: hfl at HOME.NL (Huub Fleuren) Date: Thu, 2 Aug 2007 10:37:56 +0200 Subject: What happend to OGR OVF layers since gdal 1.3.1 In-Reply-To: <46B0AF83.6060705@home.nl> Message-ID: Thanks Frank for your answer: Huub wrote: >> msOGRFileNextShape(): OGR error. No column definitions found for table > 'q_getBBoxAbonnement_1', layer not usable Frank wrote: >This indicates that OGR tried to initialize access to a table called q_getBBoxAbonnement_l but it could not find any understandable field definitions. You suggested to specify the geo-table like: ODBC:admin/admin at anwb,wwall but that did did not work The query q_getBBoxAbonnement_l existed in the database, by the unlying table didn't exist anymore, much like you were guessing. The query is not used in any way though. Obviously the process of accessing ODBC:admin/admin at anwb now evaluates all the tables and views listed in the database. Deleting the obsolete object was the solution in this case. It has helped to keep the database cleaner:-) I'm happy now with the upgrade to mapserver 4.10.2 and gdal 1.4.2 Regards, Huub > Hi List, > > > This is question about different gdal versions working on OVF layers > > OGRINFO of any GDAL version gives me the data from such a layer using > ogrinfo layer.ovf -al > Versions 4.5, 4.8, 4.10.0 4.10.2 of mapserver compiled against gdal > 1.3.1 work OKE but later GDAL versions give errors > > layerdefinition > -------------- > LAYER > NAME kpxy > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION " > > ODBC:admin/admin at anwb > SELECT k.kp_nr as kp_nr,k.x as x, k.y as y, > w.wegbeheerdercode as wegbeheerdercode, w.onderhoudsinstantiecode as > onderhoudsinstantiecode FROM wwall w, kpxy k WHERE NOT (k.soort LIKE > 'D') and (w.x > %xmin%) and (w.x < %xmax%) and (w.y > %ymin%) > and (w.y < %ymax%) and (w.kruispuntnummer = k.kp_nr) > wkbPoint > WGS84 > > > " > DATA "kpxy" # the name of the OGRVrtLayer > > etc. > > > errors > ------- > > GDAL 1.3.2 > > > "http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd"> > > > msDrawMap(): Image handling error. Failed to draw layer named > 'kpxy'. > msOGRFileNextShape(): OGR error. SetAttributeFilter() not supported on > ExecuteSQL() results. > > > > GDAL 1.4.2 > > > "http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd"> > > > msDrawMap(): Image handling error. Failed to draw layer named > 'kpxy'. > msOGRFileNextShape(): OGR error. No column definitions found for table > 'q_getBBoxAbonnement_1', layer not usable > . > > > > > I did not find documentation on changes concerning OVF layers. What > happened? > > > > > Regards, Huub > > From hartpence_gis at CO.JASPER.IA.US Thu Aug 2 10:44:20 2007 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Thu, 2 Aug 2007 12:44:20 -0500 Subject: Adding XY tables in MapServer Message-ID: Hello, I know this has been discussed before, but I need more specifics. I have an Access table with XY values. I need to bring this into MapServer. I understand that I would an OGR connection. I saw examples of connecting via OGR with different file types, but I need an example using ODBC connection. If anyone can point me in the right direction I would appreciate it. Lawrence Hartpence From warmerdam at POBOX.COM Thu Aug 2 12:23:01 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 2 Aug 2007 15:23:01 -0400 Subject: Adding XY tables in MapServer In-Reply-To: Message-ID: Lawrence Hartpence wrote: > Hello, > > I know this has been discussed before, but I need more specifics. > > I have an Access table with XY values. I need to bring this into MapServer. > I understand that I would an OGR connection. I saw examples of connecting > via OGR with different file types, but I need an example using ODBC connection. > > If anyone can point me in the right direction I would appreciate it. Lawrence, I think you want to read over: http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData This should really be referenced from the http://mapserver.gis.umn.edu/docs/howto/ogr_howto document too! I knew the material existed but I it took me a while to find 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 mlinden at ZEELANDNET.NL Thu Aug 2 13:21:34 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Thu, 2 Aug 2007 22:21:34 +0200 Subject: postGIS wfs layer won't work Message-ID: Hello list, (cross posted to mapserver-users and postgis-users) I have a postGIS table that contains cities. I am trying to get this running through mapserver WFS. Mapserver WFS doesn't generate errors, but returns no data at all. A postgres getsrid tells me the srid is 4326, which is also in my geometry_columns qGIS shows the postGIS table direct from the database without problems. http://82.176.214.209/cgi-bin/mapserv.exe?map=/ms4w/apps/mappingworlds/service/wfs.map&service=WFS&REQUEST=getfeature&typename=worldcities_x&version=1.0.0 What am I doing wrong? -- Milo van der Linden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteerd mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bijbehorende voorwaarden. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dn at HDDESIGN.COM Thu Aug 2 13:33:48 2007 From: dn at HDDESIGN.COM (David Niergarth) Date: Thu, 2 Aug 2007 15:33:48 -0500 Subject: mapscript layer.setFilter() Message-ID: Hello, I have a Python mapscript layer that works fine under mapserver 4.8.3 (Ubuntu Edgy w/ postgresql 8.1) but fails under mapserver 4.10.0 (Ubuntu Feisty w/ postgresql 8.2). The problem happens when trying to set a filter on a layer. layer_obj.data = "the_geom from tbl_people_points" layer_obj.setFilter( "idpeople in (select idpeople from tbl_request_%s) and quality=0" % idrequest ) Under 4.8.3, the subquery in the filter works just fine. Under 4.10.0, however, the filter string is ending up truncated as 'idpeople in '. Here's are a couple simple filters that still work under 4.10: layer_obj.setFilter("idpeople = 10") layer_obj.setFilter("idpeople = 10 or idpeople = 4") And here are a couple simple queries that get truncated under 4.10: layer_obj.setFilter("idpeople <= 10") # For this query, layer.getFilterString() returns 'idpeople '. layer_obj.setFilter("idpeople = 10 or (idpeople = 10)") # For this query, layer.getFilterString() returns 'idpeople = 10 or ') All the queries above work under 4.8. The truncation in 4.10 leads to an obvious SQL syntax error, which is the error I'm seeing reported by Python mapscript. Oddly, I'm not seeing these queries show up in my postgres log -- but maybe that's a log-level thing. Does anyone know what might have changed between 4.8 and 4.10? Or is this perhaps a bug in 4.10? Thanks for any ideas, --David # Add people_points layer. layer_obj = mapscript.layerObj(map_obj) layer_obj.connectiontype = mapscript.MS_POSTGIS layer_obj.name = 'people_points' layer_obj.connection = "user=pgsql host=%s dbname=%s port=%s" % ( host, dbname, port) layer_obj.data = "the_geom from tbl_people_points" layer_obj.setFilter( "idpeople in (select idpeople from tbl_request_%s) and quality=0" % idrequest ) layer_obj.status = mapscript.MS_ON layer_obj.type = mapscript.MS_LAYER_POINT layer_obj.transparency = 50 c = mapscript.classObj(layer_obj) c.name = 'Members' s = mapscript.styleObj(c) s.color = mapscript.colorObj(255, 0, 0) s.outlinecolor = mapscript.colorObj(255, 0, 0) s.symbol = map_obj.symbolset.index('circle') s.size = 8 From stevem at SPATIALMAPPING.COM Thu Aug 2 15:09:03 2007 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Thu, 2 Aug 2007 17:09:03 -0500 Subject: PHP/MapScript on Debian and Ubuntu Message-ID: Hello, all (but especially the PHP/MapScript devs): Before I go to the trouble of trying to contact the Debian package maintainers, I'm posting my question here first, just in case someone in the Mapserver community has any information. Everything I've seen on this list over the past few years has indicated that the best way to run PHP/MapScript is in CGI mode. Yet the Debian package maintainers seem to be under the impression that PHP/MapScript is most stable running in an Apache2 DSO, even going so far as to patch PHP/MapScript so that it refuses to run in a CGI (or even a CLI) environment. Does anyone have any idea why Debian's 'php5-mapscript' package maintainers have done this? Do they know something that I/we don't? Is PHP/MapScript not stable in PHP5 when run as CGI/CLI? I really would like to be able to run ka-map's 'precache2.php' script from the command line in Debian (or Ubuntu) without having to compile my own php_mapscript.so. Regards, -SM -- From woodbri at SWOODBRIDGE.COM Thu Aug 2 17:09:31 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 2 Aug 2007 20:09:31 -0400 Subject: PHP/MapScript on Debian and Ubuntu In-Reply-To: Message-ID: Steven Monai wrote: > Hello, all (but especially the PHP/MapScript devs): > > Before I go to the trouble of trying to contact the Debian package > maintainers, I'm posting my question here first, just in case someone in the > Mapserver community has any information. > > Everything I've seen on this list over the past few years has indicated that > the best way to run PHP/MapScript is in CGI mode. Yet the Debian package > maintainers seem to be under the impression that PHP/MapScript is most > stable running in an Apache2 DSO, even going so far as to patch > PHP/MapScript so that it refuses to run in a CGI (or even a CLI) > environment. Does anyone have any idea why Debian's 'php5-mapscript' package > maintainers have done this? Do they know something that I/we don't? Is > PHP/MapScript not stable in PHP5 when run as CGI/CLI? > > I really would like to be able to run ka-map's 'precache2.php' script from > the command line in Debian (or Ubuntu) without having to compile my own > php_mapscript.so. > > Regards, > -SM > -- I can not help you much with the Debian question, but I do know that precache2.php has a memory leak on 4.10. As can bee seen here: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 16754 swoodbri 25 0 4707m 4.5g 6604 R 99 57.5 10945:39 php 26651 swoodbri 25 0 601m 483m 6540 R 98 6.1 3444:00 php These two processes started out around 91M or less. I estimate that they are leaking in the ball park of about 6M per metatile. I have not had a chance to try and run this under the current trunk. If I do get a chance to build and test that I will run it under valgrind and file a ticket on it in needed. This is running on Suse and is running from the CLI on PHP5. I have already discussed this with Daniel off list. -Steve W From lged_morris at HOTMAIL.COM Fri Aug 3 06:20:02 2007 From: lged_morris at HOTMAIL.COM (=?iso-8859-1?B?TGFycy1H9nJhbiBFZGhvbG0=?=) Date: Fri, 3 Aug 2007 15:20:02 +0200 Subject: MapServer 5.0.0-beta2 released Message-ID: I can't find MapServer 5.0.0-beta2 binaries. Lars-G?ran Edholm _________________________________________________________________ Student och ressugen ? h?r finns b?sta priserna http://www.ticket.se/sv/student/studentflyg.html From mlinden at ZEELANDNET.NL Fri Aug 3 06:31:33 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Fri, 3 Aug 2007 15:31:33 +0200 Subject: postGIS wfs returns wrong BBOX when GetCapabilities is issued In-Reply-To: <46B23CCE.4070808@zeelandnet.nl> Message-ID: Hello list, I previously posted the message that my WFS request returns no data; I found out something else. When I issue a GetCapabilities; I find out that the BBOX is looking really strange.. My Original worldcities layer (Shapefile) returns; worldcities World Cities EPSG:4326 I then uploaded this particular layer into postGIS with qGIS and now it states: worldcities_x World Cities PostGIS EPSG:4326 Ouch! Shouldn't I use QuantumGIS for the import? What happened? Milo van der Linden schreef: > Hello list, > > (cross posted to mapserver-users and postgis-users) > > I have a postGIS table that contains cities. I am trying to get this > running through mapserver WFS. > > Mapserver WFS doesn't generate errors, but returns no data at all. > > A postgres getsrid tells me the srid is 4326, which is also in my > geometry_columns > qGIS shows the postGIS table direct from the database without problems. > > http://82.176.214.209/cgi-bin/mapserv.exe?map=/ms4w/apps/mappingworlds/service/wfs.map&service=WFS&REQUEST=getfeature&typename=worldcities_x&version=1.0.0 > > What am I doing wrong? > -- > > > > > Milo van der Linden > mlinden at zeelandnet.nl > milovanderlinden at gmail.com > milo at 3dsite.nl > http://www.3dsite.nl > > > > De informatie in dit bericht reflecteerd mijn persoonlijke mening en > niet die van een bedrijf of instantie. Aan de informatie kunnen geen > rechten worden ontleend. Indien dit bericht onderdeel is van een > forum, mailing-list of community dan gelden automatisch de > bijbehorende voorwaarden. > -- Milo van der Linden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteerd mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bijbehorende voorwaarden. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at ZEELANDNET.NL Fri Aug 3 06:36:42 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Fri, 3 Aug 2007 15:36:42 +0200 Subject: [postgis-users] postGIS wfs returns wrong BBOX when GetCapabilities is issued In-Reply-To: <46B32E35.3090509@zeelandnet.nl> Message-ID: And when I query the bbox in postGIS with an SQL statement using the extent function; I get the right results! What is wrong with my postGIS/Mapserver connection?? Milo van der Linden schreef: > Hello list, > > I previously posted the message that my WFS request returns no data; I > found out something else. When I issue a GetCapabilities; I find out > that the BBOX is looking really strange.. > > My Original worldcities layer (Shapefile) returns; > > worldcities > World Cities > EPSG:4326 > maxy="69.35"/> > > > I then uploaded this particular layer into postGIS with qGIS and now > it states: > > > worldcities_x > World Cities PostGIS > EPSG:4326 > maxy="2.5e+007"/> > > > Ouch! Shouldn't I use QuantumGIS for the import? What happened? > > > Milo van der Linden schreef: >> Hello list, >> >> (cross posted to mapserver-users and postgis-users) >> >> I have a postGIS table that contains cities. I am trying to get this >> running through mapserver WFS. >> >> Mapserver WFS doesn't generate errors, but returns no data at all. >> >> A postgres getsrid tells me the srid is 4326, which is also in my >> geometry_columns >> qGIS shows the postGIS table direct from the database without problems. >> >> http://82.176.214.209/cgi-bin/mapserv.exe?map=/ms4w/apps/mappingworlds/service/wfs.map&service=WFS&REQUEST=getfeature&typename=worldcities_x&version=1.0.0 >> >> What am I doing wrong? >> -- >> >> >> >> >> Milo van der Linden >> mlinden at zeelandnet.nl >> milovanderlinden at gmail.com >> milo at 3dsite.nl >> http://www.3dsite.nl >> >> >> >> De informatie in dit bericht reflecteerd mijn persoonlijke mening en >> niet die van een bedrijf of instantie. Aan de informatie kunnen geen >> rechten worden ontleend. Indien dit bericht onderdeel is van een >> forum, mailing-list of community dan gelden automatisch de >> bijbehorende voorwaarden. >> > > > -- > > > > > Milo van der Linden > mlinden at zeelandnet.nl > milovanderlinden at gmail.com > milo at 3dsite.nl > http://www.3dsite.nl > > > > De informatie in dit bericht reflecteerd mijn persoonlijke mening en > niet die van een bedrijf of instantie. Aan de informatie kunnen geen > rechten worden ontleend. Indien dit bericht onderdeel is van een > forum, mailing-list of community dan gelden automatisch de > bijbehorende voorwaarden. > > ------------------------------------------------------------------------ > > _______________________________________________ > postgis-users mailing list > postgis-users at postgis.refractions.net > http://postgis.refractions.net/mailman/listinfo/postgis-users > -- Milo van der Linden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteerd mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bijbehorende voorwaarden. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sscott at LOCATIONINC.COM Fri Aug 3 05:23:51 2007 From: sscott at LOCATIONINC.COM (Shannon Scott) Date: Fri, 3 Aug 2007 08:23:51 -0400 Subject: flash swf nAttributes Message-ID: Hello, I am working on flash maps recently, but I am having trouble accessing the attributes. I can display the map, and I have the ElementSelected function working, but for some reason I can't find the data. I know the data is there because I have tested with the "Viewer for Mapserver-generated Flash Maps" by Glenn Brauen. Here is a snip from my ActionScript: this.createEmptyMovieClip("clip", 1); this.clip._visible = true; this.clip.loadMovie("map_layer_0.swf"); if(this.clip.nAttributes != undefined) { trace("data is present\n"); } What am I missing, or doing wrong? Thank you for any pointers,help or incite. Shannon From james.condliffe at THEMAJESTIC.CO.UK Fri Aug 3 06:36:51 2007 From: james.condliffe at THEMAJESTIC.CO.UK (James Condliffe) Date: Fri, 3 Aug 2007 14:36:51 +0100 Subject: unsubscribe In-Reply-To: Message-ID: -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of MAPSERVER-USERS automatic digest system Sent: 03 August 2007 06:05 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: MAPSERVER-USERS Digest - 1 Aug 2007 to 2 Aug 2007 (#2007-210) There are 7 messages totalling 472 lines in this issue. Topics of the day: 1. What happend to OGR OVF layers since gdal 1.3.1 2. Adding XY tables in MapServer (2) 3. postGIS wfs layer won't work 4. mapscript layer.setFilter() 5. PHP/MapScript on Debian and Ubuntu (2) ---------------------------------------------------------------------- Date: Thu, 2 Aug 2007 10:37:56 +0200 From: Huub Fleuren Subject: Re: What happend to OGR OVF layers since gdal 1.3.1 Thanks Frank for your answer: Huub wrote: >> msOGRFileNextShape(): OGR error. No column definitions found for table > 'q_getBBoxAbonnement_1', layer not usable Frank wrote: >This indicates that OGR tried to initialize access to a table called q_getBBoxAbonnement_l but it could not find any understandable field definitions. You suggested to specify the geo-table like: ODBC:admin/admin at anwb,wwall but that did did not work The query q_getBBoxAbonnement_l existed in the database, by the unlying table didn't exist anymore, much like you were guessing. The query is not used in any way though. Obviously the process of accessing ODBC:admin/admin at anwb now evaluates all the tables and views listed in the database. Deleting the obsolete object was the solution in this case. It has helped to keep the database cleaner:-) I'm happy now with the upgrade to mapserver 4.10.2 and gdal 1.4.2 Regards, Huub > Hi List, > > > This is question about different gdal versions working on OVF layers > > OGRINFO of any GDAL version gives me the data from such a layer using > ogrinfo layer.ovf -al Versions 4.5, 4.8, 4.10.0 4.10.2 of mapserver > compiled against gdal > 1.3.1 work OKE but later GDAL versions give errors > > layerdefinition > -------------- > LAYER > NAME kpxy > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION " > > ODBC:admin/admin at anwb > SELECT k.kp_nr as kp_nr,k.x as x, k.y as y, > w.wegbeheerdercode as wegbeheerdercode, w.onderhoudsinstantiecode as > onderhoudsinstantiecode FROM wwall w, kpxy k WHERE NOT (k.soort LIKE > 'D') and (w.x > %xmin%) and (w.x < %xmax%) and (w.y > %ymin%) > and (w.y < %ymax%) and (w.kruispuntnummer = k.kp_nr) > wkbPoint > WGS84 > > > " > DATA "kpxy" # the name of the OGRVrtLayer > > etc. > > > errors > ------- > > GDAL 1.3.2 > > ServiceExceptionReport SYSTEM > "http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd"> > > msDrawMap(): Image handling error. Failed to draw layer named > 'kpxy'. > msOGRFileNextShape(): OGR error. SetAttributeFilter() not supported on > ExecuteSQL() results. > > > > GDAL 1.4.2 > > ServiceExceptionReport SYSTEM > "http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd"> > > msDrawMap(): Image handling error. Failed to draw layer named > 'kpxy'. > msOGRFileNextShape(): OGR error. No column definitions found for table > 'q_getBBoxAbonnement_1', layer not usable . > > > > > I did not find documentation on changes concerning OVF layers. What > happened? > > > > > Regards, Huub > > ------------------------------ Date: Thu, 2 Aug 2007 12:44:20 -0500 From: Lawrence Hartpence Subject: Adding XY tables in MapServer Hello, I know this has been discussed before, but I need more specifics. I have an Access table with XY values. I need to bring this into MapServ= er. I understand that I would an OGR connection. I saw examples of connecti= ng via OGR with different file types, but I need an example using ODBC conne= ction. If anyone can point me in the right direction I would appreciate it. Lawrence Hartpence ------------------------------ Date: Thu, 2 Aug 2007 15:23:01 -0400 From: Frank Warmerdam Subject: Re: Adding XY tables in MapServer Lawrence Hartpence wrote: > Hello, > > I know this has been discussed before, but I need more specifics. > > I have an Access table with XY values. I need to bring this into MapServer. > I understand that I would an OGR connection. I saw examples of > connecting via OGR with different file types, but I need an example using ODBC connection. > > If anyone can point me in the right direction I would appreciate it. Lawrence, I think you want to read over: http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialDa ta This should really be referenced from the http://mapserver.gis.umn.edu/docs/howto/ogr_howto document too! I knew the material existed but I it took me a while to find 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 ------------------------------ Date: Thu, 2 Aug 2007 22:21:34 +0200 From: Milo van der Linden Subject: postGIS wfs layer won't work This is a multi-part message in MIME format. --------------080300030901090506030508 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello list, (cross posted to mapserver-users and postgis-users) I have a postGIS table that contains cities. I am trying to get this running through mapserver WFS. Mapserver WFS doesn't generate errors, but returns no data at all. A postgres getsrid tells me the srid is 4326, which is also in my geometry_columns qGIS shows the postGIS table direct from the database without problems. http://82.176.214.209/cgi-bin/mapserv.exe?map=/ms4w/apps/mappingworlds/s ervice/wfs.map&service=WFS&REQUEST=getfeature&typename=worldcities_x&ver sion=1.0.0 What am I doing wrong? -- Milo van der Linden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteerd mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bijbehorende voorwaarden. --------------080300030901090506030508 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello list,

(cross posted to mapserver-users and postgis-users)

I have a postGIS table that contains cities. I am trying to get this running through mapserver WFS.

Mapserver WFS doesn't generate errors, but returns no data at all.

A postgres getsrid tells me the srid is 4326, which is also in my geometry_columns
qGIS shows the postGIS table direct from the database without problems.

http://82.176.214.209/cgi-bin/mapserv.exe?map=/ms4w/ap ps/mappingworlds/service/wfs.map&service=WFS&REQUEST=getfeature& amp;typename=worldcities_x&version=1.0.0

What am I doing wrong?
--
3DSite

Milo van der Linden
mlinden at zeelandnet.nl
milovanderlinden at gmail.com< br> milo at 3dsite.nl
http://www.3dsite.nl

 

De informatie in dit bericht reflecteerd mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bijbehorende voorwaarden.

--------------080300030901090506030508-- ------------------------------ Date: Thu, 2 Aug 2007 15:33:48 -0500 From: David Niergarth Subject: mapscript layer.setFilter() Hello, I have a Python mapscript layer that works fine under mapserver 4.8.3 (Ubuntu Edgy w/ postgresql 8.1) but fails under mapserver 4.10.0 (Ubuntu Feisty w/ postgresql 8.2). The problem happens when trying to set a filter on a layer. layer_obj.data = "the_geom from tbl_people_points" layer_obj.setFilter( "idpeople in (select idpeople from tbl_request_%s) and quality=0" % idrequest ) Under 4.8.3, the subquery in the filter works just fine. Under 4.10.0, however, the filter string is ending up truncated as 'idpeople in '. Here's are a couple simple filters that still work under 4.10: layer_obj.setFilter("idpeople = 10") layer_obj.setFilter("idpeople = 10 or idpeople = 4") And here are a couple simple queries that get truncated under 4.10: layer_obj.setFilter("idpeople <= 10") # For this query, layer.getFilterString() returns 'idpeople '. layer_obj.setFilter("idpeople = 10 or (idpeople = 10)") # For this query, layer.getFilterString() returns 'idpeople = 10 or ') All the queries above work under 4.8. The truncation in 4.10 leads to an obvious SQL syntax error, which is the error I'm seeing reported by Python mapscript. Oddly, I'm not seeing these queries show up in my postgres log -- but maybe that's a log-level thing. Does anyone know what might have changed between 4.8 and 4.10? Or is this perhaps a bug in 4.10? Thanks for any ideas, --David # Add people_points layer. layer_obj = mapscript.layerObj(map_obj) layer_obj.connectiontype = mapscript.MS_POSTGIS layer_obj.name = 'people_points' layer_obj.connection = "user=pgsql host=%s dbname=%s port=%s" % ( host, dbname, port) layer_obj.data = "the_geom from tbl_people_points" layer_obj.setFilter( "idpeople in (select idpeople from tbl_request_%s) and quality=0" % idrequest ) layer_obj.status = mapscript.MS_ON layer_obj.type = mapscript.MS_LAYER_POINT layer_obj.transparency = 50 c = mapscript.classObj(layer_obj) c.name = 'Members' s = mapscript.styleObj(c) s.color = mapscript.colorObj(255, 0, 0) s.outlinecolor = mapscript.colorObj(255, 0, 0) s.symbol = map_obj.symbolset.index('circle') s.size = 8 ------------------------------ Date: Thu, 2 Aug 2007 17:09:03 -0500 From: Steven Monai Subject: PHP/MapScript on Debian and Ubuntu Hello, all (but especially the PHP/MapScript devs): Before I go to the trouble of trying to contact the Debian package maintainers, I'm posting my question here first, just in case someone in = the Mapserver community has any information.=20 Everything I've seen on this list over the past few years has indicated t= hat the best way to run PHP/MapScript is in CGI mode. Yet the Debian package maintainers seem to be under the impression that PHP/MapScript is most stable running in an Apache2 DSO, even going so far as to patch PHP/MapScript so that it refuses to run in a CGI (or even a CLI) environment. Does anyone have any idea why Debian's 'php5-mapscript' pack= age maintainers have done this? Do they know something that I/we don't? Is PHP/MapScript not stable in PHP5 when run as CGI/CLI? I really would like to be able to run ka-map's 'precache2.php' script fro= m the command line in Debian (or Ubuntu) without having to compile my own php_mapscript.so. Regards, -SM -- ------------------------------ Date: Thu, 2 Aug 2007 20:09:31 -0400 From: Stephen Woodbridge Subject: Re: PHP/MapScript on Debian and Ubuntu Steven Monai wrote: > Hello, all (but especially the PHP/MapScript devs): > > Before I go to the trouble of trying to contact the Debian package > maintainers, I'm posting my question here first, just in case someone > in the Mapserver community has any information. > > Everything I've seen on this list over the past few years has > indicated that the best way to run PHP/MapScript is in CGI mode. Yet > the Debian package maintainers seem to be under the impression that > PHP/MapScript is most stable running in an Apache2 DSO, even going so > far as to patch PHP/MapScript so that it refuses to run in a CGI (or > even a CLI) environment. Does anyone have any idea why Debian's > 'php5-mapscript' package maintainers have done this? Do they know > something that I/we don't? Is PHP/MapScript not stable in PHP5 when run as CGI/CLI? > > I really would like to be able to run ka-map's 'precache2.php' script > from the command line in Debian (or Ubuntu) without having to compile > my own php_mapscript.so. > > Regards, > -SM > -- I can not help you much with the Debian question, but I do know that precache2.php has a memory leak on 4.10. As can bee seen here: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 16754 swoodbri 25 0 4707m 4.5g 6604 R 99 57.5 10945:39 php 26651 swoodbri 25 0 601m 483m 6540 R 98 6.1 3444:00 php These two processes started out around 91M or less. I estimate that they are leaking in the ball park of about 6M per metatile. I have not had a chance to try and run this under the current trunk. If I do get a chance to build and test that I will run it under valgrind and file a ticket on it in needed. This is running on Suse and is running from the CLI on PHP5. I have already discussed this with Daniel off list. -Steve W ------------------------------ End of MAPSERVER-USERS Digest - 1 Aug 2007 to 2 Aug 2007 (#2007-210) ******************************************************************** From arkadi at MEBIUS.LV Fri Aug 3 07:52:33 2007 From: arkadi at MEBIUS.LV (Arkadi Shishlov) Date: Fri, 3 Aug 2007 17:52:33 +0300 Subject: mapscript java makefile dependency problem Message-ID: Currently I'm investigating random failures with MapScript Java throwing NoClassDefFoundError. And I see the following in mapserver-4.10.2/mapscript/java/Makefile.in: all: interface mapscript_so mapscript_java mapscript_jar mapscript_java:: $(JAVAC) edu/umn/gis/mapscript/*.java mapscript_jar:: $(JAR) cf mapscript.jar edu In case parallel build is performed or make is evaluating targets in unspecified order the JAR file might be created without all necessary .class files, right? From rodrigomlg at GMAIL.COM Fri Aug 3 09:50:24 2007 From: rodrigomlg at GMAIL.COM (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Fri, 3 Aug 2007 17:50:24 +0100 Subject: same effect as CGI mode=itemquerymap but with PHP/mapscript Message-ID: Hi List. Normally I use mapserver as CGI, but now I need to move to PHP/mapscript. In my actual applet I use the CGI mode=itemquerymap to show the selected polygon on a layer with different color. So I pass the next values on the CGI call: mode=itemquerymap&qlayer=mylayer&qstring=someattribute='avalue' This works greats through CGI. Now I want to get the same effect using PHP Mapscript but I'm a little confused how to get it working. I know how to get the string parameters in php, even split the qstring parameter using explode but what I don't know is what must I do to get PHP Mapscript use the QUERYMAP format (defined in my base mapfile) to show the selected polygon. Can anyone give me a hint? Thanks. Rodrigo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Fri Aug 3 10:46:50 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 3 Aug 2007 11:46:50 -0600 Subject: MS5 - Line follow in AGG? Both AGG and GD? Demos? Message-ID: I have a question about the upcoming MS5 release. Under 4.10, I know that having labels follow lines requires GD 2.0.29+ Under 5.0, can this be done using AGG? If not, then can MS5 be built with support for both AGG and GD? And does anyone have any demos/screenshots yet of MS5 in action? I'd love to show my employers some side-by-side comparisons. -- Gregor Mosheh / Greg Allensworth 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 Steve.Lime at DNR.STATE.MN.US Fri Aug 3 11:41:28 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 3 Aug 2007 13:41:28 -0500 Subject: MS5 - Line follow in AGG? Both AGG and GD? Demos? In-Reply-To: <46B36A0A.3030808@hostgis.com> Message-ID: At the moment AGG rendering falls back to GD for text drawing. That may change before the final release. So, any text you can draw with GD can also be done with AGG including ANGLE FOLLOW. GD is still integral to MapServer so it is required (e.g. you have both libs). Chris Schmidt put together a version of the Boston Free Map that allows you to toggle between GD and AGG, http://boston.freemap.in/agg-demo.html (MS SVN is essentially 5.0-beta2). Steve >>> On 8/3/2007 at 12:46 PM, in message <46B36A0A.3030808 at hostgis.com>, Gregor Mosheh wrote: > I have a question about the upcoming MS5 release. > > Under 4.10, I know that having labels follow lines requires GD 2.0.29+ > Under 5.0, can this be done using AGG? > > If not, then can MS5 be built with support for both AGG and GD? > > And does anyone have any demos/screenshots yet of MS5 in action? I'd > love to show my employers some side-by-side comparisons. From gregor at HOSTGIS.COM Fri Aug 3 11:51:42 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 3 Aug 2007 12:51:42 -0600 Subject: MS5 - Line follow in AGG? Both AGG and GD? Demos? In-Reply-To: <46B33088.5157.008F.0@dnr.state.mn.us> Message-ID: Thanks for the replies, guys. Boy, does the new stuff look nice. Better line-following on labels, smoother lines and polygon edges. Yum. -- Gregor Mosheh / Greg Allensworth 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 Fri Aug 3 11:52:26 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 3 Aug 2007 12:52:26 -0600 Subject: Graphing in MS5? Message-ID: I also saw on the changelist that MS5 has some sort of graphing functionality? Is there preliminary documentation, or any demos, of this? -- Gregor Mosheh / Greg Allensworth 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 dmorissette at MAPGEARS.COM Fri Aug 3 12:13:40 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 3 Aug 2007 15:13:40 -0400 Subject: Graphing in MS5? In-Reply-To: <46B3796A.7060908@hostgis.com> Message-ID: Gregor Mosheh wrote: > I also saw on the changelist that MS5 has some sort of graphing > functionality? Is there preliminary documentation, or any demos, of this? > http://mapserver.gis.umn.edu/docs/howto/dynamic-charting/ Dnaiel -- Daniel Morissette http://www.mapgears.com/ From crschmidt at METACARTA.COM Fri Aug 3 12:44:37 2007 From: crschmidt at METACARTA.COM (Christopher Schmidt) Date: Fri, 3 Aug 2007 15:44:37 -0400 Subject: world freemap agg/gd view Message-ID: http://world.freemap.in/ LayerSelector (on the upper right) allows you to select between agg and gd. Default is GD -- the agg is certainly... brighter. And not quite the look I was looking for. (r6453.) Mapfile: http://world.freemap.in/agg.map Data: http://world.freemap.in/data/ Regards, -- Christopher Schmidt MetaCarta From dmorissette at MAPGEARS.COM Fri Aug 3 13:29:43 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 3 Aug 2007 16:29:43 -0400 Subject: MapServer 5.0.0-beta2 released In-Reply-To: Message-ID: Lars-G?ran Edholm wrote: > I can't find MapServer 5.0.0-beta2 binaries. > The beta binaries should normally be available within a couple of days after the source release via the links at http://mapserver.gis.umn.edu/download/beta - In the FGS case it is a daily build so don't look for a beta but just grab the latest build - For the Windows (MS4W) and Mac (Kyng Chaos) packages, new packages have to be posted to the respective sites by their maintainers. I see that the Mac build has been updated but the MS4W build has not been updated yet. Daniel -- Daniel Morissette http://www.mapgears.com/ From crschmidt at METACARTA.COM Fri Aug 3 14:05:10 2007 From: crschmidt at METACARTA.COM (Christopher Schmidt) Date: Fri, 3 Aug 2007 17:05:10 -0400 Subject: world freemap agg/gd view In-Reply-To: <46B395F8.3060700@propertykey.com> Message-ID: On Fri, Aug 03, 2007 at 03:54:16PM -0500, Jeff Hoffmann wrote: > Christopher Schmidt wrote: > > >LayerSelector (on the upper right) allows you to select between agg and > >gd. Default is GD -- the agg is certainly... brighter. And not quite the > >look I was looking for. > > > > Is there > a "big picture" of what AGG will be used to do eventually (or at least > some ideas) or was it all pretty much to get a little bit better > anti-aliased output? I have no clue what AGG was added for, but the difference between GD and AGG is what made me switch away from MapServer 8 months ago, and as time goes on, I find that more and more of users that I work with say "Well, why doesn't it look as good as Google Maps?" Without the font changes, I'm not quite back to the point where I want to switch from Mapnik back to MapServer yet, but I don't think that anyone can say that: http://boston.freemap.in/kamap.html?lat=901231.7146&lon=232335.42917&zoom=8&layers=B vs. http://boston.freemap.in/?lat=901231.7146&lon=232335.42917&zoom=8&layers=B doesn't demonstrate a fairly significant difference in rendering. It was certainly enough for me to make the switch from MapServer to Mapnik. I'll let actual MapServer developers answer the question though, as I'm not one. Regards, -- Christopher Schmidt MetaCarta From dmcilhagga at DMSOLUTIONS.CA Fri Aug 3 14:20:55 2007 From: dmcilhagga at DMSOLUTIONS.CA (Dave McIlhagga) Date: Fri, 3 Aug 2007 17:20:55 -0400 Subject: world freemap agg/gd view In-Reply-To: <20070803210510.GA5474@metacarta.com> Message-ID: No developer here :) but .. to add to Chris' comments. AGG was added for one of our customers -- and to be frank it was mostly driven by the Google bar. There is still lots to go -- and we're already working on the business drivers to take next steps to make things that much better. I'm pretty certain 5.2 and beyond will show some more big leaps in map quality -- so stick with it, lots more good stuff to come! Dave On 3-Aug-07, at 5:05 PM, Christopher Schmidt wrote: > On Fri, Aug 03, 2007 at 03:54:16PM -0500, Jeff Hoffmann wrote: >> Christopher Schmidt wrote: >> >>> LayerSelector (on the upper right) allows you to select between >>> agg and >>> gd. Default is GD -- the agg is certainly... brighter. And not >>> quite the >>> look I was looking for. >>> >> >> Is there >> a "big picture" of what AGG will be used to do eventually (or at >> least >> some ideas) or was it all pretty much to get a little bit better >> anti-aliased output? > > I have no clue what AGG was added for, but the difference between > GD and > AGG is what made me switch away from MapServer 8 months ago, and as > time > goes on, I find that more and more of users that I work with say > "Well, > why doesn't it look as good as Google Maps?" > > Without the font changes, I'm not quite back to the point where I want > to switch from Mapnik back to MapServer yet, but I don't think that > anyone can say that: > > http://boston.freemap.in/kamap.html? > lat=901231.7146&lon=232335.42917&zoom=8&layers=B > > vs. > > http://boston.freemap.in/? > lat=901231.7146&lon=232335.42917&zoom=8&layers=B > > doesn't demonstrate a fairly significant difference in rendering. > It was > certainly enough for me to make the switch from MapServer to Mapnik. > > I'll let actual MapServer developers answer the question though, as > I'm > not one. > > Regards, > -- > Christopher Schmidt > MetaCarta From jeff at PROPERTYKEY.COM Fri Aug 3 13:54:16 2007 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Fri, 3 Aug 2007 15:54:16 -0500 Subject: world freemap agg/gd view In-Reply-To: <20070803194437.GA5404@metacarta.com> Message-ID: Christopher Schmidt wrote: > LayerSelector (on the upper right) allows you to select between agg and > gd. Default is GD -- the agg is certainly... brighter. And not quite the > look I was looking for. > This whole AGG thing is new to me -- I was wondering what using it would actually buy me other than the sub-pixel rendering. I was looking at the AGG web site and I saw a mention of polygon smoothing using Bezier curves and that seemed like it might be useful. Some of the easily available data (like TIGER) have pretty funky shaped lakes/coastlines that might benefit from some smoothing once you start zooming in a ways. I wasn't really clear on whether that was a native part of the library or just easy to do with AGG, but it seemed like it's something that could be pretty easily implemented as a processing directive. Is there a "big picture" of what AGG will be used to do eventually (or at least some ideas) or was it all pretty much to get a little bit better anti-aliased output? -- Jeff Hoffmann Head Plate Spinner PropertyKey.com From zhonghaiw at GMAIL.COM Fri Aug 3 15:08:31 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Sat, 4 Aug 2007 00:08:31 +0200 Subject: world freemap agg/gd view In-Reply-To: <8D2D2E17-270C-485E-9E7D-6C60F85F4C74@dmsolutions.ca> Message-ID: I must say, the quality of Mapnik image is really much better, especially the labels. Zhonghai On 8/3/07, Dave McIlhagga wrote: > > No developer here :) but .. to add to Chris' comments. > > AGG was added for one of our customers -- and to be frank it was > mostly driven by the Google bar. There is still lots to go -- and > we're already working on the business drivers to take next steps to > make things that much better. > > I'm pretty certain 5.2 and beyond will show some more big leaps in > map quality -- so stick with it, lots more good stuff to come! > > Dave > > > On 3-Aug-07, at 5:05 PM, Christopher Schmidt wrote: > > > On Fri, Aug 03, 2007 at 03:54:16PM -0500, Jeff Hoffmann wrote: > >> Christopher Schmidt wrote: > >> > >>> LayerSelector (on the upper right) allows you to select between > >>> agg and > >>> gd. Default is GD -- the agg is certainly... brighter. And not > >>> quite the > >>> look I was looking for. > >>> > >> > >> Is there > >> a "big picture" of what AGG will be used to do eventually (or at > >> least > >> some ideas) or was it all pretty much to get a little bit better > >> anti-aliased output? > > > > I have no clue what AGG was added for, but the difference between > > GD and > > AGG is what made me switch away from MapServer 8 months ago, and as > > time > > goes on, I find that more and more of users that I work with say > > "Well, > > why doesn't it look as good as Google Maps?" > > > > Without the font changes, I'm not quite back to the point where I want > > to switch from Mapnik back to MapServer yet, but I don't think that > > anyone can say that: > > > > http://boston.freemap.in/kamap.html? > > lat=901231.7146&lon=232335.42917&zoom=8&layers=B > > > > vs. > > > > http://boston.freemap.in/? > > lat=901231.7146&lon=232335.42917&zoom=8&layers=B > > > > doesn't demonstrate a fairly significant difference in rendering. > > It was > > certainly enough for me to make the switch from MapServer to Mapnik. > > > > I'll let actual MapServer developers answer the question though, as > > I'm > > not one. > > > > Regards, > > -- > > Christopher Schmidt > > MetaCarta > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jayzee.smith at GMAIL.COM Fri Aug 3 16:32:23 2007 From: jayzee.smith at GMAIL.COM (John Smith) Date: Fri, 3 Aug 2007 19:32:23 -0400 Subject: world freemap agg/gd view In-Reply-To: <8D2D2E17-270C-485E-9E7D-6C60F85F4C74@dmsolutions.ca> Message-ID: not flame but couldn't resist coz below doesn't sound right http://www.mapnik.org/faq/ Why mapnik? Why bother, we have Mapserver already? Mapnik is about making beautiful maps. It uses the AGG library and offers world class anti-aliasing rendering with subpixel accuracy for geographic data. It is written from scratch in modern C++ and doesn't suffer from design decisions made a decade ago. When it comes to handling common software tasks such as memory management, filesystem access, regular expressions, parsing and so on, Mapnik doesn't re-invent the wheel, but utilises best of breed industry standard libraries from boost.org in modern C++ and doesn't suffer from design decisions made a decade ago. When it : meaning not time-tested?? a case of style over substance?? want to stick with it jzs On 8/3/07, Dave McIlhagga wrote: > No developer here :) but .. to add to Chris' comments. > > AGG was added for one of our customers -- and to be frank it was > mostly driven by the Google bar. There is still lots to go -- and > we're already working on the business drivers to take next steps to > make things that much better. > > I'm pretty certain 5.2 and beyond will show some more big leaps in > map quality -- so stick with it, lots more good stuff to come! > > Dave > > On 3-Aug-07, at 5:05 PM, Christopher Schmidt wrote: > > > On Fri, Aug 03, 2007 at 03:54:16PM -0500, Jeff Hoffmann wrote: > >> Christopher Schmidt wrote: > >> > >>> LayerSelector (on the upper right) allows you to select between > >>> agg and > >>> gd. Default is GD -- the agg is certainly... brighter. And not > >>> quite the > >>> look I was looking for. > >>> > >> > >> Is there > >> a "big picture" of what AGG will be used to do eventually (or at > >> least > >> some ideas) or was it all pretty much to get a little bit better > >> anti-aliased output? > > > > I have no clue what AGG was added for, but the difference between > > GD and > > AGG is what made me switch away from MapServer 8 months ago, and as > > time > > goes on, I find that more and more of users that I work with say > > "Well, > > why doesn't it look as good as Google Maps?" > > > > Without the font changes, I'm not quite back to the point where I want > > to switch from Mapnik back to MapServer yet, but I don't think that > > anyone can say that: > > > > http://boston.freemap.in/kamap.html? > > lat=901231.7146&lon=232335.42917&zoom=8&layers=B > > > > vs. > > > > http://boston.freemap.in/? > > lat=901231.7146&lon=232335.42917&zoom=8&layers=B > > > > doesn't demonstrate a fairly significant difference in rendering. > > It was > > certainly enough for me to make the switch from MapServer to Mapnik. > > > > I'll let actual MapServer developers answer the question though, as > > I'm > > not one. > > > > Regards, > > -- > > Christopher Schmidt > > MetaCarta From gregor at HOSTGIS.COM Fri Aug 3 16:53:44 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 3 Aug 2007 17:53:44 -0600 Subject: world freemap agg/gd view In-Reply-To: Message-ID: John Smith wrote: > not flame but couldn't resist coz below doesn't sound right heh heh Now we get into debating MS vs Mapnik? These things usually turn religious in nature. ;) But I'd say that both of these remarks are a bit uncharitable, in my opinion. > Mapnik is about making beautiful maps. > a case of style over substance?? A case of, as someone else put it today, meeting the bar which Google Maps raised over 2 years ago. Fact is, while you and I care about the data, our paying customers want their maps to look good. Nothing wrong with that at all, as long as stability and performance can be had as well. And Mapnik doesn't suffer on either of those. (though it is limited in the variety of data sources it can handle: PostGIS, shapefile, TIFF) > in modern C++ and doesn't suffer from design decisions > made a decade ago. > : meaning not time-tested?? Mapnik is some 2 years old and has many happy users; not too shabby by open-source standards. To make remarks about it being time tested, in the shadow of Mapserver's "5.0.0 beta 2", just seems a bit... you know. :) -- Gregor Mosheh / Greg Allensworth 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 jayzee.smith at GMAIL.COM Fri Aug 3 18:00:18 2007 From: jayzee.smith at GMAIL.COM (John Smith) Date: Fri, 3 Aug 2007 21:00:18 -0400 Subject: world freemap agg/gd view In-Reply-To: <46B3C008.3030601@hostgis.com> Message-ID: here's nicking mapnik: it is a case of style over substance when style (looking good) is over substance (limited data sources it can handle). we all know it is easier to ramp up style than substance. mapserver with agg is proving that. let's see how many eyes check the mapnik code? how many users have given it a real-life test drive? how many users support its mailing list (started jan 2006)? v. the same numbers for mapserver? http://www.mapnik.org/faq/ "Which platforms does it run on? What about Mac and Windows?" "At the moment only Linux OS is supported." : talk about substance, doesn't even support half of the lamp stack (mysql and php) either. like i was saying "not time/market-tested." to imply that mapserver "suffers from design decisions made a decade ago" or "re-invents the wheel" is pure fud. whoever put it on the faq should take it off. jzs On 8/3/07, Gregor Mosheh wrote: > John Smith wrote: > > not flame but couldn't resist coz below doesn't sound right > > heh heh Now we get into debating MS vs Mapnik? > These things usually turn religious in nature. ;) > > But I'd say that both of these remarks are a bit uncharitable, in my > opinion. > > > Mapnik is about making beautiful maps. > > a case of style over substance?? > > A case of, as someone else put it today, meeting the bar which Google > Maps raised over 2 years ago. Fact is, while you and I care about the > data, our paying customers want their maps to look good. > > Nothing wrong with that at all, as long as stability and performance can > be had as well. And Mapnik doesn't suffer on either of those. (though it > is limited in the variety of data sources it can handle: PostGIS, > shapefile, TIFF) > > > in modern C++ and doesn't suffer from design decisions > > made a decade ago. > > : meaning not time-tested?? > > Mapnik is some 2 years old and has many happy users; not too shabby by > open-source standards. To make remarks about it being time tested, in > the shadow of Mapserver's "5.0.0 beta 2", just seems a bit... you know. :) > > -- > Gregor Mosheh / Greg Allensworth > 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 Fri Aug 3 18:38:02 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 3 Aug 2007 19:38:02 -0600 Subject: world freemap agg/gd view In-Reply-To: Message-ID: John Smith wrote: > it is a case of style over substance when style (looking good) is over > substance (limited data sources it can handle). Well, sure. Now that you've qualified the term "substance" you make some good points. My point is a) that it seems to be stable and fast, and produces output that its users enjoy; b) that it works great for a number of people. The age of the mailing list, the number of coders, the number of OSs, even the breadth of data sources it supports, is relevant for some folks, and not for others. But yes, it would be nice to see MS 5.x rival Mapnik's output, so Mapnik gets to swallow their words. :) -- Gregor Mosheh / Greg Allensworth 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 dn at HDDESIGN.COM Fri Aug 3 19:26:12 2007 From: dn at HDDESIGN.COM (David Niergarth) Date: Fri, 3 Aug 2007 21:26:12 -0500 Subject: mapscript layer.setFilter() In-Reply-To: <46B23FAC.8080707@hddesign.com> Message-ID: Ok, I've found that this was a known problem in 4.10.0, fixed subsequently. http://www.nabble.com/Re%3A-Filter-in-Mapserver-4.10.0-p6967162.html If you're stuck using 4.10.0, there is a quick fix: wrap the filter in an extra set of double quotes. For example, change layer.setFilter('id < 10') to layer.setFilter('"id < 10"') and things will work again. This quoting fix also works for my filters with subqueries. http://www.nabble.com/Re%3A-Filter-in-Mapserver-4.10.0-p6903701.html --David David Niergarth wrote: > Hello, > > I have a Python mapscript layer that works fine under mapserver 4.8.3 > (Ubuntu Edgy w/ postgresql 8.1) but fails under mapserver 4.10.0 (Ubuntu > Feisty w/ postgresql 8.2). The problem happens when trying to set a > filter on a layer. > > layer_obj.data = "the_geom from tbl_people_points" > layer_obj.setFilter( > "idpeople in (select idpeople from tbl_request_%s) and quality=0" > % idrequest > ) > > Under 4.8.3, the subquery in the filter works just fine. Under 4.10.0, > however, the filter string is ending up truncated as 'idpeople in '. > > Here's are a couple simple filters that still work under 4.10: > > layer_obj.setFilter("idpeople = 10") > layer_obj.setFilter("idpeople = 10 or idpeople = 4") > > And here are a couple simple queries that get truncated under 4.10: > > layer_obj.setFilter("idpeople <= 10") > # For this query, layer.getFilterString() returns 'idpeople '. > > layer_obj.setFilter("idpeople = 10 or (idpeople = 10)") > # For this query, layer.getFilterString() returns 'idpeople = 10 > or ') > > All the queries above work under 4.8. The truncation in 4.10 leads to an > obvious SQL syntax error, which is the error I'm seeing reported by > Python mapscript. Oddly, I'm not seeing these queries show up in my > postgres log -- but maybe that's a log-level thing. > > Does anyone know what might have changed between 4.8 and 4.10? Or is > this perhaps a bug in 4.10? > > Thanks for any ideas, > > --David From sujnan at PIXELINFOTEK.COM Fri Aug 3 23:06:26 2007 From: sujnan at PIXELINFOTEK.COM (Sujnana Rai) Date: Sat, 4 Aug 2007 01:06:26 -0500 Subject: Mapscript on java/J2EE/Tomcat error Message-ID: Hi, I am trying to develop sample web gis application using mapserver on java/j2ee/tomcat platform. For this I followed following steps 1. Downloaded MapServer for Windows(ms4w_2.2.4) and installed it. 2. Added library paths('D:\ms4w\Apache\cgi-bin' and 'D:\ms4w\Apache\cgi- bin\mapscript\java') to environment variable PATH 3. As I am using eclipse IDE so I included mapscript.jar to build path (located at D:\ms4w\Apache\cgi-bin\mapscript\java) to build path and added Djava.library.path="D:\ms4w\Apache\cgi-bin;D:\ms4w\Apache\cgi- bin\mapscript\java" to VM arguments. Now I created jsp page called mapdemo.jsp <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%> <%@page import="edu.umn.gis.mapscript.*"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName() +":"+request.getServerPort()+path+"/"; %> My JSP 'mapdemo.jsp' starting page <% mapObj map = new mapObj ("D:\\ms4w\\apps\\tutorial\\htdocs\\example_modes.map"); %> This is my JSP page.
While run time it thows following error Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException (JspServletWrapper.java:504) org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause javax.servlet.ServletException: Could not initialize class edu.umn.gis.mapscript.mapscriptJNI org.apache.jasper.runtime.PageContextImpl.doHandlePageException (PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException (PageContextImpl.java:791) org.apache.jsp.mapdemo_jsp._jspService (org.apache.jsp.mapdemo_jsp:93) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.NoClassDefFoundError: Could not initialize class edu.umn.gis.mapscript.mapscriptJNI edu.umn.gis.mapscript.mapObj.(mapObj.java:284) org.apache.jsp.mapdemo_jsp._jspService (org.apache.jsp.mapdemo_jsp:77) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Please help me to come out of this exception Thanks in advance Sujnan From bayu at BKURNIAWAN.COM Sat Aug 4 00:56:39 2007 From: bayu at BKURNIAWAN.COM (Bayu Kurniawan R) Date: Sat, 4 Aug 2007 14:56:39 +0700 Subject: error compile mapserver Message-ID: error compiling mapserver-4.10.2 Warning: dl() [function.dl]: Unable to load dynamic library '/usr/local/lib/php/ext/php_mapscript.so' - libiconv.so.2: cannot open shared object file: No such file or directory in /media/hda6/htdocs/mapscript.php on line 2 anyone can help -- Bayu Kurniawan R GIS Programmer PT. Sigma Cipta Utama Jl. Tekno I Blok B No:5,6,7 BSD City Tangerang 15314 Indonesia Phone : +62 21 75871955 ext.304 From thomas.bonfort at GMAIL.COM Sat Aug 4 01:39:48 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Sat, 4 Aug 2007 10:39:48 +0200 Subject: world freemap agg/gd view In-Reply-To: <20070803210510.GA5474@metacarta.com> Message-ID: > > > > http://boston.freemap.in/kamap.html?lat=901231.7146&lon=232335.42917&zoom=8&layers=B > > vs. > > http://boston.freemap.in/?lat=901231.7146&lon=232335.42917&zoom=8&layers=B > > doesn't demonstrate a fairly significant difference in rendering. you're not being very fair here chris ;) here's the (nearly) beta2 output from mapserver and agg: http://tinyurl.com/3692ms* * -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Sat Aug 4 03:53:52 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sat, 4 Aug 2007 04:53:52 -0600 Subject: error compile mapserver In-Reply-To: <45a45b1c0708040056s7e255e63t363f345284a06b0a@mail.gmail.com> Message-ID: Bayu Kurniawan R wrote: > error compiling mapserver-4.10.2 > Warning: dl() [function.dl]: Unable to load dynamic library > '/usr/local/lib/php/ext/php_mapscript.so' - libiconv.so.2: cannot open > shared object file: No such file or directory in > /media/hda6/htdocs/mapscript.php on line 2 I take it from your meessage that this isn't a problem with compiling Mapserver, but of PHP/Mapscript being loaded at runtime. As it says: The library libiconv could not be found. Either it isn't installed, or else you need to re-run "ldconfig" to update your linker. Try this: locate libiconv.so.2 # that tells you whether it exists ldconfig -p | grep iconv # that tells whether the linker is finding it ldconfig # that will cause the linker to check for new libraries -- Gregor Mosheh / Greg Allensworth 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 sujnan at PIXELINFOTEK.COM Sat Aug 4 04:09:33 2007 From: sujnan at PIXELINFOTEK.COM (Sujnana Rai) Date: Sat, 4 Aug 2007 06:09:33 -0500 Subject: Mapscript on java/J2EE/Tomcat error Message-ID: Hi, Sorry, In my previous mail I copied wrong exception error message. Previously, I was getting that message. Now I am getting following exception. org.apache.jasper.JasperException: E:\ms4w\Apache\cgi- bin\mapscript\java\mapscript.dll: The specified procedure could not be found org.apache.jasper.servlet.JspServletWrapper.handleJspException (JspServletWrapper.java:510) org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause javax.servlet.ServletException: E:\ms4w\Apache\cgi- bin\mapscript\java\mapscript.dll: The specified procedure could not be found org.apache.jasper.runtime.PageContextImpl.doHandlePageException (PageContextImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException (PageContextImpl.java:791) org.apache.jsp.mapdemo_jsp._jspService (org.apache.jsp.mapdemo_jsp:93) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.UnsatisfiedLinkError: E:\ms4w\Apache\cgi- bin\mapscript\java\mapscript.dll: The specified procedure could not be found java.lang.ClassLoader$NativeLibrary.load(Native Method) java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) java.lang.Runtime.loadLibrary0(Runtime.java:823) java.lang.System.loadLibrary(System.java:1030) edu.umn.gis.mapscript.mapscriptJNI.(mapscriptJNI.java:23) edu.umn.gis.mapscript.mapObj.(mapObj.java:284) org.apache.jsp.mapdemo_jsp._jspService (org.apache.jsp.mapdemo_jsp:77) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Thanks, Sujnan From crschmidt at METACARTA.COM Sat Aug 4 05:28:01 2007 From: crschmidt at METACARTA.COM (Christopher Schmidt) Date: Sat, 4 Aug 2007 08:28:01 -0400 Subject: world freemap agg/gd view In-Reply-To: Message-ID: On Sat, Aug 04, 2007 at 10:39:48AM +0200, thomas bonfort wrote: > > http://boston.freemap.in/kamap.html?lat=901231.7146&lon=232335.42917&zoom=8&layers=B > > http://boston.freemap.in/?lat=901231.7146&lon=232335.42917&zoom=8&layers=B > > > > doesn't demonstrate a fairly significant difference in rendering. > > > you're not being very fair here chris ;) > here's the (nearly) beta2 output from mapserver and agg: > http://tinyurl.com/3692ms* The point of the discussion was that there is significant reason to use AGG over GD -- not that there is a fairly significant reason to use Mapnik over MapServer. I'm sorry that wasn't clear. I'd prefer not to use Mapnik. As wonderful as Artem has been in developing it, it's not got nearly the polish, and the manhours of documentation and work that MapServer have had in the user-facing department. (The fact that I field many questions on how to configure Mapnik on the *TileCache* mailing list is simply one example that the project is relatively immature.) The AGG rendering is a huge step up from GD. The rendering engine, and its capabilities, are what forced me away from MapServer in the past. Now I'm close to the point where I could start using it again. I'm glad that MapServer is moving to using the AGG rendering library as an option, because I think it will lead to better maps for users who need them. That's a great thing. It's obvious that the current AGG work is a huge improvement. However, it's even more obvious to me that to make pretty maps, it was absolutely neccesary -- and that's all I was trying to demonstrate: just GD vs. the best you can do with AGG. (I'm not convinced that MapServer can demonstrate 'the best you can do with AGG' until the fonts are rendered with AGG.) Regards, -- Christopher Schmidt MetaCarta From arkadi at MEBIUS.LV Sat Aug 4 06:34:50 2007 From: arkadi at MEBIUS.LV (Arkadi Shishlov) Date: Sat, 4 Aug 2007 16:34:50 +0300 Subject: Mapscript on java/J2EE/Tomcat error In-Reply-To: Message-ID: Sujnana Rai wrote: > org.apache.jasper.JasperException: E:\ms4w\Apache\cgi- > bin\mapscript\java\mapscript.dll: The specified procedure could not be found Make sure mapserver bin/ is in front of PATH. It is probably same dll but different version/build from some other product. From thomas.bonfort at GMAIL.COM Sat Aug 4 11:47:15 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Sat, 4 Aug 2007 20:47:15 +0200 Subject: Rotate transparent symbols In-Reply-To: <20070731073247.67c86015@kmail.b3partners.nl> Message-ID: 5.0 will support pixmap rotations with the AGG renderer font rotation is a bit more hypothetical but might make its way also tb On 7/31/07, Roy Braam wrote: > > List, > > Does anyone know how to show rotated symbols (font's or images) > transparent in a point layer? If i rotate fonts the location isn't correct > any more and if i rotate images they aren't transparent any more. > > Tia, > > Roy Braam > B3partners BV > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lester at LSCES.CO.UK Sat Aug 4 12:42:52 2007 From: lester at LSCES.CO.UK (Lester Caine) Date: Sat, 4 Aug 2007 14:42:52 -0500 Subject: (Sending email failed) - 5.0Beta problem Message-ID: Daniel Morissette wrote: > MapServer 5.0.0-beta2 has just been released. The source package and links to binary distributions are available at: > > http://mapserver.gis.umn.edu/download/beta I've spent the last day playing with the beta1 windows package, but I'm having a problem with getting maps bigger than 600x600. The current version creates images around 800px square, but when I switch to 5.0 the biggest I get is 600px sq. I did ask on IRC without a reply so I'm trying here. Is this a bug, or do I need to change something to get the new build working with existing maps? From chris at POWERHOUSETECHGRP.COM Sat Aug 4 17:09:27 2007 From: chris at POWERHOUSETECHGRP.COM (Chris @ Powerhouse Technology Group) Date: Sat, 4 Aug 2007 19:09:27 -0500 Subject: .map file generation Message-ID: I have been fighting all week trying to make the .map file I have ms4w running, I have tryed Quantum GIS and tons of python tricks with no luck can some one help me. the file is tgr47079lkA.shp its a tiger 2000 file Line File i am trying to make it display the FENAME field. any help free or commercial is appreciated. From warmerdam at POBOX.COM Sat Aug 4 18:41:58 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 4 Aug 2007 21:41:58 -0400 Subject: (Sending email failed) - 5.0Beta problem In-Reply-To: Message-ID: Lester Caine wrote: > Daniel Morissette wrote: >> MapServer 5.0.0-beta2 has just been released. The source package and links > to binary distributions are available at: >> http://mapserver.gis.umn.edu/download/beta > > I've spent the last day playing with the beta1 windows package, but I'm having > a problem with getting maps bigger than 600x600. The current version creates > images around 800px square, but when I switch to 5.0 the biggest I get is > 600px sq. I did ask on IRC without a reply so I'm trying here. Is this a bug, > or do I need to change something to get the new build working with existing > maps? Lester, There is a MAXSIZE keyword for the map which you can use to set the maximum image size requestable by the client. But the default is 2K * 2K so I don't think that is what you are running into. Do you possibly have MAXSIZE set with a small value? When you try to generate an 800x800 image what happens? 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 stevem at SPATIALMAPPING.COM Sat Aug 4 20:10:10 2007 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Sat, 4 Aug 2007 22:10:10 -0500 Subject: PHP/MapScript on Debian and Ubuntu Message-ID: Update. I have filed a bug report against the Ubuntu binary package 'php5-mapscript', requesting that the patch that purposely breaks PHP/MapScript for CGI/FCGI/CLI be removed. Here's a link: https://bugs.launchpad.net/bugs/130304 Hopefully, the package maintainers will have a look and fix this little glitch soon. In the meantime, I have built my own .deb from source on Ubuntu (Feisty, i386). It's a relatively small file (532 KiB) that I'm happy to share with anyone who asks. -SM -- On Thu, 2 Aug 2007 17:09:03 -0500, Steven Monai wrote: >Hello, all (but especially the PHP/MapScript devs): > >Before I go to the trouble of trying to contact the Debian package >maintainers, I'm posting my question here first, just in case someone in the >Mapserver community has any information. > >Everything I've seen on this list over the past few years has indicated that >the best way to run PHP/MapScript is in CGI mode. Yet the Debian package >maintainers seem to be under the impression that PHP/MapScript is most >stable running in an Apache2 DSO, even going so far as to patch >PHP/MapScript so that it refuses to run in a CGI (or even a CLI) >environment. Does anyone have any idea why Debian's 'php5-mapscript' package >maintainers have done this? Do they know something that I/we don't? Is >PHP/MapScript not stable in PHP5 when run as CGI/CLI? > >I really would like to be able to run ka-map's 'precache2.php' script from >the command line in Debian (or Ubuntu) without having to compile my own >php_mapscript.so. > >Regards, >-SM >-- From lester at LSCES.CO.UK Sat Aug 4 23:52:25 2007 From: lester at LSCES.CO.UK (Lester Caine) Date: Sun, 5 Aug 2007 01:52:25 -0500 Subject: (Sending email failed) - 5.0Beta problem Message-ID: On Sat, 4 Aug 2007 21:41:58 -0400, Frank Warmerdam wrote: >Lester Caine wrote: >> Daniel Morissette wrote: >>> MapServer 5.0.0-beta2 has just been released. The source package and links >> to binary distributions are available at: >>> http://mapserver.gis.umn.edu/download/beta >> >> I've spent the last day playing with the beta1 windows package, but I'm having >> a problem with getting maps bigger than 600x600. The current version creates >> images around 800px square, but when I switch to 5.0 the biggest I get is >> 600px sq. I did ask on IRC without a reply so I'm trying here. Is this a bug, >> or do I need to change something to get the new build working with existing >> maps? > >Lester, > >There is a MAXSIZE keyword for the map which you can use to set the >maximum image size requestable by the client. But the default is 2K * 2K >so I don't think that is what you are running into. > >Do you possibly have MAXSIZE set with a small value? > >When you try to generate an 800x800 image what happens? I have found what is different between 4.x and 5.0. It is not using the dynamic sizes provided with the URL. I had 'SIZE 600 600' but this is replaced by the sizes required for the actual page being rendered. In 5.0 this ability seems to have been lost, so I can't dynamically size the map window. http://home.lsces.co.uk/lsces/mapper/display_map.php is the currently working example ( ps - anybody else having trouble posting via email - I keep getting bounce messages :( ) From lester at LSCES.CO.UK Sun Aug 5 01:25:32 2007 From: lester at LSCES.CO.UK (Lester Caine) Date: Sun, 5 Aug 2007 03:25:32 -0500 Subject: (Sending email failed) - 5.0Beta problem Message-ID: On Sun, 5 Aug 2007 01:52:25 -0500, Lester Caine wrote: >I have found what is different between 4.x and 5.0. It is not using the >dynamic sizes provided with the URL. I had 'SIZE 600 600' but this is replaced >by the sizes required for the actual page being rendered. In 5.0 this ability >seems to have been lost, so I can't dynamically size the map window. Cracked it There were two 'spellings' of the size element in the url. 'mapsize' and 'map_size' Only the first is supported in 5.0 while both are accepted in 4.x Where is the changelog that would indicate these sorts of changes in 5.0? From interfacemirror at GMAIL.COM Sun Aug 5 02:01:33 2007 From: interfacemirror at GMAIL.COM (Jandost Khoso) Date: Sun, 5 Aug 2007 13:01:33 +0400 Subject: Compiled MapScript for x64 Message-ID: Hi, Can anyone guide me how to get C sharp Mapscript assembly for x64 bit? i need to run my application on x64 bit computer but when i tried with x86 compiled version in map server CGI folder it raises an exception about BAD LIBRARY IMAGE ( which implies it can not load the dll). Kindest Regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Sun Aug 5 04:04:10 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Sun, 5 Aug 2007 13:04:10 +0200 Subject: Compiled MapScript for x64 In-Reply-To: Message-ID: Hi, I recall we had a discussion about the x64 compilation and I copy the link to the corresponding thread here, since it may apply to this problem as well: http://lists.umn.edu/cgi-bin/wa?A2=ind0701&L=mapserver-users&D=0&O=A&P=39484 It must be noted that the x64 version of mapserver/mapscript is not thoroughly tested right now and we still have a pending issue about the memory related problems with that. http://trac.osgeo.org/mapserver/ticket/2023 Do you think you need a real 64bit image, or running the 32 bit version on the 64 bit OS would also be sufficient? Best regards, Tamas Szekeres 2007/8/5, Jandost Khoso : > Hi, > > Can anyone guide me how to get C sharp Mapscript assembly for x64 bit? i > need to run my application on x64 bit computer but when i tried with x86 > compiled version in map server CGI folder it raises an exception about BAD > LIBRARY IMAGE ( which implies it can not load the dll). > > Kindest Regards, > From warmerdam at POBOX.COM Sun Aug 5 07:30:06 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sun, 5 Aug 2007 10:30:06 -0400 Subject: (Sending email failed) - 5.0Beta problem In-Reply-To: Message-ID: Lester Caine wrote: > On Sun, 5 Aug 2007 01:52:25 -0500, Lester Caine wrote: >> I have found what is different between 4.x and 5.0. It is not using the >> dynamic sizes provided with the URL. I had 'SIZE 600 600' but this is replaced >> by the sizes required for the actual page being rendered. In 5.0 this ability >> seems to have been lost, so I can't dynamically size the map window. > > Cracked it > There were two 'spellings' of the size element in the url. > 'mapsize' and 'map_size' > Only the first is supported in 5.0 while both are accepted in 4.x > > Where is the changelog that would indicate these sorts of changes in 5.0? Lester, This would belong in: http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT But I don't see anything. I would suggest filing a ticket for this to be added to the migration guide, or fixed depending on whether it is an intended change or not. 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 woodbri at SWOODBRIDGE.COM Sun Aug 5 07:55:51 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 5 Aug 2007 10:55:51 -0400 Subject: (Sending email failed) - 5.0Beta problem In-Reply-To: <46B5DEEE.1090707@pobox.com> Message-ID: Frank Warmerdam wrote: > Lester Caine wrote: >> On Sun, 5 Aug 2007 01:52:25 -0500, Lester Caine >> wrote: >>> I have found what is different between 4.x and 5.0. It is not using the >>> dynamic sizes provided with the URL. I had 'SIZE 600 600' but this is >>> replaced >>> by the sizes required for the actual page being rendered. In 5.0 this >>> ability >>> seems to have been lost, so I can't dynamically size the map window. >> >> Cracked it >> There were two 'spellings' of the size element in the url. 'mapsize' >> and 'map_size' >> Only the first is supported in 5.0 while both are accepted in 4.x >> Where is the changelog that would indicate these sorts of changes in 5.0? > > Lester, > > This would belong in: > > > http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT > > But I don't see anything. I would suggest filing a ticket for this to > be added to the migration guide, or fixed depending on whether it is an > intended change or not. > > Best regards, Lester, This was a problem that I report to Steve L and I believe has been fixed in the trunk. It is important to have both because the later is used to modify the parameter via the CGI URL syntax AND is is being used by OpenLayers.Layer.MapServer(). Please try this again with a more resent version and report if you still have a problem. -Steve From lester at LSCES.CO.UK Sun Aug 5 09:37:40 2007 From: lester at LSCES.CO.UK (Lester Caine) Date: Sun, 5 Aug 2007 11:37:40 -0500 Subject: (Sending email failed) - 5.0Beta problem Message-ID: On Sun, 5 Aug 2007 10:55:51 -0400, Stephen Woodbridge wrote: >Please try this again with a more resent version and report if you still >have a problem. Once there is a windows build :) I don't have a linux development box running at present. I have tidied up bitweaver/mapper to use just the mapsize format, as both were being used which is why it took longer to spot what was happening :( ( And I stll can't get at the list via emails :( ) From tnolte at ILPCS.COM Sun Aug 5 19:04:26 2007 From: tnolte at ILPCS.COM (Timothy J Nolte) Date: Sun, 5 Aug 2007 21:04:26 -0500 Subject: What's up with the MapServer website? Message-ID: Seems the MapServer site and the GIS UMN sites are down. Anyone know what's going on? Do they do routine maintenance on Sundays? I was really hoping ot download the 5 beta 2 of MapServer. Thanks. - Tim From warmerdam at POBOX.COM Sun Aug 5 20:01:36 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sun, 5 Aug 2007 23:01:36 -0400 Subject: What's up with the MapServer website? In-Reply-To: Message-ID: Timothy J Nolte wrote: > Seems the MapServer site and the GIS UMN sites are down. Anyone know what's > going on? Do they do routine maintenance on Sundays? I was really hoping ot > download the 5 beta 2 of MapServer. Thanks. Tim, While we wait for someone to physically inspect the server (likely Monday), you can grab downloads from: http://download.osgeo.org/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 tnolte at ILPCS.COM Sun Aug 5 19:49:36 2007 From: tnolte at ILPCS.COM (Timothy J Nolte) Date: Sun, 5 Aug 2007 21:49:36 -0500 Subject: What's up with the MapServer website? Message-ID: I did finally track down that alternative download location using good old Google cached pages. Thanks. I hope nothing too major happened to the server. From p.willis at TELUS.NET Sun Aug 5 20:05:19 2007 From: p.willis at TELUS.NET (pw) Date: Sun, 5 Aug 2007 20:05:19 -0700 Subject: What's up with the MapServer website? In-Reply-To: <46B68F10.7040403@pobox.com> Message-ID: Frank Warmerdam wrote: > > While we wait for someone to physically inspect the server (likely Monday) Server troubles.... I'm glad I'm not the only one this happens to. Peter From flavio at TYDAC.CH Sun Aug 5 23:44:09 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Mon, 6 Aug 2007 08:44:09 +0200 Subject: .map file generation In-Reply-To: <46B51537.5070601@powerhousetechgrp.com> Message-ID: Hi Chris I alway write them using an editor. Lookup http://umn.mapserver.ch, i.e. under sample map files, copy/paste/edit ... Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: "Chris @ Powerhouse Technology Group" To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Sat, 4 Aug 2007 19:09:27 -0500 Subject: [UMN_MAPSERVER-USERS] .map file generation > I have been fighting all week trying to make the .map file I have > ms4w > running, I have tryed Quantum GIS and tons of python tricks with no > luck > can some one help me. > the file is tgr47079lkA.shp its a tiger 2000 file Line File i am > trying > to make it display the FENAME field. any help free or commercial is > appreciated. From sebastian.schmitz at WHEREGROUP.COM Mon Aug 6 00:43:59 2007 From: sebastian.schmitz at WHEREGROUP.COM (Sebastian Schmitz) Date: Mon, 6 Aug 2007 09:43:59 +0200 Subject: .map file generation In-Reply-To: <46B51537.5070601@powerhousetechgrp.com> Message-ID: Hi try MapStorer, a friendly web-based graphical user interface for Mapserver mapfiles that lets you click a mapfile in a matter of minutes. Get the latest release 0.8 from mapstorer.org with full-featured PostGIS-Support and basic shapefile-support. Cheers Sebastian Chris @ Powerhouse Technology Group schrieb: > I have been fighting all week trying to make the .map file I have ms4w > running, I have tryed Quantum GIS and tons of python tricks with no > luck can some one help me. > the file is tgr47079lkA.shp its a tiger 2000 file Line File i am > trying to make it display the FENAME field. any help free or > commercial is appreciated. -- --------------------------------------- WhereGroup From friendvn2000 at YAHOO.COM Mon Aug 6 01:47:04 2007 From: friendvn2000 at YAHOO.COM (Jedi Knight) Date: Mon, 6 Aug 2007 03:47:04 -0500 Subject: .map file generation Message-ID: Hi try MapStorer, a friendly web-based graphical user interface for Mapserver mapfiles that lets you click a mapfile in a matter of minutes. Get the latest release 0.8 from mapstorer.org with full-featured PostGIS-Support and basic shapefile-support. Cheers Sebastian ------------------------ BUT MAPSTORER IS TOO DIFFUCULT TO INSTALL !!!!!!!!!!!!!!! From sebastian.schmitz at WHEREGROUP.COM Mon Aug 6 02:48:46 2007 From: sebastian.schmitz at WHEREGROUP.COM (Sebastian Schmitz) Date: Mon, 6 Aug 2007 11:48:46 +0200 Subject: .map file generation In-Reply-To: Message-ID: Not anymore. Since release 0.8 we have a well-documented install web-page and a friendly PEAR installer that considerably eases installation. TRY AGAIN!!!!! BTW: mapfile import is under way and can hopefully be presented at FOSS4G. More volunteers welcome. Sebastian Jedi Knight schrieb: > Hi > > try MapStorer, a friendly web-based graphical user interface for > Mapserver mapfiles that lets you click a mapfile in a matter of minutes. > Get the latest release 0.8 from mapstorer.org with full-featured > PostGIS-Support and basic shapefile-support. > > Cheers > > Sebastian > > ------------------------ > > BUT MAPSTORER IS TOO DIFFUCULT TO INSTALL !!!!!!!!!!!!!!! > -- --------------------------------------- WhereGroup GmbH & Co. KG Siemensstr. 8 D-53121 Bonn Amtsgericht Bonn, HRA 6788 Fon: +49 (0)228 / 90 90 38 - 24 Fax: +49 (0)228 / 90 90 38 - 11 mailto:sebastian.schmitz at wheregroup.com http://www.wheregroup.com ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Arnulf Christl, Olaf Knopp, Peter Stamm --------------------------------------- From sujnan at PIXELINFOTEK.COM Mon Aug 6 05:43:52 2007 From: sujnan at PIXELINFOTEK.COM (Sujnana Rai) Date: Mon, 6 Aug 2007 07:43:52 -0500 Subject: Mapscript on java/J2EE/Tomcat error Message-ID: Thanks Arkadi Shishlov now it works Sujnan From sujnan at PIXELINFOTEK.COM Mon Aug 6 05:45:21 2007 From: sujnan at PIXELINFOTEK.COM (Sujnana Rai) Date: Mon, 6 Aug 2007 07:45:21 -0500 Subject: Mapscript on java/J2EE/Tomcat error Message-ID: Thanks Arkadi Shishlov now it works Sujnan From mlinden at ZEELANDNET.NL Mon Aug 6 05:56:27 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Mon, 6 Aug 2007 14:56:27 +0200 Subject: postGIS problem WFS Message-ID: One more try, I am getting bounding box errors on postGIS tables when I set up mapserver as WFS. Is there anyone out there who can help me?? -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From A.Hale at CCW.GOV.UK Mon Aug 6 06:02:12 2007 From: A.Hale at CCW.GOV.UK (Alan Hale) Date: Mon, 6 Aug 2007 14:02:12 +0100 Subject: .map file generation Message-ID: Hi I just tried to install PEAR from the release 0.8 installer and it falls over with the error: The requested URL /viewcvs.cgi/pear-core/PEAR.php was not found on this server. This seems to relate to line 697 in pear_installer.php: $url = 'http://cvs.php.net/viewcvs.cgi/pear-core/PEAR.php?view=co&pathrev=PEAR_1_4'; Checking on the CVS site this URL seems to be out of date. Regards Alan Hale Aberystwyth Wales From roland.w.martin at GMAIL.COM Mon Aug 6 06:24:27 2007 From: roland.w.martin at GMAIL.COM (Roland Martin) Date: Mon, 6 Aug 2007 14:24:27 +0100 Subject: .map file generation In-Reply-To: <46B729E2.1004.0047.0@ccw.gov.uk> Message-ID: Hi, I had this problem last week as well, and unfortunately the friendly install page and well-documented PEAR installer weren't a lot of help... or something. I sort of vaguely came to the conclusion that the problem (for me) was to do with proxies, but I couldn't figure out the solution at the time - shall have to have another look. More importantly, how's sunny Aber today? ;) Roland. On 06/08/07, Alan Hale wrote: > > Hi > > I just tried to install PEAR from the release 0.8 installer and it falls > over with the error: > > The requested URL /viewcvs.cgi/pear-core/PEAR.php was not found on this > server. > > This seems to relate to line 697 in pear_installer.php: > > $url = ' > http://cvs.php.net/viewcvs.cgi/pear-core/PEAR.php?view=co&pathrev=PEAR_1_4 > '; > > Checking on the CVS site this URL seems to be out of date. > > Regards > > > Alan Hale > Aberystwyth > Wales > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodrigomlg at GMAIL.COM Mon Aug 6 06:36:08 2007 From: rodrigomlg at GMAIL.COM (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Mon, 6 Aug 2007 14:36:08 +0100 Subject: mapserver and msCross In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FB4B6@s-sp22.pca.state.mn.us> Message-ID: Hi List. I have made an update to the how-to "Using PHP-Mapscript and msCross interface". I was having problems with the drawed area. The drawed area was not the exact one requested and I found the problem was the order of setSize and setExtent functions. I don't know if someone had used my how-to but I send this mail just in case there is someone that had used it. Rodrigo. On 6/14/07, Fawcett, David wrote: > > Thanks for doing this Rodrigo! > > David. > > -----Original Message----- > *From:* Rodrigo Mart?n L?PEZ GREGORIO [mailto:rodrigomlg at gmail.com] > *Sent:* Thursday, June 14, 2007 8:57 AM > *To:* Fawcett, David > *Cc:* MAPSERVER-USERS at lists.umn.edu > *Subject:* Re: [UMN_MAPSERVER-USERS] mapserver and msCross > > David, Ben > > I add the how-to last night to the How-To section of Mapserver site. It's > still "waiting for reviewer" but it's already there. If anyone want to take > a look and suggest any corrections (specially with the writing) I can edit > the how-to to improve it. > > http://mapserver.gis.umn.edu/docs/howto/PHPMapscriptAndMscross > > Thanks. Rodrigo. > > On 6/14/07, Fawcett, David wrote: > > > > Ben, > > > > You could definitely contribute a 'How To' or Tutorial to the MapServer > > site. > > > > see http://mapserver.gis.umn.edu/docs/howto > > or http://mapserver.gis.umn.edu/docs/tutorial > > > > David. > > > > -----Original Message----- > > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > *On Behalf Of *Ben Madin > > *Sent:* Wednesday, June 13, 2007 5:16 PM > > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > > *Subject:* Re: [UMN_MAPSERVER-USERS] mapserver and msCross > > > > G'day List, > > This is a sensational response to a question. How can we make sure that > > this effort in a response is : > > > > a) recognised, and > > > > b) captured within the website to make it easier for future reference > > rather than having to plough into a list search. > > > > cheers > > > > Ben > > > > > > On 12/06/2007, at 1:01 PM, MAPSERVER-USERS automatic digest system > > wrote: > > > > *From: *Rodrigo Mart?n L?PEZ GREGORIO < > > rodrigomartin at LOPEZGREGORIO.COM.AR> > > > > *Date: *12 June 2007 4:31:24 AM > > > > *Subject: **Re: mapserver and msCross* > > > > > > > > -- > > > > Ben Madin > > REMOTE INFORMATION > > > > t : +61 8 9192 5455 > > f : +61 8 9192 5535 > > m : 0448 887 220 > > Broome WA 6725 > > > > ben at remoteinformation.com.au > > > > > > > > > > > > Out here, it pays to know... > > > > > > > > > > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From verena.diewald at WHEREGROUP.COM Mon Aug 6 06:35:23 2007 From: verena.diewald at WHEREGROUP.COM (Verena Diewald (WhereGroup)) Date: Mon, 6 Aug 2007 15:35:23 +0200 Subject: .map file generation In-Reply-To: Message-ID: Roland Martin schrieb: > Hi, > > I had this problem last week as well, and unfortunately the friendly > install page and well-documented PEAR installer weren't a lot of > help... or something. > > I sort of vaguely came to the conclusion that the problem (for me) was > to do with proxies, but I couldn't figure out the solution at the time > - shall have to have another look. > > More importantly, how's sunny Aber today? ;) > > Roland. > > > On 06/08/07, *Alan Hale* > wrote: > > Hi > > I just tried to install PEAR from the release 0.8 installer and it > falls over with the error: > > The requested URL /viewcvs.cgi/pear-core/PEAR.php was not found on > this server. > > This seems to relate to line 697 in pear_installer.php: > > $url = ' > http://cvs.php.net/viewcvs.cgi/pear-core/PEAR.php?view=co&pathrev=PEAR_1_4 > '; > > Checking on the CVS site this URL seems to be out of date. > > Regards > > > Alan Hale > Aberystwyth > Wales > > Hi, try to replace line 697 in pear_installer.php with the following line: $url = 'http://cvs.php.net/viewcvs.cgi/pear-core/PEAR.php?view=log&pathrev=RELEASE_1_4_0'; Should work then. Greetings Verena P.S.: This discussion concerning MapStorer installation should change scene to MapStorer-users-list. Thanks. From jmckenna at DMSOLUTIONS.CA Mon Aug 6 07:33:10 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 6 Aug 2007 10:33:10 -0400 Subject: MapServer 5.0.0-beta2 released In-Reply-To: <46B39037.9070307@mapgears.com> Message-ID: Daniel Morissette wrote: > - For the Windows (MS4W) and Mac (Kyng Chaos) packages, new packages > have to be posted to the respective sites by their maintainers. I see > that the Mac build has been updated but the MS4W build has not been > updated yet. > MS4W has been updated now. -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From gregor at HOSTGIS.COM Mon Aug 6 07:47:43 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 6 Aug 2007 08:47:43 -0600 Subject: postGIS problem WFS In-Reply-To: <46B71A7B.4080603@zeelandnet.nl> Message-ID: Milo van der Linden wrote: > One more try, I am getting bounding box errors on postGIS tables when I > set up mapserver as WFS. > Is there anyone out there who can help me?? Not without a lot more information. What sort of errors are you getting, and what is your configuration? The more common problems I run into are really simple, but fatal: a) The projection is not set properly for the layer, so the bbox doesn't line up with the data (symptom: all requests are blank). b) The DUMP property isn't set on the layer (symptom: "no such layer"). -- Gregor Mosheh / Greg Allensworth 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 jchurchill at AL.UMCES.EDU Mon Aug 6 08:31:26 2007 From: jchurchill at AL.UMCES.EDU (John B. Churchill) Date: Mon, 6 Aug 2007 11:31:26 -0400 Subject: question about WFS Message-ID: Hi, One of the things I wanted to be able to do with the Mapserver WFS server that I've set up is allow people to add individual layers into their GIS software that they can then save (e.g. ArcMap "Data Export"). I've been unable to make that happen. My (test) WFS Server at http://maps.al.umces.edu/bin/al_wfs? allows me to add the one layer that I've made available but I can't "export" the shapefile from a remote location using my WFS server. It looks the same as it does when served as WMS. Can someone simply confirm (or deny) for me that this can or cannot be done with Mapserver ? I found a note on the Mapserver documentation which says that WFS-T is not supported by Mapserver. I suppose what I'm describing is something that requires a "transaction" and that I won't be able to do this with Mapserver. I don't have the in-"ter"-operability extension available for my ArcGIS installation either so I contemplated whether this was part of the problem. Adding as an Interoperability Connection makes my layer show up as NoGeometry. J.B. -- --------------------------------------------- John B. Churchill, M.S. http://alx.al.umces.edu/~jchurch/ GIS Specialist (301) 689-7109 University of Maryland Center for Environmental Science Appalachian Laboratory http://www.al.umces.edu/ Environmental Science Education http://alese.al.umces.edu/ 301 Braddock Road Frostburg, MD 21532 FAX - (301) 689-7200 From gregor at HOSTGIS.COM Mon Aug 6 08:41:05 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 6 Aug 2007 09:41:05 -0600 Subject: question about WFS In-Reply-To: <46B73ECE.3040207@al.umces.edu> Message-ID: John B. Churchill wrote: > I found a note on the Mapserver documentation which says that WFS-T is > not supported by Mapserver. I suppose what I'm describing is > something that requires a "transaction" and that I won't be able to > do this with Mapserver. Yep. Mapserver's WFS capability is read-only. > One of the things I wanted to be able to do with the Mapserver WFS > server that I've set up is allow people to add individual layers into > their GIS software that they can then save Yes, that's what the interoperability plugin was supposed to do, provide a bridge to PostGIS. It sounds like just what you want. Are you unable to install it, or is your ArcGIS too old, or what? -- Gregor Mosheh / Greg Allensworth 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 bthoen at GISNET.COM Mon Aug 6 09:55:34 2007 From: bthoen at GISNET.COM (Bill Thoen) Date: Mon, 6 Aug 2007 10:55:34 -0600 Subject: What's up with the MapServer website? In-Reply-To: <46B68F10.7040403@pobox.com> Message-ID: Is there an alternate site for the documentation and tutorials? Frank Warmerdam wrote: > While we wait for someone to physically inspect the server (likely > Monday), > you can grab downloads from: > > http://download.osgeo.org/mapserver From tnolte at ILPCS.COM Mon Aug 6 10:54:16 2007 From: tnolte at ILPCS.COM (Timothy J Nolte) Date: Mon, 6 Aug 2007 12:54:16 -0500 Subject: Problems Compiling for & Using Oracle Spatial Message-ID: I've been going crazy to figure out why I'm having so many problems with trying to setup MapServer to connect to Oracle and get some spatial data. No matter what I've tried I'm unable to get GDAL (=>1.4.2) to configure and compile with Oracle Spatial support. I decide to skip that and I seemingly compiled MapServer (4.10.2) with Oracle Spacial support but whenever MapServer tries to connect to the database it always returns invalid username/password. In my testing it appears to be picking up the right service from the tnsnames file and/or environment. I thought perhaps we didn't actually have the full client installed, even though we do have a full Oracle Enterprise database running on the same machine. Even installing the Runtime Oracle Client things don't seem to work. This is a Solaris Sparc 64 machine. MapServer works otherwise but I really need to be able to connect to Oracle. Does anyone have any thoughts on this? From tnolte at ILPCS.COM Mon Aug 6 10:58:05 2007 From: tnolte at ILPCS.COM (Timothy J Nolte) Date: Mon, 6 Aug 2007 12:58:05 -0500 Subject: Problems Compiling for & Using Oracle Spatial Message-ID: On Mon, 6 Aug 2007 12:54:16 -0500, Timothy J Nolte wrote: >I've been going crazy to figure out why I'm having so many problems with >trying to setup MapServer to connect to Oracle and get some spatial data. No >matter what I've tried I'm unable to get GDAL (=>1.4.2) to configure and >compile with Oracle Spatial support. I decide to skip that and I seemingly >compiled MapServer (4.10.2) with Oracle Spacial support but whenever >MapServer tries to connect to the database it always returns invalid >username/password. In my testing it appears to be picking up the right >service from the tnsnames file and/or environment. I thought perhaps we >didn't actually have the full client installed, even though we do have a >full Oracle Enterprise database running on the same machine. Even installing >the Runtime Oracle Client things don't seem to work. This is a Solaris Sparc >64 machine. MapServer works otherwise but I really need to be able to >connect to Oracle. Does anyone have any thoughts on this? I forgot to mention this is Oracle 10g (10.1.0.5)..thx. From warmerdam at POBOX.COM Mon Aug 6 12:53:15 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 6 Aug 2007 15:53:15 -0400 Subject: What's up with the MapServer website? In-Reply-To: <46B75286.8080904@gisnet.com> Message-ID: Bill Thoen wrote: > Is there an alternate site for the documentation and tutorials? Bill, No, not that I'm aware of but the main site is back up and functioning now. > Frank Warmerdam wrote: >> While we wait for someone to physically inspect the server (likely >> Monday), >> you can grab downloads from: >> >> http://download.osgeo.org/mapserver > -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From friendvn2000 at YAHOO.COM Mon Aug 6 19:40:16 2007 From: friendvn2000 at YAHOO.COM (Jedi Knight) Date: Mon, 6 Aug 2007 21:40:16 -0500 Subject: .map file generation Message-ID: Not anymore. Since release 0.8 we have a well-documented install web-page and a friendly PEAR installer that considerably eases installation. TRY AGAIN!!!!! BTW: mapfile import is under way and can hopefully be presented at FOSS4G. More volunteers welcome. Sebastian ----------------------- WHEN I REARCH TO THE MAPSTORE DOWNLOAD PAGE, I ONLY SEE THE 0.8 DOCUMENTION ?! AND THIS LINK ( I COLLECT FROM mapstorer-users Info Page ) IS BREAK-UP: https://svn.sourceforge.net/svnroot/mapstorer/documentation/pear_installation/ THANKS! From mlinden at ZEELANDNET.NL Tue Aug 7 01:22:43 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Tue, 7 Aug 2007 10:22:43 +0200 Subject: postGIS problem WFS In-Reply-To: <46B7348F.8060809@hostgis.com> Message-ID: Hello Gregor, Thank you for taking the time in responding my question. I know it lacks some information, but I did some postings that unfortunately no one responded to. Regarding your suggestions: a) a getSRID in postGIS returns the right projection: 4326, opening the postGIS layer in QuantumGIS and combining it with a WMS layer from the same server that is in EPSG:4326 shows that all the dots are in the right place b) the DUMP is set. GetCapabilities returns that the layer is there, but shows no data at all. http://82.176.214.209/cgi-bin/mapserv.exe?map=/ms4w/apps/mappingworlds/service/wfs.map&service=WFS&REQUEST=getCapabilities&typename=worldcities_x&version=1.0.0 Here is some more detailed information. My Original worldcities layer (MapInfo TAB) returns; worldcities World Cities EPSG:4326 I then uploaded this particular layer into postGIS with qGIS and now it states: worldcities_x World Cities PostGIS EPSG:4326 I have a postGIS table that contains cities. I am trying to get this running through mapserver WFS. Mapserver WFS doesn't generate errors, but returns no data at all. A postgres getsrid tells me the srid is 4326, which is also in my geometry_columns qGIS shows the postGIS table direct from the database without problems. http://82.176.214.209/cgi-bin/mapserv.exe?map=/ms4w/apps/mappingworlds/service/wfs.map&service=WFS&REQUEST=getfeature&typename=worldcities_x&version=1.0.0 Gregor Mosheh schreef: > Milo van der Linden wrote: >> One more try, I am getting bounding box errors on postGIS tables when >> I set up mapserver as WFS. >> Is there anyone out there who can help me?? > > Not without a lot more information. > What sort of errors are you getting, and what is your configuration? > > The more common problems I run into are really simple, but fatal: a) > The projection is not set properly for the layer, so the bbox doesn't > line up with the data (symptom: all requests are blank). b) The DUMP > property isn't set on the layer (symptom: "no such layer"). > -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From yjacolin at FREE.FR Tue Aug 7 04:37:56 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Tue, 7 Aug 2007 13:37:56 +0200 Subject: Transparency in WMS Message-ID: Hi list, I am using mapserver to provide a wms service. I would like to set a transparency value for a layer to 50. The final map provided don't use the right opacity for this layer. This layer is always 100% opaque. Is it possible to change the transparency for a layer using WMS? Regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From fsimon at UNIVALI.BR Tue Aug 7 04:50:39 2007 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Tue, 7 Aug 2007 08:50:39 -0300 Subject: Problems Compiling for & Using Oracle Spatial In-Reply-To: Message-ID: Hi Timothy, It's a strange problem, the same occur with GDAL and Mapserver native connection. I believe that it's a problem with Oracle libs, to compile Mapserver you need to have Oracle libs (from Client or instant library) in your system. If you have them from Oracle Client you need to set the Oracle environments too (ORACLE_HOME, ORACLE_BASE at least). You can use a client to connect in a server in another machine without problem. Best regards. -------------------------------------------------------------- Fernando Simon UMN Mapserver and Oracle Spatial developer -------------------------------------------------------------- Timothy J Nolte wrote: > On Mon, 6 Aug 2007 12:54:16 -0500, Timothy J Nolte wrote: > > >> I've been going crazy to figure out why I'm having so many problems with >> trying to setup MapServer to connect to Oracle and get some spatial data. No >> matter what I've tried I'm unable to get GDAL (=>1.4.2) to configure and >> compile with Oracle Spatial support. I decide to skip that and I seemingly >> compiled MapServer (4.10.2) with Oracle Spacial support but whenever >> MapServer tries to connect to the database it always returns invalid >> username/password. In my testing it appears to be picking up the right >> service from the tnsnames file and/or environment. I thought perhaps we >> didn't actually have the full client installed, even though we do have a >> full Oracle Enterprise database running on the same machine. Even installing >> the Runtime Oracle Client things don't seem to work. This is a Solaris Sparc >> 64 machine. MapServer works otherwise but I really need to be able to >> connect to Oracle. Does anyone have any thoughts on this? >> > > I forgot to mention this is Oracle 10g (10.1.0.5)..thx. > > From dmorissette at MAPGEARS.COM Tue Aug 7 05:37:59 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 7 Aug 2007 08:37:59 -0400 Subject: Transparency in WMS In-Reply-To: <200708071337.57262.yjacolin@free.fr> Message-ID: Jacolin Yves wrote: > Hi list, > > I am using mapserver to provide a wms service. I would like to set a > transparency value for a layer to 50. The final map provided don't use the > right opacity for this layer. This layer is always 100% opaque. > > Is it possible to change the transparency for a layer using WMS? > The transparency (or opacity on 5.0) setting applies only between layers within a given map draw, but the resulting map image is always opaque (unless you pass TRANSPARENT=TRUE in a GetMap request, in which case only the background color is transparent). If you have a mapfile with multiple CONNECTIONTYPE WMS layers then setting transparency/opacity between those layers should work. If you are using MapServer as a WMS service and expecting the transparency/opacity of a given layer to result in a 50% opaque GetMap response then that won't work. Daniel -- Daniel Morissette http://www.mapgears.com/ From yjacolin at FREE.FR Tue Aug 7 05:41:21 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Tue, 7 Aug 2007 14:41:21 +0200 Subject: Transparency in WMS In-Reply-To: <46B867A7.50304@mapgears.com> Message-ID: Le Tuesday 07 August 2007 14:37:59 Daniel Morissette, vous avez ?crit?: > Jacolin Yves wrote: > > Hi list, > > > > I am using mapserver to provide a wms service. I would like to set a > > transparency value for a layer to 50. The final map provided don't use > > the right opacity for this layer. This layer is always 100% opaque. > > > > Is it possible to change the transparency for a layer using WMS? >[..] > > If you are using MapServer as a WMS service and expecting the > transparency/opacity of a given layer to result in a 50% opaque GetMap > response then that won't work. Daniel, This is what I tried to do. Thanks for you answer. Is it a limitation from mapserver or from the standard itself? Regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From dmorissette at MAPGEARS.COM Tue Aug 7 05:57:34 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 7 Aug 2007 08:57:34 -0400 Subject: Transparency in WMS In-Reply-To: <200708071441.21897.yjacolin@free.fr> Message-ID: Jacolin Yves wrote: > Le Tuesday 07 August 2007 14:37:59 Daniel Morissette, vous avez ?crit : >> >> If you are using MapServer as a WMS service and expecting the >> transparency/opacity of a given layer to result in a 50% opaque GetMap >> response then that won't work. ... > > Is it a limitation from mapserver or from the standard itself? > It's a bit of both. The WMS spec is not clear on whether it is acceptable to return semi-transparent images. Section 7.2.3.9 of the WMS 1.1.1 spec talks about the TRANSPARENT=TRUE/FALSE GetMap parameter but that is only to control whether the background of the image is fully transparent or not and does not address the possibility of producing semi-transparent images. Everywhere else it suggests that pixels representing features are fully opaque. And it may also be a MapServer limitation in the sense that we may need to make some changes to allow MapServer to generate semi-transparent images... but maybe not and that works already, I just haven't checked. Daniel -- Daniel Morissette http://www.mapgears.com/ From yjacolin at FREE.FR Tue Aug 7 06:05:33 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Tue, 7 Aug 2007 15:05:33 +0200 Subject: Transparency in WMS In-Reply-To: <46B86C3E.8020108@mapgears.com> Message-ID: Le Tuesday 07 August 2007 14:57:34 Daniel Morissette, vous avez ?crit?: > Jacolin Yves wrote: > > Le Tuesday 07 August 2007 14:37:59 Daniel Morissette, vous avez ?crit : > >> If you are using MapServer as a WMS service and expecting the > >> transparency/opacity of a given layer to result in a 50% opaque GetMap > >> response then that won't work. > > ... > > > Is it a limitation from mapserver or from the standard itself? > > It's a bit of both. > > The WMS spec is not clear on whether it is acceptable to return > semi-transparent images. Section 7.2.3.9 of the WMS 1.1.1 spec talks > about the TRANSPARENT=TRUE/FALSE GetMap parameter but that is only to > control whether the background of the image is fully transparent or not > and does not address the possibility of producing semi-transparent > images. Everywhere else it suggests that pixels representing features > are fully opaque. > > And it may also be a MapServer limitation in the sense that we may need > to make some changes to allow MapServer to generate semi-transparent > images... but maybe not and that works already, I just haven't checked. > > Daniel Alright, thanks Daniel. Y. -- Yves Jacolin --- http://softlibre.gloobe.org From rodrigomlg at GMAIL.COM Tue Aug 7 06:17:47 2007 From: rodrigomlg at GMAIL.COM (=?ISO-8859-1?Q?Rodrigo_Mart=EDn_L=D3PEZ_GREGORIO?=) Date: Tue, 7 Aug 2007 14:17:47 +0100 Subject: same effect as CGI mode=itemquerymap but with PHP/mapscript In-Reply-To: <10cf58b30708030950g356deca1n386d9e8db2064e1c@mail.gmail.com> Message-ID: Finaly I figured out how to get it working; in my php mapscript file I added the next code: if ($_GET['mode'] == 'itemquerymap') { $qstring = explode("=",$_GET['qstring']); $map->getLayerByName($_GET['qlayer'])->queryByAttributes($qstring[0],str_replace("\\","",$_GET['qstring']),MS_SINGLE); // I remove the \ characters of the qstring } And at the end of my file: if ($_GET['mode'] == 'itemquerymap') { $image=$map->drawQuery(); } else { $image=$map->draw(); } So if the mode is itemquerymap I draw the query; otherwise I make a normal draw. Rodrigo. On 8/3/07, Rodrigo Mart?n L?PEZ GREGORIO wrote: > > Hi List. > > Normally I use mapserver as CGI, but now I need to move to PHP/mapscript. > In my actual applet I use the CGI mode=itemquerymap to show the selected > polygon on a layer with different color. So I pass the next values on the > CGI call: > > mode=itemquerymap&qlayer=mylayer&qstring=someattribute='avalue' > > This works greats through CGI. Now I want to get the same effect using PHP > Mapscript but I'm a little confused how to get it working. I know how to get > the string parameters in php, even split the qstring parameter using explode > but what I don't know is what must I do to get PHP Mapscript use the > QUERYMAP format (defined in my base mapfile) to show the selected polygon. > > Can anyone give me a hint? > > Thanks. > > Rodrigo. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aguiera at GMAIL.COM Tue Aug 7 06:13:39 2007 From: aguiera at GMAIL.COM (Anderson Guiera) Date: Tue, 7 Aug 2007 10:13:39 -0300 Subject: Java Mapscript error. Message-ID: Hi, I'm trying to build an application with Java mapScript and tomcat 6. I've got ms4w (2.2.4) and installed. I've seted up the environment variables PATH \ms4w\Apache\cgi-bin;\ms4w\tools\gdal-ogr;\ms4w\tools\mapserv;\ms4w\tools\s hapelib;\ms4w\proj\bin;\ms4w\tools\shp2tile;\ms4w\tools\shpdiff;\ms4w\tools\avce 00;\ms4w\Apache\cgi-bin\mapscript\java;%PATH% GDAL_DATA \ms4w\gdaldata GDAL_DRIVER_PATH \ms4w\gdalplugins PROJ_LIB \ms4w\proj\nad I've made an jsp page called mapScript.jsp like this <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> Insert title here <% try { System.loadLibrary("mapscript"); System.out.println("It's OK!"); } catch(Throwable t) { t.printStackTrace(); System.out.println("It's NOT OK!"); } %> When i execute this page, the folowing error is showed: java.lang.UnsatisfiedLinkError: C:\ms4w\Apache\cgi-bin\mapscript\java\mapscript.dll: The operating system cannot run %1 at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at org.apache.jsp.mapScript_jsp._jspService(mapScript_jsp.java:64) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service( JspServletWrapper.java:384) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java :320) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:228) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( Http11Protocol.java:634) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java :445) at java.lang.Thread.run(Unknown Source) I tried to folow the adivices posted in thread Mapscript on java/J2EE/Tomcat error by Sujnana Rai but i have not success. Any other idea? Thanks for your heIp. Anderson Guiera -------------- next part -------------- An HTML attachment was scrubbed... URL: From nbest at LANWORTH.COM Tue Aug 7 06:29:20 2007 From: nbest at LANWORTH.COM (Neil Best) Date: Tue, 7 Aug 2007 08:29:20 -0500 Subject: floating point grass rasters and mapserver Message-ID: On Tue, 11 Oct 2005 09:18:06 -0500, William Kyngesburye wrote: >I thought I heard that you could use a grass image group in >mapserver. Have 3 bands in the group with 0-255 each for RGB. Never >got around to trying it. Since MapServer doesn't doesn't use the >GRASS color info, I guess it would only work for image-type data >directly, you would have to manually transform something like >elevation data into 3 bands. > > Hello, all. I am trying to understand if/how MapServer can take advantage of GDAL's abillity to read GRASS groups per http://www.gdal.org/frmt_grass.html Is it possible to display RGB composites as William surmises above? Do the GRASS layers have to be 0-255 integers strictly or will a float work as long as it has 256 levels? How do the PROCESSING directives play into this? It's not clear to me which, if any, of the directives are relevant to GRASS layers -- maybe there is another page somewhere with more details beyond the "Raster Data Access" page. BTW, I believe MS _does_ now use the GRASS color tables. How much interest is out there for these features? For us, it would be a great boon to be able to point directly at native GRASS layers and not have to export them out and double our archive maintenance overhead. Neil From warmerdam at POBOX.COM Tue Aug 7 06:44:22 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 7 Aug 2007 09:44:22 -0400 Subject: floating point grass rasters and mapserver In-Reply-To: Message-ID: Neil Best wrote: > Hello, all. I am trying to understand if/how MapServer can take advantage > of GDAL's abillity to read GRASS groups per > http://www.gdal.org/frmt_grass.html Is it possible to display RGB > composites as William surmises above? Do the GRASS layers have to be 0-255 > integers strictly or will a float work as long as it has 256 levels? How do > the PROCESSING directives play into this? It's not clear to me which, if > any, of the directives are relevant to GRASS layers -- maybe there is > another page somewhere with more details beyond the "Raster Data Access" > page. BTW, I believe MS _does_ now use the GRASS color tables. Neil, MapServer can display from floating point raster bands and you can rescale on the fly using the various processing scaling options. I'm a bit vague on the state of the gdal-grass driver but experimentation with gdalinfo reporting should verify the current state of things. 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 tnolte at ILPCS.COM Tue Aug 7 09:20:40 2007 From: tnolte at ILPCS.COM (Timothy J Nolte) Date: Tue, 7 Aug 2007 11:20:40 -0500 Subject: Problems Compiling for & Using Oracle Spatial Message-ID: I do in fact have all of the Oracle libraries installed. We actually have a full Oracle Enterprise database install as well as the client. I finally was able to get MapServer compiled. I did have to hand edit the configure file and the Mapscript Makefile to point to the right libs path. In the end I realized that I had mixed the OGR Oracle Spatial syntax and the MapServer native syntax. In fact there was a problem with the username/password as I was trying to use MapServer native with "OCI:username/password" I tried it without the OCI and it worked perfectly. I'm still having problems getting GDAL to find the Oracle libraries. I gave up as MapServer native is working. On Tue, 7 Aug 2007 08:50:39 -0300, Fernando Simon wrote: >Hi Timothy, > It's a strange problem, the same occur with GDAL and Mapserver >native connection. > I believe that it's a problem with Oracle libs, to compile Mapserver >you need to have Oracle libs (from Client or instant library) in your >system. If you have them from Oracle Client you need to set the Oracle >environments too (ORACLE_HOME, ORACLE_BASE at least). > You can use a client to connect in a server in another machine >without problem. > Best regards. > >-------------------------------------------------------------- >Fernando Simon >UMN Mapserver and Oracle Spatial developer >-------------------------------------------------------------- From tnolte at ILPCS.COM Tue Aug 7 09:29:46 2007 From: tnolte at ILPCS.COM (Timothy J Nolte) Date: Tue, 7 Aug 2007 11:29:46 -0500 Subject: MapServer Performance Tips Message-ID: Now that I finally have MapServer talking to our Oracle database my next big issue is performance. Does anyone have any tips on MapServer performance? We're running MapServer on: Sun e450 4 x 400MHz Sparc II Processors 4GB ram I have around 42GB of map data I'm trying to serve up. I'm not seeing the greatest performance. Are there any key things I need to remember with the setup of my Shapefile data? Are there certain things I should do with my .map file to help performance? Anyone using the DM Solutions US Streets data, any issues with performance there? What kind of hardware are others running on? Thanks. From gregor at HOSTGIS.COM Tue Aug 7 09:39:28 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 7 Aug 2007 10:39:28 -0600 Subject: MapServer Performance Tips In-Reply-To: Message-ID: Timothy J Nolte wrote: > Now that I finally have MapServer talking to our Oracle database my next big > issue is performance. Does anyone have any tips on MapServer performance? Actually, a few of us wrote some FAQs and HowTos about optimizing performance. None of it pertains to Oracle in particular, but you may find some of the tips helpful nonetheless. -- Gregor Mosheh / Greg Allensworth 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 Tue Aug 7 09:43:02 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 7 Aug 2007 10:43:02 -0600 Subject: MapServer Performance Tips In-Reply-To: <46B8A040.20905@hostgis.com> Message-ID: Gregor Mosheh wrote: > Actually, a few of us wrote some FAQs and HowTos about optimizing > performance. None of it pertains to Oracle in particular, but you may > find some of the tips helpful nonetheless. heh And then I completely forgot to mention the URL. http://mapserver.gis.umn.edu/docs/faq/performance Sorry, wearing too many hats this morning. -- Gregor Mosheh / Greg Allensworth 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 tnolte at ILPCS.COM Tue Aug 7 10:16:02 2007 From: tnolte at ILPCS.COM (Timothy J Nolte) Date: Tue, 7 Aug 2007 12:16:02 -0500 Subject: MapServer Performance Tips Message-ID: Greg, Yeah, I actually have looked over those documents and tried to make sure that I'm doing as much of that as possible. I was just wondering if people had anything more. One specific issue I'm concerned with is that I have about 75+ shapefiles that I've brought together as one layer using a tile index. Also, I'm needing to break up the combined layer into 5 layers using expressions. The size of each shapefile is between a few MB and up around 100MB. I'm not sure if having those as shapefiles is best and what else I should do to improve those On Tue, 7 Aug 2007 10:43:02 -0600, Gregor Mosheh wrote: >Gregor Mosheh wrote: >> Actually, a few of us wrote some FAQs and HowTos about optimizing >> performance. None of it pertains to Oracle in particular, but you may >> find some of the tips helpful nonetheless. > >heh And then I completely forgot to mention the URL. > http://mapserver.gis.umn.edu/docs/faq/performance >Sorry, wearing too many hats this morning. > >-- >Gregor Mosheh / Greg Allensworth >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 Tue Aug 7 10:33:10 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 7 Aug 2007 11:33:10 -0600 Subject: MapServer Performance Tips In-Reply-To: Message-ID: > I'm not sure if having those as shapefiles is best and what else I > should do to improve those Shapefile is a pretty fast format. Hard to beat. > about 75+ shapefiles that I've brought together as one layer using a tile > index. Also, I'm needing to break up the combined layer into 5 layers using > expressions. The size of each shapefile is between a few MB and up around > 100MB. Doesn't sound like a major problem. We deal with stuff on that order all the time and get good performance. Of course, 8 CPUs and a boatload of RAM help. Did you shptree all of the shapefiles, including the tileindex? That can help a lot. There's also "sortshp" which physically sorts the file so that seeks aren't as random. (I should add that to the page.) Beyond that, it's hard to give any specific advice without any specific details. Are you experiencing a problem with speed, or just looking to make fast even faster? Is a specific layer being problematic? Could you perhaps make the expressions more efficient, maybe merge some layers together using expressions? (you had said that you broke it into layers by expression, thought I'd ask) -- Gregor Mosheh / Greg Allensworth 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 woodbri at SWOODBRIDGE.COM Tue Aug 7 11:08:06 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 7 Aug 2007 14:08:06 -0400 Subject: MapServer Performance Tips In-Reply-To: <46B8ACD6.5060004@hostgis.com> Message-ID: Gregor Mosheh wrote: >> I'm not sure if having those as shapefiles is best and what else I >> should do to improve those > > Shapefile is a pretty fast format. Hard to beat. > > >> about 75+ shapefiles that I've brought together as one layer using a tile >> index. Also, I'm needing to break up the combined layer into 5 layers >> using >> expressions. The size of each shapefile is between a few MB and up around >> 100MB. > > Doesn't sound like a major problem. We deal with stuff on that order all > the time and get good performance. Of course, 8 CPUs and a boatload of > RAM help. > > Did you shptree all of the shapefiles, including the tileindex? That can > help a lot. There's also "sortshp" which physically sorts the file so > that seeks aren't as random. (I should add that to the page.) > > Beyond that, it's hard to give any specific advice without any specific > details. Are you experiencing a problem with speed, or just looking to > make fast even faster? Is a specific layer being problematic? Could you > perhaps make the expressions more efficient, maybe merge some layers > together using expressions? (you had said that you broke it into layers > by expression, thought I'd ask) > If the data is really in 5 separate layers, splitting the data into those 5 layers would greatly help. You can also FILTER the data for the LAYER which will help some but not as much as splitting the data. You can load and dump the shapefiles into postGIS or Oracle and filter the data when you dump it to be only that what you need for the specific layers. Its a little work up front byt will help with performance. Or you can write a mapscript routine to read, filter and write new shape files for the layers you need. -Steve W From tnolte at ILPCS.COM Tue Aug 7 11:09:07 2007 From: tnolte at ILPCS.COM (Timothy J Nolte) Date: Tue, 7 Aug 2007 13:09:07 -0500 Subject: MapServer Performance Tips Message-ID: On Tue, 7 Aug 2007 11:33:10 -0600, Gregor Mosheh wrote: >Did you shptree all of the shapefiles, including the tileindex? That can >help a lot. There's also "sortshp" which physically sorts the file so >that seeks aren't as random. (I should add that to the page.) I have run shptree and all the shapefiles and the tileindex. I saw sortshp but I might need to visit that and see about how I can perhaps sort the shapefiles. Would that be usable on the tileindex or just the individual shapes. >Beyond that, it's hard to give any specific advice without any specific >details. Are you experiencing a problem with speed, or just looking to >make fast even faster? Is a specific layer being problematic? Could you >perhaps make the expressions more efficient, maybe merge some layers >together using expressions? (you had said that you broke it into layers >by expression, thought I'd ask) I don't think the current performance is even close to fast. I'm trying to make what seems to be slow at least acceptable. The biggest performance hit seems to come from the tileindex'd shapefile layer I was talking about. Here's the layer setup that I have. # ============================================== # Layer: Propagations # ============================================== LAYER GROUP "Propagations" NAME "-98db to -104db" STATUS DEFAULT TILEINDEX "propagations/tileindex" TILEITEM "location" TYPE POLYGON # -------------------------------------------------- # Class: -98db to -104db # -------------------------------------------------- CLASS NAME "-98db to -104db" EXPRESSION ([LOWER] >= -104 AND [UPPER] <= -98) MINSCALE 0 MAXSCALE 1200000 STYLE COLOR 255 128 0 OUTLINECOLOR 255 128 0 END END END LAYER GROUP "Propagations" NAME "-94db to -98db" STATUS DEFAULT TILEINDEX "propagations/tileindex" TILEITEM "location" TYPE POLYGON # -------------------------------------------------- # Class: -94db to -98db # -------------------------------------------------- CLASS NAME "-94db to -98db" EXPRESSION ([LOWER] >= -98 AND [UPPER] <= -94) MINSCALE 0 MAXSCALE 1200000 STYLE COLOR 0 0 255 OUTLINECOLOR 0 0 255 END END END LAYER GROUP "Propagations" NAME "-89db to -94db" STATUS DEFAULT TILEINDEX "propagations/tileindex" TILEITEM "location" TYPE POLYGON # -------------------------------------------------- # Class: -89db to -94db # -------------------------------------------------- CLASS NAME "-89db to -94db" EXPRESSION ([LOWER] >= -94 AND [UPPER] <= -89) MINSCALE 0 MAXSCALE 1200000 STYLE COLOR 255 0 0 OUTLINECOLOR 255 0 0 END END END LAYER GROUP "Propagations" NAME "-84db to -89db" STATUS DEFAULT TILEINDEX "propagations/tileindex" TILEITEM "location" TYPE POLYGON # -------------------------------------------------- # Class: -84db to -89db # -------------------------------------------------- CLASS NAME "-84db to -89db" EXPRESSION ([LOWER] >= -89 AND [UPPER] <= -84) MINSCALE 0 MAXSCALE 1200000 STYLE COLOR 255 255 0 OUTLINECOLOR 255 255 0 END END END LAYER GROUP "Propagations" NAME "-84db to 0db" STATUS DEFAULT TILEINDEX "propagations/tileindex" TILEITEM "location" TYPE POLYGON # -------------------------------------------------- # Class: -84db to 0db # -------------------------------------------------- CLASS NAME "-84db to 0db" EXPRESSION ([LOWER] >= -84 AND [UPPER] <= 0) MINSCALE 0 MAXSCALE 1200000 STYLE COLOR 128 255 0 OUTLINECOLOR 128 255 0 END END END Let me know if anything looks bad. Perhaps you can give me a suggestion on how I might need to sortshp to give me the best performance with this. From David.Fawcett at STATE.MN.US Tue Aug 7 11:08:00 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 7 Aug 2007 13:08:00 -0500 Subject: MapServer Performance Tips In-Reply-To: A<46B8ACD6.5060004@hostgis.com> Message-ID: Minimizing processing at runtime can only help. If you have the disk space and your data is static, you could pre-create different layers based on your expression criteria, so that your data doesn't have to be evaluated in five different layers. I don't know if it is still true, but regular expressions used to be faster than logical expressions, so you could add another column, pre-classify your data and store a class value in that column, something like a single-digit integer from 1-5. That might evaluate faster than a complex logical expression. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gregor Mosheh Sent: Tuesday, August 07, 2007 12:33 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer Performance Tips > I'm not sure if having those as shapefiles is best and what else I > should do to improve those Shapefile is a pretty fast format. Hard to beat. > about 75+ shapefiles that I've brought together as one layer using a > tile index. Also, I'm needing to break up the combined layer into 5 > layers using expressions. The size of each shapefile is between a few > MB and up around 100MB. Doesn't sound like a major problem. We deal with stuff on that order all the time and get good performance. Of course, 8 CPUs and a boatload of RAM help. Did you shptree all of the shapefiles, including the tileindex? That can help a lot. There's also "sortshp" which physically sorts the file so that seeks aren't as random. (I should add that to the page.) Beyond that, it's hard to give any specific advice without any specific details. Are you experiencing a problem with speed, or just looking to make fast even faster? Is a specific layer being problematic? Could you perhaps make the expressions more efficient, maybe merge some layers together using expressions? (you had said that you broke it into layers by expression, thought I'd ask) -- Gregor Mosheh / Greg Allensworth 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 woodbri at SWOODBRIDGE.COM Tue Aug 7 11:38:51 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 7 Aug 2007 14:38:51 -0400 Subject: MapServer Performance Tips In-Reply-To: Message-ID: Timothy, Splitting the data into five layers would definitely help, but first try remove the CLASS EXPRESSION (...) and replace it with a LAYER FILTER (...) That should be a little faster. Also if you are always displaying all the data, then there is not much you can do to make it faster except to split the data into separate layers. Tileindexes improve performance when you zoom in. also organizing you data spatially will help a lot when you are zoomed in. you can use shp2tile to split the data up into small spatially organized areas. But again nothing will help when you are zoomed out other them faster CPUs and more RAM. Put all you files into a RAM disk. -Steve Timothy J Nolte wrote: > On Tue, 7 Aug 2007 11:33:10 -0600, Gregor Mosheh wrote: > >> Did you shptree all of the shapefiles, including the tileindex? That can >> help a lot. There's also "sortshp" which physically sorts the file so >> that seeks aren't as random. (I should add that to the page.) > > I have run shptree and all the shapefiles and the tileindex. I saw sortshp > but I might need to visit that and see about how I can perhaps sort the > shapefiles. Would that be usable on the tileindex or just the individual shapes. > >> Beyond that, it's hard to give any specific advice without any specific >> details. Are you experiencing a problem with speed, or just looking to >> make fast even faster? Is a specific layer being problematic? Could you >> perhaps make the expressions more efficient, maybe merge some layers >> together using expressions? (you had said that you broke it into layers >> by expression, thought I'd ask) > > I don't think the current performance is even close to fast. I'm trying to > make what seems to be slow at least acceptable. The biggest performance hit > seems to come from the tileindex'd shapefile layer I was talking about. > Here's the layer setup that I have. > > # ============================================== > # Layer: Propagations > # ============================================== > LAYER > GROUP "Propagations" > NAME "-98db to -104db" > STATUS DEFAULT > TILEINDEX "propagations/tileindex" > TILEITEM "location" > TYPE POLYGON > # -------------------------------------------------- > # Class: -98db to -104db > # -------------------------------------------------- > CLASS > NAME "-98db to -104db" > EXPRESSION ([LOWER] >= -104 AND [UPPER] <= -98) > MINSCALE 0 > MAXSCALE 1200000 > STYLE > COLOR 255 128 0 > OUTLINECOLOR 255 128 0 > END > END > END > > LAYER > GROUP "Propagations" > NAME "-94db to -98db" > STATUS DEFAULT > TILEINDEX "propagations/tileindex" > TILEITEM "location" > TYPE POLYGON > # -------------------------------------------------- > # Class: -94db to -98db > # -------------------------------------------------- > CLASS > NAME "-94db to -98db" > EXPRESSION ([LOWER] >= -98 AND [UPPER] <= -94) > MINSCALE 0 > MAXSCALE 1200000 > STYLE > COLOR 0 0 255 > OUTLINECOLOR 0 0 255 > END > END > END > > LAYER > GROUP "Propagations" > NAME "-89db to -94db" > STATUS DEFAULT > TILEINDEX "propagations/tileindex" > TILEITEM "location" > TYPE POLYGON > # -------------------------------------------------- > # Class: -89db to -94db > # -------------------------------------------------- > CLASS > NAME "-89db to -94db" > EXPRESSION ([LOWER] >= -94 AND [UPPER] <= -89) > MINSCALE 0 > MAXSCALE 1200000 > STYLE > COLOR 255 0 0 > OUTLINECOLOR 255 0 0 > END > END > END > > LAYER > GROUP "Propagations" > NAME "-84db to -89db" > STATUS DEFAULT > TILEINDEX "propagations/tileindex" > TILEITEM "location" > TYPE POLYGON > # -------------------------------------------------- > # Class: -84db to -89db > # -------------------------------------------------- > CLASS > NAME "-84db to -89db" > EXPRESSION ([LOWER] >= -89 AND [UPPER] <= -84) > MINSCALE 0 > MAXSCALE 1200000 > STYLE > COLOR 255 255 0 > OUTLINECOLOR 255 255 0 > END > END > END > > LAYER > GROUP "Propagations" > NAME "-84db to 0db" > STATUS DEFAULT > TILEINDEX "propagations/tileindex" > TILEITEM "location" > TYPE POLYGON > # -------------------------------------------------- > # Class: -84db to 0db > # -------------------------------------------------- > CLASS > NAME "-84db to 0db" > EXPRESSION ([LOWER] >= -84 AND [UPPER] <= 0) > MINSCALE 0 > MAXSCALE 1200000 > STYLE > COLOR 128 255 0 > OUTLINECOLOR 128 255 0 > END > END > END > > > Let me know if anything looks bad. Perhaps you can give me a suggestion on > how I might need to sortshp to give me the best performance with this. From hal at MOBILEGEOGRAPHICS.COM Tue Aug 7 11:45:44 2007 From: hal at MOBILEGEOGRAPHICS.COM (Hal Mueller) Date: Tue, 7 Aug 2007 11:45:44 -0700 Subject: MapServer Performance Tips In-Reply-To: Message-ID: Try the idiom below for the class breakouts. This will give you one layer, with multiple classes, instead of 5 layers from the same data. Order the CLASS definitions so that the most common class is listed first. I believe (but don't know for sure) that your present definition causes all of the geometry to be read 5 times (once for each layer). I think you can pull the CLASS MINSCALE/MAXSCALE up to the LAYER level. Not sure what improvement that would have though. One other thing I would suggest is preprocessing your EXPRESSION line. Instead of computing it on the fly based on LOWER and UPPER, compute a new column when the DBF is generated, which is 1 for -98 to -104, 2 for -94 to -98, etc. If this is not enough, consider creating two different levels of polygon data, one coarse (for small scales) and one fine (for large scales). This step made a big difference for me. Hal # ============================================== # Layer: Propagations # ============================================== LAYER GROUP "Propagations" NAME "all propagations" STATUS DEFAULT TILEINDEX "propagations/tileindex" TILEITEM "location" TYPE POLYGON # -------------------------------------------------- # Class: -98db to -104db # -------------------------------------------------- CLASS NAME "-98db to -104db" EXPRESSION ([LOWER] >= -104 AND [UPPER] <= -98) MINSCALE 0 MAXSCALE 1200000 STYLE COLOR 255 128 0 OUTLINECOLOR 255 128 0 END END # -------------------------------------------------- # Class: -94db to -98db # -------------------------------------------------- CLASS NAME "-94db to -98db" EXPRESSION ([LOWER] >= -98 AND [UPPER] <= -94) MINSCALE 0 MAXSCALE 1200000 STYLE COLOR 0 0 255 OUTLINECOLOR 0 0 255 END END [continue the class definitions...] END -- Hal Mueller hal at mobilegeographics.com Mobile Geographics LLC http://www.mobilegeographics.com/ From dls at INFORMGIS.COM Tue Aug 7 12:02:10 2007 From: dls at INFORMGIS.COM (David Stajan) Date: Tue, 7 Aug 2007 14:02:10 -0500 Subject: Debug Source Code Message-ID: Hi, I was hoping somebody might be able to explain to me how to walk through the mapserver source code! I have been compiling mapserver on a windows machine with visual studio command prompt, and everything has been going well. I have ran into a couple of kinks and I think if I could walk through the code with break points I could come up with some solutions. But how do you do this with Mapserver? I've compiled it with the MSVCRT debug mode but it doesn't create pdb file for mapserver executable. It does create a vc70.pdb file but I'm not sure if that can be used, or how it's used. Any help or tips on how to debug the source code would be greatly appreciated From David.Fawcett at STATE.MN.US Tue Aug 7 12:16:20 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 7 Aug 2007 14:16:20 -0500 Subject: MapServer Performance Tips In-Reply-To: A<46B8BC3B.4060507@swoodbridge.com> Message-ID: Like Steve says, if the performance is bad when fully zoomed out, tileindexes won't help at all. If at full zoom-out, the smaller features are not recognizable or relevant (e.g. drawing 6 million points on a 100x100 image), think about using scale dependency to show a more generalized data layer(s) when zoomed out, and your original data when zoomed in beyond a certain scale. Of course, pre-generating these data layers (as opposed to filtering/expression your original data) will lead to the performance gain. You would use MINSCALE and MAXSCALE in the LAYER. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Woodbridge Sent: Tuesday, August 07, 2007 1:39 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer Performance Tips Timothy, Splitting the data into five layers would definitely help, but first try remove the CLASS EXPRESSION (...) and replace it with a LAYER FILTER (...) That should be a little faster. Also if you are always displaying all the data, then there is not much you can do to make it faster except to split the data into separate layers. Tileindexes improve performance when you zoom in. also organizing you data spatially will help a lot when you are zoomed in. you can use shp2tile to split the data up into small spatially organized areas. But again nothing will help when you are zoomed out other them faster CPUs and more RAM. Put all you files into a RAM disk. -Steve Timothy J Nolte wrote: > On Tue, 7 Aug 2007 11:33:10 -0600, Gregor Mosheh > wrote: > >> Did you shptree all of the shapefiles, including the tileindex? That >> can help a lot. There's also "sortshp" which physically sorts the >> file so that seeks aren't as random. (I should add that to the page.) > > I have run shptree and all the shapefiles and the tileindex. I saw > sortshp but I might need to visit that and see about how I can perhaps > sort the shapefiles. Would that be usable on the tileindex or just the > individual shapes. > >> Beyond that, it's hard to give any specific advice without any >> specific details. Are you experiencing a problem with speed, or just >> looking to make fast even faster? Is a specific layer being >> problematic? Could you perhaps make the expressions more efficient, >> maybe merge some layers together using expressions? (you had said >> that you broke it into layers by expression, thought I'd ask) > > I don't think the current performance is even close to fast. I'm > trying to make what seems to be slow at least acceptable. The biggest > performance hit seems to come from the tileindex'd shapefile layer I > was talking about. Here's the layer setup that I have. > > # ============================================== > # Layer: Propagations > # ============================================== > LAYER > GROUP "Propagations" > NAME "-98db to -104db" > STATUS DEFAULT > TILEINDEX "propagations/tileindex" > TILEITEM "location" > TYPE POLYGON > # -------------------------------------------------- > # Class: -98db to -104db > # -------------------------------------------------- > CLASS > NAME "-98db to -104db" > EXPRESSION ([LOWER] >= -104 AND [UPPER] <= -98) > MINSCALE 0 > MAXSCALE 1200000 > STYLE > COLOR 255 128 0 > OUTLINECOLOR 255 128 0 > END > END > END > > LAYER > GROUP "Propagations" > NAME "-94db to -98db" > STATUS DEFAULT > TILEINDEX "propagations/tileindex" > TILEITEM "location" > TYPE POLYGON > # -------------------------------------------------- > # Class: -94db to -98db > # -------------------------------------------------- > CLASS > NAME "-94db to -98db" > EXPRESSION ([LOWER] >= -98 AND [UPPER] <= -94) > MINSCALE 0 > MAXSCALE 1200000 > STYLE > COLOR 0 0 255 > OUTLINECOLOR 0 0 255 > END > END > END > > LAYER > GROUP "Propagations" > NAME "-89db to -94db" > STATUS DEFAULT > TILEINDEX "propagations/tileindex" > TILEITEM "location" > TYPE POLYGON > # -------------------------------------------------- > # Class: -89db to -94db > # -------------------------------------------------- > CLASS > NAME "-89db to -94db" > EXPRESSION ([LOWER] >= -94 AND [UPPER] <= -89) > MINSCALE 0 > MAXSCALE 1200000 > STYLE > COLOR 255 0 0 > OUTLINECOLOR 255 0 0 > END > END > END > > LAYER > GROUP "Propagations" > NAME "-84db to -89db" > STATUS DEFAULT > TILEINDEX "propagations/tileindex" > TILEITEM "location" > TYPE POLYGON > # -------------------------------------------------- > # Class: -84db to -89db > # -------------------------------------------------- > CLASS > NAME "-84db to -89db" > EXPRESSION ([LOWER] >= -89 AND [UPPER] <= -84) > MINSCALE 0 > MAXSCALE 1200000 > STYLE > COLOR 255 255 0 > OUTLINECOLOR 255 255 0 > END > END > END > > LAYER > GROUP "Propagations" > NAME "-84db to 0db" > STATUS DEFAULT > TILEINDEX "propagations/tileindex" > TILEITEM "location" > TYPE POLYGON > # -------------------------------------------------- > # Class: -84db to 0db > # -------------------------------------------------- > CLASS > NAME "-84db to 0db" > EXPRESSION ([LOWER] >= -84 AND [UPPER] <= 0) > MINSCALE 0 > MAXSCALE 1200000 > STYLE > COLOR 128 255 0 > OUTLINECOLOR 128 255 0 > END > END > END > > > Let me know if anything looks bad. Perhaps you can give me a > suggestion on how I might need to sortshp to give me the best > performance with this. From tnolte at ILPCS.COM Tue Aug 7 12:38:49 2007 From: tnolte at ILPCS.COM (Timothy J Nolte) Date: Tue, 7 Aug 2007 14:38:49 -0500 Subject: MapServer Performance Tips Message-ID: Ok, the trick of all of this is that the data all comes from some MapInfo source files. Actually they originate in an application call PlanetEV that does grid analysis. I'm converting this data to contour shapefiles. I'd have to go in and change about 2+ GBs of data. This is data that needs to be updated manually every month. I want to try and make my update process as quick as possible, however I do understand the need to make sure the data is in the best possible format for server performance. On Tue, 7 Aug 2007 13:08:00 -0500, Fawcett, David wrote: >Minimizing processing at runtime can only help. > >If you have the disk space and your data is static, you could pre-create >different layers based on your expression criteria, so that your data >doesn't have to be evaluated in five different layers. > >I don't know if it is still true, but regular expressions used to be >faster than logical expressions, so you could add another column, >pre-classify your data and store a class value in that column, something >like a single-digit integer from 1-5. That might evaluate faster than a >complex logical expression. From bfraser at GEOANALYTIC.COM Tue Aug 7 12:50:48 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Tue, 7 Aug 2007 13:50:48 -0600 Subject: Debug Source Code Message-ID: David, There are several ways to debug Mapserver on Windows: 1. Use mapserver's DEBUG map file keyword (I can solve 10% of my problems this way). Verbose output is generated and sent to the standard error output (STDERR) or the MapServer logfile (if set using the LOG parameter in the WEB object). 2. Create a Visual Studio project for shp2img.exe and debug it (if your problems are data related) (good for 70% of problems). 3a. If you've got a Visual Studio project file for mapserver: Debug mapserv.exe without a webserver by simply putting the query_string portion of your web URL on the command line (you can do this within msvc++6 too): mapserv QUERY_STRING="mapfile=..." (good for another 15%) 3b. If you don't have a Visual Studio project file (you used nmake): with VC6: - make sure the mapserv.exe is compiled for Debug via nmake - Invoke the VC++ 6 IDE, and create a new console app project (it doesn't matter where or what it is named) - Select Project -> Settings, then select the Debug tab - Select the ">" button on the end of the "Executable for debug session" and select browse - Browse to your mapserv.exe, click Ok to dismiss Project Settings dialog - Select Build -> Start Debug -> step Into or with VC7: - make sure the mapserv.exe is compiled for Debug via nmake - Invoke the VC++ 7 IDE, and do File -> Open -> Project and select mapserv.exe - Select Debug -> Step Into 4. And when none of the above will catch the problem (the last 5%) - set up IIS on your development machine, - insert a DebugBreak(); in mapserv.c's main() (you'll need to add "#include ") - when you run the app, a dialog will popup asking if you want to abort the application (or No to debug it). If you answer No,the VC++ IDE will be invoked, showing the assembler code. Click the "Single Step" icon twice in the IDE to advance to the source code, and dismiss the assembler window. You can then step thru the source. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "David Stajan" To: Sent: Tuesday, August 07, 2007 1:02 PM Subject: [UMN_MAPSERVER-USERS] Debug Source Code Hi, I was hoping somebody might be able to explain to me how to walk through the mapserver source code! I have been compiling mapserver on a windows machine with visual studio command prompt, and everything has been going well. I have ran into a couple of kinks and I think if I could walk through the code with break points I could come up with some solutions. But how do you do this with Mapserver? I've compiled it with the MSVCRT debug mode but it doesn't create pdb file for mapserver executable. It does create a vc70.pdb file but I'm not sure if that can be used, or how it's used. Any help or tips on how to debug the source code would be greatly appreciated From tnolte at ILPCS.COM Tue Aug 7 12:57:50 2007 From: tnolte at ILPCS.COM (Timothy J Nolte) Date: Tue, 7 Aug 2007 14:57:50 -0500 Subject: MapServer Performance Tips Message-ID: You should be able to see that I'm already using MINSCALE/MAXSCALE for those layers as well as others. I'm generating a 1000x700 pixel image. These layers I don't have showing until the zoom is at around 90 miles. I have already broken these layers into individual shapes that are smaller than the states (actually about county size). I'm not really sure that I want to move these separate layers into one with just class definitions because the legend does display the class definitions only layers (unless I'm missing something here with Chameleon). This has all been very helpful information and I'm going to do my best to take all that has been suggested and work something out. I'm really wondering if this is a hardware issue. The box is a Sun server with 4 x 400MHz processors and 4GB ram. That might not be a powerful enough machine to do what I'm trying to do. On Tue, 7 Aug 2007 14:16:20 -0500, Fawcett, David wrote: >Like Steve says, if the performance is bad when fully zoomed out, >tileindexes won't help at all. > >If at full zoom-out, the smaller features are not recognizable or >relevant (e.g. drawing 6 million points on a 100x100 image), think about >using scale dependency to show a more generalized data layer(s) when >zoomed out, and your original data when zoomed in beyond a certain >scale. > >Of course, pre-generating these data layers (as opposed to >filtering/expression your original data) will lead to the performance >gain. > >You would use MINSCALE and MAXSCALE in the LAYER. > >David. From hal at MOBILEGEOGRAPHICS.COM Tue Aug 7 13:15:35 2007 From: hal at MOBILEGEOGRAPHICS.COM (Hal Mueller) Date: Tue, 7 Aug 2007 13:15:35 -0700 Subject: MapServer Performance Tips In-Reply-To: Message-ID: At 2:57 PM -0500 8/7/07, Timothy J Nolte wrote: > I'm not really sure that I want to move >these separate layers into one with just class definitions because the >legend does display the class definitions only layers The legend ought to show individual classes from a single layer. If it doesn't, you could generate the legend once, and then use a static image instead of a dynamic legend. The more I think about it, the more I believe you are hurting yourself by reading the same geometry 5 times. >I'm really wondering if this is a hardware issue. The box is >a Sun server with 4 x 400MHz processors and 4GB ram. That might not be a >powerful enough machine to do what I'm trying to do. Is it swapping? How much of the CPU is going to user mode? You might want to try shp2img on your mapfile as you edit it, to help make sure your benchmark conditions are consistent between runs. http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img Hal From gregor at HOSTGIS.COM Tue Aug 7 13:28:56 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 7 Aug 2007 14:28:56 -0600 Subject: MapServer Performance Tips In-Reply-To: Message-ID: >> I'm not really sure that I want to move >> these separate layers into one with just class definitions because the >> legend does display the class definitions only layers That's not right; it should show them for every class that has a NAME element. Looking at your code sample, I'd have to agree that there are probably circumstances where 5 layers using FILTER may be faster than 1 layer using 5 classes, and vice versa. If your data were in PostGIS and the filtering were happening by the same column in each case, and that column were indexed and also clustered, that'd probably show some excellent performance using the filter (keep the filtering in the DB instead of taking it to Mapserver). If your data is in shapefiles, though, the indexing by criteria isn't happening and Mapserver has to do a sequential scan and class-matching for every record in the spatial region represented. For each layer. Five times. Ouch. So yeah, if you're sticking with shapefiles I'd agree with the others that 1 layer with 5 classes would probably be the best bet. If you're willing to put in the work to put it into PostGIS, you could probably have 5 layers work very nicely. >> I'm really wondering if this is a hardware issue. The box is >> a Sun server with 4 x 400MHz processors and 4GB ram. That might not be a >> powerful enough machine to do what I'm trying to do. Should be fine; that's plenty of hardware. > You might want to try shp2img on your mapfile as you edit it, to help > make sure your benchmark conditions are consistent between runs. > http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img Good move, Hal. I'll take a note of this and add it to the performance docs we've been working on. -- Gregor Mosheh / Greg Allensworth 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 mikesaunt at GMAIL.COM Tue Aug 7 14:01:51 2007 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Tue, 7 Aug 2007 22:01:51 +0100 Subject: MapServer Performance Tips In-Reply-To: <46B8D608.6040704@hostgis.com> Message-ID: Hi Tim Not sure if this will help but when we implement from other sources (ArcSDE, Oracle etc) we setup scripts to process the data using ogr2ogr and then apply shptree etc. We've found that using org2ogr is really powerful as you can create new layers based on SQL / Where statements and this could help with the classifications of the data. HTH Mike On 07/08/07, Gregor Mosheh wrote: > > >> I'm not really sure that I want to move > >> these separate layers into one with just class definitions because the > >> legend does display the class definitions only layers > > That's not right; it should show them for every class that has a NAME > element. > > Looking at your code sample, I'd have to agree that there are probably > circumstances where 5 layers using FILTER may be faster than 1 layer > using 5 classes, and vice versa. > > If your data were in PostGIS and the filtering were happening by the > same column in each case, and that column were indexed and also > clustered, that'd probably show some excellent performance using the > filter (keep the filtering in the DB instead of taking it to Mapserver). > > If your data is in shapefiles, though, the indexing by criteria isn't > happening and Mapserver has to do a sequential scan and class-matching > for every record in the spatial region represented. For each layer. Five > times. Ouch. > > So yeah, if you're sticking with shapefiles I'd agree with the others > that 1 layer with 5 classes would probably be the best bet. If you're > willing to put in the work to put it into PostGIS, you could probably > have 5 layers work very nicely. > > > >> I'm really wondering if this is a hardware issue. The box is > >> a Sun server with 4 x 400MHz processors and 4GB ram. That might not be > a > >> powerful enough machine to do what I'm trying to do. > > Should be fine; that's plenty of hardware. > > > > You might want to try shp2img on your mapfile as you edit it, to help > > make sure your benchmark conditions are consistent between runs. > > http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img > > Good move, Hal. I'll take a note of this and add it to the performance > docs we've been working on. > > -- > Gregor Mosheh / Greg Allensworth > 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 pramsey at REFRACTIONS.NET Tue Aug 7 15:26:30 2007 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 7 Aug 2007 15:26:30 -0700 Subject: MapServer Performance Tips In-Reply-To: Message-ID: Tim, You're getting some good advice on mapfile layout, which can be summarized as "don't draw features that you cannot see, or don't need to see". So don't draw 500K roads into a 1000x1000 image, because each road will barely take up a pixel, it's a waste of CPU time. Since you're using Oracle, if you want performance, you *MUST* do the following: * Run Mapserver as a fastcgi process * Use CLOSE_CONNECTION=DEFER as a processing instruction at the end of your Oracle layers Otherwise the connection overhead will kill you. Also watch out for using "init=epsg:xxxx" PROJECTION strings, as Mapserver opens and reads the epsg file for each one of them. Better to just spell out the whole projection. This can be a huge win on maps with piles of layers. Paul Timothy J Nolte wrote: > Now that I finally have MapServer talking to our Oracle database my next big > issue is performance. Does anyone have any tips on MapServer performance? > > We're running MapServer on: > Sun e450 > 4 x 400MHz Sparc II Processors > 4GB ram > > I have around 42GB of map data I'm trying to serve up. I'm not seeing the > greatest performance. Are there any key things I need to remember with the > setup of my Shapefile data? Are there certain things I should do with my > .map file to help performance? Anyone using the DM Solutions US Streets > data, any issues with performance there? What kind of hardware are others > running on? Thanks. -- Paul Ramsey Refractions Research http://www.refractions.net pramsey at refractions.net Phone: 250-383-3022 Cell: 250-885-0632 From gregor at HOSTGIS.COM Tue Aug 7 15:31:38 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 7 Aug 2007 16:31:38 -0600 Subject: MapServer Performance Tips In-Reply-To: <46B8F196.3020900@refractions.net> Message-ID: > * Run Mapserver as a fastcgi process > * Use CLOSE_CONNECTION=DEFER as a processing instruction at the end of > your Oracle layers > Otherwise the connection overhead will kill you. Thanks Paul. Another one for the site. What a great day! :) -- Gregor Mosheh / Greg Allensworth 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 chris at POWERHOUSETECHGRP.COM Tue Aug 7 15:43:56 2007 From: chris at POWERHOUSETECHGRP.COM (Chris @ Powerhouse Technology Group) Date: Tue, 7 Aug 2007 17:43:56 -0500 Subject: hchan.channelFlags |= CHANNEL_HALF; Message-ID: hchan.channelFlags |= CHANNEL_HALF; any one know where I need to add this? so i can get my card in 5mhz bandwidth? thanks, chris From tnolte at ILPCS.COM Tue Aug 7 16:27:57 2007 From: tnolte at ILPCS.COM (Timothy J Nolte) Date: Tue, 7 Aug 2007 18:27:57 -0500 Subject: MapServer Performance Tips Message-ID: Just want to thank everyone that has been giving me a ton of great advice for improving the performance of my MapServer. I've got a lot of stuff to try out. I'm glad that my questions have perhaps improved the faq's for more new users. From thesl at YAHOO.COM Tue Aug 7 18:58:57 2007 From: thesl at YAHOO.COM (Peter Shrock) Date: Tue, 7 Aug 2007 18:58:57 -0700 Subject: MapServer download for linux In-Reply-To: <46B8F2CA.7040202@hostgis.com> Message-ID: Hello, everyone: I just purchases a hosting plan. It is a Linux platform. I can upload my apps to my cgi-bin, but I cannot compile or install anything, and the company does not offer such installation/compiling. I am wondering if there is a place that I can download a mapserver cgi package (very much like MS4W). Since all I can do is to upload files, I will need all compiled mapserver cgi app (with almost all support options) and all libraries (do I speak the correct Linux language?). I never used Linux before, so I do not even know if this is possible. If it is impossible, I will have to switch to windows platform. Thanks Peter ____________________________________________________________________________________ Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting From gizagui at FI.UBA.AR Tue Aug 7 20:20:51 2007 From: gizagui at FI.UBA.AR (Gaston Izaguirre) Date: Wed, 8 Aug 2007 00:20:51 -0300 Subject: MapServer download for linux Message-ID: Peters, try this links: FGS Linux Installer (Installs MapServer and all of its dependencies on your Linux system) http://maptools.org/fgs/ FWTools (A package of Open Source GIS binaries for Windows and Linux, which includes OpenEV, GDAL/OGR, PROJ.4, and others) http://fwtools.maptools.org/ Are Packaged Tools and Utilities equivalent to MS4W. Perhaps this helps you. Regards, Gaston. ----- Original Message ----- From: "Peter Shrock" To: Sent: Tuesday, August 07, 2007 10:58 PM Subject: [UMN_MAPSERVER-USERS] MapServer download for linux > Hello, everyone: > > I just purchases a hosting plan. It is a Linux platform. I can upload my > apps > to my cgi-bin, but I cannot compile or install anything, and the company > does > not offer such installation/compiling. > > I am wondering if there is a place that I can download a mapserver cgi > package > (very much like MS4W). Since all I can do is to upload files, I will need > all > compiled mapserver cgi app (with almost all support options) and all > libraries > (do I speak the correct Linux language?). > > I never used Linux before, so I do not even know if this is possible. If > it is > impossible, I will have to switch to windows platform. > > Thanks > > Peter > > > > ____________________________________________________________________________________ > Building a website is a piece of cake. Yahoo! Small Business gives you all > the tools to get online. > http://smallbusiness.yahoo.com/webhosting > From thesl at YAHOO.COM Tue Aug 7 20:55:48 2007 From: thesl at YAHOO.COM (Peter Shrock) Date: Tue, 7 Aug 2007 20:55:48 -0700 Subject: MapServer download for linux In-Reply-To: <006b01c7d96b$2106f2a0$0500a8c0@Vitsuba> Message-ID: Hello, Gaston and Prashanth: Thank you very much for your help. My problem is that all I can do is to upload files to certain folders on a server. So any thing involving installer, batch files, setting up environment will not work for me. I will look inot FWTools and see if I can figure out the solutions, like the supporting libraries and path. Have nice day. Peter --- Gaston Izaguirre wrote: > Peters, > > try this links: > > FGS Linux Installer (Installs MapServer and all of its dependencies on your > Linux system) > > http://maptools.org/fgs/ > > FWTools (A package of Open Source GIS binaries for Windows and Linux, which > includes OpenEV, GDAL/OGR, PROJ.4, and others) > > http://fwtools.maptools.org/ > > Are Packaged Tools and Utilities equivalent to MS4W. > > Perhaps this helps you. > > Regards, > > Gaston. > > > > > ----- Original Message ----- > From: "Peter Shrock" > To: > Sent: Tuesday, August 07, 2007 10:58 PM > Subject: [UMN_MAPSERVER-USERS] MapServer download for linux > > > > Hello, everyone: > > > > I just purchases a hosting plan. It is a Linux platform. I can upload my > > apps > > to my cgi-bin, but I cannot compile or install anything, and the company > > does > > not offer such installation/compiling. > > > > I am wondering if there is a place that I can download a mapserver cgi > > package > > (very much like MS4W). Since all I can do is to upload files, I will need > > all > > compiled mapserver cgi app (with almost all support options) and all > > libraries > > (do I speak the correct Linux language?). > > > > I never used Linux before, so I do not even know if this is possible. If > > it is > > impossible, I will have to switch to windows platform. > > > > Thanks > > > > Peter ____________________________________________________________________________________ Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/ From mike.talbutt at DOTTEDEYES.COM Wed Aug 8 00:41:13 2007 From: mike.talbutt at DOTTEDEYES.COM (mikiet) Date: Wed, 8 Aug 2007 00:41:13 -0700 Subject: QueryByAttribute on Mapinfo Tab files Message-ID: Hi, can someone give me some pointers please I'm using Java mapscript to query a Mapinfo TAB layer in my map. Basically I want to pick out all features in my mapinfo tab file that have an id of "A00" The layer is defined as follows LAYER NAME regions TYPE POLYGON STATUS ON CONNECTIONTYPE OGR CONNECTION "C:/MapBase/regions.TAB" STYLEITEM "AUTO" TEMPLATE "ffff" CLASS NAME "regions" END END The code I have wrote is as follows String columnName = "regionid"; String value = "A00"; System.out.println("query result = " + internalLayer.queryByAttributes(map, columnName, value, mapscript.MS_MULTIPLE)); resultCacheObj resultCache = internalLayer.getResults(); System.out.println("resultCache.getNumresults() = " + resultCache.getNumresults()); However when this code runs I always get the following output query result = 1 resultCache.getNumresults() = 0 I have managed to do a queryByRect on the same layer and it is working fine, so I presume its something to do with the parameters I am passing to queryByAttributes method ? Any advice greatly appreciated -- View this message in context: http://www.nabble.com/QueryByAttribute-on-Mapinfo-Tab-files-tf4234712.html#a12048572 Sent from the Mapserver - User mailing list archive at Nabble.com. From richard.martin at TASCOMI.COM Wed Aug 8 04:25:05 2007 From: richard.martin at TASCOMI.COM (DrDik) Date: Wed, 8 Aug 2007 04:25:05 -0700 Subject: Using JOIN for querying In-Reply-To: <7e2b31120608302346ufaea147ldeb8bb4bd236f9d9@mail.gmail.com> Message-ID: Hi Maricris I've read your posts in this problem and I have a question or two. I've been to your site:http://gis.pids.gov.ph/ and it's exactly what I need to do! Can you help? I am using mapbender as the mapping frontend to mapserver. I have a map file much like yours... can you either email me or post your final map file and relater .html files? If you are able to I'll publish how I got it all to work with your help with a idiot guide and some dummy data - this seems to be a popular request without a definitive answer, but from your site I can see you got it working perfectly! Hopefully you'll be able to help. Many thanks Richard cris ricana wrote: > >> In the template file where the results should show, use the format >> "[_]" for dbf and mysql joins and >> "[_]" for csv joins. For example, I'm using >> [reg_join_2] to access data from the 2nd column of my csv file. > > Correction: > "[_]" for dbf and mysql joins and > "[_]" for csv joins > > Maricris > > -- View this message in context: http://www.nabble.com/Using-JOIN-for-querying-tf2187511.html#a12051321 Sent from the Mapserver - User mailing list archive at Nabble.com. From zhonghaiw at GMAIL.COM Wed Aug 8 05:38:45 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 8 Aug 2007 14:38:45 +0200 Subject: C# rectObj -- image rectangle and the method fit(x,y) Message-ID: Hi folks, I am using now the latest beta version MapServer C# wrapper. I remember that creating an image rectangle object with the old version wrapper, it should be done like because of the screen coordinate system: Dim tempRect As New rectObj(intMinX, intMinY, intMaxX, intMaxY, 0) Dim t As Integer = 0 Dim tc As Integer = 0 t = tempRect.miny tempRect.miny = tempRect.maxy tempRect.maxy = t Is this situation changed in the latest beta version? besides, i noticed that there is a fit(integer, integer) as double method, I've tried to get the idea of this method in mailing list, but i didn't get it. Could anyone you guys give me some hints? Cheers Zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlacroix at MAPGEARS.COM Wed Aug 8 07:21:28 2007 From: jlacroix at MAPGEARS.COM (Julien-Samuel Lacroix) Date: Wed, 8 Aug 2007 10:21:28 -0400 Subject: MapServer Performance Tips In-Reply-To: Message-ID: Hi, Sorry to jump late on this one. Timothy J Nolte wrote: > I'm not really sure that I want to move > these separate layers into one with just class definitions because the > legend does display the class definitions only layers (unless I'm missing > something here with Chameleon). In Chameleon you have full control over what's displayed in the legend via the legend_template.html file and the LegendTemplate widget. Doc: http://mapserver.gis.umn.edu/docs/howto/html_legend Julien -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From gregor at HOSTGIS.COM Wed Aug 8 08:32:08 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 8 Aug 2007 09:32:08 -0600 Subject: The Symbology Exchange? Message-ID: Hey, guys. I've been considering whether it'd be useful to have a "symbology exchange" so we can share symbols. So far all that exists is the documentation explaining that one can use multiple styles to make complex symbols, but a recipe is worth a dozen howtos. I figure this could be as easy as a new howto page, and folks comment with their own additions. I, for example, have a nice set of two-color squares, stars, diamonds, and the like at 6 sizes. It took some experimenting to figure that these sizes were the only ones that look good for each shape. I also have a nice Google-style set for TIGER data or other streets, and a decent set of polygon fills. And I suspect that other folks have done some neat vector symbols, or know where to download a set of 100 carto icons, etc. Would this be an interesting and useful page? Does it already exist elsewhere? -- Gregor Mosheh / Greg Allensworth 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 bthoen at GISNET.COM Wed Aug 8 08:55:59 2007 From: bthoen at GISNET.COM (Bill Thoen) Date: Wed, 8 Aug 2007 09:55:59 -0600 Subject: The Symbology Exchange? In-Reply-To: <46B9E1F8.3040805@hostgis.com> Message-ID: I think that would be really handy. I don't have much to contribute myself yet, but I'm currently building a few cartographic fill patterns that I'd be happy to contribute (anyone want a USGS-like "swamp" vector area fill pattern?) I also have a set of TTF symbols developed by US Homeland Security for E911 operations (of course, you can get those yourself at http://www.fgdc.gov/HSWG/index.html) It took me quite a while to figure out how to do a railroad pattern, so I could save somebody else some trouble with that too. And I could use a set of point symbols for TIGER landmarks. - Bill Thoen Gregor Mosheh wrote: > Hey, guys. > > I've been considering whether it'd be useful to have a "symbology > exchange" so we can share symbols. So far all that exists is the > documentation explaining that one can use multiple styles to make > complex symbols, but a recipe is worth a dozen howtos. > > I figure this could be as easy as a new howto page, and folks comment > with their own additions. > > I, for example, have a nice set of two-color squares, stars, diamonds, > and the like at 6 sizes. It took some experimenting to figure that > these sizes were the only ones that look good for each shape. I also > have a nice Google-style set for TIGER data or other streets, and a > decent set of polygon fills. And I suspect that other folks have done > some neat vector symbols, or know where to download a set of 100 carto > icons, etc. > > Would this be an interesting and useful page? Does it already exist > elsewhere? > From volunteer at SPATIALLINK.ORG Wed Aug 8 08:55:49 2007 From: volunteer at SPATIALLINK.ORG (siva) Date: Wed, 8 Aug 2007 08:55:49 -0700 Subject: The Symbology Exchange? Message-ID: http://openclipart.org/ http://tango.freedesktop.org/ sincerely siva -------- Original Message -------- Subject: [UMN_MAPSERVER-USERS] The Symbology Exchange? From: Gregor Mosheh Date: Wed, August 08, 2007 11:32 am To: MAPSERVER-USERS at LISTS.UMN.EDU Hey, guys. I've been considering whether it'd be useful to have a "symbology exchange" so we can share symbols. So far all that exists is the documentation explaining that one can use multiple styles to make complex symbols, but a recipe is worth a dozen howtos. I figure this could be as easy as a new howto page, and folks comment with their own additions. I, for example, have a nice set of two-color squares, stars, diamonds, and the like at 6 sizes. It took some experimenting to figure that these sizes were the only ones that look good for each shape. I also have a nice Google-style set for TIGER data or other streets, and a decent set of polygon fills. And I suspect that other folks have done some neat vector symbols, or know where to download a set of 100 carto icons, etc. Would this be an interesting and useful page? Does it already exist elsewhere? -- Gregor Mosheh / Greg Allensworth 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 hobu.inc at GMAIL.COM Wed Aug 8 09:58:49 2007 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Wed, 8 Aug 2007 11:58:49 -0500 Subject: Unicode Shapefiles for ArcSDE testing In-Reply-To: <20070808085549.b22b5ede89d48a4249261b5ab56693f4.bc50b6cc72.wbe@email.secureserver.net> Message-ID: All, Does anyone have an ESRI "unicode" shapefile that I can use for testing ArcSDE? It would only need a couple of geometries with some unicode attributes. Ideally, we would also put a copy of this in GDAL's testing framework for future reference. Thanks Howard From bthoen at GISNET.COM Wed Aug 8 10:51:26 2007 From: bthoen at GISNET.COM (Bill Thoen) Date: Wed, 8 Aug 2007 11:51:26 -0600 Subject: The Symbology Exchange? In-Reply-To: <76758090F8686C47A44B6FF52514A1D307909E00@hermes.uai.int> Message-ID: John Cole wrote: > I would like the swamp symbol AND another railroad symbol :-) I really like > the idea of the symbol exchange too! > OK, here they are. In the symbols.txt file goes these: SYMBOL NAME 'track' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END SYMBOL NAME "tie" TYPE cartoline LINECAP butt LINEJOIN miter LINEJOINMAXSIZE 3 STYLE 1 10 1 10 END END SYMBOL NAME 'grass' TYPE VECTOR FILLED FALSE POINTS 5 6 4 5 -99 -99 6 6 5 4 -99 -99 7 6 7 3 -99 -99 8 6 9 4 -99 -99 9 6 10 5 -99 -99 19 13 18 12 -99 -99 20 13 19 11 -99 -99 21 13 21 10 -99 -99 22 13 23 11 -99 -99 23 13 24 12 END And I call them like so: Railroads class: CLASS NAME "Railroads" STYLE SYMBOL 'track' SIZE 1 COLOR 128 128 128 ANTIALIAS TRUE END STYLE SYMBOL "tie" SIZE 5 COLOR 128 128 128 ANTIALIAS TRUE END END Swamp thing (polygon fill) CLASS EXPRESSION "Swamp or Marsh" COLOR 240 255 240 OUTLINECOLOR 128 255 128 STYLE SYMBOL "grass" SIZE 30 COLOR 96 128 64 END END From gregor at HOSTGIS.COM Wed Aug 8 10:50:35 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 8 Aug 2007 11:50:35 -0600 Subject: The Symbology Exchange? In-Reply-To: <46BA029E.1000904@gisnet.com> Message-ID: Boy, what a response! I'm setting up the pages now. It'll be a day or so until they're reviewed and publicly available. Thanks a lot for the list postings and the direct emails supporting the idea. I'll be glad to get a good set of railroad tracks, and to share our really sweet roads. -- Gregor Mosheh / Greg Allensworth 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 dmorissette at MAPGEARS.COM Wed Aug 8 12:58:31 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 8 Aug 2007 15:58:31 -0400 Subject: MapServer 5.0.0-beta3 released Message-ID: Hi everyone, MapServer 5.0.0-beta3 has just been released. The source package is available at: http://mapserver.gis.umn.edu/download/beta The page above also contains links to binary distributions. They should be updated with binaries for this beta in the next few days. The list of changes/fixes since beta2 is included at the bottom of this email. As was mentioned before, we plan to have one beta per week until the final release of MapServer 5.0 which is planned for the week of September 12, 2007. More details can be found in the 5.0 release plan at http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/release_plan/ Daniel Version 5.0.0-beta3 (2007-08-08) -------------------------------- Known issues: - This beta contains significant improvements and fixes on the AGG rendering front. However some build issues remain on some platforms. Please see ticket #2215 if building with AGG support doesn't work with the default configure script: http://trac.osgeo.org/mapserver/ticket/2215 Bug fixes: - mapagg.cpp rewrite - the AGG renderer should now support all the GD features - Use AGG when requested for drawing the legend - Fixed problems with very large HTML legends producing no output (#1946) - Use OGR-specific destructors for objects that have them rather than 'delete' (#697) - Include style-related info in HTML legend icon filenames to solve issues with caching of icons when the class or style params are changed (#745) - Fixed issues with wms_layer_group metadata in WMS GetCapabilities (#2122) - Use msSaveImageBufferAGG for AGG formats in getBytes (#2205). - Make sure to emit $(AGG) to mapscriptvars because of conditional inclusion of stuct members to imageObj. (#2205) - Make imageextra field in imageObj not conditional (not #ifdef'ed) (#2205) - AGG/PNG and AGG/JPEG are the only valid agg drivers. Imagetypes aggpng24 and aggjpeg can be used to refer to the default output formats. (#2195) - Fix memory leak with labepath object (#2199) - Fix memory leak msImageTruetypePolyline (#2200) - SWF: Fix incorrect symbol assignements (#2198) - Fixed memory leaks in processing of WFS requests (#2077) - Avoid use of uninitialised memory in msCopySymbol() (#2194) From dmorissette at MAPGEARS.COM Wed Aug 8 13:57:18 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 8 Aug 2007 16:57:18 -0400 Subject: MapServer 5.0.0-beta3 released In-Reply-To: <46BA2067.40306@mapgears.com> Message-ID: I forgot to mention that we are working on a MapServer 4.10 -> 5.0 migration guide which is available online at http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/migration_guide_410_50 You are strongly advised to review it before starting to use 5.0. (A copy is also included in the source as MIGRATION_GUIDE.TXT) Daniel Daniel Morissette wrote: > Hi everyone, > > MapServer 5.0.0-beta3 has just been released. The source package is > available at: > > http://mapserver.gis.umn.edu/download/beta > > The page above also contains links to binary distributions. They should > be updated with binaries for this beta in the next few days. > > The list of changes/fixes since beta2 is included at the bottom of this > email. > > As was mentioned before, we plan to have one beta per week until the > final release of MapServer 5.0 which is planned for the week of > September 12, 2007. More details can be found in the 5.0 release plan at > http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/release_plan/ > > > Daniel > > > Version 5.0.0-beta3 (2007-08-08) > -------------------------------- > > Known issues: > > - This beta contains significant improvements and fixes on the AGG > rendering front. However some build issues remain on some platforms. > Please see ticket #2215 if building with AGG support doesn't work with > the default configure script: http://trac.osgeo.org/mapserver/ticket/2215 > > Bug fixes: > > - mapagg.cpp rewrite - the AGG renderer should now support all the GD > features > > - Use AGG when requested for drawing the legend > > - Fixed problems with very large HTML legends producing no output (#1946) > > - Use OGR-specific destructors for objects that have them rather than > 'delete' (#697) > > - Include style-related info in HTML legend icon filenames to solve > issues with > caching of icons when the class or style params are changed (#745) > > - Fixed issues with wms_layer_group metadata in WMS GetCapabilities (#2122) > > - Use msSaveImageBufferAGG for AGG formats in getBytes (#2205). > > - Make sure to emit $(AGG) to mapscriptvars because of conditional > inclusion > of stuct members to imageObj. (#2205) > > - Make imageextra field in imageObj not conditional (not #ifdef'ed) (#2205) > > - AGG/PNG and AGG/JPEG are the only valid agg drivers. > Imagetypes aggpng24 and aggjpeg can be used to refer to the > default output formats. (#2195) > > - Fix memory leak with labepath object (#2199) > > - Fix memory leak msImageTruetypePolyline (#2200) > > - SWF: Fix incorrect symbol assignements (#2198) > > - Fixed memory leaks in processing of WFS requests (#2077) > > - Avoid use of uninitialised memory in msCopySymbol() (#2194) -- Daniel Morissette http://www.mapgears.com/ From szekerest at GMAIL.COM Wed Aug 8 16:16:07 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 9 Aug 2007 01:16:07 +0200 Subject: C# rectObj -- image rectangle and the method fit(x,y) In-Reply-To: <2534c4120708080538j5f5a2f36o920ed14dc4ca265f@mail.gmail.com> Message-ID: Zhonghai, We have a bunch of tickets on this issue especially regarding to the zoomRectangle function. On one day it have been corrected that maxy is greater that miny but on the other day it have been reverted due to some other reasons: For more information see: http://trac.osgeo.org/mapserver/ticket/1982 http://trac.osgeo.org/mapserver/ticket/1988 http://trac.osgeo.org/mapserver/ticket/1817 I personally would support having maxy greater than miny, but it seems to be applied only for the 5.2 release. Best regards, Tamas 2007/8/8, Zhonghai Wang : > Hi folks, > > I am using now the latest beta version MapServer C# wrapper. I remember that > creating an image rectangle object with the old version wrapper, it should > be done like because of the screen coordinate system: > > Dim tempRect As New rectObj(intMinX, intMinY, intMaxX, intMaxY, 0) > Dim t As Integer = 0 > Dim tc As Integer = 0 > t = tempRect.miny > tempRect.miny = tempRect.maxy > tempRect.maxy = t > > Is this situation changed in the latest beta version? > > besides, i noticed that there is a fit(integer, integer) as double method, > I've tried to get the idea of this method in mailing list, but i didn't get > it. > > Could anyone you guys give me some hints? > > Cheers > > Zhonghai > From flavio at TYDAC.CH Wed Aug 8 23:27:05 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 9 Aug 2007 08:27:05 +0200 Subject: The Symbology Exchange? In-Reply-To: <46B9E1F8.3040805@hostgis.com> Message-ID: Hi Gregor some to be found here: http://umn.mapserver.ch (under true type symbols) Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From JXA at COWI.DK Thu Aug 9 01:37:25 2007 From: JXA at COWI.DK (Jeppe Lund Andersen) Date: Thu, 9 Aug 2007 10:37:25 +0200 Subject: Shape object In-Reply-To: A<20070301075700.E21B4BAA76@vscan.iway.na> Message-ID: Hello all Iam trying to get the x and y out of a shape object the shape object has 3 holes in it and when I loop through it I cannot see if it is a hole or not. I could say that the first one is the shape and the rest is the holes, but that will not work if I have a multipolygon with holes is there any way to see if the shape I have is a hole. hope any one can help me jeppe This is the function I have made function OutputShapeToXML($Shape, $Limit=NULL) { for ($I = 0; $I < $Shape->numlines; $I++) { $tmp = ""; $Line = $Shape->line($I); echo ''; for ($J = 0; $J < $Line->numpoints; $J++) { $Point = $Line->point($J); if ($Limit && ($Point->x < $Limit->minx || $Point->x > $Limit->maxx || $Point->y < $Limit->miny || $Point->y > $Limit->maxy) ) continue; echo ''; } echo ''; } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcos at BURKE.ATH.CX Thu Aug 9 02:21:32 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Thu, 9 Aug 2007 11:21:32 +0200 Subject: python mapscript filteritem not working Message-ID: Good morning (in Spain). This is my first post to the list. I have set up a django app that uses mapscript to serve maps (not using http://code.djangoproject.com/wiki/GeoDjango whatsoever). I have a shp file with several layers of detail (wind predictions, aggregated in 1x, 4x, 16x, etc.). I wanted to use filteritem and filter to show only the level of desired detail. If I put FILTERITEM escala FILTER "16" in a mapfile, it works as expected. but self.capa.filteritem='escala' self.capa.setFilter('16') does not. Any hint why? From warmerdam at POBOX.COM Thu Aug 9 04:46:29 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 9 Aug 2007 07:46:29 -0400 Subject: Shape object In-Reply-To: Message-ID: Jeppe Lund Andersen wrote: > Hello all > > Iam trying to get the x and y out of a shape object > the shape object has 3 holes in it > and when I loop through it I cannot see if it is a hole or not. > > I could say that the first one is the shape and the rest is the holes, > but that will not work if I have a multipolygon with holes > is there any way to see if the shape I have is a hole. Jeppe, MapServer does not keen to keep track of which rings are outer and which are inner (holes) because the scanline rasterizer of GD doesn't care. Or you could say the rasterizer implicitly figures it out as it goes. So, I'm afraid you are out of luck to be sure what rings are what in a polygon shapeObj. 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 volpicelli at OATO.INAF.IT Thu Aug 9 03:32:06 2007 From: volpicelli at OATO.INAF.IT (Antonio) Date: Thu, 9 Aug 2007 12:32:06 +0200 Subject: use of shp2tile and ogrtindex Message-ID: Hi, I am using shp2tile to split my huge shapefile , after that I use ogrtindex to generate the tileindex. So in my map file in the layer definition I set the keyword TILEINDEX at this new tilendex shape just generated. This work fine for the layer with TYPE POLYGON but doesn't work with RASTER layer. Some one could tell me why? thanks Antonio -- /-------------------------------------------------------\ PLEASE WARNING: E-mail is CHANGED volpicelli at oato.inaf.it /-------------------------------------------------------\ From Dejan.Gambin at PULA.HR Thu Aug 9 03:46:13 2007 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Thu, 9 Aug 2007 12:46:13 +0200 Subject: use of shp2tile and ogrtindex Message-ID: Hi Antonio, gdaltindex is used for building a shapefile as a raster tileindex. You can take a look at gdal utilities that deal with rasters at http://www.gdal.org/gdal_utilities.html regards, dejan > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Antonio > Sent: Thursday, August 09, 2007 12:32 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] use of shp2tile and ogrtindex > > Hi, > I am using shp2tile to split my huge shapefile , after that I > use ogrtindex to generate the tileindex. > So in my map file in the layer definition I set the keyword > TILEINDEX at this new tilendex shape just generated. > This work fine for the layer with TYPE POLYGON but doesn't > work with RASTER layer. > Some one could tell me why? > > thanks > > Antonio > > -- > /-------------------------------------------------------\ > PLEASE WARNING: E-mail is CHANGED > volpicelli at oato.inaf.it > /-------------------------------------------------------\ > From warmerdam at POBOX.COM Thu Aug 9 05:34:47 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 9 Aug 2007 08:34:47 -0400 Subject: use of shp2tile and ogrtindex In-Reply-To: <46BAED26.6030005@oato.inaf.it> Message-ID: Antonio wrote: > Hi, > I am using shp2tile to split my huge shapefile , after that I use > ogrtindex to generate the tileindex. > So in my map file in the layer definition I set the keyword TILEINDEX at > this new tilendex shape just generated. > This work fine for the layer with TYPE POLYGON but doesn't work with > RASTER layer. > Some one could tell me why? Antonio, What part of this process does not work for the raster layer? Are you suggesting that you are breaking your raster tileindex shapefile into a bunch of smaller shapefile tiles and then trying to create a tileindex for that (two layers of tileindex) for your raster layer? I'd add that "doesn't work" isn't all that helpful. Is there any sort of error message? 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 marcos at BURKE.ATH.CX Thu Aug 9 04:07:16 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Thu, 9 Aug 2007 13:07:16 +0200 Subject: python mapscript filteritem not working In-Reply-To: <1186651292.6421.5.camel@savin> Message-ID: It seems to be related to the fact that the connection is opened only once. is it possible to force reopening database connections? I am going to try using clone(). El jue, 09-08-2007 a las 11:21 +0200, Marcos S?nchez Provencio escribi?: > Good morning (in Spain). This is my first post to the list. > > I have set up a django app that uses mapscript to serve maps (not using > http://code.djangoproject.com/wiki/GeoDjango whatsoever). > > I have a shp file with several layers of detail (wind predictions, > aggregated in 1x, 4x, 16x, etc.). I wanted to use filteritem and filter > to show only the level of desired detail. > > If I put > FILTERITEM escala > FILTER "16" > in a mapfile, it works as expected. > > but > > self.capa.filteritem='escala' > self.capa.setFilter('16') > does not. > > Any hint why? From gregor at HOSTGIS.COM Thu Aug 9 04:43:38 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 9 Aug 2007 05:43:38 -0600 Subject: Labelling behavior Message-ID: Hi, guys. I'm wrestling a bit with label behavior. The documentation describes that "minfeaturesize auto" will cause a feature's label to be drawn only if it can fit within the polygon, and we have turned it on for this polygon layer. These screenshots show that the labelling behavior is now inconsistent. In these, there is obviously plenty of room for labels, but it chooses not to label. http://maps.hostgis.com/gregor/ticket261a.jpg http://maps.hostgis.com/gregor/ticket261c.jpg It shows up if we zoom in a bit: http://maps.hostgis.com/gregor/ticket261b.jpg Using PHP/Mapscript, the label-related code is as follows: $maplayer->set('labelitem',$labelitem); $class->label->color->setRGB(0,0,0); $class->label->outlinecolor->setRGB(200,200,200); $class->label->set('position',MS_CC); $class->label->set('angle',0); $class->label->set('size',7); $class->label->set('type',MS_TRUETYPE); $class->label->set('font','Vera'); $class->label->set('mindistance',1); $class->label->set('buffer',1); $class->label->set('partials',MS_TRUE); $class->label->set('minfeaturesize',MS_AUTO); Any thoughts? Basically, we want as many labels as possible without collisions, but with each label constrained to its polygon. -- Gregor Mosheh / Greg Allensworth 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 umberto.nicoletti at GMAIL.COM Thu Aug 9 04:50:36 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 9 Aug 2007 13:50:36 +0200 Subject: python mapscript filteritem not working In-Reply-To: <1186657636.6421.23.camel@savin> Message-ID: On 8/9/07, Marcos S?nchez Provencio wrote: > It seems to be related to the fact that the connection is opened only > once. is it possible to force reopening database connections? I am going > to try using clone(). Clone makes a deep copy of the object, so it is not useful in your case. Try to put the string in quotes (no double quotes, just two single quotes), ie: self.capa.filteritem=''escala'' Umberto > > El jue, 09-08-2007 a las 11:21 +0200, Marcos S?nchez Provencio escribi?: > > Good morning (in Spain). This is my first post to the list. > > > > I have set up a django app that uses mapscript to serve maps (not using > > http://code.djangoproject.com/wiki/GeoDjango whatsoever). > > > > I have a shp file with several layers of detail (wind predictions, > > aggregated in 1x, 4x, 16x, etc.). I wanted to use filteritem and filter > > to show only the level of desired detail. > > > > If I put > > FILTERITEM escala > > FILTER "16" > > in a mapfile, it works as expected. > > > > but > > > > self.capa.filteritem='escala' > > self.capa.setFilter('16') > > does not. > > > > Any hint why? > From bartvde at OSGIS.NL Thu Aug 9 04:54:51 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 9 Aug 2007 13:54:51 +0200 Subject: labelcache_map_edge_buffer Message-ID: Hi list, I am trying to use the map edge buffer, but it has no effect, labels are placed closer than 100 pixels to the border of the image. How can this be? I tried using both positive and negative values and added this to the WEB's METADATA section to no avail. Using 4.10.2. "labelcache_map_edge_buffer" "-100" TIA Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From umberto.nicoletti at GMAIL.COM Thu Aug 9 05:01:09 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 9 Aug 2007 14:01:09 +0200 Subject: python mapscript filteritem not working In-Reply-To: <1186660593.6421.27.camel@savin> Message-ID: On 8/9/07, Marcos S?nchez Provencio wrote: > My mistake. I was modifying the layer after adding it to the map, so I > was dealing with the independent copy that never gets drawn. I really > think that this behavior is very confusing, especially to those used to > Python. This will change starting with mapserver 5 (out soon). No more confusion ;-) Umberto > > Thank you for your interest, anyway. I really appreciate the fast > responses. > > El jue, 09-08-2007 a las 13:50 +0200, Umberto Nicoletti escribi?: > > On 8/9/07, Marcos S?nchez Provencio wrote: > > > It seems to be related to the fact that the connection is opened only > > > once. is it possible to force reopening database connections? I am going > > > to try using clone(). > > > > Clone makes a deep copy of the object, so it is not useful in your > > case. Try to put the string in quotes (no double quotes, just two > > single quotes), ie: > > > > self.capa.filteritem=''escala'' > > > > Umberto > > > > > > > > El jue, 09-08-2007 a las 11:21 +0200, Marcos S?nchez Provencio escribi?: > > > > Good morning (in Spain). This is my first post to the list. > > > > > > > > I have set up a django app that uses mapscript to serve maps (not using > > > > http://code.djangoproject.com/wiki/GeoDjango whatsoever). > > > > > > > > I have a shp file with several layers of detail (wind predictions, > > > > aggregated in 1x, 4x, 16x, etc.). I wanted to use filteritem and filter > > > > to show only the level of desired detail. > > > > > > > > If I put > > > > FILTERITEM escala > > > > FILTER "16" > > > > in a mapfile, it works as expected. > > > > > > > > but > > > > > > > > self.capa.filteritem='escala' > > > > self.capa.setFilter('16') > > > > does not. > > > > > > > > Any hint why? > > > > > From marcos at BURKE.ATH.CX Thu Aug 9 05:19:26 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Thu, 9 Aug 2007 14:19:26 +0200 Subject: python mapscript filteritem not working In-Reply-To: <75b4b93e0708090501k66e21d93i23170d3c559619f3@mail.gmail.com> Message-ID: and there was much rejoicing ;-) El jue, 09-08-2007 a las 14:01 +0200, Umberto Nicoletti escribi?: > > On 8/9/07, Marcos S?nchez Provencio wrote: > > My mistake. I was modifying the layer after adding it to the map, so > I > > was dealing with the independent copy that never gets drawn. I > really > > think that this behavior is very confusing, especially to those used > to > > Python. > > This will change starting with mapserver 5 (out soon). No more > confusion ;-) > > Umberto > From bartvde at OSGIS.NL Thu Aug 9 05:31:02 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 9 Aug 2007 14:31:02 +0200 Subject: labelcache_map_edge_buffer Message-ID: Found it after reading the code a bit. I had to add PARTIALS FALSE to get it to work. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Bart van den Eijnden OSGIS Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] labelcache_map_edge_buffer Datum: 09/08/07 09:56 > Hi list, > > I am trying to use the map edge buffer, but it has no effect, labels are > placed closer than 100 pixels to the border of the image. How can this be? I > tried using both positive and negative values and added this to the WEB's From woodbri at SWOODBRIDGE.COM Thu Aug 9 06:05:29 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 9 Aug 2007 09:05:29 -0400 Subject: use of shp2tile and ogrtindex In-Reply-To: <46BAED26.6030005@oato.inaf.it> Message-ID: Antonio wrote: > Hi, > I am using shp2tile to split my huge shapefile , after that I use > ogrtindex to generate the tileindex. > So in my map file in the layer definition I set the keyword TILEINDEX at > this new tilendex shape just generated. > This work fine for the layer with TYPE POLYGON but doesn't work with > RASTER layer. > Some one could tell me why? > > thanks > > Antonio > I hope you are not trying to use shp2tile to tile rasters! :-0 As the name implies Shape 2 tiles is not the same as raster 2 tiles. gdal has tools that will let you do the equivalent to rasters. Also you need to use gdaltindex to build you tileindex for rasters. -Steve From marcos at BURKE.ATH.CX Thu Aug 9 05:37:35 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Thu, 9 Aug 2007 14:37:35 +0200 Subject: qix files Message-ID: Now that I've seen how kind you are... I get this warning I cannot ignore, since it comes up as an error: IOError at /simif/wms/mapserv/ msSearchDiskTree(): Unable to access file. Unable to open spatial index for /home/simif/src/simif/mapas/vardatos/PENINSULA_fc200708090001.4.shp.qix. In most cases you can safely ignore this message, otherwise check file names and permissions. Can I ignore the message (with some kind of ignore warnings flag)? Can I force it not to use qix file, no matter how slow it works? Alternatively, I have a shx file (some kind of index too, I guess), can I make it use that instead? Also, if I generate the qix file, mapbuilder either does not find PENINSULA_fc200708090001.4.shp (if i do not include .shp) or PENINSULA_fc200708090001.4.qix (if i do include it). Funny :-P Anything better than generating qix files and renaming them to .shp.qix? From flavio at TYDAC.CH Thu Aug 9 06:46:16 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 9 Aug 2007 15:46:16 +0200 Subject: qix files In-Reply-To: <1186663055.19050.10.camel@savin> Message-ID: Hi Marcos do NOT use a .shp extension in your mapfile (DATA section). this will solve it: LAYER NAME "Parcels" STATUS ON DATA "surveying/parcels" TYPE POLYGON CLASS COLOR 255 255 204 OUTLINECOLOR 0 0 0 END END Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Marcos S?nchez Provencio To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Thu, 9 Aug 2007 14:37:35 +0200 Subject: [UMN_MAPSERVER-USERS] qix files > Now that I've seen how kind you are... > > I get this warning I cannot ignore, since it comes up as an error: > IOError at /simif/wms/mapserv/ > msSearchDiskTree(): Unable to access file. Unable to open spatial > index > for > /home/simif/src/simif/mapas/vardatos/PENINSULA_fc200708090001.4.shp.q > ix. In most cases you can safely ignore this message, otherwise check > file names and permissions. > > Can I ignore the message (with some kind of ignore warnings flag)? > Can I > force it not to use qix file, no matter how slow it works? > > Alternatively, I have a shx file (some kind of index too, I guess), > can > I make it use that instead? > > Also, if I generate the qix file, mapbuilder either does not find > PENINSULA_fc200708090001.4.shp (if i do not include .shp) or > PENINSULA_fc200708090001.4.qix (if i do include it). Funny :-P > > Anything better than generating qix files and renaming them to > .shp.qix? From zhonghaiw at GMAIL.COM Thu Aug 9 06:57:16 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Thu, 9 Aug 2007 15:57:16 +0200 Subject: C# rectObj -- image rectangle and the method fit(x,y) In-Reply-To: Message-ID: Hi Tamas, thanks for your information. Seems that we must still suffer it. If we are really going to do something in 5.2 release, i propose that we should separate the rectObj into pixRectObj and geoRectObj. This may do what we need. Best Regards Zhonghai On 8/9/07, Tamas Szekeres wrote: > > Zhonghai, > > We have a bunch of tickets on this issue especially regarding to the > zoomRectangle function. On one day it have been corrected that maxy is > greater that miny but on the other day it have been reverted due to > some other reasons: > For more information see: > http://trac.osgeo.org/mapserver/ticket/1982 > http://trac.osgeo.org/mapserver/ticket/1988 > http://trac.osgeo.org/mapserver/ticket/1817 > > I personally would support having maxy greater than miny, but it seems > to be applied only for the 5.2 release. > > Best regards, > > Tamas > > > > 2007/8/8, Zhonghai Wang : > > Hi folks, > > > > I am using now the latest beta version MapServer C# wrapper. I remember > that > > creating an image rectangle object with the old version wrapper, it > should > > be done like because of the screen coordinate system: > > > > Dim tempRect As New rectObj(intMinX, intMinY, intMaxX, intMaxY, 0) > > Dim t As Integer = 0 > > Dim tc As Integer = 0 > > t = tempRect.miny > > tempRect.miny = tempRect.maxy > > tempRect.maxy = t > > > > Is this situation changed in the latest beta version? > > > > besides, i noticed that there is a fit(integer, integer) as double > method, > > I've tried to get the idea of this method in mailing list, but i didn't > get > > it. > > > > Could anyone you guys give me some hints? > > > > Cheers > > > > Zhonghai > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Thu Aug 9 06:58:29 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Thu, 9 Aug 2007 15:58:29 +0200 Subject: C# rectObj -- image rectangle and the method fit(x,y) In-Reply-To: <2534c4120708090657o4a325b6i2b332739601450af@mail.gmail.com> Message-ID: besides, how is the function "fit(integer, integer) as double" working? Cheers Zhonghai On 8/9/07, Zhonghai Wang wrote: > > Hi Tamas, > > thanks for your information. Seems that we must still suffer it. If we are > really going to do something in 5.2 release, i propose that we should > separate the rectObj into pixRectObj and geoRectObj. This may do what we > need. > > Best Regards > > Zhonghai > > On 8/9/07, Tamas Szekeres wrote: > > > > Zhonghai, > > > > We have a bunch of tickets on this issue especially regarding to the > > zoomRectangle function. On one day it have been corrected that maxy is > > greater that miny but on the other day it have been reverted due to > > some other reasons: > > For more information see: > > http://trac.osgeo.org/mapserver/ticket/1982 > > http://trac.osgeo.org/mapserver/ticket/1988 > > http://trac.osgeo.org/mapserver/ticket/1817 > > > > I personally would support having maxy greater than miny, but it seems > > to be applied only for the 5.2 release. > > > > Best regards, > > > > Tamas > > > > > > > > 2007/8/8, Zhonghai Wang < zhonghaiw at gmail.com>: > > > Hi folks, > > > > > > I am using now the latest beta version MapServer C# wrapper. I > > remember that > > > creating an image rectangle object with the old version wrapper, it > > should > > > be done like because of the screen coordinate system: > > > > > > Dim tempRect As New rectObj(intMinX, intMinY, intMaxX, intMaxY, 0) > > > Dim t As Integer = 0 > > > Dim tc As Integer = 0 > > > t = tempRect.miny > > > tempRect.miny = tempRect.maxy > > > tempRect.maxy = t > > > > > > Is this situation changed in the latest beta version? > > > > > > besides, i noticed that there is a fit(integer, integer) as double > > method, > > > I've tried to get the idea of this method in mailing list, but i > > didn't get > > > it. > > > > > > Could anyone you guys give me some hints? > > > > > > Cheers > > > > > > Zhonghai > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From volpicelli at OATO.INAF.IT Thu Aug 9 06:56:59 2007 From: volpicelli at OATO.INAF.IT (Antonio) Date: Thu, 9 Aug 2007 15:56:59 +0200 Subject: use of shp2tile and ogrtindex In-Reply-To: <46BB09E7.1070408@pobox.com> Message-ID: ---------------------------------------------- Hi Frank, You have right , "doesn't work" isn't much, here is what I did: I have already a big shape file with a .dbf with the field "location" that point the .tif images and others some columns of data. So using shpt2tile -q 4 -n 2 NGS54004L NGS54004smaller it generate me a bunch of smaller shapefiles. After that I used ogrtinedx NewTileindex NGS54004smaller* to generate a tileindex. No error and all work fine so far. I use NewTileindex in two map file. The first one is defined a layer TYPE POLYGON and in the second one TYPE RASTER The first one works fine , I can see what I saw before with the original shapefile. The second doesn't show me any images. I don't know but probably I have to use gdaltindex to generate tileindex for raster layers. The only problem is that gdaltindex use a .tif images and then I lost all the info stored in my previous .dbf file. Ciao Antonio Frank Warmerdam wrote: > Antonio wrote: >> Hi, >> I am using shp2tile to split my huge shapefile , after that I use >> ogrtindex to generate the tileindex. >> So in my map file in the layer definition I set the keyword TILEINDEX >> at this new tilendex shape just generated. >> This work fine for the layer with TYPE POLYGON but doesn't work with >> RASTER layer. >> Some one could tell me why? > > Antonio, > > What part of this process does not work for the raster layer? Are you > suggesting that you are breaking your raster tileindex shapefile into > a bunch of smaller shapefile tiles and then trying to create a tileindex > for that (two layers of tileindex) for your raster layer? > > I'd add that "doesn't work" isn't all that helpful. Is there any sort > of error message? > > Best regards, -- /-------------------------------------------------------\ PLEASE WARNING: E-mail is CHANGED volpicelli at oato.inaf.it /-------------------------------------------------------\ From volpicelli at OATO.INAF.IT Thu Aug 9 07:48:22 2007 From: volpicelli at OATO.INAF.IT (Antonio) Date: Thu, 9 Aug 2007 16:48:22 +0200 Subject: use of shp2tile and ogrtindex In-Reply-To: <46BB1119.1080209@swoodbridge.com> Message-ID: Hi Stephen, yes I was using shp2tile to tile raster. So I tried with gdaltindex and it works. but how I can generate tiles using gdal? I need some command like shp2tile applied to the raster shapefile. I am not able to find any gdal command that do that. Ciao Antonio Stephen Woodbridge wrote: > Antonio wrote: >> Hi, >> I am using shp2tile to split my huge shapefile , after that I use >> ogrtindex to generate the tileindex. >> So in my map file in the layer definition I set the keyword TILEINDEX >> at this new tilendex shape just generated. >> This work fine for the layer with TYPE POLYGON but doesn't work with >> RASTER layer. >> Some one could tell me why? >> >> thanks >> >> Antonio >> > I hope you are not trying to use shp2tile to tile rasters! :-0 > As the name implies Shape 2 tiles is not the same as raster 2 tiles. > gdal has tools that will let you do the equivalent to rasters. Also > you need to use gdaltindex to build you tileindex for rasters. > > -Steve -- /-------------------------------------------------------\ PLEASE WARNING: E-mail is CHANGED volpicelli at oato.inaf.it /-------------------------------------------------------\ From warmerdam at POBOX.COM Thu Aug 9 10:15:58 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 9 Aug 2007 13:15:58 -0400 Subject: use of shp2tile and ogrtindex In-Reply-To: <46BB1D2B.7000905@oato.inaf.it> Message-ID: Antonio wrote: > ---------------------------------------------- > > Hi Frank, > You have right , "doesn't work" isn't much, here is what I did: > I have already a big shape file with a .dbf with the field "location" > that point the .tif images and others some columns of data. > So using > shpt2tile -q 4 -n 2 NGS54004L NGS54004smaller > it generate me a bunch of smaller shapefiles. > After that I used > ogrtinedx NewTileindex NGS54004smaller* > to generate a tileindex. > No error and all work fine so far. > I use NewTileindex in two map file. The first one is defined a layer > TYPE POLYGON and in the second one TYPE RASTER > The first one works fine , I can see what I saw before with the original > shapefile. > The second doesn't show me any images. > > I don't know but probably I have to use gdaltindex to generate tileindex > for raster layers. > The only problem is that gdaltindex use a .tif images and then I lost > all the info stored in my previous .dbf file. Antonio, OK, as I understand it then you are essentially wanting to use a shapefile of raster footprints and file locations as a tileindex for a raster layer. But you have also broken this big file into tiles and tileindexed that. You can't directly use such a tileindexed tileindex in a raster layer's TILEINDEX - *but* you should be able to use the name of the polygon layer in the raster tileindex in which case things should work. This is the technique of using another layer as a tileindex and it can also be utilized to take advantage of an RDBMS or other file formats as the tileindex instead of using a shapefile. I will say I'm personally dubious that you could have a raster tileindex large enough to justify breaking it down this way. If you build a qix for the raster tileindex, surely the query would be fast enough unless it has millions of records (scary!) 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 gizagui at FI.UBA.AR Thu Aug 9 08:03:09 2007 From: gizagui at FI.UBA.AR (Gaston Izaguirre) Date: Thu, 9 Aug 2007 12:03:09 -0300 Subject: qix files Message-ID: Marcos, Check your mapfile for the definition of your vector layer: Shapefiles are native to MapServer, and therefore do not require the .shp extension in the DATA path of the LAYER. In fact, in order for MapServer to use the .qix extension you MUST NOT specify the extension, for example: LAYER ... DATA us_states #MapServer will search for us_states.qix and will use it ... END LAYER ... DATA us_states.shp #MapServer will search for us_states.shp.qix and won't find it ... END Extracted from http://mapserver.gis.umn.edu/docs/reference/utilityreference/shptree Saludos, Gaston. ----- Original Message ----- From: "Marcos S?nchez Provencio" To: Sent: Thursday, August 09, 2007 9:37 AM Subject: [UMN_MAPSERVER-USERS] qix files > Now that I've seen how kind you are... > > I get this warning I cannot ignore, since it comes up as an error: > IOError at /simif/wms/mapserv/ > msSearchDiskTree(): Unable to access file. Unable to open spatial index > for > /home/simif/src/simif/mapas/vardatos/PENINSULA_fc200708090001.4.shp.qix. > In most cases you can safely ignore this message, otherwise check file > names and permissions. > > Can I ignore the message (with some kind of ignore warnings flag)? Can I > force it not to use qix file, no matter how slow it works? > > Alternatively, I have a shx file (some kind of index too, I guess), can > I make it use that instead? > > Also, if I generate the qix file, mapbuilder either does not find > PENINSULA_fc200708090001.4.shp (if i do not include .shp) or > PENINSULA_fc200708090001.4.qix (if i do include it). Funny :-P > > Anything better than generating qix files and renaming them to .shp.qix? > From szekerest at GMAIL.COM Thu Aug 9 08:05:24 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 9 Aug 2007 17:05:24 +0200 Subject: C# rectObj -- image rectangle and the method fit(x,y) In-Reply-To: <2534c4120708090658h7a90d38cpa2308c1a782893f5@mail.gmail.com> Message-ID: Zhonghai, The method should adjust the extent of the rectangle so as to fit in the given image window. Returns cellsize of the output image. The actual implementation resides in msAdjustExtent (maputil.c) Best regards, Tamas 2007/8/9, Zhonghai Wang : > besides, how is the function "fit(integer, integer) as double" working? > > Cheers > > Zhonghai > > > On 8/9/07, Zhonghai Wang wrote: > > > > Hi Tamas, > > > > thanks for your information. Seems that we must still suffer it. If we are > really going to do something in 5.2 release, i propose that we should > separate the rectObj into pixRectObj and geoRectObj. This may do what we > need. > > > > Best Regards > > > > Zhonghai > > > > > > On 8/9/07, Tamas Szekeres wrote: > > > Zhonghai, > > > > > > We have a bunch of tickets on this issue especially regarding to the > > > zoomRectangle function. On one day it have been corrected that maxy is > > > greater that miny but on the other day it have been reverted due to > > > some other reasons: > > > For more information see: > > > http://trac.osgeo.org/mapserver/ticket/1982 > > > http://trac.osgeo.org/mapserver/ticket/1988 > > > http://trac.osgeo.org/mapserver/ticket/1817 > > > > > > I personally would support having maxy greater than miny, but it seems > > > to be applied only for the 5.2 release. > > > > > > Best regards, > > > > > > Tamas > > > > > > > > > > > > 2007/8/8, Zhonghai Wang < zhonghaiw at gmail.com>: > > > > Hi folks, > > > > > > > > I am using now the latest beta version MapServer C# wrapper. I > remember that > > > > creating an image rectangle object with the old version wrapper, it > should > > > > be done like because of the screen coordinate system: > > > > > > > > Dim tempRect As New rectObj(intMinX, intMinY, intMaxX, intMaxY, 0) > > > > Dim t As Integer = 0 > > > > Dim tc As Integer = 0 > > > > t = tempRect.miny > > > > tempRect.miny = tempRect.maxy > > > > tempRect.maxy = t > > > > > > > > Is this situation changed in the latest beta version? > > > > > > > > besides, i noticed that there is a fit(integer, integer) as double > method, > > > > I've tried to get the idea of this method in mailing list, but i > didn't get > > > > it. > > > > > > > > Could anyone you guys give me some hints? > > > > > > > > Cheers > > > > > > > > Zhonghai > > > > > > > > > > > > > From warmerdam at POBOX.COM Thu Aug 9 10:39:16 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 9 Aug 2007 13:39:16 -0400 Subject: use of shp2tile and ogrtindex In-Reply-To: <46BB2936.7020802@oato.inaf.it> Message-ID: Antonio wrote: > Hi Stephen, > yes I was using shp2tile to tile raster. > So I tried with gdaltindex and it works. > but how I can generate tiles using gdal? > I need some command like shp2tile applied to the raster shapefile. > I am not able to find any gdal command that do that. Ciao, There has been talk of a user contributed equivelent to shp2tile for GDAL on the gdal-dev mailing list. A suitable google query against the list archives might turn it up. But there is currently no supported utility for this task. 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 marcos at BURKE.ATH.CX Thu Aug 9 04:56:32 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Thu, 9 Aug 2007 13:56:32 +0200 Subject: python mapscript filteritem not working In-Reply-To: <75b4b93e0708090450x3361f592h70c3808cf0df2a5@mail.gmail.com> Message-ID: My mistake. I was modifying the layer after adding it to the map, so I was dealing with the independent copy that never gets drawn. I really think that this behavior is very confusing, especially to those used to Python. Thank you for your interest, anyway. I really appreciate the fast responses. El jue, 09-08-2007 a las 13:50 +0200, Umberto Nicoletti escribi?: > On 8/9/07, Marcos S?nchez Provencio wrote: > > It seems to be related to the fact that the connection is opened only > > once. is it possible to force reopening database connections? I am going > > to try using clone(). > > Clone makes a deep copy of the object, so it is not useful in your > case. Try to put the string in quotes (no double quotes, just two > single quotes), ie: > > self.capa.filteritem=''escala'' > > Umberto > > > > > El jue, 09-08-2007 a las 11:21 +0200, Marcos S?nchez Provencio escribi?: > > > Good morning (in Spain). This is my first post to the list. > > > > > > I have set up a django app that uses mapscript to serve maps (not using > > > http://code.djangoproject.com/wiki/GeoDjango whatsoever). > > > > > > I have a shp file with several layers of detail (wind predictions, > > > aggregated in 1x, 4x, 16x, etc.). I wanted to use filteritem and filter > > > to show only the level of desired detail. > > > > > > If I put > > > FILTERITEM escala > > > FILTER "16" > > > in a mapfile, it works as expected. > > > > > > but > > > > > > self.capa.filteritem='escala' > > > self.capa.setFilter('16') > > > does not. > > > > > > Any hint why? > > From volpicelli at OATO.INAF.IT Thu Aug 9 08:40:17 2007 From: volpicelli at OATO.INAF.IT (Antonio) Date: Thu, 9 Aug 2007 17:40:17 +0200 Subject: use of shp2tile and ogrtindex In-Reply-To: <46BB5144.7020900@pobox.com> Message-ID: Thanks Frank, I am going to try C# application TileCutter . Ciao Antonio Frank Warmerdam wrote: > Antonio wrote: >> Hi Stephen, >> yes I was using shp2tile to tile raster. >> So I tried with gdaltindex and it works. >> but how I can generate tiles using gdal? >> I need some command like shp2tile applied to the raster shapefile. >> I am not able to find any gdal command that do that. > > Ciao, > > There has been talk of a user contributed equivelent to shp2tile for > GDAL on the gdal-dev mailing list. A suitable google query against the > list archives might turn it up. But there is currently no supported > utility for this task. > > Best regards, -- /-------------------------------------------------------\ PLEASE WARNING: E-mail is CHANGED volpicelli at oato.inaf.it /-------------------------------------------------------\ From woodbri at SWOODBRIDGE.COM Thu Aug 9 12:09:36 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 9 Aug 2007 15:09:36 -0400 Subject: use of shp2tile and ogrtindex In-Reply-To: <46BB2936.7020802@oato.inaf.it> Message-ID: Antonio wrote: > Hi Stephen, > yes I was using shp2tile to tile raster. > So I tried with gdaltindex and it works. > but how I can generate tiles using gdal? > I need some command like shp2tile applied to the raster shapefile. > I am not able to find any gdal command that do that. > > Ciao Antonio Antonio, There is no single command that will do that today. I think what most people do is write a script to chop regular tiles out of the source tile. The script could be simple and just iterate over the extents of the source image(s) and chop tile out of that. It would call gdalwrap or maybe gdal_translate to do the actual chopping of the raster into smaller tiles. The script would just generate a sequence of commands that would then do the work. -Steve W > Stephen Woodbridge wrote: >> Antonio wrote: >>> Hi, >>> I am using shp2tile to split my huge shapefile , after that I use >>> ogrtindex to generate the tileindex. >>> So in my map file in the layer definition I set the keyword TILEINDEX >>> at this new tilendex shape just generated. >>> This work fine for the layer with TYPE POLYGON but doesn't work with >>> RASTER layer. >>> Some one could tell me why? >>> >>> thanks >>> >>> Antonio >>> >> I hope you are not trying to use shp2tile to tile rasters! :-0 >> As the name implies Shape 2 tiles is not the same as raster 2 tiles. >> gdal has tools that will let you do the equivalent to rasters. Also >> you need to use gdaltindex to build you tileindex for rasters. >> >> -Steve > From matt at CGFBROKERAGE.COM Thu Aug 9 13:01:42 2007 From: matt at CGFBROKERAGE.COM (Matt S.) Date: Thu, 9 Aug 2007 15:01:42 -0500 Subject: Selecting multiple polygons Message-ID: Okay have a few questions and hope I can get a bit of help. First off I'm pretty new to all these different programming languages so if you are too technical in your response I might not understand. I have a map that I am trying to turn into an interactive search template. Basically I want to be able to have the user be able to click on a polygon and the webpage will bring up a result from our database. I would need to have the option of allowing the user to select multiple polygons and then having a submit or search button and then have the webpage display the results from all of those polygons. Just a general point in the right direction would be a great help. Thanks, Matt From David.Fawcett at STATE.MN.US Thu Aug 9 13:19:06 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 9 Aug 2007 15:19:06 -0500 Subject: Selecting multiple polygons In-Reply-To: A Message-ID: Matt, You are going to have to write some javascript to do what you want to do. Here is a demo example that might help you get there: http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_ma ps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap =true David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Matt S. Sent: Thursday, August 09, 2007 3:02 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Selecting multiple polygons Okay have a few questions and hope I can get a bit of help. First off I'm pretty new to all these different programming languages so if you are too technical in your response I might not understand. I have a map that I am trying to turn into an interactive search template. Basically I want to be able to have the user be able to click on a polygon and the webpage will bring up a result from our database. I would need to have the option of allowing the user to select multiple polygons and then having a submit or search button and then have the webpage display the results from all of those polygons. Just a general point in the right direction would be a great help. Thanks, Matt From gregcoats at MAC.COM Thu Aug 9 13:34:49 2007 From: gregcoats at MAC.COM (Greg Coats) Date: Thu, 9 Aug 2007 16:34:49 -0400 Subject: image pyramid viewing software Message-ID: For 100 large metropolitan areas, I have created separate reduced- resolution GeoTIFF images at 120, 60, 30, 15, 7.5, 3.75, and 1.875 meters resolution. I want to be able to zoom in, zoom out, and pan through this imagery, and have MapServer display's at any given time be from the GeoTIFF that is most appropriate, based on the current zoom. How can this be done with MapServer? Greg From rainer.spittel at TERRALINK.CO.NZ Thu Aug 9 15:02:37 2007 From: rainer.spittel at TERRALINK.CO.NZ (Rainer Spittel) Date: Thu, 9 Aug 2007 17:02:37 -0500 Subject: MS 5.0b3 - AGG compile errors Message-ID: Hi guys, I am pretty keen on the new version of the mapserver. Currently I use Mapnik in the backend to render my vector base maps and I would love to get my architecture less complex ( Apache -> UMN Mapserver -> CherryPy -> Mapnik ;-) ). Anyway, I struggle with the compilition of the beta 3 version on fedora 5 with AGG. I got AGG 2.5 (and 2.4, too) and tried to run automake to compile the AGG library - I don't see any major changes or new .so objects in my system. So I tried to comile AGG with 'make all' (source code is in /usr/local/src/agg-2.5/ ). Later I run configure of the mapserver 5.0b3: ./configure --without-tiff --with-eppl --with-jpeg=/usr [...] --with-agg=/usr/local/src/agg-2.5/ make Finally, in compiling shp2img I get following error message: g++ -g -O2 -fPIC -Wall -DENABLE_STDERR_DEBUG -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_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_AGG -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -DUSE_POSTGIS -DUSE_THREAD -DUSE_ZLIB -I/usr//include -I/usr/local/src/agg-2.5//include -I/usr/local/src/agg-2.5//font_freetype -I/usr/include/freetype2 -I/usr/local//include -I/usr/include -I/usr/local/include -I/usr/include shp2img.o -Wl,-rpath,/usr//lib -Wl,-rpath,/usr/local/src/agg-2.5//src -Wl,-rpath,/usr/local//lib -Wl,-rpath,/usr/local/src/mapserver-5.0.0-beta3 -L. -lmapserver -L/usr//lib -lgd -L/usr/lib -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -L/usr/local/src/agg-2.5//src -lagg -laggfontfreetype -L/usr/lib -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -L/usr/local//lib -lproj -L/usr/lib -ljpeg -L/usr/local/lib -lgdal -L/usr/local/lib -lgeos -lgeos_c -L/usr/local//lib -lxerces-c -lpthread -L/usr/local/GeoExpressSDK//lib/Release -L/usr/local/GeoExpressSDK//3rd-party/lib/Release -lltidsdk -lpthread -lltikdu -ljpeg -ltiff -lpng -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl -L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lkrb5support -lcom_err -lresolv -lidn -lssl -lcrypto -lz -L/usr/lib -lpq -L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lkrb5support -lcom_err -lresolv -lidn -lssl -lcrypto -lz -lpthread -lc -lz -lm -lstdc++ -o shp2img /usr/bin/ld: cannot find -laggfontfreetype collect2: ld returned 1 exit status make: *** [shp2img] Error 1 Hmmm, indeed the header file (agg_font_freetype.h) is in a subfolder (/usr/local/src/agg-2.5/font_freetype). Any ideas what I have to do to get AGG in place so that the UMN can be compiled against the AGG version on FEDORA? Looking foreward hearing from you. Rainer From gregor at HOSTGIS.COM Thu Aug 9 15:07:20 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 9 Aug 2007 16:07:20 -0600 Subject: MS 5.0b3 - AGG compile errors In-Reply-To: Message-ID: Rainer Spittel wrote: > /usr/bin/ld: cannot find -laggfontfreetype That's the clue there. Does libaggfontfreetype.so exist? If not, does AGG require a flag to link with Freetype? I know that GD finds Freetype automagically, but I dunno about AGG. After installing AGG, did you make sure that the lib directory it installed into (/usr/local/lib?) is listed in /etc/ld.so.conf or a file in /etc/ld.so.conf.d, and did you run "ldconfig" to have the linker search for new libs? -- Gregor Mosheh / Greg Allensworth 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 Thu Aug 9 15:21:41 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 9 Aug 2007 16:21:41 -0600 Subject: MS 5.0b3 - AGG compile errors In-Reply-To: <12B8F225666F99489CEFA8B3F261540CFAAAC2@geneva.local.terralink> Message-ID: Rainer Spittel wrote: > Ok, the libaggfontfreetype.so does not exist and a lib folder under my > agg folder doesn't exist, too. I assume that the compiling of AGG > failed. > Any ideas how I can tell AGG to pick up those libraries? > The directive --with-freetype or similar does not exist... :-( That's something you'll want to take up with the AGG mailing list. -- Gregor Mosheh / Greg Allensworth 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 ed at TOPOZONE.COM Thu Aug 9 17:11:50 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 9 Aug 2007 20:11:50 -0400 Subject: image pyramid viewing software In-Reply-To: A Message-ID: Greg - You create a map file with one LAYER for each resolution, all members of one GROUP with the same name, and each layer having a MINSCALE and MAXSCALE setting so only one layer of the group at a time is displayed. If you're not familiar with those capitalized keywords you should do some reading on them - you can also find other discussions in the archives on this topic by searching on those keywords. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: 978-251-4242, Fax: 978-251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Greg Coats Sent: Thursday, August 09, 2007 4:35 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] image pyramid viewing software For 100 large metropolitan areas, I have created separate reduced- resolution GeoTIFF images at 120, 60, 30, 15, 7.5, 3.75, and 1.875 meters resolution. I want to be able to zoom in, zoom out, and pan through this imagery, and have MapServer display's at any given time be from the GeoTIFF that is most appropriate, based on the current zoom. How can this be done with MapServer? Greg From woodbri at SWOODBRIDGE.COM Thu Aug 9 17:41:54 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 9 Aug 2007 20:41:54 -0400 Subject: MS 5.0b3 - AGG compile errors In-Reply-To: Message-ID: I created this Ticket #2215: HowTo Build AGG with freetype support from sources, http://trac.osgeo.org/mapserver/ticket/2215 Have a look it probably will help you for Linux and Jeff added some info on Windows. You will need to follow this if you do not install AGG as a distro package. -Steve W Rainer Spittel wrote: > Hi guys, > > I am pretty keen on the new version of the mapserver. Currently I use Mapnik > in the backend to render my vector base maps and I would love to get my > architecture less complex ( Apache -> UMN Mapserver -> CherryPy -> Mapnik ;-) ). > Anyway, I struggle with the compilition of the beta 3 version on fedora 5 > with AGG. > > I got AGG 2.5 (and 2.4, too) and tried to run automake to compile the AGG > library - I don't see any major changes or new .so objects in my system. > > So I tried to comile AGG with 'make all' (source code is in > /usr/local/src/agg-2.5/ ). > Later I run configure of the mapserver 5.0b3: > > ./configure --without-tiff --with-eppl --with-jpeg=/usr [...] > --with-agg=/usr/local/src/agg-2.5/ > make > > Finally, in compiling shp2img I get following error message: > > g++ -g -O2 -fPIC -Wall -DENABLE_STDERR_DEBUG -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_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR > -DGD_HAS_GETBITMAPFONTS -DUSE_AGG -DUSE_OGR -DUSE_GDAL -DUSE_ICONV > -DUSE_POSTGIS -DUSE_THREAD -DUSE_ZLIB -I/usr//include > -I/usr/local/src/agg-2.5//include -I/usr/local/src/agg-2.5//font_freetype > -I/usr/include/freetype2 -I/usr/local//include -I/usr/include > -I/usr/local/include -I/usr/include shp2img.o -Wl,-rpath,/usr//lib > -Wl,-rpath,/usr/local/src/agg-2.5//src -Wl,-rpath,/usr/local//lib > -Wl,-rpath,/usr/local/src/mapserver-5.0.0-beta3 -L. -lmapserver -L/usr//lib > -lgd -L/usr/lib -ljpeg -lfreetype -lpng -lz -lXpm -lX11 > -L/usr/local/src/agg-2.5//src -lagg -laggfontfreetype -L/usr/lib -ljpeg > -lfreetype -lpng -lz -lXpm -lX11 -L/usr/local//lib -lproj -L/usr/lib -ljpeg > -L/usr/local/lib -lgdal -L/usr/local/lib -lgeos -lgeos_c -L/usr/local//lib > -lxerces-c -lpthread -L/usr/local/GeoExpressSDK//lib/Release > -L/usr/local/GeoExpressSDK//3rd-party/lib/Release -lltidsdk -lpthread > -lltikdu -ljpeg -ltiff -lpng -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl > -L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto > -lkrb5support -lcom_err -lresolv -lidn -lssl -lcrypto -lz -L/usr/lib -lpq > -L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto > -lkrb5support -lcom_err -lresolv -lidn -lssl -lcrypto -lz -lpthread -lc > -lz -lm -lstdc++ -o shp2img > /usr/bin/ld: cannot find -laggfontfreetype > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > Hmmm, indeed the header file (agg_font_freetype.h) is in a subfolder > (/usr/local/src/agg-2.5/font_freetype). Any ideas what I have to do to get > AGG in place so that the UMN can be compiled against the AGG version on FEDORA? > > Looking foreward hearing from you. > > Rainer From gregor at HOSTGIS.COM Thu Aug 9 18:23:26 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 9 Aug 2007 19:23:26 -0600 Subject: Labels: minfeaturesize causes labels not to display? Message-ID: The documentation describes that "minfeaturesize auto" will cause a feature's label to be drawn only if it can fit within the polygon, and we have turned it on for this polygon layer. These screenshots show that the labelling behavior is now inconsistent. In these, there is obviously plenty of room for labels, but it chooses not to label. http://maps.hostgis.com/gregor/ticket261a.jpg http://maps.hostgis.com/gregor/ticket261c.jpg It shows up if we zoom in a bit: http://maps.hostgis.com/gregor/ticket261b.jpg Using PHP/Mapscript, the label-related code is as follows: $maplayer->set('labelitem',$labelitem); $class->label->color->setRGB(0,0,0); $class->label->outlinecolor->setRGB(200,200,200); $class->label->set('position',MS_CC); $class->label->set('angle',0); $class->label->set('size',7); $class->label->set('type',MS_TRUETYPE); $class->label->set('font','Vera'); $class->label->set('mindistance',1); $class->label->set('buffer',1); $class->label->set('partials',MS_TRUE); $class->label->set('minfeaturesize',MS_AUTO); $class->label->set('autominfeaturesize',MS_TRUE); Any thoughts? Basically, we want as many labels as possible without collisions, but with each label constrained to its polygon. -- Gregor Mosheh / Greg Allensworth 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 woklist at KYNGCHAOS.COM Thu Aug 9 21:23:13 2007 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Thu, 9 Aug 2007 23:23:13 -0500 Subject: MS 5.0b3 - AGG compile errors In-Reply-To: <46BBB452.5030709@swoodbridge.com> Message-ID: Ah, I'm not alone on OSX on the messy AGG+FreeType build. I added my OSX version to that ticket. On Aug 9, 2007, at 7:41 PM, Stephen Woodbridge wrote: > I created this Ticket #2215: HowTo Build AGG with freetype support > from sources, http://trac.osgeo.org/mapserver/ticket/2215 > > Have a look it probably will help you for Linux and Jeff added some > info on Windows. You will need to follow this if you do not install > AGG as a distro package. > > -Steve W > ----- 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 johannes.krzyzanowski at LGB-RLP.DE Fri Aug 10 00:04:26 2007 From: johannes.krzyzanowski at LGB-RLP.DE (Johannes Krzyzanowski) Date: Fri, 10 Aug 2007 09:04:26 +0200 Subject: GeoJPEG2000-Images Message-ID: Hi, we are running UMN-Mapserver on SLES 10 SP1 in 64-Bit with Geo-Jasper-libraries from GDAL (jasper-1.900.1.uuid). Everything is fine, but the display of GeoJPEG2000-Images in Mapsever does not work. gdalinfo with the JPEG2000-File is OK (see below). Mapserver error is: msDrawRaster(): Unrecognized or unsupported image format drawEPP(): /shares/www/mapserver/htdocs/data/altbergbau/00054_rec3_kompl.jp2 is not an EPPL file. UNIX-ldd shows, that gdalinfo and mapserv are using the same libraries. Any suggestions ??? Best regards, Johannes Krzyzanowski gdalinfo: pilosa:/usr/local/httpd/cgi-bin # gdalinfo /shares/www/mapserver/htdocs/data/altbergbau/00054_rec3_kompl.jp2 Driver: JPEG2000/JPEG-2000 part 1 (ISO/IEC 15444-1) Size is 10461, 7425 Coordinate System is: PROJCS[" Projection Name = Transverse Mercator Units = meters GeoTIFF Units = meters", GEOGCS[" Unable to match Ellipsoid (Datum) to a GeographicTypeGeoKey value Ellipsoid = Bessel Datum = DE_DHDN (whole country, 2001) to ETRS89", DATUM["unknown", SPHEROID["unnamed",6377397.155,299.1528131060786]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",9], PARAMETER["scale_factor",1], PARAMETER["false_easting",3500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]]] Origin = (3410838.000000000000000,5505685.000000000000000) Pixel Size = (2.000000000000000,-2.000000000000000) Corner Coordinates: Upper Left ( 3410838.000, 5505685.000) ( 7d45'51.62"E, 49d40'56.44"N) Lower Left ( 3410838.000, 5490835.000) ( 7d46'3.76"E, 49d32'55.83"N) Upper Right ( 3431760.000, 5505685.000) ( 8d 3'15.27"E, 49d41'6.27"N) Lower Right ( 3431760.000, 5490835.000) ( 8d 3'24.56"E, 49d33'5.62"N) Center ( 3421299.000, 5498260.000) ( 7d54'38.79"E, 49d37'1.36"N) Band 1 Block=10461x7425 Type=Byte, ColorInterp=Red Band 2 Block=10461x7425 Type=Byte, ColorInterp=Green Band 3 Block=10461x7425 Type=Byte, ColorInterp=Blue Logfile php.log [09-Aug-2007 16:38:16] PHP Warning: [MapServer Error]: msDrawRaster(): Unrecognized or unsupported image format in /shares/www/mapserver/htdocs/geobasis_enwicklung/incphp/map.php on line 325 [09-Aug-2007 16:38:16] PHP Warning: [MapServer Error]: drawEPP(): /shares/www/mapserver/htdocs/data/altbergbau/00054_rec3_kompl.jp2 is not an EPPL file. in /shares/www/mapserver/htdocs/geobasis_enwicklung/incphp/map.php on line 325 [09-Aug-2007 16:38:16] PHP Fatal error: Call to a member function saveWebImage() on a non-object in /shares/www/mapserver/htdocs/geobasis_enwicklung/incphp/map.php on line 347 ldd: pilosa:/ # ldd /usr/local/httpd/cgi-bin/mapserv | sort /lib64/ld-linux-x86-64.so.2 (0x00002b53d764e000) libICE.so.6 => /usr/X11R6/lib64/libICE.so.6 (0x00002b53dbd5c000) libSM.so.6 => /usr/X11R6/lib64/libSM.so.6 (0x00002b53dbc52000) libX11.so.6 => /usr/X11R6/lib64/libX11.so.6 (0x00002b53d7ebd000) libXext.so.6 => /usr/X11R6/lib64/libXext.so.6 (0x00002b53db913000) libXpm.so.4 => /usr/X11R6/lib64/libXpm.so.4 (0x00002b53d7dac000) libc.so.6 => /lib64/libc.so.6 (0x00002b53db354000) libclntsh.so.10.1 => /opt/oracle/product/10.2/prod/lib/libclntsh.so.10.1 (0x00002b53d86fa000) libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00002b53dc484000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00002b53dbfef000) libcrypto.so.0.9.8 => /usr/lib64/libcrypto.so.0.9.8 (0x00002b53dad9d000) libcurl.so.3 => /usr/lib64/libcurl.so.3 (0x00002b53da9ed000) libdl.so.2 => /lib64/libdl.so.2 (0x00002b53da8e9000) libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00002b53dc23d000) libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00002b53db693000) libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002b53d79e0000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b53db586000) libgd.so.2 => /usr/local/lib/libgd.so.2 (0x00002b53d776a000) libgdal.so => /usr/local/lib/libgdal.so (0x00002b53d820c000) libgeotiff.so => /usr/local/lib/libgeotiff.so (0x00002b53da437000) libgif.so.4 => /usr/lib64/libgif.so.4 (0x00002b53da32d000) libidn.so.11 => /usr/lib64/libidn.so.11 (0x00002b53dab26000) libjasper.so.1 => /usr/local/lib/libjasper.so.1 (0x00002b53da1d7000) libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002b53d78bf000) libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x00002b53dc360000) libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x00002b53dbe78000) libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x00002b53dc586000) libm.so.6 => /lib64/libm.so.6 (0x00002b53db001000) libnnz10.so => /opt/oracle/product/10.2/prod/lib/libnnz10.so (0x00002b53d9ac1000) libnsl.so.1 => /lib64/libnsl.so.1 (0x00002b53dbb3c000) libodbc.so.1 => /usr/lib64/libodbc.so.1 (0x00002b53d9f64000) libodbcinst.so.1 => /usr/lib64/libodbcinst.so.1 (0x00002b53da0c6000) libpng.so.3 => /usr/lib64/libpng.so.3 (0x00002b53d7b5c000) libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00002b53db7d6000) libpq.so.4 => /usr/lib64/libpq.so.4 (0x00002b53da6bd000) libproj.so.0 => /usr/local/lib/libproj.so.0 (0x00002b53d80cb000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b53dba24000) libresolv.so.2 => /lib64/libresolv.so.2 (0x00002b53dc128000) librt.so.1 => /lib64/librt.so.1 (0x00002b53da7e0000) libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00002b53dac57000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002b53db156000) libtiff.so.3 => /usr/lib64/libtiff.so.3 (0x00002b53da564000) libz.so.1 => /lib64/libz.so.1 (0x00002b53d7c98000) pilosa:/ # ldd /usr/local/bin/gdalinfo | sort /lib64/ld-linux-x86-64.so.2 (0x00002b595d9d8000) libICE.so.6 => /usr/X11R6/lib64/libICE.so.6 (0x00002b5961624000) libSM.so.6 => /usr/X11R6/lib64/libSM.so.6 (0x00002b596151a000) libX11.so.6 => /usr/X11R6/lib64/libX11.so.6 (0x00002b5961740000) libc.so.6 => /lib64/libc.so.6 (0x00002b59610bb000) libclntsh.so.10.1 => /opt/oracle/product/10.2/prod/lib/libclntsh.so.10.1 (0x00002b595dfe1000) libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00002b5961e37000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00002b5961ac5000) libcrypto.so.0.9.8 => /usr/lib64/libcrypto.so.0.9.8 (0x00002b59609f7000) libcurl.so.3 => /usr/lib64/libcurl.so.3 (0x00002b5960647000) libdl.so.2 => /lib64/libdl.so.2 (0x00002b5960542000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b5960fae000) libgdal.so => /usr/local/lib/libgdal.so (0x00002b595daf4000) libgeotiff.so => /usr/local/lib/libgeotiff.so (0x00002b595fe3f000) libgif.so.4 => /usr/lib64/libgif.so.4 (0x00002b595fc15000) libidn.so.11 => /usr/lib64/libidn.so.11 (0x00002b596077f000) libjasper.so.1 => /usr/local/lib/libjasper.so.1 (0x00002b595fabe000) libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002b595fd1e000) libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x00002b5961d13000) libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x00002b596194e000) libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x00002b5961f39000) libm.so.6 => /lib64/libm.so.6 (0x00002b5960e58000) libnnz10.so => /opt/oracle/product/10.2/prod/lib/libnnz10.so (0x00002b595f3a8000) libnsl.so.1 => /lib64/libnsl.so.1 (0x00002b5961404000) libodbc.so.1 => /usr/lib64/libodbc.so.1 (0x00002b595f84c000) libodbcinst.so.1 => /usr/lib64/libodbcinst.so.1 (0x00002b595f9ad000) libpng.so.3 => /usr/lib64/libpng.so.3 (0x00002b59600c6000) libpq.so.4 => /usr/lib64/libpq.so.4 (0x00002b5960202000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b59612ec000) libresolv.so.2 => /lib64/libresolv.so.2 (0x00002b5961bff000) librt.so.1 => /lib64/librt.so.1 (0x00002b5960439000) libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00002b59608b0000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002b5960c5a000) libtiff.so.3 => /usr/lib64/libtiff.so.3 (0x00002b595ff6d000) libz.so.1 => /lib64/libz.so.1 (0x00002b5960325000) -------------- next part -------------- A non-text attachment was scrubbed... Name: johannes.krzyzanowski.vcf Type: text/x-vcard Size: 310 bytes Desc: not available URL: From marcos at BURKE.ATH.CX Fri Aug 10 01:17:18 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Fri, 10 Aug 2007 10:17:18 +0200 Subject: qix files In-Reply-To: <008101c7da96$797d68c0$0200a8c0@Vitsuba> Message-ID: Sadly, there is a dot in the file name, so the .shp won't be appended automatically, as I said. Since there is not an obvious solution, I am migrating to PostGIS. I already had part of the data in pg, so the change is minimal, and I am a database person anyway. It will be easier to use Django GIS when it is ready too. Thank you for the responses. El jue, 09-08-2007 a las 12:03 -0300, Gaston Izaguirre escribi?: > Marcos, > > Check your mapfile for the definition of your vector layer: > Shapefiles are native to MapServer, and therefore do not require the .shp > extension in the DATA path of the LAYER. > > In fact, in order for MapServer to use the .qix extension you MUST NOT > specify the extension, for example: > > LAYER > ... > DATA us_states #MapServer will search for us_states.qix and will use it > ... > END > > LAYER > ... > DATA us_states.shp #MapServer will search for us_states.shp.qix and > won't find it > ... > END > > Extracted from > http://mapserver.gis.umn.edu/docs/reference/utilityreference/shptree > > Saludos, > Gaston. > > > > ----- Original Message ----- > From: "Marcos S?nchez Provencio" > To: > Sent: Thursday, August 09, 2007 9:37 AM > Subject: [UMN_MAPSERVER-USERS] qix files > > > > Now that I've seen how kind you are... > > > > I get this warning I cannot ignore, since it comes up as an error: > > IOError at /simif/wms/mapserv/ > > msSearchDiskTree(): Unable to access file. Unable to open spatial index > > for > > /home/simif/src/simif/mapas/vardatos/PENINSULA_fc200708090001.4.shp.qix. > > In most cases you can safely ignore this message, otherwise check file > > names and permissions. > > > > Can I ignore the message (with some kind of ignore warnings flag)? Can I > > force it not to use qix file, no matter how slow it works? > > > > Alternatively, I have a shx file (some kind of index too, I guess), can > > I make it use that instead? > > > > Also, if I generate the qix file, mapbuilder either does not find > > PENINSULA_fc200708090001.4.shp (if i do not include .shp) or > > PENINSULA_fc200708090001.4.qix (if i do include it). Funny :-P > > > > Anything better than generating qix files and renaming them to .shp.qix? > > From andreas.albarello at TERRITORIUMONLINE.COM Fri Aug 10 01:57:07 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Fri, 10 Aug 2007 10:57:07 +0200 Subject: MS 5.0b3 - AGG compile errors In-Reply-To: <46BBB452.5030709@swoodbridge.com> Message-ID: Stephen Woodbridge wrote: > > I created this Ticket #2215: HowTo Build AGG with freetype support from > sources, http://trac.osgeo.org/mapserver/ticket/2215 > > Have a look it probably will help you for Linux and Jeff added some info > on Windows. You will need to follow this if you do not install AGG as a > distro package. > > -Steve W I can't for the life of me find the Windows makefile.vc Jeff is talking about in the info he added to the ticket. Neither the agg-2.4 nor the agg-2.5 source downloads seem to contain any such file and a Google search turns up nothing either. Am I missing something here? Any help is greatly appreciated. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi Str. 12 I 39100 Bolzano/Bozen Phone: +39 0471 068611 Fax: +39 0471 068619 email: andreas.albarello at territoriumonline.com web: http://www.territoriumonline.com -------------------------------------------------------------------- From lged_morris at HOTMAIL.COM Fri Aug 10 05:23:42 2007 From: lged_morris at HOTMAIL.COM (=?iso-8859-1?B?TGFycy1H9nJhbiBFZGhvbG0=?=) Date: Fri, 10 Aug 2007 14:23:42 +0200 Subject: HTML legends Mapserver 5 beta 3 working again Message-ID: Thanks for fixing HTML legends in Mapserver 5 beta 3. Html legends worked fine in Mapserver 4.6 but not in newer versions when to many layers was opened. I have now tested witrh very many layers open and the legend works fine. Lars-G?ran Edholm _________________________________________________________________ Sommarens kl?dmode p? MSN http://salongk.msn.se/ From lged_morris at HOTMAIL.COM Fri Aug 10 05:33:46 2007 From: lged_morris at HOTMAIL.COM (=?iso-8859-1?B?TGFycy1H9nJhbiBFZGhvbG0=?=) Date: Fri, 10 Aug 2007 14:33:46 +0200 Subject: Mapserver 5 beta 3 virtual layer problem Message-ID: Hi again. I found problems with virtual layers in Mapserver 5 beta 3. One thread will not exit. The map udates but the following text is written in the bottom of the browser window and the browser continue to update 10 seconds after the map is displayed: "Error in my_thread_global_end(): 1 threads didn't exit " In the map file I'm using: . . LAYER metadata WMS_TITLE "BMN diar" end group "BMN" NAME "Arendepkt" TYPE POINT CONNECTIONTYPE OGR connection "C:/Iis-Webbplatser/BoM/Byggmiljo/kartor/skikt/diarie/egen.ovf" work? DATA "Arendepkt" STATUS ON maxscale 60000 minscale 0 Labelitem "?rendetext" labelmaxscale 10000 labelminscale 0 CLASS SYMBOL "star" SIZE 16 COLOR 255 255 0 TEXT ([F?rvaltning][Dnrl?p]/[?r] [?rendetext]) label angle AUTO antialias true backgroundcolor 255 255 0 color 0 0 0 font "arial" minsize 8 maxsize 12 mindistance 800 partials TRUE position AUTO size 10 type TRUETYPE end END end . . and the egen.ovf-file: ODBC:bom/mob at BmndiarWeb Arendepkt wkbPoint Lars-G?ran Edholm _________________________________________________________________ Allt om m?ktiga Live Earth http://liveearth.se.msn.com/ From Andreas-Alexander.Maul at BGR.DE Fri Aug 10 06:33:39 2007 From: Andreas-Alexander.Maul at BGR.DE (Maul, Andreas-Alexander) Date: Fri, 10 Aug 2007 15:33:39 +0200 Subject: AW: [UMN_MAPSERVER-USERS] Mapserver 5 beta 3 virtual layer problem In-Reply-To: A Message-ID: Hi Lars, see PHP Bug: http://bugs.php.net/bug.php?id=41350 Regards, Andreas -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Lars-G?ran Edholm Gesendet: Freitag, 10. August 2007 14:34 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] Mapserver 5 beta 3 virtual layer problem Hi again. I found problems with virtual layers in Mapserver 5 beta 3. One thread will not exit. The map udates but the following text is written in the bottom of the browser window and the browser continue to update 10 seconds after the map is displayed: "Error in my_thread_global_end(): 1 threads didn't exit " In the map file I'm using: . . LAYER metadata WMS_TITLE "BMN diar" end group "BMN" NAME "Arendepkt" TYPE POINT CONNECTIONTYPE OGR connection "C:/Iis-Webbplatser/BoM/Byggmiljo/kartor/skikt/diarie/egen.ovf" work? DATA "Arendepkt" STATUS ON maxscale 60000 minscale 0 Labelitem "?rendetext" labelmaxscale 10000 labelminscale 0 CLASS SYMBOL "star" SIZE 16 COLOR 255 255 0 TEXT ([F?rvaltning][Dnrl?p]/[?r] [?rendetext]) label angle AUTO antialias true backgroundcolor 255 255 0 color 0 0 0 font "arial" minsize 8 maxsize 12 mindistance 800 partials TRUE position AUTO size 10 type TRUETYPE end END end . . and the egen.ovf-file: ODBC:bom/mob at BmndiarWeb Arendepkt wkbPoint Lars-G?ran Edholm _________________________________________________________________ Allt om m?ktiga Live Earth http://liveearth.se.msn.com/ From aguiera at GMAIL.COM Fri Aug 10 07:00:56 2007 From: aguiera at GMAIL.COM (Anderson Guiera) Date: Fri, 10 Aug 2007 11:00:56 -0300 Subject: Java Mapscript error. Message-ID: Hi list!!!! I would like to say that i solve this problem, which i posted last August, 7th. Even seted up the environment path as follow PATH=c:\ms4w\Apache\cgi-bin;c:\ms4w\tools\gdal-ogr;c:\ms4w\tools\mapserv;c:\ms4w \tools\shapelib;c:\ms4w\proj\bin;c:\ms4w\tools\shp2tile;c:\ms4w\tools\shpdiff;c: \ms4w\tools\avce00;c:\ms4w\Apache\cgi-bin\mapscript\java;C:\Notes\;C:\Notes\Data \;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Starb ase\StarGate SDK\Lib;C:\Arquivos de programas\Rational\common;C:\Apl\oracle\ora9 0\bin;C:\Apl\oracle\ora90;C:\Arquivos de programas\Borland\StarTeam SDK 2005\Lib ;C:\Arquivos de programas\Borland\StarTeam SDK 2005\Bin;C:\Arquivos de programas \Java\jdk1.5.0_01\bin;C:\Arquivos de programas\VoiceAge\Common;C:\Arquivos de pr ogramas\Borland\StarTeam SDK 2006\Lib;C:\Arquivos de programas\Borland\StarTeam SDK 2006\Bin;O:\SDS;W:\UTIL;O:\SDS;W:\UTIL the files libpq.dll, mpr.dll and pdflib.dll was referenced in C:\windows\system32. I've replaced their extension to .old, then Java mapscript started to work, because the new reference to this files is c:\ms4w\Apache\cgi-bin. This is a temporary fix, if you have any sugestion to improve this solution it'll welcome. Best regards Anderson Guiera. -------------- next part -------------- An HTML attachment was scrubbed... URL: From volpicelli at OATO.INAF.IT Fri Aug 10 07:35:43 2007 From: volpicelli at OATO.INAF.IT (Antonio) Date: Fri, 10 Aug 2007 16:35:43 +0200 Subject: command line tool to extract georef from gtif Message-ID: Hi, Is there anybody that know if exist a command line tool to extract the geo referencing coordinate from a GTiff image? I need to create external referencing files. thanks Ciao Antonio -- /-------------------------------------------------------\ PLEASE WARNING: E-mail is CHANGED volpicelli at oato.inaf.it /-------------------------------------------------------\ From David.Fawcett at STATE.MN.US Fri Aug 10 07:55:06 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 10 Aug 2007 09:55:06 -0500 Subject: command line tool to extract georef from gtif In-Reply-To: A<46BC77BF.6060502@oato.inaf.it> Message-ID: Antonio, Have you tried GDAL from Frank's FWTools package? http://fwtools.maptools.org/ gdalinfo should give you the information that you are looking for. http://www.gdal.org/gdalinfo.html David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Antonio Sent: Friday, August 10, 2007 9:36 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] command line tool to extract georef from gtif Hi, Is there anybody that know if exist a command line tool to extract the geo referencing coordinate from a GTiff image? I need to create external referencing files. thanks Ciao Antonio -- /-------------------------------------------------------\ PLEASE WARNING: E-mail is CHANGED volpicelli at oato.inaf.it /-------------------------------------------------------\ From ed at TOPOZONE.COM Fri Aug 10 07:58:06 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 10 Aug 2007 10:58:06 -0400 Subject: command line tool to extract georef from gtif In-Reply-To: <46BC77BF.6060502@oato.inaf.it> Message-ID: Antonio - The listgeo tool (part of the geotiff distribution) can be used with the -tfw option to create an ESRI-format world file from a GeoTIFF. You can just use: listgeo -tfw myfile.tif And the file myfile.tfw will be generated. Listgeo without the -tfw parameter will provide a full-text description of the georeference data, which is more complete than the ESRI-format information. - Ed -- Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com > From: Antonio > Reply-To: Antonio > Date: Fri, 10 Aug 2007 16:35:43 +0200 > To: > Subject: [UMN_MAPSERVER-USERS] command line tool to extract georef from gtif > > Hi, > Is there anybody that know if exist a command line tool to extract the > geo referencing coordinate from a GTiff image? > I need to create external referencing files. > > thanks > Ciao > Antonio > > -- > /-------------------------------------------------------\ > PLEASE WARNING: E-mail is CHANGED > volpicelli at oato.inaf.it > /-------------------------------------------------------\ From volpicelli at OATO.INAF.IT Fri Aug 10 08:03:51 2007 From: volpicelli at OATO.INAF.IT (Antonio) Date: Fri, 10 Aug 2007 17:03:51 +0200 Subject: command line tool to extract georef from gtif In-Reply-To: Message-ID: Great Ed, It is what I am looking for. I will try to download that. Thanks Antonio Ed McNierney wrote: > Antonio - > > The listgeo tool (part of the geotiff distribution) can be used with the > -tfw option to create an ESRI-format world file from a GeoTIFF. You can > just use: > > listgeo -tfw myfile.tif > > And the file myfile.tfw will be generated. Listgeo without the -tfw > parameter will provide a full-text description of the georeference data, > which is more complete than the ESRI-format information. > > - Ed > > -- /-------------------------------------------------------\ PLEASE WARNING: E-mail is CHANGED volpicelli at oato.inaf.it /-------------------------------------------------------\ From andreas.albarello at TERRITORIUMONLINE.COM Fri Aug 10 08:18:03 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Fri, 10 Aug 2007 17:18:03 +0200 Subject: MS 5.0b3 - AGG compile errors In-Reply-To: <46BC6E75.7080303@swoodbridge.com> Message-ID: Stephen Woodbridge wrote: > > Andreas Albarello wrote: >> Stephen Woodbridge wrote: >>> >>> I created this Ticket #2215: HowTo Build AGG with freetype support >>> from sources, http://trac.osgeo.org/mapserver/ticket/2215 >>> >>> Have a look it probably will help you for Linux and Jeff added some >>> info on Windows. You will need to follow this if you do not install >>> AGG as a distro package. >>> >>> -Steve W >> >> I can't for the life of me find the Windows makefile.vc Jeff is >> talking about in the info he added to the ticket. Neither the agg-2.4 >> nor the agg-2.5 source downloads seem to contain any such file and a >> Google search turns up nothing either. Am I missing something here? >> >> Any help is greatly appreciated. >> >> Best regards, > > I know little to nothing about windows, but might that be the mapserver > makefile.vc that Jeff was referring to? If not you have to catch Jeff > McKenna for more info. > > -Steve > Thanks, Steve, the file I was looking for showed up as an attachment on the Trac ticket right now. Seems Jeff had come up with it on his own and now has kindly shared it with rest of us. Much appreciated. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi Str. 12 I 39100 Bolzano/Bozen Phone: +39 0471 068611 Fax: +39 0471 068619 email: andreas.albarello at territoriumonline.com web: http://www.territoriumonline.com -------------------------------------------------------------------- From laura.poggio at GMAIL.COM Fri Aug 10 09:20:10 2007 From: laura.poggio at GMAIL.COM (Laura Poggio) Date: Fri, 10 Aug 2007 18:20:10 +0200 Subject: mapserver and arcinfo coverages Message-ID: It is some days I am fighting with the possibility to "draw" arcinfo coverages with mapserver. Below there is the code I finally manage to write for the map file but it does not work and I do not know how to solve it. I can "draw" raster and shapefiles without problems, but not coverages LAYER NAME 'built' DATA "D:/ALRPC/Gis/Data/Grugliasco/Ext/CTR/Vec/CoverageLP/gru_built" TYPE polygon STATUS OFF CONNECTIONTYPE OGR CONNECTION "D:/ALRPC/Gis/Data/Grugliasco/Ext/CTR/Vec/CoverageLP/gru_built, 3" CLASS COLOR 255 0 0 END END The command I use to recall the map file in the browser page is: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/tmp/mapfile/prova.map&layer=built&mode=map If someone can help, thank you very much in advance Laura -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephen.jones at VAISALA.COM Fri Aug 10 10:01:39 2007 From: stephen.jones at VAISALA.COM (Stephen Jones) Date: Fri, 10 Aug 2007 18:01:39 +0100 Subject: Java Mapscript Error Message-ID: Hi, I am hoping that someone is going to be able to help me out here. I am using the Java version of mapscript, along with Tomcat to produce dynamic mapping for an application. Whilst coloring all features on a layer with the same color all is ok. Once I try to classify the features, the first client displays ok, but when another client invokes a session I get this error message java.lang.UnknownError: loadSymbolSet(): Unknown identifier. Parsing error near (SYMBOL):(line 0) at edu.umn.gis.mapscript.mapscriptJNI.mapObj_setSymbolSet(Native Method) at edu.umn.gis.mapscript.mapObj.setSymbolSet(mapObj.java:461) I have replicated this using a simple loop to draw my map as below public void doMap(){ int j; for (j=0;j<10;j++){ drawMap(j); } public void drawMap(int index){ String filename = "mapImg"+Integer.toString(index)+".jpg"; mapObj icemap = new mapObj(""); rectObj mainExtent = new rectObj(-77.1,38.85,-76.9,38.95,mapscriptConstants.MS_FALSE); icemap.setExtent(mainExtent); setPaths(icemap,index); icemap.setHeight(800); icemap.setWidth(800); doImageColor(icemap); webObj thisWeb = icemap.getWeb(); thisWeb.setImagepath("/var/maps/tmp/"); addLayerInfo(icemap,"Urban Area","ap",mapscriptConstants.MS_LAYER_POLYGON,mapscriptConstants.MS_ON,0,10000000,15657698,"NAME","georgia-bold",6,100000,50000000,0,0.0,0); addthermalMap2(icemap); imageObj mapImg = icemap.draw(); mapImg.save("/var/maps/tmp/"+filename,icemap); icemap.delete(); } In addLayerInfo I create a layer etc etc and define a class with an empty expression (ie all features) classObj oMapClass = new classObj(aLayer); oMapClass.setExpression(""); In addthermalMap2 I create an expression for an attrubute field frst as such oMapClass.setExpression("([frst]>=3.0)"); The function setPath , sets the path to shapefiles, symbol & font files. public void setPaths(mapObj icemap, int index){ icemap.setShapepath("/var/maps/shapefiles/"); System.out.println("Set Shape path"); icemap.setSymbolSet(symSet); // THIS IS THE LINE THAT CAUSES IT TO STOP System.out.println("Set Symbol"); icemap.setFontSet("/var/maps/symbols/fonts.txt"); System.out.println("Set Font"); } The second time around the loop setPath generates the error message. If i comment out the addthermalMap, it runs ok ? I have seen something similar posted for php/mapscript. Is there any way round this ? Have I missed the point and done something wrong ? Is it a known bug ? If so is it planned to fix it ? This is real urgent as I have a deadline of end of this month to have the first system out for test. Thanks Stephen -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Fri Aug 10 11:01:47 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri, 10 Aug 2007 14:01:47 -0400 Subject: mapserver and arcinfo coverages In-Reply-To: Message-ID: This page may help: http://mapserver.gis.umn.edu/docs/reference/vector_data/ArcInfo Laura Poggio wrote: > It is some days I am fighting with the possibility to "draw" arcinfo > coverages with mapserver. > Below there is the code I finally manage to write for the map file but > it does not work and I do not know how to solve it. I can "draw" raster > and shapefiles without problems, but not coverages > > LAYER > NAME 'built' > DATA "D:/ALRPC/Gis/Data/Grugliasco/Ext/CTR/Vec/CoverageLP/gru_built" > TYPE polygon > STATUS OFF > CONNECTIONTYPE OGR > CONNECTION > "D:/ALRPC/Gis/Data/Grugliasco/Ext/CTR/Vec/CoverageLP/gru_built, 3" > CLASS > COLOR 255 0 0 > END > END > > The command I use to recall the map file in the browser page is: > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/tmp/mapfile/prova.map&layer=built&mode=map > > > If someone can help, thank you very much in advance > > Laura -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From jmckenna at DMSOLUTIONS.CA Fri Aug 10 11:03:14 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri, 10 Aug 2007 14:03:14 -0400 Subject: command line tool to extract georef from gtif In-Reply-To: <46BC77BF.6060502@oato.inaf.it> Message-ID: Note that if you're an MS4W user the GDAL/OGR utilities are also included in it. Antonio wrote: > Hi, > Is there anybody that know if exist a command line tool to extract the > geo referencing coordinate from a GTiff image? > I need to create external referencing files. > > thanks > Ciao > Antonio > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From umberto.nicoletti at GMAIL.COM Fri Aug 10 12:32:14 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 10 Aug 2007 21:32:14 +0200 Subject: Java Mapscript Error In-Reply-To: Message-ID: Please report the mapserver version, how it was built and the environment (windows/linux, shapefiles, database, ecc). It is difficult to help you without knowing that. Umberto On 8/10/07, Stephen Jones wrote: > > > > Hi, > > I am hoping that someone is going to be able to help me out here. > > I am using the Java version of mapscript, along with Tomcat to produce > dynamic mapping for an application. Whilst coloring all features on a layer > with the same color all is ok. Once I try to classify the features, the > first client displays ok, but when another client invokes a session I get > this error message > > java.lang.UnknownError: loadSymbolSet(): Unknown identifier. Parsing error > near (SYMBOL):(line 0) > at > edu.umn.gis.mapscript.mapscriptJNI.mapObj_setSymbolSet(Native > Method) > at > edu.umn.gis.mapscript.mapObj.setSymbolSet(mapObj.java:461) > > I have replicated this using a simple loop to draw my map as below > > public void doMap(){ > int j; > for (j=0;j<10;j++){ > drawMap(j); > } > > public void drawMap(int index){ > String filename = "mapImg"+Integer.toString(index)+".jpg"; > mapObj icemap = new mapObj(""); > rectObj mainExtent = new > rectObj(-77.1,38.85,-76.9,38.95,mapscriptConstants.MS_FALSE); > icemap.setExtent(mainExtent); > setPaths(icemap,index); > icemap.setHeight(800); > icemap.setWidth(800); > doImageColor(icemap); > webObj thisWeb = icemap.getWeb(); > thisWeb.setImagepath("/var/maps/tmp/"); > addLayerInfo(icemap,"Urban > Area","ap",mapscriptConstants.MS_LAYER_POLYGON,mapscriptConstants.MS_ON,0,10000000,15657698,"NAME","georgia-bold",6,100000,50000000,0,0.0,0); > > addthermalMap2(icemap); > imageObj mapImg = icemap.draw(); > mapImg.save("/var/maps/tmp/"+filename,icemap); > icemap.delete(); > } > > In addLayerInfo I create a layer etc etc and define a class with an empty > expression (ie all features) > > classObj oMapClass = new classObj(aLayer); > oMapClass.setExpression(""); > > In addthermalMap2 I create an expression for an attrubute field frst as such > > oMapClass.setExpression("([frst]>=3.0)"); > > The function setPath , sets the path to shapefiles, symbol & font files. > > public void setPaths(mapObj icemap, int index){ > icemap.setShapepath("/var/maps/shapefiles/"); > System.out.println("Set Shape path"); > icemap.setSymbolSet(symSet); // THIS IS THE LINE THAT CAUSES IT TO > STOP > System.out.println("Set Symbol"); > icemap.setFontSet("/var/maps/symbols/fonts.txt"); > System.out.println("Set Font"); > } > > The second time around the loop setPath generates the error message. If i > comment out the addthermalMap, it runs ok ? I have seen something similar > posted for php/mapscript. Is there any way round this ? Have I missed the > point and done something wrong ? Is it a known bug ? If so is it planned to > fix it ? This is real urgent as I have a deadline of end of this month to > have the first system out for test. > > Thanks Stephen From efren.serra.ctr at METNET.NAVY.MIL Fri Aug 10 13:23:49 2007 From: efren.serra.ctr at METNET.NAVY.MIL (Efren A Serra) Date: Fri, 10 Aug 2007 15:23:49 -0500 Subject: Shifting Prime Meridian East Message-ID: Folks, I was wondering how I can instruct mapserver to shift the meridian of the output world map to the east. I would like to generate a world map with the pacific ocean in the middle of the map. Thank you. Efren From RMcCulley at COUNTY24.COM Fri Aug 10 14:51:25 2007 From: RMcCulley at COUNTY24.COM (Rob McCulley) Date: Fri, 10 Aug 2007 15:51:25 -0600 Subject: msLoadMapFromString ?? Message-ID: Hi All, I've been trying to play with the new mapscript.msLoadMapFromString and I can't seem to get it to work. I'm using python mapscript from the latest and greatest ms4w install (Dated August 9). The error message I receive is that msLoadMapFromString requires two arguments. What is the second argument? Thanks, Rob McCulley -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssteve52 at YAHOO.COM Fri Aug 10 17:47:02 2007 From: ssteve52 at YAHOO.COM (Steve Smith) Date: Fri, 10 Aug 2007 17:47:02 -0700 Subject: AGG Rendering with mapserver 5.0 Message-ID: I am attempting to use AGG with mapserver-5.0.0-beta3. I am using the following OUTPUTFORMAT statement in my .map file: OUTPUTFORMAT NAME 'AGG_PNG' DRIVER AGG/PNG IMAGEMODE RGB END Is this correct? The graphics do not look like AGG. Are there other statements in the .map file that could result in the use of GD graphics? I followed the explanations in: http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics but, still no success. Configuring and compiling mapserver was successful. No errors occurred. I initially had a problem configuring with AGG, using libraries in /usr producing the following error message: checking if AGG support requested... configure: error: "could not find agg_rendering_buffer.h or libagg.a in /usr." I think this error was a result of my machine being 64 bit, which the current beta versions does not recognize. Things worked after I changed the directory to an AGG installation in /usr/local/agg. Steve --------------------------------- Shape Yahoo! in your own image. Join our Network Research Panel today! -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Fri Aug 10 18:42:28 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 10 Aug 2007 21:42:28 -0400 Subject: AGG Rendering with mapserver 5.0 In-Reply-To: <713734.38432.qm@web45607.mail.sp1.yahoo.com> Message-ID: Ticket #2215: HowTo Build AGG with freetype support from sources, http://trac.osgeo.org/mapserver/ticket/2215 Steve Smith wrote: > I am attempting to use AGG with mapserver-5.0.0-beta3. I am using the > following OUTPUTFORMAT statement in my .map file: > > OUTPUTFORMAT > NAME 'AGG_PNG' > DRIVER AGG/PNG > IMAGEMODE RGB > END > > Is this correct? The graphics do not look like AGG. Are there other > statements in the .map file that could result in the use of GD graphics? > I followed the explanations in: > > http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics > > but, still no success. Configuring and compiling mapserver was > successful. No errors occurred. I initially had a problem configuring > with AGG, using libraries in /usr producing the following error message: > > checking if AGG support requested... configure: error: "could not find > agg_rendering_buffer.h or libagg.a in /usr." > > I think this error was a result of my machine being 64 bit, which the > current beta versions does not recognize. Things worked after I changed > the directory to an AGG installation in /usr/local/agg. > > Steve > > Shape Yahoo! in your own image. Join our Network Research Panel today! > > From hobu.inc at GMAIL.COM Fri Aug 10 18:58:16 2007 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Fri, 10 Aug 2007 20:58:16 -0500 Subject: msLoadMapFromString ?? In-Reply-To: <8563B9D6767C904A912272A2D56548E417038F@vermilion.County24.local> Message-ID: Rob, Sean committed some doctest examples that might be instructive... Howard On Aug 10, 2007, at 4:51 PM, Rob McCulley wrote: > Hi All, > > > > I?ve been trying to play with the new mapscript.msLoadMapFromString > and I can?t seem to get it to work. I?m using python mapscript > from the latest and greatest ms4w install (Dated August 9). The > error message I receive is that msLoadMapFromString requires two > arguments. What is the second argument? > > > > Thanks, > > Rob McCulley > > > > From nkdiitd2002 at GMAIL.COM Fri Aug 10 19:50:54 2007 From: nkdiitd2002 at GMAIL.COM (nishith datta) Date: Sat, 11 Aug 2007 08:20:54 +0530 Subject: command line tool to extract georef from gtif In-Reply-To: <46BCA862.1020806@dmsolutions.ca> Message-ID: hi all, just thought shall add this in for antonio - use gdalinfo/ogrinfo utility with the name of the geotiff file it will rattle out all the info. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssteve52 at YAHOO.COM Fri Aug 10 21:14:56 2007 From: ssteve52 at YAHOO.COM (Steve Smith) Date: Fri, 10 Aug 2007 21:14:56 -0700 Subject: AGG Rendering with mapserver 5.0 In-Reply-To: <46BD1404.5080901@swoodbridge.com> Message-ID: The instructions below did not appear to help. I tried installing the 32bit agg libraries into /usr/lib using the fedora package manager, and then re-configed and compiled mapserver. I was able to compile mapserver, but unfortunately the graphics still appear to be GD. Steve Stephen Woodbridge wrote: Ticket #2215: HowTo Build AGG with freetype support from sources, http://trac.osgeo.org/mapserver/ticket/2215 Steve Smith wrote: > I am attempting to use AGG with mapserver-5.0.0-beta3. I am using the > following OUTPUTFORMAT statement in my .map file: > > OUTPUTFORMAT > NAME 'AGG_PNG' > DRIVER AGG/PNG > IMAGEMODE RGB > END > > Is this correct? The graphics do not look like AGG. Are there other > statements in the .map file that could result in the use of GD graphics? > I followed the explanations in: > > http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics > > but, still no success. Configuring and compiling mapserver was > successful. No errors occurred. I initially had a problem configuring > with AGG, using libraries in /usr producing the following error message: > > checking if AGG support requested... configure: error: "could not find > agg_rendering_buffer.h or libagg.a in /usr." > > I think this error was a result of my machine being 64 bit, which the > current beta versions does not recognize. Things worked after I changed > the directory to an AGG installation in /usr/local/agg. > > Steve > > Shape Yahoo! in your own image. Join our Network Research Panel today! > > --------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. --------------------------------- Need a vacation? Get great deals to amazing places on Yahoo! Travel. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at GMAIL.COM Sat Aug 11 00:10:37 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Sat, 11 Aug 2007 09:10:37 +0200 Subject: AGG Rendering with mapserver 5.0 In-Reply-To: <990724.44165.qm@web45610.mail.sp1.yahoo.com> Message-ID: have you set IMAGETYPE AGG_PNG ? On 8/11/07, Steve Smith wrote: > > The instructions below did not appear to help. > > I tried installing the 32bit agg libraries into /usr/lib using the fedora > package manager, and then re-configed and compiled mapserver. I was able to > compile mapserver, but unfortunately the graphics still appear to be GD. > > Steve > > *Stephen Woodbridge * wrote: > > Ticket #2215: HowTo Build AGG with freetype support from sources, > http://trac.osgeo.org/mapserver/ticket/2215 > > Steve Smith wrote: > > I am attempting to use AGG with mapserver-5.0.0-beta3. I am using the > > following OUTPUTFORMAT statement in my .map file: > > > > OUTPUTFORMAT > > NAME 'AGG_PNG' > > DRIVER AGG/PNG > > IMAGEMODE RGB > > END > > > > Is this correct? The graphics do not look like AGG. Are there other > > statements in the .map file that could result in the use of GD graphics? > > > I followed the explanations in: > > > > http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics > > > > but, still no success. Configuring and compiling mapserver was > > successful. No errors occurred. I initially had a problem configuring > > with AGG, using libraries in /usr producing the following error message: > > > > checking if AGG support requested... configure: error: "could not find > > agg_rendering_buffer.h or libagg.a in /usr." > > > > I think this error was a result of my machine being 64 bit, which the > > current beta versions does not recognize. Things worked after I changed > > the directory to an AGG installation in /usr/local/agg. > > > > Steve > > > > Shape Yahoo! in your own image. Join our Network Research Panel today! > > > > > > > ------------------------------ > Yahoo! oneSearch: Finally, mobile search that gives answers, > not web links. > > ------------------------------ > Need a vacation? Get great deals to amazing places > on > Yahoo! Travel. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephen.jones at VAISALA.COM Sat Aug 11 01:39:32 2007 From: stephen.jones at VAISALA.COM (Stephen Jones) Date: Sat, 11 Aug 2007 09:39:32 +0100 Subject: Java Mapscript Error Message-ID: Hi, Sorry forgot to add all that stuff. Anyway here it is. Makefile /opt/mapserver-4.10.0/configure --without-tiff \ --with-threads \ --with-proj \ --with-gdal \ --with-ogr \ --with-gd \ --with-freetype \ --with-curl \ --with-wmsclient \ --with-wfs \ --with-wfsclient \ --with-geos \ --with-sos MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Java java version "1.6.0" Java(TM) SE Runtime Environment (build 1.6.0-b105) Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode) OS Linux Fedora Core 6 Servlet Container Oracle 0C4J (Part of JDeveloper) Have done the same build on Linux CentOS4.3 and get the same error (Servlet Container Apache Tomcat 5.5.20) At the moment the onlt geo data source I am using is Shapefiles, and the only output I am returning is either PNG or JPEG. Cheers S -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Umberto Nicoletti Sent: 10 August 2007 20:32 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Java Mapscript Error Please report the mapserver version, how it was built and the environment (windows/linux, shapefiles, database, ecc). It is difficult to help you without knowing that. Umberto On 8/10/07, Stephen Jones wrote: > > > > Hi, > > I am hoping that someone is going to be able to help me out here. > > I am using the Java version of mapscript, along with Tomcat to produce > dynamic mapping for an application. Whilst coloring all features on a layer > with the same color all is ok. Once I try to classify the features, the > first client displays ok, but when another client invokes a session I get > this error message > > java.lang.UnknownError: loadSymbolSet(): Unknown identifier. Parsing error > near (SYMBOL):(line 0) > at > edu.umn.gis.mapscript.mapscriptJNI.mapObj_setSymbolSet(Native > Method) > at > edu.umn.gis.mapscript.mapObj.setSymbolSet(mapObj.java:461) > > I have replicated this using a simple loop to draw my map as below > > public void doMap(){ > int j; > for (j=0;j<10;j++){ > drawMap(j); > } > > public void drawMap(int index){ > String filename = "mapImg"+Integer.toString(index)+".jpg"; > mapObj icemap = new mapObj(""); > rectObj mainExtent = new > rectObj(-77.1,38.85,-76.9,38.95,mapscriptConstants.MS_FALSE); > icemap.setExtent(mainExtent); > setPaths(icemap,index); > icemap.setHeight(800); > icemap.setWidth(800); > doImageColor(icemap); > webObj thisWeb = icemap.getWeb(); > thisWeb.setImagepath("/var/maps/tmp/"); > addLayerInfo(icemap,"Urban > Area","ap",mapscriptConstants.MS_LAYER_POLYGON,mapscriptConstants.MS_ON,0,10000000,15657698,"NAME","georgia-bold",6,100000,50000000,0,0.0,0); > > addthermalMap2(icemap); > imageObj mapImg = icemap.draw(); > mapImg.save("/var/maps/tmp/"+filename,icemap); > icemap.delete(); > } > > In addLayerInfo I create a layer etc etc and define a class with an empty > expression (ie all features) > > classObj oMapClass = new classObj(aLayer); > oMapClass.setExpression(""); > > In addthermalMap2 I create an expression for an attrubute field frst as such > > oMapClass.setExpression("([frst]>=3.0)"); > > The function setPath , sets the path to shapefiles, symbol & font files. > > public void setPaths(mapObj icemap, int index){ > icemap.setShapepath("/var/maps/shapefiles/"); > System.out.println("Set Shape path"); > icemap.setSymbolSet(symSet); // THIS IS THE LINE THAT CAUSES IT TO > STOP > System.out.println("Set Symbol"); > icemap.setFontSet("/var/maps/symbols/fonts.txt"); > System.out.println("Set Font"); > } > > The second time around the loop setPath generates the error message. If i > comment out the addthermalMap, it runs ok ? I have seen something similar > posted for php/mapscript. Is there any way round this ? Have I missed the > point and done something wrong ? Is it a known bug ? If so is it planned to > fix it ? This is real urgent as I have a deadline of end of this month to > have the first system out for test. > > Thanks Stephen From volpicelli at OATO.INAF.IT Sat Aug 11 02:30:19 2007 From: volpicelli at OATO.INAF.IT (Antonio) Date: Sat, 11 Aug 2007 11:30:19 +0200 Subject: *****SPAM***** Re: [UMN_MAPSERVER-USERS] command line tool to extract georef from gtif In-Reply-To: Message-ID: An embedded and charset-unspecified text was scrubbed... Name: not available URL: -------------- next part -------------- An embedded message was scrubbed... From: Antonio Subject: Re: [UMN_MAPSERVER-USERS] command line tool to extract georef from gtif Date: Sat, 11 Aug 2007 11:30:19 +0200 Size: 1752 URL: From ssteve52 at YAHOO.COM Sat Aug 11 07:02:22 2007 From: ssteve52 at YAHOO.COM (Steve Smith) Date: Sat, 11 Aug 2007 07:02:22 -0700 Subject: AGG Rendering with mapserver 5.0 In-Reply-To: Message-ID: That was it! Thanks! thomas bonfort wrote: have you set IMAGETYPE AGG_PNG ? On 8/11/07, Steve Smith wrote: The instructions below did not appear to help. I tried installing the 32bit agg libraries into /usr/lib using the fedora package manager, and then re-configed and compiled mapserver. I was able to compile mapserver, but unfortunately the graphics still appear to be GD. Steve Stephen Woodbridge wrote: Ticket #2215: HowTo Build AGG with freetype support from sources, http://trac.osgeo.org/mapserver/ticket/2215 Steve Smith wrote: > I am attempting to use AGG with mapserver-5.0.0-beta3. I am using the > following OUTPUTFORMAT statement in my .map file: > > OUTPUTFORMAT > NAME 'AGG_PNG' > DRIVER AGG/PNG > IMAGEMODE RGB > END > > Is this correct? The graphics do not look like AGG. Are there other > statements in the .map file that could result in the use of GD graphics? > I followed the explanations in: > > http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics > > but, still no success. Configuring and compiling mapserver was > successful. No errors occurred. I initially had a problem configuring > with AGG, using libraries in /usr producing the following error message: > > checking if AGG support requested... configure: error: "could not find > agg_rendering_buffer.h or libagg.a in /usr." > > I think this error was a result of my machine being 64 bit, which the > current beta versions does not recognize. Things worked after I changed > the directory to an AGG installation in /usr/local/agg. > > Steve > > Shape Yahoo! in your own image. Join our Network Research Panel today! > > --------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. --------------------------------- Need a vacation? Get great deals to amazing places on Yahoo! Travel. --------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. --------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Sat Aug 11 07:27:14 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Sat, 11 Aug 2007 16:27:14 +0200 Subject: AGG Rendering with mapserver 5.0 In-Reply-To: Message-ID: Hi there, I followed the instructions here: http://trac.osgeo.org/mapserver/ticket/2215 to build AGG-2.4 with MSVC8, but i get an error message like: NMAKE : fatal error U1073: don't know how to make 'agg_font_freetype.obj' seems that the added obj in line 26 causes this error. I am using the make file downloaded from the aforementioned URL link, which is added by *jmckenna* on 08/10/07 08:52:06. Any hints for this error? Best Regards Zhonghai On 8/11/07, thomas bonfort wrote: > > have you set IMAGETYPE AGG_PNG ? > > On 8/11/07, Steve Smith wrote: > > > > The instructions below did not appear to help. > > > > I tried installing the 32bit agg libraries into /usr/lib using the > > fedora package manager, and then re-configed and compiled mapserver. I was > > able to compile mapserver, but unfortunately the graphics still appear to be > > GD. > > > > Steve > > > > *Stephen Woodbridge * wrote: > > > > Ticket #2215: HowTo Build AGG with freetype support from sources, > > http://trac.osgeo.org/mapserver/ticket/2215 > > > > Steve Smith wrote: > > > I am attempting to use AGG with mapserver-5.0.0-beta3. I am using the > > > following OUTPUTFORMAT statement in my .map file: > > > > > > OUTPUTFORMAT > > > NAME 'AGG_PNG' > > > DRIVER AGG/PNG > > > IMAGEMODE RGB > > > END > > > > > > Is this correct? The graphics do not look like AGG. Are there other > > > statements in the .map file that could result in the use of GD > > graphics? > > > I followed the explanations in: > > > > > > http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics > > > > > > but, still no success. Configuring and compiling mapserver was > > > successful. No errors occurred. I initially had a problem configuring > > > with AGG, using libraries in /usr producing the following error > > message: > > > > > > checking if AGG support requested... configure: error: "could not find > > > > > agg_rendering_buffer.h or libagg.a in /usr." > > > > > > I think this error was a result of my machine being 64 bit, which the > > > current beta versions does not recognize. Things worked after I > > changed > > > the directory to an AGG installation in /usr/local/agg. > > > > > > Steve > > > > > > Shape Yahoo! in your own image. Join our Network Research Panel today! > > > > > > > > > > > > > > ------------------------------ > > Yahoo! oneSearch: Finally, mobile search that gives answers, > > not web links. > > > > ------------------------------ > > Need a vacation? Get great deals to amazing places > > on > > Yahoo! Travel. > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Sat Aug 11 07:28:51 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Sat, 11 Aug 2007 16:28:51 +0200 Subject: C# rectObj -- image rectangle and the method fit(x,y) In-Reply-To: Message-ID: thanks Tamas, I will give it a try. Best Regards Zhonghai On 8/9/07, Tamas Szekeres wrote: > > Zhonghai, > > The method should adjust the extent of the rectangle so as to fit in > the given image window. Returns cellsize of the output image. > > The actual implementation resides in msAdjustExtent (maputil.c) > > Best regards, > > Tamas > > > > 2007/8/9, Zhonghai Wang : > > besides, how is the function "fit(integer, integer) as double" working? > > > > Cheers > > > > Zhonghai > > > > > > On 8/9/07, Zhonghai Wang wrote: > > > > > > Hi Tamas, > > > > > > thanks for your information. Seems that we must still suffer it. If we > are > > really going to do something in 5.2 release, i propose that we should > > separate the rectObj into pixRectObj and geoRectObj. This may do what we > > need. > > > > > > Best Regards > > > > > > Zhonghai > > > > > > > > > On 8/9/07, Tamas Szekeres wrote: > > > > Zhonghai, > > > > > > > > We have a bunch of tickets on this issue especially regarding to the > > > > zoomRectangle function. On one day it have been corrected that maxy > is > > > > greater that miny but on the other day it have been reverted due to > > > > some other reasons: > > > > For more information see: > > > > http://trac.osgeo.org/mapserver/ticket/1982 > > > > http://trac.osgeo.org/mapserver/ticket/1988 > > > > http://trac.osgeo.org/mapserver/ticket/1817 > > > > > > > > I personally would support having maxy greater than miny, but it > seems > > > > to be applied only for the 5.2 release. > > > > > > > > Best regards, > > > > > > > > Tamas > > > > > > > > > > > > > > > > 2007/8/8, Zhonghai Wang < zhonghaiw at gmail.com>: > > > > > Hi folks, > > > > > > > > > > I am using now the latest beta version MapServer C# wrapper. I > > remember that > > > > > creating an image rectangle object with the old version wrapper, > it > > should > > > > > be done like because of the screen coordinate system: > > > > > > > > > > Dim tempRect As New rectObj(intMinX, intMinY, intMaxX, intMaxY, > 0) > > > > > Dim t As Integer = 0 > > > > > Dim tc As Integer = 0 > > > > > t = tempRect.miny > > > > > tempRect.miny = tempRect.maxy > > > > > tempRect.maxy = t > > > > > > > > > > Is this situation changed in the latest beta version? > > > > > > > > > > besides, i noticed that there is a fit(integer, integer) as double > > method, > > > > > I've tried to get the idea of this method in mailing list, but i > > didn't get > > > > > it. > > > > > > > > > > Could anyone you guys give me some hints? > > > > > > > > > > Cheers > > > > > > > > > > Zhonghai > > > > > > > > > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Sat Aug 11 07:39:27 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Sat, 11 Aug 2007 16:39:27 +0200 Subject: AGG Rendering with mapserver 5.0 In-Reply-To: <2534c4120708110727u645309c1j59e907463e26e224@mail.gmail.com> Message-ID: Ok, i figured it out, copy the "agg_font_freetype.cpp" from "\font_freetype" to "\src", and then add "-I..\font_freetype" in line 10 in the Makefile.vc, use the nmake command "nmake -f Makefile.vc agg.lib", but not "nmake -f Makefile.vc all". Cheers Zhonghai On 8/11/07, Zhonghai Wang wrote: > > Hi there, > > I followed the instructions here: > > http://trac.osgeo.org/mapserver/ticket/2215 > > to build AGG-2.4 with MSVC8, but i get an error message like: > > NMAKE : fatal error U1073: don't know how to make 'agg_font_freetype.obj' > > seems that the added obj in line 26 causes this error. > > I am using the make file downloaded from the aforementioned URL link, > which is added by *jmckenna* on 08/10/07 08:52:06. > > Any hints for this error? > > Best Regards > > Zhonghai > > On 8/11/07, thomas bonfort < thomas.bonfort at gmail.com> wrote: > > > > have you set IMAGETYPE AGG_PNG ? > > > > On 8/11/07, Steve Smith wrote: > > > > > > The instructions below did not appear to help. > > > > > > I tried installing the 32bit agg libraries into /usr/lib using the > > > fedora package manager, and then re-configed and compiled mapserver. I was > > > able to compile mapserver, but unfortunately the graphics still appear to be > > > GD. > > > > > > Steve > > > > > > *Stephen Woodbridge * wrote: > > > > > > Ticket #2215: HowTo Build AGG with freetype support from sources, > > > http://trac.osgeo.org/mapserver/ticket/2215 > > > > > > Steve Smith wrote: > > > > I am attempting to use AGG with mapserver-5.0.0-beta3. I am using > > > the > > > > following OUTPUTFORMAT statement in my .map file: > > > > > > > > OUTPUTFORMAT > > > > NAME 'AGG_PNG' > > > > DRIVER AGG/PNG > > > > IMAGEMODE RGB > > > > END > > > > > > > > Is this correct? The graphics do not look like AGG. Are there other > > > > statements in the .map file that could result in the use of GD > > > graphics? > > > > I followed the explanations in: > > > > > > > > http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics > > > > > > > > but, still no success. Configuring and compiling mapserver was > > > > successful. No errors occurred. I initially had a problem > > > configuring > > > > with AGG, using libraries in /usr producing the following error > > > message: > > > > > > > > checking if AGG support requested... configure: error: "could not > > > find > > > > agg_rendering_buffer.h or libagg.a in /usr." > > > > > > > > I think this error was a result of my machine being 64 bit, which > > > the > > > > current beta versions does not recognize. Things worked after I > > > changed > > > > the directory to an AGG installation in /usr/local/agg. > > > > > > > > Steve > > > > > > > > Shape Yahoo! in your own image. Join our Network Research Panel > > > today! > > > > > > > > > > > > > > > > > ------------------------------ > > > Yahoo! oneSearch: Finally, mobile search that gives answers, > > > not web links. > > > > > > ------------------------------ > > > Need a vacation? Get great deals to amazing places > > > on > > > Yahoo! Travel. > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bthoen at GISNET.COM Sat Aug 11 08:22:05 2007 From: bthoen at GISNET.COM (Bill Thoen) Date: Sat, 11 Aug 2007 09:22:05 -0600 Subject: Compiling MapServer 4.10.2 - Can't find GD components Message-ID: I'm building a new install of MapServer from source, and though I had no trouble the last time I tried this on a different Linux machine, I've encountered a new wrinkle this time. The configure script looks like this: ./configure \ --with-proj=/usr/local/ \ --with-geos=/usr/local/bin/geos-config \ --with-ogr=/usr/local/bin/gdal-config \ --with-gdal=/usr/local/bin/gdal-config \ --with-postgis=/usr/local/pgsql/bin/pg_config \ --with-wfs \ --with-wcs \ --with-wmsclient \ --with-wfsclient \ --with-curl-config=/usr/bin/curl-config \ --with-php=../php-5.1.6/ But I'm getting the following error during the configure step: "configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure GD 2.0.16 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv)." Yum reports that gd 2.0.33 is installed. Any ideas on how I can fix this? TIA, - Bill Thoen From gregor at HOSTGIS.COM Sat Aug 11 09:58:00 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sat, 11 Aug 2007 10:58:00 -0600 Subject: Compiling MapServer 4.10.2 - Can't find GD components In-Reply-To: <20070811152205.GA21031@www.gisnet.com> Message-ID: Bill Thoen wrote: > Yum reports that gd 2.0.33 is installed. Check for gd-devel. Under most RedHat-like systems, the package only has the executables and libraries, but -devel has the header files necessary to compile anything. Why they do this, I don't know... -- Gregor Mosheh / Greg Allensworth 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 bthoen at GISNET.COM Sat Aug 11 11:17:40 2007 From: bthoen at GISNET.COM (Bill Thoen) Date: Sat, 11 Aug 2007 12:17:40 -0600 Subject: Compiling MapServer 4.10.2 - Can't find GD components In-Reply-To: <46BDEA98.2070901@hostgis.com> Message-ID: On Sat, Aug 11, 2007 at 10:58:00AM -0600, Gregor Mosheh wrote: > Bill Thoen wrote: > >Yum reports that gd 2.0.33 is installed. > > Check for gd-devel. Under most RedHat-like systems, the package only has > the executables and libraries, but -devel has the header files necessary > to compile anything. Why they do this, I don't know... > Thanks Gregor! Running "yum install gd-devel" did the trick. - Bill Thoen From bthoen at GISNET.COM Sat Aug 11 13:24:00 2007 From: bthoen at GISNET.COM (Bill Thoen) Date: Sat, 11 Aug 2007 14:24:00 -0600 Subject: Mapserv can't find libpq.so Message-ID: I just built a 4.10.2 version of MapServer from source and included support for GEOS, GDAL, POstgis and Proj4, but now when mapserv runs it dies saying it can't find libpq.so. However, the library is sitting in /usr/local/pqsql/lib. Do I need to add this path to ld.so.conf, or should I look elsewhere to fix this? The last time I built a copy of MapServer, I didn't have this problem, and as I took notes then, I have just been following these. Obviously I left something important out, but would appreciate it if someone could tell me what's wrong. Thanks, - Bill Thoen From bthoen at GISNET.COM Sat Aug 11 13:37:00 2007 From: bthoen at GISNET.COM (Bill Thoen) Date: Sat, 11 Aug 2007 14:37:00 -0600 Subject: Mapserv can't find libpq.so In-Reply-To: <20070811202400.GA22515@www.gisnet.com> Message-ID: Never mind... Yes, you DO have to add /usr/local/pgsql/lib to /etc/ld.so.conf and run /sbin/ldconfig so that mapserv can find the library. I've aded this to my notes so I won't have *this* problem again. On Sat, Aug 11, 2007 at 02:24:00PM -0600, Bill Thoen wrote: > I just built a 4.10.2 version of MapServer from source and included support > for GEOS, GDAL, POstgis and Proj4, but now when mapserv runs it dies saying > it can't find libpq.so. However, the library is sitting in > /usr/local/pqsql/lib. Do I need to add this path to ld.so.conf, or should I > look elsewhere to fix this? > > The last time I built a copy of MapServer, I didn't have this problem, and > as I took notes then, I have just been following these. Obviously I left > something important out, but would appreciate it if someone could tell me > what's wrong. > > Thanks, > > - Bill Thoen > From hobu.inc at GMAIL.COM Sat Aug 11 17:18:36 2007 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Sat, 11 Aug 2007 19:18:36 -0500 Subject: Unicode Shapefiles for ArcSDE testing In-Reply-To: <8C1A0C04-B0ED-4066-84C9-4F7A7C52B076@gmail.com> Message-ID: Thank you everyone for the pointers to files, and especially Huey Brandtley for connecting to my ArcSDE instance and creating a UTF layer and Thomas Bonfort for letting me ruin his weekend by asking unicode questions.. MapServer 5.0 should now be able to deal with the unicode attributes that ArcSDE stores. Howard On Aug 8, 2007, at 11:58 AM, Howard Butler wrote: > All, > > Does anyone have an ESRI "unicode" shapefile that I can use for > testing ArcSDE? It would only need a couple of geometries with > some unicode attributes. Ideally, we would also put a copy of this > in GDAL's testing framework for future reference. > > Thanks > > Howard From mikesaunt at GMAIL.COM Sun Aug 12 14:26:16 2007 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Sun, 12 Aug 2007 22:26:16 +0100 Subject: MapServer 5.0 Beta3 - msQueryByPoint issue Message-ID: Hi All Not sure if this should really go to the MapServer Development list - although I'm not a member of that list anyway. Has anyone else had an issue with nquery / msQueryByPoint / msQueryByRect with Beta3 of MapServer 5.0? This query against a single layers and we have others that Query against multiple in one go. http://localhost/mapserver5.0/mapserv.exe?map=D:/Maps/BaNES/_MapServerConfig/BaNES.map&mode=nquery&mapsize=987+386&img.x=511&img.y=87&imgext=328010.483766+145811.5+403519.516234+175295.25&layers=CivicAmenitySites&map_CivicAmenitySites_tolerance=10&map_CivicAmenitySites_template=_MapServerTemplates/CivicAmenitySites_fields.xml All map rendering is working great (love the AGG renderer!) but none of our spatial query (NQUERY etc) strings are working. I can't see anything from the Migration Guide as to what could be wrong... Any help appreciated or a pointer to the MapServer dev list... Cheers Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu.inc at GMAIL.COM Sun Aug 12 16:11:12 2007 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Sun, 12 Aug 2007 18:11:12 -0500 Subject: MapServer 5.0 Beta3 - msQueryByPoint issue In-Reply-To: <5a9686e80708121426h241ee808yd5915759fa598eae@mail.gmail.com> Message-ID: Mike, Which driver are you using? IIRC, you had used the ArcSDE driver some in the past. If you still are, could you please file a ticket with some detailed examples? Howard On Aug 12, 2007, at 4:26 PM, Mike Saunt wrote: > Hi All > > Not sure if this should really go to the MapServer Development list > - although I'm not a member of that list anyway. > > Has anyone else had an issue with nquery / msQueryByPoint / > msQueryByRect with Beta3 of MapServer 5.0? > > This query against a single layers and we have others that Query > against multiple in one go. > http://localhost/mapserver5.0/mapserv.exe?map=D:/Maps/BaNES/ > _MapServerConfig/BaNES.map&mode=nquery&mapsize=987 > +386&img.x=511&img.y=87&imgext=328010.483766+145811.5+403519.516234 > +175295.25&layers=CivicAmenitySites&map_CivicAmenitySites_tolerance=10 > &map_CivicAmenitySites_template=_MapServerTemplates/ > CivicAmenitySites_fields.xml > > All map rendering is working great (love the AGG renderer!) but > none of our spatial query (NQUERY etc) strings are working. I > can't see anything from the Migration Guide as to what could be > wrong... > > Any help appreciated or a pointer to the MapServer dev list... > > Cheers > Mike From plieger at KNMI.NL Mon Aug 13 03:19:17 2007 From: plieger at KNMI.NL (Maarten Plieger) Date: Mon, 13 Aug 2007 10:19:17 +0000 Subject: MAPSERVER with Postgis. SELECT Queries with WFS returns only the header Message-ID: Hello all, I am setting up UMN mapserver with postgis. At the moment i have a test database running with an esri world file imported to it. With WMS i can view this file with both DATA settings listed below. With WFS however, the second query does not return any data. I really would like to make queries on the postgis dataset, because the final dataset will be very large. And this data has to be available through WFS too. Am I misunderstanding something? Is it possible to make postgis queries on WFS? I am running mapserver 5 beta 3. "describefeaturetype" and "getcapabilities" returns exactly the same for both settings (1) DATA "the_geom from name" # WMS=OK, WFS=OK (2) DATA "the_geom from (select gid,name,gmi_cntry,REGION,the_geom from name) as foo using unique the_geom using SRID=4326" #WMS=OK, WFS=returns only header! Part of my mapfile: LAYER NAME test3 TYPE LINE CONNECTIONTYPE postgis CONNECTION "bla bla" DATA "the_geom from (select gid,name,gmi_cntry,REGION,the_geom from name) as foo using unique the_geom using SRID=4326" #DATA "the_geom from name" METADATA "wfs_title" "World_lines" ## REQUIRED "wfs_srs" "EPSG:4326" "wfs_extent" "-180 -90 180 90" "gml_featureid" "NAME" ## REQUIRED "gml_include_items" "all" ## Optional (serves all attributes for layer) END DUMP TRUE PROJECTION "init=epsg:4326" END CLASS COLOR 0 0 0 END END Thanks in advance, Maarten Plieger From arkadi at MEBIUS.LV Mon Aug 13 04:20:45 2007 From: arkadi at MEBIUS.LV (Arkadi Shishlov) Date: Mon, 13 Aug 2007 14:20:45 +0300 Subject: MAPSERVER with Postgis. SELECT Queries with WFS returns only the header In-Reply-To: <46C03025.2080704@knmi.nl> Message-ID: Maarten Plieger wrote: > DATA "the_geom from (select gid,name,gmi_cntry,REGION,the_geom from > name) as foo using unique the_geom using SRID=4326" Should it be 'using SRID 4326' - ie. w/o '='? From beyhan at DEPREM.GOV.TR Mon Aug 13 05:36:27 2007 From: beyhan at DEPREM.GOV.TR (Murat Beyhan) Date: Mon, 13 Aug 2007 15:36:27 +0300 Subject: sqlquery and SUM function Message-ID: Dear Friends, I would like to draw a casualty distribution map for various building types. On the srcSQL as you see I need summation of the casualties of each type of buildings(rc,wood,briq,brick,stone,adobe) So I have used sum function to obtain total number of casualties. But when I tried to make legend I have to select classitem so I have used AS totald for that reason then I have used totald as a classitem. But mapserver returns an error message. When I select only one item for select query for example select d_damage.deadp_wood from d_damage then If I use deadp_wood as classitem the query works and the map drawn. For my intend what I have to do? Regards... MURAT script: as follows LAYER NAME "Dhuman" CONNECTIONTYPE OGR CONNECTION ' MYSQL:turkey,user=root,password=mysql_123,host=localhost,port=3306,tables=d_damage m_village1 SELECT m_village1.latitude,m_village1.longitude, *sum(d_damage.deadp_rc + d_damage.deadp_wood + d_damage.deadp_briq + d_damage.deadp_brick + d_damage.deadp_stone + d_damage.deadp_adobe) as totald *from d_damage, m_village1 where d_damage.eq_id like "%eq_id%" and d_damage.region_id=m_village1.dist_id and m_village1.name not like "%(%" wkbPoint ' TYPE POINT DATA Dhuman STATUS default CLASSITEM "totald" CLASS NAME "HUMAN DAMAGE" EXPRESSION ([totald] < 0) # COLOR 255 0 255 # SYMBOL "cpoint" # SIZE 12 END CLASS NAME "1-10" EXPRESSION ([totald] GE 1.0 AND [totald] LT 10.0) SYMBOL "cpoint" SIZE 5 COLOR 255 250 250 END CLASS NAME "11-50" EXPRESSION ([totald] GE 11.0 AND [totald] LT 50.0) SYMBOL "cpoint" SIZE 5 COLOR 248 248 255 END CLASS NAME "51-100" EXPRESSION ([totald] GE 51.0 AND [totald] LT 100.0) SYMBOL "cpoint" SIZE 5 COLOR 255 250 240 END CLASS NAME "101-200" EXPRESSION ([totald] GE 101.0 AND [totald] LT 200.0) SYMBOL "cpoint" SIZE 5 COLOR 102 255 204 END CLASS NAME "201-400" EXPRESSION ([totald] GE 201.0 AND [totald] LT 400.0) SYMBOL "cpoint" SIZE 5 COLOR 102 53 0 END CLASS NAME "400<" EXPRESSION ([totald] GT 400.0) SYMBOL "cpoint" SIZE 5 COLOR 102 153 255 END END the error message as follows: msDrawMap(): Image handling error. Failed to draw layer named 'Dhuman'. msOGRFileOpen(): OGR error. Open failed for OGR connection ` MYSQL:turkey,user=root,password=mysql_123,host=localhost,port=3306,tables=d_damage m_village1 SELECT m_village1.latitude,m_village1.longitude, sum(d_damage.deadp_rc+ d_damage.deadp_wood +d_damage.deadp_briq + d_damage.deadp_brick + d_damage.deadp_stone + d_damage.deadp_adobe) as totald from d_damage, m_village1 where d_damage.eq_id like "200006060242-auto-000" and d_damage.region_id=m_village1.dist_id and m_village1.name not like "%(%" wkbPoint '. SQL statement failed, or returned no layer result: SELECT m_village1.latitude,m_village1.longitude, sum(d_damage.deadp_rc+ d_damage.deadp_wood +d_damage.deadp_briq + d_damage.deadp_brick + d_damage.deadp_stone + d_damage.deadp_adobe) as totald from d_damage, m_village1 where d_damage.eq_id like "200006060242-auto-000" and d_damage.region_id=m_village1.dist_id and m_village1.name not like "%(%" -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From efren.serra.ctr at METNET.NAVY.MIL Mon Aug 13 08:31:49 2007 From: efren.serra.ctr at METNET.NAVY.MIL (Efren Serra) Date: Mon, 13 Aug 2007 08:31:49 -0700 Subject: Mapserv can't find libpq.so In-Reply-To: <20070811203700.GA22626@www.gisnet.com> Message-ID: Bill mapserver with rpath flag; it's the safest thing to do. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bill Thoen Sent: Saturday, August 11, 2007 1:37 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapserv can't find libpq.so Never mind... Yes, you DO have to add /usr/local/pgsql/lib to /etc/ld.so.conf and run /sbin/ldconfig so that mapserv can find the library. I've aded this to my notes so I won't have *this* problem again. On Sat, Aug 11, 2007 at 02:24:00PM -0600, Bill Thoen wrote: > I just built a 4.10.2 version of MapServer from source and included > support for GEOS, GDAL, POstgis and Proj4, but now when mapserv runs > it dies saying it can't find libpq.so. However, the library is sitting > in /usr/local/pqsql/lib. Do I need to add this path to ld.so.conf, or > should I look elsewhere to fix this? > > The last time I built a copy of MapServer, I didn't have this problem, > and as I took notes then, I have just been following these. Obviously > I left something important out, but would appreciate it if someone > could tell me what's wrong. > > Thanks, > > - Bill Thoen > From hobu.inc at GMAIL.COM Mon Aug 13 10:31:47 2007 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Mon, 13 Aug 2007 12:31:47 -0500 Subject: Unicode Shapefiles for ArcSDE testing In-Reply-To: Message-ID: Actually, it was Brent Pedersen that connected to the ArcSDE instance. Anyway, thanks again! Howard On 8/11/07, Howard Butler wrote: > > Thank you everyone for the pointers to files, and especially Huey > Brandtley for connecting to my ArcSDE instance and creating a UTF > layer and Thomas Bonfort for letting me ruin his weekend by asking > unicode questions.. MapServer 5.0 should now be able to deal with > the unicode attributes that ArcSDE stores. > > > > Howard > > > On Aug 8, 2007, at 11:58 AM, Howard Butler wrote: > > > All, > > > > Does anyone have an ESRI "unicode" shapefile that I can use for > > testing ArcSDE? It would only need a couple of geometries with > > some unicode attributes. Ideally, we would also put a copy of this > > in GDAL's testing framework for future reference. > > > > Thanks > > > > Howard > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Mon Aug 13 11:17:52 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 13 Aug 2007 12:17:52 -0600 Subject: minfeaturesize auto Message-ID: Hey, guys, I hate to be a pest about this, but my employer would like for me to confirm whether this is a known bug (I can't find it in Trac), user error on my part (not impossible, though "minfeaturesize auto" seems straightforward), or an unknown bug, so we can plan appropriately. Issue: "minfeaturesize auto" is documented as causing labels to appear only when their containing polygon is larger than the label. In my tests, it causes labels to never be displayed. Demonstrations: Default label handling: http://maps.hostgis.com/gregor/mww_example/ http://maps.hostgis.com/gregor/mww_example/mapfile.txt LABEL COLOR 0 0 0 TYPE truetype FONT "Arial" SIZE 9 POSITION cc END Minfeaturesize 36: http://maps.hostgis.com/gregor/mww_example3/ http://maps.hostgis.com/gregor/mww_example3/mapfile.txt LABEL COLOR 0 0 0 TYPE truetype FONT "Arial" SIZE 9 POSITION cc MINFEATURESIZE 36 END In this case, there are still several polygons (note the northeast quad of the map) which lack labels though they're above the minimum size and labels would not collide. That's probably beyond the scope of this submission, but is still interesting and my employer considers it "bug like" Minfeaturesize auto: http://maps.hostgis.com/gregor/mww_example2/ http://maps.hostgis.com/gregor/mww_example2/mapfile.txt LABEL COLOR 0 0 0 TYPE truetype FONT "Arial" SIZE 9 POSITION cc MINFEATURESIZE auto END Note that labels are never displayed. This is also the case even if "FORCE true" is set. I'm glad to file a bug report on this, and even to dive into the source code and see what I can do. (My C is weak but willing.) I just need to know whether others can replicate this, to rule out the possibility of user error. -- Gregor Mosheh / Greg Allensworth 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 sebastian.schmitz at WHEREGROUP.COM Tue Aug 14 04:41:07 2007 From: sebastian.schmitz at WHEREGROUP.COM (Sebastian Schmitz) Date: Tue, 14 Aug 2007 13:41:07 +0200 Subject: handling styles attached to objects Message-ID: Hi, we currently encounter a problem related to handling styles that are directly attached to objects. Styles are contained within the objects' attribute table (eg font, size, symbol....). Mapserver already provides some mechanisms for that related to Labels. At the layer level eg LABELANGLEITEM or LABELITEM can be specified through a column in the attribute table. However, to meet our needs this would have to be extended to fonts used for labelling and to the some parameters within the STYLE object (). Two questions on that: - Could someone supply a rough estimate of cost? - How much would performance suffer when attaching styles at feature level rather than at the class level? Cheers Sebastian -- --------------------------------------- WhereGroup From huanxiangxu at YAHOO.COM.CN Tue Aug 14 06:36:09 2007 From: huanxiangxu at YAHOO.COM.CN (huanxiang xu) Date: Tue, 14 Aug 2007 21:36:09 +0800 Subject: About map file projection: I can not use it with perl mapscript Message-ID: Dear all, I try to write a perl script with mapscript. But I am finding it does not work when I use the tag of projection in my map file. It can work with mapserv cgi. However, the perl script can work when I delete the projection keyword. Here is the error message: Can't call method "draw" without a package or object reference at ./xu line 16. Have anybody met this problem? I am a new user. Thanks a lot. Best Regards, xu --------------------------------- ?????????????????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at MEDINACO.ORG Tue Aug 14 07:16:23 2007 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Tue, 14 Aug 2007 10:16:23 -0400 Subject: About map file projection: I can not use it with perl mapscript In-Reply-To: <460483.29985.qm@web15313.mail.cnb.yahoo.com> Message-ID: huanxiang xu writes: > Dear all, > I try to write a perl script with mapscript. > But I am finding it does not work when I use the tag of projection in my map file. > It can work with mapserv cgi. > However, the perl script can work when I delete the projection keyword. > > Here is the error message: > Can't call method "draw" without a package or object reference at ./xu line 16. > > Have anybody met this problem? > > I am a new user. xu, What does xu line 16 look like? Lowell F. From dmorissette at MAPGEARS.COM Tue Aug 14 07:52:55 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 14 Aug 2007 10:52:55 -0400 Subject: handling styles attached to objects In-Reply-To: <46C194D3.9030007@wheregroup.com> Message-ID: Sebastian Schmitz wrote: > Hi, > > we currently encounter a problem related to handling styles that are > directly attached to objects. Styles are contained within the objects' > attribute table (eg font, size, symbol....). > Mapserver already provides some mechanisms for that related to Labels. > At the layer level eg LABELANGLEITEM or LABELITEM can be specified > through a column in the attribute table. However, to meet our needs this > would have to be extended to fonts used for labelling and to the some > parameters within the STYLE object (). Two questions on that: > - Could someone supply a rough estimate of cost? > - How much would performance suffer when attaching styles at feature > level rather than at the class level? > Sebastian, FYI in 5.0 has a new mechanism to bind some of the style and label properties to shape attributes, there is some info about this in the 5.0 migration guide: http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/migration_guide_410_50/ The following properties can accept bindings: * Style: angle, color, outlinecolor, size, symbol * Label: angle, color, outlinecolor, size, font, priority With respect to performance, there is definitely a cost associated with that, but I am not aware of any benchmarks comparing static values to attribute binding. If you do some performance comparisons then please share with the list. Daniel -- Daniel Morissette http://www.mapgears.com/ From danmuc at GMAIL.COM Tue Aug 14 09:23:02 2007 From: danmuc at GMAIL.COM (=?ISO-8859-1?Q?Daniel_Mu=F1oz_Castro?=) Date: Tue, 14 Aug 2007 11:23:02 -0500 Subject: Error in the oracle connection OCI Handlers. Message-ID: Hello list. I'm trying to connect to oracle data base in windows with ms4w. I have this configured D:\ms4w\Apache\cgi-bin>mapserv -v MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PD F OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPP ORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPP ORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT =POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG and, LAYER NAME "Gerencia Oracle" STATUS ON TYPE POLYGON CONNECTIONTYPE ORACLESPATIAL CONNECTION "gis/gis at GIS" DATA "GEOMETRIA FROM GERENCIA3" DUMP TRUE CLASS STYLE OUTLINECOLOR 0 0 0 COLOR 0 128 128 END END END and, ALLUSERSPROFILE=C:\Documents and Settings\All Users APPDATA=C:\Documents and Settings\geoazul\Application Data CommonProgramFiles=C:\Program Files\Common Files COMPUTERNAME=DHCP-CORTES ComSpec=C:\WINNT\system32\cmd.exe GEOSERVER_DATA_DIR=C:\Program Files\GeoServer 1.5.1\data_dir HOMEDRIVE=C: HOMEPATH=\Documents and Settings\geoazul LOGONSERVER=\\DHCP-CORTES NUMBER_OF_PROCESSORS=1 ORACLE_BASE=D:\oracle\product\10.2.0 ORACLE_HOME=D:\oracle\product\10.2.0\client_1 ORACLE_SID=GIS OS=Windows_NT Os2LibPath=C:\WINNT\system32\os2\dll; Path=D:\oracle\product\10.2.0\client_1\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\S ystem32\Wbem;C:\Program Files\Support Tools\ PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PGLOCALEDIR=C:\Program Files\PostgreSQL\8.2\share\locale PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel PROCESSOR_LEVEL=15 PROCESSOR_REVISION=0207 ProgramFiles=C:\Program Files PROMPT=$P$G SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\WINNT TEMP=C:\DOCUME~1\geoazul\LOCALS~1\Temp TMP=C:\DOCUME~1\geoazul\LOCALS~1\Temp TNS_ADMIN=D:\oracle\product\10.2.0\client_1\NETWORK\ADMIN USERDOMAIN=DHCP-CORTES USERNAME=geoazul USERPROFILE=C:\Documents and Settings\geoazul windir=C:\WINNT and at last the error *Warning*: [MapServer Error]: msDrawMap(): Failed to draw layer named 'Gerencia Oracle'. in *D:\ms4w\apps\exphp\htdocs\ctacont0.php* on line *155* *Warning*: [MapServer Error]: msOracleSpatialLayerOpen(): Cannot create OCI Handlers. Connection failure. Check the connection string. Error: . in * D:\ms4w\apps\exphp\htdocs\ctacont0.php* on line *155* *Fatal error*: Call to a member function saveWebImage() on a non-object in * D:\ms4w\apps\exphp\htdocs\ctacont0.php* on line *156* I have proved whit other programs and the db is totaly accesible. I don't know what to do I hope some one can help me. Thanks. -- Salu2!. Daniel Mu?oz Castro Ingeniero Catastral y Geodesta Cel. 300 2174698 Casa. 4095990 Oficina. 7470001 Ext. 1141 -------------- next part -------------- An HTML attachment was scrubbed... URL: From thesl at YAHOO.COM Tue Aug 14 10:49:11 2007 From: thesl at YAHOO.COM (Peter Shrock) Date: Tue, 14 Aug 2007 10:49:11 -0700 Subject: Mapserver FGS Modules install method on Linux In-Reply-To: <46C1C1C7.7010502@mapgears.com> Message-ID: Hello, everyone: I have been seeking help on installing Mapsever cgi on a linux hosting plan. Due to the plan nature, I can only upload files (can NOT install, configure, etc). basedon Franks's suggestions, I downloaded mapserver cgi binary and all the binary modules (based on mapserver required list) from Maptools's FGS module sites. I put all libraries in a folder, mapserv in cgi-bin, and then created a script: #!/bin/bash LD_LIBRARY_PATH="/my_full_path_to/mapserverlib:$LD_LIBRARY_PATH" export LD_LIBRARY_PATH exec /my_full_path/cgi-bin/mapserv "$*" It looks correct. However, the script did not work. I got two error messages: 1: cannot find libgd.so. But all the libs are in /my_full_path_to/mapserverlib 2: cannot open log file, permission denied. Why? I talked to the system admin. The admin went to the mapserver RPM site, checked something, and told me that mapserver was developed in a way that it needed a dedicated server. The hosting company will not do that for one customer. Is this true? I will appreciate if the FGS LInux installer team clarify this and inform us how to set up mapserver only using these binary modules (so we avoid installation, configuraiton.). I believ that many people need this type of installation, becasue they need to set up GIS on exisitng systems, with no budget/plan to buy a new server. I hope this type of information will benefit the whole open GIS community. Have a nice day Peter ____________________________________________________________________________________ Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. http://autos.yahoo.com/carfinder/ From fsimon at UNIVALI.BR Tue Aug 14 11:00:09 2007 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Tue, 14 Aug 2007 15:00:09 -0300 Subject: Error in the oracle connection OCI Handlers. In-Reply-To: <960cb7fb0708140923w6862f497i4ab45ce543566717@mail.gmail.com> Message-ID: Hi Daniel, This error (the "Error: ." problem) appear when the Mapserver CGI or PHP Module can't find the Oracle environments. Are you using Apache or IIS? If you are using apache you need to define the environments inside the httpd.conf (using the setenv). Did you already try to connect using PHP, without Mapserver, just to test? Another issue is about the user that runs the webserver, the user have permission to access the Oracle directory? Best regards. ------------------------------------------- Fernando Simon Daniel Mu?oz Castro wrote: > Hello list. > > I'm trying to connect to oracle data base in windows with ms4w. > > I have this configured > > D:\ms4w\Apache\cgi-bin>mapserv -v > MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PD > F OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPP > ORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > SUPPORTS=WCS_SERVER SUPP > ORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS > INPUT=JPEG INPUT > =POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > DEBUG=MSDEBUG > > and, > > LAYER > NAME "Gerencia Oracle" > STATUS ON > TYPE POLYGON > CONNECTIONTYPE ORACLESPATIAL > CONNECTION "gis/gis at GIS" > DATA "GEOMETRIA FROM GERENCIA3" > DUMP TRUE > CLASS > STYLE > OUTLINECOLOR 0 0 0 > COLOR 0 128 128 > END > END > END > > > and, > > ALLUSERSPROFILE=C:\Documents and Settings\All Users > APPDATA=C:\Documents and Settings\geoazul\Application Data > CommonProgramFiles=C:\Program Files\Common Files > COMPUTERNAME=DHCP-CORTES > ComSpec=C:\WINNT\system32\cmd.exe > GEOSERVER_DATA_DIR=C:\Program Files\GeoServer 1.5.1\data_dir > HOMEDRIVE=C: > HOMEPATH=\Documents and Settings\geoazul > LOGONSERVER=\\DHCP-CORTES > NUMBER_OF_PROCESSORS=1 > ORACLE_BASE=D:\oracle\product\10.2.0 > ORACLE_HOME=D:\oracle\product\10.2.0\client_1 > ORACLE_SID=GIS > OS=Windows_NT > Os2LibPath=C:\WINNT\system32\os2\dll; > Path=D:\oracle\product\10.2.0\client_1\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\S > ystem32\Wbem;C:\Program Files\Support Tools\ > PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH > PGLOCALEDIR=C:\Program Files\PostgreSQL\8.2\share\locale > PROCESSOR_ARCHITECTURE=x86 > PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel > PROCESSOR_LEVEL=15 > PROCESSOR_REVISION=0207 > ProgramFiles=C:\Program Files > PROMPT=$P$G > SESSIONNAME=Console > SystemDrive=C: > SystemRoot=C:\WINNT > TEMP=C:\DOCUME~1\geoazul\LOCALS~1\Temp > TMP=C:\DOCUME~1\geoazul\LOCALS~1\Temp > TNS_ADMIN=D:\oracle\product\10.2.0\client_1\NETWORK\ADMIN > USERDOMAIN=DHCP-CORTES > USERNAME=geoazul > USERPROFILE=C:\Documents and Settings\geoazul > windir=C:\WINNT > > > and at last the error > > > *Warning*: [MapServer Error]: msDrawMap(): Failed to draw layer named > 'Gerencia Oracle'. in *D:\ms4w\apps\exphp\htdocs\ctacont0.php* on line > *155* > > *Warning*: [MapServer Error]: msOracleSpatialLayerOpen(): Cannot > create OCI Handlers. Connection failure. Check the connection string. > Error: . in *D:\ms4w\apps\exphp\htdocs\ctacont0.php* on line *155* > > *Fatal error*: Call to a member function saveWebImage() on a > non-object in *D:\ms4w\apps\exphp\htdocs\ctacont0.php* on line *156* > > I have proved whit other programs and the db is totaly accesible. > > I don't know what to do I hope some one can help me. > > Thanks. > -- > Salu2!. > > Daniel Mu?oz Castro > Ingeniero Catastral y Geodesta > Cel. 300 2174698 > Casa. 4095990 > Oficina. 7470001 Ext. 1141 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at REFRACTIONS.NET Tue Aug 14 20:29:54 2007 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 14 Aug 2007 20:29:54 -0700 Subject: Nominations Needed: Sol Katz Award Message-ID: Hey Open Sourcerers, It is that time of the year again, when the "Sol Katz Award" for geospatial and free open source software is awarded to some lucky soul. Details here: http://wiki.osgeo.org/index.php/Sol_Katz_Award The Sol Katz Award is awarded annually by OSGeo to individuals who have demonstrated leadership in the GFOSS community. Recipients of the award have contributed significantly through their activities to advance open source ideals in the geospatial realm. The award acknowledges both the work of community members, and pay tribute to one of its founders, for years to come. Send your nominations to SolKatzAward at conference.osgeo.org. From tkh at UNI-C.DK Wed Aug 15 01:27:38 2007 From: tkh at UNI-C.DK (T. Hansen) Date: Wed, 15 Aug 2007 03:27:38 -0500 Subject: Clip, zip and ship Message-ID: Hi Does MapServer support data extraction into zip-files or some other format suitable for download? The idea is that the users should be able to download for instance a 2x2km extract of any given map - making it possible to use these map-pieces for local manipulation an a desktop product. /T. Hansen From flavio at TYDAC.CH Wed Aug 15 03:21:09 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Wed, 15 Aug 2007 12:21:09 +0200 Subject: Clip, zip and ship In-Reply-To: Message-ID: Hi T. If you just want to provide raster, you could create GeoTIFFs directly with MapServer. If you want to provide vectors in a wide range of formats (such as Shape, GDB, DXF, DWG, MapInfo, Google KML and so on), you could integrate FME Server in your application as we did for Neapoljs Mercato, which exactly does as you say: "clip, zip and ship": Details see http://www.mapserver.ch/en/news.htm Demo version: http://mercato.mapserver.ch, login as demo/demo Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: "T. Hansen" To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Wed, 15 Aug 2007 03:27:38 -0500 Subject: [UMN_MAPSERVER-USERS] Clip, zip and ship > Hi > > Does MapServer support data extraction into zip-files or some other > format > suitable for download? > > The idea is that the users should be able to download for instance a > 2x2km > extract of any given map - making it possible to use these map-pieces > for > local manipulation an a desktop product. > > /T. Hansen From j.l.h.hartmann at UVA.NL Wed Aug 15 03:28:51 2007 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Wed, 15 Aug 2007 12:28:51 +0200 Subject: Clip, zip and ship In-Reply-To: Message-ID: Yes, that would definitely be a nice add-on. Not too difficult to implement, I would think Jan Dr. J. Hartmann Department of Geography University of Amsterdam T. Hansen wrote: > Hi > > Does MapServer support data extraction into zip-files or some other format > suitable for download? > > The idea is that the users should be able to download for instance a 2x2km > extract of any given map - making it possible to use these map-pieces for > local manipulation an a desktop product. > > /T. Hansen > From j.l.h.hartmann at UVA.NL Wed Aug 15 03:52:04 2007 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Wed, 15 Aug 2007 12:52:04 +0200 Subject: Nominations Needed: Sol Katz Award In-Reply-To: <10DAC84E-8D6E-480F-8596-DCBF03AF26B9@refractions.net> Message-ID: Sorry, this email address doesn't work: Your message To: SolKatzAward at conference.osgeo.org Subject: Nomination Sent: Wed, 15 Aug 2007 12:26:55 +0200 did not reach the following recipient(s): SolKatzAward at conference.osgeo.org on Wed, 15 Aug 2007 12:26:33 +0200 The e-mail system was unable to deliver the message, but did not report a specific reason. Check the address and try again. If it still fails, contact your system administrator. < lists.osgeo.org #5.0.0 X-Postfix; mail for conference.osgeo.org loops back to myself> Jan Paul Ramsey wrote: > Hey Open Sourcerers, > > It is that time of the year again, when the "Sol Katz Award" for > geospatial and free open source software is awarded to some lucky soul. > > Details here: > > http://wiki.osgeo.org/index.php/Sol_Katz_Award > > The Sol Katz Award is awarded annually by OSGeo to individuals who have > demonstrated leadership in the GFOSS community. Recipients of the award > have contributed significantly through their activities to advance open > source ideals in the geospatial realm. The award acknowledges both the > work of community members, and pay tribute to one of its founders, for > years to come. > > Send your nominations to SolKatzAward at conference.osgeo.org. > From gerry.creager at TAMU.EDU Wed Aug 15 04:22:24 2007 From: gerry.creager at TAMU.EDU (Gerry Creager) Date: Wed, 15 Aug 2007 06:22:24 -0500 Subject: Clip, zip and ship In-Reply-To: Message-ID: Take a look at Mapserver's capabilities for the OGC Web Map Service and Web Feature Service. These are standards-based methods used to move data to other GIS (desktop) systems. gerry T. Hansen wrote: > Hi > > Does MapServer support data extraction into zip-files or some other format > suitable for download? > > The idea is that the users should be able to download for instance a 2x2km > extract of any given map - making it possible to use these map-pieces for > local manipulation an a desktop product. > > /T. Hansen -- 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 richard.greenwood at GMAIL.COM Wed Aug 15 05:56:10 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 15 Aug 2007 06:56:10 -0600 Subject: Nominations Needed: Sol Katz Award In-Reply-To: <46C2DAD4.4010906@uva.nl> Message-ID: On 8/15/07, Jan Hartmann wrote: > Sorry, this email address doesn't work: > > Your message > > To: SolKatzAward at conference.osgeo.org > Subject: Nomination > Sent: Wed, 15 Aug 2007 12:26:55 +0200 > > did not reach the following recipient(s): > > SolKatzAward at conference.osgeo.org on Wed, 15 Aug 2007 12:26:33 +0200 > The e-mail system was unable to deliver the message, but did not > report a specific reason. Check the address and try again. If it still > fails, contact your system administrator. > < lists.osgeo.org #5.0.0 X-Postfix; mail for conference.osgeo.org > loops back to myself> > > Jan > A previous announcement listed SolKatzAward at osgeo.org. I sent my nomination to that address w/o error. But didn't receive a confirmation, either. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From beyhan at DEPREM.GOV.TR Wed Aug 15 06:10:05 2007 From: beyhan at DEPREM.GOV.TR (Murat Beyhan) Date: Wed, 15 Aug 2007 16:10:05 +0300 Subject: second times sql and SUM function in Map script Message-ID: Dear Friends, I would like to draw a casualty distribution map for various building types. On the srcSQL as you see I need summation of the casualties of each type of buildings(rc,wood,briq,brick,stone,adobe) So I have used sum function to obtain total number of casualties. But when I tried to make legend I have to select classitem so I have used AS totald for that reason then I have used totald as a classitem. But mapserver returns an error message. When I select only one item for select query for example select d_damage.deadp_wood from d_damage then If I use deadp_wood as classitem the query works and the map drawn. For my intend what I have to do? Regards... MURAT script: as follows LAYER NAME "Dhuman" CONNECTIONTYPE OGR CONNECTION ' MYSQL:turkey,user=root,password=mysql_123,host=localhost,port=3306,tables=d_damage m_village1 SELECT m_village1.latitude,m_village1.longitude, *sum(d_damage.deadp_rc + d_damage.deadp_wood + d_damage.deadp_briq + d_damage.deadp_brick + d_damage.deadp_stone + d_damage.deadp_adobe) as totald *from d_damage, m_village1 where d_damage.eq_id like "%eq_id%" and d_damage.region_id=m_village1.dist_id and m_village1.name not like "%(%" wkbPoint ' TYPE POINT DATA Dhuman STATUS default CLASSITEM "totald" CLASS NAME "HUMAN DAMAGE" EXPRESSION ([totald] < 0) # COLOR 255 0 255 # SYMBOL "cpoint" # SIZE 12 END CLASS NAME "1-10" EXPRESSION ([totald] GE 1.0 AND [totald] LT 10.0) SYMBOL "cpoint" SIZE 5 COLOR 255 250 250 END CLASS NAME "11-50" EXPRESSION ([totald] GE 11.0 AND [totald] LT 50.0) SYMBOL "cpoint" SIZE 5 COLOR 248 248 255 END CLASS NAME "51-100" EXPRESSION ([totald] GE 51.0 AND [totald] LT 100.0) SYMBOL "cpoint" SIZE 5 COLOR 255 250 240 END CLASS NAME "101-200" EXPRESSION ([totald] GE 101.0 AND [totald] LT 200.0) SYMBOL "cpoint" SIZE 5 COLOR 102 255 204 END CLASS NAME "201-400" EXPRESSION ([totald] GE 201.0 AND [totald] LT 400.0) SYMBOL "cpoint" SIZE 5 COLOR 102 53 0 END CLASS NAME "400<" EXPRESSION ([totald] GT 400.0) SYMBOL "cpoint" SIZE 5 COLOR 102 153 255 END END the error message as follows: msDrawMap(): Image handling error. Failed to draw layer named 'Dhuman'. msOGRFileOpen(): OGR error. Open failed for OGR connection ` MYSQL:turkey,user=root,password=mysql_123,host=localhost,port=3306,tables=d_damage m_village1 SELECT m_village1.latitude,m_village1.longitude, sum(d_damage.deadp_rc+ d_damage.deadp_wood +d_damage.deadp_briq + d_damage.deadp_brick + d_damage.deadp_stone + d_damage.deadp_adobe) as totald from d_damage, m_village1 where d_damage.eq_id like "200006060242-auto-000" and d_damage.region_id=m_village1.dist_id and m_village1.name not like "%(%" wkbPoint '. SQL statement failed, or returned no layer result: SELECT m_village1.latitude,m_village1.longitude, sum(d_damage.deadp_rc+ d_damage.deadp_wood +d_damage.deadp_briq + d_damage.deadp_brick + d_damage.deadp_stone + d_damage.deadp_adobe) as totald from d_damage, m_village1 where d_damage.eq_id like "200006060242-auto-000" and d_damage.region_id=m_village1.dist_id and m_village1.name not like "%(%" -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From mlinden at ZEELANDNET.NL Wed Aug 15 07:06:20 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Wed, 15 Aug 2007 16:06:20 +0200 Subject: second times sql and SUM function in Map script In-Reply-To: <46C2FB2D.702@deprem.gov.tr> Message-ID: Hello Murat! What I would do (as I always do when queries get complex) is create a view in the mysql database and call that view. That will speed up performance and give you less chance of error in your mapfile. So in MySQL: CREATE OR REPLACE VIEW MyVIEW as SELECT d_damage as damage, m_village1.name as villagename, m_village1.latitude as latitude, m_village1.longitude as longitude, sum(d_damage.deadp_rc + d_damage.deadp_wood + d_damage.deadp_briq + d_damage.deadp_brick + d_damage.deadp_stone + d_damage.deadp_adobe) as totaldamage from d_damage, m_village1 where d_damage.region_id=m_village1.dist_id And in the MapFile; select latitude, longitude, totaldamage from myVIEW where d_damage.eq_id like "%eq_id%" and m_village1.name not like "%(%" This will make life less complicated, plus you can test the query better in mySQL! Murat Beyhan schreef: > Dear Friends, > > I would like to draw a casualty distribution map for various building > types. > > On the srcSQL as you see I need summation of the casualties of each > type of buildings(rc,wood,briq,brick,stone,adobe) > So I have used sum function to obtain total number of casualties. But > when I tried to make legend I have to select classitem so I have used > AS totald for that reason > then I have used totald as a classitem. > But mapserver returns an error message. > > When I select only one item for select query for example select > d_damage.deadp_wood from d_damage > then If I use deadp_wood as classitem the query works and the map drawn. > > For my intend what I have to do? > Regards... > MURAT > > script: as follows > > > LAYER > NAME "Dhuman" > CONNECTIONTYPE OGR CONNECTION ' > > MYSQL:turkey,user=root,password=mysql_123,host=localhost,port=3306,tables=d_damage > m_village1 > SELECT m_village1.latitude,m_village1.longitude, > *sum(d_damage.deadp_rc + d_damage.deadp_wood + d_damage.deadp_briq + > d_damage.deadp_brick + d_damage.deadp_stone + d_damage.deadp_adobe) as > totald *from d_damage, m_village1 where d_damage.eq_id like "%eq_id%" > and d_damage.region_id=m_village1.dist_id and m_village1.name not like > "%(%" > wkbPoint > y="latitude"/> > > ' > TYPE POINT > DATA Dhuman > STATUS default > CLASSITEM "totald" > CLASS > NAME "HUMAN DAMAGE" > EXPRESSION ([totald] < 0) > # COLOR 255 0 255 > # SYMBOL "cpoint" > # SIZE 12 > END > > > > CLASS > NAME "1-10" > EXPRESSION ([totald] GE 1.0 AND [totald] LT 10.0) > SYMBOL "cpoint" > SIZE 5 > COLOR 255 250 250 > END > > CLASS > NAME "11-50" > EXPRESSION ([totald] GE 11.0 AND [totald] LT 50.0) > SYMBOL "cpoint" > SIZE 5 > COLOR 248 248 255 > END > > CLASS > NAME "51-100" > EXPRESSION ([totald] GE 51.0 AND [totald] LT 100.0) > SYMBOL "cpoint" > SIZE 5 > COLOR 255 250 240 > END > CLASS > NAME "101-200" > EXPRESSION ([totald] GE 101.0 AND [totald] LT 200.0) > SYMBOL "cpoint" > SIZE 5 > COLOR 102 255 204 > END > CLASS > NAME "201-400" > EXPRESSION ([totald] GE 201.0 AND [totald] LT 400.0) > SYMBOL "cpoint" > SIZE 5 > COLOR 102 53 0 > END > CLASS > NAME "400<" > EXPRESSION ([totald] GT 400.0) > SYMBOL "cpoint" > SIZE 5 > COLOR 102 153 255 > END > END > > > > the error message as follows: > > msDrawMap(): Image handling error. Failed to draw layer named 'Dhuman'. > msOGRFileOpen(): OGR error. Open failed for OGR connection ` > MYSQL:turkey,user=root,password=mysql_123,host=localhost,port=3306,tables=d_damage > m_village1 SELECT m_village1.latitude,m_village1.longitude, > sum(d_damage.deadp_rc+ d_damage.deadp_wood +d_damage.deadp_briq + > d_damage.deadp_brick + d_damage.deadp_stone + d_damage.deadp_adobe) as > totald from d_damage, m_village1 where d_damage.eq_id like > "200006060242-auto-000" and d_damage.region_id=m_village1.dist_id and > m_village1.name not like "%(%" wkbPoint '. SQL statement failed, or > returned no layer result: SELECT > m_village1.latitude,m_village1.longitude, sum(d_damage.deadp_rc+ > d_damage.deadp_wood +d_damage.deadp_briq + d_damage.deadp_brick + > d_damage.deadp_stone + d_damage.deadp_adobe) as totald from d_damage, > m_village1 where d_damage.eq_id like "200006060242-auto-000" and > d_damage.region_id=m_village1.dist_id and m_village1.name not like "%(%" > > -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at REFRACTIONS.NET Wed Aug 15 08:28:12 2007 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 15 Aug 2007 08:28:12 -0700 Subject: Nominations Needed: Sol Katz Award Message-ID: << Last time the email address was wrong... >> Hey Open Sourcerers, It is that time of the year again, when the "Sol Katz Award" for geospatial and free open source software is awarded to some lucky soul. Details here: http://wiki.osgeo.org/index.php/Sol_Katz_Award The Sol Katz Award is awarded annually by OSGeo to individuals who have demonstrated leadership in the GFOSS community. Recipients of the award have contributed significantly through their activities to advance open source ideals in the geospatial realm. The award acknowledges both the work of community members, and pay tribute to one of its founders, for years to come. Send your nominations to SolKatzAward at osgeo.org. From sebastian.walter at FU-BERLIN.DE Wed Aug 15 08:39:36 2007 From: sebastian.walter at FU-BERLIN.DE (Sebastian Walter) Date: Wed, 15 Aug 2007 17:39:36 +0200 Subject: customizing epsg codes Message-ID: Dear list, I'd like to set up a wms mapserver with planetary maps, more precisely Mars. There are the standard IAU definitions for the ellipsoid, e.g.: 49900,GEOGCS["Mars 2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0, 169.89444722361179]],PRIMEM["Greenwich",0],UNIT["Decimal_Degree",0.0174532925199433]] as well as for projections: 49910,PROJCS["Mars_Equidistant_Cylindrical","GEOGCS["Mars 2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0, 169.89444722361179]],PRIMEM["Greenwich",0],UNIT["Decimal_Degree",0.0174532925199433]], PROJECTION["Equidistant_Cylindrical"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0], PARAMETER["Central_Meridian",0],PARAMETER["Standard_Parallel_1",0],UNIT["Meter",1]] These are already incorporated in Arc WMS, so there are Mapservers which spit out the IAU2000 srs codes in their GetCapabilities: http://www.mapaplanet.org/explorer-bin/imageMaker.cgi?map=Mars&request=GetCapabilities&version=1.1.1 There is a proposal to OGC conformity of these codes: http://www.lpi.usra.edu/meetings/lpsc2006/pdf/1931.pdf Could anybody explain me if there is a way of importing them into my mapserver application? When I do: METADATA "wms_srs" "IAU2000:49910" "wms_name" "mars_viking_color" "wms_server_version" "1.1.1" "wms_format" "image/gif" END I get the following error: msBuildWMSLayerURL(): WMS connection error. Layer must have an EPSG or AUTO projection code (in its PROJECTION object or wms_srs metadata) Can't I include the IAU2000 codes somewhere in my proj setup? The projection definition of my MAP is this: PROJECTION proj=latlong pm=0 a=33961900 b=33762000 END Which should fit to the IAU2000 definitions. As you can see, the wms from the link above supports also EPSG:4326 for compatibility, but when I import the layer with this, it's missing some degrees in the southern hemisphere. Any comments would be greatly appreciated. Regards, Sebastian From gregor at HOSTGIS.COM Wed Aug 15 09:33:13 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 15 Aug 2007 10:33:13 -0600 Subject: customizing epsg codes In-Reply-To: <46C31E38.8080509@fu-berlin.de> Message-ID: > msBuildWMSLayerURL(): WMS connection error. Layer must have an EPSG or > AUTO projection code (in its PROJECTION object or wms_srs metadata) > Can't I include the IAU2000 codes somewhere in my proj setup? You sure can. Pop open the "epsg" file in your PROJ installation, e.g. /usr/share/proj/epsg Add a new record containing your projection's setting and your choice of EPSG code. EPSG codes above 1000000 are reserved for this sort of thing. Then use the projection as usual: PROJECTION "init=epsg:1234567" END -- Gregor Mosheh / Greg Allensworth 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 sebastian.walter at FU-BERLIN.DE Wed Aug 15 09:44:27 2007 From: sebastian.walter at FU-BERLIN.DE (Sebastian Walter) Date: Wed, 15 Aug 2007 18:44:27 +0200 Subject: customizing epsg codes In-Reply-To: <46C32AC9.1030007@hostgis.com> Message-ID: Thanks for your help. The problem here is that the WMS server I want to connect to expects me to ask for the IAU200:49xxx code, which my mapserver client doesn't let me sent. Gregor Mosheh wrote: >> msBuildWMSLayerURL(): WMS connection error. Layer must have an EPSG or >> AUTO projection code (in its PROJECTION object or wms_srs metadata) >> Can't I include the IAU2000 codes somewhere in my proj setup? > > You sure can. > > Pop open the "epsg" file in your PROJ installation, e.g. > /usr/share/proj/epsg > > Add a new record containing your projection's setting and your choice > of EPSG code. EPSG codes above 1000000 are reserved for this sort of > thing. > > Then use the projection as usual: > PROJECTION > "init=epsg:1234567" > END > From crschmidt at METACARTA.COM Wed Aug 15 09:45:52 2007 From: crschmidt at METACARTA.COM (Christopher Schmidt) Date: Wed, 15 Aug 2007 12:45:52 -0400 Subject: customizing epsg codes In-Reply-To: <46C32AC9.1030007@hostgis.com> Message-ID: On Wed, Aug 15, 2007 at 10:33:13AM -0600, Gregor Mosheh wrote: > >msBuildWMSLayerURL(): WMS connection error. Layer must have an EPSG or > >AUTO projection code (in its PROJECTION object or wms_srs metadata) > >Can't I include the IAU2000 codes somewhere in my proj setup? > > You sure can. > > Pop open the "epsg" file in your PROJ installation, e.g. > /usr/share/proj/epsg > > Add a new record containing your projection's setting and your choice of > EPSG code. EPSG codes above 1000000 are reserved for this sort of thing. > > Then use the projection as usual: > PROJECTION > "init=epsg:1234567" > END Note that, so far as I can tell, there is no way to cause MapServer to accept the IAU2000:49900 code -- you'll have to create a 'fake' EPSG code. AFAIK. Regards, -- Christopher Schmidt MetaCarta From dmorissette at MAPGEARS.COM Wed Aug 15 09:48:14 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 15 Aug 2007 12:48:14 -0400 Subject: customizing epsg codes In-Reply-To: <46C32D6B.6040907@fu-berlin.de> Message-ID: Sebastian Walter wrote: > Thanks for your help. The problem here is that the WMS server I want to > connect to expects me to ask for the IAU200:49xxx code, which my > mapserver client doesn't let me sent. > Unfortunately the only SRS namespace that is currently supported is EPSG:... so you only option at the moment is to create a EPSG:... code and add the corresponding definition to your local /usr/local/share/proj/epsg file as suggested by Gregor in his previous reply. FYI there is an open enhancement request to support arbitrary SRS namespaces that still has not been addressed (and won't be in 5.0 since it's too late): http://trac.osgeo.org/mapserver/ticket/1248 Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at MAPGEARS.COM Wed Aug 15 11:59:46 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 15 Aug 2007 14:59:46 -0400 Subject: MapServer 5.0.0-beta4 released Message-ID: Hi everyone, MapServer 5.0.0-beta4 has just been released. The source package is available at: http://mapserver.gis.umn.edu/download/beta The page above also contains links to binary distributions. They should be updated with binaries for this beta in the next few days. Thanks a lot to all those who have tested previous betas and have reported their results, either via the list or directly in Trac (bug tracker). That helps a lot... please keep testing and sending feedback. The list of changes/fixes since beta3 is included at the bottom of this email. As was mentioned before, we plan to have one beta per week until the final release of MapServer 5.0 which is planned for the week of September 12, 2007. More details can be found in the 5.0 release plan at http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/release_plan/ Daniel Version 5.0.0-beta4 (2007-08-15) -------------------------------- Known issues: - This beta still requires manual steps to build MapServer with AGG support on some platforms. For more details, see: http://trac.osgeo.org/mapserver/ticket/2215 Bug Fixes: - Updated msImageCreateAGG to only allow RGB or RGBA pixel models (#2231) - Fixed problem with symbol.setImagePath() when file doesn't exist (#1962) - Python MapScript failures (#2230) - msInsertLayer should not free the incoming layer anymore (#2229) - Include only parsed in the first mapfile (#2021) - Incorrect lookup of symbol in symbolset (#2227) - Mapfile includes and MapScript (#2089) - Fixed alignment of GetLegendGraphic output when mapfile contains no legend object (#966) - Fixed seg. fault when generaing HTML legend for raster layers with no classes (#2228). The same issue was also causing several Chameleon apps using HTML legend to seg fault (#2218) - Do not use case sensitive searches in string2list, which is used for msWhichItems (#2067) - Ensure that we can write AGG images with Python MapScript's write() method - Support unicode attributes for ArcSDE 9.2 and above (#2225) - GD: Truetype line symbolization should follow line orientation only if GAP is <=0 - AGG: Added truetype symbolization for lines and polygons - AGG: Draw an outline of size 1 of the fill color around polygons if an outlinecolor isn't specified (avoids faint outline) - Added summary of options at end of configure output (#1966) - Updated configure script to detect and require GEOS 2.2.2+ (#1896) - Renamed --enable-coverage configure option to --enable-gcov to avoid confusion with WCS or Arc/Info coverages (#2217) - Fixed --enable-gcov (formerly --enable-coverage) option to work with php_mapscript.so (#2216) - check for OGR support in if SLD is used (#1998) - msWMSLoadGetMapParams: fixed handling of required parameters (#1088) - if any of srs, bbox, format, width, height are NOT found, throw exception - if styles AND sld are NOT found, throw an exception - NOTE: this may cause issues with some existing clients who do not pass required parameters From Bob.Basques at CI.STPAUL.MN.US Wed Aug 15 13:03:21 2007 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 15 Aug 2007 15:03:21 -0500 Subject: question about mapsever uptimes Message-ID: All, Just doing some system cleaning and discovered we've had a MapServer Process up continuously for 384 days (and counting). Average Mapserver hits per day are, 8200 across a two node, load balanced system. That's averaging over a year, so the current numbers are really higher nearing 10k per day. Impresses me anyway. Anyone else keeping similar numbers? 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 ed at TOPOZONE.COM Wed Aug 15 13:10:55 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 15 Aug 2007 16:10:55 -0400 Subject: customizing epsg codes In-Reply-To: <46C32D6B.6040907@fu-berlin.de> Message-ID: Sebastian - The WMS specification does not permit the arbitrary creation of new namespaces for projection codes/indices. That's why the other posters have suggested the technique of "inventing" new EPSG codes by editing your epsg definitions file. The WMS 1.1.1 specification permits the use of SRS values prefixed with the AUTO: and EPSG: namespaces only (as well as SRS=NONE). The server you're connecting to is violating the spec if they are inventing and publishing new namespaces. Under some circumstances I am as willing to bend the rules as anyone else, but if you are going to require a non-standard behavior of your clients that will make it very difficult for client software to use your WMS server. The most practical and expedient solution is for your client AND the server to insert those same definitions into the EPSG table so you can make the request in a manner that's compliant with the WMS specification. Good luck! - Ed -- Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com > From: Sebastian Walter > Reply-To: Sebastian Walter > Date: Wed, 15 Aug 2007 18:44:27 +0200 > To: > Subject: Re: [UMN_MAPSERVER-USERS] customizing epsg codes > > Thanks for your help. The problem here is that the WMS server I want to > connect to expects me to ask for the IAU200:49xxx code, which my > mapserver client doesn't let me sent. > > > Gregor Mosheh wrote: >>> msBuildWMSLayerURL(): WMS connection error. Layer must have an EPSG or >>> AUTO projection code (in its PROJECTION object or wms_srs metadata) >>> Can't I include the IAU2000 codes somewhere in my proj setup? >> >> You sure can. >> >> Pop open the "epsg" file in your PROJ installation, e.g. >> /usr/share/proj/epsg >> >> Add a new record containing your projection's setting and your choice >> of EPSG code. EPSG codes above 1000000 are reserved for this sort of >> thing. >> >> Then use the projection as usual: >> PROJECTION >> "init=epsg:1234567" >> END >> From ed at TOPOZONE.COM Wed Aug 15 13:12:11 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 15 Aug 2007 16:12:11 -0400 Subject: question about mapsever uptimes In-Reply-To: Message-ID: Bob - Man, that must be one heck of a complex map request . - Ed > From: Bob Basques > Reply-To: Bob Basques > Date: Wed, 15 Aug 2007 15:03:21 -0500 > To: > Subject: [UMN_MAPSERVER-USERS] question about mapsever uptimes > > All, > > Just doing some system cleaning and discovered we've had a MapServer > Process up continuously for 384 days (and counting). > > Average Mapserver hits per day are, 8200 across a two node, load > balanced system. That's averaging over a year, so the current numbers > are really higher nearing 10k per day. > > Impresses me anyway. > > Anyone else keeping similar numbers? > > 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 nelson.little at TENIX.COM Wed Aug 15 19:07:09 2007 From: nelson.little at TENIX.COM (LITTLE Nelson) Date: Thu, 16 Aug 2007 12:07:09 +1000 Subject: drawQuery() help Message-ID: Hi, I have coded an application (using MapScript) such that when I perform a query-by-point it iterates through all the query-able and displayed layers in the order of last drawn to first drawn to look for a result. Once a layer yields results I stop iterating over the layers as I only want to see the result from the layer that is visible at that point. (Hence I am iterating thought the layers in the reverse way to how they are drawn.) Anyway, the image that is drawn doesn't highlight that single layer that yielded the results, instead it highlights the bottom visible layer (i.e. the first drawn + visible layer). Obviously I want it to highlight the layer corresponding to the results found. I'm really not sure where to go on this hence I'm asking for any ideas to help me out. Cheers, Nelson Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. Tenix does not warrant nor guarantee that this email communication is free from errors, virus, interception or interference. From beyhan at DEPREM.GOV.TR Thu Aug 16 03:02:11 2007 From: beyhan at DEPREM.GOV.TR (Murat Beyhan) Date: Thu, 16 Aug 2007 13:02:11 +0300 Subject: second times sql and SUM function in Map script In-Reply-To: <46C3085C.3040802@zeelandnet.nl> Message-ID: Dear Milo, Thank you for your interest. Mysql runs under my localhost that version is 4.1.18. So this version of MySql does not support view function.. so far I have try to create a view at same database which the version is 5.0 and runs at another computer. When I try to create the view I have been warned by the computer to add group clause to the sql statement. when I add group statement to the script It could created view. Then So I have tried to add group clause to the sql statement which I forgot it before in my localhost. Then My map file draw map without any problem. I hope I explained what I have done. SELECT m_village1.latitude,m_village1.longitude, sum(d_damage.cmpdb_rc+d_damage.prtdb_rc) as total_rc from d_damage, m_village1 where d_damage.eq_id like "%eq_id%" and d_damage.region_id=m_village1.dist_id group by d_damage.region_id Regards... Murat Milo van der Linden wrote: > Hello Murat! > > What I would do (as I always do when queries get complex) is create a > view in the mysql database and call that view. That will speed up > performance and give you less chance of error in your mapfile. > > So in MySQL: > > CREATE OR REPLACE VIEW MyVIEW as > SELECT > d_damage as damage, > m_village1.name as villagename, > m_village1.latitude as latitude, > m_village1.longitude as longitude, > sum(d_damage.deadp_rc + d_damage.deadp_wood + d_damage.deadp_briq + > d_damage.deadp_brick + d_damage.deadp_stone + d_damage.deadp_adobe) as > totaldamage > from > d_damage, > m_village1 > where > d_damage.region_id=m_village1.dist_id > > And in the MapFile; > select latitude, longitude, totaldamage from myVIEW where > d_damage.eq_id like "%eq_id%" and m_village1.name not like "%(%" > > > This will make life less complicated, plus you can test the query > better in mySQL! > > > Murat Beyhan schreef: >> Dear Friends, >> >> I would like to draw a casualty distribution map for various >> building types. >> >> On the srcSQL as you see I need summation of the casualties of each >> type of buildings(rc,wood,briq,brick,stone,adobe) >> So I have used sum function to obtain total number of casualties. But >> when I tried to make legend I have to select classitem so I have used >> AS totald for that reason >> then I have used totald as a classitem. >> But mapserver returns an error message. >> >> When I select only one item for select query for example select >> d_damage.deadp_wood from d_damage >> then If I use deadp_wood as classitem the query works and the map drawn. >> >> For my intend what I have to do? >> Regards... >> MURAT >> >> script: as follows >> >> >> LAYER >> NAME "Dhuman" >> CONNECTIONTYPE OGR CONNECTION ' >> >> MYSQL:turkey,user=root,password=mysql_123,host=localhost,port=3306,tables=d_damage >> m_village1 >> SELECT m_village1.latitude,m_village1.longitude, >> *sum(d_damage.deadp_rc + d_damage.deadp_wood + d_damage.deadp_briq + >> d_damage.deadp_brick + d_damage.deadp_stone + d_damage.deadp_adobe) >> as totald *from d_damage, m_village1 where d_damage.eq_id like >> "%eq_id%" and d_damage.region_id=m_village1.dist_id and >> m_village1.name not like "%(%" >> wkbPoint >> > y="latitude"/> >> >> ' >> TYPE POINT >> DATA Dhuman >> STATUS default >> CLASSITEM "totald" >> CLASS >> NAME "HUMAN DAMAGE" >> EXPRESSION ([totald] < 0) >> # COLOR 255 0 255 >> # SYMBOL "cpoint" >> # SIZE 12 >> END >> >> >> >> CLASS >> NAME "1-10" >> EXPRESSION ([totald] GE 1.0 AND [totald] LT 10.0) >> SYMBOL "cpoint" >> SIZE 5 >> COLOR 255 250 250 >> END >> >> CLASS >> NAME "11-50" >> EXPRESSION ([totald] GE 11.0 AND [totald] LT 50.0) >> SYMBOL "cpoint" >> SIZE 5 >> COLOR 248 248 255 >> END >> >> CLASS >> NAME "51-100" >> EXPRESSION ([totald] GE 51.0 AND [totald] LT 100.0) >> SYMBOL "cpoint" >> SIZE 5 >> COLOR 255 250 240 >> END >> CLASS >> NAME "101-200" >> EXPRESSION ([totald] GE 101.0 AND [totald] LT 200.0) >> SYMBOL "cpoint" >> SIZE 5 >> COLOR 102 255 204 >> END >> CLASS >> NAME "201-400" >> EXPRESSION ([totald] GE 201.0 AND [totald] LT 400.0) >> SYMBOL "cpoint" >> SIZE 5 >> COLOR 102 53 0 >> END >> CLASS >> NAME "400<" >> EXPRESSION ([totald] GT 400.0) >> SYMBOL "cpoint" >> SIZE 5 >> COLOR 102 153 255 >> END >> END >> >> >> >> the error message as follows: >> >> msDrawMap(): Image handling error. Failed to draw layer named 'Dhuman'. >> msOGRFileOpen(): OGR error. Open failed for OGR connection ` >> MYSQL:turkey,user=root,password=mysql_123,host=localhost,port=3306,tables=d_damage >> m_village1 SELECT m_village1.latitude,m_village1.longitude, >> sum(d_damage.deadp_rc+ d_damage.deadp_wood +d_damage.deadp_briq + >> d_damage.deadp_brick + d_damage.deadp_stone + d_damage.deadp_adobe) >> as totald from d_damage, m_village1 where d_damage.eq_id like >> "200006060242-auto-000" and d_damage.region_id=m_village1.dist_id and >> m_village1.name not like "%(%" wkbPoint '. SQL statement failed, or >> returned no layer result: SELECT >> m_village1.latitude,m_village1.longitude, sum(d_damage.deadp_rc+ >> d_damage.deadp_wood +d_damage.deadp_briq + d_damage.deadp_brick + >> d_damage.deadp_stone + d_damage.deadp_adobe) as totald from d_damage, >> m_village1 where d_damage.eq_id like "200006060242-auto-000" and >> d_damage.region_id=m_village1.dist_id and m_village1.name not like "%(%" >> >> > > > -- > > > > > Milo van der Linden > skype: milovanderlinden > mlinden at zeelandnet.nl > milovanderlinden at gmail.com > milo at 3dsite.nl > http://www.3dsite.nl > > > > De informatie in dit bericht reflecteert mijn persoonlijke mening en > niet die van een bedrijf of instantie. Aan de informatie kunnen geen > rechten worden ontleend. Indien dit bericht onderdeel is van een > forum, mailing-list of community dan gelden automatisch de bij het > betreffende medium behorende voorwaarden. The information in this > message reflects my personal opinion and not that of a company or > public body. All rights reserved.If this message is contained in a > mailing-list or community, the rights on the medium are automatically > adapted. > > > -- > This message has been scanned for viruses and > dangerous content by *MailScanner* , and is > believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From candalt at ONLINE.NO Thu Aug 16 04:35:57 2007 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Thu, 16 Aug 2007 13:35:57 +0200 Subject: Strange MS beta3 behaviour.. Message-ID: Hello... Been testing the new beta release of MS4W (beta3), and i have noticed a strange behaviour. I use a small PHP mapscript to generate a picture. But when I use the mapscriptfunction "set("status", 1)" on a POSTGIS, WMS or WFS layer...the web browser "hangs" for many seconds before the PHP page is finished rendering. This behaviour dos not occur when "set("status", 1)" is used on a ESRI SHAPE or a RASTER layer. I do not know if this is a mapserver or php thing...? I can even see in my ms tmp folder that the GIF file is produced...but the webpage "hangs" for many seconds before it is finished rendered. Have tested using different web browsers...even using WGET..., so I guess this behavoiur have something to do with MS or PHP? PS! This does not occur in MS4W 2.2.3... I also downloaded MS4W 2.2.4 and the same problem is present there also... My example PHP looks like this: set("width",1000); $mapObject->set("height",800); //Shape - this is OK $av_digitize_point = $mapObject->getLayerByName("1"); $av_digitize_point->set("status", 1); //wms - browser hangs!! //$av_digitize_point = $mapObject->getLayerByName("2"); //$av_digitize_point->set("status", 1); //wfs - browser hangs!! //$av_digitize_point = $mapObject->getLayerByName("3"); //$av_digitize_point->set("status", 1); //raster - this is OK //$av_digitize_point = $mapObject->getLayerByName("4"); //$av_digitize_point->set("status", 1); //postgis - browser hangs!! //$av_digitize_point = $mapObject->getLayerByName("5"); //$av_digitize_point->set("status", 1); //Draw map image if (!$mapImage) { $mapImage = $mapObject->draw(); } //save image $mapImage = $mapImage->saveWebImage(MS_GIF,0 ,0,100); //image url $mapImage = "http://" . $SERVER_NAME . $mapImage; print ""; ?> Best Regards Sture From dmorissette at MAPGEARS.COM Thu Aug 16 05:05:57 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 16 Aug 2007 08:05:57 -0400 Subject: Strange MS beta3 behaviour.. In-Reply-To: <120897107.185671187264156998.JavaMail.adm-moff@moffice9.nsc.no> Message-ID: Sture Dings?yr wrote: > Hello... > > Been testing the new beta release of MS4W (beta3), and i have noticed a strange behaviour. > > I use a small PHP mapscript to generate a picture. But when I use the mapscriptfunction "set("status", 1)" on a POSTGIS, WMS or WFS layer...the web browser "hangs" for many seconds before the PHP page is finished rendering. > > This behaviour dos not occur when "set("status", 1)" is used on a ESRI SHAPE or a RASTER layer. > This is definitely very strange. If you set "STATUS ON" directly in the mapfile then does it hang as well? If yes then that at least tells us that the problem has nothing to do with the set("status", 1) call. Oh wait... those symptoms are similar to what we had in ticket #458 (http://trac.osgeo.org/mapserver/ticket/458) ... do you use DEBUG TRUE in your mapfile with MS_ERRORFILE "stderr"? If yes then perhaps try disabling it and see if that makes a difference. Daniel -- Daniel Morissette http://www.mapgears.com/ From candalt at ONLINE.NO Thu Aug 16 05:48:55 2007 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Thu, 16 Aug 2007 14:48:55 +0200 Subject: Strange MS beta3 behaviour.. Message-ID: Hi again.. Tried to set STATUS ON directly in the mapfile on a POSTGIS layer and the same strange behaviour still occur. One remark...the page does not "hang" forever...it just uses many more seconds (4-5) before it is finished rendered, than in the previous version of MS4W (2.2.3). I do not hav DEBUG TRUE enabled in my mapfile. Sture -----Opprinnelig melding----- Fra: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] P? vegne av Daniel Morissette Sendt: 16. august 2007 14:06 Til: MAPSERVER-USERS at LISTS.UMN.EDU Emne: Re: [UMN_MAPSERVER-USERS] Strange MS beta3 behaviour.. Sture Dings?yr wrote: > Hello... > > Been testing the new beta release of MS4W (beta3), and i have noticed a strange behaviour. > > I use a small PHP mapscript to generate a picture. But when I use the mapscriptfunction "set("status", 1)" on a POSTGIS, WMS or WFS layer...the web browser "hangs" for many seconds before the PHP page is finished rendering. > > This behaviour dos not occur when "set("status", 1)" is used on a ESRI SHAPE or a RASTER layer. > This is definitely very strange. If you set "STATUS ON" directly in the mapfile then does it hang as well? If yes then that at least tells us that the problem has nothing to do with the set("status", 1) call. Oh wait... those symptoms are similar to what we had in ticket #458 (http://trac.osgeo.org/mapserver/ticket/458) ... do you use DEBUG TRUE in your mapfile with MS_ERRORFILE "stderr"? If yes then perhaps try disabling it and see if that makes a difference. Daniel -- Daniel Morissette http://www.mapgears.com/ From sebastian.walter at FU-BERLIN.DE Thu Aug 16 05:52:34 2007 From: sebastian.walter at FU-BERLIN.DE (Sebastian Walter) Date: Thu, 16 Aug 2007 14:52:34 +0200 Subject: customizing epsg codes In-Reply-To: Message-ID: Hi Ed, thank you very much for your comment. Ed McNierney wrote: > The server you're > connecting to is violating the spec if they are inventing and publishing new > namespaces. Under some circumstances I am as willing to bend the rules as > anyone else, but if you are going to require a non-standard behavior of your > clients that will make it very difficult for client software to use your WMS > server. > I was talking about namespaces which are already proposed to being incorporated as OGC standards. Currently, EPSG codes are not working on solar system's bodies except earth. That's why there is a urgent need for expanding the existing standards. And the proposal I linked in my first mail suggests well defined ones. As there are other mapservers using these standards (e.g. http://onmars.jpl.nasa.gov/wms.cgi?request=GetCapabilities or http://www.mapaplanet.org/explorer-bin/imageMaker.cgi?map=Mars&request=GetCapabilities&version=1.1.1), there is no real alternative to that (if not wanting to use EPSG:4326). > The most practical and expedient solution is for your client AND the server > to insert those same definitions into the EPSG table so you can make the > request in a manner that's compliant with the WMS specification. Good luck! > This is indeed the best short time solution for driving a server, but to use UMN Mapserver as a client for the above mapservers (ESRI based, I think), I will need to change Mapserver's code. Regards, Sebastian From laura.poggio at GMAIL.COM Thu Aug 16 08:04:03 2007 From: laura.poggio at GMAIL.COM (Laura Poggio) Date: Thu, 16 Aug 2007 17:04:03 +0200 Subject: query and point layer Message-ID: I am learning how to use mapserver and I am fighting with a problem. I managed to built a simple map application and I started to work with queries. Everything was fine with all polygons layers I tried. However when I started to use point layer (some soil sampling sites) the things went wrong. I select the sites layer (see below) and query or nquery mode. Then I click on the map and nothing happened, as if mapserver was not recognising the query keywords I introduced in the mapfile. Below there is the code I am using for this layer. If someone knows what I can do, I will be extremely happy as this kind of layers is the most important for my application! Thanks in advance Laura ======================================================= LAYER # point layer with sampled site starts here, query NAME "q_sites" DATA "D:/ALRPC/Gis/Data/Grugliasco/Soil_Data/Layers/gru_sites_gb" TRANSPARENCY 100 TYPE point STATUS On HEADER 'c:/ms4w/tmp/mapfile/q_templates/prova_sites_header.html' FOOTER 'c:/ms4w/tmp/mapfile/q_templates/prova_sites_footer.html' TOLERANCE 10 TOLERANCEUNITS pixels CLASS TEMPLATE 'c:/ms4w/tmp/mapfile/q_templates/prova_sites_class_query.html' STYLE SYMBOL 'circle' COLOR 255 0 0 SIZE 2 END # end style END # end class END # sites layer ends here ===================================================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From jimlug at CO.CLACKAMAS.OR.US Thu Aug 16 08:16:28 2007 From: jimlug at CO.CLACKAMAS.OR.US (ClackJim) Date: Thu, 16 Aug 2007 08:16:28 -0700 Subject: Change Text of Feature Object/Inline Feature Message-ID: Aloha folks, I am trying to change the text of a so-called Feature Object using MapScript. When I have the code within the MapFile, everything works just fine. However, when I try to use MapScript I am unable to change the text. I've tried several different techniques and searched all over for the answer. Attached is a sample of my code within my MapFile: #---Copyright---# LAYER NAME copyright STATUS ON TYPE annotation TRANSFORM false FEATURE POINTS 70 535 END TEXT "? Clackamas County 2006" END CLASS LABEL FONT arial TYPE TRUETYPE SIZE 8 BUFFER 1 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 FORCE TRUE END END END $coLyr = $map->getLayerByName('copyright'); $coShp =$coLyr->getShape(-1,0); $coText = $coShp->text; echo $coText . "
"; $coNewText = "©" . "Clackamas County 2006 - Aerial 2005" ; $coShp->set('text',$coNewText); $coText = $coShp->text; echo "New text is " . $coText; I thought this should work since I am verifying the new text with the second echo. Does anyone have any suggestion? -- View this message in context: http://www.nabble.com/Change-Text-of-Feature-Object-Inline-Feature-tf4280302.html#a12183304 Sent from the Mapserver - User mailing list archive at Nabble.com. From watry at STEAM.COAPS.FSU.EDU Thu Aug 16 11:13:17 2007 From: watry at STEAM.COAPS.FSU.EDU (Gary Watry) Date: Thu, 16 Aug 2007 13:13:17 -0500 Subject: Migration to linux Message-ID: We are moving to Linux from Windows, I can run MS4W and my derive sites from there. The linux we are going to is CENTOS version 5, It already has Apache-2.2, php-5.1.6, MySQL-5.0, PostgreSQL-8.1. Most of the FGS files I found have older versions of the software How do I get started? Use an older FGS package or use the pieces and strt from scratch. From dmorissette at MAPGEARS.COM Thu Aug 16 11:20:25 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 16 Aug 2007 14:20:25 -0400 Subject: Migration to linux In-Reply-To: Message-ID: Gary Watry wrote: > > Most of the FGS files I found have older versions of the software > > How do I get started? > Use an older FGS package or use the pieces and strt from scratch. You're right, the builds on the FGS site are quite out of date. However, Frank has setup daily FGS builds of MapServer 5.0 betas. If you feel brave then you could use that: http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/fgs-msx-5.0/ Daniel -- Daniel Morissette http://www.mapgears.com/ From gregor at HOSTGIS.COM Thu Aug 16 11:28:11 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 16 Aug 2007 12:28:11 -0600 Subject: Migration to linux In-Reply-To: Message-ID: Gary Watry wrote: > We are moving to Linux from Windows, I can run MS4W and my derive sites > from there. > How do I get started? > Use an older FGS package or use the pieces and strt from scratch. Might I recommend HostGIS Linux? :) http://www.hostgis.com/linux/ Not to shill, but it sounded relevant here. -- Gregor Mosheh / Greg Allensworth 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 mitchelljj98 at GMAIL.COM Thu Aug 16 15:36:10 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Thu, 16 Aug 2007 18:36:10 -0400 Subject: Running shp2img I get the following error: Projection library error. No options found in init file Message-ID: Hi, In running shp2img I get the following error: Projection library error. No options found in 'init' file. The epsg file is in the correct location of *\ms4w\proj\nad and it includes the value of 4326 which is the value of the referenced layers "init=epsg:4326". What needs to be done to fix this error? Thanks, * -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at ZEELANDNET.NL Thu Aug 16 17:48:14 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Fri, 17 Aug 2007 02:48:14 +0200 Subject: geometry problem when migrating from windows to linux Message-ID: Hello list! I have a dataset of two multipolygon layers that work fine on mapserver 4.10.2 on windows. I have uploaded my data to a linux server with the same versions. On the linux server mapserver throws errors when moving around the map. it looks like some of the multipolygons get corrupted or interpeted differently? Does anyone know about errors like this? The log gives nothing usefull and the server error is 500 -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Thu Aug 16 18:02:08 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 16 Aug 2007 19:02:08 -0600 Subject: geometry problem when migrating from windows to linux In-Reply-To: <46C4F04E.50902@zeelandnet.nl> Message-ID: Milo van der Linden wrote: > I have a dataset of two multipolygon layers that work fine on mapserver > 4.10.2 on windows. I have uploaded my data to a linux server with the > same versions. On the linux server mapserver throws errors when moving > around the map. I've been working with Milo and wanted to add a bit more info. The error is with some specific records. I demonstrated this by converting the original data (MID/MIF format) into PostGIS and then filtering by gid. Keep tweaking the gid filter until I figure out which records cause a problem, ... Then try to see what the problem is. * The layer is not using a classitem labelitem, etc. In fact, the PostGIS table has only the gid and the_geom columns. * isvalid(the_geom) and issimple(the_geom) return true for all records in the table, including these problematic records. * Visually examining astext(the_geom) looks fine as best I can tell. But reading 200kB of numbers and text isn't a reliable method of testing geometries. :) Now, about the Windows-vs-Linux thing... Our Linux system is running MS 4.10.0 and GDAL 1.3.2 His Windows is 4.10.2 and GDAL 1.4.1 We both have mapfiles, which connect to the same PostGIS database. His shows the image, ours gives a 500 error. Again, the issue is only when certain records would be displayed. Viewing the entire world, or another area that doesn't contains these records, works fine even on the Linux one. shp2img replicates the same behavior as Mapserver-via-CGI. If I set the extent in the mapfile to the Bermuda Rectangle, shpimg gives a segfault. If I set the extent to worldwide or some other rectangle, all is well. I did build both GDAL/OGR 1.4.2 and Mapserver 4.10.2, and shp2img gave the exact same results. I've also md5sum'd the data files before importing to PostGIS (the ZIP came across okay anyway, but let's get paranoid, right?) to verify that the dataset is indeed arriving on our server intact. So, we're baffled! -- Gregor Mosheh / Greg Allensworth 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 pauljame at GMAIL.COM Thu Aug 16 18:07:15 2007 From: pauljame at GMAIL.COM (Paul james) Date: Thu, 16 Aug 2007 22:07:15 -0300 Subject: Problem with Mapscript C# on Windows XP 64-bits! Message-ID: Hello people! I?m trying to make my app run on WIN XP 64 bits... I used the same dlls from my 32 bits *environment* ... I got this exception on mapaObj = new mapObj(path); *An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)* *Description: *An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. *Exception Details: *System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) [BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)] SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_mapscript(ExceptionDelegate applicationDelegate, ExceptionDelegate arithmeticDelegate, ExceptionDelegate divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate, ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate, ExceptionDelegate nullReferenceDelegate, ExceptionDelegate outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate systemExceptionDelegate) +0 SWIGExceptionHelper..cctor() +1049 Any solutions? []?s -------------- next part -------------- An HTML attachment was scrubbed... URL: From candalt at ONLINE.NO Fri Aug 17 01:30:50 2007 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Fri, 17 Aug 2007 10:30:50 +0200 Subject: Strange MS beta3 behaviour.. Message-ID: Some more info regarding the strange problem of php using long time to finish rendering page... Used Wget to demonstrate what is happening: C:\Wget>wget http://avsdi:81/test.php --10:16:59-- http://avsdi:81/test.php => `test.php.3' Connecting to avsdi:81... connected! HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] 0K -> 10:17:00 (86.91 KB/s) - `test.php.3' saved [89] In this call the page is finished rendered in about 1 second... I have not enabled any Postgis or WMS layeres... C:\Wget>wget http://avsdi:81/test.php --10:17:06-- http://avsdi:81/test.php => `test.php.4' Connecting to avsdi:81... connected! HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] 0K -> 10:17:12 (18.00 B/s) - `test.php.4' saved [90] In this call the page is finished rendered in about 6 second... Here a Postgis layer is enabled. I can see that the MS picture is created in my tmp folder before the page is finished rendering...so the problem is the "extra" time the page "hangs". Have also tested on a different computer, so I do not think this is a local problem... Best Regards -----Opprinnelig melding----- Fra: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] P? vegne av Daniel Morissette Sendt: 16. august 2007 14:06 Til: MAPSERVER-USERS at LISTS.UMN.EDU Emne: Re: [UMN_MAPSERVER-USERS] Strange MS beta3 behaviour.. Sture Dings?yr wrote: > Hello... > > Been testing the new beta release of MS4W (beta3), and i have noticed a strange behaviour. > > I use a small PHP mapscript to generate a picture. But when I use the mapscriptfunction "set("status", 1)" on a POSTGIS, WMS or WFS layer...the web browser "hangs" for many seconds before the PHP page is finished rendering. > > This behaviour dos not occur when "set("status", 1)" is used on a ESRI SHAPE or a RASTER layer. > This is definitely very strange. If you set "STATUS ON" directly in the mapfile then does it hang as well? If yes then that at least tells us that the problem has nothing to do with the set("status", 1) call. Oh wait... those symptoms are similar to what we had in ticket #458 (http://trac.osgeo.org/mapserver/ticket/458) ... do you use DEBUG TRUE in your mapfile with MS_ERRORFILE "stderr"? If yes then perhaps try disabling it and see if that makes a difference. Daniel -- Daniel Morissette http://www.mapgears.com/ From candalt at ONLINE.NO Fri Aug 17 02:24:31 2007 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Fri, 17 Aug 2007 11:24:31 +0200 Subject: Strange MS beta3 behaviour.. Message-ID: Solved the problem with php using long time to finish rendering page... I checked the PHP log and found this error message: [Fri Aug 17 11:15:03 2007] [error] [client 172.21.1.60] Error in my_thread_global_end(): 1 threads didn't exit\r A quick search lead me to: http://bugzilla.maptools.org/show_bug.cgi?id=1730 It seams that php 5.2.2 and 5.2.3 have a broken libmysql.dll When I replaced the libmysql.dll in MS4W 2.2.5Beta with an older one from MS4W 2.2.3 the problem dissapeared... Hopefully this can help others having the same problem Cheers Sture -----Opprinnelig melding----- Fra: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] P? vegne av Daniel Morissette Sendt: 16. august 2007 14:06 Til: MAPSERVER-USERS at LISTS.UMN.EDU Emne: Re: [UMN_MAPSERVER-USERS] Strange MS beta3 behaviour.. Sture Dings?yr wrote: > Hello... > > Been testing the new beta release of MS4W (beta3), and i have noticed a strange behaviour. > > I use a small PHP mapscript to generate a picture. But when I use the mapscriptfunction "set("status", 1)" on a POSTGIS, WMS or WFS layer...the web browser "hangs" for many seconds before the PHP page is finished rendering. > > This behaviour dos not occur when "set("status", 1)" is used on a ESRI SHAPE or a RASTER layer. > This is definitely very strange. If you set "STATUS ON" directly in the mapfile then does it hang as well? If yes then that at least tells us that the problem has nothing to do with the set("status", 1) call. Oh wait... those symptoms are similar to what we had in ticket #458 (http://trac.osgeo.org/mapserver/ticket/458) ... do you use DEBUG TRUE in your mapfile with MS_ERRORFILE "stderr"? If yes then perhaps try disabling it and see if that makes a difference. Daniel -- Daniel Morissette http://www.mapgears.com/ From szekerest at GMAIL.COM Fri Aug 17 05:28:46 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 17 Aug 2007 14:28:46 +0200 Subject: Problem with Mapscript C# on Windows XP 64-bits! In-Reply-To: <33fad6880708161807h770cf296qc1bd4d0b76fad39f@mail.gmail.com> Message-ID: Paul, Your application probably runs against the 64 bit version of the .NET runtime. If you compile code to produce a Win32 image on a Win64 platform the default options does not force to use the 32 bit version of the framework. Therefore you might want to add '/platform:x86' to your csc command line when compiling the your application. (if not specified the default option is /platform:any) In the Visual Studio IDE you can change the "Platform target" to x86 in the application settings Build configuration page. Best regards, Tamas Szekeres 2007/8/17, Paul james : > Hello people! > I?m trying to make my app run on WIN XP 64 bits... > I used the same dlls from my 32 bits environment ... > > I got this exception on > mapaObj = new mapObj(path); > > An attempt was made to load a program with an incorrect format. (Exception > from HRESULT: 0x8007000B) Description: An unhandled exception occurred > during the execution of the current web request. Please review the stack > trace for more information about the error and where it originated in the > code. > > Exception Details: System.BadImageFormatException: An attempt was made to > load a program with an incorrect format. (Exception from HRESULT: > 0x8007000B) > > [BadImageFormatException: An attempt was made to load a program with an > incorrect format. (Exception from HRESULT: 0x8007000B)] > SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_mapscript(ExceptionDelegate > applicationDelegate, ExceptionDelegate arithmeticDelegate, ExceptionDelegate > divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate, > ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate, > ExceptionDelegate nullReferenceDelegate, ExceptionDelegate > outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate > systemExceptionDelegate) +0 SWIGExceptionHelper..cctor() +1049 > > > Any solutions? > > []?s > From desiegel at GMAIL.COM Fri Aug 17 06:26:02 2007 From: desiegel at GMAIL.COM (Dave Siegel) Date: Fri, 17 Aug 2007 09:26:02 -0400 Subject: SDE 9.1 Compatibility Message-ID: I've got a simple question but because I have been staring at the install and compilation instructions so long the answer eludes me. If I have SDE 9.1 installed on Windows with the SDK and I want to test Mapserver with it can I just download the Mapserver binaries found here: http://maptools.org/ms4w/index.phtml?page=downloads.html? If so, after the download/unpack/install what further steps are necessary (moving or pointing to the SDE dlls, libraries etc.) for Mapserver to be able to connect to SDE 9.1? It appears that this version (2.2.3) can only connect as high as SDE 9.0. Thanks Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From bassotti at YAHOO.COM Fri Aug 17 10:25:40 2007 From: bassotti at YAHOO.COM (Guido Bassotti) Date: Fri, 17 Aug 2007 10:25:40 -0700 Subject: Map Printing Message-ID: Dear all, I want to plot and print a map but I would like to know which software do you recomend me. I need the software to view all the map data files (.shp .dbf .shx) and also I need to print with as many details as possible. Thanks --------------------------------- Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cplist at SECONDCREEK.ORG Fri Aug 17 10:49:02 2007 From: cplist at SECONDCREEK.ORG (Charlton Purvis) Date: Fri, 17 Aug 2007 13:49:02 -0400 Subject: SOS version & SweCommon response Message-ID: Hi, all: SOS is currently v 0.1.2. (Correct me if I'm wrong, please.) Are there any plans to upgrade to v 1.0? Also, are there any plans to switch to a SweCommon response inside the and elements? Many thanks, Charlton From Tom.Kralidis at EC.GC.CA Fri Aug 17 10:52:31 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 17 Aug 2007 13:52:31 -0400 Subject: SOS version & SweCommon response Message-ID: Hi Charlton, Correct. 0.1.2 and 1.0 don't have too much difference. When 1.0.0 is fully released proper (i.e. http://www.opengeospatial.org/standards and http://schemas.opengis.net/ are updated), we'll update to 1.0.0. If you file this as a ticket and assign to me (tomkralidis), I'll look after it. Can you expand on the swecommon response a bit more? Is this the DataBlock issue of encoding data? ..Tom ________________________________ From: UMN MapServer Users List on behalf of Charlton Purvis Sent: Fri 17-Aug-07 13:49 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] SOS version & SweCommon response Hi, all: SOS is currently v 0.1.2. (Correct me if I'm wrong, please.) Are there any plans to upgrade to v 1.0? Also, are there any plans to switch to a SweCommon response inside the and elements? Many thanks, Charlton From jimlug at CO.CLACKAMAS.OR.US Fri Aug 17 11:04:52 2007 From: jimlug at CO.CLACKAMAS.OR.US (ClackJim) Date: Fri, 17 Aug 2007 11:04:52 -0700 Subject: Change Text of Feature Object/Inline Feature In-Reply-To: <12183304.post@talk.nabble.com> Message-ID: Ok, since I found it hard to get a response I will create my own:-{. After digging deep I realized I should move my text from the so called "Feature Object" to Class. I was then able to access the text of the Class Object and change my copyright information using settext. Here is a snippet of the code: $coLyr = $map->getLayerByName('copyright'); $coClass = $coLyr->getclass(0); // Previous text was 'Aloha' $coClass->settext('Aloha Friday'); ClackJim wrote: > > Aloha folks, > > I am trying to change the text of a so-called Feature Object using > MapScript. When I have the code within the MapFile, everything works just > fine. However, when I try to use MapScript I am unable to change the > text. > I've tried several different techniques and searched all over for the > answer. Attached is a sample of my code within my MapFile: > > #---Copyright---# > LAYER > NAME copyright > STATUS ON > TYPE annotation > TRANSFORM false > FEATURE > POINTS > 70 535 > END > TEXT "? Clackamas County 2006" > END > CLASS > LABEL > FONT arial > TYPE TRUETYPE > SIZE 8 > BUFFER 1 > COLOR 0 0 0 > BACKGROUNDCOLOR 255 255 255 > FORCE TRUE > END > END > END > > $coLyr = $map->getLayerByName('copyright'); > $coShp =$coLyr->getShape(-1,0); > $coText = $coShp->text; > echo $coText . "
"; > $coNewText = "©" . "Clackamas County 2006 - Aerial 2005" ; > $coShp->set('text',$coNewText); > $coText = $coShp->text; > echo "New text is " . $coText; > > I thought this should work since I am verifying the new text with the > second echo. Does anyone have any suggestion? > > -- View this message in context: http://www.nabble.com/Change-Text-of-Feature-Object-Inline-Feature-tf4280302.html#a12204426 Sent from the Mapserver - User mailing list archive at Nabble.com. From cplist at SECONDCREEK.ORG Fri Aug 17 11:05:11 2007 From: cplist at SECONDCREEK.ORG (Charlton Purvis) Date: Fri, 17 Aug 2007 14:05:11 -0400 Subject: SOS version & SweCommon response In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F1BFFB6@ecburexch1.ontario.int.ec.gc.ca> Message-ID: > Can you expand on the swecommon response a bit more? Is this the > DataBlock issue of encoding data? Right. I'm sorry to hound folks about this, but I thought I'd throw it out there to see if it was in the realm of possibility. E.g. Say I have 3 records of SST for a given request. Instead of returning 3 sets of GML, I'd return one set that contained a DataBlock of all the data. Here's an example of 1 day's worth of air_pressure. http://preview.tinyurl.com/33hfks Notice that the eventTime filter works great. Thanks, guys! What I'm asking for (in addition to the moon) is the ability to trim down on all the repeated data so that I would end up, instead w/ one block that contained a single result block. Like this SOS service does, http://preview.tinyurl.com/3avorn (not the same sensor). Charlton From szekerest at GMAIL.COM Fri Aug 17 11:55:57 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 17 Aug 2007 20:55:57 +0200 Subject: Problem with Mapscript C# on Windows XP 64-bits! In-Reply-To: Message-ID: This problem also applies to the mapscript c# examples so I've committed a fix to use /platform:x86 with MSVC80 by default if WIN64 is not specified in nmake.opt. For more information see: http://trac.osgeo.org/mapserver/ticket/2240 The corresponding tests have been added to the mapserver buildbot configuration http://buildbot.osgeo.org:8504/ Best regards, Tamas 2007/8/17, Tamas Szekeres : > Paul, > > Your application probably runs against the 64 bit version of the .NET runtime. > If you compile code to produce a Win32 image on a Win64 platform the default > options does not force to use the 32 bit version of the framework. > Therefore you might want to add '/platform:x86' to your csc command > line when compiling the > your application. (if not specified the default option is /platform:any) > > In the Visual Studio IDE you can change the "Platform target" to x86 > in the application settings Build configuration page. > > > Best regards, > > Tamas Szekeres > > > 2007/8/17, Paul james : > > Hello people! > > I?m trying to make my app run on WIN XP 64 bits... > > I used the same dlls from my 32 bits environment ... > > > > I got this exception on > > mapaObj = new mapObj(path); > > > > An attempt was made to load a program with an incorrect format. (Exception > > from HRESULT: 0x8007000B) Description: An unhandled exception occurred > > during the execution of the current web request. Please review the stack > > trace for more information about the error and where it originated in the > > code. > > > > Exception Details: System.BadImageFormatException: An attempt was made to > > load a program with an incorrect format. (Exception from HRESULT: > > 0x8007000B) > > > > [BadImageFormatException: An attempt was made to load a program with an > > incorrect format. (Exception from HRESULT: 0x8007000B)] > > SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_mapscript(ExceptionDelegate > > applicationDelegate, ExceptionDelegate arithmeticDelegate, ExceptionDelegate > > divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate, > > ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate, > > ExceptionDelegate nullReferenceDelegate, ExceptionDelegate > > outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate > > systemExceptionDelegate) +0 SWIGExceptionHelper..cctor() +1049 > > > > > > Any solutions? > > > > []?s > > > From bfraser at GEOANALYTIC.COM Fri Aug 17 12:36:24 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 17 Aug 2007 13:36:24 -0600 Subject: Labels not wrapping in AGG (in v5.0 beta 3) with WRAP in LABEL definition Message-ID: To v5.0 beta testers/coders, My labels are not wrapping when I use DRIVER AGG/PNG in my OUTPUTFORMAT definition, and a label definition of: LABEL FONT "arial" TYPE TRUETYPE #POSITION CC WRAP ' ' SIZE 12 BUFFER 1 COLOR 0 0 0 #OUTLINECOLOR 0 0 0 ANGLE 0 PARTIALS FALSE ANTIALIAS TRUE #MINDISTANCE 250 #MINFEATURESIZE 10 END Instead of wrapping, I get two box symbols where the wrap character was. So "Loon Lake" is rendered as "Loon##Lake" instead of Loon Lake And they DO wrap when the traditional GD renderer is used, so I suspect it's related to rendering CR/LF in AGG. Has a bug been filed to cover this (I did a quick scan of the tickets but found nothing)? If not, I'll be happy to file one if required. Brent Fraser GeoAnalytic Inc. Calgary, Alberta From woodbri at SWOODBRIDGE.COM Fri Aug 17 13:23:21 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 17 Aug 2007 16:23:21 -0400 Subject: Labels not wrapping in AGG (in v5.0 beta 3) with WRAP in LABEL definition In-Reply-To: <1f6e01c7e105$e5cecd50$140002c0@shark> Message-ID: Brent, Please file a bug on this. Looks like Thomas is not around to get it now. Thanks, -Steve W Brent Fraser wrote: > To v5.0 beta testers/coders, > > My labels are not wrapping when I use > DRIVER AGG/PNG > > in my OUTPUTFORMAT definition, and a label definition of: > > LABEL > FONT "arial" > TYPE TRUETYPE > #POSITION CC > WRAP ' ' > SIZE 12 > BUFFER 1 > COLOR 0 0 0 > #OUTLINECOLOR 0 0 0 > ANGLE 0 > PARTIALS FALSE > ANTIALIAS TRUE > #MINDISTANCE 250 > #MINFEATURESIZE 10 > END > > Instead of wrapping, I get two box symbols where the wrap > character was. So "Loon Lake" is rendered as "Loon##Lake" > instead of > Loon > Lake > > And they DO wrap when the traditional GD renderer is used, > so I suspect it's related to rendering CR/LF in AGG. > > Has a bug been filed to cover this (I did a quick scan of > the tickets but found nothing)? If not, I'll be happy to > file one if required. > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta From Tom.Kralidis at EC.GC.CA Fri Aug 17 14:14:58 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 17 Aug 2007 17:14:58 -0400 Subject: SOS version & SweCommon response Message-ID: Charlton: Thanks. If you can do the same for this issue (file ticket and assign to me), that would be much appreciated. We can address the moon request next :) ) ..Tom ________________________________ From: Charlton Purvis [mailto:cplist at secondcreek.org] Sent: Fri 17-Aug-07 14:05 To: Kralidis,Tom [Burlington]; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] SOS version & SweCommon response > Can you expand on the swecommon response a bit more? Is this the > DataBlock issue of encoding data? Right. I'm sorry to hound folks about this, but I thought I'd throw it out there to see if it was in the realm of possibility. E.g. Say I have 3 records of SST for a given request. Instead of returning 3 sets of GML, I'd return one set that contained a DataBlock of all the data. Here's an example of 1 day's worth of air_pressure. http://preview.tinyurl.com/33hfks Notice that the eventTime filter works great. Thanks, guys! What I'm asking for (in addition to the moon) is the ability to trim down on all the repeated data so that I would end up, instead w/ one block that contained a single result block. Like this SOS service does, http://preview.tinyurl.com/3avorn (not the same sensor). Charlton From paulanne.winn at WACORP.NET Fri Aug 17 15:29:38 2007 From: paulanne.winn at WACORP.NET (Mevima Winn) Date: Fri, 17 Aug 2007 15:29:38 -0700 Subject: Speeding up load time for huge SHP files Message-ID: I'm currently building a mapping application off C#, MapServer 4.10, and approximately 45 SHP files. Many of them are pretty fast to load, especially utilizing the MINSCALE/MAXSCALE function, but once I start zooming in to where US roads and tiny lakes start appearing, the app slows WAY down. Our theory here is that it's either trying to load the whole shapefile and then zooming in on one spot, or reloading the shapefile every time there is a new request. So does anybody have an idea what might be happening? The 350MB SHPfile tends to take 20 seconds or so to load, whereas the 2.5GB SHPfile can take several minutes. Is there a way around this load time, or a way to optimize it? We kind of need all of the data, at least at these particular zooms. ____________ Mevima Winn Wireless Applications Corp. 111 108th Ave. NE. Suite 160 Bellevue, WA 98004 *paulanne.winn at wacorp.net* No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.12.0/957 - Release Date: 8/16/2007 1:46 PM From dylan.beaudette at GMAIL.COM Fri Aug 17 18:21:52 2007 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Fri, 17 Aug 2007 18:21:52 -0700 Subject: Speeding up load time for huge SHP files In-Reply-To: Message-ID: On Friday 17 August 2007 15:29, Mevima Winn wrote: > I'm currently building a mapping application off C#, MapServer 4.10, and > approximately 45 SHP files. Many of them are pretty fast to load, > especially utilizing the MINSCALE/MAXSCALE function, but once I start > zooming in to where US roads and tiny lakes start appearing, the app slows > WAY down. Our theory here is that it's either trying to load the whole > shapefile and then zooming in on one spot, or reloading the shapefile every > time there is a new request. > > So does anybody have an idea what might be happening? The 350MB SHPfile > tends to take 20 seconds or so to load, whereas the 2.5GB SHPfile can take > several minutes. Is there a way around this load time, or a way to > optimize it? We kind of need all of the data, at least at these particular > zooms. search the archives for a tool called 'shptree', and spatial index files Dylan > > ____________ > Mevima Winn > Wireless Applications Corp. > 111 108th Ave. NE. > Suite 160 > Bellevue, WA 98004 > *paulanne.winn at wacorp.net* > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.484 / Virus Database: 269.12.0/957 - Release Date: 8/16/2007 > 1:46 PM -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From ed at TOPOZONE.COM Fri Aug 17 18:37:24 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 17 Aug 2007 21:37:24 -0400 Subject: Speeding up load time for huge SHP files In-Reply-To: A Message-ID: Mevima - Although it may take some searching, there has been a lot of discussion of this sort of topic on the list, so hunting in the archives could be very worthwhile. There are several issues and solutions to think about here; I'll try to run from quick fixes to more complex ones. While optimizing things, it's very, very helpful to imagine an ideal world in which each map request required you to open exactly one shapefile, you would read and display ALL the shapes in that shapefile, and you would not draw any pixel in the output image more than once. That never really happens, but it describes the optimal scenario and you should strive to approach it as much as possible. 1. Are you using the spatial indexes created with the SHPTREE command on your shapefiles? If not, do so. They will (almost) always be quite helpful. They are especially helpful when you have a large file from which you are displaying a small portion of the data. Without a spatial index MapServer needs to indeed read every record in the shapefile in order to find out whether any of them intersect the area to be drawn. A spatial index tracks the bounding box of each object and allows MapServer to quickly identify only those records whose bounding boxes intersect the area to be drawn. This is a very fast test, and it produces some false positives (some selected objects end up not being drawn anyway) but is extremely helpful unless you're essentially drawing every object in the shapefile anyway, in which case the clever selection of which objects to draw is of little use. 2. Divide the single shapefile into smaller shapefiles using SHP2TILE, then use a TILEINDEX to logically group them together. This will allow you to approach the goal of opening only one file and using all the objects in it. If you're drawing a map of Clarke County, Georgia you only need a shapefile with all the roads in Clarke County in it. Even if you tune things pretty well, a shapefile with every road in the country will take longer to process and select Clarke County roads from than a shapefile that only has Clarke County roads. Random seeks from one place on the disk to another (to read another file or a different portion of the same file) are the very slowest things your computer does. Avoid them. 3. You cannot possibly need "all the data" for a single map image request. The first two steps above should help you more quickly select which portion of the data you do need. If you end up finding that you are still processing and rendering a large subset of the data, then you should consider generalizing your shapefiles to simplify the geometry of the objects in them. If you're drawing a map that's 1,200 by 800 pixels, that's about 1 megapixel. You can't productively use 2,500 megabytes of data to produce 1 megapixel of output. But if you have, for example, a very highly detailed outline of, for example, the US coastline, you may find that to be excellent for large-scale, zoomed-in maps. But if you use that same shapefile to draw a small-scale view of the entire country, you will find that most of your vectors are far smaller than a pixel; you will end up drawing the same pixel over and over again, rendering teeny little sub-pixel vectors. If that's your problem, you need a different, simplified version of that shapefile (using MINSCALE/MAXSCALE to select the right one) for use at small scales. The capitalized keywords above are good search terms for the archives. If you can think about these issues and then describe your shapefile structure in a bit more detail we can probably be more helpful. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: 978-251-4242, Fax: 978-251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mevima Winn Sent: Friday, August 17, 2007 6:30 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Speeding up load time for huge SHP files I'm currently building a mapping application off C#, MapServer 4.10, and approximately 45 SHP files. Many of them are pretty fast to load, especially utilizing the MINSCALE/MAXSCALE function, but once I start zooming in to where US roads and tiny lakes start appearing, the app slows WAY down. Our theory here is that it's either trying to load the whole shapefile and then zooming in on one spot, or reloading the shapefile every time there is a new request. So does anybody have an idea what might be happening? The 350MB SHPfile tends to take 20 seconds or so to load, whereas the 2.5GB SHPfile can take several minutes. Is there a way around this load time, or a way to optimize it? We kind of need all of the data, at least at these particular zooms. ____________ Mevima Winn Wireless Applications Corp. 111 108th Ave. NE. Suite 160 Bellevue, WA 98004 *paulanne.winn at wacorp.net* No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.12.0/957 - Release Date: 8/16/2007 1:46 PM From Tim.Nolte at IPCSWIRELESSINC.COM Fri Aug 17 18:39:28 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Fri, 17 Aug 2007 21:39:28 -0400 Subject: Speeding up load time for huge SHP files Message-ID: You'll really want to try break your shapefile up into smaller sections. I've got around 2GB of shapefile data I broke down into smaller shapefiles and this improved the loads time considerably. Once you get your shapefile broken down into smaller ones you'll want to be sure to run shptree on all the shapefiles, to index them individually. After that you can create a tile index of all the shape files. You simply reference the tile index shapefile as your data source in your map file. Check out the reference docs at the MapServer website for shptree & tile4ms. ---- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From macioos01-lbs at YAHOO.PL Sat Aug 18 14:18:39 2007 From: macioos01-lbs at YAHOO.PL (SUBSCRIBE MAPSERVER-USERS Maciej Marczewski) Date: Sat, 18 Aug 2007 16:18:39 -0500 Subject: CGI Mode itemnquery via Java returns no results Message-ID: Hello everyone! I have just joined your mailing list because I encountered problem that I can't solve. I think that I am missing something simple. Maybe you could help me ? I am writing my Thesis using MapServer, communicating with MS4W via URL in CGI mode, sending via URL some parameters: http://localhost:90/cgi-bin/mapserv.exe?mode=itemnquery&map=/ms4w/apps/hello/map4.map&mapext=470500.0+722000.0+474500.0+726000.0&qlayer=drogiInne&qitem=NAZWACZ2&qstring=('[NAZWACZ2]' ne '') When I send this link via internet browser, results are returned. (when I change mode to 'map' I also get a proper map file). In my thesis, I need to communicate to MapServer via Java, from Tomcat Servlet, and here is a deal. When I pass exactly the same link and try to connect with MapServer from Java App (NetBeans IDE) I get a response: msQueryByAttributes(): Search returned no results. No matching record(s) found. I am really confused now, and really have no idea what should I do now. Am I missing something ? Is it impossible to send queries this way ? I would be very gladfull for yours sugestions. Have a nice day/night Maciej Marczewski Student Gdansk University of Technology Poland From macioos01-lbs at YAHOO.PL Sat Aug 18 16:49:41 2007 From: macioos01-lbs at YAHOO.PL (SUBSCRIBE MAPSERVER-USERS Maciej Marczewski) Date: Sat, 18 Aug 2007 18:49:41 -0500 Subject: CGI Mode itemnquery via Java returns no results Message-ID: :) Solution found by FrankW. Thanks a lot :) There was a problem with conversion of white spaces. Browser converts white spaces to %20 when processing a request, and the request is valid then. Java don't do it, and it appears that request containing qstring with white spaces is not valid. Solution is to hard code all whitespaces to %20, or to use a java method that do this for you. So once again to clarify: (...)&qstring=('[NAZWACZ2]' ne '') <- WRONG = produces no results (...)&qstring=('[NAZWACZ2]'%20ne%20'') <- VALID = produces results. A bit confusing. Thanks a lot for help, FrankW. Maciej Marczewski Gdansk University of Technology Poland From dpinte at ITAE.BE Sat Aug 18 17:32:20 2007 From: dpinte at ITAE.BE (Didrik Pinte) Date: Sun, 19 Aug 2007 02:32:20 +0200 Subject: doubled labels Message-ID: Hi, I'm developping a php/mapscript application with mapserver 4.10. I have a basic layer with the following definition : LAYER NAME "test_layer" STATUS ON TYPE POINT TOLERANCE 10 LABELCACHE ON LABELMAXSCALE 40000 CLASS NAME "Sites" COLOR 255 0 0 OUTLINECOLOR 255 0 0 SIZE 10 SYMBOL "circle" LABEL POSITION AUTO ANGLE AUTO SIZE medium COLOR 0 0 0 TYPE bitmap FONT arial ANTIALIAS true BACKGROUNDCOLOR 255 255 255 PARTIALS false END END PROJECTION [...] END END I fill in the layer using php/mapscript with the following code : $shp = ms_newShapeObj(MS_SHAPE_LINE); $pt = ms_newLineObj(); $pt->addXY($point->x,$point->y); $pt->addXY($point->x,$point->y); $shp->add($pt); $shp->classindex = 0; $shp->set('text', $obj->get_id()); $lyr->addFeature($shp); It works fine except that the text label appears twice on the produced image. What is wrong with my configuration ? Any clue ? Thanks -- Didrik Pinte Information Technologies for the Agro-Environment -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From asllad at GMX.DE Sun Aug 19 05:25:36 2007 From: asllad at GMX.DE (Thomas Z.) Date: Sun, 19 Aug 2007 07:25:36 -0500 Subject: Remove small polygons Message-ID: Hi List, I hope someone can help me. I have a town layer with lot of polygons but there is no information inside how big are the polygons. There is the town name and a part of information. Is there a way to tell the mapserver to draw only polygons they are bigger then 5x5 pixel, or the area is bigger then 25 pixel ? best regards Thomas From sebastian.walter at FU-BERLIN.DE Sun Aug 19 09:46:02 2007 From: sebastian.walter at FU-BERLIN.DE (Sebastian Walter) Date: Sun, 19 Aug 2007 18:46:02 +0200 Subject: MapScript Wrappers Message-ID: Dear List, I'd like to setup a mapscript wrapper as described at http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript For me, the first example is not working with a real-world example, I always get a complain about wrong EPSG code back. Exact error is this: msWMSLoadGetMapParams(): WMS server error. Unsupported SRS namespace (only EPSG and AUTO currently supported). I'm sure I submit the right EPSG code, and without it's working (but, of course, wms clients need to submit them). Because I'm absolutely new with python, could someone imagine what's the problem here? I'm expecting the colon (in EPSG:4326) to be problematic somehow, but don't know how to substitute it. Thanks, Sebastian From thomas.bonfort at GMAIL.COM Sun Aug 19 10:41:46 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Sun, 19 Aug 2007 19:41:46 +0200 Subject: Labels not wrapping in AGG (in v5.0 beta 3) with WRAP in LABEL definition In-Reply-To: <46C603B9.3010806@swoodbridge.com> Message-ID: this was fixed just after beta 3, so should be working ok in beta 4. thanks for testing and please report if this isn't working as expected tb On 8/17/07, Stephen Woodbridge wrote: > > Brent, > > Please file a bug on this. Looks like Thomas is not around to get it now. > > Thanks, > -Steve W > > Brent Fraser wrote: > > To v5.0 beta testers/coders, > > > > My labels are not wrapping when I use > > DRIVER AGG/PNG > > > > in my OUTPUTFORMAT definition, and a label definition of: > > > > LABEL > > FONT "arial" > > TYPE TRUETYPE > > #POSITION CC > > WRAP ' ' > > SIZE 12 > > BUFFER 1 > > COLOR 0 0 0 > > #OUTLINECOLOR 0 0 0 > > ANGLE 0 > > PARTIALS FALSE > > ANTIALIAS TRUE > > #MINDISTANCE 250 > > #MINFEATURESIZE 10 > > END > > > > Instead of wrapping, I get two box symbols where the wrap > > character was. So "Loon Lake" is rendered as "Loon##Lake" > > instead of > > Loon > > Lake > > > > And they DO wrap when the traditional GD renderer is used, > > so I suspect it's related to rendering CR/LF in AGG. > > > > Has a bug been filed to cover this (I did a quick scan of > > the tickets but found nothing)? If not, I'll be happy to > > file one if required. > > > > Brent Fraser > > GeoAnalytic Inc. > > Calgary, Alberta > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Sun Aug 19 20:48:52 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Sun, 19 Aug 2007 23:48:52 -0400 Subject: MapScript Wrappers Message-ID: It sounds like a malformed SRS parameter. What does your WMS request look like? What is the value of the SRS parameter passed? ..Tom -----Original Message----- From: UMN MapServer Users List on behalf of Sebastian Walter Sent: Sun 19-Aug-07 12:46 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MapScript Wrappers Dear List, I'd like to setup a mapscript wrapper as described at http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript For me, the first example is not working with a real-world example, I always get a complain about wrong EPSG code back. Exact error is this: msWMSLoadGetMapParams(): WMS server error. Unsupported SRS namespace (only EPSG and AUTO currently supported). I'm sure I submit the right EPSG code, and without it's working (but, of course, wms clients need to submit them). Because I'm absolutely new with python, could someone imagine what's the problem here? I'm expecting the colon (in EPSG:4326) to be problematic somehow, but don't know how to substitute it. Thanks, Sebastian From rodrigohaas at GMAIL.COM Sun Aug 19 20:45:31 2007 From: rodrigohaas at GMAIL.COM (SUBSCRIBE MAPSERVER-USERS Rodrigo Haas) Date: Sun, 19 Aug 2007 22:45:31 -0500 Subject: how get itemnquery result for manage output with AJAX to client ? Message-ID: Hellow all! How get itemnquery result for manage output with AJAX to client user ? I want to make a Asynchronous query for the server with Javascript and show the query result in a table. My "savequery=true" and the file "test11875731103632.qy" was created in tmp folder, but the content file is equal: "?W1A'X?aA...." The content of the file is correct? it would have to be human-legible as "Attribute:value" ? Sorry for may bad english! Thanks a Lot! Rodrigo  From j.l.h.hartmann at UVA.NL Mon Aug 20 03:35:30 2007 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Mon, 20 Aug 2007 12:35:30 +0200 Subject: Proceddings first Mapserver conference Minneapolis 2003 In-Reply-To: Message-ID: Hi folks, Where are the proceedings of the first (and until now best IMHO) MapServer conference in Minneapolis/St. Paul in 2003? The proceedings at http://mapserver.gis.umn.edu/community/conferences/ start in 2004 in Ottawa. Jan Dr. J. Hartmann Department of Geography University of Amsterdam From j.l.h.hartmann at UVA.NL Mon Aug 20 04:33:06 2007 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Mon, 20 Aug 2007 13:33:06 +0200 Subject: Speeding up load time for huge SHP files In-Reply-To: <4BF377919225F449BB097CB76FFE9BC801988336@ptolemy.topozone.com> Message-ID: Ed McNierney wrote: > If that's your > problem, you need a different, simplified version of that shapefile > (using MINSCALE/MAXSCALE to select the right one) for use at small > scales. > Hi Ed, How would you produce that simplified version is none is available already? Jan From sebastian.walter at FU-BERLIN.DE Mon Aug 20 04:51:00 2007 From: sebastian.walter at FU-BERLIN.DE (Sebastian Walter) Date: Mon, 20 Aug 2007 13:51:00 +0200 Subject: Speeding up load time for huge SHP files In-Reply-To: <46C97BF2.5090805@uva.nl> Message-ID: Hi, Jan Hartmann wrote: > > How would you produce that simplified version is none is available > already? A very conveniant way of simplifying big shapefiles is dumping them in PostGis/Postgresql using shape2pgsql, then creating a new geometry column and fill the data with "UPDATE SET = simplify(the_geom,0.01) where the 0.01 is the tolerance factor, this number works well for me in longlat units. Then you can dump the table back to a shapefile using pgsql2shp. This way, simplifying huge shapefiles is really fast and stable, while in ArcGIS it's taking hours, and then just crashes. Regards, Sebastian From j.l.h.hartmann at UVA.NL Mon Aug 20 04:57:08 2007 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Mon, 20 Aug 2007 13:57:08 +0200 Subject: Speeding up load time for huge SHP files In-Reply-To: <46C98024.6010600@fu-berlin.de> Message-ID: Thanks Sebastian. I had heard of that, but I never used it, based on my expeience with ArcView and ArcGIS; crashes and funny maps. Jan Sebastian Walter wrote: > Hi, > > Jan Hartmann wrote: >> How would you produce that simplified version is none is available >> already? > > A very conveniant way of simplifying big shapefiles is dumping them in > PostGis/Postgresql using shape2pgsql, then creating a new geometry > column and fill the data with "UPDATE
SET = > simplify(the_geom,0.01) > where the 0.01 is the tolerance factor, this number works well for me in > longlat units. Then you can dump the table back to a shapefile using > pgsql2shp. > > This way, simplifying huge shapefiles is really fast and stable, while > in ArcGIS it's taking hours, and then just crashes. > > Regards, > Sebastian > From ed at TOPOZONE.COM Mon Aug 20 04:57:42 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 20 Aug 2007 07:57:42 -0400 Subject: Speeding up load time for huge SHP files In-Reply-To: A<46C98024.6010600@fu-berlin.de> Message-ID: Jan - I would use PostGIS, just as Sebastian suggests! ArcGIS does offer the same sort of functionality, but it does take a while for me and I don't find it easy to automate for multiple files. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: 978-251-4242, Fax: 978-251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Sebastian Walter Sent: Monday, August 20, 2007 7:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Speeding up load time for huge SHP files Hi, Jan Hartmann wrote: > > How would you produce that simplified version is none is available > already? A very conveniant way of simplifying big shapefiles is dumping them in PostGis/Postgresql using shape2pgsql, then creating a new geometry column and fill the data with "UPDATE
SET = simplify(the_geom,0.01) where the 0.01 is the tolerance factor, this number works well for me in longlat units. Then you can dump the table back to a shapefile using pgsql2shp. This way, simplifying huge shapefiles is really fast and stable, while in ArcGIS it's taking hours, and then just crashes. Regards, Sebastian From richard.greenwood at GMAIL.COM Mon Aug 20 05:09:57 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 20 Aug 2007 06:09:57 -0600 Subject: how get itemnquery result for manage output with AJAX to client ? In-Reply-To: Message-ID: On 8/19/07, SUBSCRIBE MAPSERVER-USERS Rodrigo Haas wrote: > Hellow all! > > > How get itemnquery result for manage output with AJAX to client user ? > > I want to make a Asynchronous query for the server with Javascript and show > the query result in a table. > > My "savequery=true" and the file "test11875731103632.qy" was created in tmp > folder, but the content file is equal: "?W1A'X?aA...." > > The content of the file is correct? it would have to be human-legible as > "Attribute:value" ? > > > Sorry for may bad english! > > Thanks a Lot! > > Rodrigo > Maybe you do not have your template setup correctly. Specify a template HTML file containing, for example: Attribute1: [attribute1]
Attribute2: [attribute2].... HTH, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From dmorissette at MAPGEARS.COM Mon Aug 20 05:43:52 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Mon, 20 Aug 2007 08:43:52 -0400 Subject: Strange MS beta3 behaviour.. In-Reply-To: <24184213.230941187342671082.JavaMail.adm-moff@moffice5.nsc.no> Message-ID: Thanks for tracking this one down. FYI I have filed a MS4W bug about this: http://bugzilla.maptools.org/show_bug.cgi?id=1772 Hopefully the next release of MS4W will have this fixed. Daniel Sture Dings?yr wrote: > Solved the problem with php using long time to finish rendering page... > > I checked the PHP log and found this error message: > [Fri Aug 17 11:15:03 2007] [error] [client 172.21.1.60] Error in my_thread_global_end(): 1 threads didn't exit\r > > A quick search lead me to: > http://bugzilla.maptools.org/show_bug.cgi?id=1730 > > It seams that php 5.2.2 and 5.2.3 have a broken libmysql.dll > > When I replaced the libmysql.dll in MS4W 2.2.5Beta with an older one from MS4W 2.2.3 the problem dissapeared... > > Hopefully this can help others having the same problem > > Cheers > Sture > > -----Opprinnelig melding----- > Fra: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] P? vegne av Daniel Morissette > Sendt: 16. august 2007 14:06 > Til: MAPSERVER-USERS at LISTS.UMN.EDU > Emne: Re: [UMN_MAPSERVER-USERS] Strange MS beta3 behaviour.. > > Sture Dings?yr wrote: >> Hello... >> >> Been testing the new beta release of MS4W (beta3), and i have noticed a strange behaviour. >> >> I use a small PHP mapscript to generate a picture. But when I use the mapscriptfunction "set("status", 1)" on a POSTGIS, WMS or WFS layer...the web browser "hangs" for many seconds before the PHP page is finished rendering. >> >> This behaviour dos not occur when "set("status", 1)" is used on a ESRI SHAPE or a RASTER layer. >> > > This is definitely very strange. If you set "STATUS ON" directly in the mapfile then does it hang as well? If yes then that at least tells us that the problem has nothing to do with the set("status", 1) call. > > Oh wait... those symptoms are similar to what we had in ticket #458 > (http://trac.osgeo.org/mapserver/ticket/458) ... do you use DEBUG TRUE in your mapfile with MS_ERRORFILE "stderr"? If yes then perhaps try disabling it and see if that makes a difference. > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ -- Daniel Morissette http://www.mapgears.com/ From andreas.albarello at TERRITORIUMONLINE.COM Mon Aug 20 06:43:57 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Mon, 20 Aug 2007 15:43:57 +0200 Subject: AGG: missing truetype label outlinecolor on Windows/VC8 Message-ID: Folks, some strange things are happening here with MapServer 5.0 beta 4 (as well as all the previous betas) regarding AGG truetype label rendering. For instance, when compiling MapServer with VC8, more precisely Visual C++ 2005 Express SP1, against agg 2.4 (compiled with the makefile provided by Jeff McKenna) and libfreetype 2.2.1, both compiled with VC8 as well, my truetype labels suddenly have no outlinecolor anymore. When I change the outputformat back to use GD for rendering, everything is fine. I can reproduce this behavior on two different machines, even through shp2img with a basic mapfile having just an annotation layer. Funny thing is, and I came up with this more by chance than anything, when I disable compiler optimizations by tweaking Makefile.vc to pass /Od instead of /Ox to the compiler for mapagg.cpp only (all other files and libraries, including agg, are compiled with optimizations on) I'm able to get my outlinecolors working again. This smells a lot like a compiler bug to me. If some Windows folks out there can perhaps confirm this, I'm ready to file a bug report on this, in order to at least tweak the Windows makefile (well, I guess that's most likely the only thing we can do about this). Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi Str. 12 I 39100 Bolzano/Bozen Phone: +39 0471 068611 Fax: +39 0471 068619 email: andreas.albarello at territoriumonline.com web: http://www.territoriumonline.com -------------------------------------------------------------------- From leonardo at NOVAGEO.PT Mon Aug 20 07:22:18 2007 From: leonardo at NOVAGEO.PT (Leonardo Andrade) Date: Mon, 20 Aug 2007 15:22:18 +0100 Subject: Remove small polygons In-Reply-To: Message-ID: Hi, IMHO, I think the most efficient way is to solve your problem is as follows: 1. export the data table do postgis (or another spatial db) 2. create another database table with only the largest polygons derived from the original table 3. in the mapfile, create different classes for each table appearing on diferent scales using the MINSCALE and MAXSCALE tags. Leonardo Andrade Novageo Solutions Thomas Z. wrote: > Hi List, > > I hope someone can help me. > I have a town layer with lot of polygons but there is no information inside > how big are the polygons. > There is the town name and a part of information. > Is there a way to tell the mapserver to draw only polygons they are bigger then > 5x5 pixel, or the area is bigger then 25 pixel ? > > best regards > Thomas > > From paulanne.winn at WACORP.NET Mon Aug 20 08:13:05 2007 From: paulanne.winn at WACORP.NET (Mevima Winn) Date: Mon, 20 Aug 2007 08:13:05 -0700 Subject: Speeding up load time for huge SHP files In-Reply-To: <46C98024.6010600@fu-berlin.de> Message-ID: Thanks to everyone, the shptree function worked *very* well speeding up load time. I will recommend it to all my friends! -Mevima No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date: 8/19/2007 7:27 AM From efren.serra.ctr at METNET.NAVY.MIL Mon Aug 20 09:02:36 2007 From: efren.serra.ctr at METNET.NAVY.MIL (Efren Serra) Date: Mon, 20 Aug 2007 09:02:36 -0700 Subject: Speeding up load time for huge SHP files In-Reply-To: Message-ID: Guys, Thanks for the feedback. Do you folks know of a way to generate Maps centered on the International Date-Time Boundary? -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mevima Winn Sent: Monday, August 20, 2007 8:13 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Speeding up load time for huge SHP files Thanks to everyone, the shptree function worked *very* well speeding up load time. I will recommend it to all my friends! -Mevima No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date: 8/19/2007 7:27 AM From Tim.Nolte at IPCSWIRELESSINC.COM Mon Aug 20 09:09:36 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Mon, 20 Aug 2007 12:09:36 -0400 Subject: Problem Generating Legend Images w/ MapServer v5b4... Message-ID: So I was able to get MapServer v5 beta4 compiled and running, along with AGG. The output that AGG provides is awesome. The issue I'm seeing right now is that the Legend images are ending up blank. I don't have this problem with a v5 beta 3 without the AGG compiled in. I'm sort of thinking this may be directly related to AGG. However even if I change the output driver to GD/PNG, verses AGG/PNG, the Legend images still just output as white squares. Anyone have any thoughts or advice on this? ---- 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 warmerdam at POBOX.COM Mon Aug 20 09:25:12 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 20 Aug 2007 12:25:12 -0400 Subject: Speeding up load time for huge SHP files In-Reply-To: <003801c7e343$89958520$09785098@ade.metnet.navy.mil> Message-ID: Efren Serra wrote: > Guys, > > Thanks for the feedback. Do you folks know of a way to generate Maps > centered on the International Date-Time Boundary? Efren, There are a few approaches to this. 1) You could do all your work in an appropriate local projected coordinate system. If all your data is in this projection and it behaves well at the dateline then there should be no problem. 2) You can do all your work in a geographic coordinate system (ie. everything is lat/long) and use coordinates in the range 0 to 360 instead of -180 to 180. Getting your data into this form ahead of time can be challenging. The above are "easy" cases as long as you can pre-cook things. But if you need dynamic reprojection then things get more complex because for the most part MapServer and PROJ.4 don't understand about wrapping at the dateline. This can confuse the queries against datasources in a different projection, as well as messing up rendering of some features that cross the dateline. If you can't follow (1) or (2) then I would suggest you be very specific about what you want to do and in fact, do some experimentation yourself before coming back to ask questions. For instance, the issues vary depending on whether the input data is raster or vector, whether you are producing output in geographic vs. projected space, whether you want "whole world" views or just a local area near the dateline, etc. 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 thomas.bonfort at GMAIL.COM Mon Aug 20 09:32:19 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Mon, 20 Aug 2007 18:32:19 +0200 Subject: Problem Generating Legend Images w/ MapServer v5b4... In-Reply-To: <1532456BD081F146A176FB6929E6B0D19E6A9A@KTWMAIL.ilpcs.com> Message-ID: legend drawing was broken in beta4, you can either wait for the next beta or adjust the source as in http://trac.osgeo.org/mapserver/changeset/6618 tb On 8/20/07, Nolte, Tim wrote: > > So I was able to get MapServer v5 beta4 compiled and running, along with > AGG. The output that AGG provides is awesome. The issue I'm seeing right > now is that the Legend images are ending up blank. I don't have this > problem with a v5 beta 3 without the AGG compiled in. I'm sort of > thinking this may be directly related to AGG. However even if I change > the output driver to GD/PNG, verses AGG/PNG, the Legend images still > just output as white squares. Anyone have any thoughts or advice on > this? > > ---- > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tim.Nolte at IPCSWIRELESSINC.COM Mon Aug 20 09:37:03 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Mon, 20 Aug 2007 12:37:03 -0400 Subject: Problem Generating Legend Images w/ MapServer v5b4... In-Reply-To: Message-ID: Thomas, Perfect, thanks...I'll have to remember to be looking at the changes from the SVN. ---- 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: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Monday, August 20, 2007 12:32 PM To: Nolte, Tim Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Problem Generating Legend Images w/ MapServer v5b4... legend drawing was broken in beta4, you can either wait for the next beta or adjust the source as in http://trac.osgeo.org/mapserver/changeset/6618 tb On 8/20/07, Nolte, Tim wrote: So I was able to get MapServer v5 beta4 compiled and running, along with AGG. The output that AGG provides is awesome. The issue I'm seeing right now is that the Legend images are ending up blank. I don't have this problem with a v5 beta 3 without the AGG compiled in. I'm sort of thinking this may be directly related to AGG. However even if I change the output driver to GD/PNG, verses AGG/PNG, the Legend images still just output as white squares. Anyone have any thoughts or advice on this? ---- 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 David.Hunter at FNF.COM Mon Aug 20 13:13:59 2007 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Mon, 20 Aug 2007 15:13:59 -0500 Subject: ISP question Message-ID: I am going to be developing a CGI - based mapserver app for a nonprofit, to be added to an existing web site. Their environment is IIS and ASP, which I haven't used in quite a while. Their ISP's site doesn't mention anything about allowing CGI programs to be installed, but the nonprofit's webmaster thinks they do allow it. My question is: how do you install mapserver in this type of environment. I suppose I could have the map application running at another provider that already has mapserver installed, but I'd like to avoid the extra cost to the organization that I'm helping. I can't find any "how-to" on the mapserver site regarding this, so I thought I'd ask here. David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter at fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Mon Aug 20 13:24:12 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 20 Aug 2007 14:24:12 -0600 Subject: how get itemnquery result for manage output with AJAX to client ? In-Reply-To: <604f90420708201134w24cd318cpccd89a8151e65bf9@mail.gmail.com> Message-ID: On 8/20/07, Rodrigo Haas wrote: > Richard, > > Thanks for response! > > I have a template query, "template_query.html" > (
....) > and it is setup in mapfile: > > LAYER > . > CLASS > . > TEMPLATE "template_query.html" > . > END > END > > I can see query result in new page, it's work fine. But the content of the > file "xxx.qy" saved in tmp to folder is equal: "? W1A'X? aA?." ! > > This is correct? > The content of the file "xxx.qy" it would have to be "[value1] [value2]..." That is a binary file that is usually used with a map. For example, if you highlight an object on the map, and want to keep it highlighted as the user zooms and pans, you would use the xxx.qy to keep the object highlighted. But in your case, you just want the attributes, right? Or do you want the map object(s) also? Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From richard.greenwood at GMAIL.COM Mon Aug 20 13:48:44 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 20 Aug 2007 14:48:44 -0600 Subject: PHP wrapper for mapserv CGI Message-ID: I have been using the an ASP wrapper around mapserv.exe to hide my map file and do some minor pre-processing that I don't want to do with JavaScript on the browser. The technique is describe here: http://mapserver.gis.umn.edu/docs/howto/wms_server I'd like to do the same thing, but with PHP. The best I've go so far is: Which uses the QUERY_STRING option to execute mapserv in a "shell mode". It works, but I wonder if there is a better way, and/or if this is a bad way to do it. Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From gregor at HOSTGIS.COM Mon Aug 20 13:50:47 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 20 Aug 2007 14:50:47 -0600 Subject: PHP wrapper for mapserv CGI In-Reply-To: Message-ID: > I'd like to do the same thing, but with PHP. The best I've go so far is: > passthru("/www/cgi-bin/mapserv QUERY_STRING=map=/path/to/mapfile.map"); > ?> > Which uses the QUERY_STRING option to execute mapserv in a "shell > mode". It works, but I wonder if there is a better way, and/or if this > is a bad way to do it. Oh, that is just slicker than anything. As long as you're not allowing the user to supply unchecked data (e.g. the path to the mapfile containing shel metacharacters), that's just excellent. -- Gregor Mosheh / Greg Allensworth 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 richard.greenwood at GMAIL.COM Mon Aug 20 14:16:57 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 20 Aug 2007 15:16:57 -0600 Subject: ISP question In-Reply-To: <82227F50E3BCD34F89FA1A6F46A96B5B034992A2@smbfnis-chi01.fnis.com> Message-ID: On 8/20/07, Hunter, David - St. Louis Park, MN wrote: > > > > > I am going to be developing a CGI ? based mapserver app for a nonprofit, to > be added to an existing web site. Their environment is IIS and ASP, which I > haven't used in quite a while. Their ISP's site doesn't mention anything > about allowing CGI programs to be installed, but the nonprofit's webmaster > thinks they do allow it. My question is: how do you install mapserver in > this type of environment. I suppose I could have the map application > running at another provider that already has mapserver installed, but I'd > like to avoid the extra cost to the organization that I'm helping. I can't > find any "how-to" on the mapserver site regarding this, so I thought I'd ask > here. > > > > David S. Hunter > Sr. Software Engineer > Fidelity National Geographic Solutions > division of Fidelity National Financial > 5353 Gamble Drive, Suite 201 > St. Louis Park, MN 55416 > ? Email: david.hunter at fnf.com > ' Phone: 952.542.1440 ext. 256 > 7 Fax: 952.542.3859 Just grab one of the pre-compiled MapServer Windows distributions e.g. MS4W, and copy the cgi-bin to the hosted server's cgi-bin or scripts directory. Then make a request to host/scripts/mapserv.exe and you'll know pretty quickly if they allow CGIs. As long as the required DLLs are in the same directory as the .exe you should have to do a lot more than that. HTH, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From warmerdam at POBOX.COM Mon Aug 20 14:32:58 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 20 Aug 2007 17:32:58 -0400 Subject: PHP wrapper for mapserv CGI In-Reply-To: Message-ID: Richard Greenwood wrote: > I have been using the an ASP wrapper around mapserv.exe to hide my map > file and do some minor pre-processing that I don't want to do with > JavaScript on the browser. The technique is describe here: > http://mapserver.gis.umn.edu/docs/howto/wms_server > > I'd like to do the same thing, but with PHP. The best I've go so far is: > passthru("/www/cgi-bin/mapserv QUERY_STRING=map=/path/to/mapfile.map"); > ?> > Which uses the QUERY_STRING option to execute mapserv in a "shell > mode". It works, but I wonder if there is a better way, and/or if this > is a bad way to do it. Rich, Certainly, if you pass the user's query string through to the commandline you need to be careful about quoting. On Linux it should be sufficient I think to single quote the QUERY_STRING argument to mapserv. In the above case, there are no options to pass extents or other values through. Is this just a highly simplified example or are you really not needing to pass anything from the original url? This general approach works fine if you only want to manipulate the QUERY_STRING. If you find you want to do more fancy stuff that can't be expressed by url to mapserv, you might want to consider using MapScript. For some discussion of this approach skim: http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript/#php-example (and the whole document). I recently used Python MapScript and this approach to provide a highly customized GetFeatureInfo implementation for a MapServer WMS that is otherwise handled normally. 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 FNF.COM Mon Aug 20 14:20:59 2007 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Mon, 20 Aug 2007 16:20:59 -0500 Subject: ISP question Message-ID: I already asked, and they don't allow executables. They don't allow DLLs if they have to be registered. I can try and convert my app to MapScript, is it true that the DLLs just have to be copied to bin? -----Original Message----- From: Richard Greenwood [mailto:richard.greenwood at gmail.com] Sent: Monday, August 20, 2007 4:17 PM To: Hunter, David - St. Louis Park, MN Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: ISP question On 8/20/07, Hunter, David - St. Louis Park, MN wrote: > > > > > I am going to be developing a CGI - based mapserver app for a nonprofit, to > be added to an existing web site. Their environment is IIS and ASP, which I > haven't used in quite a while. Their ISP's site doesn't mention anything > about allowing CGI programs to be installed, but the nonprofit's webmaster > thinks they do allow it. My question is: how do you install mapserver in > this type of environment. I suppose I could have the map application > running at another provider that already has mapserver installed, but I'd > like to avoid the extra cost to the organization that I'm helping. I can't > find any "how-to" on the mapserver site regarding this, so I thought I'd ask > here. > > > > David S. Hunter > Sr. Software Engineer > Fidelity National Geographic Solutions > division of Fidelity National Financial > 5353 Gamble Drive, Suite 201 > St. Louis Park, MN 55416 > ? Email: david.hunter at fnf.com > ' Phone: 952.542.1440 ext. 256 > 7 Fax: 952.542.3859 Just grab one of the pre-compiled MapServer Windows distributions e.g. MS4W, and copy the cgi-bin to the hosted server's cgi-bin or scripts directory. Then make a request to host/scripts/mapserv.exe and you'll know pretty quickly if they allow CGIs. As long as the required DLLs are in the same directory as the .exe you should have to do a lot more than that. HTH, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From bfraser at GEOANALYTIC.COM Mon Aug 20 14:28:19 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Mon, 20 Aug 2007 15:28:19 -0600 Subject: How to calculate Azimuth from Angle in map file? Message-ID: Mapservites, I've got shapefiles with angle values (0 degrees = positive X axis, increasing counter clockwise) but Mapserver uses azimuths ( 0 = positive Y axis, increasing clockwise) when rotating symbols. Is there any way to calculate azimuth from angle in the map file? I don't want to modify the dbf portions of the shapefile if I don't have to; there's 13,000 of them, and I may get updates so maintenance could be a pain. It would be nice if I could do something like: STYLE SYMBOL "pt_Building" ANGLE (90 - [angle]) # this doesn't work, so don't try it! COLOR 80 80 80 END Any ideas? Brent Fraser GeoAnalytic Inc. Calgary, Alberta From richard.greenwood at GMAIL.COM Mon Aug 20 14:39:32 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 20 Aug 2007 15:39:32 -0600 Subject: PHP wrapper for mapserv CGI In-Reply-To: <46CA088A.1060307@pobox.com> Message-ID: On 8/20/07, Frank Warmerdam wrote: > Richard Greenwood wrote: > > I have been using the an ASP wrapper around mapserv.exe to hide my map > > file and do some minor pre-processing that I don't want to do with > > JavaScript on the browser. The technique is describe here: > > http://mapserver.gis.umn.edu/docs/howto/wms_server > > > > I'd like to do the same thing, but with PHP. The best I've go so far is: > > > passthru("/www/cgi-bin/mapserv QUERY_STRING=map=/path/to/mapfile.map"); > > ?> > > Which uses the QUERY_STRING option to execute mapserv in a "shell > > mode". It works, but I wonder if there is a better way, and/or if this > > is a bad way to do it. > > Rich, > > Certainly, if you pass the user's query string through to the commandline > you need to be careful about quoting. On Linux it should be sufficient > I think to single quote the QUERY_STRING argument to mapserv. In the > above case, there are no options to pass extents or other values through. > Is this just a highly simplified example or are you really not needing > to pass anything from the original url? That's is a very simplified example URL. I am usually very happy with CGI, but I need to set a couple things in the query string before I pass the request on to CGI mapserver. I was kind of looking to see if anyone discouraged me from using the QUERY_STRING argument because it was considered a bad practice, or soon to be de-predicated, or some other pit fall. I was also looking to see if there was a preferred PHP function, more like "forward" in JSP. My PHP skills are pretty thin. One reason that I stay with 'classic' mapserver over WMS is that, as far as I can tell, WMS doesn't allow querying attribute data from multiple spatial features, e.g. dragging a box over multiple objects to select them. (But that probably belongs in a new thread). As always, thank you very much for your reply. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From richard.greenwood at GMAIL.COM Mon Aug 20 15:05:53 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 20 Aug 2007 16:05:53 -0600 Subject: How to calculate Azimuth from Angle in map file? In-Reply-To: <238801c7e371$07be4c70$140002c0@shark> Message-ID: On 8/20/07, Brent Fraser wrote: > Mapservites, > > I've got shapefiles with angle values (0 degrees = > positive X axis, increasing counter clockwise) but > Mapserver uses azimuths ( 0 = positive Y axis, increasing > clockwise) when rotating symbols. > > Is there any way to calculate azimuth from angle in the > map file? I don't want to modify the dbf portions of the > shapefile if I don't have to; there's 13,000 of them, and I > may get updates so maintenance could be a pain. > > It would be nice if I could do something like: > > STYLE > SYMBOL "pt_Building" > ANGLE (90 - [angle]) # this doesn't work, so don't > try it! > COLOR 80 80 80 > END > > Any ideas? > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta Not sure if this will work in a map file, but the formula I use to convert "mathematical" angles to azimuths is: azimuth = (450-m) - int( (450-m) / 360 ) * 360 where "m" is the "mathematical" angle. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From bfraser at GEOANALYTIC.COM Mon Aug 20 15:25:29 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Mon, 20 Aug 2007 16:25:29 -0600 Subject: How to calculate Azimuth from Angle in map file? Message-ID: Rich, Thanks for the info. Now to figure out how to get Mapserver to do the calcs... Thanks! Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Richard Greenwood" To: "Brent Fraser" Cc: Sent: Monday, August 20, 2007 4:05 PM Subject: Re: How to calculate Azimuth from Angle in map file? > On 8/20/07, Brent Fraser wrote: > > Mapservites, > > > > I've got shapefiles with angle values (0 degrees = > > positive X axis, increasing counter clockwise) but > > Mapserver uses azimuths ( 0 = positive Y axis, increasing > > clockwise) when rotating symbols. > > > > Is there any way to calculate azimuth from angle in the > > map file? I don't want to modify the dbf portions of the > > shapefile if I don't have to; there's 13,000 of them, and I > > may get updates so maintenance could be a pain. > > > > It would be nice if I could do something like: > > > > STYLE > > SYMBOL "pt_Building" > > ANGLE (90 - [angle]) # this doesn't work, so don't > > try it! > > COLOR 80 80 80 > > END > > > > Any ideas? > > > > Brent Fraser > > GeoAnalytic Inc. > > Calgary, Alberta > > Not sure if this will work in a map file, but the formula I use to > convert "mathematical" angles to azimuths is: > > azimuth = (450-m) - int( (450-m) / 360 ) * 360 > > where "m" is the "mathematical" angle. > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com From zhonghaiw at GMAIL.COM Tue Aug 21 00:27:12 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 21 Aug 2007 09:27:12 +0200 Subject: Add labelObj to a Class dynamically (C#) Message-ID: Hi guys, I add a map layer with two classes on the fly to mapObj, for one class i need to use some customized label styles for the labeling. What surprised me is that I cannot insert or add a labelObj into a classObj, later I saw the doc for MapScript, seems that the classObj.label is a immutable property, which in C# is then readonly. Is it possible to add a labelObj to a classObj dynamically? or do the stylings with SLD for a windows application? Any comments are welcome. Best Regards Zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Tue Aug 21 00:36:09 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 21 Aug 2007 09:36:09 +0200 Subject: Add labelObj to a Class dynamically (C#) In-Reply-To: <2534c4120708210027w248348f3o72b97fb1195d7749@mail.gmail.com> Message-ID: You can modify the labelObj directly, it has already been created when you created the classObj. Umberto On 8/21/07, Zhonghai Wang wrote: > Hi guys, > > I add a map layer with two classes on the fly to mapObj, for one class i > need to use some customized label styles for the labeling. What surprised me > is that I cannot insert or add a labelObj into a classObj, later I saw the > doc for MapScript, seems that the classObj.label is a immutable property, > which in C# is then readonly. > > Is it possible to add a labelObj to a classObj dynamically? or do the > stylings with SLD for a windows application? > > Any comments are welcome. > > Best Regards > > Zhonghai From zhonghaiw at GMAIL.COM Tue Aug 21 02:05:49 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Tue, 21 Aug 2007 11:05:49 +0200 Subject: Add labelObj to a Class dynamically (C#) In-Reply-To: <75b4b93e0708210036y732a53aet80a98710cd93e46b@mail.gmail.com> Message-ID: thanks you very much! I never thought about that. Best Regards Zhonghai On 8/21/07, Umberto Nicoletti wrote: > > You can modify the labelObj directly, it has already been created when > you created the classObj. > > Umberto > > On 8/21/07, Zhonghai Wang wrote: > > Hi guys, > > > > I add a map layer with two classes on the fly to mapObj, for one class i > > need to use some customized label styles for the labeling. What > surprised me > > is that I cannot insert or add a labelObj into a classObj, later I saw > the > > doc for MapScript, seems that the classObj.label is a immutable > property, > > which in C# is then readonly. > > > > Is it possible to add a labelObj to a classObj dynamically? or do the > > stylings with SLD for a windows application? > > > > Any comments are welcome. > > > > Best Regards > > > > Zhonghai > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapcollect at GMX.NET Tue Aug 21 02:42:54 2007 From: mapcollect at GMX.NET (HarryS) Date: Tue, 21 Aug 2007 02:42:54 -0700 Subject: Error on Itemnquery with PostGIS-layer Message-ID: doing this query: http://myServer.com/cgi-bin/mapserv?&map=/home/harry/Mapfiles/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem=NAME&qstring='London' produces this Error: prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT NAME::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from name WHERE (London) and (the_geom && setSRID( 'BOX3D(-180 -90,180 90)'::BOX3D,find_srid('','name','the_geom') ))' Postgresql reports the error as 'FEHLER: Spalte ?london? existiert nicht ' (Translation: ERROR: Column ?london? does not exist) More Help: Error with POSTGIS data variable. You specified ''. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from () as foo using unique using SRID=' Make sure you put in the 'using unique ' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. If I do the same query on the same layer but using a shapefile instead of PostGIS for identical data the query works fine without any errors. Can someone point me to my mistake, please ? Harry Schmidt -- View this message in context: http://www.nabble.com/Error-on-Itemnquery-with-PostGIS-layer-tf4303941.html#a12250916 Sent from the Mapserver - User mailing list archive at Nabble.com. From umberto.nicoletti at GMAIL.COM Tue Aug 21 03:04:05 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 21 Aug 2007 12:04:05 +0200 Subject: Error on Itemnquery with PostGIS-layer In-Reply-To: <12250916.post@talk.nabble.com> Message-ID: Please post the layer configuration for postgis AND check the case of the column name. Postgres handles column names with case sensitivity if, at table creation, the column name was in quotes. In that case you have the specify the column name with exactly the same case and in quotes; this is most likely the reason. HTH, Umberto On 8/21/07, HarryS wrote: > doing this query: > > http://myServer.com/cgi-bin/mapserv?&map=/home/harry/Mapfiles/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem=NAME&qstring='London' > > produces this Error: > > prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual > query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > NAME::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text > from name WHERE (London) and (the_geom && setSRID( 'BOX3D(-180 -90,180 > 90)'::BOX3D,find_srid('','name','the_geom') ))' > > Postgresql reports the error as 'FEHLER: Spalte ?london? existiert nicht ' > (Translation: ERROR: Column ?london? does not exist) > > More Help: > > Error with POSTGIS data variable. You specified ''. > Standard ways of specifiying are : > (1) 'geometry_column from geometry_table' > (2) 'geometry_column from () as foo using unique > using SRID=' > > Make sure you put in the 'using unique ' and 'using SRID=#' > clauses in. > > For more help, please see http://postgis.refractions.net/documentation/ > > Mappostgis.c - version of Jan 23/2004. > > > If I do the same query on the same layer but using a shapefile instead of > PostGIS for identical data the query works fine without any errors. Can > someone point me to my mistake, please ? > > Harry Schmidt > > > -- > View this message in context: http://www.nabble.com/Error-on-Itemnquery-with-PostGIS-layer-tf4303941.html#a12250916 > Sent from the Mapserver - User mailing list archive at Nabble.com. > From mapcollect at GMX.NET Tue Aug 21 04:16:28 2007 From: mapcollect at GMX.NET (HarryS) Date: Tue, 21 Aug 2007 04:16:28 -0700 Subject: Error on Itemnquery with PostGIS-layer In-Reply-To: <75b4b93e0708210304u1eab751bwf8c339203e21ca09@mail.gmail.com> Message-ID: this is the layer configuration: LAYER NAME "City-Database" GROUP "Databases" STATUS default DATA "the_geom from name" CONNECTION "user=postgres dbname=geonamesallppl host=localhost port=5432" CONNECTIONTYPE postgis TYPE QUERY CLASS TEMPLATE "template-city.html" NAME "City-Database" END METADATA "queryable" "true" "searchfield" "name" "fields" "name:Name,population:Pop,country:Country,province:Province,CODE:Code" END END Mapserver can render maps using this layer and also searching via KaMap-Frontend works on this layer, only itemnquery via cgi gives me the above quoted error. I tried using different cases with column names (NAME, Name, name) but always got same error: ...ERROR: Column ?london? does not exist... This I don't understand because ?london? is the querystring and not the column-name. Thanks, Harry Umberto Nicoletti wrote: > > Please post the layer configuration for postgis AND check the case of > the column name. > Postgres handles column names with case sensitivity if, at table > creation, the column name was in quotes. In that case you have the > specify the column name with exactly the same case and in quotes; this > is most likely the reason. > > HTH, > Umberto > > On 8/21/07, HarryS wrote: >> doing this query: >> >> http://myServer.com/cgi-bin/mapserv?&map=/home/harry/Mapfiles/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem=NAME&qstring='London' >> >> produces this Error: >> >> prepare_database(): Query error. Error executing POSTGIS DECLARE (the >> actual >> query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT >> NAME::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text >> from name WHERE (London) and (the_geom && setSRID( 'BOX3D(-180 -90,180 >> 90)'::BOX3D,find_srid('','name','the_geom') ))' >> >> Postgresql reports the error as 'FEHLER: Spalte ?london? existiert nicht >> ' >> (Translation: ERROR: Column ?london? does not exist) >> >> More Help: >> >> Error with POSTGIS data variable. You specified ''. >> Standard ways of specifiying are : >> (1) 'geometry_column from geometry_table' >> (2) 'geometry_column from () as foo using unique >> using SRID=' >> >> Make sure you put in the 'using unique ' and 'using SRID=#' >> clauses in. >> >> For more help, please see http://postgis.refractions.net/documentation/ >> >> Mappostgis.c - version of Jan 23/2004. >> >> >> If I do the same query on the same layer but using a shapefile instead of >> PostGIS for identical data the query works fine without any errors. Can >> someone point me to my mistake, please ? >> >> Harry Schmidt >> >> >> -- >> View this message in context: >> http://www.nabble.com/Error-on-Itemnquery-with-PostGIS-layer-tf4303941.html#a12250916 >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> > > -- View this message in context: http://www.nabble.com/Error-on-Itemnquery-with-PostGIS-layer-tf4303941.html#a12252666 Sent from the Mapserver - User mailing list archive at Nabble.com. From umberto.nicoletti at GMAIL.COM Tue Aug 21 05:01:23 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 21 Aug 2007 14:01:23 +0200 Subject: Error on Itemnquery with PostGIS-layer In-Reply-To: <12252666.post@talk.nabble.com> Message-ID: You probably have to add the columns in the CONNECTION STATEMENT. Umberto On 8/21/07, HarryS wrote: > this is the layer configuration: > > LAYER > NAME "City-Database" > GROUP "Databases" > STATUS default > DATA "the_geom from name" > CONNECTION "user=postgres dbname=geonamesallppl host=localhost > port=5432" > CONNECTIONTYPE postgis > TYPE QUERY > > > CLASS > TEMPLATE "template-city.html" > NAME "City-Database" > END > > METADATA > "queryable" "true" > "searchfield" "name" > "fields" > "name:Name,population:Pop,country:Country,province:Province,CODE:Code" > END > > END > > > Mapserver can render maps using this layer and also searching via > KaMap-Frontend works on this layer, only itemnquery via cgi gives me the > above quoted error. I tried using different cases with column names (NAME, > Name, name) but always got same error: ...ERROR: Column ?london? does not > exist... > This I don't understand because ?london? is the querystring and not the > column-name. > > Thanks, > Harry > > > > > > Umberto Nicoletti wrote: > > > > Please post the layer configuration for postgis AND check the case of > > the column name. > > Postgres handles column names with case sensitivity if, at table > > creation, the column name was in quotes. In that case you have the > > specify the column name with exactly the same case and in quotes; this > > is most likely the reason. > > > > HTH, > > Umberto > > > > On 8/21/07, HarryS wrote: > >> doing this query: > >> > >> http://myServer.com/cgi-bin/mapserv?&map=/home/harry/Mapfiles/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem=NAME&qstring='London' > >> > >> produces this Error: > >> > >> prepare_database(): Query error. Error executing POSTGIS DECLARE (the > >> actual > >> query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > >> NAME::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text > >> from name WHERE (London) and (the_geom && setSRID( 'BOX3D(-180 -90,180 > >> 90)'::BOX3D,find_srid('','name','the_geom') ))' > >> > >> Postgresql reports the error as 'FEHLER: Spalte ?london? existiert nicht > >> ' > >> (Translation: ERROR: Column ?london? does not exist) > >> > >> More Help: > >> > >> Error with POSTGIS data variable. You specified ''. > >> Standard ways of specifiying are : > >> (1) 'geometry_column from geometry_table' > >> (2) 'geometry_column from () as foo using unique > >> using SRID=' > >> > >> Make sure you put in the 'using unique ' and 'using SRID=#' > >> clauses in. > >> > >> For more help, please see http://postgis.refractions.net/documentation/ > >> > >> Mappostgis.c - version of Jan 23/2004. > >> > >> > >> If I do the same query on the same layer but using a shapefile instead of > >> PostGIS for identical data the query works fine without any errors. Can > >> someone point me to my mistake, please ? > >> > >> Harry Schmidt > >> > >> > >> -- > >> View this message in context: > >> http://www.nabble.com/Error-on-Itemnquery-with-PostGIS-layer-tf4303941.html#a12250916 > >> Sent from the Mapserver - User mailing list archive at Nabble.com. > >> > > > > > > -- > View this message in context: http://www.nabble.com/Error-on-Itemnquery-with-PostGIS-layer-tf4303941.html#a12252666 > Sent from the Mapserver - User mailing list archive at Nabble.com. > From umberto.nicoletti at GMAIL.COM Tue Aug 21 05:01:54 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 21 Aug 2007 14:01:54 +0200 Subject: Error on Itemnquery with PostGIS-layer In-Reply-To: <75b4b93e0708210501u27710336v41045487e00020ac@mail.gmail.com> Message-ID: Sorry, I meant the DATA statement. Umberto On 8/21/07, Umberto Nicoletti wrote: > You probably have to add the columns in the CONNECTION STATEMENT. > > Umberto > > On 8/21/07, HarryS wrote: > > this is the layer configuration: > > > > LAYER > > NAME "City-Database" > > GROUP "Databases" > > STATUS default > > DATA "the_geom from name" > > CONNECTION "user=postgres dbname=geonamesallppl host=localhost > > port=5432" > > CONNECTIONTYPE postgis > > TYPE QUERY > > > > > > CLASS > > TEMPLATE "template-city.html" > > NAME "City-Database" > > END > > > > METADATA > > "queryable" "true" > > "searchfield" "name" > > "fields" > > "name:Name,population:Pop,country:Country,province:Province,CODE:Code" > > END > > > > END > > > > > > Mapserver can render maps using this layer and also searching via > > KaMap-Frontend works on this layer, only itemnquery via cgi gives me the > > above quoted error. I tried using different cases with column names (NAME, > > Name, name) but always got same error: ...ERROR: Column ?london? does not > > exist... > > This I don't understand because ?london? is the querystring and not the > > column-name. > > > > Thanks, > > Harry > > > > > > > > > > > > Umberto Nicoletti wrote: > > > > > > Please post the layer configuration for postgis AND check the case of > > > the column name. > > > Postgres handles column names with case sensitivity if, at table > > > creation, the column name was in quotes. In that case you have the > > > specify the column name with exactly the same case and in quotes; this > > > is most likely the reason. > > > > > > HTH, > > > Umberto > > > > > > On 8/21/07, HarryS wrote: > > >> doing this query: > > >> > > >> http://myServer.com/cgi-bin/mapserv?&map=/home/harry/Mapfiles/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem=NAME&qstring='London' > > >> > > >> produces this Error: > > >> > > >> prepare_database(): Query error. Error executing POSTGIS DECLARE (the > > >> actual > > >> query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > > >> NAME::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text > > >> from name WHERE (London) and (the_geom && setSRID( 'BOX3D(-180 -90,180 > > >> 90)'::BOX3D,find_srid('','name','the_geom') ))' > > >> > > >> Postgresql reports the error as 'FEHLER: Spalte ?london? existiert nicht > > >> ' > > >> (Translation: ERROR: Column ?london? does not exist) > > >> > > >> More Help: > > >> > > >> Error with POSTGIS data variable. You specified ''. > > >> Standard ways of specifiying are : > > >> (1) 'geometry_column from geometry_table' > > >> (2) 'geometry_column from () as foo using unique > > >> using SRID=' > > >> > > >> Make sure you put in the 'using unique ' and 'using SRID=#' > > >> clauses in. > > >> > > >> For more help, please see http://postgis.refractions.net/documentation/ > > >> > > >> Mappostgis.c - version of Jan 23/2004. > > >> > > >> > > >> If I do the same query on the same layer but using a shapefile instead of > > >> PostGIS for identical data the query works fine without any errors. Can > > >> someone point me to my mistake, please ? > > >> > > >> Harry Schmidt > > >> > > >> > > >> -- > > >> View this message in context: > > >> http://www.nabble.com/Error-on-Itemnquery-with-PostGIS-layer-tf4303941.html#a12250916 > > >> Sent from the Mapserver - User mailing list archive at Nabble.com. > > >> > > > > > > > > > > -- > > View this message in context: http://www.nabble.com/Error-on-Itemnquery-with-PostGIS-layer-tf4303941.html#a12252666 > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > From Dejan.Gambin at PULA.HR Tue Aug 21 06:21:43 2007 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Tue, 21 Aug 2007 15:21:43 +0200 Subject: PHP/Mapscript error - help needed Message-ID: Hi, Today I have upgraded my Apache to 2.0.55-4 version on Ubuntu server. I have also installed php5 version 5.1.2. Since I was getting errors about the incompatible API-s, I have recompiled php/mapscript from the source (version 4.10.2). Everything was looking correct but after that I am not being able to display anything on the map, it is blank. Then I found the error message in apache error log saying: /usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20051025/php_mapscript_410 .so: undefined symbol: _ZN13OGRLineString8setPointEidd I can't find any information on this error...can someone help? regards, dejan From warmerdam at POBOX.COM Tue Aug 21 06:27:45 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 21 Aug 2007 09:27:45 -0400 Subject: PHP/Mapscript error - help needed In-Reply-To: Message-ID: Gambin Dejan wrote: > Hi, > > Today I have upgraded my Apache to 2.0.55-4 version on Ubuntu server. I > have also installed php5 version 5.1.2. Since I was getting errors about > the incompatible API-s, I have recompiled php/mapscript from the source > (version 4.10.2). Everything was looking correct but after that I am not > being able to display anything on the map, it is blank. Then I found the > error message in apache error log saying: > > /usr/sbin/apache2: symbol lookup error: > /usr/lib/php5/20051025/php_mapscript_410 > .so: undefined symbol: _ZN13OGRLineString8setPointEidd > > I can't find any information on this error...can someone help? Dejan, I believe this indicates an OGR version mismatch - likely php mapscript (in particular mapogr.cpp in the mapserver library) was built against a recent version of OGR include files which includes the 2D version of the setPoint() method while the actual libgdal.so being used at runtime is older and only contains the 3D version of setPoint() (with default parameter values for Z). You need to review what versions of GDAL/OGR you have on your system and ensure that MapServer gets built against the same version of GDAL/OGR as gets used at runtime. The most direct way to accomplish this is to ensure you only have one version of GDAL/OGR (.so, include files, etc). 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 Dejan.Gambin at PULA.HR Tue Aug 21 06:46:35 2007 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Tue, 21 Aug 2007 15:46:35 +0200 Subject: PHP/Mapscript error - help needed Message-ID: Frank, Since I couldn't find gdal-config on my server and I needed it for configure script, I have downloaded/compiled/installed 1.4.2 version of gdal. After that I was able to install php/mapscript. gdal-config --version says: 1.4.2 gdal-config --libs says: -L/usr/local/lib -lgdal gdal-config --ogr-enabled says: yes gdal-config --dep-libs says: -lodbc -lodbcinst -ljpeg -ltiff -lpng -lz -lm -lrt -ldl -L/usr/lib -lcurl -L/usr/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lkrb5support -lcom_err -lresolv -lidn -lssl -lcrypto -ldl -lssl -lcrypto -lz What are you suggesting me to do? Thanks very much regards, dejan > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam > Sent: Tuesday, August 21, 2007 3:28 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] PHP/Mapscript error - help needed > > Gambin Dejan wrote: > > Hi, > > > > Today I have upgraded my Apache to 2.0.55-4 version on > Ubuntu server. > > I have also installed php5 version 5.1.2. Since I was > getting errors > > about the incompatible API-s, I have recompiled > php/mapscript from the > > source (version 4.10.2). Everything was looking correct but > after that > > I am not being able to display anything on the map, it is > blank. Then > > I found the error message in apache error log saying: > > > > /usr/sbin/apache2: symbol lookup error: > > /usr/lib/php5/20051025/php_mapscript_410 > > .so: undefined symbol: _ZN13OGRLineString8setPointEidd > > > > I can't find any information on this error...can someone help? > > Dejan, > > I believe this indicates an OGR version mismatch - likely php > mapscript (in particular mapogr.cpp in the mapserver library) > was built against a recent version of OGR include files which > includes the 2D version of the setPoint() method while the > actual libgdal.so being used at runtime is older and only > contains the 3D version of setPoint() (with default parameter > values for Z). > > You need to review what versions of GDAL/OGR you have on your > system and ensure that MapServer gets built against the same > version of GDAL/OGR as gets used at runtime. The most direct > way to accomplish this is to ensure you only have one version > of GDAL/OGR (.so, include files, etc). > > 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 mapcollect at GMX.NET Tue Aug 21 07:41:40 2007 From: mapcollect at GMX.NET (HarryS) Date: Tue, 21 Aug 2007 07:41:40 -0700 Subject: Error on Itemnquery with PostGIS-layer In-Reply-To: <75b4b93e0708210501v312d4a9dvce55a8203b8416bd@mail.gmail.com> Message-ID: How could I add columns to DATA statement ? I think my mistake is in the query-URL: this one works on Windows with shapefile-data but not on Linux with PostGIS (anything else works fine) http://myServer.com/cgi-bin/mapserv?&map=/home/harry/Mapfiles/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem=name&qstring='London' changing the syntax to this (what should be the same than above) http://myServer.com/cgi-bin/mapserv?&map=/home/harry/Mapfiles/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem=name&qstring=('[name]'='London') results in msQueryByAttributes(): Search returned no results. No matching record(s) found. at least no error but 'London' is definetly in the database and I tried with upper case/lower case,... The PostGIS-databasename is 'geonamesallppl' the tablename is 'name' and also the column-name is 'name'. Any ideas what I am doing wrong ?? Thx, Harry This is my template-file (if it plays a role) Sample Template
  • Name is [NAME]
  • Population is [POPULATION]
  • Code is [CODE]
  • Umberto Nicoletti wrote: > > Sorry, I meant the DATA statement. > > Umberto > > On 8/21/07, Umberto Nicoletti wrote: >> You probably have to add the columns in the CONNECTION STATEMENT. >> >> Umberto >> >> On 8/21/07, HarryS wrote: >> > this is the layer configuration: >> > >> > LAYER >> > NAME "City-Database" >> > GROUP "Databases" >> > STATUS default >> > DATA "the_geom from name" >> > CONNECTION "user=postgres dbname=geonamesallppl host=localhost >> > port=5432" >> > CONNECTIONTYPE postgis >> > TYPE QUERY >> > >> > >> > CLASS >> > TEMPLATE "template-city.html" >> > NAME "City-Database" >> > END >> > >> > METADATA >> > "queryable" "true" >> > "searchfield" "name" >> > "fields" >> > "name:Name,population:Pop,country:Country,province:Province,CODE:Code" >> > END >> > >> > END >> > >> > >> > Mapserver can render maps using this layer and also searching via >> > KaMap-Frontend works on this layer, only itemnquery via cgi gives me >> the >> > above quoted error. I tried using different cases with column names >> (NAME, >> > Name, name) but always got same error: ...ERROR: Column ?london? does >> not >> > exist... >> > This I don't understand because ?london? is the querystring and not the >> > column-name. >> > >> > Thanks, >> > Harry >> > >> > >> > >> > >> > >> > Umberto Nicoletti wrote: >> > > >> > > Please post the layer configuration for postgis AND check the case of >> > > the column name. >> > > Postgres handles column names with case sensitivity if, at table >> > > creation, the column name was in quotes. In that case you have the >> > > specify the column name with exactly the same case and in quotes; >> this >> > > is most likely the reason. >> > > >> > > HTH, >> > > Umberto >> > > >> > > On 8/21/07, HarryS wrote: >> > >> doing this query: >> > >> >> > >> >> http://myServer.com/cgi-bin/mapserv?&map=/home/harry/Mapfiles/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem=NAME&qstring='London' >> > >> >> > >> produces this Error: >> > >> >> > >> prepare_database(): Query error. Error executing POSTGIS DECLARE >> (the >> > >> actual >> > >> query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT >> > >> >> NAME::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text >> > >> from name WHERE (London) and (the_geom && setSRID( 'BOX3D(-180 >> -90,180 >> > >> 90)'::BOX3D,find_srid('','name','the_geom') ))' >> > >> >> > >> Postgresql reports the error as 'FEHLER: Spalte ?london? existiert >> nicht >> > >> ' >> > >> (Translation: ERROR: Column ?london? does not exist) >> > >> >> > >> More Help: >> > >> >> > >> Error with POSTGIS data variable. You specified '> file>'. >> > >> Standard ways of specifiying are : >> > >> (1) 'geometry_column from geometry_table' >> > >> (2) 'geometry_column from () as foo using unique > name> >> > >> using SRID=' >> > >> >> > >> Make sure you put in the 'using unique ' and 'using >> SRID=#' >> > >> clauses in. >> > >> >> > >> For more help, please see >> http://postgis.refractions.net/documentation/ >> > >> >> > >> Mappostgis.c - version of Jan 23/2004. >> > >> >> > >> >> > >> If I do the same query on the same layer but using a shapefile >> instead of >> > >> PostGIS for identical data the query works fine without any errors. >> Can >> > >> someone point me to my mistake, please ? >> > >> >> > >> Harry Schmidt >> > >> >> > >> >> > >> -- >> > >> View this message in context: >> > >> >> http://www.nabble.com/Error-on-Itemnquery-with-PostGIS-layer-tf4303941.html#a12250916 >> > >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> > >> >> > > >> > > >> > >> > -- >> > View this message in context: >> http://www.nabble.com/Error-on-Itemnquery-with-PostGIS-layer-tf4303941.html#a12252666 >> > Sent from the Mapserver - User mailing list archive at Nabble.com. >> > >> > > -- View this message in context: http://www.nabble.com/Error-on-Itemnquery-with-PostGIS-layer-tf4303941.html#a12255967 Sent from the Mapserver - User mailing list archive at Nabble.com. From umberto.nicoletti at GMAIL.COM Tue Aug 21 07:50:24 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 21 Aug 2007 16:50:24 +0200 Subject: Error on Itemnquery with PostGIS-layer In-Reply-To: <12255967.post@talk.nabble.com> Message-ID: What about this: http://myServer.com/cgi-bin/mapserv?&map=/home/harry/Mapfiles/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem=name&qstring=('name'='London') From mapcollect at GMX.NET Tue Aug 21 07:56:28 2007 From: mapcollect at GMX.NET (HarryS) Date: Tue, 21 Aug 2007 07:56:28 -0700 Subject: Error on Itemnquery with PostGIS-layer In-Reply-To: <75b4b93e0708210750r564504fah9644a0967a1efd34@mail.gmail.com> Message-ID: I tried already: msQueryByAttributes(): Search returned no results. No matching record(s) found. :-( Harry Umberto Nicoletti wrote: > > What about this: > > http://myServer.com/cgi-bin/mapserv?&map=/home/harry/Mapfiles/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem=name&qstring=('name'='London') > > -- View this message in context: http://www.nabble.com/Error-on-Itemnquery-with-PostGIS-layer-tf4303941.html#a12256315 Sent from the Mapserver - User mailing list archive at Nabble.com. From sebastian.walter at FU-BERLIN.DE Tue Aug 21 09:12:40 2007 From: sebastian.walter at FU-BERLIN.DE (Sebastian Walter) Date: Tue, 21 Aug 2007 18:12:40 +0200 Subject: Error on Itemnquery with PostGIS-layer In-Reply-To: <12255967.post@talk.nabble.com> Message-ID: Hi, just a guess: you could try 'name.name' instead of just 'name' (tablename.columnname). Regards, Sebastian HarryS wrote: > How could I add columns to DATA statement ? > > I think my mistake is in the query-URL: > > this one works on Windows with shapefile-data but not on Linux with PostGIS > (anything else works fine) > http://myServer.com/cgi-bin/mapserv?&map=/home/harry/Mapfiles/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem=name&qstring='London' > > changing the syntax to this (what should be the same than above) > http://myServer.com/cgi-bin/mapserv?&map=/home/harry/Mapfiles/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem=name&qstring=('[name]'='London') > > results in > > msQueryByAttributes(): Search returned no results. No matching record(s) > found. > > at least no error but 'London' is definetly in the database and I tried with > upper case/lower case,... > > The PostGIS-databasename is 'geonamesallppl' the tablename is 'name' and > also the column-name is 'name'. > > Any ideas what I am doing wrong ?? > > Thx, Harry > > > This is my template-file (if it plays a role) > > > Sample Template > >
  • Name is [NAME] >
  • Population is [POPULATION] >
  • Code is [CODE] >
  • > > > > > > > > > > > Umberto Nicoletti wrote: > >> Sorry, I meant the DATA statement. >> >> Umberto >> >> On 8/21/07, Umberto Nicoletti wrote: >> >>> You probably have to add the columns in the CONNECTION STATEMENT. >>> >>> Umberto >>> >>> On 8/21/07, HarryS wrote: >>> >>>> this is the layer configuration: >>>> >>>> LAYER >>>> NAME "City-Database" >>>> GROUP "Databases" >>>> STATUS default >>>> DATA "the_geom from name" >>>> CONNECTION "user=postgres dbname=geonamesallppl host=localhost >>>> port=5432" >>>> CONNECTIONTYPE postgis >>>> TYPE QUERY >>>> >>>> >>>> CLASS >>>> TEMPLATE "template-city.html" >>>> NAME "City-Database" >>>> END >>>> >>>> METADATA >>>> "queryable" "true" >>>> "searchfield" "name" >>>> "fields" >>>> "name:Name,population:Pop,country:Country,province:Province,CODE:Code" >>>> END >>>> >>>> END >>>> >>>> >>>> Mapserver can render maps using this layer and also searching via >>>> KaMap-Frontend works on this layer, only itemnquery via cgi gives me >>>> >>> the >>> >>>> above quoted error. I tried using different cases with column names >>>> >>> (NAME, >>> >>>> Name, name) but always got same error: ...ERROR: Column ?london? does >>>> >>> not >>> >>>> exist... >>>> This I don't understand because ?london? is the querystring and not the >>>> column-name. >>>> >>>> Thanks, >>>> Harry >>>> >>>> >>>> >>>> >>>> >>>> Umberto Nicoletti wrote: >>>> >>>>> Please post the layer configuration for postgis AND check the case of >>>>> the column name. >>>>> Postgres handles column names with case sensitivity if, at table >>>>> creation, the column name was in quotes. In that case you have the >>>>> specify the column name with exactly the same case and in quotes; >>>>> >>> this >>> >>>>> is most likely the reason. >>>>> >>>>> HTH, >>>>> Umberto >>>>> >>>>> On 8/21/07, HarryS wrote: >>>>> >>>>>> doing this query: >>>>>> >>>>>> >>>>>> >>> http://myServer.com/cgi-bin/mapserv?&map=/home/harry/Mapfiles/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem=NAME&qstring='London' >>> >>>>>> produces this Error: >>>>>> >>>>>> prepare_database(): Query error. Error executing POSTGIS DECLARE >>>>>> >>> (the >>> >>>>>> actual >>>>>> query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT >>>>>> >>>>>> >>> NAME::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text >>> >>>>>> from name WHERE (London) and (the_geom && setSRID( 'BOX3D(-180 >>>>>> >>> -90,180 >>> >>>>>> 90)'::BOX3D,find_srid('','name','the_geom') ))' >>>>>> >>>>>> Postgresql reports the error as 'FEHLER: Spalte ?london? existiert >>>>>> >>> nicht >>> >>>>>> ' >>>>>> (Translation: ERROR: Column ?london? does not exist) >>>>>> >>>>>> More Help: >>>>>> >>>>>> Error with POSTGIS data variable. You specified '>>>>> >>> file>'. >>> >>>>>> Standard ways of specifiying are : >>>>>> (1) 'geometry_column from geometry_table' >>>>>> (2) 'geometry_column from () as foo using unique >>>>> >>> name> >>> >>>>>> using SRID=' >>>>>> >>>>>> Make sure you put in the 'using unique ' and 'using >>>>>> >>> SRID=#' >>> >>>>>> clauses in. >>>>>> >>>>>> For more help, please see >>>>>> >>> http://postgis.refractions.net/documentation/ >>> >>>>>> Mappostgis.c - version of Jan 23/2004. >>>>>> >>>>>> >>>>>> If I do the same query on the same layer but using a shapefile >>>>>> >>> instead of >>> >>>>>> PostGIS for identical data the query works fine without any errors. >>>>>> >>> Can >>> >>>>>> someone point me to my mistake, please ? >>>>>> >>>>>> Harry Schmidt >>>>>> >>>>>> >>>>>> -- >>>>>> View this message in context: >>>>>> >>>>>> >>> http://www.nabble.com/Error-on-Itemnquery-with-PostGIS-layer-tf4303941.html#a12250916 >>> >>>>>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>>>>> >>>>>> >>>>> >>>> -- >>>> View this message in context: >>>> >>> http://www.nabble.com/Error-on-Itemnquery-with-PostGIS-layer-tf4303941.html#a12252666 >>> >>>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>>> >>>> >> > > From mapcollect at GMX.NET Tue Aug 21 10:03:39 2007 From: mapcollect at GMX.NET (HarryS) Date: Tue, 21 Aug 2007 10:03:39 -0700 Subject: Error on Itemnquery with PostGIS-layer In-Reply-To: <46CB0EF8.109@fu-berlin.de> Message-ID: I tried what you suggested in Layer definition: ... DATA "the_geom from name.name" ... without success (and also map-drawing and search-function with Kamap does not workd anymore) I also tried in URL: http://myServer.com/cgi-bin/Hybrid?&map=/home/Harry/Mapfile/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem='name.name'&qstring='London' what causes this error on a Debian Linux machine with Mapserver 4.8.3: prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT 'name.name'::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from name WHERE (London) and (the_geom && setSRID( 'BOX3D(-180 -90,180 90)'::BOX3D,find_srid('','name','the_geom') ))' Postgresql reports the error as 'FEHLER: Spalte ?london? existiert nicht ' More Help: Error with POSTGIS data variable. You specified ''. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from () as foo using unique using SRID=' Make sure you put in the 'using unique ' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. Harry (still confused...) Sebastian Walter-2 wrote: > > Hi, > > just a guess: you could try 'name.name' instead of just 'name' > (tablename.columnname). > > Regards, > Sebastian > > HarryS wrote: >> How could I add columns to DATA statement ? >> >> I think my mistake is in the query-URL: >> >> this one works on Windows with shapefile-data but not on Linux with >> PostGIS >> (anything else works fine) >> http://myServer.com/cgi-bin/mapserv?&map=/home/harry/Mapfiles/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem=name&qstring='London' >> >> changing the syntax to this (what should be the same than above) >> http://myServer.com/cgi-bin/mapserv?&map=/home/harry/Mapfiles/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem=name&qstring=('[name]'='London') >> >> results in >> >> msQueryByAttributes(): Search returned no results. No matching record(s) >> found. >> >> at least no error but 'London' is definetly in the database and I tried >> with >> upper case/lower case,... >> >> The PostGIS-databasename is 'geonamesallppl' the tablename is 'name' and >> also the column-name is 'name'. >> >> Any ideas what I am doing wrong ?? >> >> Thx, Harry >> >> >> This is my template-file (if it plays a role) >> >> >> Sample Template >> >>
  • Name is [NAME] >>
  • Population is [POPULATION] >>
  • Code is [CODE] >>
  • >> >> >> >> >> >> >> >> >> >> >> Umberto Nicoletti wrote: >> >>> Sorry, I meant the DATA statement. >>> >>> Umberto >>> >>> On 8/21/07, Umberto Nicoletti wrote: >>> >>>> You probably have to add the columns in the CONNECTION STATEMENT. >>>> >>>> Umberto >>>> >>>> On 8/21/07, HarryS wrote: >>>> >>>>> this is the layer configuration: >>>>> >>>>> LAYER >>>>> NAME "City-Database" >>>>> GROUP "Databases" >>>>> STATUS default >>>>> DATA "the_geom from name" >>>>> CONNECTION "user=postgres dbname=geonamesallppl host=localhost >>>>> port=5432" >>>>> CONNECTIONTYPE postgis >>>>> TYPE QUERY >>>>> >>>>> >>>>> CLASS >>>>> TEMPLATE "template-city.html" >>>>> NAME "City-Database" >>>>> END >>>>> >>>>> METADATA >>>>> "queryable" "true" >>>>> "searchfield" "name" >>>>> "fields" >>>>> "name:Name,population:Pop,country:Country,province:Province,CODE:Code" >>>>> END >>>>> >>>>> END >>>>> >>>>> >>>>> Mapserver can render maps using this layer and also searching via >>>>> KaMap-Frontend works on this layer, only itemnquery via cgi gives me >>>>> >>>> the >>>> >>>>> above quoted error. I tried using different cases with column names >>>>> >>>> (NAME, >>>> >>>>> Name, name) but always got same error: ...ERROR: Column ?london? does >>>>> >>>> not >>>> >>>>> exist... >>>>> This I don't understand because ?london? is the querystring and not >>>>> the >>>>> column-name. >>>>> >>>>> Thanks, >>>>> Harry >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Umberto Nicoletti wrote: >>>>> >>>>>> Please post the layer configuration for postgis AND check the case of >>>>>> the column name. >>>>>> Postgres handles column names with case sensitivity if, at table >>>>>> creation, the column name was in quotes. In that case you have the >>>>>> specify the column name with exactly the same case and in quotes; >>>>>> >>>> this >>>> >>>>>> is most likely the reason. >>>>>> >>>>>> HTH, >>>>>> Umberto >>>>>> >>>>>> On 8/21/07, HarryS wrote: >>>>>> >>>>>>> doing this query: >>>>>>> >>>>>>> >>>>>>> >>>> http://myServer.com/cgi-bin/mapserv?&map=/home/harry/Mapfiles/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem=NAME&qstring='London' >>>> >>>>>>> produces this Error: >>>>>>> >>>>>>> prepare_database(): Query error. Error executing POSTGIS DECLARE >>>>>>> >>>> (the >>>> >>>>>>> actual >>>>>>> query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT >>>>>>> >>>>>>> >>>> NAME::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text >>>> >>>>>>> from name WHERE (London) and (the_geom && setSRID( 'BOX3D(-180 >>>>>>> >>>> -90,180 >>>> >>>>>>> 90)'::BOX3D,find_srid('','name','the_geom') ))' >>>>>>> >>>>>>> Postgresql reports the error as 'FEHLER: Spalte ?london? existiert >>>>>>> >>>> nicht >>>> >>>>>>> ' >>>>>>> (Translation: ERROR: Column ?london? does not exist) >>>>>>> >>>>>>> More Help: >>>>>>> >>>>>>> Error with POSTGIS data variable. You specified '>>>>>> >>>> file>'. >>>> >>>>>>> Standard ways of specifiying are : >>>>>>> (1) 'geometry_column from geometry_table' >>>>>>> (2) 'geometry_column from () as foo using unique >>>>>> >>>> name> >>>> >>>>>>> using SRID=' >>>>>>> >>>>>>> Make sure you put in the 'using unique ' and 'using >>>>>>> >>>> SRID=#' >>>> >>>>>>> clauses in. >>>>>>> >>>>>>> For more help, please see >>>>>>> >>>> http://postgis.refractions.net/documentation/ >>>> >>>>>>> Mappostgis.c - version of Jan 23/2004. >>>>>>> >>>>>>> >>>>>>> If I do the same query on the same layer but using a shapefile >>>>>>> >>>> instead of >>>> >>>>>>> PostGIS for identical data the query works fine without any errors. >>>>>>> >>>> Can >>>> >>>>>>> someone point me to my mistake, please ? >>>>>>> >>>>>>> Harry Schmidt >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> View this message in context: >>>>>>> >>>>>>> >>>> http://www.nabble.com/Error-on-Itemnquery-with-PostGIS-layer-tf4303941.html#a12250916 >>>> >>>>>>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>>>>>> >>>>>>> >>>>>> >>>>> -- >>>>> View this message in context: >>>>> >>>> http://www.nabble.com/Error-on-Itemnquery-with-PostGIS-layer-tf4303941.html#a12252666 >>>> >>>>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>>>> >>>>> >>> >> >> > > -- View this message in context: http://www.nabble.com/Error-on-Itemnquery-with-PostGIS-layer-tf4303941.html#a12258926 Sent from the Mapserver - User mailing list archive at Nabble.com. From wef1 at CEC.WUSTL.EDU Tue Aug 21 10:38:10 2007 From: wef1 at CEC.WUSTL.EDU (Edward Fialkowski) Date: Tue, 21 Aug 2007 12:38:10 -0500 Subject: Problem retrieving data from PostGIS Message-ID: Hi List, I have finally managed to get mapserver to connect to my postGIS database, but when I try to retrieve data, i get the following error: prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(geometry)),'NDR'),OID::text from temp WHERE geometry && setSRID('BOX3D(-2200000 -712631,3072800 3840000)'::BOX3D, find_srid('','temp','geometry') )' Postgresql reports the error as 'ERROR: find_srid() - couldnt find the corresponding SRID - is the geometry registered in the GEOMETRY_COLUMNS table? Is there an uppercase/lowercase missmatch? ' So, the problem is cannot find corresponding SRID, can anyone help me out a bit with this set up. I have lots of data I will eventually be serving. To start, I can just use some point data, or i can go straight to polygons. Either way, I can't seem to find the correct way to insert my data. So, I have a database with 'data', 'geometry_columns', 'and spatial_ref_sys', I insert my data into 'data', and then I have to add something to geometry_columns? What columns should I store in 'data'? I've read the postGIS documentation, it just doesn't seem to answer the question for me, so if anyone would be willing to help out, i would GREATLY appreciate it. Thanks. -Ed -------------- next part -------------- An HTML attachment was scrubbed... URL: From Josh.Hevenor at DPRA.COM Tue Aug 21 12:05:12 2007 From: Josh.Hevenor at DPRA.COM (Josh Hevenor) Date: Tue, 21 Aug 2007 14:05:12 -0500 Subject: FW: FOSS4G DemonstrationTheatre Message-ID: Please see attached if you're interested in providing a quick demo at FOSS4G this fall. demos at foss4g2007.org > > > Forwarded message: > >Thanks Josh; this email was all I needed to have. Looks like a Thursday >morning coffee slot is still open - should be quite popular. > >If I can also trouble you forward the Demo Theatre invitation to the >MapServer mailing list - if there is enough community interest we can >arrange for a block of MapServer demos. >Cheers, >Jody > > Josh Hevenor wrote: > > Hi Jody, > > My company and I would be interested in putting together a demo. Our > product is web based so an internet connection would be required but > I'm sure that isn't a problem. > > > > Let me know if there are forms to be filled out, etc, to get on the > list but to get things started: > > > > Name: Josh Hevenor, Developer, DPRA Canada Inc. > > Product: GeoPortal, MapServer based web platform > > > > Thanks! > ------------------------------------------------------ > As you may have heard, we will have a full demonstration theatre at this > > years conference, with a dedicated room, seating, sound and projection. > > It will be in the "Sidney" room, directly next to the exhibition hall. > > We anticipate this room will get a lot of traffic as it is located near > > source of food and drink for the conference. > > > > You can view the current schedule here: > > - http://wiki.osgeo.org/index.php/FOSS4G2007_Demos > > > > The sponsors and exhibitors have had a chance at the ever so attractive > > lunch time and coffee time slots. For limited time only, you too can > > entertain a crowd of recently caffeinated conference attendees. > > > > The requirements for using the demonstration theatre are: > > - You must demonstrate software running. No slideware please. > > - The software that either be open source, or otherwise > > use/connect/include open source > > > > To express you interest please send an email to demos at foss4g2007.org > > > > Demo slots are 10 mins in length so you need not stress out, just drop > > by and show us what you are working on. We have use of this room for the > > entire conference, if there is sufficient interest additional slots can > > be opened up. > > > > Thanks, > > Jody Garnett, Demo Coordinator > > > > _______________________________________________ > > Discuss mailing list > > Discuss at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/discuss > > > > > > From dejan.gambin at PULA.HR Tue Aug 21 13:09:12 2007 From: dejan.gambin at PULA.HR (Dejan Gambin) Date: Tue, 21 Aug 2007 22:09:12 +0200 Subject: PHP/Mapscript error - help needed In-Reply-To: <200708211556.14675.plists@prometheus.org.yu> Message-ID: Thank Frank, Attila I really had another libgdal binary version installed. I removed it using apt-get remove and now everything is fine. Thanks again, regards, dejan > -----Original Message----- > From: Attila Csipa [mailto:plists at prometheus.org.yu] > Sent: Tuesday, August 21, 2007 3:56 PM > To: Gambin Dejan > Subject: Re: [UMN_MAPSERVER-USERS] PHP/Mapscript error - help needed > > On Tuesday 21 August 2007 15:46, Gambin Dejan wrote: > > Since I couldn't find gdal-config on my server and I needed it for > > configure script, I have downloaded/compiled/installed > 1.4.2 version > > of gdal. After that I was able to install php/mapscript. > > > > gdal-config --version says: 1.4.2 > > gdal-config --libs says: -L/usr/local/lib -lgdal gdal-config > > --ogr-enabled says: yes gdal-config --dep-libs says: -lodbc > -lodbcinst > > -ljpeg -ltiff -lpng -lz -lm -lrt -ldl -L/usr/lib -lcurl -L/usr/lib > > -lgssapi_krb5 -lkrb5 -lk5crypto -lkrb5support -lcom_err > -lresolv -lidn > > -lssl -lcrypto -ldl -lssl -lcrypto -lz > > > > What are you suggesting me to do? > > You might already have a binary version of libgdal in > /usr/lib that came with your distribution which is > interfering (you're compiling with the version in > /usr/local/lib, but using it with the one in /usr/lib). Try > > ldd /usr/lib/php5/20051025/php_mapscript_410 > > it should write out what .so-s it is calling - if it lists > /usr/lib/libgdal... > you know that's the problem. In that case either remove the > binary gdal package (which can get tricky since it can cause > dependancy problems) or move the /usr/local/lib path before > /usr/lib in /etc/ld.so.conf and run /sbin/ldconfig -v, but > that has potentially even more drawbacks as it may break other .so-s. > From jayzee.smith at GMAIL.COM Tue Aug 21 14:16:15 2007 From: jayzee.smith at GMAIL.COM (John Smith) Date: Tue, 21 Aug 2007 17:16:15 -0400 Subject: wms_capabilities version="1.1.0" Message-ID: where can i get wms_capabilities version="1.1.0" for earth at night/earth city lights for mapserver 4.8?? jzs From Tom.Kralidis at EC.GC.CA Tue Aug 21 14:33:14 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 21 Aug 2007 17:33:14 -0400 Subject: wms_capabilities version="1.1.0" Message-ID: There's one at: Server URL: http://mapserv2.esrin.esa.it/cubestor/cubeserv/cubeserv.cgi Layer name: WORLD_DMSP_NIGHT:MapAdmin ...you'll want to check the GetCapabilities metadata to find about more about the source, etc. -----Original Message----- From: UMN MapServer Users List on behalf of John Smith Sent: Tue 21-Aug-07 17:16 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] wms_capabilities version="1.1.0" where can i get wms_capabilities version="1.1.0" for earth at night/earth city lights for mapserver 4.8?? jzs From boedy1996 at GMAIL.COM Tue Aug 21 19:25:20 2007 From: boedy1996 at GMAIL.COM (Budi Hermansyah) Date: Wed, 22 Aug 2007 09:25:20 +0700 Subject: Joining sql server table to shp files In-Reply-To: Message-ID: i try to join shp file with table in sql server to get data aggregate from sql server. How ? please correcting this script. Thks. mapfile : LAYER NAME "kabupaten1" DATA "Kab_Point_point.shp" JOIN NAME "test" CONNECTIONTYPE ogr CONNECTION " ODBC:id/pwd at mydata select * from vrekonstruksi #vrekonstruksi #wkbPoint #WGS84 # " TABLE "vrekonstruksi" FROM "KODE_KAB" TO "KODELOKASI" TYPE ONE-TO-ONE END STATUS DEFAULT TYPE POINT LABELITEM 'KODE_KAB' CLASS SYMBOL 7 SIZE 5 COLOR 255 0 0 LABEL #FONT arial TYPE BITMAP SIZE LARGE POSITION AUTO PARTIALS FALSE OUTLINECOLOR 255 255 255 COLOR 0 0 255 END TEMPLATE "QueryViewMap.html" #COLOR 255 200 100 OUTLINECOLOR 0 0 0 END END From umberto.nicoletti at GMAIL.COM Wed Aug 22 00:09:21 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 22 Aug 2007 09:09:21 +0200 Subject: Error on Itemnquery with PostGIS-layer In-Reply-To: <12258926.post@talk.nabble.com> Message-ID: > http://myServer.com/cgi-bin/Hybrid?&map=/home/Harry/Mapfile/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem='name.name'&qstring='London' > > what causes this error on a Debian Linux machine with Mapserver 4.8.3: > > prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual > query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > 'name.name'::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text > from name WHERE (London) and (the_geom && setSRID( 'BOX3D(-180 -90,180 > 90)'::BOX3D,find_srid('','name','the_geom') ))' > Please open up your favourite sql interface to postgres and then paste the query excerpt from above: SELECT 'name.name'::text, asbinary(force_collection(force_2d(the_geom)),'NDR'), gid::text from name WHERE (London) and (the_geom && setSRID( 'BOX3D(-180-90,18090)'::BOX3D,find_srid('','name','the_geom') ))' if you look closely at it you'll see that the first where clause (London) is written wrong. You the have to modify qstring so that it produces a valid where clause like this: name='London' so that the query is written as follows: SELECT 'name.name'::text, asbinary(force_collection(force_2d(the_geom)),'NDR'), gid::text from name WHERE name='London' and (the_geom && setSRID( 'BOX3D(-180-90,18090)'::BOX3D,find_srid('','name','the_geom') ))' then run in the query in the sql client and see if it works. If it does you can try it in mapserver. I think that for sql-based layers the qstring MUST be a valid where clause and not only a value to be matched against qitem. In this respect SQL layers differ sifferently from shapefiles based layers. Regards, Umberto From Gail.Millin at MANCHESTER.AC.UK Wed Aug 22 01:18:15 2007 From: Gail.Millin at MANCHESTER.AC.UK (Gail Millin) Date: Wed, 22 Aug 2007 09:18:15 +0100 Subject: WFS Server Problems Message-ID: An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Wed Aug 22 01:43:59 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 22 Aug 2007 10:43:59 +0200 Subject: C#: imageObj.write(IO.Stream) Problem Message-ID: Hi guys, I've compiled the MapServer 5.0beta3 myself with VS2005, things are working perfectly, but today I get problem with the imageObj.write() and imageObj.getBytes(), these two functions always cause an exception. What i can do is only to use the method imageObj.save(), this function works well. does anyone get the same problem like me, or have I done anything wrong with the compilation in VS2005? any hints are welcome. Best Regards Zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Wed Aug 22 02:22:20 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 22 Aug 2007 11:22:20 +0200 Subject: C#: imageObj.write(IO.Stream) Problem In-Reply-To: <2534c4120708220143x2a685160xd6558bbf2e6f5f99@mail.gmail.com> Message-ID: Zhonghai, Please submit a ticket including the exception message you get. http://trac.osgeo.org/mapserver/newticket Best regards, Tamas 2007/8/22, Zhonghai Wang : > Hi guys, > > I've compiled the MapServer 5.0beta3 myself with VS2005, things are working > perfectly, but today I get problem with the imageObj.write() and > imageObj.getBytes(), these two functions always cause an exception. What i > can do is only to use the method imageObj.save(), this function works well. > > does anyone get the same problem like me, or have I done anything wrong with > the compilation in VS2005? > > any hints are welcome. > > Best Regards > > Zhonghai From mapcollect at GMX.NET Wed Aug 22 03:46:49 2007 From: mapcollect at GMX.NET (HarryS) Date: Wed, 22 Aug 2007 03:46:49 -0700 Subject: ***SOLUTION***Re: Error on Itemnquery with PostGIS-layer***SOLUTION*** In-Reply-To: <12256315.post@talk.nabble.com> Message-ID: This is the correct query-URL for PostGIS: http://myServer.com/cgi-bin/mapserv?&map=/home/harry/Mapfiles/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem=name&qstring=name='London' qstring=name='London' now it works fine :-) Thanks for all your help. Harry Schmidt HarryS wrote: > > I tried already: > > msQueryByAttributes(): Search returned no results. No matching record(s) > found. > > :-( > > Harry > > > > Umberto Nicoletti wrote: >> >> What about this: >> >> http://myServer.com/cgi-bin/mapserv?&map=/home/harry/Mapfiles/MyMap.map&mode=itemnquery&qlayer=City-Database&qitem=name&qstring=('name'='London') >> >> > > -- View this message in context: http://www.nabble.com/Error-on-Itemnquery-with-PostGIS-layer-tf4303941.html#a12272214 Sent from the Mapserver - User mailing list archive at Nabble.com. From lged_morris at HOTMAIL.COM Wed Aug 22 04:14:52 2007 From: lged_morris at HOTMAIL.COM (=?iso-8859-1?B?TGFycy1H9nJhbiBFZGhvbG0=?=) Date: Wed, 22 Aug 2007 13:14:52 +0200 Subject: Mapserver 5 beta 4 binaries Message-ID: Hii! I can?t find any binaries for beta 4. _________________________________________________________________ R?sta p? b?sta badst?llet just nu http://msnbattles.microsoft.se/template/resor.html?cat=19 From Tom.Kralidis at EC.GC.CA Wed Aug 22 04:43:48 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 22 Aug 2007 07:43:48 -0400 Subject: WFS Server Problems In-Reply-To: A<20070822091815640.00000003788@D5B33W1J> Message-ID: ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gail Millin Sent: 22 August, 2007 4:18 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WFS Server Problems Dear User List, I am trying to set up a WFS Server, when I do a getCapabilities request I get the below warning. However I have set the Layer Extent in my mapfile both within the METADATA and also after EXTENT at the top of the mapfile. Does anyone have any other ideas of why this error would be raised? WARNING: Mandatory LatLongBoundingBox could not be established for this layer. Consider setting LAYER.EXTENT or wfs_extent metadata. Kind Regards Gail Millin Mimas Geodata Services Development Officer From Tom.Kralidis at EC.GC.CA Wed Aug 22 04:44:45 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 22 Aug 2007 07:44:45 -0400 Subject: WFS Server Problems In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F278060@ecburexch1.ontario.int.ec.gc.ca> Message-ID: > I am trying to set up a WFS Server, when I do a > getCapabilities request I get the below warning. However I > have set the Layer Extent in my mapfile both within the > METADATA and also after EXTENT at the top of the mapfile. > Does anyone have any other ideas of why this error would be raised? > > > > WARNING: Mandatory LatLongBoundingBox could not be > established for this layer. Consider setting LAYER.EXTENT or > wfs_extent metadata. > What's your underlying data source? Can you post (or send offlist) your mapfile? ..Tom From Gail.Millin at MANCHESTER.AC.UK Wed Aug 22 04:47:56 2007 From: Gail.Millin at MANCHESTER.AC.UK (Gail Millin) Date: Wed, 22 Aug 2007 12:47:56 +0100 Subject: WMS GetCapabilities error Message-ID: An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Wed Aug 22 05:35:30 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Wed, 22 Aug 2007 14:35:30 +0200 Subject: C#: imageObj.write(IO.Stream) Problem In-Reply-To: Message-ID: Hi Tamas, I've opened a ticket for this exception, you can take a look here. http://trac.osgeo.org/mapserver/ticket/2255 hope that it can be fixed soon. if you need any further information, please let me know. Best Regards Zhonghai On 8/22/07, Tamas Szekeres wrote: > > Zhonghai, > > Please submit a ticket including the exception message you get. > > http://trac.osgeo.org/mapserver/newticket > > Best regards, > > Tamas > > > 2007/8/22, Zhonghai Wang : > > Hi guys, > > > > I've compiled the MapServer 5.0beta3 myself with VS2005, things are > working > > perfectly, but today I get problem with the imageObj.write() and > > imageObj.getBytes(), these two functions always cause an exception. What > i > > can do is only to use the method imageObj.save(), this function works > well. > > > > does anyone get the same problem like me, or have I done anything wrong > with > > the compilation in VS2005? > > > > any hints are welcome. > > > > Best Regards > > > > Zhonghai > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at MAPGEARS.COM Wed Aug 22 05:59:30 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 22 Aug 2007 08:59:30 -0400 Subject: Mapserver 5 beta 4 binaries In-Reply-To: Message-ID: Lars-G?ran Edholm wrote: > Hii! > I can?t find any binaries for beta 4. > For which platform? The beta binaries should normally be available within a couple of days after the source release via the links at http://mapserver.gis.umn.edu/download/beta - In the FGS case it is a daily build so don't look for a beta but just grab the latest build - For the Windows (MS4W) and Mac (Kyng Chaos) packages, new packages have to be posted to the respective sites by their maintainers. I see that the Mac build has been updated but the MS4W build has not been updated yet. Daniel -- Daniel Morissette http://www.mapgears.com/ From umn-ms at HYDROTEC.DE Wed Aug 22 05:50:18 2007 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Wed, 22 Aug 2007 14:50:18 +0200 Subject: Antwort: [UMN_MAPSERVER-USERS] WMS GetCapabilities error In-Reply-To: <20070822124756328.00000003788@D5B33W1J> Message-ID: Hi Mapserver appends the message CGI Request 1 on process 4000 at the end of the output. This is a debug-message. You may avoid it by turning debug-output off or redirecting it to a file in the case you need it. Benedikt UMN MapServer Users List schrieb am 22.08.2007 13:47:56: > Dear Userlist > > When I submit a GetCapabilities request sometimes I can get the > following message in my browser: > > Invalid at the top level of the document. Error processing resource > 'http://ims2.landmap.ac.uk/cgi-bin/mapserv.exe?map=..\c... > > > To see the errors returned please click on the following links: > > (This one is ok) http://ims1.landmap.ac.uk/cgi-bin/mapserv.exe? > map=..\chameleon\satellite\map\ws. > map&SERVICE=WMS&REQUEST=GetCapabilities&WMTVER=1.0 > > (This brings back an error) http://ims2.landmap.ac.uk/cgi- > bin/mapserv.exe?map=..\chameleon\satellite\map\cities_revealed2. > map&SERVICE=WMS&REQUEST=GetCapabilities&WMTVER=1.0 > > I was just wondering if anyone know what could cause this error as I > have checked my MapFile and all appears to be looking fine. > > Kind Regards > > Gail Millin > > Mimas > Geodata Services Development Officer > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gail.Millin at MANCHESTER.AC.UK Wed Aug 22 06:21:18 2007 From: Gail.Millin at MANCHESTER.AC.UK (Gail Millin) Date: Wed, 22 Aug 2007 08:21:18 -0500 Subject: Antwort: [UMN_MAPSERVER-USERS] WMS GetCapabilities error Message-ID: Thanks for your help that GetCapabilities request is working now, knew it would be something really simple :-) From devloic at GMAIL.COM Wed Aug 22 07:39:53 2007 From: devloic at GMAIL.COM (loic devaux) Date: Wed, 22 Aug 2007 10:39:53 -0400 Subject: KML export plugin for CartoWeb Message-ID: Hello to everyone, I am glad to announce the release of a KML export plugin for CartoWeb, a MapServer based web mapping framework allowing to view data inside google earth and google maps. More info, demo, documentation and download available here : http://exportgge.sourceforge.net/kml/en Lo?c --------------------------- Bonjour ? tous, je suis heureux d'annoncer la disponibilit? d'un plugin d'export KML vers google earth et google maps pour CartoWeb, un framework de cartographie web bas? sur MapServer. Plus d'infos, d?mo, documentation et t?l?chargement ici: http://exportgge.sourceforge.net/kml/fr Lo?c -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at GEOWORLD.DE Wed Aug 22 08:55:08 2007 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Wed, 22 Aug 2007 15:55:08 +0000 Subject: Compilation error (FT_Get_BDF_Property Undefined symbol) Message-ID: Dear list, i try to compile the current svn version of mapserver on a solaris 8 box. Sadly the compilation process terminated with the following error: Undefined first referenced symbol in file FT_Get_BDF_Property /opt/programs/fontconfig-2.2.93/lib/libfontconfig.1 ld: fatal: Symbol referencing errors. No output written to shp2img collect2: ld returned 1 exit status gmake: *** [shp2img] Error 1 Here are some version information of the librarys which i think are involved: freetype 2.1.7 fontconfig 2.2.93 gdlib 2.0.33 g++ 3.2 Any hints how to solve this problem? Many thanks Nicol From thomas.bonfort at GMAIL.COM Wed Aug 22 09:26:12 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Wed, 22 Aug 2007 18:26:12 +0200 Subject: AGG: missing truetype label outlinecolor on Windows/VC8 In-Reply-To: <46C99A9D.4090305@territoriumonline.com> Message-ID: andreas, the outlining code for fonts is merely about drawing the same text offset by one pixel in each direction (N, NE, E, etc ). I've changed a few things today in the font rendering code, could you possibly check with the svn version (or with beta5 due today I think) that this bug is still present when optimisation is on. tb On 8/20/07, Andreas Albarello wrote: > > Folks, > > some strange things are happening here with MapServer 5.0 beta 4 (as > well as all the previous betas) regarding AGG truetype label rendering. > > For instance, when compiling MapServer with VC8, more precisely Visual > C++ 2005 Express SP1, against agg 2.4 (compiled with the makefile > provided by Jeff McKenna) and libfreetype 2.2.1, both compiled with VC8 > as well, my truetype labels suddenly have no outlinecolor anymore. When > I change the outputformat back to use GD for rendering, everything is > fine. I can reproduce this behavior on two different machines, even > through shp2img with a basic mapfile having just an annotation layer. > > Funny thing is, and I came up with this more by chance than anything, > when I disable compiler optimizations by tweaking Makefile.vc to pass > /Od instead of /Ox to the compiler for mapagg.cpp only (all other files > and libraries, including agg, are compiled with optimizations on) I'm > able to get my outlinecolors working again. This smells a lot like a > compiler bug to me. If some Windows folks out there can perhaps confirm > this, I'm ready to file a bug report on this, in order to at least tweak > the Windows makefile (well, I guess that's most likely the only thing we > can do about this). > > Best regards, > -- > -------------------------------------------------------------------- > Andreas Albarello > Analysis & SW Development > > Territorium Online srl/GmbH > Via Buozzi Str. 12 > I 39100 Bolzano/Bozen > > Phone: +39 0471 068611 > Fax: +39 0471 068619 > > email: andreas.albarello at territoriumonline.com > web: http://www.territoriumonline.com > -------------------------------------------------------------------- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tim.Nolte at IPCSWIRELESSINC.COM Wed Aug 22 09:42:27 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Wed, 22 Aug 2007 12:42:27 -0400 Subject: MS5b4 & AGG Symbol Anti-aliasing... In-Reply-To: A<1187798108.3482.37.camel@emil.intranet.gdv.com> Message-ID: I've got MapServer v5 beta 4 running with AGG 2.4 and my maps are looking pretty great. The only issue I'm having is that my Highway Shield symbols are coming out without any anti-aliasing. Does anyone have any thoughts on why this is? The symbols are GIF images, perhaps does this have to do with them being in that format? Should I try to make them as PNG, JPG, or TIFF images instead? Or perhaps there are some truetype font's of highway shields out there that I could use instead. Thanks. ---- 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 andreas.albarello at TERRITORIUMONLINE.COM Wed Aug 22 09:57:42 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Wed, 22 Aug 2007 18:57:42 +0200 Subject: AGG: missing truetype label outlinecolor on Windows/VC8 In-Reply-To: Message-ID: thomas bonfort wrote: > andreas, > the outlining code for fonts is merely about drawing the same text > offset by one pixel in each direction (N, NE, E, etc ). I've changed a > few things today in the font rendering code, could you possibly check > with the svn version (or with beta5 due today I think) that this bug is > still present when optimisation is on. > > tb Thomas, yes, indeed, font outlines render now fine even with optimizations on. Thanks for fixing this, though there must have been something weird going on in the compiler before. But now it's all fine. Thanks again. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From thomas.bonfort at GMAIL.COM Wed Aug 22 10:11:34 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Wed, 22 Aug 2007 19:11:34 +0200 Subject: MS5b4 & AGG Symbol Anti-aliasing... In-Reply-To: <1532456BD081F146A176FB6929E6B0D19E6CDA@KTWMAIL.ilpcs.com> Message-ID: tim: yes this is from the gif format gif only specifies /one/ transparent color, not a complete alpha channel png is ok, though you'll have to do more than just convert the gif to png On 8/22/07, Nolte, Tim wrote: > > I've got MapServer v5 beta 4 running with AGG 2.4 and my maps are > looking pretty great. The only issue I'm having is that my Highway > Shield symbols are coming out without any anti-aliasing. Does anyone > have any thoughts on why this is? The symbols are GIF images, perhaps > does this have to do with them being in that format? Should I try to > make them as PNG, JPG, or TIFF images instead? Or perhaps there are some > truetype font's of highway shields out there that I could use instead. > Thanks. > > > ---- > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at MAPGEARS.COM Wed Aug 22 14:44:53 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 22 Aug 2007 17:44:53 -0400 Subject: MapServer 4.10.3 released with security fix Message-ID: MapServer 4.10.3 has just been released with some security fixes. This release contains fixes for XSS vulnerabilities that have been found in the mapserv CGI and have been present for several releases. We have verified that the issues were present in versions 4.4 to 5.0-beta4. They may also have been present in older released but we did not test that far. Note that those specific issues only affect the mapserv CGI, the various MapScript bindings should not be vulnerable to those issues. Users of the mapserv CGI are strongly advised to upgrade to the latest release. If you are running an older release and cannot upgrade then you can find a patch that can be applied to MapServer 4.8 and older in ticket #2256 at http://trac.osgeo.org/mapserver/ticket/2256 This release contains no new features, the list of changes/fixes since 4.10.2 is included at the end of this message. Finally, the source package is available in the MapServer downloads page: http://mapserver.gis.umn.edu/download/current/ Precompiled binaries should be available shortly at the usual locations (also linked from the download page above). Daniel Version 4.10.3 (2007-08-22) --------------------------- - Fixed XSS vulnerabilities (#2256) - Fixed possible buffer overflow in template processing (#2252) - Rename libmap.a to libmapserver.a for commonality with libmapserver.so (#2150) - Fixed size of output buffer in msGetEncodedString() (#2132) - SOS : backport fixes related to large xml outputs (#1938, #2146) - WCS : Fixed resampling/reprojecting for tileindex datasets (#2180) From dmorissette at MAPGEARS.COM Wed Aug 22 15:03:06 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 22 Aug 2007 18:03:06 -0400 Subject: MapServer 5.0-beta5 released Message-ID: Hi everyone, MapServer 5.0.0-beta5 has just been released. The source package is available at: http://mapserver.gis.umn.edu/download/beta The page above also contains links to binary distributions. They should be updated with binaries for this beta in the next few days. Hopefully we're in good shape to have a release candidate next week or the week after. Thanks a lot to all those who have tested previous betas and have reported their results, either via the list or directly in Trac (bug tracker). That helps a lot... please keep testing and sending feedback. Note that this release includes the same XSS vulnerability fixes that were released in MapServer 4.10.3 a few minutes ago. The complete list of changes/fixes since beta4 is included at the bottom of this email. As was mentioned before, we plan to have one beta per week until the final release of MapServer 5.0 which is planned for the week of September 12, 2007. More details can be found in the 5.0 release plan at http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/release_plan/ Daniel Version 5.0.0-beta5 (2007-08-22) -------------------------------- - Fixed XSS vulnerabilities (#2256) - Allow building with AGG from source when libaggfontfreetype is missing. configure --with-agg=DIR now automatically tries to build agg_font_freetype.o from source if libaggfontfreetype is missing (#2215) - Fixed possible buffer overflow in template processing (#2252) - fix blending of transparent layers with RGBA images - AGG: speed up rendering of pixmap marker symbols - Implement OGR thread-safety via use of an OGR lock (#1977). - Fixed compile warnings (#2226) - Fixed mappdf.c compile warnings, PDF support was probably unusable before that fix (#2251) - Adding -DUSE_GENERIC_MS_NINT to the WIN64 builds (#2250) - Adding msSaveImageBuffer and use that function from the mapscript library instead of the renderer specific functions. (#2241) - Split each format into it's own element in WCS describe coverage results (#2244). - Support to run the mapscript c# examples on x64 platform (#2240) - Fixed problem introduced in 5.0.0-beta4: all HTML legend icons were empty white images (#2243) - Fixed WMS Client to always send STYLES parameter with WMS GetMap requests (#2242) - Fixed support for label encoding in SVG output (#2239) - Added support for label encoding in legend (#2239) - Fixed PHP MapScript layer->queryByAttributes() to not accept empty or null qitem arg (#480) - AGG: fixed incorrect rendering of pixmaps on MSB architectures (#2235) - Added layer.getFeature() in PHP MapScript with optional tileindex arg, and deprecated layer.getShape() to match what we had in SWIG (#900) - Added class.getTextString() and deprecated/renamed class.getExpression() and layer.getFilter() to class.getExpressionString() and layer.getFilterString() to match what we have in SWIG MapScript (#1892) From naramon at HUMBOLDT.ORG.CO Wed Aug 22 15:17:54 2007 From: naramon at HUMBOLDT.ORG.CO (Nelson Andres Ramon) Date: Wed, 22 Aug 2007 17:17:54 -0500 Subject: unsubscribe In-Reply-To: <1187798108.3482.37.camel@emil.intranet.gdv.com> Message-ID: Instituto Alexander von Humboldt -----Mensaje original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de Nicol Hermann Enviado el: Mi?rcoles, 22 de Agosto de 2007 10:55 a.m. Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: [UMN_MAPSERVER-USERS] Compilation error (FT_Get_BDF_Property Undefined symbol) Dear list, i try to compile the current svn version of mapserver on a solaris 8 box. Sadly the compilation process terminated with the following error: Undefined first referenced symbol in file FT_Get_BDF_Property /opt/programs/fontconfig-2.2.93/lib/libfontconfig.1 ld: fatal: Symbol referencing errors. No output written to shp2img collect2: ld returned 1 exit status gmake: *** [shp2img] Error 1 Here are some version information of the librarys which i think are involved: freetype 2.1.7 fontconfig 2.2.93 gdlib 2.0.33 g++ 3.2 Any hints how to solve this problem? Many thanks Nicol From ben at REMOTEINFORMATION.COM.AU Wed Aug 22 20:20:23 2007 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Thu, 23 Aug 2007 11:20:23 +0800 Subject: Showing Movement Direction Message-ID: G'day all, I have been looking and reading, but I'm not sure I'm looking for the right thing. I have a number of points from satellite based tracking, giving me a list of longitude, latitude and a timestamp. These are fairly regular, and although I can display the points on the map window and see where animals have moved to, I can't tell which way they moved just by looking. We vets need to know what came first... So I thought I could convert adjacent points (temporally) into line segments, (earliest point first, latter point last), but I can't find anywhere in Mapserver that seem to explicitly explain how to do this (or whether it can be done). Can anyone either : direct me to the right place, or give me a set of keywords which might get me to the right place, or advise me to give up for now? cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: From Russ.Bradford at CSIRO.AU Wed Aug 22 20:24:18 2007 From: Russ.Bradford at CSIRO.AU (Russ Bradford) Date: Thu, 23 Aug 2007 13:24:18 +1000 Subject: Showing Movement Direction Message-ID: Don't give up. What might work for you is to create two layers. the first has all the points; the second has only the latest point. Make the second layer the upper layer and give it a different symbol. Maybe that would do the job for you. Otherwise there is a way to 'make a line' out of points, but I have yet to figure that one out. Once you have that, presumably you could have a line with directional arrows on it. Cheers, Russ. _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ben Madin Sent: Thursday, 23 August 2007 1:20 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Showing Movement Direction G'day all, I have been looking and reading, but I'm not sure I'm looking for the right thing. I have a number of points from satellite based tracking, giving me a list of longitude, latitude and a timestamp. These are fairly regular, and although I can display the points on the map window and see where animals have moved to, I can't tell which way they moved just by looking. We vets need to know what came first... So I thought I could convert adjacent points (temporally) into line segments, (earliest point first, latter point last), but I can't find anywhere in Mapserver that seem to explicitly explain how to do this (or whether it can be done). Can anyone either : direct me to the right place, or give me a set of keywords which might get me to the right place, or advise me to give up for now? cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Wed Aug 22 20:31:40 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 22 Aug 2007 23:31:40 -0400 Subject: Showing Movement Direction In-Reply-To: <506C5402-67D5-4E08-963F-8D06A9FA31A3@remoteinformation.com.au> Message-ID: Ben, This is the same problem of displaying GPS tracks. They explicitly a set of points, but when taken as a track over time they are a polyline. You can not do anything with mapserver directly. You do have a few options: 1) write a script that adds heading column to each point, based on the previous point and use this angle to orient a marker for the point. 2) load the data into postGIS and convert the points to a polyline and either display it from postGIS or dump it back to a shapefile. 3) use postGIS to compute the heading column 4) other similar preprocess the data options try search for "gps track" in both mapserver archives and postgis archives. -Steve W Ben Madin wrote: > G'day all, > > I have been looking and reading, but I'm not sure I'm looking for the > right thing. > > I have a number of points from satellite based tracking, giving me a > list of longitude, latitude and a timestamp. These are fairly regular, > and although I can display the points on the map window and see where > animals have moved to, I can't tell which way they moved just by > looking. We vets need to know what came first... > > So I thought I could convert adjacent points (temporally) into line > segments, (earliest point first, latter point last), but I can't find > anywhere in Mapserver that seem to explicitly explain how to do this (or > whether it can be done). > > Can anyone either : > > direct me to the right place, or > give me a set of keywords which might get me to the right place, or > advise me to give up for now? > > cheers > > Ben > > > -- > > Ben Madin > REMOTE INFORMATION > > t : +61 8 9192 5455 > f : +61 8 9192 5535 > m : 0448 887 220 > Broome WA 6725 > > ben at remoteinformation.com.au > > > > > > Out here, it pays to know... > > > > > > > > > From umberto.nicoletti at GMAIL.COM Wed Aug 22 22:15:44 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 23 Aug 2007 07:15:44 +0200 Subject: Compilation error (FT_Get_BDF_Property Undefined symbol) In-Reply-To: <1187798108.3482.37.camel@emil.intranet.gdv.com> Message-ID: Google for FT_Get_BDF_Property and read the first few entries, this one in particular: http://mail.gnome.org/archives/garnome-list/2003-September/msg00408.html might be helpful. Umberto On 8/22/07, Nicol Hermann wrote: > Dear list, > > i try to compile the current svn version of mapserver on a solaris 8 > box. Sadly the compilation process terminated with the following error: > > Undefined first referenced > symbol in file > FT_Get_BDF_Property /opt/programs/fontconfig-2.2.93/lib/libfontconfig.1 > ld: fatal: Symbol referencing errors. No output written to shp2img > collect2: ld returned 1 exit status > gmake: *** [shp2img] Error 1 > > Here are some version information of the librarys which i think are > involved: > > freetype 2.1.7 > fontconfig 2.2.93 > gdlib 2.0.33 > g++ 3.2 > > Any hints how to solve this problem? > > Many thanks > Nicol > From pauljame at GMAIL.COM Thu Aug 23 07:23:17 2007 From: pauljame at GMAIL.COM (Paul james) Date: Thu, 23 Aug 2007 11:23:17 -0300 Subject: HTML Legends + mapscript ! Message-ID: Hello guys ! I need change my legend system (mapaObj.Legend()) drawwith HTML legend ... I?d like to known if someone could help me with that... Any samples using mapscript? I?m completely lost on this task! Any help ? Thx -------------- next part -------------- An HTML attachment was scrubbed... URL: From efren.serra.ctr at METNET.NAVY.MIL Thu Aug 23 08:45:18 2007 From: efren.serra.ctr at METNET.NAVY.MIL (Efren Serra) Date: Thu, 23 Aug 2007 08:45:18 -0700 Subject: POLYGONS AT INTERNATIONAL DATE TIME BOUNDARY In-Reply-To: <46CCFF9C.7070506@swoodbridge.com> Message-ID: Folks, I was wondering how mapserver handles polygons at the international date-time boundary. Any help would be Appreciated. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Woodbridge Sent: Wednesday, August 22, 2007 8:32 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Showing Movement Direction Ben, This is the same problem of displaying GPS tracks. They explicitly a set of points, but when taken as a track over time they are a polyline. You can not do anything with mapserver directly. You do have a few options: 1) write a script that adds heading column to each point, based on the previous point and use this angle to orient a marker for the point. 2) load the data into postGIS and convert the points to a polyline and either display it from postGIS or dump it back to a shapefile. 3) use postGIS to compute the heading column 4) other similar preprocess the data options try search for "gps track" in both mapserver archives and postgis archives. -Steve W Ben Madin wrote: > G'day all, > > I have been looking and reading, but I'm not sure I'm looking for the > right thing. > > I have a number of points from satellite based tracking, giving me a > list of longitude, latitude and a timestamp. These are fairly regular, > and although I can display the points on the map window and see where > animals have moved to, I can't tell which way they moved just by > looking. We vets need to know what came first... > > So I thought I could convert adjacent points (temporally) into line > segments, (earliest point first, latter point last), but I can't find > anywhere in Mapserver that seem to explicitly explain how to do this (or > whether it can be done). > > Can anyone either : > > direct me to the right place, or > give me a set of keywords which might get me to the right place, or > advise me to give up for now? > > cheers > > Ben > > > -- > > Ben Madin > REMOTE INFORMATION > > t : +61 8 9192 5455 > f : +61 8 9192 5535 > m : 0448 887 220 > Broome WA 6725 > > ben at remoteinformation.com.au > > > > > > Out here, it pays to know... > > > > > > > > > From friendvn2000 at YAHOO.COM Thu Aug 23 09:55:24 2007 From: friendvn2000 at YAHOO.COM (Jedi Knight) Date: Thu, 23 Aug 2007 11:55:24 -0500 Subject: Fatal error when query Message-ID: Help me, my modify-Gmap application goes crazy!!! I don't know what was I doing but till now when I do querying on the map ( byAttribute, byClick...) it always goes to Full Extent ( I want to keep the current extent ) Everybody met that error please help me. Thanks a lot! From dylan.beaudette at GMAIL.COM Thu Aug 23 11:14:52 2007 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Thu, 23 Aug 2007 11:14:52 -0700 Subject: Imagemap output format and mapserver > 4.10 Message-ID: Looks like imagemap output is not working with mapserver > 4.10, when called via mapscript. I noticed this small problem almost a year ago, but when updating to 4.10.3 it came up again. This is actually a good thing, as the image+imagemap approach resulted in a very large page sizes. Is there any way to use async javascript to perform the standard CGI-style mapserver demo which performs a query at the clicked coordinates? i.e. I would like to have an async query interface in order to remove one extra page reload. Any ideas? thanks! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From bfraser at GEOANALYTIC.COM Thu Aug 23 11:32:41 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 23 Aug 2007 12:32:41 -0600 Subject: AGG and WMS Message-ID: Is AGG supposed to do anti-aliased output when Mapserver is used as a WMS server? Brent Fraser GeoAnalytic Inc. Calgary, Alberta From gregor at HOSTGIS.COM Thu Aug 23 11:35:44 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 23 Aug 2007 12:35:44 -0600 Subject: POLYGONS AT INTERNATIONAL DATE TIME BOUNDARY In-Reply-To: <009d01c7e59c$9e2b1170$a469640a@ade.metnet.navy.mil> Message-ID: Efren Serra wrote: > I was wondering how mapserver handles polygons at the international > date-time boundary. Any help would be > Appreciated. Coincidentally, this was asked only last week, and has pertinence to a project I'm working on. The answer is: "It doesn't." The entire date line issue is that +179 isn't the same as -181, so either: a) Pick a projection that does handle the date line properly. b) Pre-mangle your data to get rid of the dateline wrap. Paste the Aleutian Islands onto the far east, copy the eastern edge of Russia over to the far west from Alaska, so that your data doesn't end at 180/-180 -- Gregor Mosheh / Greg Allensworth 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 john.cole at UAI.COM Thu Aug 23 11:56:07 2007 From: john.cole at UAI.COM (John Cole) Date: Thu, 23 Aug 2007 11:56:07 -0700 Subject: GD vs AGG performance... Message-ID: Perhaps it's too early to discuss performance differences, but I was curious if the current AGG rendering speed is what to expect. Looking at a few of my mapfiles, AGG is aprox 5 times slower than GD on MS5 (with MS4 GD just a hair faster than MS5 GD). The maps look great, but after spending a lot of time getting maps below 100ms, it's hurts to see them over a second again :-( Just want my cake and get to eat it too :-) Thanks, John -- View this message in context: http://www.nabble.com/GD-vs-AGG-performance...-tf4319265.html#a12299688 Sent from the Mapserver - User mailing list archive at Nabble.com. From crschmidt at METACARTA.COM Thu Aug 23 12:03:56 2007 From: crschmidt at METACARTA.COM (Christopher Schmidt) Date: Thu, 23 Aug 2007 15:03:56 -0400 Subject: AGG and WMS In-Reply-To: <284701c7e5b3$fdd30440$140002c0@shark> Message-ID: On Thu, Aug 23, 2007 at 12:32:41PM -0600, Brent Fraser wrote: > Is AGG supposed to do anti-aliased output when Mapserver is > used as a WMS server? I'm not sure what 'antialiased' output means -- perhaps you mean 'alpha transparency', perhaps you mean antialiasing within the images, perhaps you mean something else. Can you clarify? The answer to the first is, I believe, "no". WMS spec only allows for 'transparency or no transparency', and MapServer does not implement alpha transparency output in the WMS images. The answer to the second is "Sure" -- the images for http://boston.freemap.in/ are fetched from WMS (by TileCache). Regards, -- Christopher Schmidt MetaCarta From pauljame at GMAIL.COM Thu Aug 23 12:18:22 2007 From: pauljame at GMAIL.COM (Paul james) Date: Thu, 23 Aug 2007 16:18:22 -0300 Subject: HTML Legends + mapscript (Updated) Message-ID: I created a template.html like that : [leg_class_html opt_flag=15] [leg_class_name]
    [/leg_class_html] And in my mapfile: LEGEND STATUS ON KEYSIZE 18 12 # LABEL object LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END TEMPLATE "template.html" END Now, In code(c#) I?m trying to use processLegendTemplate function without sucess ... The function always return empty string ... I think I?m not using it correctly : string[] _x = new string[1]; string[] _y = new string[1]; string _html = mapaObj.processLegendTemplate(_x, _y, 1); obs.: _html always return empty... Any ideas? I?m using Mapserver 5.0 beta 3 ! []?s On 8/23/07, Paul james wrote: > > Hello guys ! > I need change my legend system (mapaObj.Legend()) drawwith HTML legend > ... > I?d like to known if someone could help me with that... Any samples using > mapscript? > I?m completely lost on this task! > > Any help ? > > Thx > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From RMcCulley at COUNTY24.COM Thu Aug 23 12:35:58 2007 From: RMcCulley at COUNTY24.COM (Rob McCulley) Date: Thu, 23 Aug 2007 13:35:58 -0600 Subject: GD vs AGG performance... Message-ID: That hasn't been my experience at all. I wrote a quick little python script that used mapscript to produce the same five maps twice, once with agg and once with gd. The mapfiles were identical, except for the outputformat section, and the times were within 2% of each other. Rob McCulley -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Cole Sent: Thursday, August 23, 2007 12:56 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] GD vs AGG performance... Perhaps it's too early to discuss performance differences, but I was curious if the current AGG rendering speed is what to expect. Looking at a few of my mapfiles, AGG is aprox 5 times slower than GD on MS5 (with MS4 GD just a hair faster than MS5 GD). The maps look great, but after spending a lot of time getting maps below 100ms, it's hurts to see them over a second again :-( Just want my cake and get to eat it too :-) Thanks, John -- View this message in context: http://www.nabble.com/GD-vs-AGG-performance...-tf4319265.html#a12299688 Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at GMAIL.COM Thu Aug 23 12:44:29 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Thu, 23 Aug 2007 21:44:29 +0200 Subject: GD vs AGG performance... In-Reply-To: <12299688.post@talk.nabble.com> Message-ID: john, could you be more specific as to what kind of maps you're rendering, in the terms of the number and type of layers, and approximate number of features per layer. the agg stuff is "just working" for the moment , without much thought on optimization. having a few pointers as to where to look for the possible optimisations would be helpfull. tb On 8/23/07, John Cole wrote: > > Perhaps it's too early to discuss performance differences, but I was > curious > if the current AGG rendering speed is what to expect. > > Looking at a few of my mapfiles, AGG is aprox 5 times slower than GD on > MS5 > (with MS4 GD just a hair faster than MS5 GD). > > The maps look great, but after spending a lot of time getting maps below > 100ms, it's hurts to see them over a second again :-( Just want my cake > and > get to eat it too :-) > > Thanks, > > John > -- > View this message in context: > http://www.nabble.com/GD-vs-AGG-performance...-tf4319265.html#a12299688 > Sent from the Mapserver - User mailing list archive at Nabble.com. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at GEOANALYTIC.COM Thu Aug 23 12:51:19 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 23 Aug 2007 13:51:19 -0600 Subject: AGG and WMS Message-ID: Christopher, Sorry for the terse question, here are some more details... I'm using the AGG/PNG output driver (see RFC-32) in Mapserver 5.0 beta 4 to render shapefile vectors (no raster input) to a PNG graphic file. When I use Mapserver's CGI interface to request a graphic map, the lines appear anti-aliased (smooth, no jaggies) Great! But when I use Mapserver's WMS interface, I get the same old rendering Mapserver always gave (lines with jaggies). Note there was an email (http://lists.umn.edu/cgi-bin/wa?A2=ind0703&L=mapserver-dev& T=0&O=D&X=639F0B08FDD720FAC9&P=6714) saying "WSM right now only advertise gd and gdal based drivers. See bug 455". After some review of the images, it looks like my "DRIVER AGG/PNG" produces a 24 bit png file via CGI, but an 8 bit png file via WMS. When I try to do AGG/PNG24, I get "General error message. OUTPUTFORMAT clause references driver AGG/PNG24, but this driver isn't configured." from Mapserver. I'll have to do some more digging... Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Christopher Schmidt" To: Sent: Thursday, August 23, 2007 1:03 PM Subject: Re: [UMN_MAPSERVER-USERS] AGG and WMS > On Thu, Aug 23, 2007 at 12:32:41PM -0600, Brent Fraser wrote: > > Is AGG supposed to do anti-aliased output when Mapserver is > > used as a WMS server? > > I'm not sure what 'antialiased' output means -- perhaps you mean 'alpha > transparency', perhaps you mean antialiasing within the images, perhaps > you mean something else. Can you clarify? > > The answer to the first is, I believe, "no". WMS spec only allows for > 'transparency or no transparency', and MapServer does not implement > alpha transparency output in the WMS images. > > The answer to the second is "Sure" -- the images for > http://boston.freemap.in/ are fetched from WMS (by TileCache). > > Regards, > -- > Christopher Schmidt > MetaCarta From andreas.albarello at TERRITORIUMONLINE.COM Thu Aug 23 12:52:13 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Thu, 23 Aug 2007 21:52:13 +0200 Subject: GD vs AGG performance... In-Reply-To: <8563B9D6767C904A912272A2D56548E417070E@vermilion.County24.local> Message-ID: Same for me here. Didn't notice any major performance hits. Rendering times with AGG and GD are in about the same ballpark here. Maybe getting some idea of the kind of symbols, outlines etc. you use would help. Perhaps you could also clarify how you have been able to get maps below 100ms in the first place? Best regards, Andreas Albarello Rob McCulley wrote: > That hasn't been my experience at all. I wrote a quick little python > script that used mapscript to produce the same five maps twice, once > with agg and once with gd. The mapfiles were identical, except for the > outputformat section, and the times were within 2% of each other. > > Rob McCulley > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of John Cole > Sent: Thursday, August 23, 2007 12:56 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] GD vs AGG performance... > > Perhaps it's too early to discuss performance differences, but I was > curious > if the current AGG rendering speed is what to expect. > > Looking at a few of my mapfiles, AGG is aprox 5 times slower than GD on > MS5 > (with MS4 GD just a hair faster than MS5 GD). > > The maps look great, but after spending a lot of time getting maps below > 100ms, it's hurts to see them over a second again :-( Just want my cake > and > get to eat it too :-) > > Thanks, > > John -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From john.cole at UAI.COM Thu Aug 23 12:56:06 2007 From: john.cole at UAI.COM (John Cole) Date: Thu, 23 Aug 2007 12:56:06 -0700 Subject: GD vs AGG performance... In-Reply-To: <8563B9D6767C904A912272A2D56548E417070E@vermilion.County24.local> Message-ID: I'm just going by the tuning info reported by mapserver, but there is a noticeable difference between them. Try: MS4 (MS4W 2.2.2) total time: 0.250s http://map.uai.com:28080/cgi-bin/mapserv.exe?map=/mapserver/tiger/tiger.map&mode=browse&layers=bound+hydro+landmark+roads+roads_anno+city+hydro_anno+landmark_anno+landmark_point MS5 AGG (MS4W 2.2.6) total time: 1.266s http://map.uai.com:28080/cgi-bin2/mapserv.exe?map=/mapserver/tiger/tiger5.map&mode=browse&layers=bound+hydro+landmark+roads+roads_anno+city+hydro_anno+landmark_anno+landmark_point MS5 GD (MS4W 2.2.6) total time: 0.250s http://map.uai.com:28080/cgi-bin2/mapserv.exe?map=/mapserver/tiger/tiger5gd.map&mode=browse&layers=bound+hydro+landmark+roads+roads_anno+city+hydro_anno+landmark_anno+landmark_point Except for GD->AGG (and the debug difference between 4 and 5), the map files are identical. (BTW, these are using the same html template, so if you navigate, you won't be using the same MS/renderer combo). Is there something else that needs to be done for AGG to perform similar to GD? John Rob McCulley-2 wrote: > > That hasn't been my experience at all. I wrote a quick little python > script that used mapscript to produce the same five maps twice, once > with agg and once with gd. The mapfiles were identical, except for the > outputformat section, and the times were within 2% of each other. > > Rob McCulley > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of John Cole > Sent: Thursday, August 23, 2007 12:56 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] GD vs AGG performance... > > Perhaps it's too early to discuss performance differences, but I was > curious > if the current AGG rendering speed is what to expect. > > Looking at a few of my mapfiles, AGG is aprox 5 times slower than GD on > MS5 > (with MS4 GD just a hair faster than MS5 GD). > > The maps look great, but after spending a lot of time getting maps below > 100ms, it's hurts to see them over a second again :-( Just want my cake > and > get to eat it too :-) > > Thanks, > > John > -- > View this message in context: > http://www.nabble.com/GD-vs-AGG-performance...-tf4319265.html#a12299688 > Sent from the Mapserver - User mailing list archive at Nabble.com. > > -- View this message in context: http://www.nabble.com/GD-vs-AGG-performance...-tf4319265.html#a12300775 Sent from the Mapserver - User mailing list archive at Nabble.com. From john.cole at UAI.COM Thu Aug 23 12:59:52 2007 From: john.cole at UAI.COM (John Cole) Date: Thu, 23 Aug 2007 12:59:52 -0700 Subject: GD vs AGG performance... In-Reply-To: <46CDE56D.9090500@territoriumonline.com> Message-ID: I posted a link to one of our standard base maps, it was down to 250ms, but we haven't really been tuning on it, there are other things to squash when you get it that low. John Andreas Albarello wrote: > > Same for me here. Didn't notice any major performance hits. Rendering > times with AGG and GD are in about the same ballpark here. > > Maybe getting some idea of the kind of symbols, outlines etc. you use > would help. Perhaps you could also clarify how you have been able to get > maps below 100ms in the first place? > > Best regards, > Andreas Albarello > > Rob McCulley wrote: >> That hasn't been my experience at all. I wrote a quick little python >> script that used mapscript to produce the same five maps twice, once >> with agg and once with gd. The mapfiles were identical, except for the >> outputformat section, and the times were within 2% of each other. >> >> Rob McCulley >> >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >> Behalf Of John Cole >> Sent: Thursday, August 23, 2007 12:56 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] GD vs AGG performance... >> >> Perhaps it's too early to discuss performance differences, but I was >> curious >> if the current AGG rendering speed is what to expect. >> >> Looking at a few of my mapfiles, AGG is aprox 5 times slower than GD on >> MS5 >> (with MS4 GD just a hair faster than MS5 GD). >> >> The maps look great, but after spending a lot of time getting maps below >> 100ms, it's hurts to see them over a second again :-( Just want my cake >> and >> get to eat it too :-) >> >> Thanks, >> >> John > > -- > -------------------------------------------------------------------- > Andreas Albarello > Analysis & SW Development > > Territorium Online srl/GmbH > Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen > email: andreas.albarello at territoriumonline.com > web: www.territoriumonline.com > -------------------------------------------------------------------- > > -- View this message in context: http://www.nabble.com/GD-vs-AGG-performance...-tf4319265.html#a12300885 Sent from the Mapserver - User mailing list archive at Nabble.com. From john.cole at UAI.COM Thu Aug 23 13:05:26 2007 From: john.cole at UAI.COM (John Cole) Date: Thu, 23 Aug 2007 13:05:26 -0700 Subject: AGG and WMS In-Reply-To: <295d01c7e5be$fa11dc90$140002c0@shark> Message-ID: It's working well for us via WMS, but I did notice that if your format request had additional specifics besides "image/png" it would return an error. We only have one png output type defined in our mapfile as well, so that could be confusing things. John Brent Fraser wrote: > > Christopher, > > Sorry for the terse question, here are some more > details... > > I'm using the AGG/PNG output driver (see RFC-32) in > Mapserver 5.0 beta 4 to render shapefile vectors (no raster > input) to a PNG graphic file. When I use Mapserver's CGI > interface to request a graphic map, the lines appear > anti-aliased (smooth, no jaggies) Great! But when I use > Mapserver's WMS interface, I get the same old rendering > Mapserver always gave (lines with jaggies). > > Note there was an email > (http://lists.umn.edu/cgi-bin/wa?A2=ind0703&L=mapserver-dev& > T=0&O=D&X=639F0B08FDD720FAC9&P=6714) saying "WSM right now > only advertise gd and gdal based drivers. See bug 455". > > > After some review of the images, it looks like my "DRIVER > AGG/PNG" produces a 24 bit png file via CGI, but an 8 bit > png file via WMS. When I try to do AGG/PNG24, I get > "General error message. OUTPUTFORMAT clause references > driver AGG/PNG24, but this driver isn't configured." from > Mapserver. I'll have to do some more digging... > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > ----- Original Message ----- > From: "Christopher Schmidt" > To: > Sent: Thursday, August 23, 2007 1:03 PM > Subject: Re: [UMN_MAPSERVER-USERS] AGG and WMS > > >> On Thu, Aug 23, 2007 at 12:32:41PM -0600, Brent Fraser > wrote: >> > Is AGG supposed to do anti-aliased output when Mapserver > is >> > used as a WMS server? >> >> I'm not sure what 'antialiased' output means -- perhaps > you mean 'alpha >> transparency', perhaps you mean antialiasing within the > images, perhaps >> you mean something else. Can you clarify? >> >> The answer to the first is, I believe, "no". WMS spec > only allows for >> 'transparency or no transparency', and MapServer does not > implement >> alpha transparency output in the WMS images. >> >> The answer to the second is "Sure" -- the images for >> http://boston.freemap.in/ are fetched from WMS (by > TileCache). >> >> Regards, >> -- >> Christopher Schmidt >> MetaCarta > > -- View this message in context: http://www.nabble.com/AGG-and-WMS-tf4319186.html#a12300990 Sent from the Mapserver - User mailing list archive at Nabble.com. From crschmidt at METACARTA.COM Thu Aug 23 13:05:26 2007 From: crschmidt at METACARTA.COM (Christopher Schmidt) Date: Thu, 23 Aug 2007 16:05:26 -0400 Subject: AGG and WMS In-Reply-To: <295d01c7e5be$fa11dc90$140002c0@shark> Message-ID: On Thu, Aug 23, 2007 at 01:51:19PM -0600, Brent Fraser wrote: > Christopher, > > Sorry for the terse question, here are some more > details... > > I'm using the AGG/PNG output driver (see RFC-32) in > Mapserver 5.0 beta 4 to render shapefile vectors (no raster > input) to a PNG graphic file. When I use Mapserver's CGI > interface to request a graphic map, the lines appear > anti-aliased (smooth, no jaggies) Great! But when I use > Mapserver's WMS interface, I get the same old rendering > Mapserver always gave (lines with jaggies). > What 'format' are you passing in? 'image/png' probably defaults to 8 bit png, unless your outputformat has mimetype "image/png" in it. > After some review of the images, it looks like my "DRIVER > AGG/PNG" produces a 24 bit png file via CGI, but an 8 bit > png file via WMS. When I try to do AGG/PNG24, I get > "General error message. OUTPUTFORMAT clause references > driver AGG/PNG24, but this driver isn't configured." from > Mapserver. I'll have to do some more digging... I don't think there is an AGG/PNG24 driver, so you don't need to do that. The important information here is: * What does your outputformat look like * What "format=" are you passing to WMS? Regards, -- Christopher Schmidt MetaCarta From assefa at DMSOLUTIONS.CA Thu Aug 23 13:18:24 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 23 Aug 2007 16:18:24 -0400 Subject: AGG and WMS In-Reply-To: <295d01c7e5be$fa11dc90$140002c0@shark> Message-ID: Brent, I think what happens is the following : when mapserver gets your wms request with FORMAT=png, it selects the the GD PNG 8 bit driver. I am not sure right now wms/outputformat should be handled so that this king of situation does not happen. A quick work around from what I can see would be - define an agg output format is your map file : OUTPUTFORMAT NAME "agg/png24" MIMETYPE "image/png; mode=24bit" DRIVER "AGG/PNG" EXTENSION "png" END - set you imagetyppe in the map file to be IMAGETYPE agg/png24 - when doing a wms request use FORMAT=image/png; mode=24bit This should ensure that your agg output format is used. Best Regards, Brent Fraser wrote: > Christopher, > > Sorry for the terse question, here are some more > details... > > I'm using the AGG/PNG output driver (see RFC-32) in > Mapserver 5.0 beta 4 to render shapefile vectors (no raster > input) to a PNG graphic file. When I use Mapserver's CGI > interface to request a graphic map, the lines appear > anti-aliased (smooth, no jaggies) Great! But when I use > Mapserver's WMS interface, I get the same old rendering > Mapserver always gave (lines with jaggies). > > Note there was an email > (http://lists.umn.edu/cgi-bin/wa?A2=ind0703&L=mapserver-dev& > T=0&O=D&X=639F0B08FDD720FAC9&P=6714) saying "WSM right now > only advertise gd and gdal based drivers. See bug 455". > > > After some review of the images, it looks like my "DRIVER > AGG/PNG" produces a 24 bit png file via CGI, but an 8 bit > png file via WMS. When I try to do AGG/PNG24, I get > "General error message. OUTPUTFORMAT clause references > driver AGG/PNG24, but this driver isn't configured." from > Mapserver. I'll have to do some more digging... > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > ----- Original Message ----- > From: "Christopher Schmidt" > To: > Sent: Thursday, August 23, 2007 1:03 PM > Subject: Re: [UMN_MAPSERVER-USERS] AGG and WMS > > >> On Thu, Aug 23, 2007 at 12:32:41PM -0600, Brent Fraser > wrote: >>> Is AGG supposed to do anti-aliased output when Mapserver > is >>> used as a WMS server? >> I'm not sure what 'antialiased' output means -- perhaps > you mean 'alpha >> transparency', perhaps you mean antialiasing within the > images, perhaps >> you mean something else. Can you clarify? >> >> The answer to the first is, I believe, "no". WMS spec > only allows for >> 'transparency or no transparency', and MapServer does not > implement >> alpha transparency output in the WMS images. >> >> The answer to the second is "Sure" -- the images for >> http://boston.freemap.in/ are fetched from WMS (by > TileCache). >> Regards, >> -- >> Christopher Schmidt >> MetaCarta > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From jeff at PROPERTYKEY.COM Thu Aug 23 13:18:58 2007 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Thu, 23 Aug 2007 15:18:58 -0500 Subject: GD vs AGG performance... In-Reply-To: <12300775.post@talk.nabble.com> Message-ID: John Cole wrote: > I'm just going by the tuning info reported by mapserver, but there is a > noticeable difference between them. > > Try: > MS4 (MS4W 2.2.2) total time: 0.250s > http://map.uai.com:28080/cgi-bin/mapserv.exe?map=/mapserver/tiger/tiger.map&mode=browse&layers=bound+hydro+landmark+roads+roads_anno+city+hydro_anno+landmark_anno+landmark_point > > MS5 AGG (MS4W 2.2.6) total time: 1.266s > http://map.uai.com:28080/cgi-bin2/mapserv.exe?map=/mapserver/tiger/tiger5.map&mode=browse&layers=bound+hydro+landmark+roads+roads_anno+city+hydro_anno+landmark_anno+landmark_point > > MS5 GD (MS4W 2.2.6) total time: 0.250s > http://map.uai.com:28080/cgi-bin2/mapserv.exe?map=/mapserver/tiger/tiger5gd.map&mode=browse&layers=bound+hydro+landmark+roads+roads_anno+city+hydro_anno+landmark_anno+landmark_point > > Except for GD->AGG (and the debug difference between 4 and 5), the map files > are identical. > > (BTW, these are using the same html template, so if you navigate, you won't > be using the same MS/renderer combo). > > Is there something else that needs to be done for AGG to perform similar to > GD? The AGG image is about 4x the file size as the GD image, which isn't that surprising with all that antialiasing going on. More of a symptom than anything, but not everyone is going to enjoy downloading 400k images, so it's something to think about if you're going to use this in a production site. I think the others are right, it's the shear number of features you're drawing (it takes 0.5 sec just for your street layer) -- lot of smoothing = more time + bigger PNG. -- Jeff Hoffmann Head Plate Spinner PropertyKey.com From andreas.albarello at TERRITORIUMONLINE.COM Thu Aug 23 13:21:04 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Thu, 23 Aug 2007 22:21:04 +0200 Subject: GD vs AGG performance... In-Reply-To: <12300775.post@talk.nabble.com> Message-ID: If I'm not mistaken, you actually don't use linework antialiasing with GD, while AGG uses antialiasing all the time and there's no way to turn it off (and antialiasing is the main reason why the AGG output looks so great). Now, antialiasing ain't cheap. My guess is, if you'd enable antialiasing with GD, you'd get the same rendering times you are getting with AGG, but AGG would still be looking much better. Bottom line is, I'd say, if you're fine with the output you are getting with GD and have never thought about enabling antialiasing, than there's no reason to switch to AGG, IMHO, as that would mean getting antialiasing all the time, whether you like it or not. Best regards, Andreas Albarello John Cole wrote: > I'm just going by the tuning info reported by mapserver, but there is a > noticeable difference between them. > > Try: > MS4 (MS4W 2.2.2) total time: 0.250s > http://map.uai.com:28080/cgi-bin/mapserv.exe?map=/mapserver/tiger/tiger.map&mode=browse&layers=bound+hydro+landmark+roads+roads_anno+city+hydro_anno+landmark_anno+landmark_point > > MS5 AGG (MS4W 2.2.6) total time: 1.266s > http://map.uai.com:28080/cgi-bin2/mapserv.exe?map=/mapserver/tiger/tiger5.map&mode=browse&layers=bound+hydro+landmark+roads+roads_anno+city+hydro_anno+landmark_anno+landmark_point > > MS5 GD (MS4W 2.2.6) total time: 0.250s > http://map.uai.com:28080/cgi-bin2/mapserv.exe?map=/mapserver/tiger/tiger5gd.map&mode=browse&layers=bound+hydro+landmark+roads+roads_anno+city+hydro_anno+landmark_anno+landmark_point > > Except for GD->AGG (and the debug difference between 4 and 5), the map files > are identical. > > (BTW, these are using the same html template, so if you navigate, you won't > be using the same MS/renderer combo). > > Is there something else that needs to be done for AGG to perform similar to > GD? > > John > > > > Rob McCulley-2 wrote: >> That hasn't been my experience at all. I wrote a quick little python >> script that used mapscript to produce the same five maps twice, once >> with agg and once with gd. The mapfiles were identical, except for the >> outputformat section, and the times were within 2% of each other. >> >> Rob McCulley >> >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >> Behalf Of John Cole >> Sent: Thursday, August 23, 2007 12:56 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] GD vs AGG performance... >> >> Perhaps it's too early to discuss performance differences, but I was >> curious >> if the current AGG rendering speed is what to expect. >> >> Looking at a few of my mapfiles, AGG is aprox 5 times slower than GD on >> MS5 >> (with MS4 GD just a hair faster than MS5 GD). >> >> The maps look great, but after spending a lot of time getting maps below >> 100ms, it's hurts to see them over a second again :-( Just want my cake >> and >> get to eat it too :-) >> >> Thanks, >> >> John >> -- >> View this message in context: >> http://www.nabble.com/GD-vs-AGG-performance...-tf4319265.html#a12299688 >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> > -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From bfraser at GEOANALYTIC.COM Thu Aug 23 13:22:05 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 23 Aug 2007 14:22:05 -0600 Subject: AGG and WMS Message-ID: Christopher, Info inserted below... Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Christopher Schmidt" To: "Brent Fraser" Cc: Sent: Thursday, August 23, 2007 2:05 PM Subject: Re: [UMN_MAPSERVER-USERS] AGG and WMS > > I don't think there is an AGG/PNG24 driver, so you don't need to do > that. The important information here is: > * What does your outputformat look like OUTPUTFORMAT NAME 'AGG/PNG' DRIVER AGG/PNG IMAGEMODE RGB EXTENSION "png" END > * What "format=" are you passing to WMS? FORMAT=image/png And you are right, adding MIMETYPE "image/png" created a 24-bit png file via WMS. Thanks! > > Regards, > -- > Christopher Schmidt > MetaCarta From efren.serra.ctr at METNET.NAVY.MIL Thu Aug 23 13:24:37 2007 From: efren.serra.ctr at METNET.NAVY.MIL (Efren Serra) Date: Thu, 23 Aug 2007 13:24:37 -0700 Subject: POLYGONS AT INTERNATIONAL DATE TIME BOUNDARY In-Reply-To: <46CDD380.10505@hostgis.com> Message-ID: Gregor, Do you know which projection handle the date line properly? -----Original Message----- From: Gregor Mosheh [mailto:gregor at hostgis.com] Sent: Thursday, August 23, 2007 11:36 AM To: Efren Serra Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] POLYGONS AT INTERNATIONAL DATE TIME BOUNDARY Efren Serra wrote: > I was wondering how mapserver handles polygons at the international > date-time boundary. Any help would be Appreciated. Coincidentally, this was asked only last week, and has pertinence to a project I'm working on. The answer is: "It doesn't." The entire date line issue is that +179 isn't the same as -181, so either: a) Pick a projection that does handle the date line properly. b) Pre-mangle your data to get rid of the dateline wrap. Paste the Aleutian Islands onto the far east, copy the eastern edge of Russia over to the far west from Alaska, so that your data doesn't end at 180/-180 -- Gregor Mosheh / Greg Allensworth 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 szekerest at GMAIL.COM Thu Aug 23 13:26:44 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 23 Aug 2007 22:26:44 +0200 Subject: HTML Legends + mapscript (Updated) In-Reply-To: <33fad6880708231218jae8848bs993d95777bbcdedc@mail.gmail.com> Message-ID: Paul, I recall I had a discussion about an issue like this a few months ago in this list which can be found here: http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg11539.html I'm not totally sure whether the statements out there apply to this version exactly but this feature have been working that time pretty well. Best regards, Tamas 2007/8/23, Paul james : > I created a template.html like that : > > [leg_class_html opt_flag=15] > > > [leg_class_name]
    > > [/leg_class_html] > > And in my mapfile: > > > LEGEND > > STATUS ON > > KEYSIZE 18 12 > > # LABEL object > > LABEL > > TYPE BITMAP > > SIZE MEDIUM > > COLOR 0 0 89 > > END > > TEMPLATE "template.html" > > END > > Now, In code(c#) I?m trying to use processLegendTemplate function without > sucess ... The function always return empty string ... > I think I?m not using it correctly : > > > > string[] _x = new string[1]; > string [] _y = new string[1]; > string _html = mapaObj.processLegendTemplate(_x, _y, 1); > > obs.: _html always return empty... > > > > Any ideas? I?m using Mapserver 5.0 beta 3 ! > > []?s > > > > > On 8/23/07, Paul james wrote: > > > > Hello guys ! > > I need change my legend system (mapaObj.Legend()) drawwith HTML legend ... > > > I?d like to known if someone could help me with that... Any samples using > mapscript? > > I?m completely lost on this task! > > > > Any help ? > > > > Thx > > > > > > From bfraser at GEOANALYTIC.COM Thu Aug 23 13:28:12 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 23 Aug 2007 14:28:12 -0600 Subject: AGG and WMS Message-ID: Assefa, Stranglely, adding MIMETYPE "image/png" or MIMETYPE "image/png; mode=24bit" gives a 24 bit file, anti-aliased, but with grey instead of a white background. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Yewondwossen Assefa" To: "Brent Fraser" Cc: Sent: Thursday, August 23, 2007 2:18 PM Subject: Re: [UMN_MAPSERVER-USERS] AGG and WMS > Brent, > > I think what happens is the following : when mapserver gets your wms > request with FORMAT=png, it selects the the GD PNG 8 bit driver. I am > not sure right now wms/outputformat should be handled so that this king > of situation does not happen. > A quick work around from what I can see would be > > - define an agg output format is your map file : > OUTPUTFORMAT > NAME "agg/png24" > MIMETYPE "image/png; mode=24bit" > DRIVER "AGG/PNG" > EXTENSION "png" > END > > - set you imagetyppe in the map file to be IMAGETYPE agg/png24 > > - when doing a wms request use FORMAT=image/png; mode=24bit > > This should ensure that your agg output format is used. > > Best Regards, > > > Brent Fraser wrote: > > Christopher, > > > > Sorry for the terse question, here are some more > > details... > > > > I'm using the AGG/PNG output driver (see RFC-32) in > > Mapserver 5.0 beta 4 to render shapefile vectors (no raster > > input) to a PNG graphic file. When I use Mapserver's CGI > > interface to request a graphic map, the lines appear > > anti-aliased (smooth, no jaggies) Great! But when I use > > Mapserver's WMS interface, I get the same old rendering > > Mapserver always gave (lines with jaggies). > > > > Note there was an email > > (http://lists.umn.edu/cgi-bin/wa?A2=ind0703&L=mapserver-dev& > > T=0&O=D&X=639F0B08FDD720FAC9&P=6714) saying "WSM right now > > only advertise gd and gdal based drivers. See bug 455". > > > > > > After some review of the images, it looks like my "DRIVER > > AGG/PNG" produces a 24 bit png file via CGI, but an 8 bit > > png file via WMS. When I try to do AGG/PNG24, I get > > "General error message. OUTPUTFORMAT clause references > > driver AGG/PNG24, but this driver isn't configured." from > > Mapserver. I'll have to do some more digging... > > > > Brent Fraser > > GeoAnalytic Inc. > > Calgary, Alberta > > > > ----- Original Message ----- > > From: "Christopher Schmidt" > > To: > > Sent: Thursday, August 23, 2007 1:03 PM > > Subject: Re: [UMN_MAPSERVER-USERS] AGG and WMS > > > > > >> On Thu, Aug 23, 2007 at 12:32:41PM -0600, Brent Fraser > > wrote: > >>> Is AGG supposed to do anti-aliased output when Mapserver > > is > >>> used as a WMS server? > >> I'm not sure what 'antialiased' output means -- perhaps > > you mean 'alpha > >> transparency', perhaps you mean antialiasing within the > > images, perhaps > >> you mean something else. Can you clarify? > >> > >> The answer to the first is, I believe, "no". WMS spec > > only allows for > >> 'transparency or no transparency', and MapServer does not > > implement > >> alpha transparency output in the WMS images. > >> > >> The answer to the second is "Sure" -- the images for > >> http://boston.freemap.in/ are fetched from WMS (by > > TileCache). > >> Regards, > >> -- > >> Christopher Schmidt > >> MetaCarta > > > > > -- > ---------------------------------------------------------- ------ > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------- ------ > From gregor at HOSTGIS.COM Thu Aug 23 13:45:46 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 23 Aug 2007 14:45:46 -0600 Subject: POLYGONS AT INTERNATIONAL DATE TIME BOUNDARY In-Reply-To: <00d701c7e5c3$a37c6350$a469640a@ade.metnet.navy.mil> Message-ID: Efren Serra wrote: > Do you know which projection handle the date line properly? Offhand I do not. I'm actually a sysadmin, not a cartographer, I focus more on the software and operating system than projections. :) Would UTM zone 60 work? From there, the dateline would be at x=50000 and points east thereof would be, well, east as usual. Zone 60 should be EPSG codes 26760 (NAD27) and 26960 (NAD83/WGS94). -- Gregor Mosheh / Greg Allensworth 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 bfraser at GEOANALYTIC.COM Thu Aug 23 13:44:08 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 23 Aug 2007 14:44:08 -0600 Subject: AGG and WMS Message-ID: Looks like the grey background is a problem with Internet Explorer 6 and png files. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Brent Fraser" To: Sent: Thursday, August 23, 2007 2:28 PM Subject: Re: [UMN_MAPSERVER-USERS] AGG and WMS > Assefa, > > Stranglely, adding > MIMETYPE "image/png" > or > MIMETYPE "image/png; mode=24bit" > gives a 24 bit file, anti-aliased, but with grey instead of > a white background. > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > ----- Original Message ----- > From: "Yewondwossen Assefa" > To: "Brent Fraser" > Cc: > Sent: Thursday, August 23, 2007 2:18 PM > Subject: Re: [UMN_MAPSERVER-USERS] AGG and WMS > > > > Brent, > > > > I think what happens is the following : when mapserver > gets your wms > > request with FORMAT=png, it selects the the GD PNG 8 bit > driver. I am > > not sure right now wms/outputformat should be handled so > that this king > > of situation does not happen. > > A quick work around from what I can see would be > > > > - define an agg output format is your map file : > > OUTPUTFORMAT > > NAME "agg/png24" > > MIMETYPE "image/png; mode=24bit" > > DRIVER "AGG/PNG" > > EXTENSION "png" > > END > > > > - set you imagetyppe in the map file to be IMAGETYPE > agg/png24 > > > > - when doing a wms request use FORMAT=image/png; > mode=24bit > > > > This should ensure that your agg output format is used. > > > > Best Regards, > > > > > > Brent Fraser wrote: > > > Christopher, > > > > > > Sorry for the terse question, here are some more > > > details... > > > > > > I'm using the AGG/PNG output driver (see RFC-32) in > > > Mapserver 5.0 beta 4 to render shapefile vectors (no > raster > > > input) to a PNG graphic file. When I use Mapserver's > CGI > > > interface to request a graphic map, the lines appear > > > anti-aliased (smooth, no jaggies) Great! But when I use > > > Mapserver's WMS interface, I get the same old rendering > > > Mapserver always gave (lines with jaggies). > > > > > > Note there was an email > > > > (http://lists.umn.edu/cgi-bin/wa?A2=ind0703&L=mapserver-dev& > > > T=0&O=D&X=639F0B08FDD720FAC9&P=6714) saying "WSM right > now > > > only advertise gd and gdal based drivers. See bug 455". > > > > > > > > > After some review of the images, it looks like my > "DRIVER > > > AGG/PNG" produces a 24 bit png file via CGI, but an 8 > bit > > > png file via WMS. When I try to do AGG/PNG24, I get > > > "General error message. OUTPUTFORMAT clause references > > > driver AGG/PNG24, but this driver isn't configured." > from > > > Mapserver. I'll have to do some more digging... > > > > > > Brent Fraser > > > GeoAnalytic Inc. > > > Calgary, Alberta > > > > > > ----- Original Message ----- > > > From: "Christopher Schmidt" > > > To: > > > Sent: Thursday, August 23, 2007 1:03 PM > > > Subject: Re: [UMN_MAPSERVER-USERS] AGG and WMS > > > > > > > > >> On Thu, Aug 23, 2007 at 12:32:41PM -0600, Brent Fraser > > > wrote: > > >>> Is AGG supposed to do anti-aliased output when > Mapserver > > > is > > >>> used as a WMS server? > > >> I'm not sure what 'antialiased' output means -- perhaps > > > you mean 'alpha > > >> transparency', perhaps you mean antialiasing within the > > > images, perhaps > > >> you mean something else. Can you clarify? > > >> > > >> The answer to the first is, I believe, "no". WMS spec > > > only allows for > > >> 'transparency or no transparency', and MapServer does > not > > > implement > > >> alpha transparency output in the WMS images. > > >> > > >> The answer to the second is "Sure" -- the images for > > >> http://boston.freemap.in/ are fetched from WMS (by > > > TileCache). > > >> Regards, > > >> -- > > >> Christopher Schmidt > > >> MetaCarta > > > > > > > > > -- > > ---------------------------------------------------------- > ------ > > Assefa Yewondwossen > > Software Analyst > > > > Email: assefa at dmsolutions.ca > > http://www.dmsolutions.ca/ > > > > Phone: (613) 565-5056 (ext 14) > > Fax: (613) 565-0925 > > ---------------------------------------------------------- > ------ > > From pauljame at GMAIL.COM Thu Aug 23 13:48:13 2007 From: pauljame at GMAIL.COM (Paul james) Date: Thu, 23 Aug 2007 17:48:13 -0300 Subject: HTML Legends + mapscript (Updated) In-Reply-To: Message-ID: Thank you Tamas.... But, I?ve already read that discussion before and unfortunately I don?t known how It can help-me to make processLegendTemplate function works... If anyone have a sample using it, I will be very happy ! I?m stuck in that about 2 days .... I think my template html is fine... The only problem I think is that function that always return a empty string :( ... Ty very much again! On 8/23/07, Tamas Szekeres wrote: > > Paul, > > I recall I had a discussion about an issue like this a few months ago > in this list which can be found here: > http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg11539.html > > I'm not totally sure whether the statements out there apply to this > version exactly but this feature have been working that time pretty > well. > > > Best regards, > > Tamas > > > 2007/8/23, Paul james : > > I created a template.html like that : > > > > [leg_class_html opt_flag=15] > > > > > > [leg_class_name]
    > > > > [/leg_class_html] > > > > And in my mapfile: > > > > > > LEGEND > > > > STATUS ON > > > > KEYSIZE 18 12 > > > > # LABEL object > > > > LABEL > > > > TYPE BITMAP > > > > SIZE MEDIUM > > > > COLOR 0 0 89 > > > > END > > > > TEMPLATE "template.html" > > > > END > > > > Now, In code(c#) I?m trying to use processLegendTemplate function > without > > sucess ... The function always return empty string ... > > I think I?m not using it correctly : > > > > > > > > string[] _x = new string[1]; > > string [] _y = new string[1]; > > string _html = mapaObj.processLegendTemplate(_x, _y, 1); > > > > obs.: _html always return empty... > > > > > > > > Any ideas? I?m using Mapserver 5.0 beta 3 ! > > > > []?s > > > > > > > > > > On 8/23/07, Paul james wrote: > > > > > > Hello guys ! > > > I need change my legend system (mapaObj.Legend()) drawwith HTML legend > ... > > > > > I?d like to known if someone could help me with that... Any samples > using > > mapscript? > > > I?m completely lost on this task! > > > > > > Any help ? > > > > > > Thx > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.cole at UAI.COM Thu Aug 23 14:03:37 2007 From: john.cole at UAI.COM (John Cole) Date: Thu, 23 Aug 2007 14:03:37 -0700 Subject: GD vs AGG performance... In-Reply-To: <46CDEBB2.2090501@propertykey.com> Message-ID: Jeff Hoffmann wrote: > > The AGG image is about 4x the file size as the GD image, which isn't > that surprising with all that antialiasing going on. More of a symptom > than anything, but not everyone is going to enjoy downloading 400k > images, so it's something to think about if you're going to use this in > a production site. > Your right there, I switched it to JPG and it's 70KB. Previously, PNG sharpness over JPG made the small file size difference moot, but with all of these smoothed features, the better compression of JPG seems to be better. Jeff Hoffmann wrote: > > I think the others are right, it's the shear number of features you're > drawing (it takes 0.5 sec just for your street layer) -- lot of > smoothing = more time + bigger PNG. > When you say 'shear number', I'm thinking this is a small dataset :-) Though the size of the output image shouldn't effect render time as much as compression time (and JPG is just slightly slower than PNG)/ The crux of my question is; does AGG performance degrade as much as I'm seeing, or are there other factors in MS itself that are causing this (eg. debug flags still on, known optimizations not yet performed, etc.) From what I'm hearing, it's a new feature, and performance hasn't really been addressed. Till then, I'll try and restrict it's use to TileCache backends or smaller datasets. But dang, it looks soooo good. John -- View this message in context: http://www.nabble.com/GD-vs-AGG-performance...-tf4319265.html#a12302079 Sent from the Mapserver - User mailing list archive at Nabble.com. From paulanne.winn at WACORP.NET Thu Aug 23 15:13:53 2007 From: paulanne.winn at WACORP.NET (Mevima Winn) Date: Thu, 23 Aug 2007 15:13:53 -0700 Subject: Exporting Shapefiles w/ DBF Message-ID: I've been working on getting a circular feature so I can search by a radius around a point, and I believe I have it down - except that the shapefiles I'm exporting don't include DBF files, which from my research is quite important for MapServer do be able to read them. I'm not sure whether I'm even following the right path, so maybe someone can offer a suggestion. This is a skeleton of the code I'm using (C#): layerObj lyr=new layerObj(map); //defining the layer... shapeObj shp=new shapeObj((int)MS_SHAPE_TYPE.MS_SHAPE_POLYGON); //adding points to the line and lines to the shape... shapefileObj shpfile=new shapefileObj(path+"New.shp",5); shpfile.add(shp); shpfile.Dispose(); lyr.data="New.shp"; This works great, I can even open the shapefile it creates in Global Mapper, until it gets to that last line... then it hangs and can't seem to load the data. After looking into the matter, it seems that I need a DBF file to go with the SHP - it's creating SHP and SHX but nothing else. However, I can't figure out how to go about this. Now, there's probably even a better way to get a circular feature than creating an entirely new shapefile, writing a bounding box to it, and reading the file as a circle layer - and I would like to know if there is! - but even so, creating a shapefile that I can read from is probably going to be vital in the future. I'd be grateful for any input! ____________ Mevima Winn Wireless Applications Corp. 111 108th Ave. NE. Suite 160 Bellevue, WA 98004 *paulanne.winn at wacorp.net* No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.484 / Virus Database: 269.12.2/967 - Release Date: 8/22/2007 6:51 PM From rhow at I3.COM Thu Aug 23 19:09:55 2007 From: rhow at I3.COM (Randy How) Date: Thu, 23 Aug 2007 20:09:55 -0600 Subject: Transparent Pixmap Symbol Message-ID: I'm attempting to set the background transparency for a symbol that I've created, but with no success. My symbol definition SYMBOL NAME "logo" TYPE PIXMAP IMAGE "h2o_logos/logo.GIF" TRANSPARENT 0 END According to the reference setting a color index in the GIF sets the transparency (i.e. TRANSPARENT 0). Color index is 0 is black, and the output map layer symbol is not transparent! http://mapserver.gis.umn.edu/docs/reference/symbology/referencemanual-all-pa ges I've looked over this page and it only discusses PNG files. I can't get any of my PNG file variations to work either. http://mapserver.gis.umn.edu/docs/howto/cartosymbols Any help would be greatly appreciated, Randy -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at GMAIL.COM Thu Aug 23 23:08:00 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Fri, 24 Aug 2007 08:08:00 +0200 Subject: GD vs AGG performance... In-Reply-To: <46CDEBB2.2090501@propertykey.com> Message-ID: > > The AGG image is about 4x the file size as the GD image, which isn't > that surprising with all that antialiasing going on. More of a symptom > than anything, but not everyone is going to enjoy downloading 400k > images, so it's something to think about if you're going to use this in > a production site. you can also set some options in your OUTPUTFORMAT to enable color quantization in the final image, for example OUTPUTFORMAT NAME 'AGGJ' DRIVER AGG/PNG IMAGEMODE RGB FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikesaunt at GMAIL.COM Fri Aug 24 03:03:41 2007 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Fri, 24 Aug 2007 11:03:41 +0100 Subject: MapServer 5.0 Beta5 (via MS4W)- msQueryByPoint doesn't seem to work Message-ID: Hi Howard (et all) Apologies for the delay in coming back to you - holiday season! This query issue is still apparent with Beta 5 of MS4W - it will take me a little time to setup a map file and test data for this. Question is - is there test data available that I can use to highlight the problem below back to MapServer developers ? Many thanks Mike On 13/08/07, Howard Butler wrote: > > The process is described here: http://trac.osgeo.org/mapserver/wiki > On Aug 13, 2007, at 10:52 AM, Mike Saunt wrote: > > > Thanks Howard > > > > How / where do I log bugs...? > > > > Cheers > > Mike > > > > On 13/08/07, Howard Butler wrote:Mike, > > > > We'll need bugs filed for both of these issues. The more condensed > > detail you can provide, the better. I have no idea on that threading > > one... > > > > Howard > > > > On Aug 13, 2007, at 5:09 AM, Mike Saunt wrote: > > > > > Hi Howard > > > > > > All standard flat files (actually cache from ArcSDE using OGR due > > > to the previous fastcgi / arcsde stability issues) > > > > > > They are all either MapInfo or Shape files > > > > > > Would you like a sample .map file with data? > > > > > > Also FYI - the beta's had an issue with a 'global_thread_end' which > > > although the map would be generated in around 1 second the process > > > stayed resident for 8 seconds - I'm on xp 64bit dev machine but it > > > happened on a 32 bit xp machine also. I guess this was related to > > > the libmysql.dll (I'm using the MS4W dll's from the cgi-bin > > > directory but loaded into IIS) so I replaced with another version > > > off the web. Do you think this would be related? > > > > > > I could get it rebuilt from Source but oftern try to avoid this as > > > the MS4W has done me proud before! > > > > > > Could you let me know your thoughts? > > > > > > Cheers > > > Mike > > > > > > On 13/08/07, Howard Butler wrote:Mike, > > > > > > Which driver are you using? IIRC, you had used the ArcSDE driver > > > some in the past. If you still are, could you please file a ticket > > > with some detailed examples? > > > > > > Howard > > > > > > On Aug 12, 2007, at 4:26 PM, Mike Saunt wrote: > > > > > > > Hi All > > > > > > > > Not sure if this should really go to the MapServer Development > > list > > > > - although I'm not a member of that list anyway. > > > > > > > > Has anyone else had an issue with nquery / msQueryByPoint / > > > > msQueryByRect with Beta3 of MapServer 5.0? > > > > > > > > This query against a single layers and we have others that Query > > > > against multiple in one go. > > > > http://localhost/mapserver5.0/mapserv.exe?map=D:/Maps/BaNES/ > > > > _MapServerConfig/BaNES.map&mode=nquery&mapsize=987 > > > > +386&img.x=511&img.y=87&imgext=328010.483766+145811.5 > > +403519.516234 > > > > > > > > > +175295.25&layers=CivicAmenitySites&map_CivicAmenitySites_tolerance=10 > > > > &map_CivicAmenitySites_template=_MapServerTemplates/ > > > > CivicAmenitySites_fields.xml > > > > > > > > All map rendering is working great (love the AGG renderer!) but > > > > none of our spatial query (NQUERY etc) strings are working. I > > > > can't see anything from the Migration Guide as to what could be > > > > wrong... > > > > > > > > Any help appreciated or a pointer to the MapServer dev list... > > > > > > > > Cheers > > > > Mike > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lged_morris at HOTMAIL.COM Fri Aug 24 06:39:05 2007 From: lged_morris at HOTMAIL.COM (=?iso-8859-1?B?TGFycy1H9nJhbiBFZGhvbG0=?=) Date: Fri, 24 Aug 2007 15:39:05 +0200 Subject: Mapserver 4.10.3 HTML legend Mapservere cgi Message-ID: Html legends doesn?t work in Mapserver 4.10.3. It worked in Mapserver 4.8 and it works in Mapserver 5 beta 5. Lars-G?ran Edholm _________________________________________________________________ Luspank? Tj?na pengar p? auktion http://tradera.msn.se/ From lged_morris at HOTMAIL.COM Fri Aug 24 06:43:40 2007 From: lged_morris at HOTMAIL.COM (=?iso-8859-1?B?TGFycy1H9nJhbiBFZGhvbG0=?=) Date: Fri, 24 Aug 2007 15:43:40 +0200 Subject: Mapserver 5 beta 5 cgi, 1 threads didn't exit Message-ID: In Mapserver 5 beta 5 cgi there still is problem with threads when I open a WMS layer or a OVF layer. The map shows up Ok but the browser keep updating until the message: Error in my_thread_global_end(): 1 threads didn't exit is written at the end of the page. Lars-G?ran Edholm _________________________________________________________________ Student och ressugen ? h?r finns b?sta priserna http://www.ticket.se/sv/student/studentflyg.html From maluche at INF.UFSC.BR Fri Aug 24 06:59:07 2007 From: maluche at INF.UFSC.BR (Bruno Maluche) Date: Fri, 24 Aug 2007 10:59:07 -0300 Subject: HTML Legends + mapscript (Bug??) Message-ID: Paul... I tried to make HTML Legends works with Mapscript C# (5.0 beta 5) without success as well... Always getting a empty string from processLegendTemplate ... Maybe It is a bug? Someone could confirm that or point a solution? Ty ----- Original Message ----- From: Paul james To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, August 23, 2007 5:48 PM Subject: Re: [UMN_MAPSERVER-USERS] HTML Legends + mapscript (Updated) Thank you Tamas.... But, I?ve already read that discussion before and unfortunately I don?t known how It can help-me to make processLegendTemplate function works... If anyone have a sample using it, I will be very happy ! I?m stuck in that about 2 days .... I think my template html is fine... The only problem I think is that function that always return a empty string :( ... Ty very much again! On 8/23/07, Tamas Szekeres wrote: Paul, I recall I had a discussion about an issue like this a few months ago in this list which can be found here: http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg11539.html I'm not totally sure whether the statements out there apply to this version exactly but this feature have been working that time pretty well. Best regards, Tamas 2007/8/23, Paul james : > I created a template.html like that : > > [leg_class_html opt_flag=15] > > > [leg_class_name]
    > > [/leg_class_html] > > And in my mapfile: > > > LEGEND > > STATUS ON > > KEYSIZE 18 12 > > # LABEL object > > LABEL > > TYPE BITMAP > > SIZE MEDIUM > > COLOR 0 0 89 > > END > > TEMPLATE "template.html" > > END > > Now, In code(c#) I?m trying to use processLegendTemplate function without > sucess ... The function always return empty string ... > I think I?m not using it correctly : > > > > string[] _x = new string[1]; > string [] _y = new string[1]; > string _html = mapaObj.processLegendTemplate(_x, _y, 1); > > obs.: _html always return empty... > > > > Any ideas? I?m using Mapserver 5.0 beta 3 ! > > []?s > > > > > On 8/23/07, Paul james < pauljame at gmail.com> wrote: > > > > Hello guys ! > > I need change my legend system (mapaObj.Legend()) drawwith HTML legend ... > > > I?d like to known if someone could help me with that... Any samples using > mapscript? > > I?m completely lost on this task! > > > > Any help ? > > > > Thx > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From listario at GMAIL.COM Fri Aug 24 07:51:57 2007 From: listario at GMAIL.COM (J. Parapar) Date: Fri, 24 Aug 2007 16:51:57 +0200 Subject: Mapserver 4.10.3 HTML legend Mapservere cgi In-Reply-To: Message-ID: Lars-G?ran: MapServer 4.10 and some of the betas of MapServer 5 have some bugs related to HTML legends. See http://trac.osgeo.org/mapserver/ticket/1946, http://trac.osgeo.org/mapserver/ticket/2228 and http://trac.osgeo.org/mapserver/ticket/2243. These are fixed now but have not been backported to MapServer 4.10.3, I think. 2007/8/24, Lars-G?ran Edholm : > Html legends doesn?t work in Mapserver 4.10.3. > It worked in Mapserver 4.8 and it works in Mapserver 5 beta 5. > > Lars-G?ran Edholm > > _________________________________________________________________ > Luspank? Tj?na pengar p? auktion http://tradera.msn.se/ > From friendvn2000 at YAHOO.COM Fri Aug 24 08:05:20 2007 From: friendvn2000 at YAHOO.COM (Jedi Knight) Date: Fri, 24 Aug 2007 10:05:20 -0500 Subject: Fatal error when query Message-ID: Help me. PLEASE From David.Fawcett at STATE.MN.US Fri Aug 24 08:16:44 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 24 Aug 2007 10:16:44 -0500 Subject: Fatal error when query In-Reply-To: A Message-ID: SURE -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jedi Knight Sent: Friday, August 24, 2007 10:05 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Fatal error when query Help me. PLEASE From matt at CGFBROKERAGE.COM Fri Aug 24 10:07:00 2007 From: matt at CGFBROKERAGE.COM (Matt S.) Date: Fri, 24 Aug 2007 12:07:00 -0500 Subject: HELP PLEASE!!! Selecting multiple polygons Message-ID: Hey all, had posted this before but trying it with a different method and thought i'd repost What I am trying to do is this...I have a map of Saskatchewan(saskmap.map in the attachements) that has a couple differnent layers. What i need to be able to do is have the user be able to select an area on the map and it zooms in and when it zooms in then the map displays the second layer as well (this i can do easily enough with minextent). Then i want the user to be able to select multiple polygons (from the ruralmun layer) and then also make a selection from a pull down menu (just a radio select) and then submit their query...and that will bring up results on the website from our database. The part I am having problem is is creating a map that can have multiple selections. I have looked at http://maps.dnr.state.mn.us/cgi-bin/mapserv48? map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer= county&mode=nquery&searchmap=true and this is pretty much what I need to do and understand that I need to create an imagemap in order to do it...just not really sure how to tie it all together. I have attached what I have so far which is my mapfile (saskmap.map), my template file (test.html) as well as a header and footer file (top.html and bottom.html respectively) but these are merely ones from the mapserver test suite and i know they are not right just trying to figure out how to put this all together....any help would be appreciated thank -------------- next part -------------- # # Start of map file # # Map of Saskatchewan Crop Districts and Rural Municipalities # NAME DEMO STATUS ON SIZE 400 400 EXTENT 114000 5427477 788000 6067338 UNITS METERS SHAPEPATH "C:\ms4w\apps\ms101\data" IMAGECOLOR 255 255 255 TRANSPARENT FALSE FONTSET ../fonts/fonts.list # # Start of web interface definition # WEB #MINSCALE 1000000 #MAXSCALE 8000000 TEMPLATE test.html HEADER top.html FOOTER bottom.html # # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root # of the drive where the .MAP file resides. # IMAGEPATH "C:\ms4w\tmp\ms_tmp\" IMAGEURL "C:\ms4w\tmp\ms_tmp\" # LOG "/tmp/gmap.log" METADATA END END QUERYMAP STATUS ON STYLE SELECTED COLOR 255 255 0 END LEGEND STATUS ON LABEL TYPE TRUETYPE FONT arial-bold COLOR 0 0 0 SIZE 10 ANTIALIAS TRUE OFFSET 0 -2 END END SCALEBAR STATUS ON STYLE 1 INTERVALS 4 SIZE 200 5 COLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS meters LABEL COLOR 0 0 0 SIZE small END END REFERENCE STATUS ON IMAGE mapserv.gif SIZE 150 150 EXTENT 114000 5427477 788000 6067338 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of layer definitions # LAYER NAME cropdis GROUP cropdis DATA cropdis STATUS DEFAULT TYPE POLYGON MAXSCALE 8000000 MINSCALE 2000000 CLASS NAME "Crop Districts" COLOR 232 123 123 OUTLINECOLOR 0 0 0 END PROJECTION "init=epsg:26913" END END LAYER NAME ruralmun GROUP ruralmun DATA ruralmun STATUS DEFAULT TYPE POLYGON MAXSCALE 2000000 MINSCALE 1000000 CLASS NAME "Rural Municipalities" COLOR 255 255 255 OUTLINECOLOR 0 0 0 END PROJECTION "init=epsg:26913" END END END # Map File -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From ezenaide at GMAIL.COM Fri Aug 24 10:42:33 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Fri, 24 Aug 2007 14:42:33 -0300 Subject: Odd query result Message-ID: hi all, i'm experiencing something odd here. i have a soil layer with some IDs. its dbf is something like: leg_solos PVA PA RL SX RL RY RR ... when i do the query, using ROSA i click in a RL polygon. it returns: SX RR RL PA PA PVA PVA RY RY any other polygon returns same results - only changes the one in query and, sometimes, PAs appear above. like: SX RR PA PA SX PVA PVA RY RY (when querying SX polygon) here a visual example: http://www.uep.cnps.embrapa.br/imagens/queryexemplo.jpg my map file (its really big, so i'm just sending relevant layer and classes): LAYER NAME Solos_AL METADATA "DESCRIPTION" "Solos" "RESULT_FIELDS" "Leg_solos" "RESULT_HEADERS" "C?digo" END LABELITEM "Leg_solos" LABELCACHE ON TYPE POLYGON STATUS OFF DATA Solos_AL CLASSITEM "Leg_solos" TOLERANCE 0 TOLERANCEUNITS pixels CLASS NAME "PA" EXPRESSION "PA" STYLE COLOR 253 241 240 OUTLINECOLOR 0 0 0 END LABEL FONT sans TYPE TRUETYPE PARTIALS TRUE SIZE 7 OUTLINECOLOR 255 255 255 END TEMPLATE "templates/template_solos.html" END CLASS NAME "PVA" EXPRESSION "PVA" STYLE COLOR 249 210 205 OUTLINECOLOR 0 0 0 END LABEL FONT sans TYPE TRUETYPE PARTIALS TRUE SIZE 7 OUTLINECOLOR 255 255 255 END TEMPLATE "templates/template_solos.html" END CLASS NAME "RL" EXPRESSION "RL" STYLE COLOR 150 149 149 OUTLINECOLOR 0 0 0 END LABEL FONT sans TYPE TRUETYPE PARTIALS TRUE SIZE 7 OUTLINECOLOR 255 255 255 END TEMPLATE "templates/template_solos.html" END CLASS NAME "RY" EXPRESSION "RY" STYLE COLOR 238 235 220 OUTLINECOLOR 0 0 0 END LABEL FONT sans TYPE TRUETYPE PARTIALS TRUE SIZE 7 OUTLINECOLOR 255 255 255 END TEMPLATE "templates/template_solos.html" END CLASS NAME "RR" EXPRESSION "RR" STYLE COLOR 207 206 206 OUTLINECOLOR 0 0 0 END LABEL FONT sans TYPE TRUETYPE PARTIALS TRUE SIZE 7 OUTLINECOLOR 255 255 255 END TEMPLATE "templates/template_solos.html" END CLASS NAME "SX" EXPRESSION "SX" STYLE COLOR 181 214 174 OUTLINECOLOR 0 0 0 END LABEL FONT sans TYPE TRUETYPE PARTIALS TRUE SIZE 7 OUTLINECOLOR 255 255 255 END TEMPLATE "templates/template_solos.html" END END # layer Solos_final_dd ######################## any thoughts? thanks :) -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Fri Aug 24 11:41:36 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 24 Aug 2007 20:41:36 +0200 Subject: HTML Legends + mapscript (Updated) In-Reply-To: <33fad6880708231348r4c49a805o1c948c53e2b764a9@mail.gmail.com> Message-ID: Paul, I've added a new C# example for testing processLegendTemplate in the SVN trunk. When doing the tests I've found the following issues and created a ticket per issue: http://trac.osgeo.org/mapserver/ticket/2261 http://trac.osgeo.org/mapserver/ticket/2262 I've fixed #2261 immediately but I leave #2262 for some other folks. I'm not sure whether #2261 apply to your problem but the sample is working for me with the current SVN trunk. Best regards, Tamas 2007/8/23, Paul james : > Thank you Tamas.... > But, I?ve already read that discussion before and unfortunately I don?t > known how It can help-me to make processLegendTemplate function works... > > If anyone have a sample using it, I will be very happy ! I?m stuck in that > about 2 days .... > I think my template html is fine... The only problem I think is that > function that always return a empty string :( ... > > Ty very much again! > > > > > On 8/23/07, Tamas Szekeres wrote: > > Paul, > > > > I recall I had a discussion about an issue like this a few months ago > > in this list which can be found here: > > > http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg11539.html > > > > I'm not totally sure whether the statements out there apply to this > > version exactly but this feature have been working that time pretty > > well. > > > > > > Best regards, > > > > Tamas > > > > > > 2007/8/23, Paul james : > > > I created a template.html like that : > > > > > > [leg_class_html opt_flag=15] > > > > > > > > > [leg_class_name]
    > > > > > > [/leg_class_html] > > > > > > And in my mapfile: > > > > > > > > > LEGEND > > > > > > STATUS ON > > > > > > KEYSIZE 18 12 > > > > > > # LABEL object > > > > > > LABEL > > > > > > TYPE BITMAP > > > > > > SIZE MEDIUM > > > > > > COLOR 0 0 89 > > > > > > END > > > > > > TEMPLATE "template.html" > > > > > > END > > > > > > Now, In code(c#) I?m trying to use processLegendTemplate function > without > > > sucess ... The function always return empty string ... > > > I think I?m not using it correctly : > > > > > > > > > > > > string[] _x = new string[1]; > > > string [] _y = new string[1]; > > > string _html = mapaObj.processLegendTemplate(_x, _y, 1); > > > > > > obs.: _html always return empty... > > > > > > > > > > > > Any ideas? I?m using Mapserver 5.0 beta 3 ! > > > > > > []?s > > > > > > > > > > > > > > > On 8/23/07, Paul james < pauljame at gmail.com> wrote: > > > > > > > > Hello guys ! > > > > I need change my legend system (mapaObj.Legend()) drawwith HTML legend > ... > > > > > > > I?d like to known if someone could help me with that... Any samples > using > > > mapscript? > > > > I?m completely lost on this task! > > > > > > > > Any help ? > > > > > > > > Thx > > > > > > > > > > > > > > > > > > From rodrigo.andrade at DIGITRO.COM.BR Fri Aug 24 12:04:33 2007 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Fri, 24 Aug 2007 16:04:33 -0300 Subject: Fatal error when query In-Reply-To: Message-ID: NO! From dmorissette at MAPGEARS.COM Fri Aug 24 13:06:32 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 24 Aug 2007 16:06:32 -0400 Subject: Mapserver 4.10.3 HTML legend Mapservere cgi In-Reply-To: <4ac992660708240751l61bece42nade525def3ab780@mail.gmail.com> Message-ID: J. Parapar wrote: > Lars-G?ran: > > MapServer 4.10 and some of the betas of MapServer 5 have some bugs > related to HTML legends. See > http://trac.osgeo.org/mapserver/ticket/1946, > http://trac.osgeo.org/mapserver/ticket/2228 and > http://trac.osgeo.org/mapserver/ticket/2243. These are fixed now but > have not been backported to MapServer 4.10.3, I think. > That's correct, and Tamas found and fixed another one today: http://trac.osgeo.org/mapserver/ticket/2261 Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at MAPGEARS.COM Fri Aug 24 13:10:36 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 24 Aug 2007 16:10:36 -0400 Subject: Mapserver 5 beta 5 cgi, 1 threads didn't exit In-Reply-To: Message-ID: Lars-G?ran Edholm wrote: > In Mapserver 5 beta 5 cgi there still is problem with threads when I > open a WMS layer or a OVF layer. > The map shows up Ok but the browser keep updating until the message: > Error in my_thread_global_end(): 1 threads didn't exit > is written at the end of the page. > This is becoming a FAQ... It seems that PHP 5.2.2 and 5.2.3 have a broken libmysql.dll, see: http://bugzilla.maptools.org/show_bug.cgi?id=1730 ... and using the libmysql.dll from MS4W 2.2.3 can solve the issue. Daniel -- Daniel Morissette http://www.mapgears.com/ From wef1 at CEC.WUSTL.EDU Fri Aug 24 13:30:05 2007 From: wef1 at CEC.WUSTL.EDU (Edward Fialkowski) Date: Fri, 24 Aug 2007 15:30:05 -0500 Subject: undefined reference to png Message-ID: Hi List, I have run into an error with ogr on another program FeatureServer, which started a catastrophic string of events. So, basically gdal broke and I'm working on reinstalling it. I had a few difficult errors to get by, but now I'm stuck at: g++ ogrinfo.o -o .libs/ogrinfo /usr/local/src/gdal-1.4.2/.libs/libgdal.so -L/usr/local/lib -L/usr/local/src/netcdf-3.6.2 -L/usr/local/src/netcdf-3.6.2/lib -lrt -L/usr/lib64 -lcurl -L/usr/kerberos/lib -L/usr/kerberos/lib64 -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -Wl,--rpath -Wl,/usr/lib64 /usr/local/src/gdal-1.4.2/.libs/libgdal.so: undefined reference to `png_error' /usr/local/src/gdal-1.4.2/.libs/libgdal.so: undefined reference to `png_get_interlace_type' /usr/local/src/gdal-1.4.2/.libs/libgdal.so: undefined reference to `png_sig_cmp' etc. etc. lots of undefined reference... /usr/local/src/gdal-1.4.2/.libs/libgdal.so: undefined reference to `png_get_PLTE at PNG12_0' /usr/local/src/gdal-1.4.2/.libs/libgdal.so: undefined reference to `png_get_tRNS at PNG12_0' collect2: ld returned 1 exit status make[1]: *** [ogrinfo] Error 1 make[1]: Leaving directory `/usr/local/src/gdal-1.4.2/ogr' make: *** [ogr-apps] Error 2 my configuration options are: ./configure CFLAGS=-fPIC CPPFLAGS=-fPIC CXXFLAGS=-fPIC --with-netcdf=/usr/local/src/netcdf-3.6.2 --with-png=/usr/local/lib I'm guessing the libpng library is not getting linked, but I'm just not sure what to do about it. Anyone have any ideas? Thanks! -Ed -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Fri Aug 24 13:52:43 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 24 Aug 2007 16:52:43 -0400 Subject: Mapserver 5 beta 5 cgi, 1 threads didn't exit In-Reply-To: <46CF3B3C.8040301@mapgears.com> Message-ID: Just as a note ms4w for mapserver beta 5 and mapserver-4.10.3 were updated this morning and contain a new libmysql.dll coming from ms4w2.2.2 Daniel Morissette wrote: > Lars-G?ran Edholm wrote: >> In Mapserver 5 beta 5 cgi there still is problem with threads when I >> open a WMS layer or a OVF layer. >> The map shows up Ok but the browser keep updating until the message: >> Error in my_thread_global_end(): 1 threads didn't exit >> is written at the end of the page. >> > > This is becoming a FAQ... > > It seems that PHP 5.2.2 and 5.2.3 have a broken libmysql.dll, see: > http://bugzilla.maptools.org/show_bug.cgi?id=1730 > > ... and using the libmysql.dll from MS4W 2.2.3 can solve the issue. > > Daniel -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Steve.Lime at DNR.STATE.MN.US Fri Aug 24 15:07:57 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 24 Aug 2007 17:07:57 -0500 Subject: HELP PLEASE!!! Selecting multiple polygons Message-ID: Hi Matt: What type of an application framework are you using? I mean, are you using straight CGI, MapScript, ka-map/OpenLayers or ??? How you proceed depends on that bit of info. The demo you reference on the DNR site is well suited for a simple select mutliple polygons function IF you're not doing much (or any?) panning and zooming. I've not tried combining the imagemap with pan/zoom. It's probably possible but may be cumbersome to implement. A better solution is probably to use one of the DHTML mapping frameworks like pmapper, chameleon, dbox, or one of the many others. Then you could use a bit of AJAX to retrieve polygon info behind the scenes (and even show them graphically). You could manage the selection set (probably just a hash of IDs) like I did with the imagemap example and submit the ID list along with your other query information. I can explain how this would work using dbox, but I'm not familiar enough with the others to speak in any detail. Steve >>> "Matt S." 08/24/07 12:07 PM >>> Hey all, had posted this before but trying it with a different method and thought i'd repost What I am trying to do is this...I have a map of Saskatchewan(saskmap.map in the attachements) that has a couple differnent layers. What i need to be able to do is have the user be able to select an area on the map and it zooms in and when it zooms in then the map displays the second layer as well (this i can do easily enough with minextent). Then i want the user to be able to select multiple polygons (from the ruralmun layer) and then also make a selection from a pull down menu (just a radio select) and then submit their query...and that will bring up results on the website from our database. The part I am having problem is is creating a map that can have multiple selections. I have looked at http://maps.dnr.state.mn.us/cgi-bin/mapserv48? map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer= county&mode=nquery&searchmap=true and this is pretty much what I need to do and understand that I need to create an imagemap in order to do it...just not really sure how to tie it all together. I have attached what I have so far which is my mapfile (saskmap.map), my template file (test.html) as well as a header and footer file (top.html and bottom.html respectively) but these are merely ones from the mapserver test suite and i know they are not right just trying to figure out how to put this all together....any help would be appreciated thank From Steve.Lime at DNR.STATE.MN.US Fri Aug 24 15:13:48 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 24 Aug 2007 17:13:48 -0500 Subject: MapServer 5.0 Beta5 (via MS4W)- msQueryByPoint doesn't seem to work Message-ID: Hi Mike: It's generally easiest if you can file a bug and attach a zip file with the necessary files to reproduce the bug. I prefer a self contained example rather than trying to grab data from the demo and hoping it was exactly the same as you were using. Steve >>> Mike Saunt 08/24/07 5:03 AM >>> Hi Howard (et all) Apologies for the delay in coming back to you - holiday season! This query issue is still apparent with Beta 5 of MS4W - it will take me a little time to setup a map file and test data for this. Question is - is there test data available that I can use to highlight the problem below back to MapServer developers ? Many thanks Mike On 13/08/07, Howard Butler wrote: > > The process is described here: http://trac.osgeo.org/mapserver/wiki > On Aug 13, 2007, at 10:52 AM, Mike Saunt wrote: > > > Thanks Howard > > > > How / where do I log bugs...? > > > > Cheers > > Mike > > > > On 13/08/07, Howard Butler wrote:Mike, > > > > We'll need bugs filed for both of these issues. The more condensed > > detail you can provide, the better. I have no idea on that threading > > one... > > > > Howard > > > > On Aug 13, 2007, at 5:09 AM, Mike Saunt wrote: > > > > > Hi Howard > > > > > > All standard flat files (actually cache from ArcSDE using OGR due > > > to the previous fastcgi / arcsde stability issues) > > > > > > They are all either MapInfo or Shape files > > > > > > Would you like a sample .map file with data? > > > > > > Also FYI - the beta's had an issue with a 'global_thread_end' which > > > although the map would be generated in around 1 second the process > > > stayed resident for 8 seconds - I'm on xp 64bit dev machine but it > > > happened on a 32 bit xp machine also. I guess this was related to > > > the libmysql.dll (I'm using the MS4W dll's from the cgi-bin > > > directory but loaded into IIS) so I replaced with another version > > > off the web. Do you think this would be related? > > > > > > I could get it rebuilt from Source but oftern try to avoid this as > > > the MS4W has done me proud before! > > > > > > Could you let me know your thoughts? > > > > > > Cheers > > > Mike > > > > > > On 13/08/07, Howard Butler wrote:Mike, > > > > > > Which driver are you using? IIRC, you had used the ArcSDE driver > > > some in the past. If you still are, could you please file a ticket > > > with some detailed examples? > > > > > > Howard > > > > > > On Aug 12, 2007, at 4:26 PM, Mike Saunt wrote: > > > > > > > Hi All > > > > > > > > Not sure if this should really go to the MapServer Development > > list > > > > - although I'm not a member of that list anyway. > > > > > > > > Has anyone else had an issue with nquery / msQueryByPoint / > > > > msQueryByRect with Beta3 of MapServer 5.0? > > > > > > > > This query against a single layers and we have others that Query > > > > against multiple in one go. > > > > http://localhost/mapserver5.0/mapserv.exe?map=D:/Maps/BaNES/ > > > > _MapServerConfig/BaNES.map&mode=nquery&mapsize=987 > > > > +386&img.x=511&img.y=87&imgext=328010.483766+145811.5 > > +403519.516234 > > > > > > > > > +175295.25&layers=CivicAmenitySites&map_CivicAmenitySites_tolerance=10 > > > > &map_CivicAmenitySites_template=_MapServerTemplates/ > > > > CivicAmenitySites_fields.xml > > > > > > > > All map rendering is working great (love the AGG renderer!) but > > > > none of our spatial query (NQUERY etc) strings are working. I > > > > can't see anything from the Migration Guide as to what could be > > > > wrong... > > > > > > > > Any help appreciated or a pointer to the MapServer dev list... > > > > > > > > Cheers > > > > Mike > > > > > > > > > > > > From Steve.Lime at DNR.STATE.MN.US Fri Aug 24 15:35:19 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 24 Aug 2007 17:35:19 -0500 Subject: Transparent Pixmap Symbol Message-ID: Randy: I'm thinking we have a documentation issue here. I'm not sure that the TRANSPARENT option is even supported anymore. Typically MapServer respects the transparency of the image itself, so you need to create a transparent GIF for that to work. Give that a shot and I'll check the source (and update the docs) to make sure. Steve >>> Randy How 08/23/07 9:09 PM >>> I'm attempting to set the background transparency for a symbol that I've created, but with no success. My symbol definition SYMBOL NAME "logo" TYPE PIXMAP IMAGE "h2o_logos/logo.GIF" TRANSPARENT 0 END According to the reference setting a color index in the GIF sets the transparency (i.e. TRANSPARENT 0). Color index is 0 is black, and the output map layer symbol is not transparent! http://mapserver.gis.umn.edu/docs/reference/symbology/referencemanual-all-pa ges I've looked over this page and it only discusses PNG files. I can't get any of my PNG file variations to work either. http://mapserver.gis.umn.edu/docs/howto/cartosymbols Any help would be greatly appreciated, Randy From rhow at I3.COM Fri Aug 24 16:10:48 2007 From: rhow at I3.COM (Randy How) Date: Fri, 24 Aug 2007 17:10:48 -0600 Subject: Transparent Pixmap Symbol In-Reply-To: <46CF16D70200008F0000E6C3@co5.dnr.state.mn.us> Message-ID: Thanks for the response Steve, I've tried all sorts of variations for PNG and GIF, and it hasn't been successful. Any other options for "logo water-marking" maps from MapServer? I was excited about this approach, but I can't get a transparency for the fill. Thanks again, Randy -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Friday, August 24, 2007 4:35 PM To: rhow at I3.COM; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Transparent Pixmap Symbol Randy: I'm thinking we have a documentation issue here. I'm not sure that the TRANSPARENT option is even supported anymore. Typically MapServer respects the transparency of the image itself, so you need to create a transparent GIF for that to work. Give that a shot and I'll check the source (and update the docs) to make sure. Steve >>> Randy How 08/23/07 9:09 PM >>> I'm attempting to set the background transparency for a symbol that I've created, but with no success. My symbol definition SYMBOL NAME "logo" TYPE PIXMAP IMAGE "h2o_logos/logo.GIF" TRANSPARENT 0 END According to the reference setting a color index in the GIF sets the transparency (i.e. TRANSPARENT 0). Color index is 0 is black, and the output map layer symbol is not transparent! http://mapserver.gis.umn.edu/docs/reference/symbology/referencemanual-all-pa ges I've looked over this page and it only discusses PNG files. I can't get any of my PNG file variations to work either. http://mapserver.gis.umn.edu/docs/howto/cartosymbols Any help would be greatly appreciated, Randy From lged_morris at HOTMAIL.COM Sat Aug 25 02:09:06 2007 From: lged_morris at HOTMAIL.COM (=?iso-8859-1?B?TGFycy1H9nJhbiBFZGhvbG0=?=) Date: Sat, 25 Aug 2007 11:09:06 +0200 Subject: Mapserver 5 beta 5 windows cgi thread problem solved Message-ID: Hi! I just tested the new download from Maptools that came with an older libmysql.dll. The problem with wms and ovf layers and threads: "Error in my_thread_global_end(): 1 threads didn't exit" is now solved. Thank You. Lars-G?ran Edholm _________________________________________________________________ Fr?scha middagstips p? MSN http://arla.msn.se/ From thomas.bonfort at GMAIL.COM Sat Aug 25 03:01:06 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Sat, 25 Aug 2007 12:01:06 +0200 Subject: Transparent Pixmap Symbol In-Reply-To: Message-ID: I've checked with what withe the svn version and transparency is working with gd and agg for pixmap (with a png image, haven't tried gif) and truetype polygons fills. the layer definition is simply ... OPACITY 50 .... CLASS NAME "States/Provinces1" STYLE SYMBOL 'truetype-symbol' #or SYMBOL 'pixmap-symbol' COLOR 0 0 0 END ... for png pixmaps, no need for the TRANSPARENT keyword thomas On 8/25/07, Randy How wrote: > > Thanks for the response Steve, > > I've tried all sorts of variations for PNG and GIF, and it hasn't been > successful. > > Any other options for "logo water-marking" maps from MapServer? I was > excited about this approach, but I can't get a transparency for the fill. > > Thanks again, > Randy > > -----Original Message----- > From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us ] > Sent: Friday, August 24, 2007 4:35 PM > To: rhow at I3.COM; MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Transparent Pixmap Symbol > > Randy: I'm thinking we have a documentation issue here. I'm not sure that > the TRANSPARENT option is even supported anymore. Typically MapServer > respects the transparency of the image itself, so you need to create a > transparent GIF for that to work. Give that a shot and I'll check the > source > (and update the docs) to make sure. > > Steve > > > >>> Randy How 08/23/07 9:09 PM >>> > I'm attempting to set the background transparency for a symbol that I've > created, but with no success. > > My symbol definition > > SYMBOL > NAME "logo" > TYPE PIXMAP > IMAGE "h2o_logos/logo.GIF" > TRANSPARENT 0 > END > > According to the reference setting a color index in the GIF sets the > transparency (i.e. TRANSPARENT 0). Color index is 0 is black, and the > output map layer symbol is not transparent! > > http://mapserver.gis.umn.edu/docs/reference/symbology/referencemanual-all-pa > ges > > I've looked over this page and it only discusses PNG files. I can't get > any > of my PNG file variations to work either. > http://mapserver.gis.umn.edu/docs/howto/cartosymbols > > Any help would be greatly appreciated, > Randy > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From richardorama at YAHOO.COM Sat Aug 25 02:58:35 2007 From: richardorama at YAHOO.COM (Richard Orama) Date: Sat, 25 Aug 2007 04:58:35 -0500 Subject: Getting started with Mapserver Message-ID: I am brand new to Mapserver. I am using Windows XP, ArcGIS 9.2 for mapping. I have just downloaded and installed Mapserver 2.2.4 and IMSEMU, but I have failed to take off. How can I publish my maps? I do not seem to get a way forward using the Mapserver documentations. Is there any simple step by step instructions? Any help much appreciated. From tara_athan at ALT2IS.COM Sat Aug 25 15:21:52 2007 From: tara_athan at ALT2IS.COM (Tara Athan) Date: Sat, 25 Aug 2007 15:21:52 -0700 Subject: first-time install, error on make Message-ID: I am trying to install mapserver (for the first time) on hosted web account (bluehost). I am following the instructions in http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix/#required-external-libraries I have the required libraries as libpng, freetype and zlib where already installed on the server. I installed gd and gdal in my $HOME/local directory. I modified the configuration command until I got something that ran without errors: ./configure --with-ogr=$HOME/local/bin/gdal-config --with-gdal=$HOME/local/bin/gdal-config --with-curl --with-gd=$HOME/lib/gd-2.0.35 --with-jpeg --with-freetype --with-png \ Then I put in the command make and I get this output: g++ -O2 -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DUSE_EPPL -DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -I/home/alttwois/lib/gd-2.0.35 -I/home /alttwois/local/include shp2img.o -L. -lmapserver -L/home/alttwois/lib/gd-2.0.35/.libs -lgd -ljpeg -lfreetype -lpng -L/lib64 -lz -lpdf -ljpeg -lfreetype -lpng -L/lib64 -lz -ljpeg -L/home/alttwois/local/lib -lgdal -ljpeg -ltiff -lpng -lpq -L/usr/lib64 -lpq -lz -lm -lrt -ldl -L/usr/lib64 -lcurl -L/usr/kerberos/lib -L/usr/kerbe ros/lib64 -lidn -lssl -lcrypto -ldl -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lc -L/lib64 -lz -lm -lstdc++ -o shp2img /usr/bin/ld: warning: libXpm.so.4, needed by /home/alttwois/lib/gd-2.0.35/.libs/libgd.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libX11.so.6, needed by /home/alttwois/lib/gd-2.0.35/.libs/libgd.so, not found (try using -rpath or -rpath-link) /home/alttwois/lib/gd-2.0.35/.libs/libgd.so: undefined reference to `XpmReadFileToXpmImage' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 Is this caused by the options in the configuration statement that I took out or something else? Is there documentation for the configuration statement somewhere? Thanks for your help, Tara From gregor at HOSTGIS.COM Sat Aug 25 16:01:14 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sat, 25 Aug 2007 17:01:14 -0600 Subject: first-time install, error on make In-Reply-To: <46D0AB80.5040204@alt2is.com> Message-ID: > /usr/bin/ld: warning: libXpm.so.4, needed by > /home/alttwois/lib/gd-2.0.35/.libs/libgd.so, not found (try using -rpath > or -rpath-link) > /usr/bin/ld: warning: libX11.so.6, needed by > /home/alttwois/lib/gd-2.0.35/.libs/libgd.so, not found (try using -rpath > or -rpath-link) > /home/alttwois/lib/gd-2.0.35/.libs/libgd.so: undefined reference to > `XpmReadFileToXpmImage' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 There ya go -- your GD was compiled with Xpm support, but the Xpm library isn't found. Try this: ldconfig -p | grep -i xpm That'll show whether Xpm is installed. Alternative: If you compiled GD yourself, and my memory serves, you can give --without-x to have it skip X-Window stuff. You won't miss it. :) -- Gregor Mosheh / Greg Allensworth 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 listario at GMAIL.COM Sat Aug 25 16:52:45 2007 From: listario at GMAIL.COM (J. Parapar) Date: Sun, 26 Aug 2007 01:52:45 +0200 Subject: Behaviour of DWithin and Beyond filters Message-ID: Hi all: In the migration to MapServer 5.0 I have observed a change in the behaviour of the DWithin filter. In previous version we were using this filter to select the features whose distance from a given object were less than a given value. Now the selection by this filter seems to be the features which are completely contained within a given buffer around the object as explained in ticket http://trac.osgeo.org/mapserver/ticket/2105 (comment 05/27/07). In this ticket is also commented that the Beyond filter should select the features which are completely outside of the buffer, but in the tests I have made it seems that it selects the features which are not completely contained within the buffer. Am I right in my appreciation? Should the behaviour of the Beyond filter be changed? Thanks. Best regards, Jorge From tara_athan at ALT2IS.COM Sat Aug 25 20:50:49 2007 From: tara_athan at ALT2IS.COM (Tara Athan) Date: Sat, 25 Aug 2007 20:50:49 -0700 Subject: first time mapserver install, error on empty query Message-ID: An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Sat Aug 25 22:32:18 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sat, 25 Aug 2007 23:32:18 -0600 Subject: first time mapserver install, error on empty query In-Reply-To: <46D0F899.2060200@alt2is.com> Message-ID: Tara Athan wrote: > When I put the URL > http://www.alt2is.com/cgi-bin/mapserv? > into my browser I get 500 Server Error Yup. A code 500 is the general purpose "it crashed!" message. In this case... > ./mapserv -v > ./mapserv: error while loading shared libraries: libgdal.so.1: cannot > open shared object file: No such file or directory You had mentioned that your installation was under your home directory. Not surprisingly, your ISP and their webserver desn't have your home directory listed as a place to look for library files. Presuming that you're using a Unix-like system... Option 1: Install GDAL, Freetype, GD, etc. into the standard places, eg. /usr and /usr/local Don't forget to run "ldconfig" after installing libraries; it helps. Option 1a: Add you installation directories to /etc/ld.so.conf and re-run "ldconfig" Option 2: A htaccess file setting LD_LIBRARY_PATH Create a .htaccess file or add to your webserver configuration this line: # add your directory to the runtime linker's search path SetEnv LD_LIBRARY_PATH "/home/yourusername/libs" Option 3: a wrapper script Rename mapserv to something else, e.g. mapserv.real Write a simple shell script to set the linker path and then exec mapserv. I think it'd go something like this: #!/bin/sh export LD_LIBRARY_PATH="/home/me/testing/lib" exec /path/to/mapserv.real I hope that helps. If not, please get back to us with specifics about your degree of sysadmin access on the server. For instance, can you install GDAL, et al into their usual places? Do you have permission to edit the ld.so.conf, or the webserver config? -- Gregor Mosheh / Greg Allensworth 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 temiz at DEPREM.GOV.TR Sun Aug 26 15:55:27 2007 From: temiz at DEPREM.GOV.TR (temiz) Date: Sun, 26 Aug 2007 18:55:27 -0400 Subject: Django with python-mapscript ? Message-ID: hello I want to use python mapscript. I am also interested in using Django. I am wondering if they are suitable to each other. I will appreciate if you share your experiences regards -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From tara_athan at ALT2IS.COM Sun Aug 26 10:18:32 2007 From: tara_athan at ALT2IS.COM (Tara Athan) Date: Sun, 26 Aug 2007 10:18:32 -0700 Subject: [work] Re: [UMN_MAPSERVER-USERS] first time mapserver install, error on empty query In-Reply-To: <46D11062.3040807@hostgis.com> Message-ID: An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Sun Aug 26 11:14:04 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sun, 26 Aug 2007 12:14:04 -0600 Subject: first time mapserver install, error on empty query In-Reply-To: <46D1B5E8.8060504@alt2is.com> Message-ID: Tara Athan wrote: > I have limited access to the webserver. Good to know. > Don't Options 2 and 3 depend on there being a file libgdal.so.1 > somewhere? I cannot find any such file. If you sucessfuly did a make and make install as you describe, there should be a directory /home/alttwois/local/lib and inside it should be among other things libgdal.so If not, then backtrack and tell us how your GDAL/OGR build went. If so, then /home/alttwois/local/lib is the library path. Create a shell script and stick it into cgi-bin: #!/bin/sh export LD_LIBRARY_PATH="/home/alttwois/local/lib" exec /path/to/cgi-bin/mapserv That wrapper should do the trick, for both command line and CGI. -- Gregor Mosheh / Greg Allensworth 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 sgillies at FRII.COM Sun Aug 26 11:20:11 2007 From: sgillies at FRII.COM (Sean Gillies) Date: Sun, 26 Aug 2007 12:20:11 -0600 Subject: Django with python-mapscript ? In-Reply-To: Message-ID: temiz wrote: > hello > > I want to use python mapscript. > > I am also interested in using Django. > > I am wondering if they are suitable to each other. > > I will appreciate if you share your experiences > > > regards > Google "geo django". Cheers, Sean From tara_athan at ALT2IS.COM Sun Aug 26 12:36:10 2007 From: tara_athan at ALT2IS.COM (Tara Athan) Date: Sun, 26 Aug 2007 12:36:10 -0700 Subject: first time mapserver install, error on empty query In-Reply-To: <46D1C2EC.1050407@hostgis.com> Message-ID: Thanks for your patience... I found libgdal.so.1 in /home/alttwois/local/lib I created the script named mapserv as follows #!/bin/sh export LD_LIBRARY_PATH="/home/alttwois/local/lib" exec /home/alttwois/public_html/cgi-bin/mapserv.real On running ./mapserver -v, I get the same error message as before /home/alttwois/public_html/cgi-bin/mapserv.real: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory Tara Gregor Mosheh wrote: > Tara Athan wrote: >> I have limited access to the webserver. > > Good to know. > > > >> Don't Options 2 and 3 depend on there being a file libgdal.so.1 >> somewhere? I cannot find any such file. > > If you sucessfuly did a make and make install as you describe, there > should be a directory /home/alttwois/local/lib and inside it should be > among other things libgdal.so > > If not, then backtrack and tell us how your GDAL/OGR build went. > > If so, then /home/alttwois/local/lib is the library path. Create a > shell script and stick it into cgi-bin: > #!/bin/sh > export LD_LIBRARY_PATH="/home/alttwois/local/lib" > exec /path/to/cgi-bin/mapserv > That wrapper should do the trick, for both command line and CGI. > -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species tara_athan at alt2is.com 707-485-1198 PO Box 415 Redwood Valley, CA 95470 From gregor at HOSTGIS.COM Sun Aug 26 16:47:45 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sun, 26 Aug 2007 17:47:45 -0600 Subject: first time mapserver install, error on empty query In-Reply-To: <46D1D62A.1020300@alt2is.com> Message-ID: Tara Athan wrote: > I found libgdal.so.1 in /home/alttwois/local/lib > On running ./mapserver -v, I get the same error message as before > /home/alttwois/public_html/cgi-bin/mapserv.real: error while loading > shared libraries: libgdal.so.1: cannot open shared object file: No such > file or directory Well that's bizarre. How about this? LD_LIBRARY_PATH="/home/alttwois/local/lib" /home/alttwois/public_html/cgi-bin/mapserv.real -v That's all one line. That sets the linker path on the command line, then runs the command. -- Gregor Mosheh / Greg Allensworth 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 lged_morris at HOTMAIL.COM Sun Aug 26 23:46:25 2007 From: lged_morris at HOTMAIL.COM (=?iso-8859-1?B?TGFycy1H9nJhbiBFZGhvbG0=?=) Date: Mon, 27 Aug 2007 08:46:25 +0200 Subject: Mapserver 5 beta 5 inline feature Message-ID: Hi again! I have problems with inline features in Mapserver 5 . If I have points in the Mapfile everything is fine. Mapfile: layer metadata WMS_TITLE "Rita punkt" end group "Ritade objekt" classitem "NAMN" labelcache on name "pktrit" postlabelcache true status on type point FEATURE POINTS 1550909 6711309 END TEXT "Test" End class color 255 0 0 name "Punkt" size 12 symbol 2 label antialias true color 255 0 0 font "arial" minfeaturesize auto offset 10 0 position cr size 12 type truetype end end end The problem is to create an new feature. Create an new feature: ......&map_pktrit=FEATURE+POINTS+1551231+6712571+END+TEXT+'A+test+point'+END&.... doesn?t work And how to retrive the point to an hidden filed in the template: doe not work Lars-G?ran Edholm _________________________________________________________________ Student och ressugen ? h?r finns b?sta priserna http://www.ticket.se/sv/student/studentflyg.html From Dejan.Gambin at PULA.HR Mon Aug 27 02:00:49 2007 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Mon, 27 Aug 2007 11:00:49 +0200 Subject: OGR join between shapefile and DBF Message-ID: Hi, I have read Frank's post on this subject. I am interested if there is a way to use relative paths in defining joins between shapefile and DBF. In my case, I have many layers using this join and suddenly they stopped working. Since now they worked in following way: ... CONNECTIONTYPE OGR CONNECTION "/var/www/demodata" //path to folder where the shapefile resides DATA "SELECT a.ID, b.NAME FROM a LEFT JOIN b ON a.ID=b.ID" //b is table in b.dbf ... But it stopped working after I changed the mapserver and p.mapper version. Now the only way it works is the following: ... CONNECTIONTYPE OGR CONNECTION "/var/www/demodata/a.shp" //path to the shapefile DATA "SELECT a.ID, b.NAME FROM a LEFT JOIN '/var/www/demodata/b.dbf'.b ON a.ID=b.ID" ... Why is that? Is there a way I don't have to enter all the full paths here? Thanks very much regards, dejan From eric.c2c at GMAIL.COM Mon Aug 27 02:24:45 2007 From: eric.c2c at GMAIL.COM (Eric Lemoine) Date: Mon, 27 Aug 2007 11:24:45 +0200 Subject: number of layers in mapfile Message-ID: Hi I've observed that mapserv image rendering performance decreases significantly with the number of layers. I currently have 500+ layers in my mapfile and I see a huge performance hit if I decrease this number to around 10. Is this expected? I use mapserver 4.10. Thanks, Sorry if this question has already been answered. -- Eric From woodbri at SWOODBRIDGE.COM Mon Aug 27 06:39:55 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 27 Aug 2007 09:39:55 -0400 Subject: number of layers in mapfile In-Reply-To: <5ec103de0708270224kc21725ay54364acb418380f4@mail.gmail.com> Message-ID: Eric Lemoine wrote: > Hi > > I've observed that mapserv image rendering performance decreases > significantly with the number of layers. I currently have 500+ layers > in my mapfile and I see a huge performance hit if I decrease this > number to around 10. Is this expected? I use mapserver 4.10. > > Thanks, > > Sorry if this question has already been answered. > > -- > Eric Eric, I think Ed McNierney did some performance tests on this issue (you might be able to find it in the archives). Anyway the up shot is that you have to parse and allocate objects for all the layers, symbols, styles, etc that are defined in all the layers and this takes time. There is also a performance hit if you are using projection definitions because parsing all the projection init definitions is very time consuming. Frank W. might have more info on this. I think some people have made stripped down projection files with only the projections that they are using, to speed this up for production use. -Steve W From warmerdam at POBOX.COM Mon Aug 27 07:12:20 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 27 Aug 2007 10:12:20 -0400 Subject: OGR join between shapefile and DBF In-Reply-To: Message-ID: Gambin Dejan wrote: > Hi, > > I have read Frank's post on this subject. I am interested if there is a > way to use relative paths in defining joins between shapefile and DBF. > > In my case, I have many layers using this join and suddenly they stopped > working. Since now they worked in following way: > ... > CONNECTIONTYPE OGR > CONNECTION "/var/www/demodata" //path to folder where the shapefile > resides > DATA "SELECT a.ID, b.NAME FROM a LEFT JOIN b ON a.ID=b.ID" //b is table > in b.dbf > ... > > But it stopped working after I changed the mapserver and p.mapper > version. Now the only way it works is the following: > > ... > CONNECTIONTYPE OGR > CONNECTION "/var/www/demodata/a.shp" //path to the shapefile > DATA "SELECT a.ID, b.NAME FROM a LEFT JOIN '/var/www/demodata/b.dbf'.b > ON a.ID=b.ID" > ... > > Why is that? Is there a way I don't have to enter all the full paths > here? Dejan, It is not obvious to me why the behavior changed, but it is presumably a change in the OGR Shapefile driver, not MapServer. Perhaps you could switch to private email and let me know what "ogrinfo /var/www/demodata" reports. The key is whether the "b" layer representing the dbf shows up in this list or not. 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.Fawcett at STATE.MN.US Mon Aug 27 07:19:27 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 27 Aug 2007 09:19:27 -0500 Subject: number of layers in mapfile In-Reply-To: A<46D2D42B.8010904@swoodbridge.com> Message-ID: I think that the summary is that conclusion is that a map file with 500 layers is going to be significantly more expensive than a map file with five layers. Even with all of the possible optimization tricks. If you really need to have a map file with 500 layers (e.g. you need all 500 layers to draw one map), you will likely have to deal with slower performance. The bigger question to me is, do you really need 500 layers?! I can't imagine a lot of applications that would. There are people who have lot's of possible data layers, but really only need a dozen or so at a time. They are using the INCLUDE option or a C pre-processor to custom build map files on the fly. I would first try to figure out if you really needed such a giant map file. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Woodbridge Sent: Monday, August 27, 2007 8:40 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] number of layers in mapfile Eric Lemoine wrote: > Hi > > I've observed that mapserv image rendering performance decreases > significantly with the number of layers. I currently have 500+ layers > in my mapfile and I see a huge performance hit if I decrease this > number to around 10. Is this expected? I use mapserver 4.10. > > Thanks, > > Sorry if this question has already been answered. > > -- > Eric Eric, I think Ed McNierney did some performance tests on this issue (you might be able to find it in the archives). Anyway the up shot is that you have to parse and allocate objects for all the layers, symbols, styles, etc that are defined in all the layers and this takes time. There is also a performance hit if you are using projection definitions because parsing all the projection init definitions is very time consuming. Frank W. might have more info on this. I think some people have made stripped down projection files with only the projections that they are using, to speed this up for production use. -Steve W From maluche at INF.UFSC.BR Mon Aug 27 09:19:35 2007 From: maluche at INF.UFSC.BR (Bruno Maluche) Date: Mon, 27 Aug 2007 13:19:35 -0300 Subject: HTML Legends + mapscript (Updated) Message-ID: Just added GROUP on my layer and It worked ! Thanks Tamas! []?s ----- Original Message ----- From: "Tamas Szekeres" To: Sent: Friday, August 24, 2007 3:41 PM Subject: Re: [UMN_MAPSERVER-USERS] HTML Legends + mapscript (Updated) Paul, I've added a new C# example for testing processLegendTemplate in the SVN trunk. When doing the tests I've found the following issues and created a ticket per issue: http://trac.osgeo.org/mapserver/ticket/2261 http://trac.osgeo.org/mapserver/ticket/2262 I've fixed #2261 immediately but I leave #2262 for some other folks. I'm not sure whether #2261 apply to your problem but the sample is working for me with the current SVN trunk. Best regards, Tamas 2007/8/23, Paul james : > Thank you Tamas.... > But, I?ve already read that discussion before and unfortunately I don?t > known how It can help-me to make processLegendTemplate function works... > > If anyone have a sample using it, I will be very happy ! I?m stuck in > that > about 2 days .... > I think my template html is fine... The only problem I think is that > function that always return a empty string :( ... > > Ty very much again! > > > > > On 8/23/07, Tamas Szekeres wrote: > > Paul, > > > > I recall I had a discussion about an issue like this a few months ago > > in this list which can be found here: > > > http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg11539.html > > > > I'm not totally sure whether the statements out there apply to this > > version exactly but this feature have been working that time pretty > > well. > > > > > > Best regards, > > > > Tamas > > > > > > 2007/8/23, Paul james : > > > I created a template.html like that : > > > > > > [leg_class_html opt_flag=15] > > > > > > > > > [leg_class_name]
    > > > > > > [/leg_class_html] > > > > > > And in my mapfile: > > > > > > > > > LEGEND > > > > > > STATUS ON > > > > > > KEYSIZE 18 12 > > > > > > # LABEL object > > > > > > LABEL > > > > > > TYPE BITMAP > > > > > > SIZE MEDIUM > > > > > > COLOR 0 0 89 > > > > > > END > > > > > > TEMPLATE "template.html" > > > > > > END > > > > > > Now, In code(c#) I?m trying to use processLegendTemplate function > without > > > sucess ... The function always return empty string ... > > > I think I?m not using it correctly : > > > > > > > > > > > > string[] _x = new string[1]; > > > string [] _y = new string[1]; > > > string _html = mapaObj.processLegendTemplate(_x, _y, 1); > > > > > > obs.: _html always return empty... > > > > > > > > > > > > Any ideas? I?m using Mapserver 5.0 beta 3 ! > > > > > > []?s > > > > > > > > > > > > > > > On 8/23/07, Paul james < pauljame at gmail.com> wrote: > > > > > > > > Hello guys ! > > > > I need change my legend system (mapaObj.Legend()) drawwith HTML > > > > legend > ... > > > > > > > I?d like to known if someone could help me with that... Any samples > using > > > mapscript? > > > > I?m completely lost on this task! > > > > > > > > Any help ? > > > > > > > > Thx > > > > > > > > > > > > > > > > > > From edspremolla at ANTEL.COM.UY Mon Aug 27 10:06:29 2007 From: edspremolla at ANTEL.COM.UY (Eduardo Spremolla) Date: Mon, 27 Aug 2007 12:06:29 -0500 Subject: Not centered vector image Message-ID: I have a point shp that is draw in two layers. One with small circles and another with the vector image of an arrow. The arrow is rotated by the ANGLEITEM sentence. So far so good. The problem is , no mater how I define the arrow in the vector coordinates, it is draw centered at the point. I want the arrow starting at the point. The OFFSET, if present, is honored AFTER the rotation of the image, so makes no good. Is there any solution, short of calculating a different OFFSET at each point? Thanks in advance. From sscott at LOCATIONINC.COM Mon Aug 27 10:24:32 2007 From: sscott at LOCATIONINC.COM (Shannon Scott) Date: Mon, 27 Aug 2007 13:24:32 -0400 Subject: Label Text with Flash ( swf ) Message-ID: I have been struggling to get label text on my flash maps. I have no problem using the True Type Fonts to create a png, but I cannot get any text to appear when I try to create swf files ( I have tried the fdb fonts from ming, and other fdb fonts I found for download ). Am I missing any parameters ( see below )? Does anyone have an example that works they are willing to share? Any help or pointers are appreciated. Thank you. Shannon CLASS NAME "fivepolys" EXPRESSION (([SCORE] >= 1) && ([SCORE] <= 5)) LABEL COLOR 1 1 1 OUTLINECOLOR 255 255 255 #TYPE BITMAP FONT helvetica SIZE 14 #ANTIALIAS TRUE POSITION CC PARTIALS false FORCE true BUFFER 4 END # end of label END # CLASS From dmorissette at MAPGEARS.COM Mon Aug 27 12:33:28 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Mon, 27 Aug 2007 15:33:28 -0400 Subject: Mapserver 5 beta 5 inline feature In-Reply-To: Message-ID: Lars-G?ran Edholm wrote: > > The problem is to create an new feature. > Create an new feature: > ......&map_pktrit=FEATURE+POINTS+1551231+6712571+END+TEXT+'A+test+point'+END&.... > Perhaps try with the new 5.0 syntax to update layers via URL: ...&map.layer[pktrit]=FEATURE+POINTS+1551231+6712571+END+TEXT+'A+test+point'+END&... For more details see the "URL configuration changes" in the 4.10->5.0 migration guide at http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/migration_guide_410_50 Daniel -- Daniel Morissette http://www.mapgears.com/ From rhow at I3.COM Mon Aug 27 13:43:08 2007 From: rhow at I3.COM (Randy How) Date: Mon, 27 Aug 2007 14:43:08 -0600 Subject: Transparent Pixmap Symbol In-Reply-To: Message-ID: Thanks Thomas that worked. For the record to get a transparent image fill in place for watermarking purposes: Image Creation Instructions * Format = PNG * Transparency = TRUE * Width & Height can vary (255 x 255 works) * Photoshop Instructions o Open a blank RGB canvas page with a transparent background o Create the text that you want for the watermark, angle appropriately o Save out a PNG format with interlace on Example symbol File definition SYMBOL NAME "logo_company" TYPE PIXMAP IMAGE "h2o_logos/company.png" END Example of the LAYER definition LAYER NAME "Watermarking Layer" DATA "\\path\directory\polygon.shp" # worldwide or limit to coverage area STATUS DEFAULT TYPE POLYGON PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END # Use MINSCALE or MAXSCALE for specific coverage area visibility TRANSPARENCY 75 # TRANSPARENCY 0 = full transparency CLASS STYLE SYMBOL "logo_company" COLOR 0 0 0 END END END _____ From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Saturday, August 25, 2007 3:59 AM To: Randy How Subject: Re: [UMN_MAPSERVER-USERS] Transparent Pixmap Symbol I've checked with what withe the svn version and transparency is working with gd and agg for pixmap (with a png image, haven't tried gif) and truetype polygons fills. the layer definition is simply ... OPACITY 50 .... CLASS NAME "States/Provinces1" STYLE SYMBOL 'truetype-symbol' #or SYMBOL 'pixmap-symbol' COLOR 0 0 0 END ... for png pixmaps, no need for the TRANSPARENT keyword thomas On 8/25/07, Randy How wrote: Thanks for the response Steve, I've tried all sorts of variations for PNG and GIF, and it hasn't been successful. Any other options for "logo water-marking" maps from MapServer? I was excited about this approach, but I can't get a transparency for the fill. Thanks again, Randy -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us ] Sent: Friday, August 24, 2007 4:35 PM To: rhow at I3.COM; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Transparent Pixmap Symbol Randy: I'm thinking we have a documentation issue here. I'm not sure that the TRANSPARENT option is even supported anymore. Typically MapServer respects the transparency of the image itself, so you need to create a transparent GIF for that to work. Give that a shot and I'll check the source (and update the docs) to make sure. Steve >>> Randy How 08/23/07 9:09 PM >>> I'm attempting to set the background transparency for a symbol that I've created, but with no success. My symbol definition SYMBOL NAME "logo" TYPE PIXMAP IMAGE "h2o_logos/logo.GIF" TRANSPARENT 0 END According to the reference setting a color index in the GIF sets the transparency (i.e. TRANSPARENT 0). Color index is 0 is black, and the output map layer symbol is not transparent! http://mapserver.gis.umn.edu/docs/reference/symbology/referencemanual-all-pa ges I've looked over this page and it only discusses PNG files. I can't get any of my PNG file variations to work either. http://mapserver.gis.umn.edu/docs/howto/cartosymbols Any help would be greatly appreciated, Randy -------------- next part -------------- An HTML attachment was scrubbed... URL: From anhtin at GMAIL.COM Mon Aug 27 19:21:08 2007 From: anhtin at GMAIL.COM (anhtin) Date: Mon, 27 Aug 2007 19:21:08 -0700 Subject: chart with mapserver 4.10 Message-ID: hi all i am using mapserver 4.10 and asp.net, it is API mapserver. How can i draw chart in mapserver api -- View this message in context: http://www.nabble.com/chart-with-mapserver-4.10-tf4339380.html#a12361020 Sent from the Mapserver - User mailing list archive at Nabble.com. From yjacolin at FREE.FR Tue Aug 28 01:21:54 2007 From: yjacolin at FREE.FR (Yves Jacolin) Date: Tue, 28 Aug 2007 10:21:54 +0200 Subject: Article about MapServer 5.0 Message-ID: Hi list, I am writing an article in French for the release of MapServer 5.0 in september. I read the page about new features here : http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/release_plan Did the RFC 21 has been developed? Where can I find some information about it for user (ie not for developper)? MS RFC 21 is Raster Color Correction via color lookup table. I read that it is also planned for the next mapserver release ... Another question, I tested the new outputformat with AGG, is it possible to get jpg or gif image with it? If so, how can I setting up my mapfile to realize this? Do I need special flag when building mapserver? Best regards, Y. PS : You can find the "same" article I planned to write for the old release here : http://www.portailsig.org/dossiers/dossiers-webmapping/item-presentation_mapserver_410.html From thomas.bonfort at GMAIL.COM Tue Aug 28 01:40:35 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Tue, 28 Aug 2007 10:40:35 +0200 Subject: Article about MapServer 5.0 In-Reply-To: <46D3DB22.6030406@free.fr> Message-ID: > Another question, I tested the new outputformat with AGG, is it possible > to get jpg or gif image with it? If so, how can I setting up my mapfile > to realize this? Do I need special flag when building mapserver? gif isn't supported with agg. these are the main outputformats you can use with agg: base outputformat, will output a 24 bit png: OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END 24 bit png, rendered on a transparent background: OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG IMAGEMODE RGBA END 24 bit jpeg output: OUTPUTFORMAT NAME 'AGG_JPEG' DRIVER AGG/JPEG IMAGEMODE RGB END png output, with number of colors reduced with quantization: OUTPUTFORMAT NAME 'AGG_Q' DRIVER AGG/PNG IMAGEMODE RGB FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END as for building, it will depend on your platform, but generally speaking you'll run ./configure [...] --with-agg=/usr [...] if you're using a distro build of agg or ./configure [...] --with-agg=/path/to/agg-source [...] if you're using a downloaded version from antigrain.com (you'll have to build agg in the source directory before doing this. just running 'make' should be enough) happy to answer other questions if any (en francais aussi, si c'est plus facile) thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From flavio at TYDAC.CH Tue Aug 28 02:03:59 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Tue, 28 Aug 2007 11:03:59 +0200 Subject: Article about MapServer 5.0 In-Reply-To: <46D3DB22.6030406@free.fr> Message-ID: Hi Yves > Another question, I tested the new outputformat with AGG, is it > possible to get jpg or gif image with it? If so, how can I setting up > mapfile to realize this? You should output to 24 bit as far as I know, means JPEG or PNG24 (the latter not suggesed, as the files become very large). With JPEG we were surprised to see the files being a third or less the size using AGG! And the quality is just amazing. See our first test with teleatlas data (zoom in to see the street level): http://test/ortsplan/frame.php?lang=en&city=Bern The Map-File changes are straight forward: before: IMAGETYPE JPEG OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION "QUALITY=100" END after: IMAGETYPE AGG_JPEG OUTPUTFORMAT NAME 'AGG_JPEG' DRIVER AGG/JPEG IMAGEMODE RGB FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From plieger at KNMI.NL Tue Aug 28 02:02:40 2007 From: plieger at KNMI.NL (Maarten Plieger) Date: Tue, 28 Aug 2007 09:02:40 +0000 Subject: GetLegendGraphic and Scalebar Message-ID: Is it possible to request a scalebar graphic from a mapserver WMS service? To request a legend you can call getlegendgraphic: http://my.host.com/cgi-bin/mapserver.cgi?map=test.map&SERVICE=WMS&VERSION=1.0.0&REQUEST=getlegendgraphic&LAYER=world_line&FORMAT=PNG Is there something like getscalebargraphic? Thanks in advance Maarten From dmorissette at MAPGEARS.COM Tue Aug 28 02:58:07 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 28 Aug 2007 05:58:07 -0400 Subject: Article about MapServer 5.0 In-Reply-To: Message-ID: Thomas, When I first used AGG it was not obvious how to setup the outputformat. It would probably be a good idea to add those outputformat infos to your http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics page. Daniel thomas bonfort wrote: > > Another question, I tested the new outputformat with AGG, is it > possible > to get jpg or gif image with it? If so, how can I setting up my mapfile > to realize this? Do I need special flag when building mapserver? > > > gif isn't supported with agg. > these are the main outputformats you can use with agg: > > base outputformat, will output a 24 bit png: > OUTPUTFORMAT > NAME 'AGG' > DRIVER AGG/PNG > IMAGEMODE RGB > END > > 24 bit png, rendered on a transparent background: > OUTPUTFORMAT > NAME 'AGGA' > DRIVER AGG/PNG > IMAGEMODE RGBA > END > > 24 bit jpeg output: > OUTPUTFORMAT > NAME 'AGG_JPEG' > DRIVER AGG/JPEG IMAGEMODE RGB > END > > png output, with number of colors reduced with quantization: > OUTPUTFORMAT > NAME 'AGG_Q' > DRIVER AGG/PNG > IMAGEMODE RGB > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_DITHER=OFF" > FORMATOPTION "QUANTIZE_COLORS=256" > END > > > > as for building, it will depend on your platform, but generally speaking > you'll run > > ./configure [...] --with-agg=/usr [...] if you're using a distro build > of agg > > or > > ./configure [...] --with-agg=/path/to/agg-source [...] if you're using a > downloaded version from antigrain.com (you'll > have to build agg in the source directory before doing this. just > running 'make' should be enough) > > happy to answer other questions if any (en francais aussi, si c'est plus > facile) > > thomas > > -- Daniel Morissette http://www.mapgears.com/ From adams at TERRESTRIS.DE Tue Aug 28 02:55:41 2007 From: adams at TERRESTRIS.DE (Till Adams) Date: Tue, 28 Aug 2007 11:55:41 +0200 Subject: GetLegendGraphic and Scalebar In-Reply-To: <46D3E4B0.6020901@knmi.nl> Message-ID: Maarten Plieger schrieb: > Is it possible to request a scalebar graphic from a mapserver WMS > service? > To request a legend you can call getlegendgraphic: > http://my.host.com/cgi-bin/mapserver.cgi?map=test.map&SERVICE=WMS&VERSION=1.0.0&REQUEST=getlegendgraphic&LAYER=world_line&FORMAT=PNG > > Is there something like getscalebargraphic? > Thanks in advance > Maarten > Dear Maarten, no, the WMS specification only allows these requests: -GetCapabilities(must) -Getmap (must) -getFeatureinforequest (optional) -getlegendgraphic (optional) -getStyle (optional) -describelayer (optional)** Have a look at: http://mapserver.gis.umn.edu/docs/howto/wms_server For having a scalebar you need a function in your wms-client (optionally you may set the scalebar "INIMAGE" but the result does not look well.... ) Regards, Till -- ***************************************** terrestris ist umgezogen! Die neue Adresse ab 01.07.2007 lautet: Irmintrudisstra?e 17, 53111 Bonn http://www.terrestris.de ***************************************** ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From friendvn2000 at YAHOO.COM Tue Aug 28 03:29:58 2007 From: friendvn2000 at YAHOO.COM (Jedi Knight) Date: Tue, 28 Aug 2007 05:29:58 -0500 Subject: Fatal error when query Message-ID: Sorry, my topic is not for fun Thanks From dmorissette at MAPGEARS.COM Tue Aug 28 04:40:06 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 28 Aug 2007 07:40:06 -0400 Subject: Article about MapServer 5.0 In-Reply-To: <46D3DB22.6030406@free.fr> Message-ID: Yves Jacolin wrote: > > I am writing an article in French for the release of MapServer 5.0 in > september. I read the page about new features here : > http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/release_plan > > Did the RFC 21 has been developed? Where can I find some information > about it for user (ie not for developper)? MS RFC 21 is Raster Color > Correction via color lookup table. I read that it is also planned for > the next mapserver release ... > Yes, all the RFCs listed in this page at the moment have been implemented and are already in the latest 5.0 betas. This includes RFC-21. Daniel -- Daniel Morissette http://www.mapgears.com/ From Tom.Kralidis at EC.GC.CA Tue Aug 28 04:45:29 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 28 Aug 2007 07:45:29 -0400 Subject: GetLegendGraphic and Scalebar In-Reply-To: A<46D3F11D.2080301@terrestris.de> Message-ID: > > Is it possible to request a scalebar graphic from a mapserver WMS > > service? > > To request a legend you can call getlegendgraphic: > > > http://my.host.com/cgi-bin/mapserver.cgi?map=test.map&SERVICE=WMS&VERS > > ION=1.0.0&REQUEST=getlegendgraphic&LAYER=world_line&FORMAT=PNG > > > > Is there something like getscalebargraphic? > > Thanks in advance > > Maarten > > > Dear Maarten, > > no, the WMS specification only allows these requests: > > -GetCapabilities(must) > -Getmap (must) > -getFeatureinforequest (optional) > -getlegendgraphic (optional) > -getStyle (optional) > -describelayer (optional)** > > Have a look at: > http://mapserver.gis.umn.edu/docs/howto/wms_server > > For having a scalebar you need a function in your wms-client > (optionally you may set the scalebar "INIMAGE" but the result > does not look well.... ) > CGI mode offers a mode=scalebar option: http://example.org/mapserv?map=/path/to/map.map&mode=scalebar&mapext=-18 0.000000%20-90.000000%20180.000000%2090.000000&map_units=dd Not WMS per se (is there any reason you'd want this back from a WMS?), but will return a scalebar graphic. ..Tom From tara_athan at ALT2IS.COM Tue Aug 28 05:26:15 2007 From: tara_athan at ALT2IS.COM (Tara Athan) Date: Tue, 28 Aug 2007 05:26:15 -0700 Subject: [work] Re: [UMN_MAPSERVER-USERS] first time mapserver install, error on empty query In-Reply-To: <46D21121.5060609@hostgis.com> Message-ID: I tried this- no change. I tried getting support from my ISP, but they are unwilling to help. (mapserver? we don't know anything about that- ask the support forum) Has anyone else had success or problems with bringing up MapServer on a hosted website? Tara Gregor Mosheh wrote: > Tara Athan wrote: >> I found libgdal.so.1 in /home/alttwois/local/lib >> On running ./mapserver -v, I get the same error message as before > >> /home/alttwois/public_html/cgi-bin/mapserv.real: error while loading >> shared libraries: libgdal.so.1: cannot open shared object file: No >> such file or directory > > Well that's bizarre. How about this? > > LD_LIBRARY_PATH="/home/alttwois/local/lib" > /home/alttwois/public_html/cgi-bin/mapserv.real -v > > That's all one line. That sets the linker path on the command line, > then runs the command. > > From warmerdam at POBOX.COM Tue Aug 28 07:13:36 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 28 Aug 2007 10:13:36 -0400 Subject: Article about MapServer 5.0 In-Reply-To: <46D3DB22.6030406@free.fr> Message-ID: Yves Jacolin wrote: > Did the RFC 21 has been developed? Where can I find some information > about it for user (ie not for developper)? MS RFC 21 is Raster Color > Correction via color lookup table. I read that it is also planned for > the next mapserver release ... Yves, Yes, RFC 21 was completed in November 2006, and will be in the MapServer 5.0 release. RFCs which involved implementation normally have an associated tracking bug, and this normally should indicate implementation status. In the case of RFC 21 the tracking bug indicates when it was implemented and references the autotest scripts as well. 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 assefa at DMSOLUTIONS.CA Tue Aug 28 07:27:44 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 28 Aug 2007 10:27:44 -0400 Subject: Label Text with Flash ( swf ) In-Reply-To: <46D308D0.5060507@locationinc.com> Message-ID: Hi There, I also had issues with fdb fonts downloaded recently from the ming site. Not sure what the problem is but might be related to changes done in ming between version 0.2 and the current 0.4. I have though some fdb fonts generated a while ago that works ok. I will send them to you off list so you can try them. Best Regards, Shannon Scott wrote: > I have been struggling to get label text on my flash maps. I have no > problem using the True Type Fonts to create a png, but I cannot get any > text to appear when I try to create swf files ( I have tried the fdb > fonts from ming, and other fdb fonts I found for download ). Am I > missing any parameters ( see below )? Does anyone have an example that > works they are willing to share? > Any help or pointers are appreciated. > Thank you. > Shannon > > CLASS > NAME "fivepolys" > EXPRESSION (([SCORE] >= 1) && ([SCORE] <= 5)) > LABEL COLOR 1 1 1 > OUTLINECOLOR 255 255 255 > #TYPE BITMAP > FONT helvetica > SIZE 14 > #ANTIALIAS TRUE > POSITION CC > PARTIALS false > FORCE true > BUFFER 4 > END # end of label > END # CLASS -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Steve.Lime at DNR.STATE.MN.US Tue Aug 28 07:40:08 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 28 Aug 2007 09:40:08 -0500 Subject: Article about MapServer 5.0 In-Reply-To: <46D3F1AF.1070603@mapgears.com> Message-ID: Note that there are two pre-defined output formats for AGG: AGGPNG24 and AGGJPEG. So it's as simple as "IMAGETYPE AGGPNG24" now. Steve >>> On 8/28/2007 at 4:58 AM, in message <46D3F1AF.1070603 at mapgears.com>, Daniel Morissette wrote: > Thomas, > > When I first used AGG it was not obvious how to setup the outputformat. > It would probably be a good idea to add those outputformat infos to your > http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics page. > > Daniel > > > thomas bonfort wrote: >> >> Another question, I tested the new outputformat with AGG, is it >> possible >> to get jpg or gif image with it? If so, how can I setting up my mapfile >> to realize this? Do I need special flag when building mapserver? >> >> >> gif isn't supported with agg. >> these are the main outputformats you can use with agg: >> >> base outputformat, will output a 24 bit png: >> OUTPUTFORMAT >> NAME 'AGG' >> DRIVER AGG/PNG >> IMAGEMODE RGB >> END >> >> 24 bit png, rendered on a transparent background: >> OUTPUTFORMAT >> NAME 'AGGA' >> DRIVER AGG/PNG >> IMAGEMODE RGBA >> END >> >> 24 bit jpeg output: >> OUTPUTFORMAT >> NAME 'AGG_JPEG' >> DRIVER AGG/JPEG IMAGEMODE RGB >> END >> >> png output, with number of colors reduced with quantization: >> OUTPUTFORMAT >> NAME 'AGG_Q' >> DRIVER AGG/PNG >> IMAGEMODE RGB >> FORMATOPTION "QUANTIZE_FORCE=ON" >> FORMATOPTION "QUANTIZE_DITHER=OFF" >> FORMATOPTION "QUANTIZE_COLORS=256" >> END >> >> >> >> as for building, it will depend on your platform, but generally speaking >> you'll run >> >> ./configure [...] --with-agg=/usr [...] if you're using a distro build >> of agg >> >> or >> >> ./configure [...] --with-agg=/path/to/agg-source [...] if you're using a >> downloaded version from antigrain.com (you'll >> have to build agg in the source directory before doing this. just >> running 'make' should be enough) >> >> happy to answer other questions if any (en francais aussi, si c'est plus >> facile) >> >> thomas >> >> > From Steve.Lime at DNR.STATE.MN.US Tue Aug 28 07:45:23 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 28 Aug 2007 09:45:23 -0500 Subject: Article about MapServer 5.0 In-Reply-To: Message-ID: The URL Flavio mentions should be http://test.mapserver.ch/ortsplan/frame.php?lang=en&city=Bern. Looks great! Steve >>> On 8/28/2007 at 4:03 AM, in message , Flavio Hendry wrote: > Hi Yves > >> Another question, I tested the new outputformat with AGG, is it >> possible to get jpg or gif image with it? If so, how can I setting up > > mapfile to realize this? > > You should output to 24 bit as far as I know, means JPEG or PNG24 (the > latter not suggesed, as the files become very large). With JPEG we were > surprised to see the files being a third or less the size using AGG! And > the quality is just amazing. > > See our first test with teleatlas data (zoom in to see the street level): > http://test/ortsplan/frame.php?lang=en&city=Bern > > The Map-File changes are straight forward: > > before: > IMAGETYPE JPEG > > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > EXTENSION "jpg" > FORMATOPTION "QUALITY=100" > END > > after: > IMAGETYPE AGG_JPEG > > OUTPUTFORMAT > NAME 'AGG_JPEG' > DRIVER AGG/JPEG > IMAGEMODE RGB > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_DITHER=OFF" > FORMATOPTION "QUANTIZE_COLORS=256" > END > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC Web-Site: http://www.tydac.ch > TYDAC MapServer: http://www.mapserver.ch > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- From dpinte at ITAE.BE Tue Aug 28 08:08:33 2007 From: dpinte at ITAE.BE (Didrik Pinte) Date: Tue, 28 Aug 2007 17:08:33 +0200 Subject: querybypoint problem with inline layer (php/mapscript) Message-ID: Hi, I've got a strange problem with queryByPoint on a dynamically created layer. I get the correct shapeindex after running the query with MS_SINGLE parameter. But when calling the getShape method, I always receive : Fatal error: [MapServer Error]: msINLINELayerGetShape(): No inline feature with this index. in [...] I correctly set the tileindex of getShape to -1 according to the documentation but this does not solve the problem. Googling a bit did not help. So if someone has a trick to solve the problem, i'll be very happy. Here are some details : The layer is created that way : $point = $obj->get_point(); // create new shapeObj (still must be a line for points layer ...) $shp = ms_newShapeObj(MS_SHAPE_LINE); $pt = ms_newLineObj(); $pt->addXY($point->x,$point->y); $pt->addXY($point->x,$point->y); $shp->add($pt); $shp->classindex = 0; $shp->set('text', $obj->get_id()); $shp->set('index', $obj->get_id()); $lyr->addFeature($shp); Then it's queried that way : $map_extent = set_extent_from_post($map, $_POST["extent"]); // transform pixel to geo coords : $cx = Pix2Geo($_POST["mapa_x"], 0, $map->height, $map_extent[0], $map_extent[2], 0); $cy = Pix2Geo($_POST["mapa_y"], 0, $map->width , $map_extent[1], $map_extent[3], 1); $mpoint = ms_newPointObj(); $mpoint->SetXY($cx, $cy); // find into layer the most closed point $layer->set("toleranceunits",MS_METERS); $res = $layer->queryByPoint($mpoint, MS_SINGLE, 100); if ($res == MS_SUCCESS){ echo "Identification succeeded
    "; echo $layer->getNumResults(); $layer->open(); $rslt = $layer->getResult(0); $shape = $layer->getShape(-1, $rslt->shapeindex); print_r($shape->values); $shape->free(); $layer->close(); } elseif ($res == MS_FAILURE) { echo "Nothing to identify ..."; } I can provide more details if needed. Thanks in advance for any help. Didrik -- Didrik Pinte Information Technologies for the Agro-Environment -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From andreas.albarello at TERRITORIUMONLINE.COM Tue Aug 28 08:58:22 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Tue, 28 Aug 2007 17:58:22 +0200 Subject: querybypoint problem with inline layer (php/mapscript) In-Reply-To: <1188313713.11896.17.camel@ddp.simpson> Message-ID: Didrik Pinte wrote: > Hi, > > I've got a strange problem with queryByPoint on a dynamically created > layer. I get the correct shapeindex after running the query with > MS_SINGLE parameter. But when calling the getShape method, I always > receive : > > Fatal error: [MapServer Error]: msINLINELayerGetShape(): No inline > feature with this index. in [...] Didrik, I don't think inline layers support that kind of operation. In fact, calling getShape on an inline layer and passing a certain value n as the index of the shape to retrieve does nothing else than returning the n-th shape of that layer (which I believe is the n-th last shape you've added), regardless of its index. Your best bet would be to manually loop through all the shapes by calling getShape(-1, 0), getShape(-1, 1), getShape(-1, 2) and so on 'till you find the one you are looking for. Then again, judging from the fact that you are creating that layer and its shapes on the fly, it might be easier to store the information you need about those shapes somewhere else where it's easier accessible by index or id, thus completely avoiding to call getShape. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From dpinte at ITAE.BE Tue Aug 28 09:07:44 2007 From: dpinte at ITAE.BE (Didrik Pinte) Date: Tue, 28 Aug 2007 18:07:44 +0200 Subject: querybypoint problem with inline layer (php/mapscript) In-Reply-To: <46D4461E.9070900@territoriumonline.com> Message-ID: On Tue, 2007-08-28 at 17:58 +0200, Andreas Albarello wrote: > > Then again, judging from the fact that you are creating that layer and > its shapes on the fly, it might be easier to store the information you > need about those shapes somewhere else where it's easier accessible by > index or id, thus completely avoiding to call getShape. Hi Andreas, Thanks for the input. That's exactly what i've done. I only get the shapeindex from the querybypoint and then go back to my database for feature selection. I'll try to post some comments on the mapserver website. It was really not obvious reading the documentation. Best regards -- Didrik Pinte Information Technologies for the Agro-Environment -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From desiegel at GMAIL.COM Tue Aug 28 14:04:35 2007 From: desiegel at GMAIL.COM (Dave Siegel) Date: Tue, 28 Aug 2007 17:04:35 -0400 Subject: Looking for SDE Raster example Message-ID: I've got a connection to an SDE 9.1 database open and can draw vector data just fine using MS4W but I am having trouble displaying anything from a raster catalog. If anyone else is doing this can you please share the syntax from your map file for your LAYER definition? Thanks Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu.inc at GMAIL.COM Tue Aug 28 15:55:47 2007 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Tue, 28 Aug 2007 17:55:47 -0500 Subject: Looking for SDE Raster example In-Reply-To: <7186a9d10708281404i16bca3ecx579c77be55368e96@mail.gmail.com> Message-ID: SDE Raster data was dropped from MapServer in favor of implementing it in GDAL. It is currently available in SVN GDAL, which is expected to be the GDAL 1.5 release. AFAIK, MS4W tracks a fairly recent GDAL, so it is possible to be able to use this setup if you have the gdal_SDE.dll plugin. I plan to build these for MS4W when MapServer 5.0 is to be released. Even after getting all of that together, GDAL SDE Raster (nor MapServer SDE Raster when it was active) support SDE Raster Catalogs. Howard On Aug 28, 2007, at 4:04 PM, Dave Siegel wrote: > > I've got a connection to an SDE 9.1 database open and can draw > vector data just fine using MS4W but I am having trouble displaying > anything from a raster catalog. If anyone else is doing this can > you please share the syntax from your map file for your LAYER > definition? > > Thanks > > Dave From friendvn2000 at YAHOO.COM Tue Aug 28 18:26:36 2007 From: friendvn2000 at YAHOO.COM (Jedi Knight) Date: Tue, 28 Aug 2007 20:26:36 -0500 Subject: Map Printing Message-ID: Use ESRI products like ArcMap, ArcView... From tara_athan at ALT2IS.COM Tue Aug 28 22:09:01 2007 From: tara_athan at ALT2IS.COM (Tara Athan) Date: Tue, 28 Aug 2007 22:09:01 -0700 Subject: hosted website installation In-Reply-To: <46D41467.3060503@alt2is.com> Message-ID: Additional information that may or may not be relevant: my ISP responded as follows Dear Customer, There is no server side limitation to paths. You may specify custom paths to any library that you have need of using. The only limitation would be on the library itself (whether it could be accessed from an alternate location) and the program that needs to access the library. So basically they are saying it must be either gdal's fault or MapServer's fault that mapserver cannot access the gdal library from an alternate location. Anyone care to weigh in on this? I guess I am giving up on the installation of Mapserver on the hosted website and will have to get some help from a GIS hosting service (or set up my own web server). But it seems like this should have been doable. Anyway, thanks for the help- I certainly learned a lot in the attempt... Tara Tara Athan wrote: > I tried this- no change. > I tried getting support from my ISP, but they are unwilling to help. > (mapserver? we don't know anything about that- ask the support forum) > > Has anyone else had success or problems with bringing up MapServer on > a hosted website? > > Tara > > Gregor Mosheh wrote: >> Tara Athan wrote: >>> I found libgdal.so.1 in /home/alttwois/local/lib >>> On running ./mapserver -v, I get the same error message as before >> >>> /home/alttwois/public_html/cgi-bin/mapserv.real: error while loading >>> shared libraries: libgdal.so.1: cannot open shared object file: No >>> such file or directory >> >> Well that's bizarre. How about this? >> >> LD_LIBRARY_PATH="/home/alttwois/local/lib" >> /home/alttwois/public_html/cgi-bin/mapserv.real -v >> >> That's all one line. That sets the linker path on the command line, >> then runs the command. >> >> > > -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species tara_athan at alt2is.com 707-485-1198 PO Box 415 Redwood Valley, CA 95470 From gregor at HOSTGIS.COM Tue Aug 28 22:50:16 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 28 Aug 2007 23:50:16 -0600 Subject: hosted website installation In-Reply-To: <46D4FF6D.4050805@alt2is.com> Message-ID: > So basically they are saying it must be either gdal's fault or > MapServer's fault that mapserver cannot access the gdal library from an > alternate location. > Anyone care to weigh in on this? Yeah: GDAL and Mapserver can work just fine under these circumstances, if we figure out what's wrong. Did you ever try running that wrapper, or the command line specifying a LD_LIBRARY_PATH as I had suggested? That should have done it, assuming that GDAL/OGR built and installed properly. > I guess I am giving up on the installation of Mapserver on the hosted > website and will have to get some help from a GIS hosting service (or > set up my own web server). If you go this route, feel free to contact me. I hate shilling on the mailing list, but our primary business *is* geo-savvy web-hosting. -- Gregor Mosheh / Greg Allensworth 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 aaronr at Z-PULLEY.COM Wed Aug 29 00:10:47 2007 From: aaronr at Z-PULLEY.COM (Aaron Racicot) Date: Wed, 29 Aug 2007 00:10:47 -0700 Subject: hosted website installation In-Reply-To: <46D4FF6D.4050805@alt2is.com> Message-ID: Tara, Coming to this conversation late, so I am not sure what you have tried. I have had success on a shared host two ways: 1) Install FWTools as it contains Mapserver and GDAL and is self contained. http://fwtools.maptools.org/ 2) I have played with static library paths via RPATH when compiling from source with success in the past. I even documented an install on DreamHost (pretty much the cheapest of the cheap) that worked. http://www.reprojected.com/geoblog/how-tos/gis-on-a-shared-hosting-environme nt-the-magic-of-not-having-root/ Hope these help... A +----------------------------------------+ Aaron Racicot - GIS Programmer 360.221.2441 - aaronr at z-pulley.com +----------------------------------------+ z - p u l l e y pobox 1614 langley wa 98260 www.reprojected.com +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Tara Athan Sent: Tuesday, August 28, 2007 10:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] hosted website installation Additional information that may or may not be relevant: my ISP responded as follows Dear Customer, There is no server side limitation to paths. You may specify custom paths to any library that you have need of using. The only limitation would be on the library itself (whether it could be accessed from an alternate location) and the program that needs to access the library. So basically they are saying it must be either gdal's fault or MapServer's fault that mapserver cannot access the gdal library from an alternate location. Anyone care to weigh in on this? I guess I am giving up on the installation of Mapserver on the hosted website and will have to get some help from a GIS hosting service (or set up my own web server). But it seems like this should have been doable. Anyway, thanks for the help- I certainly learned a lot in the attempt... Tara Tara Athan wrote: > I tried this- no change. > I tried getting support from my ISP, but they are unwilling to help. > (mapserver? we don't know anything about that- ask the support forum) > > Has anyone else had success or problems with bringing up MapServer on > a hosted website? > > Tara > > Gregor Mosheh wrote: >> Tara Athan wrote: >>> I found libgdal.so.1 in /home/alttwois/local/lib >>> On running ./mapserver -v, I get the same error message as before >> >>> /home/alttwois/public_html/cgi-bin/mapserv.real: error while loading >>> shared libraries: libgdal.so.1: cannot open shared object file: No >>> such file or directory >> >> Well that's bizarre. How about this? >> >> LD_LIBRARY_PATH="/home/alttwois/local/lib" >> /home/alttwois/public_html/cgi-bin/mapserv.real -v >> >> That's all one line. That sets the linker path on the command line, >> then runs the command. >> >> > > -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species tara_athan at alt2is.com 707-485-1198 PO Box 415 Redwood Valley, CA 95470 From fillymax at TISCALI.IT Wed Aug 29 00:17:24 2007 From: fillymax at TISCALI.IT (Alessandro MAZZELLA) Date: Wed, 29 Aug 2007 09:17:24 +0200 Subject: UNSUBSCRIBE Message-ID: An HTML attachment was scrubbed... URL: From lged_morris at HOTMAIL.COM Wed Aug 29 01:03:08 2007 From: lged_morris at HOTMAIL.COM (=?iso-8859-1?B?TGFycy1H9nJhbiBFZGhvbG0=?=) Date: Wed, 29 Aug 2007 10:03:08 +0200 Subject: Mapserver 5 beta 5 windows cgi expression in URL Message-ID: Hi! In earlier versions of Mapserver the syntax : ....&map_fastvisa_class_expression=([FNR]=210176493)&..... worked fine. It doesn't work in Mapserver so I tried with: ....&map.layer[fastvisa].class[0].expression=([FNR]=210176493)&..... error: loadClass(): Unknown identifier. Parsing error near (():(line 1) ...&map.layer[fastvisa].class[0]=EXPRESSION+FNR+210176493... error: loadClass(): Unknown identifier. Parsing error near (EXPRESSION):(line 1) Mapfile: . . layer metadata WMS_TITLE "S?kt fastighetsyta" end group "Grunddata" classitem "FNR" data "admgr/regenhet_region" name "fastvisa" status on type line # 1 class Fastighetsindelning class name "Fastighetsyta" SYMBOL 'circle' COLOR 255 0 0 SIZE 2 end end . . . Lars-G?ran Edholm _________________________________________________________________ Student och ressugen ? h?r finns b?sta priserna http://www.ticket.se/sv/student/studentflyg.html From dmorissette at MAPGEARS.COM Wed Aug 29 04:25:08 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 29 Aug 2007 07:25:08 -0400 Subject: Mapserver 5 beta 5 windows cgi expression in URL In-Reply-To: Message-ID: Lars-G?ran Edholm wrote: > Hi! > In earlier versions of Mapserver the syntax : > ....&map_fastvisa_class_expression=([FNR]=210176493)&..... > worked fine. > > It doesn't work in Mapserver so I tried with: > > ....&map.layer[fastvisa].class[0].expression=([FNR]=210176493)&..... > error: > loadClass(): Unknown identifier. Parsing error near (():(line 1) > > > ...&map.layer[fastvisa].class[0]=EXPRESSION+FNR+210176493... > error: > loadClass(): Unknown identifier. Parsing error near (EXPRESSION):(line 1) > > Did you try? ...&map.layer[fastvisa].class[0]=EXPRESSION+([FNR]=210176493)... Daniel -- Daniel Morissette http://www.mapgears.com/ From lged_morris at HOTMAIL.COM Wed Aug 29 05:28:15 2007 From: lged_morris at HOTMAIL.COM (=?iso-8859-1?B?TGFycy1H9nJhbiBFZGhvbG0=?=) Date: Wed, 29 Aug 2007 14:28:15 +0200 Subject: mapserver 5 expression Message-ID: Hi again! Tried with &map.layer[fastvisa].class[0]=EXPRESSION+([FNR]=210176493) gives the error: loadClass(): Unknown identifier. Parsing error near (EXPRESSION):(line 1) with &map.layer[fastvisa].class[0].EXPRESSION=([FNR]=210176493) i get loadClass(): Unknown identifier. Parsing error near (():(line 1) Seems that there is something with Expression that is wrong. Lars-G?ran Edholm _________________________________________________________________ Uppt?ck k?rleken p? MSN http://match.se.msn.com/channel/index.aspx?trackingid=1002962 From volpicelli at OATO.INAF.IT Wed Aug 29 06:14:22 2007 From: volpicelli at OATO.INAF.IT (Antonio) Date: Wed, 29 Aug 2007 15:14:22 +0200 Subject: WMS/GetFeatureInfo Message-ID: Hi all, I am using a WMS/GetFeatureInfo service on mapserver , it works fine but I need to figure out if is possible that it return more then one feature for each point ( there are many point where some polygons are overlapping and I need in the return string all of these). I need to set up some tag in the layer definition??? Thanks Antonio -- /-------------------------------------------------------\ PLEASE WARNING: E-mail is CHANGED volpicelli at oato.inaf.it /-------------------------------------------------------\ From dmorissette at MAPGEARS.COM Wed Aug 29 06:40:29 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 29 Aug 2007 09:40:29 -0400 Subject: WMS/GetFeatureInfo In-Reply-To: <46D5712E.1090009@oato.inaf.it> Message-ID: Antonio wrote: > Hi all, > I am using a WMS/GetFeatureInfo service on mapserver , it works fine but > I need to figure out if is possible that it return more then one feature > for each point ( there are many point where some polygons are > overlapping and I need in the return string all of these). > I need to set up some tag in the layer definition??? > Try setting FEATURE_COUNT in your WMS GetFeatureInfo request. The default value is 1, that's why you get only the first result by default. Daniel -- Daniel Morissette http://www.mapgears.com/ From dpinte at ITAE.BE Wed Aug 29 07:12:50 2007 From: dpinte at ITAE.BE (Didrik Pinte) Date: Wed, 29 Aug 2007 16:12:50 +0200 Subject: Re [SOLVED] : [UMN_MAPSERVER-USERS] doubled labels In-Reply-To: <1187483540.32641.55.camel@ddp.simpson> Message-ID: On Sun, 2007-08-19 at 02:32 +0200, Didrik Pinte wrote: > I fill in the layer using php/mapscript with the following code : > > $shp = ms_newShapeObj(MS_SHAPE_LINE); > $pt = ms_newLineObj(); > $pt->addXY($point->x,$point->y); > $pt->addXY($point->x,$point->y); > $shp->add($pt); > $shp->classindex = 0; > $shp->set('text', $obj->get_id()); > $lyr->addFeature($shp); The doubled labels where due to the fact that I created a MS_SHAPE_LINE with two points on a POINT LAYER... removing the second point solved the problem : $shp = ms_newShapeObj(MS_SHAPE_LINE); $pt = ms_newLineObj(); $pt->addXY($point->x,$point->y); $shp->add($pt); $shp->classindex = 0; $shp->set('text', $obj->get_id()); $lyr->addFeature($shp); Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From tara_athan at ALT2IS.COM Wed Aug 29 07:30:51 2007 From: tara_athan at ALT2IS.COM (Tara Athan) Date: Wed, 29 Aug 2007 07:30:51 -0700 Subject: [work] Re: [UMN_MAPSERVER-USERS] hosted website installation In-Reply-To: <46D50918.4010202@hostgis.com> Message-ID: I did try running the wrapper as follows: #!/bin/sh LD_LIBRARY_PATH="/home/alttwois/local/lib" /home/alttwois/public_html/cgi-bin/mapserv.real -v I can't verify that gdal was built and installed properly because I am not experienced with this and I could have done something wrong. However I do find libgdal.so.1 in the folder /home/alttwois/local/lib - is that a guarantee that it was installed correctly? In particular, the ls command shows these files alttwois at alt2is.com [~]# cd local/lib alttwois at alt2is.com [~/local/lib]# ls ./ libgd.a libgd.so@ libgd.so.2.0.0* libgdal.la* libgdal.so.1@ ../ libgd.la* libgd.so.2@ libgdal.a libgdal.so@ libgdal.so.1.11.2* Note I also installed libgd. I was concerned at first that the mapserver error didn't list libgd as a problem, but then I discovered that bluehost has libgd installed, so apparently mapserver is using the library in the standard location. However, I did discover this: gdlib-config --version 2.0.28 But the website http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix/#minimum-libgd-versions says that mapserver requires at least 2.0.29 So in order to run mapserver properly I would also need to convince it to use gd from my home directory as that is the more recent version. Tara Gregor Mosheh wrote: >> So basically they are saying it must be either gdal's fault or >> MapServer's fault that mapserver cannot access the gdal library from >> an alternate location. >> Anyone care to weigh in on this? > > Yeah: GDAL and Mapserver can work just fine under these circumstances, > if we figure out what's wrong. > > Did you ever try running that wrapper, or the command line specifying > a LD_LIBRARY_PATH as I had suggested? That should have done it, > assuming that GDAL/OGR built and installed properly. > > >> I guess I am giving up on the installation of Mapserver on the hosted >> website and will have to get some help from a GIS hosting service (or >> set up my own web server). > > If you go this route, feel free to contact me. I hate shilling on the > mailing list, but our primary business *is* geo-savvy web-hosting. > -- My e-mail delivery has been unreliable lately, so I am asking for return receipts from all my email messages. OK'ing the return receipt lets me know that my message was delivered. Thank you. Tara Athan Principal, Alternatives to Invasive Species tara_athan at alt2is.com 707-485-1198 PO Box 415 Redwood Valley, CA 95470 From tara_athan at ALT2IS.COM Wed Aug 29 07:33:49 2007 From: tara_athan at ALT2IS.COM (Tara Athan) Date: Wed, 29 Aug 2007 07:33:49 -0700 Subject: [work] Re: [UMN_MAPSERVER-USERS] hosted website installation In-Reply-To: <20070829071049.190BBB8609@spunkymail-a11.g.dreamhost.com> Message-ID: An HTML attachment was scrubbed... URL: From tara_athan at ALT2IS.COM Wed Aug 29 07:52:46 2007 From: tara_athan at ALT2IS.COM (Tara Athan) Date: Wed, 29 Aug 2007 07:52:46 -0700 Subject: hosted website installation In-Reply-To: <20070829071049.190BBB8609@spunkymail-a11.g.dreamhost.com> Message-ID: An HTML attachment was scrubbed... URL: From banders at REFRACTIONS.NET Wed Aug 29 08:07:21 2007 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Wed, 29 Aug 2007 08:07:21 -0700 Subject: Performance of Scanning a Quadtree Index Message-ID: Hi List, I ran into a curious situation with a quadtree (.qix) index on a shapefile. Basically the issue is that performance of scanning the index to fetch features is not as good as I expect. Some details: I have a shapefile data set with 4 million polygons fairly normally distributed around British Columbia, Canada. I used 'shptree' to create a spatial index on that data. I have a very simple layer in my mapfile pointing at the data. Minimal styling, no labels, etc. I then make a simple WMS request to fetch exactly 1000 features (limited by a bbox) from the layer. Mapserver take about 500ms. Seems a bit high. Geoserver can draw the exact same data, using the *same .qix* index in about 150ms. Naturally I made every effort to keep the comparison fair. No reprojection in either case, nearly identical styling, etc. As a further comparison I noticed that Mapserver and Geoserver are nearly equal for fetching/drawing 1000 features from a smaller data set of just 10,000. Response time there is more like 120ms. So on large shapefile data sets Geoserver's index scanning seems to be substantially faster. Are there any map file options that might improve performance? Could it be that Geoserver simply has a faster implementation for traversing the quadtree? I look forward to your thoughts. Brock From volpicelli at OATO.INAF.IT Wed Aug 29 08:53:55 2007 From: volpicelli at OATO.INAF.IT (Antonio) Date: Wed, 29 Aug 2007 17:53:55 +0200 Subject: WMS/GetFeatureInfo In-Reply-To: <46D5774D.9090401@mapgears.com> Message-ID: Hi Daniel, Thanks a lot , IT WORKS. Ciao Antonio Daniel Morissette wrote: > Antonio wrote: >> Hi all, >> I am using a WMS/GetFeatureInfo service on mapserver , it works fine >> but I need to figure out if is possible that it return more then one >> feature for each point ( there are many point where some polygons are >> overlapping and I need in the return string all of these). >> I need to set up some tag in the layer definition??? >> > > Try setting FEATURE_COUNT in your WMS GetFeatureInfo request. The > default value is 1, that's why you get only the first result by default. > > Daniel -- /-------------------------------------------------------\ PLEASE WARNING: E-mail is CHANGED volpicelli at oato.inaf.it /-------------------------------------------------------\ From dmorissette at MAPGEARS.COM Wed Aug 29 09:04:31 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 29 Aug 2007 12:04:31 -0400 Subject: Performance of Scanning a Quadtree Index In-Reply-To: <46D58BA9.1080602@refractions.net> Message-ID: Brock Anderson wrote: > > I then make a simple WMS request to fetch exactly 1000 features (limited > by a bbox) from the layer. Mapserver take about 500ms. Seems a bit high. > Geoserver can draw the exact same data, using the *same .qix* index in > about 150ms. Naturally I made every effort to keep the comparison > fair. No reprojection in either case, nearly identical styling, etc. > Ouch! That's no good. Have you verified that MapServer indeed finds the .qix and uses it (perhaps by removing the file and seeing that it then takes several seconds to render the map)? > As a further comparison I noticed that Mapserver and Geoserver are > nearly equal for fetching/drawing 1000 features from a smaller data set > of just 10,000. Response time there is more like 120ms. > So on large shapefile data sets Geoserver's index scanning seems to be > substantially faster. Are there any map file options that might improve > performance? Could it be that Geoserver simply has a faster > implementation for traversing the quadtree? > Could be. In which case we should compare the two implementations to figure what GeoServer does better, and fix MapServer. Could you please file a ticket about this with the info that was in your email? Are you able to share the dataset that you use to reproduce this? Also, if you can include a link to the GeoServer source file(s) that handles the .qix reading in the ticket so that we know where to look to compare the two implementations then that would be great. I will not have time to look at this before 5.0 is released, but maybe someone else will... or at a minimum we need to make sure we try to address this in 5.2. Thanks Daniel -- Daniel Morissette http://www.mapgears.com/ From warmerdam at POBOX.COM Wed Aug 29 09:15:25 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 29 Aug 2007 12:15:25 -0400 Subject: Performance of Scanning a Quadtree Index In-Reply-To: <46D58BA9.1080602@refractions.net> Message-ID: Brock Anderson wrote: > Hi List, > > I ran into a curious situation with a quadtree (.qix) index on a > shapefile. Basically the issue is that performance of scanning the > index to fetch features is not as good as I expect. Some details: > > I have a shapefile data set with 4 million polygons fairly normally > distributed around British Columbia, Canada. I used 'shptree' to create > a spatial index on that data. I have a very simple layer in my mapfile > pointing at the data. Minimal styling, no labels, etc. > > I then make a simple WMS request to fetch exactly 1000 features (limited > by a bbox) from the layer. Mapserver take about 500ms. Seems a bit high. > Geoserver can draw the exact same data, using the *same .qix* index in > about 150ms. Naturally I made every effort to keep the comparison > fair. No reprojection in either case, nearly identical styling, etc. > > As a further comparison I noticed that Mapserver and Geoserver are > nearly equal for fetching/drawing 1000 features from a smaller data set > of just 10,000. Response time there is more like 120ms. > So on large shapefile data sets Geoserver's index scanning seems to be > substantially faster. Are there any map file options that might improve > performance? Could it be that Geoserver simply has a faster > implementation for traversing the quadtree? Brock, I haven't dug into this, but I think MapServer pulls the features from the shapefile in the order they are identified traversing the spatial index. This *could* mean relatively random fetching depending on the spatial coherence (or lack thereof) of the records in the shapefile. If (and I haven't actually done any investigation) GeoServer uses the spatial index to build a list of feature ids, sorts that and then fetches them in the order they appear in the shapefile then GeoServer might pull the data in a much more "in order" form from disk which can give much better read performance. I stress this is not something I did any investigation into. It is just a wild theory that might explain it. BTW, OGR also uses .qix files, and does build one bit list which it sorts exactly to avoid random fetching. 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 Wed Aug 29 10:20:10 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 29 Aug 2007 13:20:10 -0400 Subject: Performance of Scanning a Quadtree Index In-Reply-To: <46D59B9D.5040209@pobox.com> Message-ID: Frank Warmerdam wrote: > > I haven't dug into this, but I think MapServer pulls the features from > the shapefile in the order they are identified traversing the spatial > index. This *could* mean relatively random fetching depending on the > spatial coherence (or lack thereof) of the records in the shapefile. > Frank, I could be wrong, but my understanding is that MapServer reads the shapes in the shapefile order all the time. If a .qix file is present, then an array of bits is used to tag the shape ids to load, and then the shapes are read in order of shape id. Daniel -- Daniel Morissette http://www.mapgears.com/ From efren.serra.ctr at METNET.NAVY.MIL Wed Aug 29 10:33:34 2007 From: efren.serra.ctr at METNET.NAVY.MIL (Efren Serra) Date: Wed, 29 Aug 2007 10:33:34 -0700 Subject: POLYGONS AT INTERNATIONAL DATE TIME BOUNDARY In-Reply-To: <46CDF1FA.8070707@hostgis.com> Message-ID: George, I think I figure something out: setting EXTENT to -360 -90 360 90 and requesting layers in pair as (using WMS protocol): BBOX=-360,-90,0,90&LAYERS=...&STYLES=...&TRANSPARENT=TRUE AND BBOX=0,-90,360,90&LAYERS=...&STYLES=...&TRANSPARENT=TRUE seems to do the trick. -----Original Message----- From: Gregor Mosheh [mailto:gregor at hostgis.com] Sent: Thursday, August 23, 2007 1:46 PM To: efren.serra.ctr at metnet.navy.mil Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] POLYGONS AT INTERNATIONAL DATE TIME BOUNDARY Efren Serra wrote: > Do you know which projection handle the date line properly? Offhand I do not. I'm actually a sysadmin, not a cartographer, I focus more on the software and operating system than projections. :) Would UTM zone 60 work? From there, the dateline would be at x=50000 and points east thereof would be, well, east as usual. Zone 60 should be EPSG codes 26760 (NAD27) and 26960 (NAD83/WGS94). -- Gregor Mosheh / Greg Allensworth 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 Aug 29 10:38:52 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 29 Aug 2007 11:38:52 -0600 Subject: POLYGONS AT INTERNATIONAL DATE TIME BOUNDARY In-Reply-To: <004c01c7ea62$bc8efad0$a469640a@ade.metnet.navy.mil> Message-ID: Efren Serra wrote: > I think I figure something out: > setting EXTENT to -360 -90 360 90 > and requesting layers in pair as (using WMS protocol): > BBOX=-360,-90,0,90&LAYERS=...&STYLES=...&TRANSPARENT=TRUE AND > BBOX=0,-90,360,90&LAYERS=...&STYLES=...&TRANSPARENT=TRUE > seems to do the trick. Well, there's an interesting approach; an east layer and a west layer, so to speak. Thanks for sharing that. One of my other projects is requesting that I "figure something out" for showing pure latlong stuff across the date line, and I was drawing a blank. -- Gregor Mosheh / Greg Allensworth 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 banders at REFRACTIONS.NET Wed Aug 29 10:50:50 2007 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Wed, 29 Aug 2007 10:50:50 -0700 Subject: Performance of Scanning a Quadtree Index In-Reply-To: <46D5990F.6090206@mapgears.com> Message-ID: Indeed, Mapserver is definitely using my index. I confirmed by deleting it, and re-testing. The problem scenario really stands out with big data sets. My test data set has 4 million polygons, so probably too large to attach to a bug report. I'll see if I can find a smaller data set that exposes the problem. I'll also try to dig up the Geoserver code which handles the index scan. I'm going to wait on creating that ticket until I've got more info... Brock Daniel Morissette wrote: > Brock Anderson wrote: >> >> I then make a simple WMS request to fetch exactly 1000 features >> (limited by a bbox) from the layer. Mapserver take about 500ms. >> Seems a bit high. >> Geoserver can draw the exact same data, using the *same .qix* index >> in about 150ms. Naturally I made every effort to keep the comparison >> fair. No reprojection in either case, nearly identical styling, etc. >> > > Ouch! That's no good. Have you verified that MapServer indeed finds > the .qix and uses it (perhaps by removing the file and seeing that it > then takes several seconds to render the map)? > >> As a further comparison I noticed that Mapserver and Geoserver are >> nearly equal for fetching/drawing 1000 features from a smaller data >> set of just 10,000. Response time there is more like 120ms. >> So on large shapefile data sets Geoserver's index scanning seems to >> be substantially faster. Are there any map file options that might >> improve performance? Could it be that Geoserver simply has a faster >> implementation for traversing the quadtree? >> > > Could be. In which case we should compare the two implementations to > figure what GeoServer does better, and fix MapServer. > > Could you please file a ticket about this with the info that was in > your email? Are you able to share the dataset that you use to > reproduce this? Also, if you can include a link to the GeoServer > source file(s) that handles the .qix reading in the ticket so that we > know where to look to compare the two implementations then that would > be great. I will not have time to look at this before 5.0 is released, > but maybe someone else will... or at a minimum we need to make sure we > try to address this in 5.2. > > Thanks > > Daniel From warmerdam at POBOX.COM Wed Aug 29 11:58:08 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 29 Aug 2007 14:58:08 -0400 Subject: Performance of Scanning a Quadtree Index In-Reply-To: <46D5AACA.6010608@mapgears.com> Message-ID: Daniel Morissette wrote: > Frank Warmerdam wrote: >> >> I haven't dug into this, but I think MapServer pulls the features from >> the shapefile in the order they are identified traversing the spatial >> index. This *could* mean relatively random fetching depending on the >> spatial coherence (or lack thereof) of the records in the shapefile. >> > > Frank, > > I could be wrong, but my understanding is that MapServer reads the > shapes in the shapefile order all the time. If a .qix file is present, > then an array of bits is used to tag the shape ids to load, and then the > shapes are read in order of shape id. Daniel, Ah, and there is the danger of a theory without investigation. :-) 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 Sven.Schulz-2 at RUB.DE Wed Aug 29 12:12:50 2007 From: Sven.Schulz-2 at RUB.DE (Sven Schulz) Date: Wed, 29 Aug 2007 21:12:50 +0200 Subject: php_mapscript: php as cgi required? Message-ID: hi there, i?m about to set up a new server (most recent versions of all components). is it still required to build php as cgi for the php-mapscript module? or can i use the phpmod for apache coming with distribution (opensuse 10.2)? kind regards, sven From dmorissette at MAPGEARS.COM Wed Aug 29 12:56:44 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 29 Aug 2007 15:56:44 -0400 Subject: MapServer 5.0-beta6 released Message-ID: Hi everyone, MapServer 5.0.0-beta6 has just been released. The source package is available at: http://mapserver.gis.umn.edu/download/beta The page above also contains links to binary distributions. They should be updated with binaries for this beta in the next few days. I think we're on schedule to have a release candidate next week. Thanks a lot to all those who have tested previous betas and have reported their results, either via the list or directly in Trac (bug tracker). That helps a lot... please keep testing and sending feedback. The complete list of changes/fixes since beta5 is included at the bottom of this email. As was mentioned before, we plan to have one beta per week until the final release of MapServer 5.0 which is planned for the week of September 12, 2007. More details can be found in the 5.0 release plan at http://mapserver.gis.umn.edu/development/release_plans/mapserver_5_0/release_plan/ Daniel Version 5.0.0-beta6 (2007-08-29) -------------------------------- - Fixed problem with outline of polygons rendered twice with OGR STYLEITEM AUTO and AGG output (#2271) - Fixed problem compiling with only WMS/WFS client but none of the WMS, WFS, WCS or SOS server options enabled (#2272) - Fixed buffer overflow in handling of WMS SRS=AUTO:... (#1824) - AGG: render thick lines and polygon outlines with round caps and joins by default - Typo in mapfile writing (#2267) - Fixed mapping of class->keyimage in PHP MapScript (#2268) - Look for libagg under lib64 subdir as well in configure (#2265) - AGG: revert previous optimizations. now use caching of the rendering object to avoid the re-creation of some structures each time a shape is drawn - AGG: optimizations for faster rendering. we now do not initialize the font cache when no text is to be rendered - AGG: fixed rendering of polygons with holes (#2264) - AGG - raster layers: fix typo in mapresample.c that produced random background colors when using OFFSITE (#2263) - AGG: Fix a bug when rendering tiled polygons with truetype, pixmap or vector symbols (usually only affected bright colors) - Avoid passing null to msInsertHashTable in processLegendTemplate when layer.name or layer.group not specified (#2261) - Fixed problems with fonts in PDF output (#2142) - AGG: smooth font shadows From gregor at HOSTGIS.COM Wed Aug 29 13:58:04 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 29 Aug 2007 14:58:04 -0600 Subject: php_mapscript: php as cgi required? In-Reply-To: <46D5C532.3040405@rub.de> Message-ID: Sven Schulz wrote: > i?m about to set up a new server (most recent versions of all > components). is it still required to build php as cgi for the > php-mapscript module? or can i use the phpmod for apache coming with > distribution (opensuse 10.2)? I ask this question every few months, and I get the same result each time: "Your mileage may vary." It works great for some folks (especially under Windows) but crashes and burns for others, and works fine "until" for others. Personally, I find the performance as a CGI to be quite acceptable, so I stick with what's known safe. Last thing I need is for some error to popup up a week, a month, six months, down the line. -- Gregor Mosheh / Greg Allensworth 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 pete at MDSC.COM Wed Aug 29 13:53:20 2007 From: pete at MDSC.COM (Pete Deffendol) Date: Wed, 29 Aug 2007 14:53:20 -0600 Subject: Offset a line? Message-ID: I'm trying to draw a line layer such that it is offset some amount of pixels from its actual location. The intent is to draw a dashed line next to (not atop) a road. From the documentation, it appears that using OFFSET in the STYLE block will work, but it's not having any affect on the output. Here's the relevant section of my mapfile: LAYER ... STATUS ON TYPE LINE SIZEUNITS PIXELS ... CLASS ... STYLE COLOR 255 128 0 WIDTH 2 OFFSET 8 -99 END END END I'm going by some documentation at http://mapserver.gis.umn.edu/docs/howto/cartosymbols/#construction-of-line-symbols Am I doing something wrong here? Or is this even possible? I'm using Mapserver 5.0 beta 6, through PHP Mapscript. Pete -- Pete Deffendol Software Engineer Multimedia Data Services Corp. pete at mdsc.com From pete at MDSC.COM Wed Aug 29 14:07:48 2007 From: pete at MDSC.COM (Pete Deffendol) Date: Wed, 29 Aug 2007 15:07:48 -0600 Subject: Offset a line? In-Reply-To: <46D5DCC0.9010601@mdsc.com> Message-ID: Pete Deffendol wrote: > I'm trying to draw a line layer such that it is offset some amount of > pixels from its actual location. The intent is to draw a dashed line > next to (not atop) a road. From the documentation, it appears that > using OFFSET in the STYLE block will work, but it's not having any > affect on the output. Here's the relevant section of my mapfile: Let me be more specific. I'm using AGG rendering as well. If I turn it off, then the offset appears to work, although it's really ugly and doesn't look the way I want. (The offset line doesn't just look like a mirror of the original line that has been shifted over - it has a few "anomalies" that shift a different direction.) So - any other ideas on how I can achieve what I want? (see above quoted message.) Pete -- Pete Deffendol Software Engineer Multimedia Data Services Corp. pete at mdsc.com From friendvn2000 at YAHOO.COM Wed Aug 29 19:37:01 2007 From: friendvn2000 at YAHOO.COM (Jedi Knight) Date: Wed, 29 Aug 2007 21:37:01 -0500 Subject: querybypoint problem with inline layer (php/mapscript) Message-ID: Maybe try to set TEMPLATE for this inline layer From eric.c2c at GMAIL.COM Wed Aug 29 23:27:41 2007 From: eric.c2c at GMAIL.COM (Eric Lemoine) Date: Thu, 30 Aug 2007 08:27:41 +0200 Subject: number of layers in mapfile In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FB691@s-sp22.pca.state.mn.us> Message-ID: On 8/27/07, Fawcett, David wrote: > I think that the summary is that conclusion is that a map file with 500 > layers is going to be significantly more expensive than a map file with > five layers. Even with all of the possible optimization tricks. > > If you really need to have a map file with 500 layers (e.g. you need all > 500 layers to draw one map), you will likely have to deal with slower > performance. > > The bigger question to me is, do you really need 500 layers?! I can't > imagine a lot of applications that would. > > There are people who have lot's of possible data layers, but really only > need a dozen or so at a time. They are using the INCLUDE option or a C > pre-processor to custom build map files on the fly. > > I would first try to figure out if you really needed such a giant map > file. Hi, Yes, I should be able to split my mapfile into multiple mapfiles. I just wanted to check with the list that having lots of layers in the mapfile can effectively cause performance issues. Thx, -- Eric From chrislist at NARX.NET Thu Aug 30 00:03:29 2007 From: chrislist at NARX.NET (Chris Tweedie) Date: Thu, 30 Aug 2007 15:03:29 +0800 Subject: Mapserver 5 windows SDE build? Message-ID: Hi guys, Has anyone out there built win32 MS v5 (any beta) with a libmap with SDE support or ogr_sde driver? I understand why ms4w/fwtools havent bothered adding it to the beta builds but I am very eager to test out the improvements particular on my SDE datastores. I failed miserably trying to build from source so just wondering if i can short-circuit the process by leveraging off someone elses hard work :) Cheers -- Chris Tweedie From thomas.bonfort at GMAIL.COM Thu Aug 30 00:46:13 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Thu, 30 Aug 2007 09:46:13 +0200 Subject: Offset a line? In-Reply-To: Message-ID: offsetting a line by a fixed offset will rarely give a satisfying result unless the line is more or less of a constant direction. as you're using AGG you're in luck as there are at least two ways of getting what you want. You can try this with a beta version , but the version in svn as of now, or the RC version in a weeks time will contain/ contains a few bug fixes that correct a couple of artifacts that you will get with beta6 the first way is using a vector symbol: SYMBOL NAME 'solidanddash' TYPE VECTOR POINTS 0 0 1 0 -1 -1 .25 0.5 .75 0.5 END LINECAP SQUARE FILLED FALSE END and then STYLE COLOR 0 0 0 SYMBOL 'solidanddash' SIZE 5 WIDTH 1 #use WIDTH 2 if using beta6 or lower to circumvent a rendering artifact END the second way is using a pixmap symbol as a brush for the line as attached to this email. again, using beta6 or lower you'll get a faint outline around the pixmap. this is corrected in svn / rc1. SYMBOL NAME "semidashed" TYPE PIXMAP IMAGE "semidashed.gif" END and then in your mapfile STYLE SYMBOL 'semidashed' # no use setting width or size here, if you need a wider line, use a bigger semidashed.gif END HTH, thomas On 8/29/07, Pete Deffendol wrote: > Pete Deffendol wrote: > > I'm trying to draw a line layer such that it is offset some amount of > > pixels from its actual location. The intent is to draw a dashed line > > next to (not atop) a road. From the documentation, it appears that > > using OFFSET in the STYLE block will work, but it's not having any > > affect on the output. Here's the relevant section of my mapfile: > > Let me be more specific. I'm using AGG rendering as well. If I turn it > off, then the offset appears to work, although it's really ugly and > doesn't look the way I want. (The offset line doesn't just look like a > mirror of the original line that has been shifted over - it has a few > "anomalies" that shift a different direction.) > > So - any other ideas on how I can achieve what I want? (see above quoted > message.) > > Pete > > -- > Pete Deffendol > Software Engineer > Multimedia Data Services Corp. > pete at mdsc.com > -------------- next part -------------- A non-text attachment was scrubbed... Name: semidashed.gif Type: image/gif Size: 40 bytes Desc: not available URL: From plieger at KNMI.NL Thu Aug 30 02:17:17 2007 From: plieger at KNMI.NL (Maarten Plieger) Date: Thu, 30 Aug 2007 09:17:17 +0000 Subject: GetLegendGraphic and Scalebar In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F01059DCE@ecburexch1.ontario.int.ec.gc.ca> Message-ID: Kralidis,Tom [Burlington] wrote: >>> Is it possible to request a scalebar graphic from a mapserver WMS >>> service? >>> To request a legend you can call getlegendgraphic: >>> >>> >> http://my.host.com/cgi-bin/mapserver.cgi?map=test.map&SERVICE=WMS&VERS >> >>> ION=1.0.0&REQUEST=getlegendgraphic&LAYER=world_line&FORMAT=PNG >>> >>> Is there something like getscalebargraphic? >>> Thanks in advance >>> Maarten >>> >>> >> Dear Maarten, >> >> no, the WMS specification only allows these requests: >> >> -GetCapabilities(must) >> -Getmap (must) >> -getFeatureinforequest (optional) >> -getlegendgraphic (optional) >> -getStyle (optional) >> -describelayer (optional)** >> >> Have a look at: >> http://mapserver.gis.umn.edu/docs/howto/wms_server >> >> For having a scalebar you need a function in your wms-client >> (optionally you may set the scalebar "INIMAGE" but the result >> does not look well.... ) >> >> > > CGI mode offers a mode=scalebar option: > > http://example.org/mapserv?map=/path/to/map.map&mode=scalebar&mapext=-18 > 0.000000%20-90.000000%20180.000000%2090.000000&map_units=dd > > Not WMS per se (is there any reason you'd want this back from a WMS?), > but will return a scalebar graphic. > > ..Tom > > Thanks a lot to all, this is exactly what i wanted. I have also included the mapsize parameter to be sure that the scalebar displays always the proper values. (Because the scale is of course dependent on the mapsize). The STATUS EMBED parameter is also tested, this gives me the same results. This is the request: http://myhostname/cgi-bin/mapserver.cgi?map=test.map&mode=scalebar&mapext=-180+-90+180+90&mapsize=1200+600&map_units=DD Maarten From ed at TOPOZONE.COM Thu Aug 30 04:46:12 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 30 Aug 2007 07:46:12 -0400 Subject: number of layers in mapfile In-Reply-To: A<5ec103de0708292327p3004f5a7w2970df1ef3d40b4b@mail.gmail.com> Message-ID: Eric - I would not want to suggest that there's anything particularly "wrong" with the way MapServer processes layers in a mapfile. I'm sure it could be faster, but in general the real issue is asking any application to do a lot of work you don't need. If you don't need to use 500 layers in a map request, don't ask MapServer to parse and prepare 500 layers for you before it starts drawing. It's always a good idea to get your application working *correctly*, and then get it working *quickly*. Using a lot of layers in a mapfile makes it easy to get your application up and running, but pruning of layers (and fonts, and symbols, and projections, etc.) to improve performance after it's working is definitely something everyone should keep in mind. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 Phone: 978-251-4242, Fax: 978-251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Eric Lemoine Sent: Thursday, August 30, 2007 2:28 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] number of layers in mapfile On 8/27/07, Fawcett, David wrote: > I think that the summary is that conclusion is that a map file with 500 > layers is going to be significantly more expensive than a map file with > five layers. Even with all of the possible optimization tricks. > > If you really need to have a map file with 500 layers (e.g. you need all > 500 layers to draw one map), you will likely have to deal with slower > performance. > > The bigger question to me is, do you really need 500 layers?! I can't > imagine a lot of applications that would. > > There are people who have lot's of possible data layers, but really only > need a dozen or so at a time. They are using the INCLUDE option or a C > pre-processor to custom build map files on the fly. > > I would first try to figure out if you really needed such a giant map > file. Hi, Yes, I should be able to split my mapfile into multiple mapfiles. I just wanted to check with the list that having lots of layers in the mapfile can effectively cause performance issues. Thx, -- Eric From hartpence_gis at CO.JASPER.IA.US Thu Aug 30 05:47:21 2007 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Thu, 30 Aug 2007 07:47:21 -0500 Subject: Virtual Spatial Data Message-ID: Hello, I am learning about using Virtual Spatial Data in Mapserver. I added an Access table with xy data. It displays fine and labels fine, but when I try to query it, I get the following error: "mapserv(): Web application error. No way to generate a valid map extent from selected shapes." This happens when I try to click on the point. Here the URL: http://gismap/JasperMaps/cgi-bin/mapserv.exe?&program=%2FJasperMaps%2Fcgi-bin%2Fmapserv.exe&map=C%3A%5CInetpub%5Cwwwroot%5Cmapdocs%5CSeptic.map&zoomsize=2&layers=ortho+Septic+Parcels+Lots+ROW+Survey+Section+Sub+ParcelPt+Water+Shields+Highways+Roads+Watershed+County+Towns&mode=browse&slayer=Parcels&imgxy=320+240&imgext=1680507.39+547052.00+1844030.00+680312.51&mapshape=&imgshape=&imgbox=&qstring=&qlayer=Parcels&qitem=&shapeindex=&savequery= Any ideas what I am doing wrong? Here is an excerpt from my map file: LAYER CONNECTION " ODBC:@Septic tblSewersyAllHistoricInfo wkbPoint " CONNECTIONTYPE OGR DATA "Septic" #METADATA # "wms_srs" "4326" # "wms_title" "Septic" #END NAME "Septic" TEMPLATE 'C:\MS4W\Apache\htdocs\Septic\Septic_query.html' HEADER 'C:\MS4W\Apache\htdocs\Septic\Septic_head.html' TRANSPARENCY 100 SIZEUNITS PIXELS STATUS ON TOLERANCE 7 TOLERANCEUNITS PIXELS TYPE POINT UNITS FEET LABELITEM 'septic permit number' CLASS STYLE COLOR 0 200 0 MAXSIZE 100 MINSIZE 1 SIZE 6 SYMBOL "square" END LABEL TYPE TRUETYPE SIZE 10 FONT Arial COLOR 0 250 50 # OUTLINECOLOR 0 0 0 POSITION UC #ANGLE AUTO OFFSET 0 5 MINDISTANCE 200 END #LABEL END END Lawrence From hobu.inc at GMAIL.COM Thu Aug 30 07:12:38 2007 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Thu, 30 Aug 2007 09:12:38 -0500 Subject: Mapserver 5 windows SDE build? In-Reply-To: <3c3f5e47106836d6d5efc34f3f8e84ce@narx.net> Message-ID: Working on it. Hope to have a plugin (as opposed to a full libmap.dll) for SDE 9.1 and 9.2 by the end of the week... Howard On Aug 30, 2007, at 2:03 AM, Chris Tweedie wrote: > Hi guys, > > Has anyone out there built win32 MS v5 (any beta) with a libmap > with SDE support or ogr_sde driver? > > I understand why ms4w/fwtools havent bothered adding it to the beta > builds but I am very eager to test out the improvements particular > on my SDE datastores. > > I failed miserably trying to build from source so just wondering if > i can short-circuit the process by leveraging off someone elses > hard work :) > > Cheers > > -- > Chris Tweedie From gilles.bassiere at MAKINA-CORPUS.COM Thu Aug 30 07:44:41 2007 From: gilles.bassiere at MAKINA-CORPUS.COM (=?ISO-8859-15?Q?Gilles_Bassi=E8re?=) Date: Thu, 30 Aug 2007 16:44:41 +0200 Subject: AGG, paletted image and transparency (Mapserver 5.0 beta 5) Message-ID: Hi List, I run Mapserver 5.0 beta5 as a WMS server and have some troubles with background transparency :( In a first attempt, I just replaced my GD OUTPUTFORMAT definition by: OUTPUTFORMAT NAME "png" DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE "rgba" EXTENSION "png" FORMATOPTION "transparent=on" # TileCache can't use meta-tiling on interlaced PNG files... FORMATOPTION "interlace=off" END Changed my config to have my OpenLayers pointing directly at Mapserver 5.0, launch my browser and... Wow, it looks great !!! Then, I tried some optimization and I added to my OUTPUTFORMAT element (as seen in "AGG rendering specifics" howto) : FORMATOPTION "quantize_force=on" FORMATOPTION "quantize_dither=off" FORMATOPTION "quantize_colors=256" Well, the line work is still beautiful but I now have 2 problems : 1) I lost background transparency. My tiles appear with a white background, I tried to change IMAGECOLOR from 255 255 255 to -1 -1 -1, also to remove this element but it doesn't change anything. 2) Fonts and symbols looks very crappy, they are mixed black and white where they should be filled with black with a white outline. On a random tile, the image size fall from 102KB down to 25KB. Such ratio is not representative at all since it's not an average and it's only about vector data but still, quantize option seems very interesting and I don't want to give up because of transparency problems. Trying to solve the first problem, I found a workaround for the second. When I set the TRANSPARENT parameter of the WMS request to 'false' (or any value different of 'true'), then fonts and symbols are displayed normally. It could have been ok if TRANSPARENT was not an optional parameter... The map should looks good in the default case. Does someone could give more explanation about the quantize option, especially regarding transparency management ? If possible, a broader answer about the FORMATOPTION element would help a lot. Indeed, it seems like most optimizations are possible through output format tuning. Unfortunately, I have not been able to find any reference document on this... Regards, -- Gilles Bassiere MAKINA CORPUS 30 rue des Jeuneurs FR-75011 PARIS http://www.makina-corpus.com From flavio at TYDAC.CH Thu Aug 30 08:34:25 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 30 Aug 2007 17:34:25 +0200 Subject: AGG, paletted image and transparency (Mapserver 5.0 beta 5) In-Reply-To: <46D6D7D9.4030709@makina-corpus.com> Message-ID: Hi Gilles Did you try TRANSPARENCY alpha (on LAYER level). Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Gilles Bassi?re To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Thu, 30 Aug 2007 16:44:41 +0200 Subject: [UMN_MAPSERVER-USERS] AGG, paletted image and transparency (Mapserver 5.0 beta 5) > Hi List, > > I run Mapserver 5.0 beta5 as a WMS server and have some troubles with > background transparency :( > > In a first attempt, I just replaced my GD OUTPUTFORMAT definition by: > > OUTPUTFORMAT > NAME "png" > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE "rgba" > EXTENSION "png" > FORMATOPTION "transparent=on" > # TileCache can't use meta-tiling on interlaced PNG files... > FORMATOPTION "interlace=off" > END > > Changed my config to have my OpenLayers pointing directly at > Mapserver > 5.0, launch my browser and... Wow, it looks great !!! > > Then, I tried some optimization and I added to my OUTPUTFORMAT > element > (as seen in "AGG rendering specifics" howto) : > FORMATOPTION "quantize_force=on" > FORMATOPTION "quantize_dither=off" > FORMATOPTION "quantize_colors=256" > > Well, the line work is still beautiful but I now have 2 problems : > 1) I lost background transparency. My tiles appear with a white > background, I tried to change IMAGECOLOR from 255 255 255 to -1 -1 > -1, > also to remove this element but it doesn't change anything. > 2) Fonts and symbols looks very crappy, they are mixed black and > white > where they should be filled with black with a white outline. > > On a random tile, the image size fall from 102KB down to 25KB. Such > ratio is not representative at all since it's not an average and it's > only about vector data but still, quantize option seems very > interesting > and I don't want to give up because of transparency problems. > > Trying to solve the first problem, I found a workaround for the > second. > When I set the TRANSPARENT parameter of the WMS request to 'false' > (or > any value different of 'true'), then fonts and symbols are displayed > normally. It could have been ok if TRANSPARENT was not an optional > parameter... The map should looks good in the default case. > > Does someone could give more explanation about the quantize option, > especially regarding transparency management ? > > If possible, a broader answer about the FORMATOPTION element would > help > a lot. Indeed, it seems like most optimizations are possible through > output format tuning. Unfortunately, I have not been able to find any > reference document on this... > > Regards, > > -- > Gilles Bassiere > MAKINA CORPUS > 30 rue des Jeuneurs > FR-75011 PARIS > http://www.makina-corpus.com From gilles.bassiere at MAKINA-CORPUS.COM Thu Aug 30 08:45:10 2007 From: gilles.bassiere at MAKINA-CORPUS.COM (=?ISO-8859-15?Q?Gilles_Bassi=E8re?=) Date: Thu, 30 Aug 2007 17:45:10 +0200 Subject: AGG, paletted image and transparency (Mapserver 5.0 beta 5) In-Reply-To: Message-ID: Flavio Hendry wrote: > Hi Gilles > > Did you try TRANSPARENCY alpha (on LAYER level). > I did but it doesn't change anything. According to http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics : "All rendering is now done antialiased by default. All ANTIALIAS keywords are now ignored, as well as TRANSPARENCY ALPHA. Pixmaps and fonts are now all drawn respecting the image's internal alpha channel (unless a backgroundcolor is specified)." Without the TRANSPARENCY ALPHA, I don't know how to get this "image's internal alpha channel" to work as I want Regards, Gilles > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC Web-Site: http://www.tydac.ch > TYDAC MapServer: http://www.mapserver.ch > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > > > -----Original Message----- > From: Gilles Bassi?re > To: MAPSERVER-USERS at LISTS.UMN.EDU > Date: Thu, 30 Aug 2007 16:44:41 +0200 > Subject: [UMN_MAPSERVER-USERS] AGG, paletted image and transparency > (Mapserver 5.0 beta 5) > > >> Hi List, >> >> I run Mapserver 5.0 beta5 as a WMS server and have some troubles with >> background transparency :( >> >> In a first attempt, I just replaced my GD OUTPUTFORMAT definition by: >> >> OUTPUTFORMAT >> NAME "png" >> DRIVER "AGG/PNG" >> MIMETYPE "image/png" >> IMAGEMODE "rgba" >> EXTENSION "png" >> FORMATOPTION "transparent=on" >> # TileCache can't use meta-tiling on interlaced PNG files... >> FORMATOPTION "interlace=off" >> END >> >> Changed my config to have my OpenLayers pointing directly at >> Mapserver >> 5.0, launch my browser and... Wow, it looks great !!! >> >> Then, I tried some optimization and I added to my OUTPUTFORMAT >> element >> (as seen in "AGG rendering specifics" howto) : >> FORMATOPTION "quantize_force=on" >> FORMATOPTION "quantize_dither=off" >> FORMATOPTION "quantize_colors=256" >> >> Well, the line work is still beautiful but I now have 2 problems : >> 1) I lost background transparency. My tiles appear with a white >> background, I tried to change IMAGECOLOR from 255 255 255 to -1 -1 >> -1, >> also to remove this element but it doesn't change anything. >> 2) Fonts and symbols looks very crappy, they are mixed black and >> white >> where they should be filled with black with a white outline. >> >> On a random tile, the image size fall from 102KB down to 25KB. Such >> ratio is not representative at all since it's not an average and it's >> only about vector data but still, quantize option seems very >> interesting >> and I don't want to give up because of transparency problems. >> >> Trying to solve the first problem, I found a workaround for the >> second. >> When I set the TRANSPARENT parameter of the WMS request to 'false' >> (or >> any value different of 'true'), then fonts and symbols are displayed >> normally. It could have been ok if TRANSPARENT was not an optional >> parameter... The map should looks good in the default case. >> >> Does someone could give more explanation about the quantize option, >> especially regarding transparency management ? >> >> If possible, a broader answer about the FORMATOPTION element would >> help >> a lot. Indeed, it seems like most optimizations are possible through >> output format tuning. Unfortunately, I have not been able to find any >> reference document on this... >> >> Regards, >> >> -- >> Gilles Bassiere >> MAKINA CORPUS >> 30 rue des Jeuneurs >> FR-75011 PARIS >> http://www.makina-corpus.com >> -- Gilles Bassiere MAKINA CORPUS 30 rue des Jeuneurs FR-75011 PARIS http://www.makina-corpus.com From flavio at TYDAC.CH Thu Aug 30 09:08:41 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 30 Aug 2007 18:08:41 +0200 Subject: AGG, paletted image and transparency (Mapserver 5.0 beta 5) In-Reply-To: <46D6E606.10806@makina-corpus.com> Message-ID: and OFFSITE 255 255 255 (to get the white transparent). From thomas.bonfort at GMAIL.COM Thu Aug 30 09:34:35 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Thu, 30 Aug 2007 18:34:35 +0200 Subject: AGG, paletted image and transparency (Mapserver 5.0 beta 5) In-Reply-To: <46D6D7D9.4030709@makina-corpus.com> Message-ID: quantization does not seem to support transparent backgrounds (regardless of gd or agg) I'll file a bug about this but I don't know if it will be fixed for 5.0 tb On 8/30/07, Gilles Bassi?re wrote: > Hi List, > > I run Mapserver 5.0 beta5 as a WMS server and have some troubles with > background transparency :( > > In a first attempt, I just replaced my GD OUTPUTFORMAT definition by: > > OUTPUTFORMAT > NAME "png" > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE "rgba" > EXTENSION "png" > FORMATOPTION "transparent=on" > # TileCache can't use meta-tiling on interlaced PNG files... > FORMATOPTION "interlace=off" > END > > Changed my config to have my OpenLayers pointing directly at Mapserver > 5.0, launch my browser and... Wow, it looks great !!! > > Then, I tried some optimization and I added to my OUTPUTFORMAT element > (as seen in "AGG rendering specifics" howto) : > FORMATOPTION "quantize_force=on" > FORMATOPTION "quantize_dither=off" > FORMATOPTION "quantize_colors=256" > > Well, the line work is still beautiful but I now have 2 problems : > 1) I lost background transparency. My tiles appear with a white > background, I tried to change IMAGECOLOR from 255 255 255 to -1 -1 -1, > also to remove this element but it doesn't change anything. > 2) Fonts and symbols looks very crappy, they are mixed black and white > where they should be filled with black with a white outline. > > On a random tile, the image size fall from 102KB down to 25KB. Such > ratio is not representative at all since it's not an average and it's > only about vector data but still, quantize option seems very interesting > and I don't want to give up because of transparency problems. > > Trying to solve the first problem, I found a workaround for the second. > When I set the TRANSPARENT parameter of the WMS request to 'false' (or > any value different of 'true'), then fonts and symbols are displayed > normally. It could have been ok if TRANSPARENT was not an optional > parameter... The map should looks good in the default case. > > Does someone could give more explanation about the quantize option, > especially regarding transparency management ? > > If possible, a broader answer about the FORMATOPTION element would help > a lot. Indeed, it seems like most optimizations are possible through > output format tuning. Unfortunately, I have not been able to find any > reference document on this... > > Regards, > > -- > Gilles Bassiere > MAKINA CORPUS > 30 rue des Jeuneurs > FR-75011 PARIS > http://www.makina-corpus.com > From mitchelljj98 at GMAIL.COM Thu Aug 30 09:49:41 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Thu, 30 Aug 2007 12:49:41 -0400 Subject: can BigTiff format be displayed within UMN mapserver Message-ID: Hi, Now that the BIGTIFF=YES* *(BigTiff format)* *option is part of the creation for GeoTiff files* *within gdal; can BigTiff format file be displayed within UMN mapserver? Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Aug 30 09:56:08 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 30 Aug 2007 12:56:08 -0400 Subject: can BigTiff format be displayed within UMN mapserver In-Reply-To: Message-ID: John Mitchell wrote: > Hi, > > Now that the BIGTIFF=YES* *(BigTiff format)* *option is part of the > creation for GeoTiff files* *within gdal; can BigTiff format file be > displayed within UMN mapserver? John, Yes, assuming your MapServer is built with a BigTIFF enabled 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 gilles.bassiere at MAKINA-CORPUS.COM Thu Aug 30 10:03:42 2007 From: gilles.bassiere at MAKINA-CORPUS.COM (=?ISO-8859-15?Q?Gilles_Bassi=E8re?=) Date: Thu, 30 Aug 2007 19:03:42 +0200 Subject: AGG, paletted image and transparency (Mapserver 5.0 beta 5) In-Reply-To: Message-ID: thomas bonfort wrote: > do you have an image or an url for the artifacts on the fonts and pixmaps? > Hi Thomas, I'm not sure about what is pixmap... Is it a kind of symbol? Anyway, I don't use it explicitly in my mapfile. I made available online two sample images : - http://sig.demo.makina-corpus.com/MS5.quantize.png - http://sig.demo.makina-corpus.com/MS5.no_quantize.png There is no data in the top left corner, thus this area should be transparent but is not when quantize is on. I also realised something new. The mixed white colour in labels is not white actually, it's transparent (try to wiew it in a browser with a coloured background). I checked with GIMP and found that only pure black pixels are transparent. Due to antialiasing other pixels in the labels are dark gray. It seems like, when quantize is on, a negation of the IMAGECOLOR value happen... It looks like a bug, I'm gonna do some more tests. Cheers, Gilles > > On 8/30/07, Gilles Bassi?re wrote: > >> Flavio Hendry wrote: >> >>> Hi Gilles >>> >>> Did you try TRANSPARENCY alpha (on LAYER level). >>> >>> >> I did but it doesn't change anything. According to >> http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics : >> >> "All rendering is now done antialiased by default. All ANTIALIAS >> keywords are now ignored, as well as TRANSPARENCY ALPHA. Pixmaps and >> fonts are now all drawn respecting the image's internal alpha channel >> (unless a backgroundcolor is specified)." >> >> Without the TRANSPARENCY ALPHA, I don't know how to get this "image's >> internal alpha channel" to work as I want >> >> Regards, >> Gilles >> >> >>> Mit freundlichem Gruss / Best Regards >>> Flavio Hendry >>> >>> ---------------------------------------------------------------- >>> TYDAC Web-Site: http://www.tydac.ch >>> TYDAC MapServer: http://www.mapserver.ch >>> ---------------------------------------------------------------- >>> ############ Mit freundlichen Gruessen / Kind Regards >>> ############ mailto:flavio at tydac.ch >>> ############ TYDAC AG - http://www.tydac.ch >>> #### #### Geographic Information Solutions >>> #### #### Luternauweg 12 -- CH-3006 Bern >>> ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 >>> ---------------------------------------------------------------- >>> >>> >>> -----Original Message----- >>> From: Gilles Bassi?re >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Date: Thu, 30 Aug 2007 16:44:41 +0200 >>> Subject: [UMN_MAPSERVER-USERS] AGG, paletted image and transparency >>> (Mapserver 5.0 beta 5) >>> >>> >>> >>>> Hi List, >>>> >>>> I run Mapserver 5.0 beta5 as a WMS server and have some troubles with >>>> background transparency :( >>>> >>>> In a first attempt, I just replaced my GD OUTPUTFORMAT definition by: >>>> >>>> OUTPUTFORMAT >>>> NAME "png" >>>> DRIVER "AGG/PNG" >>>> MIMETYPE "image/png" >>>> IMAGEMODE "rgba" >>>> EXTENSION "png" >>>> FORMATOPTION "transparent=on" >>>> # TileCache can't use meta-tiling on interlaced PNG files... >>>> FORMATOPTION "interlace=off" >>>> END >>>> >>>> Changed my config to have my OpenLayers pointing directly at >>>> Mapserver >>>> 5.0, launch my browser and... Wow, it looks great !!! >>>> >>>> Then, I tried some optimization and I added to my OUTPUTFORMAT >>>> element >>>> (as seen in "AGG rendering specifics" howto) : >>>> FORMATOPTION "quantize_force=on" >>>> FORMATOPTION "quantize_dither=off" >>>> FORMATOPTION "quantize_colors=256" >>>> >>>> Well, the line work is still beautiful but I now have 2 problems : >>>> 1) I lost background transparency. My tiles appear with a white >>>> background, I tried to change IMAGECOLOR from 255 255 255 to -1 -1 >>>> -1, >>>> also to remove this element but it doesn't change anything. >>>> 2) Fonts and symbols looks very crappy, they are mixed black and >>>> white >>>> where they should be filled with black with a white outline. >>>> >>>> On a random tile, the image size fall from 102KB down to 25KB. Such >>>> ratio is not representative at all since it's not an average and it's >>>> only about vector data but still, quantize option seems very >>>> interesting >>>> and I don't want to give up because of transparency problems. >>>> >>>> Trying to solve the first problem, I found a workaround for the >>>> second. >>>> When I set the TRANSPARENT parameter of the WMS request to 'false' >>>> (or >>>> any value different of 'true'), then fonts and symbols are displayed >>>> normally. It could have been ok if TRANSPARENT was not an optional >>>> parameter... The map should looks good in the default case. >>>> >>>> Does someone could give more explanation about the quantize option, >>>> especially regarding transparency management ? >>>> >>>> If possible, a broader answer about the FORMATOPTION element would >>>> help >>>> a lot. Indeed, it seems like most optimizations are possible through >>>> output format tuning. Unfortunately, I have not been able to find any >>>> reference document on this... >>>> >>>> Regards, >>>> >>>> -- >>>> Gilles Bassiere >>>> MAKINA CORPUS >>>> 30 rue des Jeuneurs >>>> FR-75011 PARIS >>>> http://www.makina-corpus.com >>>> >>>> >> -- >> Gilles Bassiere >> MAKINA CORPUS >> 30 rue des Jeuneurs >> FR-75011 PARIS >> http://www.makina-corpus.com >> >> -- Gilles Bassiere MAKINA CORPUS 30 rue des Jeuneurs FR-75011 PARIS http://www.makina-corpus.com From gilles.bassiere at MAKINA-CORPUS.COM Thu Aug 30 10:35:53 2007 From: gilles.bassiere at MAKINA-CORPUS.COM (=?ISO-8859-15?Q?Gilles_Bassi=E8re?=) Date: Thu, 30 Aug 2007 19:35:53 +0200 Subject: AGG, paletted image and transparency (Mapserver 5.0 beta 5) In-Reply-To: Message-ID: thomas bonfort wrote: > quantization does not seem to support transparent backgrounds > (regardless of gd or agg) > I'll file a bug about this but I don't know if it will be fixed for 5.0 > > tb > Ok, thanks. I tried several value for IMAGECOLOR but I didn't get any results. Would be great to solve this bug soon because AGG tends to produce heavy images. In most vector data based map 256 colors are enough, thus this quantize option would be an interesting solution. Regards, Gilles > On 8/30/07, Gilles Bassi?re wrote: > >> Hi List, >> >> I run Mapserver 5.0 beta5 as a WMS server and have some troubles with >> background transparency :( >> >> In a first attempt, I just replaced my GD OUTPUTFORMAT definition by: >> >> OUTPUTFORMAT >> NAME "png" >> DRIVER "AGG/PNG" >> MIMETYPE "image/png" >> IMAGEMODE "rgba" >> EXTENSION "png" >> FORMATOPTION "transparent=on" >> # TileCache can't use meta-tiling on interlaced PNG files... >> FORMATOPTION "interlace=off" >> END >> >> Changed my config to have my OpenLayers pointing directly at Mapserver >> 5.0, launch my browser and... Wow, it looks great !!! >> >> Then, I tried some optimization and I added to my OUTPUTFORMAT element >> (as seen in "AGG rendering specifics" howto) : >> FORMATOPTION "quantize_force=on" >> FORMATOPTION "quantize_dither=off" >> FORMATOPTION "quantize_colors=256" >> >> Well, the line work is still beautiful but I now have 2 problems : >> 1) I lost background transparency. My tiles appear with a white >> background, I tried to change IMAGECOLOR from 255 255 255 to -1 -1 -1, >> also to remove this element but it doesn't change anything. >> 2) Fonts and symbols looks very crappy, they are mixed black and white >> where they should be filled with black with a white outline. >> >> On a random tile, the image size fall from 102KB down to 25KB. Such >> ratio is not representative at all since it's not an average and it's >> only about vector data but still, quantize option seems very interesting >> and I don't want to give up because of transparency problems. >> >> Trying to solve the first problem, I found a workaround for the second. >> When I set the TRANSPARENT parameter of the WMS request to 'false' (or >> any value different of 'true'), then fonts and symbols are displayed >> normally. It could have been ok if TRANSPARENT was not an optional >> parameter... The map should looks good in the default case. >> >> Does someone could give more explanation about the quantize option, >> especially regarding transparency management ? >> >> If possible, a broader answer about the FORMATOPTION element would help >> a lot. Indeed, it seems like most optimizations are possible through >> output format tuning. Unfortunately, I have not been able to find any >> reference document on this... >> >> Regards, >> >> -- >> Gilles Bassiere >> MAKINA CORPUS >> 30 rue des Jeuneurs >> FR-75011 PARIS >> http://www.makina-corpus.com >> >> -- Gilles Bassiere MAKINA CORPUS 30 rue des Jeuneurs FR-75011 PARIS http://www.makina-corpus.com From Steve.Lime at DNR.STATE.MN.US Thu Aug 30 11:52:22 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 30 Aug 2007 13:52:22 -0500 Subject: AGG, paletted image and transparency (Mapserver 5.0 beta 5) In-Reply-To: <46D6FFF9.4020109@makina-corpus.com> Message-ID: Just for clarification, you expect then that pixels with the color IMAGECOLOR would be transparent correct? Since you're doing pure vector rendering the alpha channel really isn't necessary. Only rasters processed through GDAL actually write to the alpha channel with values other than fully opaque or fully transparent. Any opacity settings in layers affect blending and don't change the alpha channel. Seems like this should be an RGB image with the color closest to IMAGECOLOR marked as transparent in the resulting palette. Just thinking out loud on how to fix... Steve >>> On 8/30/2007 at 12:35 PM, in message <46D6FFF9.4020109 at makina-corpus.com>, Gilles Bassi?re wrote: > thomas bonfort wrote: >> quantization does not seem to support transparent backgrounds >> (regardless of gd or agg) >> I'll file a bug about this but I don't know if it will be fixed for 5.0 >> >> tb >> > Ok, thanks. > I tried several value for IMAGECOLOR but I didn't get any results. > Would be great to solve this bug soon because AGG tends to produce heavy > images. In most vector data based map 256 colors are enough, thus this > quantize option would be an interesting solution. > > Regards, > Gilles >> On 8/30/07, Gilles Bassi?re wrote: >> >>> Hi List, >>> >>> I run Mapserver 5.0 beta5 as a WMS server and have some troubles with >>> background transparency :( >>> >>> In a first attempt, I just replaced my GD OUTPUTFORMAT definition by: >>> >>> OUTPUTFORMAT >>> NAME "png" >>> DRIVER "AGG/PNG" >>> MIMETYPE "image/png" >>> IMAGEMODE "rgba" >>> EXTENSION "png" >>> FORMATOPTION "transparent=on" >>> # TileCache can't use meta-tiling on interlaced PNG files... >>> FORMATOPTION "interlace=off" >>> END >>> >>> Changed my config to have my OpenLayers pointing directly at Mapserver >>> 5.0, launch my browser and... Wow, it looks great !!! >>> >>> Then, I tried some optimization and I added to my OUTPUTFORMAT element >>> (as seen in "AGG rendering specifics" howto) : >>> FORMATOPTION "quantize_force=on" >>> FORMATOPTION "quantize_dither=off" >>> FORMATOPTION "quantize_colors=256" >>> >>> Well, the line work is still beautiful but I now have 2 problems : >>> 1) I lost background transparency. My tiles appear with a white >>> background, I tried to change IMAGECOLOR from 255 255 255 to -1 -1 -1, >>> also to remove this element but it doesn't change anything. >>> 2) Fonts and symbols looks very crappy, they are mixed black and white >>> where they should be filled with black with a white outline. >>> >>> On a random tile, the image size fall from 102KB down to 25KB. Such >>> ratio is not representative at all since it's not an average and it's >>> only about vector data but still, quantize option seems very interesting >>> and I don't want to give up because of transparency problems. >>> >>> Trying to solve the first problem, I found a workaround for the second. >>> When I set the TRANSPARENT parameter of the WMS request to 'false' (or >>> any value different of 'true'), then fonts and symbols are displayed >>> normally. It could have been ok if TRANSPARENT was not an optional >>> parameter... The map should looks good in the default case. >>> >>> Does someone could give more explanation about the quantize option, >>> especially regarding transparency management ? >>> >>> If possible, a broader answer about the FORMATOPTION element would help >>> a lot. Indeed, it seems like most optimizations are possible through >>> output format tuning. Unfortunately, I have not been able to find any >>> reference document on this... >>> >>> Regards, >>> >>> -- >>> Gilles Bassiere >>> MAKINA CORPUS >>> 30 rue des Jeuneurs >>> FR-75011 PARIS >>> http://www.makina-corpus.com >>> >>> > From RMcCulley at COUNTY24.COM Thu Aug 30 12:18:33 2007 From: RMcCulley at COUNTY24.COM (Rob McCulley) Date: Thu, 30 Aug 2007 13:18:33 -0600 Subject: Agg and resampling Message-ID: Hi All, Agg doesn't seem to be able to use resampling in tiled raster layers. This is my raster layer: LAYER # Aerials_2003 NAME Aerials_2003 GROUP RemoteSensing TILEINDEX "Aerials_2003.shp" TILEITEM "location" STATUS DEFAULT TYPE RASTER PROCESSING "RESAMPLE=BILINEAR" OPACITY 70 MAXSCALEDENOM 75000 DEBUG ON END and this is my output format: OUTPUTFORMAT NAME "AGG_JPEG" DRIVER "AGG/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION QUALITY=80 END Then the raster layer does not draw. There are no errors at all, but no raster layer. If I comment the PROCESSING line out, then the raster layer appears. If I leave the PROCESSING line in, and change the output format to GD/JPEG, then the raster layer appears. The output of shp2img with debug level set to 2 with the PROCESSING line and agg output is: msDrawRasterLayerLow(Aerials_2003): entering. msResampleGDALToMap in effect: cellsize = 1.000000 msDrawGDAL(Aerials_2003): using RAW_WINDOW=6244 2998 914 913 msDrawGDAL(): red,green,blue,alpha bands = 1,0,0,0 msDrawMap(): Layer 0 (Aerials_2003), 0.172s msDrawMap(): Layer 1 (ParcelLines), 0.016s msDrawMap(): Layer 2 (CadastralLabelsParcel), 0.015s msDrawMap(): Layer 6 (Pipes), 0.016s msDrawMap(): Layer 7 (Abandoned_Pipes), 0.015s msDrawMap(): Layer 8 (New_Pipes), 0.000s msDrawMap(): Layer 9 (ForeignPipelines), 0.016s msDrawMap(): Layer 10 (TapStations), 0.016s msDrawMap(): Layer 11 (RegStations), 0.015s msDrawMap(): Layer 12 (Wells), 0.016s msDrawMap(): Layer 13 (Major-Water), 0.016s msDrawMap(): Layer 14 (Minor-Water), 0.015s msDrawMap(): Drawing Label Cache, 0.016s msDrawMap() total time: 0.344s It appears to be resampling the image, but the raster layer doesn't appear. Is this a bug, or am I missing a setting somewhere? Thanks, Rob McCulley -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Thu Aug 30 12:32:15 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 30 Aug 2007 14:32:15 -0500 Subject: Performance of Scanning a Quadtree Index In-Reply-To: <46D5AACA.6010608@mapgears.com> Message-ID: This is correct. Also, if no .qix file is present OR if the bbox requested contains the entire layer bbox then the bit array is set to all 1's and feature level bbox filtering is done for everything. Steve >>> On 8/29/2007 at 12:20 PM, in message <46D5AACA.6010608 at mapgears.com>, Daniel Morissette wrote: > Frank Warmerdam wrote: >> >> I haven't dug into this, but I think MapServer pulls the features from >> the shapefile in the order they are identified traversing the spatial >> index. This *could* mean relatively random fetching depending on the >> spatial coherence (or lack thereof) of the records in the shapefile. >> > > Frank, > > I could be wrong, but my understanding is that MapServer reads the > shapes in the shapefile order all the time. If a .qix file is present, > then an array of bits is used to tag the shape ids to load, and then the > shapes are read in order of shape id. > > Daniel From Steve.Lime at DNR.STATE.MN.US Thu Aug 30 12:52:00 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 30 Aug 2007 14:52:00 -0500 Subject: mapserver 5 expression In-Reply-To: Message-ID: Expressions are not changable via URL configuration, at least not in their entirety like you are doing. I took a conservative approach to exposing parameters to URL when that support was re-written for 5.0. I was concerned that unchecked manipulation of expressions and filters *could* be a security problem, so that is unavailable. What do folks think? Note that it is easy to re-enable. Just change line 162 in maplexer.l: from expression ... to expression ... You can also work around this using runtime substitution. Presumably you'd write the mapfile entry like so: LAYER NAME 'fastvisa' ... CLASS EXPRESSION ([FNR]=%myid%) END END and would have a URL like ...&myid=210176493&... The advantage here is the you make the decision to enable that level of configuration, plus you can apply a regex filter to the value passed in from the URL and if the value doesn't match that pattern then no substitution is made: LAYER NAME 'fastvisa' ... METADATA myid_validation_pattern '^\d{9}$' END CLASS EXPRESSION ([FNR]=%myid%) END END In this example the input value for myid must consist of exactly 9 digits. Steve >>> On 8/29/2007 at 7:28 AM, in message , Lars-G?ran Edholm wrote: > Hi again! > Tried with > &map.layer[fastvisa].class[0]=EXPRESSION+([FNR]=210176493) > gives the error: > loadClass(): Unknown identifier. Parsing error near (EXPRESSION):(line 1) > with > &map.layer[fastvisa].class[0].EXPRESSION=([FNR]=210176493) > i get > loadClass(): Unknown identifier. Parsing error near (():(line 1) > > Seems that there is something with Expression that is wrong. > Lars-G?ran Edholm > > _________________________________________________________________ > Uppt?ck k?rleken p? MSN > http://match.se.msn.com/channel/index.aspx?trackingid=1002962 From gilles.bassiere at MAKINA-CORPUS.COM Thu Aug 30 09:42:54 2007 From: gilles.bassiere at MAKINA-CORPUS.COM (=?ISO-8859-15?Q?Gilles_Bassi=E8re?=) Date: Thu, 30 Aug 2007 18:42:54 +0200 Subject: AGG, paletted image and transparency (Mapserver 5.0 beta 5) In-Reply-To: Message-ID: Flavio Hendry wrote: > and OFFSITE 255 255 255 (to get the white transparent). > No, It doesn't work. As far as I know, OFFSITE work only for raster layer. I think the problem rather come from the quantize settings but, except this three options mentionned in the AGG howto, I don't know which parameters are available. Also, it might be a bug in AGG support but without anymore information, I can't be sure of this. Regards, -- Gilles Bassiere MAKINA CORPUS 30 rue des Jeuneurs FR-75011 PARIS http://www.makina-corpus.com From pwilkins at BHINC.COM Thu Aug 30 11:54:50 2007 From: pwilkins at BHINC.COM (Peter Wilkins) Date: Thu, 30 Aug 2007 12:54:50 -0600 Subject: MapServer/GDAL-based program thank you Message-ID: Hello, I'm writing to share with you an application I've built that was constructed using Mapserver, GDAL, and related FOSS4G tools. The Image Request application allows users to graphically search the large store of aerial orthophotography at Bohannan Huston (approx. 7.5 TB), find rasters that overlap the area of interest, and request subsets of these rasters. You can choose various formatting options like file type, projection, and pixel size. Once the image has been rendered a link is emailed to the user that allows the user to copy the image along with associated metadata to their desktop. The following link shows the main page followed by the image request detail page: http://www.bhinc.com/MapServer/MapServerImages.htm This application uses Mapserver 4 for the rendering of shapefiles and rasters. It uses GDAL for clipping out requested extents as well as translating to different formats. It uses PostgreSQL with PostGIS for storing the spatial information about the rasters to be searched. The front end was written using PHP, it runs using the Apache webserver courtesy of the Mapserver 4 Windows package. 100% FOSS, done by a single developer in under three months. Many thanks to the residents of #mapserver and #gdal for all their help and support. I couldn't have done this without you! Regards, Peter Wilkins Programmer / Analyst pwilkins at bhinc.com www.bhinc.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From funkbucket at GMAIL.COM Thu Aug 30 13:53:27 2007 From: funkbucket at GMAIL.COM (Ben Tuttle) Date: Thu, 30 Aug 2007 14:53:27 -0600 Subject: GDAL failure in call from java mapscript Message-ID: Hi all- We are doing some work with java mapscript and are running into some problems. This has worked fine for the most part. However, in one of our test cases we've come across what appears to be a bug, that in our case takes down the entire webserver. Any info on what might be causing our problem would be greatly appreciated. Here are the details: Windows XP, Mapserver 4.10, gdal1.4.1, Java 1.6, Tomcat 6.0 MapServer version 4.10.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG The bug arose when calling making a WMS request to Mapserver through tomcat. The following URLs succeed: https://wahlstrom-670/Dispatcher/wms.do?map=/boulder_data/bldr.map&REQUEST=GetMap&LAYERS=zoning_08_05,openspace09_05&TRANSPARENT=true&srs=EPSG:4326&bbox=-106,39.5,-105,40.5&format=image/png&VERSION=1.1.1&styles=&SERVICE=WMS https://wahlstrom-670/Dispatcher/wms.do?map=/boulder_data/bldr.map&REQUEST=GetMap&LAYERS=zoning_08_05,openspace09_05&TRANSPARENT=true&srs=EPSG:4326&bbox=-106,39.5,-105,40.5&format=image/gif&VERSION=1.1.1&styles=&SERVICE=WMS This one however fails catastrophically, taking down the webserver and the JVM https://wahlstrom-670/Dispatcher/wms.do?map=/boulder_data/bldr.map&REQUEST=GetMap&LAYERS=zoning_08_05,openspace09_05&TRANSPARENT=true&srs=EPSG:4326&bbox=-106,39.5,-105,40.5&format=image/tiff&VERSION=1.1.1&styles=&SERVICE=WMS Note that the only difference is that the format QS parameter has been changed from "image/png" to "image/tiff". To further debug this problem we wrote a simple java app to call mapscript : import java.io.*; import edu.umn.gis.mapscript.*; public class MapScriptTest { public static void main(String[] args) { try { OWSRequest req = new OWSRequest(); req.setParameter( "SERVICE", "WMS"); req.setParameter( "REQUEST", "GetMap"); req.setParameter( "LAYERS", "US state boundaries"); req.setParameter( "format", "image/tiff"); req.setParameter( "version", "1.1.1"); mapObj map = new mapObj("USA.map"); mapscript.msIO_installStdoutToBuffer(); int owsResult = map.OWSDispatch( req ); mapscript.msIO_stripStdoutBufferContentType(); byte[] resultBytes = mapscript.msIO_getStdoutBufferBytes(); FileOutputStream fou = new FileOutputStream(new File("map.tiff")); fou.write(resultBytes); fou.flush(); fou.close(); } catch( Exception e ) { e.printStackTrace(); } } } Running this program on our system will generate a seg fault in gdal14.dll. Java reports the following: # # An unexpected error has been detected by Java Runtime Environment: # # EXCEPTION_STACK_OVERFLOW (0xc00000fd) at pc=0x0328dcb5, pid=1180, tid=3208 # # Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b06 mixed mode, sharing) # Problematic frame: # C [gdal14.dll+0x24dcb5] # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # . . . We can repro this on both prebuilt binaries and ones I build ourself. There are some files for a small re-pro program at http://www.waterstoneinc.com/7e70820538e2ea58949752422edbdaf6/: ? MapScriptTest.java ? Simple driver java program ? HelloWorld.map ? Simple example map ? Mapscript.dll ? The mapscript DLL I'm using. Feel free to use your own ? buildAndRun.cmd ? a cmd file to compile the java code and run it with four sets of sample parameters. The last of which will cause the seg fault. Note: you will likely need to edit buildAndRun.cmd to make sure you are adding all the referenced mapscript DLLs to your path. From hobu.inc at GMAIL.COM Thu Aug 30 14:18:12 2007 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Thu, 30 Aug 2007 16:18:12 -0500 Subject: GDAL failure in call from java mapscript In-Reply-To: <259e26270708301353l4e5b0057ga18011ce6dd88196@mail.gmail.com> Message-ID: Ben, One suspicion I have is that you are running into this bug if the JVM limits its stack sizes . Do you happen to know what the default JVM stack size? Howard On Aug 30, 2007, at 3:53 PM, Ben Tuttle wrote: > Hi all- > We are doing some work with java mapscript and are running into some > problems. This has worked fine for the most part. However, in one of > our test cases we've come across what appears to be a bug, that in our > case takes down the entire webserver. Any info on what might be > causing our problem would be greatly appreciated. > > Here are the details: > Windows XP, Mapserver 4.10, gdal1.4.1, Java 1.6, Tomcat 6.0 > MapServer version 4.10.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > The bug arose when calling making a WMS request to Mapserver through > tomcat. The following URLs succeed: > > https://wahlstrom-670/Dispatcher/wms.do?map=/boulder_data/ > bldr.map&REQUEST=GetMap&LAYERS=zoning_08_05,openspace09_05&TRANSPARENT > =true&srs=EPSG:4326&bbox=-106,39.5,-105,40.5&format=image/ > png&VERSION=1.1.1&styles=&SERVICE=WMS > > https://wahlstrom-670/Dispatcher/wms.do?map=/boulder_data/ > bldr.map&REQUEST=GetMap&LAYERS=zoning_08_05,openspace09_05&TRANSPARENT > =true&srs=EPSG:4326&bbox=-106,39.5,-105,40.5&format=image/ > gif&VERSION=1.1.1&styles=&SERVICE=WMS > > > This one however fails catastrophically, taking down the webserver > and the JVM > > https://wahlstrom-670/Dispatcher/wms.do?map=/boulder_data/ > bldr.map&REQUEST=GetMap&LAYERS=zoning_08_05,openspace09_05&TRANSPARENT > =true&srs=EPSG:4326&bbox=-106,39.5,-105,40.5&format=image/ > tiff&VERSION=1.1.1&styles=&SERVICE=WMS > > > Note that the only difference is that the format QS parameter has been > changed from "image/png" to "image/tiff". > > > > To further debug this problem we wrote a simple java app to call > mapscript : > > > > import java.io.*; > > import edu.umn.gis.mapscript.*; > > > > public class MapScriptTest { > > > > public static void main(String[] args) { > > try { > > OWSRequest req = new OWSRequest(); > > req.setParameter( "SERVICE", "WMS"); > > req.setParameter( "REQUEST", "GetMap"); > > req.setParameter( "LAYERS", "US state boundaries"); > > req.setParameter( "format", "image/tiff"); > > req.setParameter( "version", "1.1.1"); > > > > mapObj map = new mapObj("USA.map"); > > > > mapscript.msIO_installStdoutToBuffer(); > > > > int owsResult = map.OWSDispatch( req ); > > mapscript.msIO_stripStdoutBufferContentType(); > > > > byte[] resultBytes = mapscript.msIO_getStdoutBufferBytes > (); > > > > FileOutputStream fou = new FileOutputStream(new File > ("map.tiff")); > > fou.write(resultBytes); > > fou.flush(); > > fou.close(); > > > > } catch( Exception e ) { > > e.printStackTrace(); > > } > > } > > } > > > > Running this program on our system will generate a seg fault in > gdal14.dll. Java reports the following: > > > > # > > # An unexpected error has been detected by Java Runtime Environment: > > # > > # EXCEPTION_STACK_OVERFLOW (0xc00000fd) at pc=0x0328dcb5, > pid=1180, tid=3208 > > # > > # Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b06 mixed mode, > sharing) > > # Problematic frame: > > # C [gdal14.dll+0x24dcb5] > > # > > # If you would like to submit a bug report, please visit: > > # http://java.sun.com/webapps/bugreport/crash.jsp > > # > > . > > . > > . > > > > We can repro this on both prebuilt binaries and ones I build ourself. > > > > There are some files for a small re-pro program at > http://www.waterstoneinc.com/7e70820538e2ea58949752422edbdaf6/: > > ? MapScriptTest.java ? Simple driver java program > > ? HelloWorld.map ? Simple example map > > ? Mapscript.dll ? The mapscript DLL I'm using. Feel free to > use your own > > ? buildAndRun.cmd ? a cmd file to compile the java code and > run it with four sets of sample parameters. The last of which will > cause the seg fault. > > > > Note: you will likely need to edit buildAndRun.cmd to make sure you > are adding all the referenced mapscript DLLs to your path. From warmerdam at POBOX.COM Thu Aug 30 14:33:48 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 30 Aug 2007 17:33:48 -0400 Subject: GDAL failure in call from java mapscript In-Reply-To: <259e26270708301353l4e5b0057ga18011ce6dd88196@mail.gmail.com> Message-ID: Ben Tuttle wrote: > Note that the only difference is that the format QS parameter has been > changed from "image/png" to "image/tiff". Ben, I suspect you are running into GDAL bug #1736: http://trac.osgeo.org/gdal/ticket/1736 In particular this affects applications trying to produce GeoTIFF output with GDAL in situations with modest sized stacks (ie. JVMs). If this is the issue, you can upgrade to a 1.4 branch or "svn trunk" snapshot of GDAL to correct the issue. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From funkbucket at GMAIL.COM Thu Aug 30 15:33:28 2007 From: funkbucket at GMAIL.COM (Ben Tuttle) Date: Thu, 30 Aug 2007 16:33:28 -0600 Subject: GDAL failure in call from java mapscript In-Reply-To: <46D737BC.3010108@pobox.com> Message-ID: Thanks Frank and Howard. Increasing the stack size to 512 made the issue go away as did upgrading our version of GDAL (as per Franks suggestion) without changing the stack size. On 8/30/07, Frank Warmerdam wrote: > Ben Tuttle wrote: > > Note that the only difference is that the format QS parameter has been > > changed from "image/png" to "image/tiff". > > Ben, > > I suspect you are running into GDAL bug #1736: > > http://trac.osgeo.org/gdal/ticket/1736 > > In particular this affects applications trying to produce GeoTIFF output > with GDAL in situations with modest sized stacks (ie. JVMs). > > If this is the issue, you can upgrade to a 1.4 branch or "svn trunk" snapshot > of GDAL to correct the issue. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org > > From funkbucket at GMAIL.COM Thu Aug 30 15:59:09 2007 From: funkbucket at GMAIL.COM (Ben Tuttle) Date: Thu, 30 Aug 2007 16:59:09 -0600 Subject: php_mapscript: php as cgi required? In-Reply-To: <46D5C532.3040405@rub.de> Message-ID: On 8/29/07, Sven Schulz wrote: > hi there, > i?m about to set up a new server (most recent versions of all > components). is it still required to build php as cgi for the > php-mapscript module? or can i use the phpmod for apache coming with > distribution (opensuse 10.2)? Hi- We have modphp on a RedHat server, we have run into some problems that we think are related to modphp and mapscript, however, we have not been able to absolutely attribute the problems to modphp/mapscript yet. We have been using ruby as a cgi very successfully. So no gaurauntee you will have problems with modphp, we are still trying to determine the exact cause of our problems, but as Gregor said if you want to be safe stick with cgi. From coolfrenz85 at YAHOO.COM Fri Aug 31 02:02:38 2007 From: coolfrenz85 at YAHOO.COM (cool frenz) Date: Fri, 31 Aug 2007 02:02:38 -0700 Subject: Mapserver problem (in windows) Message-ID: Hi all, I have installed mapserver (version 2.2.4)on windows and using php as my mapscript. I have got some shape files, i created a map file and a php file. Now when i am running this php file an image is being generated which is completely white (blank). Please help me and let me know what problem am i committing ? I have attached the project directory with this mail. PS : This shape file i have generated from gpx file. Thanks & Regards, Piyush --------------------------------- Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: eSagu.zip Type: application/zip Size: 14986 bytes Desc: 4083064063-eSagu.zip URL: From vishu_73ns at YAHOO.COM Fri Aug 31 03:52:11 2007 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Fri, 31 Aug 2007 05:52:11 -0500 Subject: layers with differenht coordinate system Message-ID: Hi, I have been able to get the RASTER FILE(TIF) to display using the projection,I have been working with dgn files, dt2 and tif files in mapserver. Now the problem I am facing is that I have different layers in different coordinates and thus units, I have a DGN file with extents from -ve to +ve in METERS, where as the TIF file has it in DD, I need to use the mapfile for the display of both layers possibly together. Also the DTED file (Again DD) which I have opened using projections is displaying the height but in a distorted manner. any suggested projections. any tutorial on projections. From vishu_73ns at YAHOO.COM Fri Aug 31 04:07:28 2007 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Fri, 31 Aug 2007 06:07:28 -0500 Subject: mapserver different coordinate system Message-ID: Hi, Sorry if its duplicate, 1. I have been able to get the RASTER FILE(TIF) to display using the projections, I have still not been able to understand projection concept to the core( I am still hopefull and working on it any tutorial). 2. problem I am facing is that I have different layers in different coordinates and thus units, I have a DGN file with extents from -ve to +ve in METERS, where as the TIF file has it in DD, I need to use the mapfile for the display of both layers possibly together. 3. Also the dt2 file (Again DD) which I have opened using projections is displaying the height but in a distorted manner. Vishal From richardorama at YAHOO.COM Fri Aug 31 04:25:55 2007 From: richardorama at YAHOO.COM (richard orama) Date: Fri, 31 Aug 2007 04:25:55 -0700 Subject: False Northing Message-ID: I have three layers: Districts, Kampala and Serviceproviders. Serviceproviders is contained in Kampala, and Kampala in turn is contained in Districts. But Kampala has a false northing of 200000, so it does not fit where it should. How do I remove the false northing in Mapserver? Regards, Richard Orama. My Map file is as follows: # # Start of map file # NAME ORAMA STATUS ON SIZE 600 600 #EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 EXTENT 118478.203105 -163815.968993 725010.937594 467856.125252 #Uganda #EXTENT 445504.463680 223700.879958 463130.351188 244757.138847 #Kampala #EXTENT 450098 25733 460142 37138 #Serviceproviders UNITS METERS SHAPEPATH "data" IMAGECOLOR 204 204 204 #257 258 259 # you may need to change this to match your MapServer build #IMAGETYPE PNG # # Projection definition, consult the PROJ.4 documentation for parameter discussion # #PROJECTION # "proj=utm" # "ellps=GRS80" # "zone=36" #15 # "north" # "no_defs" # OR: # # "init=epsg:26915" #END # # Start of web interface definition (including WMS enabling metadata) # WEB HEADER demo_header.html TEMPLATE kampala.html FOOTER demo_footer.html MINSCALE 1000 MAXSCALE 1550000 IMAGEPATH "set in demo_init.html" IMAGEURL "set in demo_init.html" METADATA WMS_TITLE "UMN MapServer Itasca Demo" WMS_ABSTRACT "This is the UMN MapServer demonstration application for Itasca County located in north central Minnesota." #WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "C:/ms4w/Apache/htdocs/demo_init.html" WMS_SRS "EPSG:26915" END END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END # # Start of reference map # REFERENCE IMAGE graphics/reference.png #EXTENT 393234.393701263 5205405.16440722 495769.579718949 5307959.02579127 EXTENT 445504.463680 223700.879958 463130.351188 244757.138847 #Kampala SIZE 120 120 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 255 255 255 SIZE tiny END STYLE 1 SIZE 80 2 COLOR 255 255 255 UNITS MILES INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # # Start of symbol definitions (we're only using a few) # SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END # # Start of layer definitions # #####ADDED BY ORAMA # #Districts Layer # LAYER NAME Districts TYPE POLYGON STATUS DEFAULT DATA Districts CLASSITEM 'DISTRICT' CLASS EXPRESSION 'Itasca' OUTLINECOLOR 257 257 257 #128 128 128 COLOR 225 225 185 END CLASS # every other county in the state EXPRESSION /./ OUTLINECOLOR 128 128 128 COLOR 255 255 255 END METADATA WMS_TITLE "County Boundary" WMS_ABSTRACT "Itasca County boundary shapefile. See http://deli.dnr.state.mn.us/metadata/full/ctybdne2.html for more information." WMS_SRS "EPSG:26915" END END # #Kampala Layer # LAYER NAME Kampala #False northing of 200000 TYPE POLYGON STATUS DEFAULT DATA Kampala CLASSITEM 'DIVID' CLASS EXPRESSION '61' OUTLINECOLOR 0 0 0 #really black COLOR 255 102 153 END CLASS EXPRESSION '62' OUTLINECOLOR 0 0 0 #really black COLOR 255 255 0 END CLASS EXPRESSION '63' OUTLINECOLOR 0 0 0 #really black COLOR 153 255 0 END CLASS EXPRESSION '64' OUTLINECOLOR 0 0 0 #really black COLOR 0 102 204 END CLASS EXPRESSION '65' OUTLINECOLOR 0 0 0 #really black COLOR 255 153 51 END CLASS # every other county in the state EXPRESSION /./ OUTLINECOLOR 0 0 0 COLOR 255 255 255 END METADATA WMS_TITLE "Village Boundary" WMS_ABSTRACT "Itasca County boundary shapefile. See http://deli.dnr.state.mn.us/metadata/full/ctybdne2.html for more information." WMS_SRS "EPSG:26915" END END # #Serviceproviders Layer # LAYER NAME serviceproviders TYPE POINT DATA serviceproviders STATUS DEFAULT CLASS NAME 'ServiceProviders' COLOR 255 0 0 #128 255 164 SYMBOL 'circle' SIZE 7 #TEMPLATE "serviceproviders.html" END #HEADER "serviceproviders_header.html" #FOOTER "serviceproviders_footer.html" TOLERANCE 5 METADATA WMS_TITLE "ServiceProviders" WMS_ABSTRACT "ServiceProviders in Kampala." WMS_SRS "EPSG:26915" END END #####END ADDED BY ORAMA # # END # Map File ____________________________________________________________________________________ Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.walter at FU-BERLIN.DE Fri Aug 31 04:29:51 2007 From: sebastian.walter at FU-BERLIN.DE (Sebastian Walter) Date: Fri, 31 Aug 2007 13:29:51 +0200 Subject: mapserver different coordinate system In-Reply-To: Message-ID: Hi Vishal, I would recommend you to try to get your data in a GIS system first to understand the spatial dependencies of your different datasets. Maybe you want to try GRASS GIS: http://grass.itc.it/ Here you will find some information about projections in general: http://en.wikipedia.org/wiki/Map_projection The process of georeferencing your data would be to write a "world"-file for your tif (you can do it in degrees) and also for the other files (I don't know either DGN or dt2; what kind of data is it? Vector or raster?). You need to know the projections of your data. You can convert DD in Meters using the proj utility (part of the proj library): http://www.remotesensing.org/proj/ In the manuals you will also find good information about projections. Regards, Sebastian Vishal Nagpal wrote: > Hi, > Sorry if its duplicate, > 1. I have been able to get the RASTER FILE(TIF) to display using the > projections, I have still not been able to understand > projection concept to the core( I am still hopefull and working on it any > tutorial). > > 2. problem I am facing is that I have different layers in > different coordinates and thus units, I have a DGN file with extents from -ve to > +ve in METERS, where as the TIF file has it in DD, I need to use the > mapfile for the display of both layers possibly together. > > 3. Also the dt2 file (Again DD) which I have opened using > projections is displaying the height but in a distorted manner. > > Vishal > From j.l.h.hartmann at UVA.NL Fri Aug 31 05:31:44 2007 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Fri, 31 Aug 2007 14:31:44 +0200 Subject: mapserver 5 expression In-Reply-To: <46D6D990.5157.008F.0@dnr.state.mn.us> Message-ID: Am I right that expressions could be changed by URLS in version 4 and cannot be changed any more in version 5? In that case I would strongly propose to reintroduce that possibility. It would break many of my applications, and I would need to use MapScript for those. Generally I only use CGI, because not all webservers I have to write for support MapScript. It's really a big restriction on MapServer CGI If there are security problems, I would like to see examples of those. Perhaps more specific solution can be found then. Anayway, the DATA statement is protected by the DATAPATTERN statement in the mapfile, so if someone sets that open, he takes a risk anayway. Prohibiting changes to expressions in that situation is overkill IMO. Jan Steve Lime wrote: > Expressions are not changable via URL configuration, at least not in > their entirety like > you are doing. I took a conservative approach to exposing parameters to > URL when > that support was re-written for 5.0. I was concerned that unchecked > manipulation of > expressions and filters *could* be a security problem, so that is > unavailable. > > What do folks think? > > Note that it is easy to re-enable. Just change line 162 in maplexer.l: > > from expression ... > to expression ... > > You can also work around this using runtime substitution. Presumably > you'd write the mapfile > entry like so: > > LAYER > NAME 'fastvisa' > ... > CLASS > EXPRESSION ([FNR]=%myid%) > END > END > > and would have a URL like ...&myid=210176493&... > > The advantage here is the you make the decision to enable that level of > configuration, plus you > can apply a regex filter to the value passed in from the URL and if the > value doesn't match that > pattern then no substitution is made: > > LAYER > NAME 'fastvisa' > ... > METADATA > myid_validation_pattern '^\d{9}$' > END > CLASS > EXPRESSION ([FNR]=%myid%) > END > END > > In this example the input value for myid must consist of exactly 9 > digits. > > Steve > >>>> On 8/29/2007 at 7:28 AM, in message > , Lars-G?ran Edholm > wrote: >> Hi again! >> Tried with >> &map.layer[fastvisa].class[0]=EXPRESSION+([FNR]=210176493) >> gives the error: >> loadClass(): Unknown identifier. Parsing error near > (EXPRESSION):(line 1) >> with >> &map.layer[fastvisa].class[0].EXPRESSION=([FNR]=210176493) >> i get >> loadClass(): Unknown identifier. Parsing error near (():(line 1) >> >> Seems that there is something with Expression that is wrong. >> Lars-G?ran Edholm >> >> _________________________________________________________________ >> Uppt?ck k?rleken p? MSN >> http://match.se.msn.com/channel/index.aspx?trackingid=1002962 > From Steve.Lime at DNR.STATE.MN.US Fri Aug 31 07:50:30 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 31 Aug 2007 09:50:30 -0500 Subject: mapserver 5 expression Message-ID: You are correct. Even if we re-enabled that functionality applications will break because of the syntax change in how URL configuration is handled. The migration guide talks about these changes. I agree that EXPRESSIONs are not as likely to suffer from security problems although I don't like the idea of allowing it since there is no way to validate an expression without evaluating it. No security problems with that functionality have been reported. I still prefer using the runtime subs where you can apply your own checks. You can substitute entire expressions that way too. Cc'ing mapserver-dev Steve >>> Jan Hartmann 08/31/07 7:31 AM >>> Am I right that expressions could be changed by URLS in version 4 and cannot be changed any more in version 5? In that case I would strongly propose to reintroduce that possibility. It would break many of my applications, and I would need to use MapScript for those. Generally I only use CGI, because not all webservers I have to write for support MapScript. It's really a big restriction on MapServer CGI If there are security problems, I would like to see examples of those. Perhaps more specific solution can be found then. Anayway, the DATA statement is protected by the DATAPATTERN statement in the mapfile, so if someone sets that open, he takes a risk anayway. Prohibiting changes to expressions in that situation is overkill IMO. Jan Steve Lime wrote: > Expressions are not changable via URL configuration, at least not in > their entirety like > you are doing. I took a conservative approach to exposing parameters to > URL when > that support was re-written for 5.0. I was concerned that unchecked > manipulation of > expressions and filters *could* be a security problem, so that is > unavailable. > > What do folks think? > > Note that it is easy to re-enable. Just change line 162 in maplexer.l: > > from expression ... > to expression ... > > You can also work around this using runtime substitution. Presumably > you'd write the mapfile > entry like so: > > LAYER > NAME 'fastvisa' > ... > CLASS > EXPRESSION ([FNR]=%myid%) > END > END > > and would have a URL like ...&myid=210176493&... > > The advantage here is the you make the decision to enable that level of > configuration, plus you > can apply a regex filter to the value passed in from the URL and if the > value doesn't match that > pattern then no substitution is made: > > LAYER > NAME 'fastvisa' > ... > METADATA > myid_validation_pattern '^\d{9}$' > END > CLASS > EXPRESSION ([FNR]=%myid%) > END > END > > In this example the input value for myid must consist of exactly 9 > digits. > > Steve > >>>> On 8/29/2007 at 7:28 AM, in message > , Lars-G?ran Edholm > wrote: >> Hi again! >> Tried with >> &map.layer[fastvisa].class[0]=EXPRESSION+([FNR]=210176493) >> gives the error: >> loadClass(): Unknown identifier. Parsing error near > (EXPRESSION):(line 1) >> with >> &map.layer[fastvisa].class[0].EXPRESSION=([FNR]=210176493) >> i get >> loadClass(): Unknown identifier. Parsing error near (():(line 1) >> >> Seems that there is something with Expression that is wrong. >> Lars-G?ran Edholm >> >> _________________________________________________________________ >> Uppt?ck k?rleken p? MSN >> http://match.se.msn.com/channel/index.aspx?trackingid=1002962 > From mitchelljj98 at GMAIL.COM Fri Aug 31 10:28:13 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Fri, 31 Aug 2007 13:28:13 -0400 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap Message-ID: Hi, How would I add support for user authentication within Mapserver for GetCapablities and GetMap? As an example: &request=GetCapabilities&userid=user&passwd=password Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgillies at FRII.COM Fri Aug 31 10:51:26 2007 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 31 Aug 2007 11:51:26 -0600 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: Message-ID: John Mitchell wrote: > ------=_Part_1450_30772907.1188581293493 > Content-Type: text/plain; charset=ISO-8859-1 > Content-Transfer-Encoding: 7bit > Content-Disposition: inline > > Hi, > > How would I add support for user authentication within Mapserver for > GetCapablities and GetMap? > > As an example: > &request=GetCapabilities&userid=user&passwd=password > > Thanks, > Use your web server's security framework http://httpd.apache.org/docs/2.0/howto/auth.html (or whatever if you're on IIS). Don't do security in your CGI program unless there's absolutely no other way. Cheers, Sean From gregor at HOSTGIS.COM Fri Aug 31 11:58:27 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 31 Aug 2007 12:58:27 -0600 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: Message-ID: John Mitchell wrote: > How would I add support for user authentication within Mapserver for > GetCapablities and GetMap? Sean's answer is basially right: You don't. Security is the webserver's job, and not Mapserver's. In fact, none of the OGC WxS standards supports security; they assume that the webserver has already done such things before calling the application. You would have to password protect the mapserv binary or the cgi-bin directory which houses it, not just the one app nor just those functions or layers. I have often wondered why the OGC standards left out such a basic concept as access control. Mysteries of the universe. -- Gregor Mosheh / Greg Allensworth 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 Tom.Kralidis at EC.GC.CA Fri Aug 31 12:50:41 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 31 Aug 2007 15:50:41 -0400 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap Message-ID: In addition, one can use mapscript WxS to intercept a request and, say, authenticate and process accordingly. Check out http://www.geoxacml.org as an OGC-ish way extending the OASIS XACML spec. ..Tom ________________________________ From: UMN MapServer Users List on behalf of Gregor Mosheh Sent: Fri 31-Aug-07 14:58 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] adding support for user authentication within Mapserver for GetCapablities and GetMap John Mitchell wrote: > How would I add support for user authentication within Mapserver for > GetCapablities and GetMap? Sean's answer is basially right: You don't. Security is the webserver's job, and not Mapserver's. In fact, none of the OGC WxS standards supports security; they assume that the webserver has already done such things before calling the application. You would have to password protect the mapserv binary or the cgi-bin directory which houses it, not just the one app nor just those functions or layers. I have often wondered why the OGC standards left out such a basic concept as access control. Mysteries of the universe. -- Gregor Mosheh / Greg Allensworth 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 gerry.creager at TAMU.EDU Fri Aug 31 13:56:50 2007 From: gerry.creager at TAMU.EDU (Gerry Creager) Date: Fri, 31 Aug 2007 15:56:50 -0500 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: <46D864D3.5040502@hostgis.com> Message-ID: Rights management is now well into the investigatory and specification stages in OGC. gerry Gregor Mosheh wrote: > John Mitchell wrote: >> How would I add support for user authentication within Mapserver for >> GetCapablities and GetMap? > > Sean's answer is basially right: You don't. Security is the webserver's > job, and not Mapserver's. In fact, none of the OGC WxS standards > supports security; they assume that the webserver has already done such > things before calling the application. > > You would have to password protect the mapserv binary or the cgi-bin > directory which houses it, not just the one app nor just those functions > or layers. > > I have often wondered why the OGC standards left out such a basic > concept as access control. Mysteries of the universe. > -- 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 gregor at HOSTGIS.COM Fri Aug 31 14:01:57 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 31 Aug 2007 15:01:57 -0600 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: <46D88092.50407@tamu.edu> Message-ID: Gerry Creager wrote: > Rights management is now well into the investigatory and specification > stages in OGC. He, that's excellent to hear. Thanks for the tip. -- Gregor Mosheh / Greg Allensworth 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 sgillies at FRII.COM Fri Aug 31 14:05:07 2007 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 31 Aug 2007 15:05:07 -0600 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: Message-ID: Gregor Mosheh wrote: > Gerry Creager wrote: >> Rights management is now well into the investigatory and specification >> stages in OGC. > > He, that's excellent to hear. Thanks for the tip. > No, it's not excellent. DRM is defective by design. Sean From sgillies at FRII.COM Fri Aug 31 14:08:43 2007 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 31 Aug 2007 15:08:43 -0600 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: Message-ID: No, Tom. This is bad practice. An anti-pattern. Best practice is to use your web server's authentication and authorization systems. They are developed by people who have multi-million dollar businesses on the line, are well tested, and performant. Sean Kralidis,Tom [Burlington] wrote: > =20 > In addition, one can use mapscript WxS to intercept a request and, say, = > authenticate and process accordingly. > =20 > Check out http://www.geoxacml.org as an OGC-ish way extending the OASIS = > XACML spec. > =20 > ..Tom > =20 > =20 > > ________________________________ > > From: UMN MapServer Users List on behalf of Gregor Mosheh > Sent: Fri 31-Aug-07 14:58 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] adding support for user = > authentication within Mapserver for GetCapablities and GetMap > > > > John Mitchell wrote: >> How would I add support for user authentication within Mapserver for >> GetCapablities and GetMap? > > Sean's answer is basially right: You don't. Security is the webserver's > job, and not Mapserver's. In fact, none of the OGC WxS standards > supports security; they assume that the webserver has already done such > things before calling the application. > > You would have to password protect the mapserv binary or the cgi-bin > directory which houses it, not just the one app nor just those functions > or layers. > > I have often wondered why the OGC standards left out such a basic > concept as access control. Mysteries of the universe. > > -- > Gregor Mosheh / Greg Allensworth > 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 Fri Aug 31 14:09:37 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 31 Aug 2007 15:09:37 -0600 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: <46D88283.6080202@frii.com> Message-ID: Sean Gillies wrote: >> Gerry Creager wrote: >>> Rights management is now well into the investigatory and >>> specification stages in OGC. >> He, that's excellent to hear. Thanks for the tip. > No, it's not excellent. DRM is defective by design. Hrm, perhaps I misunderstood. I read "access control" as in password protection to get into my WMS/WFS server. Gerry, did you mean access control at the application layer, so I can have Mapserver manage user accounts and access to my WMS layers, or something deeper such as DRM on the imagery, copy-protection on GeoTIFFs, and the like? (yeah, it's off the topic of Mapserver; so's a lot of educational and interesting stuff we talk about :) -- Gregor Mosheh / Greg Allensworth 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 gerry.creager at TAMU.EDU Fri Aug 31 14:17:55 2007 From: gerry.creager at TAMU.EDU (Gerry Creager) Date: Fri, 31 Aug 2007 16:17:55 -0500 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: <46D88283.6080202@frii.com> Message-ID: Sean Gillies wrote: > Gregor Mosheh wrote: >> Gerry Creager wrote: >>> Rights management is now well into the investigatory and >>> specification stages in OGC. >> >> He, that's excellent to hear. Thanks for the tip. >> > > No, it's not excellent. DRM is defective by design. I agree that the term strikes fear in the hearts of all who seek truth, justice, etc., but that's the term they've taken and the larger data and software providers are concerned that the datasets||databases they've spent years creating will be lost if there's not a rights management scheme. I'm torn on some of their argument, but if all I ever told them was, "Hogwash" (although I'm usually accused of being more direct) I'd not get very far. They're convinced. So we work with 'em. What we need is some consistent form of authentication, authorization and capabilities management. The Internet2-based National Middleware Initiative handled some of that pretty well. gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983 Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843 From gerry.creager at TAMU.EDU Fri Aug 31 15:20:57 2007 From: gerry.creager at TAMU.EDU (Gerry Creager) Date: Fri, 31 Aug 2007 17:20:57 -0500 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: <46D88391.80105@hostgis.com> Message-ID: Gregor Mosheh wrote: > Sean Gillies wrote: >>> Gerry Creager wrote: >>>> Rights management is now well into the investigatory and >>>> specification stages in OGC. > >>> He, that's excellent to hear. Thanks for the tip. > >> No, it's not excellent. DRM is defective by design. > > Hrm, perhaps I misunderstood. I read "access control" as in password > protection to get into my WMS/WFS server. > > Gerry, did you mean access control at the application layer, so I can > have Mapserver manage user accounts and access to my WMS layers, or > something deeper such as DRM on the imagery, copy-protection on > GeoTIFFs, and the like? > > (yeah, it's off the topic of Mapserver; so's a lot of educational and > interesting stuff we talk about :) The working group title is GeoDRM. I am not real happy with that but the bigger organizations are thinking of the resources they've put into their datasets and/or products. Some governments fail to see the benefits to their citizens of making geospatial data widely available, and thus are supporting this sort of thing. It's gonna be an interesting period, but I'm trying to get them to see the benefits of authentication/authorization/capabilities control. They keep thinking the RIAA/MPAA model is good and working. We have interesting debates. I can't tell if I'm making headway or not. The National Middelware Initiative (NSF funded, Internet2/SURA implemented) covers a lot of this via federation and credential exchange in their Shibboleth software initiative. gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983 Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843 From sgillies at FRII.COM Fri Aug 31 15:48:58 2007 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 31 Aug 2007 16:48:58 -0600 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: Message-ID: Gerry Creager wrote: > Gregor Mosheh wrote: >> Sean Gillies wrote: >>>> Gerry Creager wrote: >>>>> Rights management is now well into the investigatory and >>>>> specification stages in OGC. >>>> He, that's excellent to hear. Thanks for the tip. >>> No, it's not excellent. DRM is defective by design. >> Hrm, perhaps I misunderstood. I read "access control" as in password >> protection to get into my WMS/WFS server. >> >> Gerry, did you mean access control at the application layer, so I can >> have Mapserver manage user accounts and access to my WMS layers, or >> something deeper such as DRM on the imagery, copy-protection on >> GeoTIFFs, and the like? >> >> (yeah, it's off the topic of Mapserver; so's a lot of educational and >> interesting stuff we talk about :) > > The working group title is GeoDRM. I am not real happy with that but > the bigger organizations are thinking of the resources they've put into > their datasets and/or products. Some governments fail to see the > benefits to their citizens of making geospatial data widely available, > and thus are supporting this sort of thing. It's gonna be an > interesting period, but I'm trying to get them to see the benefits of > authentication/authorization/capabilities control. They keep thinking > the RIAA/MPAA model is good and working. We have interesting debates. > I can't tell if I'm making headway or not. > > The National Middelware Initiative (NSF funded, Internet2/SURA > implemented) covers a lot of this via federation and credential exchange > in their Shibboleth software initiative. > > gerry Gerry, I'm all for security too, but I think it's already addressed for web services by HTTP Basic + SSL/TLS. In my opinion, adding a spatial and time dimensions to auth (user 'joe' can only use a service between 9am-5pm originating from Larimer County, Colorado) is pure geo-wankery. The "GeoDRM" name -- it's clearly pandering to the non-technical guys in suits who (like you say) still think the RIAA is the good guy. Cheers, Sean From ed at TOPOZONE.COM Fri Aug 31 20:05:23 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 31 Aug 2007 23:05:23 -0400 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: A<46D89ADA.5080203@frii.com> Message-ID: Sean - While I agree with you in theory, we need to acknowledge that our WMS servers need (in some cases) to be easily accessible to the WMS clients our users want to or need to use. I cannot tell my ArcGIS customers that my server uses HTTP Basic authentication, because their client software provides no support for it and no place for them to type their username and password. For better or worse, the WMS specification is completely silent on the subject of authentication, and therefore set no expectations on what a well-behaved client is supposed to do. It is unreasonable to expect, in the absence of guidance in the specification, that all WMS clients will support the complete HTTP protocol suite in all its flavors, with the required user interfaces to make that happen. So we need to compromise to live in the real world. The "wrapper" script is one way to do that. If I create a wrapper PHP script such that my WMS Resource URI changes from: http://my.server.com/mapserv?map=my.map& to: http://my.server.com/mapserv.php?user=me&password=secret& then I'm really not doing anything different than what HTTP Basic authentication is doing, except for putting a few of the bytes in different places in the HTTP request. It is hard to see that using HTTP Basic authentication is fundamentally the Right Way and the querystring parameters is the Evil Way, since they are almost identical. Perhaps the wrapper approach even has the benefit of reminding the user that their id and password are being sent as clear text! - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 Phone: 978-251-4242, Fax: 978-251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Sean Gillies Sent: Friday, August 31, 2007 6:49 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] adding support for user authentication within Mapserver for GetCapablities and GetMap Gerry Creager wrote: > Gregor Mosheh wrote: >> Sean Gillies wrote: >>>> Gerry Creager wrote: >>>>> Rights management is now well into the investigatory and >>>>> specification stages in OGC. >>>> He, that's excellent to hear. Thanks for the tip. >>> No, it's not excellent. DRM is defective by design. >> Hrm, perhaps I misunderstood. I read "access control" as in password >> protection to get into my WMS/WFS server. >> >> Gerry, did you mean access control at the application layer, so I can >> have Mapserver manage user accounts and access to my WMS layers, or >> something deeper such as DRM on the imagery, copy-protection on >> GeoTIFFs, and the like? >> >> (yeah, it's off the topic of Mapserver; so's a lot of educational and >> interesting stuff we talk about :) > > The working group title is GeoDRM. I am not real happy with that but > the bigger organizations are thinking of the resources they've put into > their datasets and/or products. Some governments fail to see the > benefits to their citizens of making geospatial data widely available, > and thus are supporting this sort of thing. It's gonna be an > interesting period, but I'm trying to get them to see the benefits of > authentication/authorization/capabilities control. They keep thinking > the RIAA/MPAA model is good and working. We have interesting debates. > I can't tell if I'm making headway or not. > > The National Middelware Initiative (NSF funded, Internet2/SURA > implemented) covers a lot of this via federation and credential exchange > in their Shibboleth software initiative. > > gerry Gerry, I'm all for security too, but I think it's already addressed for web services by HTTP Basic + SSL/TLS. In my opinion, adding a spatial and time dimensions to auth (user 'joe' can only use a service between 9am-5pm originating from Larimer County, Colorado) is pure geo-wankery. The "GeoDRM" name -- it's clearly pandering to the non-technical guys in suits who (like you say) still think the RIAA is the good guy. Cheers, Sean From crschmidt at METACARTA.COM Fri Aug 31 21:09:57 2007 From: crschmidt at METACARTA.COM (Christopher Schmidt) Date: Sat, 1 Sep 2007 00:09:57 -0400 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80198838F@ptolemy.topozone.com> Message-ID: On Fri, Aug 31, 2007 at 11:05:23PM -0400, Ed McNierney wrote: > So we need to compromise to live in the real world. The "wrapper" script is one way to do that. If I create a wrapper PHP script such that my WMS Resource URI changes from: > > http://my.server.com/mapserv?map=my.map& > > to: > > http://my.server.com/mapserv.php?user=me&password=secret& > > then I'm really not doing anything different than what HTTP Basic authentication is doing, except for putting a few of the bytes in different places in the HTTP request. It is hard to see that using HTTP Basic authentication is fundamentally the Right Way and the querystring parameters is the Evil Way, since they are almost identical. Perhaps the wrapper approach even has the benefit of reminding the user that their id and password are being sent as clear text! Actually, clear-text passwords in the URL string are certainly the 'wrong way' from the perspective of the web -- because they can be cached by proxies. So, your credentials will now be stored in a proxy somewhere, and if the logs of the server are web accessible (even in limited form, as is often the case with web log analyzers) your password and username are accessible that way, etc. Now, whether the mechanism described here makes the situation more possible to use in various clients is a different question entirely, but it is clear that there are a number of reasons why embedding the username and password in a GET request string is bad for users. Passing something along in clear text is different from putting it in the URL string, because the URL string is, by the nature of the way the web works, designed to be public + sharable, which is something silghtly different. Regards, -- Christopher Schmidt MetaCarta From ed at TOPOZONE.COM Fri Aug 31 21:15:30 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sat, 1 Sep 2007 00:15:30 -0400 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: A<20070901040957.GA18652@metacarta.com> Message-ID: Christopher - Yes, but it is important to remember that the "perspective of the user" is often more important than the "perspective of the web", and we need to provide solutions users can actually use, not ones which impressively adhere to all the aesthetically correct principles but don't actually work. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Schmidt Sent: Saturday, September 01, 2007 12:10 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] adding support for user authentication within Mapserver for GetCapablities and GetMap On Fri, Aug 31, 2007 at 11:05:23PM -0400, Ed McNierney wrote: > So we need to compromise to live in the real world. The "wrapper" script is one way to do that. If I create a wrapper PHP script such that my WMS Resource URI changes from: > > http://my.server.com/mapserv?map=my.map& > > to: > > http://my.server.com/mapserv.php?user=me&password=secret& > > then I'm really not doing anything different than what HTTP Basic authentication is doing, except for putting a few of the bytes in different places in the HTTP request. It is hard to see that using HTTP Basic authentication is fundamentally the Right Way and the querystring parameters is the Evil Way, since they are almost identical. Perhaps the wrapper approach even has the benefit of reminding the user that their id and password are being sent as clear text! Actually, clear-text passwords in the URL string are certainly the 'wrong way' from the perspective of the web -- because they can be cached by proxies. So, your credentials will now be stored in a proxy somewhere, and if the logs of the server are web accessible (even in limited form, as is often the case with web log analyzers) your password and username are accessible that way, etc. Now, whether the mechanism described here makes the situation more possible to use in various clients is a different question entirely, but it is clear that there are a number of reasons why embedding the username and password in a GET request string is bad for users. Passing something along in clear text is different from putting it in the URL string, because the URL string is, by the nature of the way the web works, designed to be public + sharable, which is something silghtly different. Regards, -- Christopher Schmidt MetaCarta From bob.b at GRITECHNOLOGIES.COM Fri Aug 31 21:53:34 2007 From: bob.b at GRITECHNOLOGIES.COM (Bob Basques) Date: Fri, 31 Aug 2007 23:53:34 -0500 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80198838F@ptolemy.topozone.com> Message-ID: All, I've run into the same design problems as Ed is describing here as well. There just doesn't seem to be an easy way to add in Authentication to any of the spatial standards that have been set up. I'm really having a hard time trying to decide just how to add authentication. I also need to add it at the layer level which makes things a bit more complicated. I'm not fond of the clear-text parameter method either, and managing things on the server side is too much admin overhead. I have some ideas, but they all seem overly complicated. bobb Ed McNierney wrote: > Sean - > > While I agree with you in theory, we need to acknowledge that our WMS servers need (in some cases) to be easily accessible to the WMS clients our users want to or need to use. I cannot tell my ArcGIS customers that my server uses HTTP Basic authentication, because their client software provides no support for it and no place for them to type their username and password. > > For better or worse, the WMS specification is completely silent on the subject of authentication, and therefore set no expectations on what a well-behaved client is supposed to do. It is unreasonable to expect, in the absence of guidance in the specification, that all WMS clients will support the complete HTTP protocol suite in all its flavors, with the required user interfaces to make that happen. > > So we need to compromise to live in the real world. The "wrapper" script is one way to do that. If I create a wrapper PHP script such that my WMS Resource URI changes from: > > http://my.server.com/mapserv?map=my.map& > > to: > > http://my.server.com/mapserv.php?user=me&password=secret& > > then I'm really not doing anything different than what HTTP Basic authentication is doing, except for putting a few of the bytes in different places in the HTTP request. It is hard to see that using HTTP Basic authentication is fundamentally the Right Way and the querystring parameters is the Evil Way, since they are almost identical. Perhaps the wrapper approach even has the benefit of reminding the user that their id and password are being sent as clear text! > > - Ed > > Ed McNierney > Chief Mapmaker > Demand Media / TopoZone.com > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: 978-251-4242, Fax: 978-251-1396 > ed at topozone.com > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Sean Gillies > Sent: Friday, August 31, 2007 6:49 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] adding support for user authentication within Mapserver for GetCapablities and GetMap > > Gerry Creager wrote: > >> Gregor Mosheh wrote: >> >>> Sean Gillies wrote: >>> >>>>> Gerry Creager wrote: >>>>> >>>>>> Rights management is now well into the investigatory and >>>>>> specification stages in OGC. >>>>>> >>>>> He, that's excellent to hear. Thanks for the tip. >>>>> >>>> No, it's not excellent. DRM is defective by design. >>>> >>> Hrm, perhaps I misunderstood. I read "access control" as in password >>> protection to get into my WMS/WFS server. >>> >>> Gerry, did you mean access control at the application layer, so I can >>> have Mapserver manage user accounts and access to my WMS layers, or >>> something deeper such as DRM on the imagery, copy-protection on >>> GeoTIFFs, and the like? >>> >>> (yeah, it's off the topic of Mapserver; so's a lot of educational and >>> interesting stuff we talk about :) >>> >> The working group title is GeoDRM. I am not real happy with that but >> the bigger organizations are thinking of the resources they've put into >> their datasets and/or products. Some governments fail to see the >> benefits to their citizens of making geospatial data widely available, >> and thus are supporting this sort of thing. It's gonna be an >> interesting period, but I'm trying to get them to see the benefits of >> authentication/authorization/capabilities control. They keep thinking >> the RIAA/MPAA model is good and working. We have interesting debates. >> I can't tell if I'm making headway or not. >> >> The National Middelware Initiative (NSF funded, Internet2/SURA >> implemented) covers a lot of this via federation and credential exchange >> in their Shibboleth software initiative. >> >> gerry >> > > Gerry, I'm all for security too, but I think it's already addressed for > web services by HTTP Basic + SSL/TLS. In my opinion, adding a spatial > and time dimensions to auth (user 'joe' can only use a service between > 9am-5pm originating from Larimer County, Colorado) is pure geo-wankery. > > The "GeoDRM" name -- it's clearly pandering to the non-technical guys in > suits who (like you say) still think the RIAA is the good guy. > > Cheers, > Sean > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tara_athan at ALT2IS.COM Fri Aug 31 22:17:34 2007 From: tara_athan at ALT2IS.COM (Tara Athan) Date: Fri, 31 Aug 2007 22:17:34 -0700 Subject: hosted website installation In-Reply-To: <20070829071049.190BBB8609@spunkymail-a11.g.dreamhost.com> Message-ID: An HTML attachment was scrubbed... URL: From flavio at TYDAC.CH Fri Aug 31 23:26:18 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Sat, 1 Sep 2007 08:26:18 +0200 Subject: adding support for user authentication within Mapserver for GetCapablities and GetMap In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80198838F@ptolemy.topozone.com> Message-ID: Ed, John & Co. might have a look at: http://52north.org/index.php?option=com_content&task=blogcategory&id=36&Itemid=120 Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ----------------------------------------------------------------
    [attribute1][attribute2]
    [lrn] [NAME]
    [lrn][NAME]
    [lrn][NAME]